| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- /*! For license information please see main.js.LICENSE.txt */
- (()=>{var e,t,n={34:(e,t,n)=>{"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},81:(e,t,n)=>{"use strict";var r=n(9565),o=n(9306),i=n(8551),s=n(6823),a=n(851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(o(n))return i(r(n,e));throw new l(s(e)+" is not iterable")}},116:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),u=n(9539),c=n(4549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){a(this);try{s(e)}catch(e){u(this,"throw",e)}if(c)return o(c,this,e);var t=l(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(5093))},158:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{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"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},237:(e,t,n)=>{"use strict";n(6469)("flatMap")},283:(e,t,n)=>{"use strict";var r=n(9504),o=n(9039),i=n(4901),s=n(9297),a=n(3724),l=n(350).CONFIGURABLE,u=n(3706),c=n(1181),d=c.enforce,h=c.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),b=r([].join),y=a&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),w=String(String).split("String"),v=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=b(w,"string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return i(this)&&h(this).source||u(this)}),"toString")},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},350:(e,t,n)=>{"use strict";var r=n(3724),o=n(9297),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),l=a&&"something"===function(){}.name,u=a&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},397:(e,t,n)=>{"use strict";var r=n(7751);e.exports=r("document","documentElement")},421:e=>{"use strict";e.exports={}},500:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg=="},507:(e,t,n)=>{"use strict";var r=n(9565);e.exports=function(e,t,n){for(var o,i,s=n?e:e.iterator,a=e.next;!(o=r(a,s)).done;)if(void 0!==(i=t(o.value)))return i}},527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,o,i){var s="";switch(o){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":s=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":s=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":s=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":s=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":s=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":s=i?"vuoden":"vuotta"}return function(e,r){return e<10?r?n[e]:t[e]:e}(e,i)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},531:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(8646),u=n(9462),c=n(9539),d=n(6395),h=n(4549),p=!d&&h("flatMap",TypeError),f=u((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=s(o(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(n,"throw",e)}if(e=s(o(this.next,n)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(e){c(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:d||p},{flatMap:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}return p?o(p,this,e):new f(a(this),{mapper:e,inner:null})}})},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return o+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return o+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return o+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return o+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},616:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},655:(e,t,n)=>{"use strict";var r=n(6955),o=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},670:(e,t,n)=>{"use strict";n(531)},679:(e,t,n)=>{"use strict";var r=n(1625),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new o("Incorrect invocation")}},708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{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"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(5093))},741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},747:(e,t,n)=>{"use strict";var r=n(6699),o=n(6193),i=n(4659),s=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(s?s(e,t):r(e,"stack",o(n,a)))}},748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",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"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(5093))},757:(e,t,n)=>{"use strict";var r=n(7751),o=n(4901),i=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,a(e))}},788:(e,t,n)=>{"use strict";var r=n(34),o=n(2195),i=n(8227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},851:(e,t,n)=>{"use strict";var r=n(6955),o=n(5966),i=n(4117),s=n(6269),a=n(8227)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[r(e)]}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6221)},1011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(5093))},1025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{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"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(5093))},1034:(e,t,n)=>{"use strict";var r=n(9565),o=n(9297),i=n(1625),s=n(7979),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||o(e,"flags")||!i(a,e)?t:r(s,e)}},1052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,o){var i=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),o>0&&(i+=(""!==i?" ":"")+t[o]),""===i?"pagh":i}(e);switch(r){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{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"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},1056:(e,t,n)=>{"use strict";var r=n(4913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},1072:(e,t,n)=>{"use strict";var r=n(1828),o=n(8727);e.exports=Object.keys||function(e){return r(e,o)}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},1148:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),u=n(9539),c=n(4549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){a(this);try{s(e)}catch(e){u(this,"throw",e)}if(c)return o(c,this,e);var t=l(this),n=0;return!i(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1181:(e,t,n)=>{"use strict";var r,o,i,s=n(8622),a=n(4576),l=n(34),u=n(6699),c=n(9297),d=n(7629),h=n(6119),p=n(421),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new m(f);return t.facade=e,b.set(e,t),t},o=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var y=h("state");p[y]=!0,r=function(e,t){if(c(e,y))throw new m(f);return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},1247:(e,t,n)=>{"use strict";var r=n(9982),o=n(6540),i=n(961);function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function l(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(a(e)!==e)throw Error(s(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),x=Symbol.for("react.lazy");Symbol.for("react.scope");var k=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var R=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var T=Symbol.iterator;function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case _:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case f:return"Portal";case v:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case x:t=e._payload,e=e._init;try{return I(e(t))}catch(e){}}return null}var P=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},A=[],N=-1;function j(e){return{current:e}}function Y(e){0>N||(e.current=A[N],A[N]=null,N--)}function F(e,t){N++,A[N]=e.current,e.current=t}var z=j(null),W=j(null),V=j(null),B=j(null);function $(e,t){switch(F(V,t),F(W,e),F(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=od(t=rd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(z),F(z,e)}function U(){Y(z),Y(W),Y(V)}function G(e){null!==e.memoizedState&&F(B,e);var t=z.current,n=od(t,e.type);t!==n&&(F(W,e),F(z,n))}function K(e){W.current===e&&(Y(z),Y(W)),B.current===e&&(Y(B),Gd._currentValue=O)}var q=Object.prototype.hasOwnProperty,X=r.unstable_scheduleCallback,J=r.unstable_cancelCallback,Q=r.unstable_shouldYield,Z=r.unstable_requestPaint,ee=r.unstable_now,te=r.unstable_getCurrentPriorityLevel,ne=r.unstable_ImmediatePriority,re=r.unstable_UserBlockingPriority,oe=r.unstable_NormalPriority,ie=r.unstable_LowPriority,se=r.unstable_IdlePriority,ae=r.log,le=r.unstable_setDisableYieldValue,ue=null,ce=null;function de(e){if("function"==typeof ae&&le(e),ce&&"function"==typeof ce.setStrictMode)try{ce.setStrictMode(ue,e)}catch(e){}}var he=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(pe(e)/fe|0)|0},pe=Math.log,fe=Math.LN2,me=256,ge=4194304;function be(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ye(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~i)?o=be(r):0!==(s&=a)?o=be(s):n||0!==(n=a&~e)&&(o=be(n)):0!==(a=r&~i)?o=be(a):0!==s?o=be(s):n||0!==(n=r&~e)&&(o=be(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function we(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Se(){var e=me;return!(4194048&(me<<=1))&&(me=256),e}function Ce(){var e=ge;return!(62914560&(ge<<=1))&&(ge=4194304),e}function _e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Me(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-he(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function ke(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-he(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Te(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Ee(){var e=H.p;return 0!==e?e:void 0===(e=window.event)?32:sh(e.type)}var Le=Math.random().toString(36).slice(2),Ie="__reactFiber$"+Le,Pe="__reactProps$"+Le,De="__reactContainer$"+Le,He="__reactEvents$"+Le,Oe="__reactListeners$"+Le,Ae="__reactHandles$"+Le,Ne="__reactResources$"+Le,je="__reactMarker$"+Le;function Ye(e){delete e[Ie],delete e[Pe],delete e[He],delete e[Oe],delete e[Ae]}function Fe(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[De]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=yd(e);null!==e;){if(n=e[Ie])return n;e=yd(e)}return t}n=(e=n).parentNode}return null}function ze(e){if(e=e[Ie]||e[De]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function We(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Ve(e){var t=e[Ne];return t||(t=e[Ne]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[je]=!0}var $e=new Set,Ue={};function Ge(e,t){Ke(e,t),Ke(e+"Capture",t)}function Ke(e,t){for(Ue[e]=t,e=0;e<t.length;e++)$e.add(t[e])}var qe,Xe,Je=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qe={},Ze={};function et(e,t,n){if(o=t,q.call(Ze,o)||!q.call(Qe,o)&&(Je.test(o)?Ze[o]=!0:(Qe[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function tt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function nt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function rt(e){if(void 0===qe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);qe=t&&t[1]||"",Xe=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+qe+e+Xe}var ot=!1;function it(e,t){if(!e||ot)return"";ot=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],a=i[1];if(s&&a){var l=s.split("\n"),u=a.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{ot=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?rt(n):""}function st(e){switch(e.tag){case 26:case 27:case 5:return rt(e.type);case 16:return rt("Lazy");case 13:return rt("Suspense");case 19:return rt("SuspenseList");case 0:case 15:return it(e.type,!1);case 11:return it(e.type.render,!1);case 1:return it(e.type,!0);case 31:return rt("Activity");default:return""}}function at(e){try{var t="";do{t+=st(e),e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ut(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ct(e){e._valueTracker||(e._valueTracker=function(e){var t=ut(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ut(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var pt=/[\n"\\]/g;function ft(e){return e.replace(pt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function mt(e,t,n,r,o,i,s,a){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+lt(t)):e.value!==""+lt(t)&&(e.value=""+lt(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?bt(e,s,lt(t)):null!=n?bt(e,s,lt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+lt(a):e.removeAttribute("name")}function gt(e,t,n,r,o,i,s,a){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return;n=null!=n?""+lt(n):"",t=null!=t?""+lt(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s)}function bt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function yt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+lt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+lt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function vt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(s(92));if(P(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=lt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function St(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _t(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Mt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&_t(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&_t(e,i,t[i])}function xt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tt(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Et=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Pt=null;function Dt(e){var t=ze(e);if(t&&(e=t.stateNode)){var n=e[Pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ft(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Pe]||null;if(!o)throw Error(s(90));mt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&dt(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&yt(e,!!n.multiple,t,!1)}}}var Ht=!1;function Ot(e,t,n){if(Ht)return e(t,n);Ht=!0;try{return e(t)}finally{if(Ht=!1,(null!==It||null!==Pt)&&(Fu(),It&&(t=It,e=Pt,Pt=It=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function At(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Pe]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}var Nt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),jt=!1;if(Nt)try{var Yt={};Object.defineProperty(Yt,"passive",{get:function(){jt=!0}}),window.addEventListener("test",Yt,Yt),window.removeEventListener("test",Yt,Yt)}catch(e){jt=!1}var Ft=null,zt=null,Wt=null;function Vt(){if(Wt)return Wt;var e,t,n=zt,r=n.length,o="value"in Ft?Ft.value:Ft.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Wt=o.slice(e,1<t?1-t:void 0)}function Bt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function $t(){return!0}function Ut(){return!1}function Gt(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?$t:Ut,this.isPropagationStopped=Ut,this}return d(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$t)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$t)},persist:function(){},isPersistent:$t}),t}var Kt,qt,Xt,Jt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qt=Gt(Jt),Zt=d({},Jt,{view:0,detail:0}),en=Gt(Zt),tn=d({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xt&&(Xt&&"mousemove"===e.type?(Kt=e.screenX-Xt.screenX,qt=e.screenY-Xt.screenY):qt=Kt=0,Xt=e),Kt)},movementY:function(e){return"movementY"in e?e.movementY:qt}}),nn=Gt(tn),rn=Gt(d({},tn,{dataTransfer:0})),on=Gt(d({},Zt,{relatedTarget:0})),sn=Gt(d({},Jt,{animationName:0,elapsedTime:0,pseudoElement:0})),an=Gt(d({},Jt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Gt(d({},Jt,{data:0})),un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=dn[e])&&!!t[e]}function pn(){return hn}var fn=Gt(d({},Zt,{key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Bt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?Bt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Bt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mn=Gt(d({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=Gt(d({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),bn=Gt(d({},Jt,{propertyName:0,elapsedTime:0,pseudoElement:0})),yn=Gt(d({},tn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),wn=Gt(d({},Jt,{newState:0,oldState:0})),vn=[9,13,27,32],Sn=Nt&&"CompositionEvent"in window,Cn=null;Nt&&"documentMode"in document&&(Cn=document.documentMode);var _n=Nt&&"TextEvent"in window&&!Cn,Mn=Nt&&(!Sn||Cn&&8<Cn&&11>=Cn),xn=String.fromCharCode(32),kn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==vn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var En=!1,Ln={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ln[e.type]:"textarea"===t}function Pn(e,t,n,r){It?Pt?Pt.push(r):Pt=[r]:It=r,0<(t=Vc(t,"onChange")).length&&(n=new Qt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Hn=null;function On(e){Oc(e,0)}function An(e){if(dt(We(e)))return e}function Nn(e,t){if("change"===e)return t}var jn=!1;if(Nt){var Yn;if(Nt){var Fn="oninput"in document;if(!Fn){var zn=document.createElement("div");zn.setAttribute("oninput","return;"),Fn="function"==typeof zn.oninput}Yn=Fn}else Yn=!1;jn=Yn&&(!document.documentMode||9<document.documentMode)}function Wn(){Dn&&(Dn.detachEvent("onpropertychange",Vn),Hn=Dn=null)}function Vn(e){if("value"===e.propertyName&&An(Hn)){var t=[];Pn(t,Hn,e,Lt(e)),Ot(On,t)}}function Bn(e,t,n){"focusin"===e?(Wn(),Hn=n,(Dn=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&Wn()}function $n(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return An(Hn)}function Un(e,t){if("click"===e)return An(t)}function Gn(e,t){if("input"===e||"change"===e)return An(t)}var Kn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function qn(e,t){if(Kn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!q.call(t,o)||!Kn(e[o],t[o]))return!1}return!0}function Xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jn(e,t){var n,r=Xn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Xn(r)}}function Qn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Qn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var tr=Nt&&"documentMode"in document&&11>=document.documentMode,nr=null,rr=null,or=null,ir=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ir||null==nr||nr!==ht(r)||(r="selectionStart"in(r=nr)&&er(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},or&&qn(or,r)||(or=r,0<(r=Vc(rr,"onSelect")).length&&(t=new Qt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nr)))}function ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var lr={animationend:ar("Animation","AnimationEnd"),animationiteration:ar("Animation","AnimationIteration"),animationstart:ar("Animation","AnimationStart"),transitionrun:ar("Transition","TransitionRun"),transitionstart:ar("Transition","TransitionStart"),transitioncancel:ar("Transition","TransitionCancel"),transitionend:ar("Transition","TransitionEnd")},ur={},cr={};function dr(e){if(ur[e])return ur[e];if(!lr[e])return e;var t,n=lr[e];for(t in n)if(n.hasOwnProperty(t)&&t in cr)return ur[e]=n[t];return e}Nt&&(cr=document.createElement("div").style,"AnimationEvent"in window||(delete lr.animationend.animation,delete lr.animationiteration.animation,delete lr.animationstart.animation),"TransitionEvent"in window||delete lr.transitionend.transition);var hr=dr("animationend"),pr=dr("animationiteration"),fr=dr("animationstart"),mr=dr("transitionrun"),gr=dr("transitionstart"),br=dr("transitioncancel"),yr=dr("transitionend"),wr=new Map,vr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sr(e,t){wr.set(e,t),Ge(t,[e])}vr.push("scrollEnd");var Cr=new WeakMap;function _r(e,t){if("object"==typeof e&&null!==e){var n=Cr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:at(t)},Cr.set(e,t),t)}return{value:e,source:t,stack:at(t)}}var Mr=[],xr=0,kr=0;function Rr(){for(var e=xr,t=kr=xr=0;t<e;){var n=Mr[t];Mr[t++]=null;var r=Mr[t];Mr[t++]=null;var o=Mr[t];Mr[t++]=null;var i=Mr[t];if(Mr[t++]=null,null!==r&&null!==o){var s=r.pending;null===s?o.next=o:(o.next=s.next,s.next=o),r.pending=o}0!==i&&Ir(n,o,i)}}function Tr(e,t,n,r){Mr[xr++]=e,Mr[xr++]=t,Mr[xr++]=n,Mr[xr++]=r,kr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Er(e,t,n,r){return Tr(e,t,n,r),Pr(e)}function Lr(e,t){return Tr(e,null,null,t),Pr(e)}function Ir(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-he(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Pr(e){if(50<Iu)throw Iu=0,Pu=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Hr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(e,t,n,r){return new Hr(e,t,n,r)}function Ar(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nr(e,t){var n=e.alternate;return null===n?((n=Or(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function jr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yr(e,t,n,r,o,i){var a=0;if(r=e,"function"==typeof e)Ar(e)&&(a=1);else if("string"==typeof e)a=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,z.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case k:return(e=Or(31,n,t,o)).elementType=k,e.lanes=i,e;case m:return Fr(n.children,o,i,t);case g:a=8,o|=24;break;case b:return(e=Or(12,n,t,2|o)).elementType=b,e.lanes=i,e;case C:return(e=Or(13,n,t,o)).elementType=C,e.lanes=i,e;case _:return(e=Or(19,n,t,o)).elementType=_,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case y:case v:a=10;break e;case w:a=9;break e;case S:a=11;break e;case M:a=14;break e;case x:a=16,r=null;break e}a=29,n=Error(s(130,null===e?"null":typeof e,"")),r=null}return(t=Or(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Fr(e,t,n,r){return(e=Or(7,e,r,t)).lanes=n,e}function zr(e,t,n){return(e=Or(6,e,null,t)).lanes=n,e}function Wr(e,t,n){return(t=Or(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vr=[],Br=0,$r=null,Ur=0,Gr=[],Kr=0,qr=null,Xr=1,Jr="";function Qr(e,t){Vr[Br++]=Ur,Vr[Br++]=$r,$r=e,Ur=t}function Zr(e,t,n){Gr[Kr++]=Xr,Gr[Kr++]=Jr,Gr[Kr++]=qr,qr=e;var r=Xr;e=Jr;var o=32-he(r)-1;r&=~(1<<o),n+=1;var i=32-he(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Xr=1<<32-he(t)+o|n<<o|r,Jr=i+e}else Xr=1<<i|n<<o|r,Jr=e}function eo(e){null!==e.return&&(Qr(e,1),Zr(e,1,0))}function to(e){for(;e===$r;)$r=Vr[--Br],Vr[Br]=null,Ur=Vr[--Br],Vr[Br]=null;for(;e===qr;)qr=Gr[--Kr],Gr[Kr]=null,Jr=Gr[--Kr],Gr[Kr]=null,Xr=Gr[--Kr],Gr[Kr]=null}var no=null,ro=null,oo=!1,io=null,so=!1,ao=Error(s(519));function lo(e){throw mo(_r(Error(s(418,"")),e)),ao}function uo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[Pe]=r,n){case"dialog":Ac("cancel",t),Ac("close",t);break;case"iframe":case"object":case"embed":Ac("load",t);break;case"video":case"audio":for(n=0;n<Dc.length;n++)Ac(Dc[n],t);break;case"source":Ac("error",t);break;case"img":case"image":case"link":Ac("error",t),Ac("load",t);break;case"details":Ac("toggle",t);break;case"input":Ac("invalid",t),gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ct(t);break;case"select":Ac("invalid",t);break;case"textarea":Ac("invalid",t),vt(t,r.value,r.defaultValue,r.children),ct(t)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||qc(t.textContent,n)?(null!=r.popover&&(Ac("beforetoggle",t),Ac("toggle",t)),null!=r.onScroll&&Ac("scroll",t),null!=r.onScrollEnd&&Ac("scrollend",t),null!=r.onClick&&(t.onclick=Xc),t=!0):t=!1,t||lo(e)}function co(e){for(no=e.return;no;)switch(no.tag){case 5:case 13:return void(so=!1);case 27:case 3:return void(so=!0);default:no=no.return}}function ho(e){if(e!==no)return!1;if(!oo)return co(e),oo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||id(e.type,e.memoizedProps)),t=!t),t&&ro&&lo(e),co(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){ro=gd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}ro=null}}else 27===n?(n=ro,hd(e.type)?(e=bd,bd=null,ro=e):ro=n):ro=no?gd(e.stateNode.nextSibling):null;return!0}function po(){ro=no=null,oo=!1}function fo(){var e=io;return null!==e&&(null===yu?yu=e:yu.push.apply(yu,e),io=null),e}function mo(e){null===io?io=[e]:io.push(e)}var go=j(null),bo=null,yo=null;function wo(e,t,n){F(go,t._currentValue),t._currentValue=n}function vo(e){e._currentValue=go.current,Y(go)}function So(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var a=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),So(i.return,n,e),r||(a=null);break e}i=l.next}}else if(18===o.tag){if(null===(a=o.return))throw Error(s(341));a.lanes|=n,null!==(i=a.alternate)&&(i.lanes|=n),So(a,n,e),a=null}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===e){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}}function _o(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var a=o.alternate;if(null===a)throw Error(s(387));if(null!==(a=a.memoizedProps)){var l=o.type;Kn(o.pendingProps.value,a.value)||(null!==e?e.push(l):e=[l])}}else if(o===B.current){if(null===(a=o.alternate))throw Error(s(387));a.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Gd):e=[Gd])}o=o.return}null!==e&&Co(t,e,n,r),t.flags|=262144}function Mo(e){for(e=e.firstContext;null!==e;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xo(e){bo=e,yo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function ko(e){return To(bo,e)}function Ro(e,t){return null===bo&&xo(e),To(e,t)}function To(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===yo){if(null===e)throw Error(s(308));yo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yo=yo.next=t;return n}var Eo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Lo=r.unstable_scheduleCallback,Io=r.unstable_NormalPriority,Po={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Do(){return{controller:new Eo,data:new Map,refCount:0}}function Ho(e){e.refCount--,0===e.refCount&&Lo(Io,(function(){e.controller.abort()}))}var Oo=null,Ao=0,No=0,jo=null;function Yo(){if(0===--Ao&&null!==Oo){null!==jo&&(jo.status="fulfilled");var e=Oo;Oo=null,No=0,jo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Fo=D.S;D.S=function(e,t){"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Oo){var n=Oo=[];Ao=0,No=Tc(),jo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ao++,t.then(Yo,Yo)}(0,t),null!==Fo&&Fo(e,t)};var zo=j(null);function Wo(){var e=zo.current;return null!==e?e:nu.pooledCache}function Vo(e,t){F(zo,null===t?zo.current:t.pool)}function Bo(){var e=Wo();return null===e?null:{parent:Po._currentValue,pool:e}}var $o=Error(s(460)),Uo=Error(s(474)),Go=Error(s(542)),Ko={then:function(){}};function qo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function Xo(){}function Jo(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Xo,Xo),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ei(e=t.reason),e;default:if("string"==typeof t.status)t.then(Xo,Xo);else{if(null!==(e=nu)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ei(e=t.reason),e}throw Qo=t,$o}}var Qo=null;function Zo(){if(null===Qo)throw Error(s(459));var e=Qo;return Qo=null,e}function ei(e){if(e===$o||e===Go)throw Error(s(483))}var ti=!1;function ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ri(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ii(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&tu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Pr(e),Ir(e,null,n),t}return Tr(e,r,t,n),Pr(e)}function si(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ke(e,n)}}function ai(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var li=!1;function ui(){if(li&&null!==jo)throw jo}function ci(e,t,n,r){li=!1;var o=e.updateQueue;ti=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var h=o.baseState;for(s=0,c=u=l=null,a=i;;){var p=-536870913&a.lane,f=p!==a.lane;if(f?(ou&p)===p:(r&p)===p){0!==p&&p===No&&(li=!0),null!==c&&(c=c.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var m=e,g=a;p=t;var b=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){h=m.call(b,h,p);break e}h=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(b,h,p):m))break e;h=d({},h,p);break e;case 2:ti=!0}}null!==(p=a.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=f,l=h):c=c.next=f,s|=p;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(f=a).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===c&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),hu|=s,e.lanes=s,e.memoizedState=h}}function di(e,t){if("function"!=typeof e)throw Error(s(191,e));e.call(t)}function hi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)di(n[e],t)}var pi=j(null),fi=j(0);function mi(e,t){F(fi,e=cu),F(pi,t),cu=e|t.baseLanes}function gi(){F(fi,cu),F(pi,pi.current)}function bi(){cu=fi.current,Y(pi),Y(fi)}var yi=0,wi=null,vi=null,Si=null,Ci=!1,_i=!1,Mi=!1,xi=0,ki=0,Ri=null,Ti=0;function Ei(){throw Error(s(321))}function Li(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function Ii(e,t,n,r,o,i){return yi=i,wi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?$s:Us,Mi=!1,i=n(r,o),Mi=!1,_i&&(i=Di(t,n,r,o)),Pi(e),i}function Pi(e){D.H=Bs;var t=null!==vi&&null!==vi.next;if(yi=0,Si=vi=wi=null,Ci=!1,ki=0,Ri=null,t)throw Error(s(300));null===e||ka||null!==(e=e.dependencies)&&Mo(e)&&(ka=!0)}function Di(e,t,n,r){wi=e;var o=0;do{if(_i&&(Ri=null),ki=0,_i=!1,25<=o)throw Error(s(301));if(o+=1,Si=vi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}D.H=Gs,i=t(n,r)}while(_i);return i}function Hi(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?Fi(t):t,e=e.useState()[0],(null!==vi?vi.memoizedState:null)!==e&&(wi.flags|=1024),t}function Oi(){var e=0!==xi;return xi=0,e}function Ai(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ni(e){if(Ci){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ci=!1}yi=0,Si=vi=wi=null,_i=!1,ki=xi=0,Ri=null}function ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Si?wi.memoizedState=Si=e:Si=Si.next=e,Si}function Yi(){if(null===vi){var e=wi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===Si?wi.memoizedState:Si.next;if(null!==t)Si=t,vi=e;else{if(null===e){if(null===wi.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===Si?wi.memoizedState=Si=e:Si=Si.next=e}return Si}function Fi(e){var t=ki;return ki+=1,null===Ri&&(Ri=[]),e=Jo(Ri,e,t),t=wi,null===(null===Si?t.memoizedState:Si.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?$s:Us),e}function zi(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Fi(e);if(e.$$typeof===v)return ko(e)}throw Error(s(438,String(e)))}function Wi(e){var t=null,n=wi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=wi.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function Vi(e,t){return"function"==typeof t?t(e):t}function Bi(e){return $i(Yi(),vi,e)}function $i(e,t,n){var r=e.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=a=null,u=null,c=t=o.next,d=!1;do{var h=-536870913&c.lane;if(h!==c.lane?(ou&h)===h:(yi&h)===h){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===No&&(d=!0);else{if((yi&p)===p){c=c.next,p===No&&(d=!0);continue}h={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,a=i):u=u.next=h,wi.lanes|=p,hu|=p}h=c.action,Mi&&n(i,h),i=c.hasEagerState?c.eagerState:n(i,h)}else p={lane:h,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,a=i):u=u.next=p,wi.lanes|=h,hu|=h;c=c.next}while(null!==c&&c!==t);if(null===u?a=i:u.next=l,!Kn(i,e.memoizedState)&&(ka=!0,d&&null!==(n=jo)))throw n;e.memoizedState=i,e.baseState=a,e.baseQueue=u,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ui(e){var t=Yi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);Kn(i,t.memoizedState)||(ka=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Gi(e,t,n){var r=wi,o=Yi(),i=oo;if(i){if(void 0===n)throw Error(s(407));n=n()}else n=t();var a=!Kn((vi||o).memoizedState,n);if(a&&(o.memoizedState=n,ka=!0),o=o.queue,gs(2048,8,Xi.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==Si&&1&Si.memoizedState.tag){if(r.flags|=2048,ps(9,{destroy:void 0,resource:void 0},qi.bind(null,r,o,n,t),null),null===nu)throw Error(s(349));i||124&yi||Ki(r,t,n)}return n}function Ki(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=wi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function qi(e,t,n,r){t.value=n,t.getSnapshot=r,Ji(t)&&Qi(e)}function Xi(e,t,n){return n((function(){Ji(t)&&Qi(e)}))}function Ji(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch(e){return!0}}function Qi(e){var t=Lr(e,2);null!==t&&Ou(t,0,2)}function Zi(e){var t=ji();if("function"==typeof e){var n=e;if(e=n(),Mi){de(!0);try{n()}finally{de(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:e},t}function es(e,t,n,r){return e.baseState=n,$i(e,vi,"function"==typeof r?r:Vi)}function ts(e,t,n,r,o){if(zs(e))throw Error(s(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==D.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,ns(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ns(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=D.T,s={};D.T=s;try{var a=n(o,r),l=D.S;null!==l&&l(s,a),rs(e,t,a)}catch(n){is(e,t,n)}finally{D.T=i}}else try{rs(e,t,i=n(o,r))}catch(n){is(e,t,n)}}function rs(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then((function(n){os(e,t,n)}),(function(n){return is(e,t,n)})):os(e,t,n)}function os(e,t,n){t.status="fulfilled",t.value=n,ss(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ns(e,n)))}function is(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ss(t),t=t.next}while(t!==r)}e.action=null}function ss(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function as(e,t){return t}function ls(e,t){if(oo){var n=nu.formState;if(null!==n){e:{var r=wi;if(oo){if(ro){t:{for(var o=ro,i=so;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=gd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){ro=gd(o.nextSibling),r="F!"===o.data;break e}}lo(r)}r=!1}r&&(t=n[0])}}return(n=ji()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:t},n.queue=r,n=js.bind(null,wi,r),r.dispatch=n,r=Zi(!1),i=Fs.bind(null,wi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ji()).queue=o,n=ts.bind(null,wi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function us(e){return cs(Yi(),vi,e)}function cs(e,t,n){if(t=$i(e,t,as)[0],e=Bi(Vi)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=Fi(t)}catch(e){if(e===$o)throw Go;throw e}else r=t;var o=(t=Yi()).queue,i=o.dispatch;return n!==t.memoizedState&&(wi.flags|=2048,ps(9,{destroy:void 0,resource:void 0},ds.bind(null,o,n),null)),[r,i,e]}function ds(e,t){e.action=t}function hs(e){var t=Yi(),n=vi;if(null!==n)return cs(t,n,e);Yi(),t=t.memoizedState;var r=(n=Yi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=wi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},wi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function fs(){return Yi().memoizedState}function ms(e,t,n,r){var o=ji();r=void 0===r?null:r,wi.flags|=e,o.memoizedState=ps(1|t,{destroy:void 0,resource:void 0},n,r)}function gs(e,t,n,r){var o=Yi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==vi&&null!==r&&Li(r,vi.memoizedState.deps)?o.memoizedState=ps(t,i,n,r):(wi.flags|=e,o.memoizedState=ps(1|t,i,n,r))}function bs(e,t){ms(8390656,8,e,t)}function ys(e,t){gs(2048,8,e,t)}function ws(e,t){return gs(4,2,e,t)}function vs(e,t){return gs(4,4,e,t)}function Ss(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Cs(e,t,n){n=null!=n?n.concat([e]):null,gs(4,4,Ss.bind(null,t,e),n)}function _s(){}function Ms(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Li(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Li(t,r[1]))return r[0];if(r=e(),Mi){de(!0);try{e()}finally{de(!1)}}return n.memoizedState=[r,t],r}function ks(e,t,n){return void 0===n||1073741824&yi?e.memoizedState=t:(e.memoizedState=n,e=Hu(),wi.lanes|=e,hu|=e,n)}function Rs(e,t,n,r){return Kn(n,t)?n:null!==pi.current?(e=ks(e,n,r),Kn(e,t)||(ka=!0),e):42&yi?(e=Hu(),wi.lanes|=e,hu|=e,t):(ka=!0,e.memoizedState=n)}function Ts(e,t,n,r,o){var i=H.p;H.p=0!==i&&8>i?i:8;var s,a,l,u=D.T,c={};D.T=c,Fs(e,!1,t,n);try{var d=o(),h=D.S;null!==h&&h(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?Ys(e,t,(s=r,a=[],l={status:"pending",value:null,reason:null,then:function(e){a.push(e)}},d.then((function(){l.status="fulfilled",l.value=s;for(var e=0;e<a.length;e++)(0,a[e])(s)}),(function(e){for(l.status="rejected",l.reason=e,e=0;e<a.length;e++)(0,a[e])(void 0)})),l),Du()):Ys(e,t,r,Du())}catch(n){Ys(e,t,{then:function(){},status:"rejected",reason:n},Du())}finally{H.p=i,D.T=u}}function Es(){}function Ls(e,t,n,r){if(5!==e.tag)throw Error(s(476));var o=Is(e).queue;Ts(e,o,t,O,null===n?Es:function(){return Ps(e),n(r)})}function Is(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:O},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ps(e){Ys(e,Is(e).next.queue,{},Du())}function Ds(){return ko(Gd)}function Hs(){return Yi().memoizedState}function Os(){return Yi().memoizedState}function As(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Du(),r=ii(t,e=oi(n),n);return null!==r&&(Ou(r,0,n),si(r,t,n)),t={cache:Do()},void(e.payload=t)}t=t.return}}function Ns(e,t,n){var r=Du();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Ws(t,n):null!==(n=Er(e,t,n,r))&&(Ou(n,0,r),Vs(n,t,r))}function js(e,t,n){Ys(e,t,n,Du())}function Ys(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Ws(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Kn(a,s))return Tr(e,t,o,0),null===nu&&Rr(),!1}catch(e){}if(null!==(n=Er(e,t,o,r)))return Ou(n,0,r),Vs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:Tc(),action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(s(479))}else null!==(t=Er(e,n,r,2))&&Ou(t,0,2)}function zs(e){var t=e.alternate;return e===wi||null!==t&&t===wi}function Ws(e,t){_i=Ci=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ke(e,n)}}var Bs={readContext:ko,use:zi,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useLayoutEffect:Ei,useInsertionEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useSyncExternalStore:Ei,useId:Ei,useHostTransitionStatus:Ei,useFormState:Ei,useActionState:Ei,useOptimistic:Ei,useMemoCache:Ei,useCacheRefresh:Ei},$s={readContext:ko,use:zi,useCallback:function(e,t){return ji().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:bs,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,ms(4194308,4,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=ji();t=void 0===t?null:t;var r=e();if(Mi){de(!0);try{e()}finally{de(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ji();if(void 0!==n){var o=n(t);if(Mi){de(!0);try{n(t)}finally{de(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Ns.bind(null,wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ji().memoizedState=e},useState:function(e){var t=(e=Zi(e)).queue,n=js.bind(null,wi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return ks(ji(),e,t)},useTransition:function(){var e=Zi(!1);return e=Ts.bind(null,wi,e.queue,!0,!1),ji().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=wi,o=ji();if(oo){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===nu)throw Error(s(349));124&ou||Ki(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,bs(Xi.bind(null,r,i,e),[e]),r.flags|=2048,ps(9,{destroy:void 0,resource:void 0},qi.bind(null,r,i,n,t),null),n},useId:function(){var e=ji(),t=nu.identifierPrefix;if(oo){var n=Jr;t="«"+t+"R"+(n=(Xr&~(1<<32-he(Xr)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+="»"}else t="«"+t+"r"+(n=Ti++).toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:ls,useActionState:ls,useOptimistic:function(e){var t=ji();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,wi,!0,n),n.dispatch=t,[e,t]},useMemoCache:Wi,useCacheRefresh:function(){return ji().memoizedState=As.bind(null,wi)}},Us={readContext:ko,use:zi,useCallback:Ms,useContext:ko,useEffect:ys,useImperativeHandle:Cs,useInsertionEffect:ws,useLayoutEffect:vs,useMemo:xs,useReducer:Bi,useRef:fs,useState:function(){return Bi(Vi)},useDebugValue:_s,useDeferredValue:function(e,t){return Rs(Yi(),vi.memoizedState,e,t)},useTransition:function(){var e=Bi(Vi)[0],t=Yi().memoizedState;return["boolean"==typeof e?e:Fi(e),t]},useSyncExternalStore:Gi,useId:Hs,useHostTransitionStatus:Ds,useFormState:us,useActionState:us,useOptimistic:function(e,t){return es(Yi(),0,e,t)},useMemoCache:Wi,useCacheRefresh:Os},Gs={readContext:ko,use:zi,useCallback:Ms,useContext:ko,useEffect:ys,useImperativeHandle:Cs,useInsertionEffect:ws,useLayoutEffect:vs,useMemo:xs,useReducer:Ui,useRef:fs,useState:function(){return Ui(Vi)},useDebugValue:_s,useDeferredValue:function(e,t){var n=Yi();return null===vi?ks(n,e,t):Rs(n,vi.memoizedState,e,t)},useTransition:function(){var e=Ui(Vi)[0],t=Yi().memoizedState;return["boolean"==typeof e?e:Fi(e),t]},useSyncExternalStore:Gi,useId:Hs,useHostTransitionStatus:Ds,useFormState:hs,useActionState:hs,useOptimistic:function(e,t){var n=Yi();return null!==vi?es(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Wi,useCacheRefresh:Os},Ks=null,qs=0;function Xs(e){var t=qs;return qs+=1,null===Ks&&(Ks=[]),Jo(Ks,e,t)}function Js(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Qs(e,t){if(t.$$typeof===h)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zs(e){return(0,e._init)(e._payload)}function ea(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Nr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=zr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===x&&Zs(i)===t.type)?(Js(t=o(t,n.props),n),t.return=e,t):(Js(t=Yr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Fr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=zr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return Js(n=Yr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case f:return(t=Wr(t,e.mode,n)).return=e,t;case x:return h(e,t=(0,t._init)(t._payload),n)}if(P(t)||E(t))return(t=Fr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return h(e,Xs(t),n);if(t.$$typeof===v)return h(e,Ro(e,t),n);Qs(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===o?u(e,t,n,r):null;case f:return n.key===o?c(e,t,n,r):null;case x:return g(e,t,n=(o=n._init)(n._payload),r)}if(P(n)||E(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,Xs(n),r);if(n.$$typeof===v)return g(e,t,Ro(e,n),r);Qs(e,n)}return null}function b(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return b(e,t,n,r=(0,r._init)(r._payload),o)}if(P(r)||E(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return b(e,t,n,Xs(r),o);if(r.$$typeof===v)return b(e,t,n,Ro(t,r),o);Qs(t,r)}return null}function y(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===m&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case p:e:{for(var w=c.key;null!==u;){if(u.key===w){if((w=c.type)===m){if(7===u.tag){n(l,u.sibling),(d=o(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===w||"object"==typeof w&&null!==w&&w.$$typeof===x&&Zs(w)===u.type){n(l,u.sibling),Js(d=o(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===m?((d=Fr(c.props.children,l.mode,d,c.key)).return=l,l=d):(Js(d=Yr(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return a(l);case f:e:{for(w=c.key;null!==u;){if(u.key===w){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=o(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Wr(c,l.mode,d)).return=l,l=d}return a(l);case x:return y(l,u,c=(w=c._init)(c._payload),d)}if(P(c))return function(o,s,a,l){for(var u=null,c=null,d=s,p=s=0,f=null;null!==d&&p<a.length;p++){d.index>p?(f=d,d=null):f=d.sibling;var m=g(o,d,a[p],l);if(null===m){null===d&&(d=f);break}e&&d&&null===m.alternate&&t(o,d),s=i(m,s,p),null===c?u=m:c.sibling=m,c=m,d=f}if(p===a.length)return n(o,d),oo&&Qr(o,p),u;if(null===d){for(;p<a.length;p++)null!==(d=h(o,a[p],l))&&(s=i(d,s,p),null===c?u=d:c.sibling=d,c=d);return oo&&Qr(o,p),u}for(d=r(d);p<a.length;p++)null!==(f=b(d,o,p,a[p],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?p:f.key),s=i(f,s,p),null===c?u=f:c.sibling=f,c=f);return e&&d.forEach((function(e){return t(o,e)})),oo&&Qr(o,p),u}(l,u,c,d);if(E(c)){if("function"!=typeof(w=E(c)))throw Error(s(150));return function(o,a,l,u){if(null==l)throw Error(s(151));for(var c=null,d=null,p=a,f=a=0,m=null,y=l.next();null!==p&&!y.done;f++,y=l.next()){p.index>f?(m=p,p=null):m=p.sibling;var w=g(o,p,y.value,u);if(null===w){null===p&&(p=m);break}e&&p&&null===w.alternate&&t(o,p),a=i(w,a,f),null===d?c=w:d.sibling=w,d=w,p=m}if(y.done)return n(o,p),oo&&Qr(o,f),c;if(null===p){for(;!y.done;f++,y=l.next())null!==(y=h(o,y.value,u))&&(a=i(y,a,f),null===d?c=y:d.sibling=y,d=y);return oo&&Qr(o,f),c}for(p=r(p);!y.done;f++,y=l.next())null!==(y=b(p,o,f,y.value,u))&&(e&&null!==y.alternate&&p.delete(null===y.key?f:y.key),a=i(y,a,f),null===d?c=y:d.sibling=y,d=y);return e&&p.forEach((function(e){return t(o,e)})),oo&&Qr(o,f),c}(l,u,c=w.call(c),d)}if("function"==typeof c.then)return y(l,u,Xs(c),d);if(c.$$typeof===v)return y(l,u,Ro(l,c),d);Qs(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=zr(c,l.mode,d)).return=l,l=d),a(l)):n(l,u)}return function(e,t,n,r){try{qs=0;var o=y(e,t,n,r);return Ks=null,o}catch(t){if(t===$o||t===Go)throw t;var i=Or(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var ta=ea(!0),na=ea(!1),ra=j(null),oa=null;function ia(e){var t=e.alternate;F(ua,1&ua.current),F(ra,e),null===oa&&(null===t||null!==pi.current||null!==t.memoizedState)&&(oa=e)}function sa(e){if(22===e.tag){if(F(ua,ua.current),F(ra,e),null===oa){var t=e.alternate;null!==t&&null!==t.memoizedState&&(oa=e)}}else aa()}function aa(){F(ua,ua.current),F(ra,ra.current)}function la(e){Y(ra),oa===e&&(oa=null),Y(ua)}var ua=j(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||md(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function da(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:d({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ha={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Du(),o=oi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=ii(e,o,r))&&(Ou(t,0,r),si(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Du(),o=oi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=ii(e,o,r))&&(Ou(t,0,r),si(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Du(),r=oi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ii(e,r,n))&&(Ou(t,0,n),si(t,e,n))}};function pa(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&qn(n,r)&&qn(o,i))}function fa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ha.enqueueReplaceState(t,t.state,null)}function ma(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=d({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var ga="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function ba(e){ga(e)}function ya(e){console.error(e)}function wa(e){ga(e)}function va(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout((function(){throw e}))}}function Sa(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function Ca(e,t,n){return(n=oi(n)).tag=3,n.payload={element:null},n.callback=function(){va(e,t)},n}function _a(e){return(e=oi(e)).tag=3,e}function Ma(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Sa(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Sa(t,n,r),"function"!=typeof o&&(null===_u?_u=new Set([this]):_u.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var xa=Error(s(461)),ka=!1;function Ra(e,t,n,r){t.child=null===e?na(t,null,n,r):ta(t,e.child,n,r)}function Ta(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var a in r)"ref"!==a&&(s[a]=r[a])}else s=r;return xo(t),r=Ii(e,t,n,s,i,o),a=Oi(),null===e||ka?(oo&&a&&eo(t),t.flags|=1,Ra(e,t,r,o),t.child):(Ai(e,t,o),Ka(e,t,o))}function Ea(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ar(i)||void 0!==i.defaultProps||null!==n.compare?((e=Yr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,La(e,t,i,r,o))}if(i=e.child,!qa(e,o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:qn)(s,r)&&e.ref===t.ref)return Ka(e,t,o)}return t.flags|=1,(e=Nr(i,r)).ref=t.ref,e.return=t,t.child=e}function La(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(qn(i,r)&&e.ref===t.ref){if(ka=!1,t.pendingProps=r=i,!qa(e,o))return t.lanes=e.lanes,Ka(e,t,o);131072&e.flags&&(ka=!0)}}return Ha(e,t,n,r,o)}function Ia(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(128&t.flags){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Pa(e,t,r,n)}if(!(536870912&n))return t.lanes=t.childLanes=536870912,Pa(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Vo(0,null!==i?i.cachePool:null),null!==i?mi(t,i):gi(),sa(t)}else null!==i?(Vo(0,i.cachePool),mi(t,i),aa(),t.memoizedState=null):(null!==e&&Vo(0,null),gi(),aa());return Ra(e,t,o,n),t.child}function Pa(e,t,n,r){var o=Wo();return o=null===o?null:{parent:Po._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Vo(0,null),gi(),sa(t),null!==e&&_o(e,t,r,!0),null}function Da(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ha(e,t,n,r,o){return xo(t),n=Ii(e,t,n,r,void 0,o),r=Oi(),null===e||ka?(oo&&r&&eo(t),t.flags|=1,Ra(e,t,n,o),t.child):(Ai(e,t,o),Ka(e,t,o))}function Oa(e,t,n,r,o,i){return xo(t),t.updateQueue=null,n=Di(t,r,n,o),Pi(e),r=Oi(),null===e||ka?(oo&&r&&eo(t),t.flags|=1,Ra(e,t,n,i),t.child):(Ai(e,t,i),Ka(e,t,i))}function Aa(e,t,n,r,o){if(xo(t),null===t.stateNode){var i=Dr,s=n.contextType;"object"==typeof s&&null!==s&&(i=ko(s)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=ha,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},ni(t),s=n.contextType,i.context="object"==typeof s&&null!==s?ko(s):Dr,i.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(da(t,n,s,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(s=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&ha.enqueueReplaceState(i,i.state,null),ci(t,r,i,o),ui(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var a=t.memoizedProps,l=ma(n,a);i.props=l;var u=i.context,c=n.contextType;s=Dr,"object"==typeof c&&null!==c&&(s=ko(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a||u!==s)&&fa(t,i,r,s),ti=!1;var h=t.memoizedState;i.state=h,ci(t,r,i,o),ui(),u=t.memoizedState,a||h!==u||ti?("function"==typeof d&&(da(t,n,d,r),u=t.memoizedState),(l=ti||pa(t,n,l,r,h,u,s))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=s,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ri(e,t),c=ma(n,s=t.memoizedProps),i.props=c,d=t.pendingProps,h=i.context,u=n.contextType,l=Dr,"object"==typeof u&&null!==u&&(l=ko(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||h!==l)&&fa(t,i,r,l),ti=!1,h=t.memoizedState,i.state=h,ci(t,r,i,o),ui();var p=t.memoizedState;s!==d||h!==p||ti||null!==e&&null!==e.dependencies&&Mo(e.dependencies)?("function"==typeof a&&(da(t,n,a,r),p=t.memoizedState),(c=ti||pa(t,n,c,r,h,p,l)||null!==e&&null!==e.dependencies&&Mo(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Da(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=ta(t,e.child,null,o),t.child=ta(t,null,n,o)):Ra(e,t,n,o),t.memoizedState=i.state,e=t.child):e=Ka(e,t,o),e}function Na(e,t,n,r){return po(),t.flags|=256,Ra(e,t,n,r),t.child}var ja={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ya(e){return{baseLanes:e,cachePool:Bo()}}function Fa(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=mu),e}function za(e,t,n){var r,o=t.pendingProps,i=!1,a=!!(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&!!(2&ua.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(oo){if(i?ia(t):aa(),oo){var l,u=ro;if(l=u){e:{for(l=u,u=so;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=gd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==qr?{id:Xr,overflow:Jr}:null,retryLane:536870912,hydrationErrors:null},(l=Or(18,null,null,0)).stateNode=u,l.return=t,t.child=l,no=t,ro=null,l=!0):l=!1}l||lo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return md(u)?t.lanes=32:t.lanes=536870912,null;la(t)}return u=o.children,o=o.fallback,i?(aa(),u=Va({mode:"hidden",children:u},i=t.mode),o=Fr(o,i,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(i=t.child).memoizedState=Ya(n),i.childLanes=Fa(e,r,n),t.memoizedState=ja,o):(ia(t),Wa(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(a)256&t.flags?(ia(t),t.flags&=-257,t=Ba(e,t,n)):null!==t.memoizedState?(aa(),t.child=e.child,t.flags|=128,t=null):(aa(),i=o.fallback,u=t.mode,o=Va({mode:"visible",children:o.children},u),(i=Fr(i,u,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,ta(t,e.child,null,n),(o=t.child).memoizedState=Ya(n),o.childLanes=Fa(e,r,n),t.memoizedState=ja,t=i);else if(ia(t),md(u)){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(s(419))).stack="",o.digest=r,mo({value:o,source:null,stack:null}),t=Ba(e,t,n)}else if(ka||_o(e,t,n,!1),r=0!==(n&e.childLanes),ka||r){if(null!==(r=nu)&&0!==(o=0!==((o=42&(o=n&-n)?1:Re(o))&(r.suspendedLanes|n))?0:o)&&o!==l.retryLane)throw l.retryLane=o,Lr(e,o),Ou(r,0,o),xa;"$?"===u.data||Uu(),t=Ba(e,t,n)}else"$?"===u.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ro=gd(u.nextSibling),no=t,oo=!0,io=null,so=!1,null!==e&&(Gr[Kr++]=Xr,Gr[Kr++]=Jr,Gr[Kr++]=qr,Xr=e.id,Jr=e.overflow,qr=t),(t=Wa(t,o.children)).flags|=4096);return t}return i?(aa(),i=o.fallback,u=t.mode,c=(l=e.child).sibling,(o=Nr(l,{mode:"hidden",children:o.children})).subtreeFlags=65011712&l.subtreeFlags,null!==c?i=Nr(c,i):(i=Fr(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(u=e.child.memoizedState)?u=Ya(n):(null!==(l=u.cachePool)?(c=Po._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Bo(),u={baseLanes:u.baseLanes|n,cachePool:l}),i.memoizedState=u,i.childLanes=Fa(e,r,n),t.memoizedState=ja,o):(ia(t),e=(n=e.child).sibling,(n=Nr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Wa(e,t){return(t=Va({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Va(e,t){return(e=Or(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ba(e,t,n){return ta(t,e.child,null,n),(e=Wa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $a(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),So(e.return,t,n)}function Ua(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ra(e,t,r.children,n),2&(r=ua.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$a(e,n,t);else if(19===e.tag)$a(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(F(ua,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ua(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ca(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ua(t,!0,n,null,i);break;case"together":Ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(_o(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Nr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qa(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Mo(e))}function Xa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)ka=!0;else{if(!(qa(e,n)||128&t.flags))return ka=!1,function(e,t,n){switch(t.tag){case 3:$(t,t.stateNode.containerInfo),wo(0,Po,e.memoizedState.cache),po();break;case 27:case 5:G(t);break;case 4:$(t,t.stateNode.containerInfo);break;case 10:wo(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(ia(t),t.flags|=128,null):0!==(n&t.child.childLanes)?za(e,t,n):(ia(t),null!==(e=Ka(e,t,n))?e.sibling:null);ia(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(_o(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Ga(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),F(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Ia(e,t,n);case 24:wo(0,Po,e.memoizedState.cache)}return Ka(e,t,n)}(e,t,n);ka=!!(131072&e.flags)}else ka=!1,oo&&1048576&t.flags&&Zr(t,Ur,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,"function"!=typeof r){if(null!=r){if((o=r.$$typeof)===S){t.tag=11,t=Ta(null,t,r,e,n);break e}if(o===M){t.tag=14,t=Ea(null,t,r,e,n);break e}}throw t=I(r)||r,Error(s(306,t,""))}Ar(r)?(e=ma(r,e),t.tag=1,t=Aa(null,t,r,e,n)):(t.tag=0,t=Ha(null,t,r,e,n))}return t;case 0:return Ha(e,t,t.type,t.pendingProps,n);case 1:return Aa(e,t,r=t.type,o=ma(r,t.pendingProps),n);case 3:e:{if($(t,t.stateNode.containerInfo),null===e)throw Error(s(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,ri(e,t),ci(t,r,null,n);var a=t.memoizedState;if(r=a.cache,wo(0,Po,r),r!==i.cache&&Co(t,[Po],n,!0),ui(),r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Na(e,t,r,n);break e}if(r!==o){mo(o=_r(Error(s(424)),t)),t=Na(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ro=gd(e.firstChild),no=t,oo=!0,io=null,so=!0,n=na(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===o){t=Ka(e,t,n);break e}Ra(e,t,r,n)}t=t.child}return t;case 26:return Da(e,t),null===e?(n=Rd(t.type,null,t.pendingProps,null))?t.memoizedState=n:oo||(n=t.type,e=t.pendingProps,(r=nd(V.current).createElement(n))[Ie]=t,r[Pe]=e,Zc(r,n,e),Be(r),t.stateNode=r):t.memoizedState=Rd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),null===e&&oo&&(r=t.stateNode=wd(t.type,t.pendingProps,V.current),no=t,so=!0,o=ro,hd(t.type)?(bd=o,ro=gd(r.firstChild)):ro=o),Ra(e,t,t.pendingProps.children,n),Da(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&oo&&((o=r=ro)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[je])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=gd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,so))?(t.stateNode=r,no=t,ro=gd(r.firstChild),so=!1,o=!0):o=!1),o||lo(t)),G(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,r=i.children,id(o,i)?r=null:null!==a&&id(o,a)&&(t.flags|=32),null!==t.memoizedState&&(o=Ii(e,t,Hi,null,null,n),Gd._currentValue=o),Da(e,t),Ra(e,t,r,n),t.child;case 6:return null===e&&oo&&((e=n=ro)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=gd(e.nextSibling)))return null}return e}(n,t.pendingProps,so))?(t.stateNode=n,no=t,ro=null,e=!0):e=!1),e||lo(t)),null;case 13:return za(e,t,n);case 4:return $(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ta(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return Ta(e,t,t.type,t.pendingProps,n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,wo(0,t.type,r.value),Ra(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,xo(t),r=r(o=ko(o)),t.flags|=1,Ra(e,t,r,n),t.child;case 14:return Ea(e,t,t.type,t.pendingProps,n);case 15:return La(e,t,t.type,t.pendingProps,n);case 19:return Ga(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=Va(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Nr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ia(e,t,n);case 24:return xo(t),r=ko(Po),null===e?(null===(o=Wo())&&(o=nu,i=Do(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},ni(t),wo(0,Po,o)):(0!==(e.lanes&n)&&(ri(e,t),ci(t,null,null,n),ui()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),wo(0,Po,r)):(r=i.cache,wo(0,Po,r),r!==o.cache&&Co(t,[Po],n,!0))),Ra(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Ja(e){e.flags|=4}function Qa(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!Fd(t)){if(null!==(t=ra.current)&&((4194048&ou)===ou?null!==oa:(62914560&ou)!==ou&&!(536870912&ou)||t!==oa))throw Qo=Ko,Uo;e.flags|=8192}}function Za(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ce():536870912,e.lanes|=t,gu|=t)}function el(e,t){if(!oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return tl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),vo(Po),U(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?Ja(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,fo())),tl(t),null;case 26:return n=t.memoizedState,null===e?(Ja(t),null!==n?(tl(t),Qa(t,n)):(tl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Ja(t),tl(t),Qa(t,n)):(tl(t),t.flags&=-16777217):(e.memoizedProps!==r&&Ja(t),tl(t),t.flags&=-16777217),null;case 27:K(t),n=V.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Ja(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return tl(t),null}e=z.current,ho(t)?uo(t):(e=wd(o,r,n),t.stateNode=e,Ja(t))}return tl(t),null;case 5:if(K(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Ja(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return tl(t),null}if(e=z.current,ho(t))uo(t);else{switch(o=nd(V.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[Ie]=t,e[Pe]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Zc(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ja(t)}}return tl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Ja(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=V.current,ho(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=no))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||qc(e.nodeValue,n)))||lo(t)}else(e=nd(e).createTextNode(r))[Ie]=t,t.stateNode=e}return tl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(s(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(s(317));o[Ie]=t}else po(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;tl(t),o=!1}else o=fo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(la(t),t):(la(t),null)}if(la(t),128&t.flags)return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Za(t,t.updateQueue),tl(t),null;case 4:return U(),null===e&&Yc(t.stateNode.containerInfo),tl(t),null;case 10:return vo(t.type),tl(t),null;case 19:if(Y(ua),null===(o=t.memoizedState))return tl(t),null;if(r=!!(128&t.flags),null===(i=o.rendering))if(r)el(o,!1);else{if(0!==du||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=ca(e))){for(t.flags|=128,el(o,!1),e=i.updateQueue,t.updateQueue=e,Za(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)jr(n,e),n=n.sibling;return F(ua,1&ua.current|2),t.child}e=e.sibling}null!==o.tail&&ee()>Su&&(t.flags|=128,r=!0,el(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Za(t,e),el(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!oo)return tl(t),null}else 2*ee()-o.renderingStartTime>Su&&536870912!==n&&(t.flags|=128,r=!0,el(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,e=ua.current,F(ua,r?1&e|2:1&e),t):(tl(t),null);case 22:case 23:return la(t),bi(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(tl(t),6&t.subtreeFlags&&(t.flags|=8192)):tl(t),null!==(n=t.updateQueue)&&Za(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&Y(zo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vo(Po),tl(t),null;case 25:case 30:return null}throw Error(s(156,t.tag))}function rl(e,t){switch(to(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vo(Po),U(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return K(t),null;case 13:if(la(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Y(ua),null;case 4:return U(),null;case 10:return vo(t.type),null;case 22:case 23:return la(t),bi(),null!==e&&Y(zo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return vo(Po),null;default:return null}}function ol(e,t){switch(to(t),t.tag){case 3:vo(Po),U();break;case 26:case 27:case 5:K(t);break;case 4:U();break;case 13:la(t);break;case 19:Y(ua);break;case 10:vo(t.type);break;case 22:case 23:la(t),bi(),null!==e&&Y(zo);break;case 24:vo(Po)}}function il(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==o)}}catch(e){uc(t,t.return,e)}}function sl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var s=r.inst,a=s.destroy;if(void 0!==a){s.destroy=void 0,o=t;var l=n,u=a;try{u()}catch(e){uc(o,l,e)}}}r=r.next}while(r!==i)}}catch(e){uc(t,t.return,e)}}function al(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{hi(t,n)}catch(t){uc(e,e.return,t)}}}function ll(e,t,n){n.props=ma(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){uc(e,t,n)}}function ul(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){uc(e,t,n)}}function cl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){uc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){uc(e,t,n)}else n.current=null}function dl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){uc(e,e.return,t)}}function hl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,a=null,l=null,u=null,c=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":u=h;default:r.hasOwnProperty(f)||Jc(e,t,f,null,r,h)}}for(var p in r){var f=r[p];if(h=n[p],r.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":i=f;break;case"name":o=f;break;case"checked":c=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(s(137,t));break;default:f!==h&&Jc(e,t,p,f,r,h)}}return void mt(e,a,l,u,c,d,i,o);case"select":for(i in f=a=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":f=u;default:r.hasOwnProperty(i)||Jc(e,t,i,null,r,u)}for(o in r)if(i=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":a=i;default:i!==u&&Jc(e,t,o,i,r,u)}return t=l,n=a,r=f,void(null!=p?yt(e,!!n,p,!1):!!r!=!!n&&(null!=t?yt(e,!!n,t,!0):yt(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Jc(e,t,l,null,r,o)}for(a in r)if(o=r[a],i=n[a],r.hasOwnProperty(a)&&(null!=o||null!=i))switch(a){case"value":p=o;break;case"defaultValue":f=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(s(91));break;default:o!==i&&Jc(e,t,a,o,r,i)}return void wt(e,p,f);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:Jc(e,t,m,null,r,p));for(u in r)p=r[u],f=n[u],!r.hasOwnProperty(u)||p===f||null==p&&null==f||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:Jc(e,t,u,p,r,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&Jc(e,t,g,null,r,p);for(c in r)if(p=r[c],f=n[c],r.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:Jc(e,t,c,p,r,f)}return;default:if(xt(t)){for(var b in n)p=n[b],n.hasOwnProperty(b)&&void 0!==p&&!r.hasOwnProperty(b)&&Qc(e,t,b,void 0,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||Qc(e,t,d,p,r,f);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&Jc(e,t,y,null,r,p);for(h in r)p=r[h],f=n[h],!r.hasOwnProperty(h)||p===f||null==p&&null==f||Jc(e,t,h,p,r,f)}(r,e.type,n,t),r[Pe]=t}catch(t){uc(e,e.return,t)}}function pl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&hd(e.type)||4===e.tag}function fl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||pl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&hd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ml(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xc));else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(ml(e,t,n),e=e.sibling;null!==e;)ml(e,t,n),e=e.sibling}function gl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function bl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Zc(t,r,n),t[Ie]=e,t[Pe]=n}catch(t){uc(e,e.return,t)}}var yl=!1,wl=!1,vl=!1,Sl="function"==typeof WeakSet?WeakSet:Set,Cl=null;function _l(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Al(e,n),4&r&&il(5,n);break;case 1:if(Al(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){uc(n,n.return,e)}else{var o=ma(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){uc(n,n.return,e)}}64&r&&al(n),512&r&&ul(n,n.return);break;case 3:if(Al(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{hi(e,t)}catch(e){uc(n,n.return,e)}}break;case 27:null===t&&4&r&&bl(n);case 26:case 5:Al(e,n),null===t&&4&r&&dl(n),512&r&&ul(n,n.return);break;case 12:Al(e,n);break;case 13:Al(e,n),4&r&&El(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=pc.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||yl)){t=null!==t&&null!==t.memoizedState||wl,o=yl;var i=wl;yl=r,(wl=t)&&!i?jl(e,n,!!(8772&n.subtreeFlags)):Al(e,n),yl=o,wl=i}break;case 30:break;default:Al(e,n)}}function Ml(e){var t=e.alternate;null!==t&&(e.alternate=null,Ml(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xl=null,kl=!1;function Rl(e,t,n){for(n=n.child;null!==n;)Tl(e,t,n),n=n.sibling}function Tl(e,t,n){if(ce&&"function"==typeof ce.onCommitFiberUnmount)try{ce.onCommitFiberUnmount(ue,n)}catch(e){}switch(n.tag){case 26:wl||cl(n,t),Rl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:wl||cl(n,t);var r=xl,o=kl;hd(n.type)&&(xl=n.stateNode,kl=!1),Rl(e,t,n),vd(n.stateNode),xl=r,kl=o;break;case 5:wl||cl(n,t);case 6:if(r=xl,o=kl,xl=null,Rl(e,t,n),kl=o,null!==(xl=r))if(kl)try{(9===xl.nodeType?xl.body:"HTML"===xl.nodeName?xl.ownerDocument.body:xl).removeChild(n.stateNode)}catch(e){uc(n,t,e)}else try{xl.removeChild(n.stateNode)}catch(e){uc(n,t,e)}break;case 18:null!==xl&&(kl?(pd(9===(e=xl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Mh(e)):pd(xl,n.stateNode));break;case 4:r=xl,o=kl,xl=n.stateNode.containerInfo,kl=!0,Rl(e,t,n),xl=r,kl=o;break;case 0:case 11:case 14:case 15:wl||sl(2,n,t),wl||sl(4,n,t),Rl(e,t,n);break;case 1:wl||(cl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ll(n,t,r)),Rl(e,t,n);break;case 21:Rl(e,t,n);break;case 22:wl=(r=wl)||null!==n.memoizedState,Rl(e,t,n),wl=r;break;default:Rl(e,t,n)}}function El(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Mh(e)}catch(e){uc(t,t.return,e)}}function Ll(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Sl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Sl),t;default:throw Error(s(435,e.tag))}}(e);t.forEach((function(t){var r=fc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function Il(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 27:if(hd(l.type)){xl=l.stateNode,kl=!1;break e}break;case 5:xl=l.stateNode,kl=!1;break e;case 3:case 4:xl=l.stateNode.containerInfo,kl=!0;break e}l=l.return}if(null===xl)throw Error(s(160));Tl(i,a,o),xl=null,kl=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Dl(t,e),t=t.sibling}var Pl=null;function Dl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Il(t,e),Hl(e),4&r&&(sl(3,e,e.return),il(3,e),sl(5,e,e.return));break;case 1:Il(t,e),Hl(e),512&r&&(wl||null===n||cl(n,n.return)),64&r&&yl&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var o=Pl;if(Il(t,e),Hl(e),512&r&&(wl||null===n||cl(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[je]||i[Ie]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),Zc(i,r,n),i[Ie]=e,Be(i),r=i;break e;case"link":var a=jd("link","href",o).get(r+(n.href||""));if(a)for(var l=0;l<a.length;l++)if((i=a[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(l,1);break t}Zc(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(a=jd("meta","content",o).get(r+(n.content||"")))for(l=0;l<a.length;l++)if((i=a[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(l,1);break t}Zc(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(s(468,r))}i[Ie]=e,Be(i),r=i}e.stateNode=r}else Yd(o,e.type,e.stateNode);else e.stateNode=Dd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Yd(o,e.type,e.stateNode):Dd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&hl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Il(t,e),Hl(e),512&r&&(wl||null===n||cl(n,n.return)),null!==n&&4&r&&hl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Il(t,e),Hl(e),512&r&&(wl||null===n||cl(n,n.return)),32&e.flags){o=e.stateNode;try{St(o,"")}catch(t){uc(e,e.return,t)}}4&r&&null!=e.stateNode&&hl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(vl=!0);break;case 6:if(Il(t,e),Hl(e),4&r){if(null===e.stateNode)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){uc(e,e.return,t)}}break;case 3:if(Nd=null,o=Pl,Pl=_d(t.containerInfo),Il(t,e),Pl=o,Hl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Mh(t.containerInfo)}catch(t){uc(e,e.return,t)}vl&&(vl=!1,Ol(e));break;case 4:r=Pl,Pl=_d(e.stateNode.containerInfo),Il(t,e),Hl(e),Pl=r;break;case 12:default:Il(t,e),Hl(e);break;case 13:Il(t,e),Hl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(vu=ee()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ll(e,r));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=yl,d=wl;if(yl=c||o,wl=d||u,Il(t,e),wl=d,yl=c,Hl(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||yl||wl||Nl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,o)"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{l=u.stateNode;var h=u.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){uc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(e){uc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Ll(e,n));break;case 19:Il(t,e),Hl(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Ll(e,r));case 30:case 21:}}function Hl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(pl(r)){n=r;break}r=r.return}if(null==n)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode;gl(e,fl(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(St(i,""),n.flags&=-33),gl(e,fl(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ml(e,fl(e),a);break;default:throw Error(s(161))}}catch(t){uc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ol(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ol(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Al(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)_l(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sl(4,t,t.return),Nl(t);break;case 1:cl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ll(t,t.return,n),Nl(t);break;case 27:vd(t.stateNode);case 26:case 5:cl(t,t.return),Nl(t);break;case 22:null===t.memoizedState&&Nl(t);break;default:Nl(t)}e=e.sibling}}function jl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:jl(o,i,n),il(4,i);break;case 1:if(jl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){uc(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var a=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)di(l[o],a)}catch(e){uc(r,r.return,e)}}n&&64&s&&al(i),ul(i,i.return);break;case 27:bl(i);case 26:case 5:jl(o,i,n),n&&null===r&&4&s&&dl(i),ul(i,i.return);break;case 12:jl(o,i,n);break;case 13:jl(o,i,n),n&&4&s&&El(o,i);break;case 22:null===i.memoizedState&&jl(o,i,n),ul(i,i.return);break;case 30:break;default:jl(o,i,n)}t=t.sibling}}function Yl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ho(n))}function Fl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e))}function zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Wl(e,t,n,r),t=t.sibling}function Wl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:zl(e,t,n,r),2048&o&&il(9,t);break;case 1:case 13:default:zl(e,t,n,r);break;case 3:zl(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e)));break;case 12:if(2048&o){zl(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,a=i.onPostCommit;"function"==typeof a&&a(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){uc(t,t.return,e)}}else zl(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,null!==t.memoizedState?2&i._visibility?zl(e,t,n,r):Bl(e,t):2&i._visibility?zl(e,t,n,r):(i._visibility|=2,Vl(e,t,n,r,!!(10256&t.subtreeFlags))),2048&o&&Yl(s,t);break;case 24:zl(e,t,n,r),2048&o&&Fl(t.alternate,t)}}function Vl(e,t,n,r,o){for(o=o&&!!(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,s=t,a=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:Vl(i,s,a,l,o),il(8,s);break;case 23:break;case 22:var c=s.stateNode;null!==s.memoizedState?2&c._visibility?Vl(i,s,a,l,o):Bl(i,s):(c._visibility|=2,Vl(i,s,a,l,o)),o&&2048&u&&Yl(s.alternate,s);break;case 24:Vl(i,s,a,l,o),o&&2048&u&&Fl(s.alternate,s);break;default:Vl(i,s,a,l,o)}t=t.sibling}}function Bl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Bl(n,r),2048&o&&Yl(r.alternate,r);break;case 24:Bl(n,r),2048&o&&Fl(r.alternate,r);break;default:Bl(n,r)}t=t.sibling}}var $l=8192;function Ul(e){if(e.subtreeFlags&$l)for(e=e.child;null!==e;)Gl(e),e=e.sibling}function Gl(e){switch(e.tag){case 26:Ul(e),e.flags&$l&&null!==e.memoizedState&&function(e,t,n){if(null===zd)throw Error(s(475));var r=zd;if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var o=Td(n.href),i=e.querySelector(Ed(o));if(i)return null!==(e=i._p)&&"object"==typeof e&&"function"==typeof e.then&&(r.count++,r=Vd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Be(i);i=e.ownerDocument||e,n=Ld(n),(o=Sd.get(o))&&Od(n,o),Be(i=i.createElement("link"));var a=i;a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Zc(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(3&t.state.loading)&&(r.count++,t=Vd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Pl,e.memoizedState,e.memoizedProps);break;case 5:default:Ul(e);break;case 3:case 4:var t=Pl;Pl=_d(e.stateNode.containerInfo),Ul(e),Pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=$l,$l=16777216,Ul(e),$l=t):Ul(e))}}function Kl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function ql(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,Ql(r,e)}Kl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Xl(e),e=e.sibling}function Xl(e){switch(e.tag){case 0:case 11:case 15:ql(e),2048&e.flags&&sl(9,e,e.return);break;case 3:case 12:default:ql(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Jl(e)):ql(e)}}function Jl(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Cl=r,Ql(r,e)}Kl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:sl(8,t,t.return),Jl(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Jl(t));break;default:Jl(t)}e=e.sibling}}function Ql(e,t){for(;null!==Cl;){var n=Cl;switch(n.tag){case 0:case 11:case 15:sl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ho(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Cl=r;else e:for(n=e;null!==Cl;){var o=(r=Cl).sibling,i=r.return;if(Ml(r),r===n){Cl=null;break e}if(null!==o){o.return=i,Cl=o;break e}Cl=i}}}var Zl={getCacheForType:function(e){var t=ko(Po),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},eu="function"==typeof WeakMap?WeakMap:Map,tu=0,nu=null,ru=null,ou=0,iu=0,su=null,au=!1,lu=!1,uu=!1,cu=0,du=0,hu=0,pu=0,fu=0,mu=0,gu=0,bu=null,yu=null,wu=!1,vu=0,Su=1/0,Cu=null,_u=null,Mu=0,xu=null,ku=null,Ru=0,Tu=0,Eu=null,Lu=null,Iu=0,Pu=null;function Du(){return 2&tu&&0!==ou?ou&-ou:null!==D.T?0!==No?No:Tc():Ee()}function Hu(){0===mu&&(mu=536870912&ou&&!oo?536870912:Se());var e=ra.current;return null!==e&&(e.flags|=32),mu}function Ou(e,t,n){(e!==nu||2!==iu&&9!==iu)&&null===e.cancelPendingCommit||(Wu(e,0),Yu(e,ou,mu,!1)),Me(e,n),2&tu&&e===nu||(e===nu&&(!(2&tu)&&(pu|=n),4===du&&Yu(e,ou,mu,!1)),Sc(e))}function Au(e,t,n){if(6&tu)throw Error(s(327));for(var r=!n&&!(124&t)&&0===(t&e.expiredLanes)||we(e,t),o=r?function(e,t){var n=tu;tu|=2;var r=Bu(),o=$u();nu!==e||ou!==t?(Cu=null,Su=ee()+500,Wu(e,t)):lu=we(e,t);e:for(;;)try{if(0!==iu&&null!==ru){t=ru;var i=su;t:switch(iu){case 1:iu=0,su=null,Qu(e,t,i,1);break;case 2:case 9:if(qo(i)){iu=0,su=null,Ju(t);break}t=function(){2!==iu&&9!==iu||nu!==e||(iu=7),Sc(e)},i.then(t,t);break e;case 3:iu=7;break e;case 4:iu=5;break e;case 7:qo(i)?(iu=0,su=null,Ju(t)):(iu=0,su=null,Qu(e,t,i,7));break;case 5:var a=null;switch(ru.tag){case 26:a=ru.memoizedState;case 5:case 27:var l=ru;if(!a||Fd(a)){iu=0,su=null;var u=l.sibling;if(null!==u)ru=u;else{var c=l.return;null!==c?(ru=c,Zu(c)):ru=null}break t}}iu=0,su=null,Qu(e,t,i,5);break;case 6:iu=0,su=null,Qu(e,t,i,6);break;case 8:zu(),du=6;break e;default:throw Error(s(462))}}qu();break}catch(t){Vu(e,t)}return yo=bo=null,D.H=r,D.A=o,tu=n,null!==ru?0:(nu=null,ou=0,Rr(),du)}(e,t):Gu(e,t,!0),i=r;;){if(0===o){lu&&!r&&Yu(e,t,0,!1);break}if(n=e.current.alternate,!i||ju(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var a=0;else a=0!=(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var l=e;o=bu;var u=l.current.memoizedState.isDehydrated;if(u&&(Wu(l,a).flags|=256),2!==(a=Gu(l,a,!1))){if(uu&&!u){l.errorRecoveryDisabledLanes|=i,pu|=i,o=4;break e}i=yu,yu=o,null!==i&&(null===yu?yu=i:yu.push.apply(yu,i))}o=a}if(i=!1,2!==o)continue}}if(1===o){Wu(e,0),Yu(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(s(345));case 4:if((4194048&t)!==t)break;case 6:Yu(r,t,mu,!au);break e;case 2:yu=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&t)===t&&10<(o=vu+300-ee())){if(Yu(r,t,mu,!au),0!==ye(r,0,!0))break e;r.timeoutHandle=ad(Nu.bind(null,r,n,yu,Cu,wu,t,mu,pu,gu,au,i,2,-0,0),o)}else Nu(r,n,yu,Cu,wu,t,mu,pu,gu,au,i,0,-0,0)}break}o=Gu(e,t,!1),i=!1}Sc(e)}function Nu(e,t,n,r,o,i,a,l,u,c,d,h,p,f){if(e.timeoutHandle=-1,(8192&(h=t.subtreeFlags)||!(16785408&~h))&&(zd={stylesheets:null,count:0,unsuspend:Wd},Gl(t),null!==(h=function(){if(null===zd)throw Error(s(475));var e=zd;return e.stylesheets&&0===e.count&&$d(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&$d(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=h(tc.bind(null,e,t,i,n,r,o,a,l,u,d,1,p,f)),void Yu(e,i,a,!c);tc(e,t,i,n,r,o,a,l,u)}function ju(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Kn(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yu(e,t,n,r){t&=~fu,t&=~pu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-he(o),s=1<<i;r[i]=-1,o&=~s}0!==n&&xe(e,n,t)}function Fu(){return!!(6&tu)||(Cc(0,!1),!1)}function zu(){if(null!==ru){if(0===iu)var e=ru.return;else yo=bo=null,Ni(e=ru),Ks=null,qs=0,e=ru;for(;null!==e;)ol(e.alternate,e),e=e.return;ru=null}}function Wu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,ld(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zu(),nu=e,ru=n=Nr(e.current,null),ou=t,iu=0,su=null,au=!1,lu=we(e,t),uu=!1,gu=mu=fu=pu=hu=du=0,yu=bu=null,wu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-he(r),i=1<<o;t|=e[o],r&=~i}return cu=t,Rr(),n}function Vu(e,t){wi=null,D.H=Bs,t===$o||t===Go?(t=Zo(),iu=3):t===Uo?(t=Zo(),iu=4):iu=t===xa?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,su=t,null===ru&&(du=1,va(e,_r(t,e.current)))}function Bu(){var e=D.H;return D.H=Bs,null===e?Bs:e}function $u(){var e=D.A;return D.A=Zl,e}function Uu(){du=4,au||(4194048&ou)!==ou&&null!==ra.current||(lu=!0),!(134217727&hu)&&!(134217727&pu)||null===nu||Yu(nu,ou,mu,!1)}function Gu(e,t,n){var r=tu;tu|=2;var o=Bu(),i=$u();nu===e&&ou===t||(Cu=null,Wu(e,t)),t=!1;var s=du;e:for(;;)try{if(0!==iu&&null!==ru){var a=ru,l=su;switch(iu){case 8:zu(),s=6;break e;case 3:case 2:case 9:case 6:null===ra.current&&(t=!0);var u=iu;if(iu=0,su=null,Qu(e,a,l,u),n&&lu){s=0;break e}break;default:u=iu,iu=0,su=null,Qu(e,a,l,u)}}Ku(),s=du;break}catch(t){Vu(e,t)}return t&&e.shellSuspendCounter++,yo=bo=null,tu=r,D.H=o,D.A=i,null===ru&&(nu=null,ou=0,Rr()),s}function Ku(){for(;null!==ru;)Xu(ru)}function qu(){for(;null!==ru&&!Q();)Xu(ru)}function Xu(e){var t=Xa(e.alternate,e,cu);e.memoizedProps=e.pendingProps,null===t?Zu(e):ru=t}function Ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Oa(n,t,t.pendingProps,t.type,void 0,ou);break;case 11:t=Oa(n,t,t.pendingProps,t.type.render,t.ref,ou);break;case 5:Ni(t);default:ol(n,t),t=Xa(n,t=ru=jr(t,cu),cu)}e.memoizedProps=e.pendingProps,null===t?Zu(e):ru=t}function Qu(e,t,n,r){yo=bo=null,Ni(t),Ks=null,qs=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&_o(t,n,o,!0),null!==(n=ra.current)){switch(n.tag){case 13:return null===oa?Uu():null===n.alternate&&0===du&&(du=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===Ko?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),cc(e,r,o)),!1;case 22:return n.flags|=65536,r===Ko?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),cc(e,r,o)),!1}throw Error(s(435,n.tag))}return cc(e,r,o),Uu(),!1}if(oo)return null!==(t=ra.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==ao&&mo(_r(e=Error(s(422),{cause:r}),n))):(r!==ao&&mo(_r(t=Error(s(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=_r(r,n),ai(e,o=Ca(e.stateNode,r,o)),4!==du&&(du=2)),!1;var i=Error(s(520),{cause:r});if(i=_r(i,n),null===bu?bu=[i]:bu.push(i),4!==du&&(du=2),null===t)return!0;r=_r(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,ai(n,e=Ca(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==_u&&_u.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Ma(o=_a(o),e,n,r),ai(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,ou))return du=1,va(e,_r(n,e.current)),void(ru=null)}catch(t){if(null!==o)throw ru=o,t;return du=1,va(e,_r(n,e.current)),void(ru=null)}32768&t.flags?(oo||1===r?e=!0:lu||536870912&ou?e=!1:(au=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=ra.current)&&13===r.tag&&(r.flags|=16384)),ec(t,e)):Zu(t)}function Zu(e){var t=e;do{if(32768&t.flags)return void ec(t,au);e=t.return;var n=nl(t.alternate,t,cu);if(null!==n)return void(ru=n);if(null!==(t=t.sibling))return void(ru=t);ru=t=e}while(null!==t);0===du&&(du=5)}function ec(e,t){do{var n=rl(e.alternate,e);if(null!==n)return n.flags&=32767,void(ru=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(ru=e);ru=e=n}while(null!==e);du=6,ru=null}function tc(e,t,n,r,o,i,a,l,u){e.cancelPendingCommit=null;do{sc()}while(0!==Mu);if(6&tu)throw Error(s(327));if(null!==t){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-he(n),d=1<<c;a[c]=0,l[c]=-1;var h=u[c];if(null!==h)for(u[c]=null,c=0;c<h.length;c++){var p=h[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&xe(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,n,i|=kr,a,l,u),e===nu&&(ru=nu=null,ou=0),ku=t,xu=e,Ru=n,Tu=i,Eu=o,Lu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,X(oe,(function(){return ac(),null}))):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=D.T,D.T=null,o=H.p,H.p=2,a=tu,tu|=4;try{!function(e,t){if(e=e.containerInfo,ed=Zd,er(e=Zn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==o&&3!==h.nodeType||(l=a+o),h!==i||0!==r&&3!==h.nodeType||(u=a+r),3===h.nodeType&&(a+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===o&&(l=a),p===i&&++d===r&&(u=a),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(td={focusedElem:e,selectionRange:n},Zd=!1,Cl=t;null!==Cl;)if(e=(t=Cl).child,1024&t.subtreeFlags&&null!==e)e.return=t,Cl=e;else for(;null!==Cl;){switch(i=(t=Cl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=ma(n.type,o,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){uc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))fd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,Cl=e;break}Cl=t.return}}(e,t)}finally{tu=a,H.p=o,D.T=r}}Mu=1,nc(),rc(),oc()}}function nc(){if(1===Mu){Mu=0;var e=xu,t=ku,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=H.p;H.p=2;var o=tu;tu|=4;try{Dl(t,e);var i=td,s=Zn(e.containerInfo),a=i.focusedElem,l=i.selectionRange;if(s!==a&&a&&a.ownerDocument&&Qn(a.ownerDocument.documentElement,a)){if(null!==l&&er(a)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in a)a.selectionStart=u,a.selectionEnd=Math.min(c,a.value.length);else{var d=a.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=a.textContent.length,m=Math.min(l.start,f),g=void 0===l.end?m:Math.min(l.end,f);!p.extend&&m>g&&(s=g,g=m,m=s);var b=Jn(a,m),y=Jn(a,g);if(b&&y&&(1!==p.rangeCount||p.anchorNode!==b.node||p.anchorOffset!==b.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var w=d.createRange();w.setStart(b.node,b.offset),p.removeAllRanges(),m>g?(p.addRange(w),p.extend(y.node,y.offset)):(w.setEnd(y.node,y.offset),p.addRange(w))}}}}for(d=[],p=a;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var v=d[a];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Zd=!!ed,td=ed=null}finally{tu=o,H.p=r,D.T=n}}e.current=t,Mu=2}}function rc(){if(2===Mu){Mu=0;var e=xu,t=ku,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=H.p;H.p=2;var o=tu;tu|=4;try{_l(e,t.alternate,t)}finally{tu=o,H.p=r,D.T=n}}Mu=3}}function oc(){if(4===Mu||3===Mu){Mu=0,Z();var e=xu,t=ku,n=Ru,r=Lu;10256&t.subtreeFlags||10256&t.flags?Mu=5:(Mu=0,ku=xu=null,ic(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(_u=null),Te(n),t=t.stateNode,ce&&"function"==typeof ce.onCommitFiberRoot)try{ce.onCommitFiberRoot(ue,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=D.T,o=H.p,H.p=2,D.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var a=r[s];i(a.value,{componentStack:a.stack})}}finally{D.T=t,H.p=o}}3&Ru&&sc(),Sc(e),o=e.pendingLanes,4194090&n&&42&o?e===Pu?Iu++:(Iu=0,Pu=e):Iu=0,Cc(0,!1)}}function ic(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ho(t))}function sc(e){return nc(),rc(),oc(),ac()}function ac(){if(5!==Mu)return!1;var e=xu,t=Tu;Tu=0;var n=Te(Ru),r=D.T,o=H.p;try{H.p=32>n?32:n,D.T=null,n=Eu,Eu=null;var i=xu,a=Ru;if(Mu=0,ku=xu=null,Ru=0,6&tu)throw Error(s(331));var l=tu;if(tu|=4,Xl(i.current),Wl(i,i.current,a,n),tu=l,Cc(0,!1),ce&&"function"==typeof ce.onPostCommitFiberRoot)try{ce.onPostCommitFiberRoot(ue,i)}catch(e){}return!0}finally{H.p=o,D.T=r,ic(e,t)}}function lc(e,t,n){t=_r(n,t),null!==(e=ii(e,t=Ca(e.stateNode,t,2),2))&&(Me(e,2),Sc(e))}function uc(e,t,n){if(3===e.tag)lc(e,e,n);else for(;null!==t;){if(3===t.tag){lc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===_u||!_u.has(r))){e=_r(n,e),null!==(r=ii(t,n=_a(2),2))&&(Ma(n,r,t,e),Me(r,2),Sc(r));break}}t=t.return}}function cc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new eu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(uu=!0,o.add(n),e=dc.bind(null,e,t,n),t.then(e,e))}function dc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nu===e&&(ou&n)===n&&(4===du||3===du&&(62914560&ou)===ou&&300>ee()-vu?!(2&tu)&&Wu(e,0):fu|=n,gu===ou&&(gu=0)),Sc(e)}function hc(e,t){0===t&&(t=Ce()),null!==(e=Lr(e,t))&&(Me(e,t),Sc(e))}function pc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hc(e,n)}function fc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),hc(e,n)}var mc=null,gc=null,bc=!1,yc=!1,wc=!1,vc=0;function Sc(e){e!==gc&&null===e.next&&(null===gc?mc=gc=e:gc=gc.next=e),yc=!0,bc||(bc=!0,cd((function(){6&tu?X(ne,_c):Mc()})))}function Cc(e,t){if(!wc&&yc){wc=!0;do{for(var n=!1,r=mc;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var s=r.suspendedLanes,a=r.pingedLanes;i=(1<<31-he(42|e)+1)-1,i=201326741&(i&=o&~(s&~a))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Rc(r,i))}else i=ou,!(3&(i=ye(r,r===nu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||we(r,i)||(n=!0,Rc(r,i));r=r.next}}while(n);wc=!1}}function _c(){Mc()}function Mc(){yc=bc=!1;var e,t=0;0!==vc&&(((e=window.event)&&"popstate"===e.type?e!==sd&&(sd=e,!0):(sd=null,!1))&&(t=vc),vc=0);for(var n=ee(),r=null,o=mc;null!==o;){var i=o.next,s=xc(o,n);0===s?(o.next=null,null===r?mc=i:r.next=i,null===i&&(gc=r)):(r=o,(0!==t||3&s)&&(yc=!0)),o=i}Cc(t,!1)}function xc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-he(i),a=1<<s,l=o[s];-1===l?0!==(a&n)&&0===(a&r)||(o[s]=ve(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}if(n=ou,n=ye(e,e===(t=nu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===iu||9===iu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&J(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||we(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&J(r),Te(n)){case 2:case 8:n=re;break;case 32:default:n=oe;break;case 268435456:n=se}return r=kc.bind(null,e),n=X(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&J(r),e.callbackPriority=2,e.callbackNode=null,2}function kc(e,t){if(0!==Mu&&5!==Mu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sc()&&e.callbackNode!==n)return null;var r=ou;return 0===(r=ye(e,e===nu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Au(e,r,t),xc(e,ee()),null!=e.callbackNode&&e.callbackNode===n?kc.bind(null,e):null)}function Rc(e,t){if(sc())return null;Au(e,t,!0)}function Tc(){return 0===vc&&(vc=Se()),vc}function Ec(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Tt(""+e)}function Lc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ic=0;Ic<vr.length;Ic++){var Pc=vr[Ic];Sr(Pc.toLowerCase(),"on"+(Pc[0].toUpperCase()+Pc.slice(1)))}Sr(hr,"onAnimationEnd"),Sr(pr,"onAnimationIteration"),Sr(fr,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(mr,"onTransitionRun"),Sr(gr,"onTransitionStart"),Sr(br,"onTransitionCancel"),Sr(yr,"onTransitionEnd"),Ke("onMouseEnter",["mouseout","mouseover"]),Ke("onMouseLeave",["mouseout","mouseover"]),Ke("onPointerEnter",["pointerout","pointerover"]),Ke("onPointerLeave",["pointerout","pointerover"]),Ge("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ge("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ge("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ge("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ge("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dc));function Oc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(e){ga(e)}o.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;i=a,o.currentTarget=u;try{i(o)}catch(e){ga(e)}o.currentTarget=null,i=l}}}}function Ac(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(Fc(t,e,2,!1),n.add(r))}function Nc(e,t,n){var r=0;t&&(r|=4),Fc(n,e,r,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function Yc(e){if(!e[jc]){e[jc]=!0,$e.forEach((function(t){"selectionchange"!==t&&(Hc.has(t)||Nc(t,!1,e),Nc(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[jc]||(t[jc]=!0,Nc("selectionchange",!1,t))}}function Fc(e,t,n,r){switch(sh(t)){case 2:var o=eh;break;case 8:o=th;break;default:o=nh}n=o.bind(null,t,n,e),o=void 0,!jt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zc(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Fe(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=i=s;continue e}l=l.parentNode}}r=r.return}Ot((function(){var r=i,o=Lt(n),s=[];e:{var l=wr.get(e);if(void 0!==l){var u=Qt,c=e;switch(e){case"keypress":if(0===Bt(n))break e;case"keydown":case"keyup":u=fn;break;case"focusin":c="focus",u=on;break;case"focusout":c="blur",u=on;break;case"beforeblur":case"afterblur":u=on;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=gn;break;case hr:case pr:case fr:u=sn;break;case yr:u=bn;break;case"scroll":case"scrollend":u=en;break;case"wheel":u=yn;break;case"copy":case"cut":case"paste":u=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=mn;break;case"toggle":case"beforetoggle":u=wn}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var f,m=r;null!==m;){var g=m;if(f=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===f||null===p||null!=(g=At(m,p))&&d.push(Wc(m,g,f)),h)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Et||!(c=n.relatedTarget||n.fromElement)||!Fe(c)&&!c[De])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Fe(c):null)&&(h=a(c),d=c.tag,c!==h||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=nn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=mn,g="onPointerLeave",p="onPointerEnter",m="pointer"),h=null==u?l:We(u),f=null==c?l:We(c),(l=new d(g,m+"leave",u,n,o)).target=h,l.relatedTarget=f,g=null,Fe(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=f,d.relatedTarget=h,g=d),h=g,u&&c)e:{for(p=c,m=0,f=d=u;f;f=Bc(f))m++;for(f=0,g=p;g;g=Bc(g))f++;for(;0<m-f;)d=Bc(d),m--;for(;0<f-m;)p=Bc(p),f--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=Bc(d),p=Bc(p)}d=null}else d=null;null!==u&&$c(s,l,u,d,!1),null!==c&&null!==h&&$c(s,h,c,d,!0)}if("select"===(u=(l=r?We(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var b=Nn;else if(In(l))if(jn)b=Gn;else{b=$n;var y=Bn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&xt(r.elementType)&&(b=Nn):b=Un;switch(b&&(b=b(e,r))?Pn(s,b,n,o):(y&&y(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&bt(l,"number",l.value)),y=r?We(r):window,e){case"focusin":(In(y)||"true"===y.contentEditable)&&(nr=y,rr=r,or=null);break;case"focusout":or=rr=nr=null;break;case"mousedown":ir=!0;break;case"contextmenu":case"mouseup":case"dragend":ir=!1,sr(s,n,o);break;case"selectionchange":if(tr)break;case"keydown":case"keyup":sr(s,n,o)}var w;if(Sn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else En?Rn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Mn&&"ko"!==n.locale&&(En||"onCompositionStart"!==v?"onCompositionEnd"===v&&En&&(w=Vt()):(zt="value"in(Ft=o)?Ft.value:Ft.textContent,En=!0)),0<(y=Vc(r,v)).length&&(v=new ln(v,e,null,n,o),s.push({event:v,listeners:y}),(w||null!==(w=Tn(n)))&&(v.data=w))),(w=_n?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(kn=!0,xn);case"textInput":return(e=t.data)===xn&&kn?null:e;default:return null}}(e,n):function(e,t){if(En)return"compositionend"===e||!Sn&&Rn(e,t)?(e=Vt(),Wt=zt=Ft=null,En=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(v=Vc(r,"onBeforeInput")).length&&(y=new ln("onBeforeInput","beforeinput",null,n,o),s.push({event:y,listeners:v}),y.data=w),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Ec((o[Pe]||null).action),s=r.submitter;s&&null!==(t=(t=s[Pe]||null)?Ec(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var a=new Qt("action","action",null,r,o);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==vc){var e=s?Lc(o,s):new FormData(o);Ls(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(a.preventDefault(),e=s?Lc(o,s):new FormData(o),Ls(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Oc(s,t)}))}function Wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=At(e,n))&&r.unshift(Wc(e,o,i)),null!=(o=At(e,t))&&r.push(Wc(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Bc(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function $c(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(a=a.tag,null!==l&&l===r)break;5!==a&&26!==a&&27!==a||null===u||(l=u,o?null!=(u=At(n,i))&&s.unshift(Wc(n,u,l)):o||null!=(u=At(n,i))&&s.push(Wc(n,u,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Uc=/\r\n?/g,Gc=/\u0000|\uFFFD/g;function Kc(e){return("string"==typeof e?e:""+e).replace(Uc,"\n").replace(Gc,"")}function qc(e,t){return t=Kc(t),Kc(e)===t}function Xc(){}function Jc(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||St(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&St(e,""+r);break;case"className":tt(e,"class",r);break;case"tabIndex":tt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":tt(e,n,r);break;case"style":Mt(e,r,i);break;case"data":if("object"!==t){tt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Tt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&Jc(e,t,"name",o.name,o,null),Jc(e,t,"formEncType",o.formEncType,o,null),Jc(e,t,"formMethod",o.formMethod,o,null),Jc(e,t,"formTarget",o.formTarget,o,null)):(Jc(e,t,"encType",o.encType,o,null),Jc(e,t,"method",o.method,o,null),Jc(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Tt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Xc);break;case"onScroll":null!=r&&Ac("scroll",e);break;case"onScrollEnd":null!=r&&Ac("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Tt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ac("beforetoggle",e),Ac("toggle",e),et(e,"popover",r);break;case"xlinkActuate":nt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":nt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":nt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":nt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":nt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":nt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":nt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":nt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":nt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":et(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&et(e,n=kt.get(n)||n,r)}}function Qc(e,t,n,r,o,i){switch(n){case"style":Mt(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"==typeof r?St(e,r):("number"==typeof r||"bigint"==typeof r)&&St(e,""+r);break;case"onScroll":null!=r&&Ac("scroll",e);break;case"onScrollEnd":null!=r&&Ac("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Xc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ue.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[Pe]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):et(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function Zc(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ac("error",e),Ac("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Jc(e,t,r,a,n,null)}}return i&&Jc(e,t,"srcSet",n.srcSet,n,null),void(o&&Jc(e,t,"src",n.src,n,null));case"input":Ac("invalid",e);var l=r=a=i=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(s(137,t));break;default:Jc(e,t,o,d,n,null)}}return gt(e,r,l,u,c,a,i,!1),void ct(e);case"select":for(i in Ac("invalid",e),o=a=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":a=l;break;case"multiple":o=l;default:Jc(e,t,i,l,n,null)}return t=r,n=a,e.multiple=!!o,void(null!=t?yt(e,!!o,t,!1):null!=n&&yt(e,!!o,n,!0));case"textarea":for(a in Ac("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(s(91));break;default:Jc(e,t,a,l,n,null)}return vt(e,o,i,r),void ct(e);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(o=n[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:Jc(e,t,u,o,n,null));return;case"dialog":Ac("beforetoggle",e),Ac("toggle",e),Ac("cancel",e),Ac("close",e);break;case"iframe":case"object":Ac("load",e);break;case"video":case"audio":for(o=0;o<Dc.length;o++)Ac(Dc[o],e);break;case"image":Ac("error",e),Ac("load",e);break;case"details":Ac("toggle",e);break;case"embed":case"source":case"link":Ac("error",e),Ac("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Jc(e,t,c,o,n,null)}return;default:if(xt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&Qc(e,t,d,o,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(o=n[l])&&Jc(e,t,l,o,n,null)}var ed=null,td=null;function nd(e){return 9===e.nodeType?e:e.ownerDocument}function rd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function od(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function id(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sd=null,ad="function"==typeof setTimeout?setTimeout:void 0,ld="function"==typeof clearTimeout?clearTimeout:void 0,ud="function"==typeof Promise?Promise:void 0,cd="function"==typeof queueMicrotask?queueMicrotask:void 0!==ud?function(e){return ud.resolve(null).then(e).catch(dd)}:ad;function dd(e){setTimeout((function(){throw e}))}function hd(e){return"head"===e}function pd(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(1&n&&vd(s.documentElement),2&n&&vd(s.body),4&n)for(vd(n=s.head),s=n.firstChild;s;){var a=s.nextSibling,l=s.nodeName;s[je]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=a}}if(0===o)return e.removeChild(i),void Mh(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);Mh(t)}function fd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":fd(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function md(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function gd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var bd=null;function yd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function wd(e,t,n){switch(t=nd(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}function vd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Sd=new Map,Cd=new Set;function _d(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Md=H.d;H.d={f:function(){var e=Md.f(),t=Fu();return e||t},r:function(e){var t=ze(e);null!==t&&5===t.tag&&"form"===t.type?Ps(t):Md.r(e)},D:function(e){Md.D(e),kd("dns-prefetch",e,null)},C:function(e,t){Md.C(e,t),kd("preconnect",e,t)},L:function(e,t,n){Md.L(e,t,n);var r=xd;if(r&&e&&t){var o='link[rel="preload"][as="'+ft(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+ft(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+ft(n.imageSizes)+'"]')):o+='[href="'+ft(e)+'"]';var i=o;switch(t){case"style":i=Td(e);break;case"script":i=Id(e)}Sd.has(i)||(e=d({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Sd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Ed(i))||"script"===t&&r.querySelector(Pd(i))||(Zc(t=r.createElement("link"),"link",e),Be(t),r.head.appendChild(t)))}},m:function(e,t){Md.m(e,t);var n=xd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+ft(r)+'"][href="'+ft(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Id(e)}if(!Sd.has(i)&&(e=d({rel:"modulepreload",href:e},t),Sd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Pd(i)))return}Zc(r=n.createElement("link"),"link",e),Be(r),n.head.appendChild(r)}}},X:function(e,t){Md.X(e,t);var n=xd;if(n&&e){var r=Ve(n).hoistableScripts,o=Id(e),i=r.get(o);i||((i=n.querySelector(Pd(o)))||(e=d({src:e,async:!0},t),(t=Sd.get(o))&&Ad(e,t),Be(i=n.createElement("script")),Zc(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Md.S(e,t,n);var r=xd;if(r&&e){var o=Ve(r).hoistableStyles,i=Td(e);t=t||"default";var s=o.get(i);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(Ed(i)))a.loading=5;else{e=d({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Sd.get(i))&&Od(e,n);var l=s=r.createElement("link");Be(l),Zc(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){a.loading|=1})),l.addEventListener("error",(function(){a.loading|=2})),a.loading|=4,Hd(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:a},o.set(i,s)}}},M:function(e,t){Md.M(e,t);var n=xd;if(n&&e){var r=Ve(n).hoistableScripts,o=Id(e),i=r.get(o);i||((i=n.querySelector(Pd(o)))||(e=d({src:e,async:!0,type:"module"},t),(t=Sd.get(o))&&Ad(e,t),Be(i=n.createElement("script")),Zc(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var xd="undefined"==typeof document?null:document;function kd(e,t,n){var r=xd;if(r&&"string"==typeof t&&t){var o=ft(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Cd.has(o)||(Cd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(Zc(t=r.createElement("link"),"link",e),Be(t),r.head.appendChild(t)))}}function Rd(e,t,n,r){var o,i,a,l,u=(u=V.current)?_d(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Td(n.href),(r=(n=Ve(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Td(n.href);var c=Ve(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Ed(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Sd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sd.set(e,n),c||(o=u,i=e,a=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",(function(){return l.loading|=1})),i.addEventListener("error",(function(){return l.loading|=2})),Zc(i,"link",a),Be(i),o.head.appendChild(i))))),t&&null===r)throw Error(s(528,""));return d}if(t&&null!==r)throw Error(s(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Id(n),(r=(n=Ve(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Td(e){return'href="'+ft(e)+'"'}function Ed(e){return'link[rel="stylesheet"]['+e+"]"}function Ld(e){return d({},e,{"data-precedence":e.precedence,precedence:null})}function Id(e){return'[src="'+ft(e)+'"]'}function Pd(e){return"script[async]"+e}function Dd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ft(n.href)+'"]');if(r)return t.instance=r,Be(r),r;var o=d({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Be(r=(e.ownerDocument||e).createElement("style")),Zc(r,"style",o),Hd(r,n.precedence,e),t.instance=r;case"stylesheet":o=Td(n.href);var i=e.querySelector(Ed(o));if(i)return t.state.loading|=4,t.instance=i,Be(i),i;r=Ld(n),(o=Sd.get(o))&&Od(r,o),Be(i=(e.ownerDocument||e).createElement("link"));var a=i;return a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Zc(i,"link",r),t.state.loading|=4,Hd(i,n.precedence,e),t.instance=i;case"script":return i=Id(n.src),(o=e.querySelector(Pd(i)))?(t.instance=o,Be(o),o):(r=n,(o=Sd.get(i))&&Ad(r=d({},n),o),Be(o=(e=e.ownerDocument||e).createElement("script")),Zc(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Hd(r,n.precedence,e));return t.instance}function Hd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===t)i=a;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Od(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Ad(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Nd=null;function jd(e,t,n){if(null===Nd){var r=new Map,o=Nd=new Map;o.set(n,r)}else(r=(o=Nd).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[je]||i[Ie]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var a=r.get(s);a?a.push(i):r.set(s,[i])}}return r}function Yd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Fd(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var zd=null;function Wd(){}function Vd(){if(this.count--,0===this.count)if(this.stylesheets)$d(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Bd=null;function $d(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Bd=new Map,t.forEach(Ud,e),Bd=null,Vd.call(e))}function Ud(e,t){if(!(4&t.state.loading)){var n=Bd.get(e);if(n)var r=n.get(null);else{n=new Map,Bd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var s=o[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(o=t.instance).getAttribute("data-precedence"),(i=n.get(s)||r)===r&&n.set(null,o),n.set(s,o),this.count++,r=Vd.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Gd={$$typeof:v,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_threadCount:0};function Kd(e,t,n,r,o,i,s,a){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_e(0),this.hiddenUpdates=_e(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function qd(e,t,n,r,o,i){o=function(e){return e?e=Dr:Dr}(o),null===r.context?r.context=o:r.pendingContext=o,(r=oi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=ii(e,r,t))&&(Ou(n,0,t),si(n,e,t))}function Xd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Jd(e,t){Xd(e,t),(e=e.alternate)&&Xd(e,t)}function Qd(e){if(13===e.tag){var t=Lr(e,67108864);null!==t&&Ou(t,0,67108864),Jd(e,67108864)}}var Zd=!0;function eh(e,t,n,r){var o=D.T;D.T=null;var i=H.p;try{H.p=2,nh(e,t,n,r)}finally{H.p=i,D.T=o}}function th(e,t,n,r){var o=D.T;D.T=null;var i=H.p;try{H.p=8,nh(e,t,n,r)}finally{H.p=i,D.T=o}}function nh(e,t,n,r){if(Zd){var o=rh(r);if(null===o)zc(e,t,r,oh,n),mh(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return lh=gh(lh,e,t,n,r,o),!0;case"dragenter":return uh=gh(uh,e,t,n,r,o),!0;case"mouseover":return ch=gh(ch,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return dh.set(i,gh(dh.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,hh.set(i,gh(hh.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(mh(e,r),4&t&&-1<fh.indexOf(e)){for(;null!==o;){var i=ze(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=be(i.pendingLanes);if(0!==s){var a=i;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-he(s);a.entanglements[1]|=l,s&=~l}Sc(i),!(6&tu)&&(Su=ee()+500,Cc(0,!1))}}break;case 13:null!==(a=Lr(i,2))&&Ou(a,0,2),Fu(),Jd(i,2)}if(null===(i=rh(r))&&zc(e,t,r,oh,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else zc(e,t,r,null,n)}}function rh(e){return ih(e=Lt(e))}var oh=null;function ih(e){if(oh=null,null!==(e=Fe(e))){var t=a(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=l(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return oh=e,null}function sh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(te()){case ne:return 2;case re:return 8;case oe:case ie:return 32;case se:return 268435456;default:return 32}default:return 32}}var ah=!1,lh=null,uh=null,ch=null,dh=new Map,hh=new Map,ph=[],fh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function mh(e,t){switch(e){case"focusin":case"focusout":lh=null;break;case"dragenter":case"dragleave":uh=null;break;case"mouseover":case"mouseout":ch=null;break;case"pointerover":case"pointerout":dh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hh.delete(t.pointerId)}}function gh(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=ze(t))&&Qd(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function bh(e){var t=Fe(e.target);if(null!==t){var n=a(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=l(n)))return e.blockedOn=t,void function(e){var t=H.p;try{return H.p=e,function(){if(13===n.tag){var e=Du();e=Re(e);var t=Lr(n,e);null!==t&&Ou(t,0,e),Jd(n,e)}}()}finally{H.p=t}}(e.priority)}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=rh(e.nativeEvent);if(null!==n)return null!==(t=ze(n))&&Qd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Et=r,n.target.dispatchEvent(r),Et=null,t.shift()}return!0}function wh(e,t,n){yh(e)&&n.delete(t)}function vh(){ah=!1,null!==lh&&yh(lh)&&(lh=null),null!==uh&&yh(uh)&&(uh=null),null!==ch&&yh(ch)&&(ch=null),dh.forEach(wh),hh.forEach(wh)}function Sh(e,t){e.blockedOn===t&&(e.blockedOn=null,ah||(ah=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,vh)))}var Ch=null;function _h(e){Ch!==e&&(Ch=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){Ch===e&&(Ch=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===ih(r||n))continue;break}var i=ze(n);null!==i&&(e.splice(t,3),t-=3,Ls(i,{pending:!0,data:o,method:n.method,action:r},r,o))}})))}function Mh(e){function t(t){return Sh(t,e)}null!==lh&&Sh(lh,e),null!==uh&&Sh(uh,e),null!==ch&&Sh(ch,e),dh.forEach(t),hh.forEach(t);for(var n=0;n<ph.length;n++){var r=ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ph.length&&null===(n=ph[0]).blockedOn;)bh(n),null===n.blockedOn&&ph.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],s=o[Pe]||null;if("function"==typeof i)s||_h(n);else if(s){var a=null;if(i&&i.hasAttribute("formAction")){if(o=i,s=i[Pe]||null)a=s.formAction;else if(null!==ih(o))continue}else a=s.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),_h(n)}}}function xh(e){this._internalRoot=e}function kh(e){this._internalRoot=e}kh.prototype.render=xh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));qd(t.current,Du(),e,t,null,null)},kh.prototype.unmount=xh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;qd(e.current,2,null,e,null,null),Fu(),t[De]=null}},kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ee();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ph.length&&0!==t&&t<ph[n].priority;n++);ph.splice(n,0,e),0===n&&bh(e)}};var Rh=o.version;if("19.1.0"!==Rh)throw Error(s(527,Rh,"19.1.0"));H.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=a(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return u(o),e;if(i===r)return u(o),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=i;break}if(c===r){l=!0,r=o,n=i;break}c=c.sibling}if(!l){for(c=i.child;c;){if(c===n){l=!0,n=i,r=o;break}if(c===r){l=!0,r=i,n=o;break}c=c.sibling}if(!l)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?c(e):null)?null:e.stateNode};var Th={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Eh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eh.isDisabled&&Eh.supportsFiber)try{ue=Eh.inject(Th),ce=Eh}catch(e){}}t.createRoot=function(e,t){if(!(n=e)||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(s(299));var n,r=!1,o="",i=ba,a=ya,l=wa;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=function(e,t,n,r,o,i,s,a,l,u,c,d){return e=new Kd(e,t,n,s,a,l,u,d),t=1,!0===i&&(t|=24),i=Or(3,null,null,t),e.current=i,i.stateNode=e,(t=Do()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},ni(i),e}(e,1,!1,null,0,r,o,i,a,l,0,null),e[De]=t.current,Yc(e),new xh(t)}},1290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(5093))},1291:(e,t,n)=>{"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},1454:(e,t,n)=>{"use strict";n(1701)},1470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var r=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,i=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:i,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:i,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(5093))},1488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,o,i,s){var a=t(r),l=n[e][t(r)];return 2===a&&(l=l[o?0:1]),l.replace(/%d/i,r)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(5093))},1509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,s){var a=r(t),l=o[e][r(t)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},1541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},1545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(5093))},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1625:(e,t,n)=>{"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},1698:(e,t,n)=>{"use strict";var r=n(6518),o=n(4204);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("union")},{union:o})},1701:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(9462),u=n(6319),c=n(9539),d=n(4549),h=n(6395),p=!h&&d("map",TypeError),f=l((function(){var e=this.iterator,t=s(o(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:h||p},{map:function(e){s(this);try{i(e)}catch(e){c(this,"throw",e)}return p?o(p,this,e):new f(a(this),{mapper:e})}})},1713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(5093))},1734:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{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"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},1765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{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"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(5093))},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{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"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(5093))},1827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1828:(e,t,n)=>{"use strict";var r=n(9504),o=n(9297),i=n(5397),s=n(9617).indexOf,a=n(421),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(a,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~s(c,n)||l(c,n));return c}},1848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(5093))},2106:(e,t,n)=>{"use strict";var r=n(283),o=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},2124:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(5093))},2140:(e,t,n)=>{"use strict";var r={};r[n(8227)("toStringTag")]="z",e.exports="[object z]"===String(r)},2195:(e,t,n)=>{"use strict";var r=n(9504),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},2211:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(5093))},2264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{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"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(5093))},2271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{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"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(5093))},2274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2278:(e,t,n)=>{"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=function(e,t,n){r?o.f(e,t,i(0,n)):e[t]=n}},2297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},2353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,o,i,s){var a=n(t),l=r[e][n(t)];return 2===a&&(l=l[o?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},2360:(e,t,n)=>{"use strict";var r,o=n(8551),i=n(6801),s=n(8727),a=n(421),l=n(397),u=n(4055),c=n(6119),d="prototype",h="script",p=c("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var o=s.length;o--;)delete b[d][s[o]];return b()};a[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=o(e),n=new f,f[d]=null,n[p]=e):n=b(),void 0===t?n:i.f(n,t)}},2475:(e,t,n)=>{"use strict";var r=n(6518),o=n(8527);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:o})},2477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2478:(e,t,n)=>{"use strict";var r=n(9504),o=n(8981),i=Math.floor,s=r("".charAt),a=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var p=n+e.length,f=r.length,m=c;return void 0!==d&&(d=o(d),m=u),a(h,m,(function(o,a){var u;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=d[l(a,1,-1)];break;default:var c=+a;if(0===c)return o;if(c>f){var h=i(c/10);return 0===h?o:h<=f?void 0===r[h-1]?s(a,1):r[h-1]+s(a,1):o}u=r[c-1]}return void 0===u?"":u}))}},2489:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9306),s=n(8551),a=n(1767),l=n(9462),u=n(6319),c=n(6395),d=n(9539),h=n(4549),p=!c&&h("filter",TypeError),f=l((function(){for(var e,t,n=this.iterator,r=this.predicate,i=this.next;;){if(e=s(o(i,n)),this.done=!!e.done)return;if(t=e.value,u(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:c||p},{filter:function(e){s(this);try{i(e)}catch(e){d(this,"throw",e)}return p?o(p,this,e):new f(a(this),{predicate:e})}})},2529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},2577:(e,t,n)=>{"use strict";n(116)},2603:(e,t,n)=>{"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},2608:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFJJREFUeAHtzjkSgCAQRNFmQYUZ7n9dKUvru0TmvPAn3br0QfgdZ5xx6x+rQn23GqTYnq1FDcnuzZIO2WmedVqIRVxgGKEyjNgYRjKGkZ1hFIZ3I70LyM0VtU8AAAAASUVORK5CYII="},2648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(5093))},2652:(e,t,n)=>{"use strict";var r=n(6080),o=n(9565),i=n(8551),s=n(6823),a=n(4209),l=n(6198),u=n(1625),c=n(81),d=n(851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,b,y,w,v,S,C,_=n&&n.that,M=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),R=!(!n||!n.INTERRUPTED),T=r(t,_),E=function(e){return g&&h(g,"normal",e),new f(!0,e)},L=function(e){return M?(i(e),R?T(e[0],e[1],E):T(e[0],e[1])):R?T(e,E):T(e)};if(x)g=e.iterator;else if(k)g=e;else{if(!(b=d(e)))throw new p(s(e)+" is not iterable");if(a(b)){for(y=0,w=l(e);w>y;y++)if((v=L(e[y]))&&u(m,v))return v;return new f(!1)}g=c(e,b)}for(S=x?e.next:g.next;!(C=o(S,g)).done;){try{v=L(C.value)}catch(e){h(g,"throw",e)}if("object"==typeof v&&v&&u(m,v))return v}return new f(!1)}},2682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2777:(e,t,n)=>{"use strict";var r=n(9565),o=n(34),i=n(757),s=n(5966),a=n(4270),l=n(8227),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=s(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2787:(e,t,n)=>{"use strict";var r=n(9297),o=n(4901),i=n(8981),s=n(6119),a=n(2211),l=s("IE_PROTO"),u=Object,c=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},2796:(e,t,n)=>{"use strict";var r=n(9039),o=n(4901),i=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===c||n!==u&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},2812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},2839:(e,t,n)=>{"use strict";var r=n(4576).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},2934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(5093))},2967:(e,t,n)=>{"use strict";var r=n(6706),o=n(34),i=n(7750),s=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),s(r),o(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},3004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,v=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case o:return t}}}function C(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||S(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===a},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v||e.$$typeof===b)},t.typeOf=S},3110:(e,t,n)=>{"use strict";var r=n(6518),o=n(7751),i=n(8745),s=n(9565),a=n(9504),l=n(9039),u=n(4901),c=n(757),d=n(7680),h=n(6933),p=n(4495),f=String,m=o("JSON","stringify"),g=a(/./.exec),b=a("".charAt),y=a("".charCodeAt),w=a("".replace),v=a(1..toString),S=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,M=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),x=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),k=function(e,t){var n=d(arguments),r=h(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=s(r,this,f(e),t)),!c(t))return t},i(m,null,n)},R=function(e,t,n){var r=b(n,t-1),o=b(n,t+1);return g(C,e)&&!g(_,o)||g(_,e)&&!g(C,r)?"\\u"+v(y(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:M||x},{stringify:function(e,t,n){var r=d(arguments),o=i(M?k:m,null,r);return x&&"string"==typeof o?w(o,S,R):o}})},3164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(5093))},3167:(e,t,n)=>{"use strict";var r=n(4901),o=n(34),i=n(2967);e.exports=function(e,t,n){var s,a;return i&&r(s=t.constructor)&&s!==n&&o(a=s.prototype)&&a!==n.prototype&&i(e,a),e}},3215:(e,t,n)=>{"use strict";n(1148)},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var i,s=t.words[r];return 1===r.length?"y"===r&&n?"једна година":o||n?s[0]:s[1]:(i=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"годину"===i?e+" година":e+" "+i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3383:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(5093))},3386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},3392:(e,t,n)=>{"use strict";var r=n(9504),o=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3440:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402),i=n(9286),s=n(5170),a=n(3789),l=n(8469),u=n(507),c=o.has,d=o.remove;e.exports=function(e){var t=r(this),n=a(e),o=i(t);return s(t)<=n.size?l(t,(function(e){n.includes(e)&&d(o,e)})):u(n.getIterator(),(function(e){c(t,e)&&d(o,e)})),o}},3478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3506:(e,t,n)=>{"use strict";var r=n(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3514:(e,t,n)=>{"use strict";n(6469)("flat")},3579:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),u=n(9539),c=n(4549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){a(this);try{s(e)}catch(e){u(this,"throw",e)}if(c)return o(c,this,e);var t=l(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3609:(e,t,n)=>{"use strict";var r=n(6518),o=n(8981),i=n(6198),s=n(4527),a=n(4606),l=n(6837);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=o(this),n=i(t),r=arguments.length;if(r){l(n+r);for(var u=n;u--;){var c=u+r;u in t?t[c]=t[u]:a(t,c)}for(var d=0;d<r;d++)t[d]=arguments[d]}return s(t,n+r)}})},3635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(5093))},3650:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402),i=n(9286),s=n(3789),a=n(507),l=o.add,u=o.has,c=o.remove;e.exports=function(e){var t=r(this),n=s(e).getIterator(),o=i(t);return a(n,(function(e){u(t,e)?c(o,e):l(o,e)})),o}},3706:(e,t,n)=>{"use strict";var r=n(9504),o=n(4901),i=n(7629),s=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},3717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3724:(e,t,n)=>{"use strict";var r=n(9039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(5093))},3784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},3789:(e,t,n)=>{"use strict";var r=n(9306),o=n(8551),i=n(9565),s=n(1291),a=n(1767),l="Invalid size",u=RangeError,c=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return a(o(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw new c(l);var n=s(t);if(n<0)throw new u(l);return new h(e,n)}},3827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(5093))},3838:(e,t,n)=>{"use strict";var r=n(7080),o=n(5170),i=n(8469),s=n(3789);e.exports=function(e){var t=r(this),n=s(e);return!(o(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},3853:(e,t,n)=>{"use strict";var r=n(6518),o=n(4449);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:o})},3861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(5093))},3872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(5093))},3921:(e,t,n)=>{"use strict";var r=n(6518),o=n(2652),i=n(2278);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),{AS_ENTRIES:!0}),t}})},3925:(e,t,n)=>{"use strict";var r=n(34);e.exports=function(e){return r(e)||null===e}},3949:(e,t,n)=>{"use strict";n(7588)},4051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},4055:(e,t,n)=>{"use strict";var r=n(4576),o=n(34),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},4063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(5093))},4114:(e,t,n)=>{"use strict";var r=n(6518),o=n(8981),i=n(6198),s=n(4527),a=n(6837);r({target:"Array",proto:!0,arity:1,forced:n(9039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=o(this),n=i(t),r=arguments.length;a(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return s(t,n),n}})},4117:e=>{"use strict";e.exports=function(e){return null==e}},4124:(e,t,n)=>{"use strict";var r=n(4576);e.exports=function(e,t){var n=r[e],o=n&&n.prototype;return o&&o[t]}},4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var b=s[g];if(!(i[b]||r&&r[b]||m&&m[b]||a&&a[b])){var y=h(n,b);try{u(t,b,y)}catch(e){}}}}return t}},4204:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402).add,i=n(9286),s=n(3789),a=n(507);e.exports=function(e){var t=r(this),n=s(e).getIterator(),l=i(t);return a(n,(function(e){o(l,e)})),l}},4209:(e,t,n)=>{"use strict";var r=n(8227),o=n(6269),i=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},4215:(e,t,n)=>{"use strict";var r=n(4576),o=n(2839),i=n(2195),s=function(e){return o.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},4226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(5093))},4270:(e,t,n)=>{"use strict";var r=n(9565),o=n(4901),i=n(34),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!i(a=r(n,e)))return a;if(o(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!i(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},4376:(e,t,n)=>{"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},4402:(e,t,n)=>{"use strict";var r=n(9504),o=Set.prototype;e.exports={Set,add:r(o.add),has:r(o.has),remove:r(o.delete),proto:o}},4405:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler");Symbol.for("react.provider");var i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===s||e.$$typeof===i||e.$$typeof===a||e.$$typeof===h||void 0!==e.getModuleId)}},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesiące":"miesięcy");case"yy":return r+(o(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,r){if("m"===n)return t?"jedna minuta":r?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},4449:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402).has,i=n(5170),s=n(3789),a=n(8469),l=n(507),u=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(i(t)<=n.size)return!1!==a(t,(function(e){if(n.includes(e))return!1}),!0);var c=n.getIterator();return!1!==l(c,(function(e){if(o(t,e))return u(c,"normal",!1)}))}},4451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(5093))},4457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{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"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(5093))},4477:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,b=!1,y="function"==typeof setTimeout?setTimeout:null,w="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function C(e){if(g=!1,S(e),!m)if(null!==r(u))m=!0,M||(M=!0,_());else{var t=r(c);null!==t&&P(C,t.startTime-e)}}var _,M=!1,x=-1,k=5,R=-1;function T(){return!(!b&&t.unstable_now()-R<k)}function E(){if(b=!1,M){var e=t.unstable_now();R=e;var n=!0;try{e:{m=!1,g&&(g=!1,w(x),x=-1),f=!0;var i=p;try{t:{for(S(e),h=r(u);null!==h&&!(h.expirationTime>e&&T());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var a=s(h.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof a){h.callback=a,S(e),n=!0;break t}h===r(u)&&o(u),S(e)}else o(u);h=r(u)}if(null!==h)n=!0;else{var l=r(c);null!==l&&P(C,l.startTime-e),n=!1}}break e}finally{h=null,p=i,f=!1}n=void 0}}finally{n?_():M=!1}}}if("function"==typeof v)_=function(){v(E)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,I=L.port2;L.port1.onmessage=E,_=function(){I.postMessage(null)}}else _=function(){y(E,0)};function P(e,n){x=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(w(x),x=-1):g=!0,P(C,i-s))):(e.sortIndex=a,n(u,e),m||f||(m=!0,M||(M=!0,_()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},4495:(e,t,n)=>{"use strict";var r=n(9519),o=n(9039),i=n(4576).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},4520:(e,t,n)=>{"use strict";n(2489)},4527:(e,t,n)=>{"use strict";var r=n(3724),o=n(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(o(e)&&!s(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4549:(e,t,n)=>{"use strict";var r=n(4576);e.exports=function(e,t){var n=r.Iterator,o=n&&n.prototype,i=o&&o[e],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return i}},4566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4601:(e,t,n)=>{"use strict";var r=n(7751),o=n(9297),i=n(6699),s=n(1625),a=n(2967),l=n(7740),u=n(1056),c=n(3167),d=n(2603),h=n(7584),p=n(747),f=n(3724),m=n(6395);e.exports=function(e,t,n,g){var b="stackTraceLimit",y=g?2:1,w=e.split("."),v=w[w.length-1],S=r.apply(null,w);if(S){var C=S.prototype;if(!m&&o(C,"cause")&&delete C.cause,!n)return S;var _=r("Error"),M=t((function(e,t){var n=d(g?t:e,void 0),r=g?new S(e):new S;return void 0!==n&&i(r,"message",n),p(r,M,r.stack,2),this&&s(C,this)&&c(r,this,M),arguments.length>y&&h(r,arguments[y]),r}));if(M.prototype=C,"Error"!==v?a?a(M,_):l(M,_,{name:!0}):f&&b in S&&(u(M,S,b),u(M,S,"prepareStackTrace")),l(M,S),!m)try{C.name!==v&&i(C,"name",v),C.constructor=M}catch(e){}return M}}},4606:(e,t,n)=>{"use strict";var r=n(6823),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+r(t)+" of "+r(e))}},4659:(e,t,n)=>{"use strict";var r=n(9039),o=n(6980);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},4691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],o=t&&t.hours();return n=r,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(5093))},4697:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{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._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4848:(e,t,n)=>{"use strict";e.exports=n(9698)},4856:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(5093))},4901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},4903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(5093))},4913:(e,t,n)=>{"use strict";var r=n(3724),o=n(5917),i=n(8686),s=n(8551),a=n(6969),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?i?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=a(t),s(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4916:(e,t,n)=>{"use strict";var r=n(7751),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](o(0));try{return(new n)[e](o(-1)),!1}catch(r){if(!t)return!0;try{return(new n)[e](i(-1/0)),!1}catch(r){var s=new n;return s.add(1),s.add(2),t(s[e](i(1/0)))}}}catch(e){return!1}}},5024:(e,t,n)=>{"use strict";var r=n(6518),o=n(3650);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("symmetricDifference")},{symmetricDifference:o})},5031:(e,t,n)=>{"use strict";var r=n(7751),o=n(9504),i=n(8480),s=n(3717),a=n(8551),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=s.f;return n?l(t,n(e)):t}},5050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(5093))},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=i[u]||0,d="".concat(u," ").concat(c);i[u]=c+1;var h=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=o(p,r);r.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var l=r(e,o),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},5093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Ht(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function b(e){var t=f(NaN);return null!=e?p(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=o.momentProperties=[],w=!1;function v(e,t){var n,r,o,i=y.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=m(t)),u(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)u(o=t[r=y[n]])||(e[r]=o);return e}function S(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,o.updateOffset(this),w=!1)}function C(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function _(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return p((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,i,s,l=[],u=arguments.length;for(i=0;i<u;i++){if(r="","object"==typeof arguments[i]){for(s in r+="\n["+i+"] ",arguments[0])a(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[i];l.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,k={};function R(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),k[e]||(_(t),k[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,t){var n,r=p({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function L(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function I(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},O={};function A(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(O[e]=o),t&&(O[t[0]]=function(){return I(o.apply(this,arguments),t[1],t[2])}),n&&(O[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=j(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,o=e.match(P);for(t=0,n=o.length;t<n;t++)O[o[t]]?o[t]=O[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=T(o[r])?o[r].call(t,e):o[r];return i}}(t),H[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;n>=0&&D.test(e);)e=e.replace(D,r),D.lastIndex=0,n-=1;return e}var Y={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)a(e,n)&&(t=F(n))&&(r[t]=e[n]);return r}var W={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var V,B=/\d/,$=/\d\d/,U=/\d{3}/,G=/\d{4}/,K=/[+-]?\d{6}/,q=/\d\d?/,X=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,Z=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se=/^[1-9]\d?/,ae=/^([1-9]\d|\d)/;function le(e,t,n){V[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return a(V,e)?V[e](t._strict,t._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}V={};var pe={};function fe(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=he(e)}),r=e.length,n=0;n<r;n++)pe[e[n]]=o}function me(e,t){fe(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ge(e,t,n){null!=t&&a(pe,e)&&pe[e](t,n._a,n,e)}function be(e){return e%4==0&&e%100!=0||e%400==0}var ye=0,we=1,ve=2,Se=3,Ce=4,_e=5,Me=6,xe=7,ke=8;function Re(e){return be(e)?366:365}A("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),A(0,["YY",2],0,(function(){return this.year()%100})),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",q,$),le("YYYY",Z,G),le("YYYYY",ee,K),le("YYYYYY",ee,K),fe(["YYYYY","YYYYYY"],ye),fe("YYYY",(function(e,t){t[ye]=2===e.length?o.parseTwoDigitYear(e):he(e)})),fe("YY",(function(e,t){t[ye]=o.parseTwoDigitYear(e)})),fe("Y",(function(e,t){t[ye]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var Te,Ee=Le("FullYear",!0);function Le(e,t){return function(n){return null!=n?(Pe(this,e,n),o.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Pe(e,t,n){var r,o,i,s,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,s=e.month(),a=29!==(a=e.date())||1!==s||be(i)?a:28,o?r.setUTCFullYear(i,s,a):r.setFullYear(i,s,a)}}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?be(e)?29:28:31-r%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},A("M",["MM",2],"Mo",(function(){return this.month()+1})),A("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),A("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",q,se),le("MM",q,$),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),fe(["M","MM"],(function(e,t){t[we]=he(e)-1})),fe(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[we]=o:m(n).invalidMonth=e}));var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne=ie,je=ie;function Ye(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Te.call(this._shortMonthsParse,s))?o:null:-1!==(o=Te.call(this._longMonthsParse,s))?o:null:"MMM"===t?-1!==(o=Te.call(this._shortMonthsParse,s))||-1!==(o=Te.call(this._longMonthsParse,s))?o:null:-1!==(o=Te.call(this._longMonthsParse,s))||-1!==(o=Te.call(this._shortMonthsParse,s))?o:null}function Fe(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,De(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function ze(e){return null!=e?(Fe(this,e),o.updateOffset(this,!0),this):Ie(this,"Month")}function We(){function e(e,t){return t.length-e.length}var t,n,r,o,i=[],s=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),r=ce(this.monthsShort(n,"")),o=ce(this.months(n,"")),i.push(r),s.push(o),a.push(o),a.push(r);i.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ve(e,t,n,r,o,i,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Be(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,n){var r=7+t-n;return-(7+Be(e,0,r).getUTCDay()-t)%7+r-1}function Ue(e,t,n,r,o){var i,s,a=1+7*(t-1)+(7+n-r)%7+$e(e,r,o);return a<=0?s=Re(i=e-1)+a:a>Re(e)?(i=e+1,s=a-Re(e)):(i=e,s=a),{year:i,dayOfYear:s}}function Ge(e,t,n){var r,o,i=$e(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?r=s+Ke(o=e.year()-1,t,n):s>Ke(e.year(),t,n)?(r=s-Ke(e.year(),t,n),o=e.year()+1):(o=e.year(),r=s),{week:r,year:o}}function Ke(e,t,n){var r=$e(e,t,n),o=$e(e+1,t,n);return(Re(e)-r+o)/7}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),le("w",q,se),le("ww",q,$),le("W",q,se),le("WW",q,$),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=he(e)}));function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}A("d",0,"do","day"),A("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),A("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),A("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),le("d",q),le("e",q),le("E",q),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:m(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=he(e)}));var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ie,et=ie,tt=ie;function nt(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Te.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Te.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Te.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=Te.call(this._weekdaysParse,s))||-1!==(o=Te.call(this._shortWeekdaysParse,s))||-1!==(o=Te.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=Te.call(this._shortWeekdaysParse,s))||-1!==(o=Te.call(this._weekdaysParse,s))||-1!==(o=Te.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Te.call(this._minWeekdaysParse,s))||-1!==(o=Te.call(this._weekdaysParse,s))||-1!==(o=Te.call(this._shortWeekdaysParse,s))?o:null}function rt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=ce(this.weekdaysMin(n,"")),o=ce(this.weekdaysShort(n,"")),i=ce(this.weekdays(n,"")),s.push(r),a.push(o),l.push(i),u.push(r),u.push(o),u.push(i);s.sort(e),a.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ot(){return this.hours()%12||12}function it(e,t){A(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,ot),A("k",["kk",2],0,(function(){return this.hours()||24})),A("hmm",0,0,(function(){return""+ot.apply(this)+I(this.minutes(),2)})),A("hmmss",0,0,(function(){return""+ot.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),A("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),A("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),it("a",!0),it("A",!1),le("a",st),le("A",st),le("H",q,ae),le("h",q,se),le("k",q,se),le("HH",q,$),le("hh",q,$),le("kk",q,$),le("hmm",X),le("hmmss",J),le("Hmm",X),le("Hmmss",J),fe(["H","HH"],Se),fe(["k","kk"],(function(e,t,n){var r=he(e);t[Se]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[Se]=he(e),m(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[Se]=he(e.substr(0,r)),t[Ce]=he(e.substr(r)),m(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=he(e.substr(0,r)),t[Ce]=he(e.substr(r,2)),t[_e]=he(e.substr(o)),m(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[Se]=he(e.substr(0,r)),t[Ce]=he(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=he(e.substr(0,r)),t[Ce]=he(e.substr(r,2)),t[_e]=he(e.substr(o))}));var at=Le("Hours",!0);var lt,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ct={},dt={};function ht(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pt(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var r=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{r=lt._abbr,n(5358)("./"+t),mt(r)}catch(e){ct[t]=null}return ct[t]}function mt(e,t){var n;return e&&((n=u(t)?bt(e):gt(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function gt(e,t){if(null!==t){var n,r=ut;if(t.abbr=e,null!=ct[e])R("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])r=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ct[e]=new L(E(r,t)),dt[e]&&dt[e].forEach((function(e){gt(e.name,e.config)})),mt(e),ct[e]}return delete ct[e],null}function bt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!i(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=pt(e[i]).split("-")).length,n=(n=pt(e[i+1]))?n.split("-"):null;t>0;){if(r=ft(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ht(o,n)>=t-1)break;t--}i++}return lt}(e)}function yt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[we]<0||n[we]>11?we:n[ve]<1||n[ve]>De(n[ye],n[we])?ve:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Ce]||0!==n[_e]||0!==n[Me])?Se:n[Ce]<0||n[Ce]>59?Ce:n[_e]<0||n[_e]>59?_e:n[Me]<0||n[Me]>999?Me:-1,m(e)._overflowDayOfYear&&(t<ye||t>ve)&&(t=ve),m(e)._overflowWeeks&&-1===t&&(t=xe),m(e)._overflowWeekday&&-1===t&&(t=ke),m(e).overflow=t),e}var wt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,St=/Z|[+-]\d\d(?::?\d\d)?/,Ct=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mt=/^\/?Date\((-?\d+)/i,xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rt(e){var t,n,r,o,i,s,a=e._i,l=wt.exec(a)||vt.exec(a),u=Ct.length,c=_t.length;if(l){for(m(e).iso=!0,t=0,n=u;t<n;t++)if(Ct[t][1].exec(l[1])){o=Ct[t][0],r=!1!==Ct[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(_t[t][1].exec(l[3])){i=(l[2]||" ")+_t[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!St.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=o+(i||"")+(s||""),Pt(e)}else e._isValid=!1}function Tt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Et(e){var t,n,r,o,i,s,a,l,u=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],o=u[2],i=u[5],s=u[6],a=u[7],l=[Tt(n),Oe.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),t=l,!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return kt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(u[8],u[9],u[10]),e._d=Be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Lt(e,t,n){return null!=e?e:null!=t?t:n}function It(e){var t,n,r,i,s,a=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[we]&&function(e){var t,n,r,o,i,s,a,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,s=4,n=Lt(t.GG,e._a[ye],Ge(Ot(),1,4).year),r=Lt(t.W,1),((o=Lt(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,u=Ge(Ot(),i,s),n=Lt(t.gg,e._a[ye],u.year),r=Lt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Ke(n,i,s)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(a=Ue(n,r,o,i,s),e._a[ye]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=Lt(e._a[ye],r[ye]),(e._dayOfYear>Re(s)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(s,0,e._dayOfYear),e._a[we]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Ce]&&0===e._a[_e]&&0===e._a[Me]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Be:Ve).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(m(e).weekdayMismatch=!0)}}function Pt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,i,s,a,l,u=""+e._i,c=u.length,d=0;for(l=(r=j(e._f,e._locale).match(P)||[]).length,t=0;t<l;t++)i=r[t],(n=(u.match(ue(i,e))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&m(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),d+=n.length),O[i]?(n?m(e).empty=!1:m(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&m(e).unusedTokens.push(i);m(e).charsLeftOver=c-d,u.length>0&&m(e).unusedInput.push(u),e._a[Se]<=12&&!0===m(e).bigHour&&e._a[Se]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(a=m(e).era)&&(e._a[ye]=e._locale.erasConvertYear(a,e._a[ye])),It(e),yt(e)}else Et(e);else Rt(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||bt(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new S(yt(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,r,o,i,s,a=!1,l=e._f.length;if(0===l)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,s=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Pt(t),g(t)&&(s=!0),i+=m(t).charsLeftOver,i+=10*m(t).unusedTokens.length,m(t).score=i,a?i<r&&(r=i,n=t):(null==r||i<r||s)&&(r=i,n=t,s&&(a=!0));p(e,n||t)}(e):n?Pt(e):function(e){var t=e._i;u(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Mt.exec(e._i);null===t?(Rt(e),!1===e._isValid&&(delete e._isValid,Et(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),It(e)):s(t)?function(e){if(!e._d){var t=z(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),It(e)}}(e):c(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Ht(e,t,n,r,o){var a,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=r,(a=new S(yt(Dt(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Ot(e,t,n,r){return Ht(e,t,n,r,!1)}o.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var At=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Nt=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function jt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var t=z(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,r=!1,o=Yt.length;for(t in e)if(a(e,t)&&(-1===Te.call(Yt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Yt[n]]){if(r)return!1;parseFloat(e[Yt[n]])!==he(e[Yt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+s+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=bt(),this._bubble()}function zt(e){return e instanceof Ft}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Vt(e,t){A(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}Vt("Z",":"),Vt("ZZ",""),le("Z",oe),le("ZZ",oe),fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=$t(oe,e)}));var Bt=/([\+\-]|\d\d)/gi;function $t(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Bt)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?r:-r}function Ut(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(C(e)||d(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Ot(e).local()}function Gt(e){return-Math.round(e._d.getTimezoneOffset())}function Kt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,r,o,i,s,l,u=e,d=null;return zt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=qt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:he(d[ve])*n,h:he(d[Se])*n,m:he(d[Ce])*n,s:he(d[_e])*n,ms:he(Wt(1e3*d[Me]))*n}):(d=Xt.exec(e))?(n="-"===d[1]?-1:1,u={y:Qt(d[2],n),M:Qt(d[3],n),w:Qt(d[4],n),d:Qt(d[5],n),h:Qt(d[6],n),m:Qt(d[7],n),s:Qt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=Ot(u.from),s=Ot(u.to),o=i.isValid()&&s.isValid()?(s=Ut(s,i),i.isBefore(s)?l=Zt(i,s):((l=Zt(s,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new Ft(u),zt(e)&&a(e,"_locale")&&(r._locale=e._locale),zt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(R(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),tn(this,Jt(n,r),e),this}}function tn(e,t,n,r){var i=t._milliseconds,s=Wt(t._days),a=Wt(t._months);e.isValid()&&(r=null==r||r,a&&Fe(e,Ie(e,"Month")+a*n),s&&Pe(e,"Date",Ie(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,s||a))}Jt.fn=Ft.prototype,Jt.invalid=function(){return Jt(NaN)};var nn=en(1,"add"),rn=en(-1,"subtract");function on(e){return"string"==typeof e||e instanceof String}function sn(e){return C(e)||d(e)||on(e)||c(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&on(e)})).length),t&&n}(e)||function(e){var t,n,r=s(e)&&!l(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(t=0;t<u;t+=1)n=i[t],o=o||a(e,n);return r&&o}(e)||null==e}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var un=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function cn(){return this._locale}var dn=1e3,hn=6e4,pn=36e5,fn=126227808e5;function mn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function bn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function yn(e,t){return t.erasAbbrRegex(e)}function wn(){var e,t,n,r,o,i=[],s=[],a=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=ce(u[e].name),r=ce(u[e].abbr),o=ce(u[e].narrow),s.push(n),i.push(r),a.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function vn(e,t){A(0,[e,e.length],0,t)}function Sn(e,t,n,r,o){var i;return null==e?Ge(this,r,o).year:(t>(i=Ke(e,r,o))&&(t=i),Cn.call(this,e,t,n,r,o))}function Cn(e,t,n,r,o){var i=Ue(e,t,n,r,o),s=Be(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),le("N",yn),le("NN",yn),le("NNN",yn),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?m(n).era=o:m(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),fe(["y","yy","yyy","yyyy"],ye),fe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ye]=n._locale.eraYearOrdinalParse(e,o):t[ye]=parseInt(e,10)})),A(0,["gg",2],0,(function(){return this.weekYear()%100})),A(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),vn("gggg","weekYear"),vn("ggggg","weekYear"),vn("GGGG","isoWeekYear"),vn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",q,$),le("gg",q,$),le("GGGG",Z,G),le("gggg",Z,G),le("GGGGG",ee,K),le("ggggg",ee,K),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=he(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),A("Q",0,"Qo","quarter"),le("Q",B),fe("Q",(function(e,t){t[we]=3*(he(e)-1)})),A("D",["DD",2],"Do","date"),le("D",q,se),le("DD",q,$),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],ve),fe("Do",(function(e,t){t[ve]=he(e.match(q)[0])}));var _n=Le("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Q),le("DDDD",U),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),A("m",["mm",2],0,"minute"),le("m",q,ae),le("mm",q,$),fe(["m","mm"],Ce);var Mn=Le("Minutes",!1);A("s",["ss",2],0,"second"),le("s",q,ae),le("ss",q,$),fe(["s","ss"],_e);var xn,kn,Rn=Le("Seconds",!1);for(A("S",0,0,(function(){return~~(this.millisecond()/100)})),A(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),A(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),A(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),A(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),A(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),A(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",Q,B),le("SS",Q,$),le("SSS",Q,U),xn="SSSS";xn.length<=9;xn+="S")le(xn,te);function Tn(e,t){t[Me]=he(1e3*("0."+e))}for(xn="S";xn.length<=9;xn+="S")fe(xn,Tn);kn=Le("Milliseconds",!1),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");var En=S.prototype;function Ln(e){return e}En.add=nn,En.calendar=function(e,t){1===arguments.length&&(arguments[0]?sn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=s(e)&&!l(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||a(e,o[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),r=Ut(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",u=t&&(T(t[i])?t[i].call(this,n):t[i]);return this.format(u||this.localeData().calendar(i,this,Ot(n)))},En.clone=function(){return new S(this)},En.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=F(t)){case"year":i=an(this,r)/12;break;case"month":i=an(this,r);break;case"quarter":i=an(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:de(i)},En.endOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pn-mn(t+(this._isUTC?0:this.utcOffset()*hn),pn)-1;break;case"minute":t=this._d.valueOf(),t+=hn-mn(t,hn)-1;break;case"second":t=this._d.valueOf(),t+=dn-mn(t,dn)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},En.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},En.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Ot(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},En.fromNow=function(e){return this.from(Ot(),e)},En.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Ot(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},En.toNow=function(e){return this.to(Ot(),e)},En.get=function(e){return T(this[e=F(e)])?this[e]():this},En.invalidAt=function(){return m(this).overflow},En.isAfter=function(e,t){var n=C(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},En.isBefore=function(e,t){var n=C(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},En.isBetween=function(e,t,n,r){var o=C(e)?e:Ot(e),i=C(t)?t:Ot(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},En.isSame=function(e,t){var n,r=C(e)?e:Ot(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},En.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},En.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},En.isValid=function(){return g(this)},En.lang=un,En.locale=ln,En.localeData=cn,En.max=Nt,En.min=At,En.parsingFlags=function(){return p({},m(this))},En.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:W[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=z(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(T(this[e=F(e)]))return this[e](t);return this},En.startOf=function(e){var t,n;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mn(t+(this._isUTC?0:this.utcOffset()*hn),pn);break;case"minute":t=this._d.valueOf(),t-=mn(t,hn);break;case"second":t=this._d.valueOf(),t-=mn(t,dn)}return this._d.setTime(t),o.updateOffset(this,!0),this},En.subtract=rn,En.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},En.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},En.toDate=function(){return new Date(this.valueOf())},En.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},En.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(En[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),En.toJSON=function(){return this.isValid()?this.toISOString():null},En.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},En.unix=function(){return Math.floor(this.valueOf()/1e3)},En.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},En.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},En.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},En.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},En.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},En.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-o(i[e].since).year())*n+i[e].offset;return this.year()},En.year=Ee,En.isLeapYear=function(){return be(this.year())},En.weekYear=function(e){return Sn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},En.isoWeekYear=function(e){return Sn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},En.quarter=En.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},En.month=ze,En.daysInMonth=function(){return De(this.year(),this.month())},En.week=En.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},En.isoWeek=En.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},En.weeksInYear=function(){var e=this.localeData()._week;return Ke(this.year(),e.dow,e.doy)},En.weeksInWeekYear=function(){var e=this.localeData()._week;return Ke(this.weekYear(),e.dow,e.doy)},En.isoWeeksInYear=function(){return Ke(this.year(),1,4)},En.isoWeeksInISOWeekYear=function(){return Ke(this.isoWeekYear(),1,4)},En.date=_n,En.day=En.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Ie(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},En.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},En.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},En.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},En.hour=En.hours=at,En.minute=En.minutes=Mn,En.second=En.seconds=Rn,En.millisecond=En.milliseconds=kn,En.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=$t(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Gt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?tn(this,Jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Gt(this)},En.utc=function(e){return this.utcOffset(0,e)},En.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},En.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=$t(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},En.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},En.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},En.isLocal=function(){return!!this.isValid()&&!this._isUTC},En.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},En.isUtc=Kt,En.isUTC=Kt,En.zoneAbbr=function(){return this._isUTC?"UTC":""},En.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},En.dates=M("dates accessor is deprecated. Use date instead.",_n),En.months=M("months accessor is deprecated. Use month instead",ze),En.years=M("years accessor is deprecated. Use year instead",Ee),En.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),En.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Dt(t))._a?(e=t._isUTC?f(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&he(e[r])!==he(t[r]))&&s++;return s+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var In=L.prototype;function Pn(e,t,n,r){var o=bt(),i=f().set(r,t);return o[n](i,e)}function Dn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Pn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Pn(e,r,n,"month");return o}function Hn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=bt(),s=e?i._week.dow:0,a=[];if(null!=n)return Pn(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=Pn(t,(o+s)%7,r,"day");return a}In.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},In.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},In.invalidDate=function(){return this._invalidDate},In.ordinal=function(e){return this._ordinal.replace("%d",e)},In.preparse=Ln,In.postformat=Ln,In.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},In.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},In.set=function(e){var t,n;for(n in e)a(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},In.eras=function(e,t){var n,r,i,s=this._eras||bt("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(i=o(s[n].since).startOf("day"),s[n].since=i.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":i=o(s[n].until).startOf("day").valueOf(),s[n].until=i.valueOf()}return s},In.erasParse=function(e,t,n){var r,o,i,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(i=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([i,s,a].indexOf(e)>=0)return l[r]},In.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},In.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||wn.call(this),e?this._erasAbbrRegex:this._erasRegex},In.erasNameRegex=function(e){return a(this,"_erasNameRegex")||wn.call(this),e?this._erasNameRegex:this._erasRegex},In.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||wn.call(this),e?this._erasNarrowRegex:this._erasRegex},In.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},In.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},In.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Ye.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},In.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},In.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},In.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},In.firstDayOfYear=function(){return this._week.doy},In.firstDayOfWeek=function(){return this._week.dow},In.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},In.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},In.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},In.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},In.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},In.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},In.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},In.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},In.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},mt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=M("moment.lang is deprecated. Use moment.locale instead.",mt),o.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bt);var On=Math.abs;function An(e,t,n,r){var o=Jt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Nn(e){return e<0?Math.floor(e):Math.ceil(e)}function jn(e){return 4800*e/146097}function Yn(e){return 146097*e/4800}function Fn(e){return function(){return this.as(e)}}var zn=Fn("ms"),Wn=Fn("s"),Vn=Fn("m"),Bn=Fn("h"),$n=Fn("d"),Un=Fn("w"),Gn=Fn("M"),Kn=Fn("Q"),qn=Fn("y"),Xn=zn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qn=Jn("milliseconds"),Zn=Jn("seconds"),er=Jn("minutes"),tr=Jn("hours"),nr=Jn("days"),rr=Jn("months"),or=Jn("years");var ir=Math.round,sr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ar(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var lr=Math.abs;function ur(e){return(e>0)-(e<0)||+e}function cr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,s,a,l=lr(this._milliseconds)/1e3,u=lr(this._days),c=lr(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=ur(this._months)!==ur(d)?"-":"",s=ur(this._days)!==ur(d)?"-":"",a=ur(this._milliseconds)!==ur(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var dr=Ft.prototype;return dr.isValid=function(){return this._isValid},dr.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},dr.add=function(e,t){return An(this,e,t,1)},dr.subtract=function(e,t){return An(this,e,t,-1)},dr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+jn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},dr.asMilliseconds=zn,dr.asSeconds=Wn,dr.asMinutes=Vn,dr.asHours=Bn,dr.asDays=$n,dr.asWeeks=Un,dr.asMonths=Gn,dr.asQuarters=Kn,dr.asYears=qn,dr.valueOf=Xn,dr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return i>=0&&s>=0&&a>=0||i<=0&&s<=0&&a<=0||(i+=864e5*Nn(Yn(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=de(i/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,s+=de(n/24),a+=o=de(jn(s)),s-=Nn(Yn(o)),r=de(a/12),a%=12,l.days=s,l.months=a,l.years=r,this},dr.clone=function(){return Jt(this)},dr.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},dr.milliseconds=Qn,dr.seconds=Zn,dr.minutes=er,dr.hours=tr,dr.days=nr,dr.weeks=function(){return de(this.days()/7)},dr.months=rr,dr.years=or,dr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=sr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},sr,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var o=Jt(e).abs(),i=ir(o.as("s")),s=ir(o.as("m")),a=ir(o.as("h")),l=ir(o.as("d")),u=ir(o.as("M")),c=ir(o.as("w")),d=ir(o.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ar.apply(null,h)}(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},dr.toISOString=cr,dr.toString=cr,dr.toJSON=cr,dr.locale=ln,dr.localeData=cn,dr.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cr),dr.lang=un,A("X",0,0,"unix"),A("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),fe("x",(function(e,t,n){n._d=new Date(he(e))})),o.version="2.30.1",t=Ot,o.fn=En,o.min=function(){return jt("isBefore",[].slice.call(arguments,0))},o.max=function(){return jt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=f,o.unix=function(e){return Ot(1e3*e)},o.months=function(e,t){return Dn(e,t,"months")},o.isDate=d,o.locale=mt,o.invalid=b,o.duration=Jt,o.isMoment=C,o.weekdays=function(e,t,n){return Hn(e,t,n,"weekdays")},o.parseZone=function(){return Ot.apply(null,arguments).parseZone()},o.localeData=bt,o.isDuration=zt,o.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Hn(e,t,n,"weekdaysMin")},o.defineLocale=gt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=ut;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(E(ct[e]._config,t)):(null!=(r=ft(e))&&(o=r._config),t=E(o,t),null==r&&(t.abbr=e),(n=new L(t)).parentLocale=ct[e],ct[e]=n),mt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===mt()&&mt(e)):null!=ct[e]&&delete ct[e]);return ct[e]},o.locales=function(){return x(ct)},o.weekdaysShort=function(e,t,n){return Hn(e,t,n,"weekdaysShort")},o.normalizeUnits=F,o.relativeTimeRounding=function(e){return void 0===e?ir:"function"==typeof e&&(ir=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==sr[e]&&(void 0===t?sr[e]:(sr[e]=t,"s"===e&&(sr.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=En,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()},5096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{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("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{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"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(5093))},5160:(e,t,n)=>{"use strict";var r=n(6540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l((function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&h.hasValue){var t=h.value;if(c(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,s=n)}var i,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,c]);var p=i(e,d[0],d[1]);return a((function(){h.hasValue=!0,h.value=p}),[p]),u(p),p}},5170:(e,t,n)=>{"use strict";var r=n(6706),o=n(4402);e.exports=r(o.proto,"size","get")||function(e){return e.size}},5177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{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"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},5338:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1247)},5358:(e,t,n)=>{var r={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":4856,"./uz-latn.js":4856,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5358},5370:(e,t,n)=>{"use strict";var r=n(6198);e.exports=function(e,t,n){for(var o=0,i=arguments.length>2?n:r(t),s=new e(i);i>o;)s[o]=t[o++];return s}},5397:(e,t,n)=>{"use strict";var r=n(7055),o=n(7750);e.exports=function(e){return r(o(e))}},5498:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{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("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},5533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},5543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},5556:(e,t,n)=>{e.exports=n(2694)()},5610:(e,t,n)=>{"use strict";var r=n(1291),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var i,s=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":o||n?s[0]:s[1]:(i=t.correctGrammaticalCase(e,s),"yy"===r&&n&&"godinu"===i?e+" godina":e+" "+i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},5745:(e,t,n)=>{"use strict";var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function r(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function i(e,t,i,s){var a=e+" ";return 1===e?a+n(0,t,i[0],s):t?a+(r(e)?o(i)[1]:o(i)[0]):s?a+o(i)[1]:a+(r(e)?o(i)[1]:o(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(5093))},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var i=e+" ";switch(n){case"s":return t||o?"pár sekúnd":"pár sekundami";case"ss":return t||o?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":o?"minútu":"minútou";case"mm":return t||o?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||o?"deň":"dňom";case"dd":return t||o?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{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"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(5093))},5867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(5093))},5876:(e,t,n)=>{"use strict";var r=n(6518),o=n(3838);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("isSubsetOf",(function(e){return e}))},{isSubsetOf:o})},5917:(e,t,n)=>{"use strict";var r=n(3724),o=n(9039),i=n(4055);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5966:(e,t,n)=>{"use strict";var r=n(9306),o=n(4117);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},5995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},6e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(5093))},6069:(e,t)=>{"use strict";Object.prototype.toString},6080:(e,t,n)=>{"use strict";var r=n(7476),o=n(9306),i=n(616),s=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},6111:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6119:(e,t,n)=>{"use strict";var r=n(5745),o=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},6169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(5093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?o[n][0]:o[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(5093))},6193:(e,t,n)=>{"use strict";var r=n(9504),o=Error,i=r("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},6195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6198:(e,t,n)=>{"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},6221:(e,t,n)=>{"use strict";var r=n(6540);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},a=Symbol.for("react.portal"),l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.1.0"},6269:e=>{"use strict";e.exports={}},6279:(e,t,n)=>{"use strict";var r=n(6840);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},6280:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(8745),s=n(4601),a="WebAssembly",l=o[a],u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=s(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return i(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),c("URIError",(function(e){return function(t){return i(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},6308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return r+(1===e?"dan":"dana");case"MM":return r+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return r+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},6319:(e,t,n)=>{"use strict";var r=n(8551),o=n(9539);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},6368:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(9225).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},6395:e=>{"use strict";e.exports=!1},6435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(5093))},6464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(i(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(i(e)?"dny":"dní"):o+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?o+(i(e)?"měsíce":"měsíců"):o+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(i(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{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",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6469:(e,t,n)=>{"use strict";var r=n(8227),o=n(2360),i=n(4913).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},6518:(e,t,n)=>{"use strict";var r=n(4576),o=n(7347).f,i=n(6699),s=n(6840),a=n(9433),l=n(7740),u=n(2796);e.exports=function(e,t){var n,c,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||a(f,{}):r[f]&&r[f].prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!u(m?c:f+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),s(n,c,h,e)}}},6540:(e,t,n)=>{"use strict";e.exports=n(9869)},6571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},6575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(5093))},6584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,o={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{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"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(5093))},6637:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+(1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return o+(1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return o+(1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami");case"d":return t||r?"en dan":"enim dnem";case"dd":return o+(1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi");case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+(1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci");case"y":return t||r?"eno leto":"enim letom";case"yy":return o+(1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6699:(e,t,n)=>{"use strict";var r=n(3724),o=n(4913),i=n(6980);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6706:(e,t,n)=>{"use strict";var r=n(9504),o=n(9306);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},6794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{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"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6801:(e,t,n)=>{"use strict";var r=n(3724),o=n(8686),i=n(4913),s=n(8551),a=n(5397),l=n(1072);t.f=r&&!o?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},6823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},6840:(e,t,n)=>{"use strict";var r=n(4901),o=n(4913),i=n(283),s=n(9433);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,u=void 0!==a.name?a.name:t;if(r(n)&&i(n,u,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},6870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(5093))},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6933:(e,t,n)=>{"use strict";var r=n(9504),o=n(4376),i=n(4901),s=n(2195),a=n(655),l=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||l(n,a(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},6955:(e,t,n)=>{"use strict";var r=n(2140),o=n(4901),i=n(2195),s=n(8227)("toStringTag"),a=Object,l="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?i(t):"Object"===(r=i(t))&&o(t.callee)?"Arguments":r}},6969:(e,t,n)=>{"use strict";var r=n(2777),o=n(757);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7026:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAoCAMAAADJ7yrpAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKE86IAAAADXRSTlMABBEmRGprlJW72e77tTkTKwAAAFNJREFUeAHtzjkSgCAUBNHPgsoy97+ulGXRqJE5L+xkxoYt2UdsLb5bqFINz+aLuuLn5rIu2RkO3fZpWENimNgiw6iBYRTPMLJjGFxQZ1hxxb/xBI1qC8k39CdKAAAAAElFTkSuQmCC"},7040:(e,t,n)=>{"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(e,t,n)=>{"use strict";var r=n(9504),o=n(9039),i=n(2195),s=Object,a=r("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):s(e)}:s},7071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},7075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7080:(e,t,n)=>{"use strict";var r=n(4402).has;e.exports=function(e){return r(e),e}},7088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},7145:(e,t,n)=>{"use strict";var r=n(6518),o=n(9504),i=n(9306),s=n(5397),a=n(5370),l=n(4124),u=n(6469),c=Array,d=o(l("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=s(this),n=a(c,t);return d(n,e)}}),u("toSorted")},7160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{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"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(5093))},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},7329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7347:(e,t,n)=>{"use strict";var r=n(3724),o=n(9565),i=n(8773),s=n(6980),a=n(5397),l=n(6969),u=n(9297),c=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return s(!o(i.f,e,t),e[t])}},7357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(5093))},7400:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(1601),o=n.n(r),i=n(6314),s=n.n(i),a=n(4417),l=n.n(a),u=new URL(n(7026),n.b),c=new URL(n(2608),n.b),d=new URL(n(500),n.b),h=new URL(n(7698),n.b),p=s()(o()),f=l()(u),m=l()(c),g=l()(d),b=l()(h);p.push([e.id,`@charset "UTF-8";\n /*!\n * Copyright (c) HANDSONCODE sp. z o. o.\n *\n * HANDSONTABLE is a software distributed by HANDSONCODE sp. z o. o., a Polish corporation based in\n * Gdynia, Poland, at Aleja Zwyciestwa 96-98, registered by the District Court in Gdansk under number\n * 538651, EU tax ID number: PL5862294002, share capital: PLN 62,800.00.\n *\n * This software is protected by applicable copyright laws, including international treaties, and dual-\n * licensed - depending on whether your use for commercial purposes, meaning intended for or\n * resulting in commercial advantage or monetary compensation, or not.\n *\n * If your use is strictly personal or solely for evaluation purposes, meaning for the purposes of testing\n * the suitability, performance, and usefulness of this software outside the production environment,\n * you agree to be bound by the terms included in the "handsontable-non-commercial-license.pdf" file.\n *\n * Your use of this software for commercial purposes is subject to the terms included in an applicable\n * license agreement.\n *\n * In any case, you must not make any such use of this software as to develop software which may be\n * considered competitive with this software.\n *\n * UNLESS EXPRESSLY AGREED OTHERWISE, HANDSONCODE PROVIDES THIS SOFTWARE ON AN "AS IS"\n * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, AND IN NO EVENT AND UNDER NO\n * LEGAL THEORY, SHALL HANDSONCODE BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT,\n * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM\n * USE OR INABILITY TO USE THIS SOFTWARE.\n *\n * Version: 15.3.0\n * Release date: 29/04/2025 (built at 24/04/2025 10:59:25)\n */.handsontable .table td,.handsontable .table th{border-top:none}.handsontable tr{background:#fff}.handsontable td{background-color:inherit}.handsontable .table caption+thead tr:first-child td,.handsontable .table caption+thead tr:first-child th,.handsontable .table colgroup+thead tr:first-child td,.handsontable .table colgroup+thead tr:first-child th,.handsontable .table thead:first-child tr:first-child td,.handsontable .table thead:first-child tr:first-child th{border-top:1px solid #ccc}.handsontable .table-bordered{border:0;border-collapse:separate}.handsontable .table-bordered td,.handsontable .table-bordered th{border-left:none}.handsontable .table-bordered td:first-child,.handsontable .table-bordered th:first-child{border-left:1px solid #ccc}.handsontable .table>tbody>tr>td,.handsontable .table>tbody>tr>th,.handsontable .table>tfoot>tr>td,.handsontable .table>tfoot>tr>th,.handsontable .table>thead>tr>td,.handsontable .table>thead>tr>th{line-height:21px;padding:0}.col-lg-1.handsontable,.col-lg-10.handsontable,.col-lg-11.handsontable,.col-lg-12.handsontable,.col-lg-2.handsontable,.col-lg-3.handsontable,.col-lg-4.handsontable,.col-lg-5.handsontable,.col-lg-6.handsontable,.col-lg-7.handsontable,.col-lg-8.handsontable,.col-lg-9.handsontable,.col-md-1.handsontable,.col-md-10.handsontable,.col-md-11.handsontable,.col-md-12.handsontable,.col-md-2.handsontable,.col-md-3.handsontable,.col-md-4.handsontable,.col-md-5.handsontable,.col-md-6.handsontable,.col-md-7.handsontable,.col-md-8.handsontable,.col-md-9.handsontable .col-sm-1.handsontable,.col-sm-10.handsontable,.col-sm-11.handsontable,.col-sm-12.handsontable,.col-sm-2.handsontable,.col-sm-3.handsontable,.col-sm-4.handsontable,.col-sm-5.handsontable,.col-sm-6.handsontable,.col-sm-7.handsontable,.col-sm-8.handsontable,.col-sm-9.handsontable .col-xs-1.handsontable,.col-xs-10.handsontable,.col-xs-11.handsontable,.col-xs-12.handsontable,.col-xs-2.handsontable,.col-xs-3.handsontable,.col-xs-4.handsontable,.col-xs-5.handsontable,.col-xs-6.handsontable,.col-xs-7.handsontable,.col-xs-8.handsontable,.col-xs-9.handsontable{padding-left:0;padding-right:0}.handsontable .table-striped>tbody>tr:nth-of-type(2n){background-color:#fff}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable .wtHider{position:relative;width:0}.handsontable .wtSpreader{height:auto;position:relative;width:0}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:auto}.handsontable table.htCore{border-collapse:separate;border-spacing:0;border-width:0;cursor:default;margin:0;max-height:none;max-width:none;outline-width:0;table-layout:fixed;width:0}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{background-color:#fff;border-bottom:1px solid #ccc;border-left-width:0;border-right:1px solid #ccc;border-top-width:0;empty-cells:show;height:22px;line-height:21px;outline:none;outline-width:0;overflow:hidden;padding:0 4px;vertical-align:top;white-space:pre-wrap}[dir=rtl].handsontable td,[dir=rtl].handsontable th{border-left:1px solid #ccc;border-right-width:0}.handsontable th:last-child{border-bottom:1px solid #ccc;border-left:none;border-right:1px solid #ccc}[dir=rtl].handsontable th:last-child{border-left:1px solid #ccc;border-right:none}.handsontable td:first-of-type,.handsontable th:first-child{border-left:1px solid #ccc}[dir=rtl].handsontable td:first-of-type,[dir=rtl].handsontable th:first-child{border-right:1px solid #ccc}.handsontable .ht_clone_top th:nth-child(2){border-left-width:0;border-right:1px solid #ccc}[dir=rtl].handsontable .ht_clone_top th:nth-child(2){border-left:1px solid #ccc;border-right-width:0}.handsontable.htRowHeaders thead tr th:nth-child(2){border-left:1px solid #ccc}[dir=rtl].handsontable.htRowHeaders thead tr th:nth-child(2){border-right:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,.ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-left:1px solid #ccc;border-right-width:0}[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns) tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns) thead tr th:first-child,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.htGhostTable) tbody tr th,[dir=rtl].ht_master:not(.innerBorderInlineStart):not(.emptyColumns)~.handsontable:not(.ht_clone_top):not(.htGhostTable) thead tr th:first-child{border-left-width:0;border-right:1px solid #ccc}.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom) thead tr:last-child th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop):not(.innerBorderBottom)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f0f0f0;color:#222;font-weight:400;text-align:center;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable span.colHeader{display:inline-block;line-height:1.1}.handsontable .wtBorder{font-size:0;position:absolute}.handsontable .wtBorder.hidden{display:none!important}.handsontable .wtBorder.current{z-index:10}.handsontable .wtBorder.area{z-index:8}.handsontable .wtBorder.fill{z-index:6}.handsontable .wtBorder.corner{cursor:crosshair;font-size:0}.ht_clone_master{z-index:100}.ht_clone_inline_start{z-index:120}.ht_clone_bottom{z-index:130}.ht_clone_bottom_inline_start_corner{z-index:150}.ht_clone_top{z-index:160}.ht_clone_top_inline_start_corner{z-index:180}.handsontable col.hidden{width:0!important}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_inline_start,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.handsontable .ht_clone_inline_start table.htCore>thead,.handsontable .ht_master table.htCore>tbody>tr>th,.handsontable .ht_master table.htCore>thead{visibility:hidden}.ht_clone_bottom .wtHolder,.ht_clone_inline_start .wtHolder,.ht_clone_top .wtHolder{overflow:hidden}.handsontable{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:13px;font-weight:400;position:relative;touch-action:manipulation}.handsontable a{color:#104acc}.handsontable.htAutoSize{left:-99000px;position:absolute;top:-99000px;visibility:hidden}.handsontable td.htInvalid{background-color:#ffbeba!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable td.invisibleSelection,.handsontable th.invisibleSelection{outline:none}.handsontable td.invisibleSelection::selection,.handsontable th.invisibleSelection::selection{background:hsla(0,0%,100%,0)}.hot-display-license-info{color:#373737;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Arial,sans-serif;font-size:10px;font-weight:400;padding:5px 0 3px;text-align:left}.hot-display-license-info a{color:#104acc;font-size:10px}.handsontable .htFocusCatcher{border:0;height:0;margin:0;opacity:0;padding:0;position:absolute;width:0;z-index:-1}.handsontable .manualColumnResizer{cursor:col-resize;height:25px;position:absolute;top:0;width:5px;z-index:210}.handsontable .manualRowResizer{cursor:row-resize;height:5px;left:0;position:absolute;width:50px;z-index:210}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#34a9db}.handsontable .manualColumnResizerGuide{background-color:#34a9db;border-left:none;border-right:1px dashed #777;display:none;margin-left:5px;margin-right:unset;position:absolute;right:unset;top:0;width:0}[dir=rtl].handsontable .manualColumnResizerGuide{border-left:1px dashed #777;border-right:none;left:unset;margin-left:unset;margin-right:5px}.handsontable .manualRowResizerGuide{background-color:#34a9db;border-bottom:1px dashed #777;bottom:0;display:none;height:0;left:0;margin-top:5px;position:absolute}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:209}.handsontable td.area,.handsontable td.area-1,.handsontable td.area-2,.handsontable td.area-3,.handsontable td.area-4,.handsontable td.area-5,.handsontable td.area-6,.handsontable td.area-7{position:relative}.handsontable td.area-1:before,.handsontable td.area-2:before,.handsontable td.area-3:before,.handsontable td.area-4:before,.handsontable td.area-5:before,.handsontable td.area-6:before,.handsontable td.area-7:before,.handsontable td.area:before{background:#005eff;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.handsontable td.area:before{opacity:.1}.handsontable td.area-1:before{opacity:.2}.handsontable td.area-2:before{opacity:.27}.handsontable td.area-3:before{opacity:.35}.handsontable td.area-4:before{opacity:.41}.handsontable td.area-5:before{opacity:.47}.handsontable td.area-6:before{opacity:.54}.handsontable td.area-7:before{opacity:.58}.handsontable tbody th.current,.handsontable thead th.current{box-shadow:inset 0 0 0 2px #4b89ff}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#dcdcdc}.handsontable tbody th.ht__active_highlight,.handsontable thead th.ht__active_highlight{background-color:#8eb0e7;color:#000}.handsontableInput{background-color:#fff;border:none;border-radius:0;box-shadow:inset 0 0 0 2px #5292f7;box-sizing:border-box!important;color:#000;display:block;font-family:inherit;font-size:inherit;line-height:21px;margin:0;outline-width:0;padding:1px 5px 0;resize:none}.handsontableInput:focus{outline:none}.handsontableInputHolder{left:0;position:absolute;top:0}.htSelectEditor{position:absolute;select{-webkit-appearance:menulist-button!important;border:2px solid #4b89ff;box-sizing:border-box!important;height:100%;width:100%}}.htSelectEditor select:focus{outline:none}.htSelectEditor .htAutocompleteArrow{display:none}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{color:#777;content:"▶";font-size:9px;position:absolute;right:5px}[dir=rtl].handsontable .htSubmenu :after{content:""}[dir=rtl].handsontable .htSubmenu :before{color:#777;content:"◀";font-size:9px;left:5px;position:absolute}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{background:#fff;border:1px solid #ccc;border-collapse:separate}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent!important}.handsontable.listbox td,.handsontable.listbox th{text-overflow:ellipsis;white-space:nowrap}.handsontable.listbox td.htDimmed{color:inherit;cursor:default;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr td.current,.handsontable.listbox tr:hover td{background:#eee}.ht_editor_hidden{z-index:-1}.ht_editor_visible{z-index:200}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.handsontable.mobile .handsontableInput:focus{-webkit-appearance:none;-webkit-box-shadow:inset 0 0 0 2px #5292f7;-moz-box-shadow:inset 0 0 0 2px #5292f7;box-shadow:inset 0 0 0 2px #5292f7}.handsontable .bottomSelectionHandle,.handsontable .bottomSelectionHandle-HitArea,.handsontable .topSelectionHandle,.handsontable .topSelectionHandle-HitArea{left:-10000px;right:unset;top:-10000px;z-index:9999}[dir=rtl].handsontable .bottomSelectionHandle,[dir=rtl].handsontable .bottomSelectionHandle-HitArea,[dir=rtl].handsontable .topSelectionHandle,[dir=rtl].handsontable .topSelectionHandle-HitArea{left:unset;right:-10000px}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable .htAutocompleteArrow{color:#bbb;cursor:default;float:right;font-size:10px;text-align:center;width:16px}[dir=rtl].handsontable .htAutocompleteArrow{float:left}.handsontable td.htInvalid .htAutocompleteArrow{color:#555}.handsontable td.htInvalid .htAutocompleteArrow:hover{color:#1a1a1a}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;font-size:inherit;vertical-align:middle}.handsontable .htCheckboxRendererLabel.fullWidth{width:100%}.handsontable .collapsibleIndicator{background:#eee;border:1px solid #a6a6a6;border-radius:10px;-webkit-box-shadow:0 0 0 6px #eee;-moz-box-shadow:0 0 0 6px #eee;box-shadow:0 0 0 3px #eee;color:#222;cursor:pointer;font-size:10px;height:10px;left:unset;line-height:8px;position:absolute;right:5px;text-align:center;top:50%;transform:translateY(-50%);width:10px}[dir=rtl].handsontable .collapsibleIndicator{left:5px;right:unset}.handsontable[dir=ltr] thead th:has(.collapsibleIndicator) div.htRight span.colHeader{margin-right:20px}.handsontable[dir=rtl] thead th:has(.collapsibleIndicator) div.htLeft span.colHeader{margin-left:20px}.handsontable .columnSorting{position:relative}.handsontable[dir=ltr] div.htRight span[class*=ascending],.handsontable[dir=ltr] div.htRight span[class*=descending]{margin-left:-10px;margin-right:10px}.handsontable[dir=rtl] div.htLeft span[class*=ascending],.handsontable[dir=rtl] div.htLeft span[class*=descending]{margin-left:10px;margin-right:-10px}.handsontable[dir=ltr] div.htRight span[class*=ascending]:only-child,.handsontable[dir=ltr] div.htRight span[class*=descending]:only-child{margin-left:-15px;margin-right:15px}.handsontable[dir=rtl] div.htLeft span[class*=ascending]:only-child,.handsontable[dir=rtl] div.htLeft span[class*=descending]:only-child{margin-left:15px;margin-right:-15px}.handsontable .columnSorting.sortAction:hover{cursor:pointer;text-decoration:underline}.handsontable span.colHeader.columnSorting:before{background-position-x:right;background-repeat:no-repeat;background-size:contain;content:"";height:10px;left:unset;margin-top:-6px;padding-left:8px;padding-right:0;position:absolute;right:-9px;top:50%;width:5px}[dir=rtl].handsontable span.colHeader.columnSorting:before{background-position-x:left;left:-9px;padding-left:0;padding-right:8px;right:unset}.handsontable span.colHeader.columnSorting.ascending:before{background-image:url(${f})}.handsontable span.colHeader.columnSorting.descending:before{background-image:url(${m})}.htGhostTable .htCore span.colHeader.columnSorting:not(.indicatorDisabled):before{content:"*";display:inline-block;padding-right:20px;position:relative}.handsontable.htGhostTable table thead th{border-bottom-width:0}.handsontable.htGhostTable table tbody tr td,.handsontable.htGhostTable table tbody tr th{border-top-width:0}.handsontable .htCommentCell{position:relative}.handsontable .htCommentCell:after{border-left:6px solid transparent;border-right:none;border-top:6px solid #000;content:"";left:unset;position:absolute;right:0;top:0}[dir=rtl].handsontable .htCommentCell:after{border-left:none;border-right:6px solid transparent;left:0;right:unset}.htCommentsContainer .htComments{display:none;position:absolute;z-index:1059}.htCommentsContainer .htCommentTextArea{-webkit-appearance:none;background-color:#fff;border:none;border-left:3px solid #ccc;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:90px;outline:0!important;padding:5px;width:215px}[dir=rtl].htCommentsContainer .htCommentTextArea{border-left:none;border-right:3px solid #ccc}.htCommentsContainer .htCommentTextArea:focus{border-left:3px solid #5292f7;border-right:none;box-shadow:0 1px 3px rgba(0,0,0,.118),0 1px 2px rgba(0,0,0,.239),inset 0 0 0 1px #5292f7}[dir=rtl].htCommentsContainer .htCommentTextArea:focus{border-left:none;border-right:3px solid #5292f7}\n/*!\n * Handsontable ContextMenu\n */.htContextMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_bottom,.htContextMenu .ht_clone_bottom_inline_start_corner,.htContextMenu .ht_clone_inline_start,.htContextMenu .ht_clone_top,.htContextMenu .ht_clone_top_inline_start_corner{display:none}.htContextMenu .ht_master table.htCore{border-color:#ccc;border-style:solid;border-width:1px 2px 2px 1px}[dir=rtl].htContextMenu .ht_master table.htCore{border-left-width:2px;border-right-width:1px}.htContextMenu.handsontable:focus{outline:none}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htContextMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htContextMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htContextMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htContextMenu table tbody tr td.current{background:#f3f3f3}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;cursor:default;height:0;padding:0}.htContextMenu table tbody tr td.htDisabled{color:#999;cursor:default}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr.htHidden{display:none}.htContextMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:6px}[dir=rtl].htContextMenu table tbody tr td .htItemWrapper{margin-left:6px;margin-right:10px}.htContextMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute;right:0}[dir=rtl].htContextMenu table tbody tr td div span.selected{left:0;right:4px}.htContextMenu .ht_master .wtHolder{overflow:hidden}textarea.HandsontableCopyPaste{opacity:0;outline:0 none!important;overflow:hidden;position:fixed!important;right:100%!important;top:0!important}\n\n/*!\n * Handsontable DropdownMenu\n */.handsontable .changeType{background:#eee;border:1px solid #bbb;border-radius:2px;color:#bbb;float:right;font-size:9px;line-height:9px;margin:3px 1px 0 5px;padding:2px}[dir=rtl].handsontable .changeType{float:left}.handsontable[dir=rtl] .changeType{margin:3px 5px 0 1px}.handsontable .changeType:before{content:"▼ "}.handsontable .changeType:hover{border:1px solid #777;color:#777;cursor:pointer}.htDropdownMenu:not(.htGhostTable){display:none;position:absolute;z-index:1060}.htDropdownMenu .ht_clone_bottom,.htDropdownMenu .ht_clone_bottom_inline_start_corner,.htDropdownMenu .ht_clone_inline_start,.htDropdownMenu .ht_clone_top,.htDropdownMenu .ht_clone_top_inline_start_corner{display:none}.htDropdownMenu table.htCore{border-color:#ccc;border-style:solid;border-width:1px 2px 2px 1px}[dir=rtl].htDropdownMenu table.htCore{border-left-width:2px;border-right-width:1px}.htDropdownMenu.handsontable:focus{outline:none}.htDropdownMenu .wtBorder{visibility:hidden}.htDropdownMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htDropdownMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htDropdownMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htDropdownMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htDropdownMenu table tbody tr td.current{background:#e9e9e9}.htDropdownMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;cursor:default;height:0;padding:0}.htDropdownMenu table tbody tr td.htDisabled{color:#999}.htDropdownMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htDropdownMenu:not(.htGhostTable) table tbody tr.htHidden{display:none}.htDropdownMenu table tbody tr td .htItemWrapper,[dir=rtl].htDropdownMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htDropdownMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute;right:0}[dir=rtl].htDropdownMenu table tbody tr td div span.selected{left:0;right:4px}.htDropdownMenu .ht_master .wtHolder{overflow:hidden}\n\n/*!\n * Handsontable Filters\n */.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1070}.htFiltersConditionsMenu .ht_clone_bottom,.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.htFiltersConditionsMenu .ht_clone_inline_start,.htFiltersConditionsMenu .ht_clone_top,.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.htFiltersConditionsMenu table.htCore{border-color:#bbb;border-style:solid;border-width:1px 2px 2px 1px}.htFiltersConditionsMenu .wtBorder{visibility:hidden}.htFiltersConditionsMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htFiltersConditionsMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htFiltersConditionsMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htFiltersConditionsMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htFiltersConditionsMenu table tbody tr td.current{background:#e9e9e9}.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;height:0;padding:0}.htFiltersConditionsMenu table tbody tr td.htDisabled{color:#999}.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htFiltersConditionsMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute}.htFiltersConditionsMenu .ht_master .wtHolder{overflow:hidden}.handsontable .htMenuFiltering{border-bottom:1px dotted #ccc;height:135px;overflow:hidden}.handsontable .ht_master table td.htCustomMenuRenderer{background-color:#fff;cursor:auto}.handsontable .htFiltersMenuLabel{font-size:.75em}.handsontable .htFiltersMenuActionBar{padding-bottom:3px;padding-top:10px;text-align:center}.handsontable .htFiltersMenuCondition.border{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuCondition .htUIInput{padding:0 0 5px}.handsontable .htFiltersMenuValue{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch{padding:0}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{box-sizing:border-box;font-family:inherit;font-size:.75em;padding:4px;width:100%}.htUIMultipleSelect .ht_master .wtHolder{overflow:auto}.handsontable .htFiltersActive .changeType{background-color:#d2e0d9;border:1px solid #509272;color:#18804e}.handsontable .htUISelectAll{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUISelectAll{margin-left:10px;margin-right:0}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:.75em}.handsontable .htUISelectionControls{text-align:right}[dir=rtl].handsontable .htUISelectionControls{text-align:left}.handsontable .htCheckboxRendererInput{display:inline-block;height:1em;margin:0 5px 0 0;vertical-align:middle}[dir=rtl].handsontable .htCheckboxRendererInput{margin-left:5px;margin-right:0}.handsontable .htUIInput{padding:3px 0 7px;position:relative;text-align:center}.handsontable .htUIInput input{border:1px solid #d2d1d1;border-radius:2px}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButton input{background-color:#eee;color:#000;cursor:pointer;font-family:inherit;font-size:.75em;font-weight:700;height:19px;min-width:64px}.handsontable .htUIInput.htUIButton input:hover{border-color:#b9b9b9}.handsontable .htUIInput.htUIButtonOK{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUIInput.htUIButtonOK{margin-left:10px;margin-right:0}.handsontable .htUIInput.htUIButtonOK input{background-color:#0f9d58;border-color:#18804e;color:#fff}.handsontable .htUIInput.htUIButtonOK input:focus-visible{background-color:#92dd8d;border-color:#7cb878;color:#000}.handsontable .htUIInput.htUIButtonOK input:hover{border-color:#1a6f46}.handsontable .htUISelect{cursor:pointer;margin-bottom:7px;position:relative}.handsontable .htUISelectCaption{background-color:#e8e8e8;border:1px solid #d2d1d1;border-radius:2px;font-family:inherit;font-size:.75em;font-weight:700;overflow:hidden;padding:3px 20px 3px 10px;text-overflow:ellipsis;white-space:nowrap}.handsontable .htUISelectCaption:hover{background-color:#e8e8e8;border:1px solid #b9b9b9}.handsontable .htUISelectDropdown:after{content:"▲";font-size:7px;position:absolute;right:10px;top:0}.handsontable .htUISelectDropdown:before{content:"▼";font-size:7px;position:absolute;right:10px;top:8px}.handsontable .htUIMultipleSelect .handsontable .htCore{border:none}.handsontable .htUIMultipleSelect .handsontable .htCore td:hover{background-color:#f5f5f5}.handsontable .htUIMultipleSelectSearch input{border:1px solid #d2d1d1;border-radius:2px;padding:3px}.handsontable .htUIRadio{display:inline-block;height:100%;margin-left:0;margin-right:5px}[dir=rtl].handsontable .htUIRadio{margin-left:5px;margin-right:0}.handsontable .htUIRadio:last-child{margin-right:0}.handsontable .htUIRadio>input[type=radio]{margin-left:0;margin-right:.5ex}[dir=rtl].handsontable .htUIRadio>input[type=radio]{margin-left:.5ex;margin-right:0}.handsontable .htUIRadio label{vertical-align:middle}.handsontable .htFiltersMenuOperators{padding-bottom:5px}.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after{color:#bbb;font-size:5pt;position:absolute;top:50%;transform:translateY(-50%)}.handsontable th.afterHiddenColumn{position:relative}.handsontable[dir=ltr] th.afterHiddenColumn div.htLeft{margin-left:10px}.handsontable[dir=ltr] th.beforeHiddenColumn div.htRight,.handsontable[dir=rtl] th.afterHiddenColumn div.htRight{margin-right:10px}.handsontable[dir=rtl] th.beforeHiddenColumn div.htLeft{margin-left:10px}.handsontable th.beforeHiddenColumn:after{content:"◀";right:1px}[dir=rtl].handsontable th.beforeHiddenColumn:after{content:"▶";left:1px;right:auto}.handsontable th.afterHiddenColumn:before{content:"▶";left:1px}[dir=rtl].handsontable th.afterHiddenColumn:before{content:"◀";left:auto;right:1px}\n\n/*!\n * Handsontable HiddenRows\n */.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"▲"}.handsontable th.afterHiddenRow:after{content:"▼";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns *,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows *,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable[dir=ltr] div.htRight span[class*=sort-]{margin-left:-15px;margin-right:15px}.handsontable[dir=rtl] div.htLeft span[class*=sort-]{margin-left:15px;margin-right:-15px}.handsontable[dir=ltr] div.htRight span[class*=sort-]:only-child{margin-left:-20px;margin-right:20px}.handsontable[dir=rtl] div.htLeft span[class*=sort-]:only-child{margin-left:20px;margin-right:-20px}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}thead th.hiddenHeaderText .colHeader{opacity:0}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"┐";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset}\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/\n */.pika-single{background:#fff;border:1px solid;border-color:#ccc #ccc #bbb;color:#333;display:block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;position:relative;z-index:9999}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single:after{clear:both}.pika-single.is-hidden{display:none}.pika-single.is-bound{box-shadow:0 5px 15px -5px rgba(0,0,0,.5);position:absolute}.pika-lendar{float:left;margin:8px;width:240px}.pika-title{position:relative;text-align:center}.pika-label{background-color:#fff;display:inline-block;font-size:14px;font-weight:700;line-height:20px;margin:0;overflow:hidden;padding:5px 3px;position:relative;z-index:9999}.pika-title select{cursor:pointer;left:0;margin:0;opacity:0;position:absolute;top:5px;z-index:9998}.pika-next,.pika-prev{background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:75% 75%;border:0;cursor:pointer;display:block;height:30px;opacity:.5;outline:none;overflow:hidden;padding:0;position:relative;text-indent:20px;white-space:nowrap;width:20px}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{background-image:url(${g});float:left}.is-rtl .pika-prev,.pika-next{background-image:url(${b});float:right}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block}.pika-table{border:0;border-collapse:collapse;border-spacing:0;width:100%}.pika-table td,.pika-table th{padding:0;width:14.285714285714286%}.pika-table th{color:#999;font-weight:700;line-height:25px}.pika-button,.pika-table th{font-size:12px;text-align:center}.pika-button{background:#f5f5f5;border:0;box-sizing:border-box;-moz-box-sizing:border-box;color:#666;cursor:pointer;display:block;height:auto;line-height:15px;margin:0;outline:none;padding:5px;width:100%}.pika-week{color:#999;font-size:11px}.is-today .pika-button{color:#3af;font-weight:700}.has-event .pika-button,.is-selected .pika-button{background:#3af;border-radius:3px;box-shadow:inset 0 1px 3px #178fe5;color:#fff;font-weight:700}.has-event .pika-button{background:#005da9;box-shadow:inset 0 1px 3px #0076c9}.is-disabled .pika-button,.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{background:#6cb31d;border-radius:3px;box-shadow:none;color:#fff}.is-endrange .pika-button{background:#3af;border-radius:3px;box-shadow:none;color:#fff}.is-disabled .pika-button{color:#999;cursor:default;opacity:.3;pointer-events:none}.is-outside-current-month .pika-button{color:#999;opacity:.3}.is-selection-disabled{cursor:default;pointer-events:none}.pika-button:hover,.pika-row.pick-whole-week:hover .pika-button{background:#ff8000;border-radius:3px;box-shadow:none;color:#fff}.pika-table abbr{border-bottom:none;cursor:help}`,""]);const y=p},7476:(e,t,n)=>{"use strict";var r=n(2195),o=n(9504);e.exports=function(e){if("Function"===r(e))return o(e)}},7538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(5093))},7550:(e,t,n)=>{"use strict";n(3579)},7584:(e,t,n)=>{"use strict";var r=n(34),o=n(6699);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},7588:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(2652),s=n(9306),a=n(8551),l=n(1767),u=n(9539),c=n(4549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){a(this);try{s(e)}catch(e){u(this,"throw",e)}if(c)return o(c,this,e);var t=l(this),n=0;i(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},7609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(5093))},7629:(e,t,n)=>{"use strict";var r=n(6395),o=n(4576),i=n(9433),s="__core-js_shared__",a=e.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:(e,t,n)=>{"use strict";var r=n(6518),o=n(3440);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("difference",(function(e){return 0===e.size}))},{difference:o})},7650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7657:(e,t,n)=>{"use strict";var r,o,i,s=n(9039),a=n(4901),l=n(34),u=n(2360),c=n(2787),d=n(6840),h=n(8227),p=n(6395),f=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):m=!0),!l(r)||s((function(){var e={};return r[f].call(e)!==e}))?r={}:p&&(r=u(r)),a(r[f])||d(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7680:(e,t,n)=>{"use strict";var r=n(9504);e.exports=r([].slice)},7698:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII="},7711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{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"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(5093))},7730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7740:(e,t,n)=>{"use strict";var r=n(9297),o=n(5031),i=n(7347),s=n(4913);e.exports=function(e,t,n){for(var a=o(t),l=s.f,u=i.f,c=0;c<a.length;c++){var d=a[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},7750:(e,t,n)=>{"use strict";var r=n(4117),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},7751:(e,t,n)=>{"use strict";var r=n(4576),o=n(4901);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},7777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7853:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{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._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},7979:(e,t,n)=>{"use strict";var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8004:(e,t,n)=>{"use strict";var r=n(6518),o=n(9039),i=n(8750);r({target:"Set",proto:!0,real:!0,forced:!n(4916)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||o((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},8014:(e,t,n)=>{"use strict";var r=n(1291),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(t,9007199254740991):0}},8076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},8107:(e,t,n)=>{"use strict";var r=n(6518),o=n(8981),i=n(6198),s=n(1291),a=n(6469);r({target:"Array",proto:!0},{at:function(e){var t=o(this),n=i(t),r=s(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),a("at")},8111:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(679),s=n(8551),a=n(4901),l=n(2787),u=n(2106),c=n(2278),d=n(9039),h=n(9297),p=n(8227),f=n(7657).IteratorPrototype,m=n(3724),g=n(6395),b="constructor",y="Iterator",w=p("toStringTag"),v=TypeError,S=o[y],C=g||!a(S)||S.prototype!==f||!d((function(){S({})})),_=function(){if(i(this,f),l(this)===f)throw new v("Abstract class Iterator not directly constructable")},M=function(e,t){m?u(f,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===f)throw new v("You can't redefine this property");h(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};h(f,w)||M(w,y),!C&&h(f,b)&&f[b]!==Object||M(b,_),_.prototype=f,r({global:!0,constructor:!0,forced:C},{Iterator:_})},8174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},8227:(e,t,n)=>{"use strict";var r=n(4576),o=n(5745),i=n(9297),s=n(3392),a=n(4495),l=n(7040),u=r.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return i(c,e)||(c[e]=a&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(5093))},8237:(e,t,n)=>{"use strict";var r=n(6518),o=n(2652),i=n(9306),s=n(8551),a=n(1767),l=n(9539),u=n(4549),c=n(8745),d=n(9039),h=TypeError,p=d((function(){[].keys().reduce((function(){}),void 0)})),f=!p&&u("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||f},{reduce:function(e){s(this);try{i(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(f)return c(f,this,t?[e]:[e,n]);var r=a(this),u=0;if(o(r,(function(r){t?(t=!1,n=r):n=e(n,r,u),u++}),{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},8298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},8303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{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("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(5093))},8383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{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"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},8414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(5093))},8418:(e,t,n)=>{"use strict";e.exports=n(5160)},8469:(e,t,n)=>{"use strict";var r=n(9504),o=n(507),i=n(4402),s=i.Set,a=i.proto,l=r(a.forEach),u=r(a.keys),c=u(new s).next;e.exports=function(e,t,n){return n?o({iterator:u(e),next:c},t):l(e,t)}},8474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},8480:(e,t,n)=>{"use strict";var r=n(1828),o=n(8727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},8493:(e,t,n)=>{"use strict";var r=n(6540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),s((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},8527:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402).has,i=n(5170),s=n(3789),a=n(507),l=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(i(t)<n.size)return!1;var u=n.getIterator();return!1!==a(u,(function(e){if(!o(t,e))return l(u,"normal",!1)}))}},8551:(e,t,n)=>{"use strict";var r=n(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},8574:(e,t,n)=>{"use strict";var r=n(4215);e.exports="NODE"===r},8622:(e,t,n)=>{"use strict";var r=n(4576),o=n(4901),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8646:(e,t,n)=>{"use strict";var r=n(9565),o=n(8551),i=n(1767),s=n(851);e.exports=function(e,t){t&&"string"==typeof e||o(e);var n=s(e);return i(o(void 0!==n?r(n,e):e))}},8676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(5093))},8686:(e,t,n)=>{"use strict";var r=n(3724),o=n(9039);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(i):function(){return s.apply(i,arguments)})},8750:(e,t,n)=>{"use strict";var r=n(7080),o=n(4402),i=n(5170),s=n(3789),a=n(8469),l=n(507),u=o.Set,c=o.add,d=o.has;e.exports=function(e){var t=r(this),n=s(e),o=new u;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&c(o,e)})):a(t,(function(e){n.includes(e)&&c(o,e)})),o}},8773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},8861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},8872:(e,t,n)=>{"use strict";n(8237)},8959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,o={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?o[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?o[1]:o[2]);var r,o}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(5093))},8981:(e,t,n)=>{"use strict";var r=n(7750),o=Object;e.exports=function(e){return o(r(e))}},8992:(e,t,n)=>{"use strict";n(8111)},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(5093))},9039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9053:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(5093))},9225:(e,t,n)=>{"use strict";var r,o,i,s,a=n(4576),l=n(8745),u=n(6080),c=n(4901),d=n(9297),h=n(9039),p=n(397),f=n(7680),m=n(4055),g=n(2812),b=n(9544),y=n(8574),w=a.setImmediate,v=a.clearImmediate,S=a.process,C=a.Dispatch,_=a.Function,M=a.MessageChannel,x=a.String,k=0,R={},T="onreadystatechange";h((function(){r=a.location}));var E=function(e){if(d(R,e)){var t=R[e];delete R[e],t()}},L=function(e){return function(){E(e)}},I=function(e){E(e.data)},P=function(e){a.postMessage(x(e),r.protocol+"//"+r.host)};w&&v||(w=function(e){g(arguments.length,1);var t=c(e)?e:_(e),n=f(arguments,1);return R[++k]=function(){l(t,void 0,n)},o(k),k},v=function(e){delete R[e]},y?o=function(e){S.nextTick(L(e))}:C&&C.now?o=function(e){C.now(L(e))}:M&&!b?(s=(i=new M).port2,i.port1.onmessage=I,o=u(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(P)?(o=P,a.addEventListener("message",I,!1)):o=T in m("script")?function(e){p.appendChild(m("script"))[T]=function(){p.removeChild(this),E(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:w,clear:v}},9231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},9286:(e,t,n)=>{"use strict";var r=n(4402),o=n(8469),i=r.Set,s=r.add;e.exports=function(e){var t=new i;return o(e,(function(e){s(t,e)})),t}},9297:(e,t,n)=>{"use strict";var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},9306:(e,t,n)=>{"use strict";var r=n(4901),o=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},9309:(e,t,n)=>{"use strict";var r=n(6518),o=n(4576),i=n(9225).set,s=n(9472),a=o.setImmediate?s(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==a},{setImmediate:a})},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},9374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var i=e+" ";switch(r){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||o?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||o?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||o?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(o?"daga":"dögum"):n?i+"dagur":i+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(o?"mánuði":"mánuðum"):n?i+"mánuður":i+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return t(e)?i+(n||o?"ár":"árum"):i+(n||o?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},9433:(e,t,n)=>{"use strict";var r=n(4576),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9462:(e,t,n)=>{"use strict";var r=n(9565),o=n(2360),i=n(6699),s=n(6279),a=n(8227),l=n(1181),u=n(5966),c=n(7657).IteratorPrototype,d=n(2529),h=n(9539),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,b=function(e){var t=l.getterFor(e?m:f);return s(o(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),o=n.iterator;if(n.done=!0,e){var i=u(o,"return");return i?r(i,o):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,"normal")}catch(e){return h(o,"throw",e)}return o&&h(o,"normal"),d(void 0,!0)}})},y=b(!0),w=b(!1);i(w,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,o){o?(o.iterator=r.iterator,o.next=r.next):o=r,o.type=t?m:f,o.returnHandlerResult=!!n,o.nextHandler=e,o.counter=0,o.done=!1,g(this,o)};return r.prototype=t?y:w,r}},9472:(e,t,n)=>{"use strict";var r,o=n(4576),i=n(8745),s=n(4901),a=n(4215),l=n(2839),u=n(7680),c=n(2812),d=o.Function,h=/MSIE .\./.test(l)||"BUN"===a&&((r=o.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,o){var a=c(arguments.length,1)>n,l=s(r)?r:d(r),h=a?u(arguments,n):[],p=a?function(){i(l,this,h)}:l;return t?e(p,o):e(p)}:e}},9504:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype,i=o.call,s=r&&o.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}},9519:(e,t,n)=>{"use strict";var r,o,i=n(4576),s=n(2839),a=i.process,l=i.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},9527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{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"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(5093))},9532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9539:(e,t,n)=>{"use strict";var r=n(9565),o=n(8551),i=n(5966);e.exports=function(e,t,n){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return o(s),n}},9544:(e,t,n)=>{"use strict";var r=n(2839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},9565:(e,t,n)=>{"use strict";var r=n(616),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9617:(e,t,n)=>{"use strict";var r=n(5397),o=n(5610),i=n(6198),s=function(e){return function(t,n,s){var a=r(t),l=i(a);if(0===l)return!e&&-1;var u,c=o(s,l);if(e&&n!=n){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((e||c in a)&&a[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},9680:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9698:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element");function r(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},9722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(5093))},9738:(e,t,n)=>{"use strict";var r=n(6518),o=n(9504),i=n(7750),s=n(1291),a=n(655),l=n(9039),u=o("".charAt);r({target:"String",proto:!0,forced:l((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=a(i(this)),n=t.length,r=s(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:u(t,o)}})},9756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},9834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{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("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},9846:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9848:(e,t,n)=>{"use strict";n(6368),n(9309)},9849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(5093))},9869:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var v=w.prototype=new y;v.constructor=w,m(v,b.prototype),v.isPureReactComponent=!0;var S=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function M(e,t,r,o,i,s){return r=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:s}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function T(){}function E(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(a){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case h:return E((c=e._init)(e._payload),t,o,i,s)}}if(c)return s=s(e),c=""===i?"."+R(e,0):i,S(s)?(o="",null!=c&&(o=c.replace(k,"$&/")+"/"),E(s,t,o,"",(function(e){return e}))):null!=s&&(x(s)&&(l=s,u=o+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+c,s=M(l.type,u,void 0,0,0,l.props)),t.push(s)),1;c=0;var d,f=""===i?".":i+":";if(S(e))for(var m=0;m<e.length;m++)c+=E(i=e[m],t,o,a=f+R(i,m),s);else if("function"==typeof(m=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)c+=E(i=i.value,t,o,a=f+R(i,m++),s);else if("object"===a){if("function"==typeof e.then)return E(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function L(e,t,n){if(null==e)return e;var r=[],o=0;return E(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function D(){}t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=s,t.PureComponent=w,t.StrictMode=i,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in t.ref,void 0!==t.key&&(o=""+t.key),t)!_.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}return M(e.type,o,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)_.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return M(e,i,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(D,P)}catch(e){P(e)}finally{C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t,n){var r=C.H;if("function"==typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.1.0"},9888:(e,t,n)=>{"use strict";e.exports=n(8493)},9978:(e,t,n)=>{"use strict";var r=n(6518),o=n(9565),i=n(9504),s=n(7750),a=n(4901),l=n(34),u=n(788),c=n(655),d=n(5966),h=n(1034),p=n(2478),f=n(8227),m=n(6395),g=f("replace"),b=TypeError,y=i("".indexOf),w=i("".replace),v=i("".slice),S=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,f,C,_,M,x,k,R,T=s(this),E=0,L="";if(l(e)){if((n=u(e))&&(r=c(s(h(e))),!~y(r,"g")))throw new b("`.replaceAll` does not allow non-global regexes");if(i=d(e,g))return o(i,e,T,t);if(m&&n)return w(c(T),e,t)}for(f=c(T),C=c(e),(_=a(t))||(t=c(t)),M=C.length,x=S(1,M),k=y(f,C);-1!==k;)R=_?c(t(C,k,f)):p(C,f,k,[],void 0,t),L+=v(f,E,k)+R,E=k+M,k=k+x>f.length?-1:y(f,C,k+x);return E<f.length&&(L+=v(f,E)),L}})},9982:(e,t,n)=>{"use strict";e.exports=n(4477)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(i,s),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.b=document.baseURI||self.location.href,o.nc=void 0,(()=>{"use strict";var e={};o.r(e),o.d(e,{CHECKBOX_CHECKED:()=>Ym,CHECKBOX_RENDERER_NAMESPACE:()=>jm,CHECKBOX_UNCHECKED:()=>Fm,CONTEXTMENU_ITEMS_ADD_COMMENT:()=>Df,CONTEXTMENU_ITEMS_ALIGNMENT:()=>Nf,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:()=>Bf,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:()=>Yf,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:()=>zf,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:()=>jf,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:()=>Vf,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:()=>Ff,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:()=>Wf,CONTEXTMENU_ITEMS_BORDERS:()=>$f,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:()=>Kf,CONTEXTMENU_ITEMS_BORDERS_LEFT:()=>qf,CONTEXTMENU_ITEMS_BORDERS_RIGHT:()=>Gf,CONTEXTMENU_ITEMS_BORDERS_TOP:()=>Uf,CONTEXTMENU_ITEMS_CLEAR_COLUMN:()=>_f,CONTEXTMENU_ITEMS_COPY:()=>Mf,CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY:()=>Rf,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS:()=>kf,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS:()=>xf,CONTEXTMENU_ITEMS_CUT:()=>Tf,CONTEXTMENU_ITEMS_EDIT_COMMENT:()=>Hf,CONTEXTMENU_ITEMS_FREEZE_COLUMN:()=>Ef,CONTEXTMENU_ITEMS_HIDE_COLUMN:()=>Zf,CONTEXTMENU_ITEMS_HIDE_ROW:()=>tm,CONTEXTMENU_ITEMS_INSERT_LEFT:()=>gf,CONTEXTMENU_ITEMS_INSERT_RIGHT:()=>bf,CONTEXTMENU_ITEMS_MERGE_CELLS:()=>If,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:()=>Qf,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:()=>Jf,CONTEXTMENU_ITEMS_NO_ITEMS:()=>pf,CONTEXTMENU_ITEMS_READ_ONLY:()=>Cf,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:()=>Af,CONTEXTMENU_ITEMS_REDO:()=>Sf,CONTEXTMENU_ITEMS_REMOVE_BORDERS:()=>Xf,CONTEXTMENU_ITEMS_REMOVE_COLUMN:()=>wf,CONTEXTMENU_ITEMS_REMOVE_COMMENT:()=>Of,CONTEXTMENU_ITEMS_REMOVE_ROW:()=>yf,CONTEXTMENU_ITEMS_ROW_ABOVE:()=>ff,CONTEXTMENU_ITEMS_ROW_BELOW:()=>mf,CONTEXTMENU_ITEMS_SHOW_COLUMN:()=>em,CONTEXTMENU_ITEMS_SHOW_ROW:()=>nm,CONTEXTMENU_ITEMS_UNDO:()=>vf,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:()=>Lf,CONTEXTMENU_ITEMS_UNMERGE_CELLS:()=>Pf,CONTEXT_MENU_ITEMS_NAMESPACE:()=>hf,FILTERS_BUTTONS_CANCEL:()=>Hm,FILTERS_BUTTONS_CLEAR:()=>Pm,FILTERS_BUTTONS_OK:()=>Dm,FILTERS_BUTTONS_PLACEHOLDER_SEARCH:()=>Om,FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE:()=>Nm,FILTERS_BUTTONS_PLACEHOLDER_VALUE:()=>Am,FILTERS_BUTTONS_SELECT_ALL:()=>Im,FILTERS_CONDITIONS_AFTER:()=>Sm,FILTERS_CONDITIONS_BEFORE:()=>Cm,FILTERS_CONDITIONS_BEGINS_WITH:()=>cm,FILTERS_CONDITIONS_BETWEEN:()=>wm,FILTERS_CONDITIONS_BY_VALUE:()=>fm,FILTERS_CONDITIONS_CONTAINS:()=>hm,FILTERS_CONDITIONS_EMPTY:()=>sm,FILTERS_CONDITIONS_ENDS_WITH:()=>dm,FILTERS_CONDITIONS_EQUAL:()=>lm,FILTERS_CONDITIONS_GREATER_THAN:()=>mm,FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL:()=>gm,FILTERS_CONDITIONS_LESS_THAN:()=>bm,FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL:()=>ym,FILTERS_CONDITIONS_NAMESPACE:()=>om,FILTERS_CONDITIONS_NONE:()=>im,FILTERS_CONDITIONS_NOT_BETWEEN:()=>vm,FILTERS_CONDITIONS_NOT_CONTAIN:()=>pm,FILTERS_CONDITIONS_NOT_EMPTY:()=>am,FILTERS_CONDITIONS_NOT_EQUAL:()=>um,FILTERS_CONDITIONS_TODAY:()=>_m,FILTERS_CONDITIONS_TOMORROW:()=>Mm,FILTERS_CONDITIONS_YESTERDAY:()=>xm,FILTERS_DIVS_FILTER_BY_CONDITION:()=>km,FILTERS_DIVS_FILTER_BY_VALUE:()=>Rm,FILTERS_LABELS_CONJUNCTION:()=>Tm,FILTERS_LABELS_DISJUNCTION:()=>Em,FILTERS_NAMESPACE:()=>rm,FILTERS_VALUES_BLANK_CELLS:()=>Lm});var t=o(6540),n=o.t(t,2);function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const i=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o};function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}var a=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(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]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),l=Math.abs,u=String.fromCharCode,c=Object.assign;function d(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function m(e,t,n){return e.slice(t,n)}function g(e){return e.length}function b(e){return e.length}function y(e,t){return t.push(e),e}var w=1,v=1,S=0,C=0,_=0,M="";function x(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:w,column:v,length:s,return:""}}function k(e,t){return c(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function R(){return _=C>0?f(M,--C):0,v--,10===_&&(v=1,w--),_}function T(){return _=C<S?f(M,C++):0,v++,10===_&&(v=1,w++),_}function E(){return f(M,C)}function L(){return C}function I(e,t){return m(M,e,t)}function P(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 D(e){return w=v=1,S=g(M=e),C=0,[]}function H(e){return M="",e}function O(e){return d(I(C-1,j(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(_=E())&&_<33;)T();return P(e)>2||P(_)>3?"":" "}function N(e,t){for(;--t&&T()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return I(e,L()+(t<6&&32==E()&&32==T()))}function j(e){for(;T();)switch(_){case e:return C;case 34:case 39:34!==e&&39!==e&&j(_);break;case 40:41===e&&j(e);break;case 92:T()}return C}function Y(e,t){for(;T()&&e+_!==57&&(e+_!==84||47!==E()););return"/*"+I(t,C-1)+"*"+u(47===e?e:T())}function F(e){for(;!P(E());)T();return I(e,C)}var z="-ms-",W="-moz-",V="-webkit-",B="comm",$="rule",U="decl",G="@keyframes";function K(e,t){for(var n="",r=b(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case B:return"";case G:return e.return=e.value+"{"+K(e.children,r)+"}";case $:e.value=e.props.join(",")}return g(n=K(e.children,r))?e.return=e.value+"{"+n+"}":""}function X(e){return H(J("",null,null,null,[""],e=D(e),0,[0],e))}function J(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,m=s,b=0,w=0,v=0,S=1,C=1,_=1,M=0,x="",k=o,I=i,P=r,D=x;C;)switch(v=M,M=T()){case 40:if(108!=v&&58==f(D,m-1)){-1!=p(D+=h(O(M),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:D+=O(M);break;case 9:case 10:case 13:case 32:D+=A(v);break;case 92:D+=N(L()-1,7);continue;case 47:switch(E()){case 42:case 47:y(Z(Y(T(),L()),t,n),l);break;default:D+="/"}break;case 123*S:a[c++]=g(D)*_;case 125*S:case 59:case 0:switch(M){case 0:case 125:C=0;case 59+d:-1==_&&(D=h(D,/\f/g,"")),w>0&&g(D)-m&&y(w>32?ee(D+";",r,n,m-1):ee(h(D," ","")+";",r,n,m-2),l);break;case 59:D+=";";default:if(y(P=Q(D,t,n,c,d,o,a,x,k=[],I=[],m),i),123===M)if(0===d)J(D,t,P,P,k,i,m,a,I);else switch(99===b&&110===f(D,3)?100:b){case 100:case 108:case 109:case 115:J(e,P,P,r&&y(Q(e,P,P,0,0,o,a,x,o,k=[],m),I),o,I,m,a,r?k:I);break;default:J(D,P,P,P,[""],I,0,a,I)}}c=d=w=0,S=_=1,x=D="",m=s;break;case 58:m=1+g(D),w=v;default:if(S<1)if(123==M)--S;else if(125==M&&0==S++&&125==R())continue;switch(D+=u(M),M*S){case 38:_=d>0?1:(D+="\f",-1);break;case 44:a[c++]=(g(D)-1)*_,_=1;break;case 64:45===E()&&(D+=O(T())),b=E(),d=m=g(x=D+=F(L())),M++;break;case 45:45===v&&2==g(D)&&(S=0)}}return i}function Q(e,t,n,r,o,i,s,a,u,c,p){for(var f=o-1,g=0===o?i:[""],y=b(g),w=0,v=0,S=0;w<r;++w)for(var C=0,_=m(e,f+1,f=l(v=s[w])),M=e;C<y;++C)(M=d(v>0?g[C]+" "+_:h(_,/&\f/g,g[C])))&&(u[S++]=M);return x(e,t,n,0===o?$:a,u,c,p)}function Z(e,t,n){return x(e,t,n,B,u(_),m(e,2,-2),0)}function ee(e,t,n,r){return x(e,t,n,U,m(e,0,r),m(e,r+1,-1),r)}var te=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!P(o);)T();return I(e,C)},ne=new WeakMap,re=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ne.get(n))&&!r){ne.set(e,!0);for(var o=[],i=function(e,t){return H(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=te(C-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=T());return e}(D(e),t))}(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},oe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ie(e,t){switch(function(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}(e,t)){case 5103:return V+"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 V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+W+e+z+e+e;case 6828:case 4268:return V+e+z+e+e;case 6165:return V+e+z+"flex-"+e+e;case 5187:return V+e+h(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return V+e+z+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return V+e+z+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+z+h(e,"shrink","negative")+e;case 5292:return V+e+z+h(e,"basis","preferred-size")+e;case 6060:return V+"box-"+h(e,"-grow","")+V+e+z+h(e,"grow","positive")+e;case 4554:return V+h(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,V+"$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(g(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+W+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?ie(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,g(e)-3-(~p(e,"!important")&&10))){case 107:return h(e,":",":"+V)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===f(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return V+e+z+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+z+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+z+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+z+e+e}return e}var se=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=ie(e.value,e.length);break;case G:return K([k(e,{value:h(e.value,"@","@"+V)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return K([k(e,{props:[h(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return K([k(e,{props:[h(t,/:(plac\w+)/,":"+V+"input-$1")]}),k(e,{props:[h(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[h(t,/:(plac\w+)/,z+"input-$1")]})],r)}return""}))}}],ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||se,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var u,c,d=[q,(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],h=function(e){var t=b(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}([re,oe].concat(i,d));o=function(e,t,n,r){u=n,function(e){K(X(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new a({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return p.sheet.hydrate(l),p};function le(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var ue=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ce=function(e,t,n){ue(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},de={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};function he(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pe=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,me=function(e){return 45===e.charCodeAt(1)},ge=function(e){return null!=e&&"boolean"!=typeof e},be=he((function(e){return me(e)?e:e.replace(pe,"-$&").toLowerCase()})),ye=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fe,(function(e,t,n){return ve={name:t,styles:n,next:ve},t}))}return 1===de[e]||me(e)||"number"!=typeof t||0===t?t:t+"px"};function we(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ve={name:o.name,styles:o.styles,next:ve},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)ve={name:s.name,styles:s.styles,next:ve},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=we(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":ge(a)&&(r+=be(i)+":"+ye(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=we(e,t,s);switch(i){case"animation":case"animationName":r+=be(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<s.length;u++)ge(s[u])&&(r+=be(i)+":"+ye(i,s[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=ve,l=n(e);return ve=a,we(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var ve,Se=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ce(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ve=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=we(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=we(n,t,e[s]),r&&(o+=i[s]);Se.lastIndex=0;for(var a,l="";null!==(a=Se.exec(o));)l+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:ve}}var _e=!!n.useInsertionEffect&&n.useInsertionEffect,Me=_e||function(e){return e()},xe=_e||t.useLayoutEffect,ke=t.createContext("undefined"!=typeof HTMLElement?ae({key:"css"}):null),Re=(ke.Provider,function(e){return(0,t.forwardRef)((function(n,r){var o=(0,t.useContext)(ke);return e(n,o,r)}))}),Te=t.createContext({}),Ee={}.hasOwnProperty,Le="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ie=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ue(t,n,r),Me((function(){return ce(t,n,r)})),null},Pe=Re((function(e,n,r){var o=e.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=e[Le],s=[o],a="";"string"==typeof e.className?a=le(n.registered,s,e.className):null!=e.className&&(a=e.className+" ");var l=Ce(s,void 0,t.useContext(Te));a+=n.key+"-"+l.name;var u={};for(var c in e)Ee.call(e,c)&&"css"!==c&&c!==Le&&(u[c]=e[c]);return u.className=a,r&&(u.ref=r),t.createElement(t.Fragment,null,t.createElement(Ie,{cache:n,serialized:l,isStringTag:"string"==typeof i}),t.createElement(i,u))})),De=Pe,He=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Oe=he((function(e){return He.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ae=function(e){return"theme"!==e},Ne=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Oe:Ae},je=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ye=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ue(t,n,r),Me((function(){return ce(t,n,r)})),null},Fe=function e(n,r){var o,i,a=n.__emotion_real===n,l=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var u=je(n,r,a),c=u||Ne(l),d=!c("as");return function(){var h=arguments,p=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==h[0]||void 0===h[0].raw)p.push.apply(p,h);else{var f=h[0];p.push(f[0]);for(var m=h.length,g=1;g<m;g++)p.push(h[g],f[g])}var b=Re((function(e,n,r){var o=d&&e.as||l,s="",a=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=t.useContext(Te)}"string"==typeof e.className?s=le(n.registered,a,e.className):null!=e.className&&(s=e.className+" ");var m=Ce(p.concat(a),n.registered,h);s+=n.key+"-"+m.name,void 0!==i&&(s+=" "+i);var g=d&&void 0===u?Ne(o):c,b={};for(var y in e)d&&"as"===y||g(y)&&(b[y]=e[y]);return b.className=s,r&&(b.ref=r),t.createElement(t.Fragment,null,t.createElement(Ye,{cache:n,serialized:m,isStringTag:"string"==typeof o}),t.createElement(o,b))}));return b.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",b.defaultProps=n.defaultProps,b.__emotion_real=b,b.__emotion_base=l,b.__emotion_styles=p,b.__emotion_forwardProp=u,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,n){return e(t,s({},r,n,{shouldForwardProp:je(b,n,!0)})).apply(void 0,p)},b}}.bind(null);function ze(e,t){return Fe(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Fe[e]=Fe(e)}));const We=[];function Ve(e){return We[0]=e,Ce(We)}function Be(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function $e(e){if("string"!=typeof e)throw new Error(Be(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ue=o(4405);function Ge(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ke(e){if(t.isValidElement(e)||(0,Ue.Hy)(e)||!Ge(e))return e;const n={};return Object.keys(e).forEach((t=>{n[t]=Ke(e[t])})),n}function qe(e,n,r={clone:!0}){const o=r.clone?{...e}:e;return Ge(e)&&Ge(n)&&Object.keys(n).forEach((i=>{t.isValidElement(n[i])||(0,Ue.Hy)(n[i])?o[i]=n[i]:Ge(n[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ge(e[i])?o[i]=qe(e[i],n[i],r):r.clone?o[i]=Ge(n[i])?Ke(n[i]):n[i]:o[i]=n[i]})),o}const Xe=function(e,t){return t?qe(e,t,{clone:!1}):e},Je={xs:0,sm:600,md:900,lg:1200,xl:1536},Qe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Je[e]}px)`},Ze={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Je[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function et(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Qe;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Qe;return Object.keys(t).reduce(((o,i)=>{if(s=e.keys,"@"===(a=i)||a.startsWith("@")&&(s.some((e=>a.startsWith(`@${e}`)))||a.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:Ze,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Je).includes(i))o[e.up(i)]=n(t[i],i);else{const e=i;o[e]=t[e]}var s,a;return o}),{})}return n(t)}function tt(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}function nt(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function rt({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function ot(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function it(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ot(e,n)||r,t&&(o=t(o,r,e)),o}const st=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=ot(e.theme,r)||{};return et(e,i,(e=>{let r=it(s,o,e);return e===r&&"string"==typeof e&&(r=it(s,o,`${t}${"default"===e?"":$e(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i},at={m:"margin",p:"padding"},lt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ut={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ct=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!ut[e])return[e];e=ut[e]}const[t,n]=e.split(""),r=at[t],o=lt[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})(t)),e[t])}(),dt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ht=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pt=[...dt,...ht];function ft(e,t,n,r){const o=ot(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function mt(e){return ft(e,"spacing",8)}function gt(e,t){return"string"==typeof t||null==t?t:e(t)}function bt(e,t){const n=mt(e.theme);return Object.keys(e).map((r=>function(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=gt(t,n),e)),{})}(ct(n),r);return et(e,e[n],o)}(e,t,r,n))).reduce(Xe,{})}function yt(e){return bt(e,dt)}function wt(e){return bt(e,ht)}function vt(e){return bt(e,pt)}yt.propTypes={},yt.filterProps=dt,wt.propTypes={},wt.filterProps=ht,vt.propTypes={},vt.filterProps=pt;const St=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Xe(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};function Ct(e){return"number"!=typeof e?e:`${e}px solid`}function _t(e,t){return st({prop:e,themeKey:"borders",transform:t})}const Mt=_t("border",Ct),xt=_t("borderTop",Ct),kt=_t("borderRight",Ct),Rt=_t("borderBottom",Ct),Tt=_t("borderLeft",Ct),Et=_t("borderColor"),Lt=_t("borderTopColor"),It=_t("borderRightColor"),Pt=_t("borderBottomColor"),Dt=_t("borderLeftColor"),Ht=_t("outline",Ct),Ot=_t("outlineColor"),At=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ft(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:gt(t,e)});return et(e,e.borderRadius,n)}return null};At.propTypes={},At.filterProps=["borderRadius"],St(Mt,xt,kt,Rt,Tt,Et,Lt,It,Pt,Dt,At,Ht,Ot);const Nt=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ft(e.theme,"spacing",8),n=e=>({gap:gt(t,e)});return et(e,e.gap,n)}return null};Nt.propTypes={},Nt.filterProps=["gap"];const jt=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ft(e.theme,"spacing",8),n=e=>({columnGap:gt(t,e)});return et(e,e.columnGap,n)}return null};jt.propTypes={},jt.filterProps=["columnGap"];const Yt=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ft(e.theme,"spacing",8),n=e=>({rowGap:gt(t,e)});return et(e,e.rowGap,n)}return null};function Ft(e,t){return"grey"===t?t:e}function zt(e){return e<=1&&0!==e?100*e+"%":e}Yt.propTypes={},Yt.filterProps=["rowGap"],St(Nt,jt,Yt,st({prop:"gridColumn"}),st({prop:"gridRow"}),st({prop:"gridAutoFlow"}),st({prop:"gridAutoColumns"}),st({prop:"gridAutoRows"}),st({prop:"gridTemplateColumns"}),st({prop:"gridTemplateRows"}),st({prop:"gridTemplateAreas"}),st({prop:"gridArea"})),St(st({prop:"color",themeKey:"palette",transform:Ft}),st({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ft}),st({prop:"backgroundColor",themeKey:"palette",transform:Ft}));const Wt=st({prop:"width",transform:zt}),Vt=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Je[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:zt(t)}};return et(e,e.maxWidth,t)}return null};Vt.filterProps=["maxWidth"];const Bt=st({prop:"minWidth",transform:zt}),$t=st({prop:"height",transform:zt}),Ut=st({prop:"maxHeight",transform:zt}),Gt=st({prop:"minHeight",transform:zt}),Kt=(st({prop:"size",cssProperty:"width",transform:zt}),st({prop:"size",cssProperty:"height",transform:zt}),St(Wt,Vt,Bt,$t,Ut,Gt,st({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Ct},borderTop:{themeKey:"borders",transform:Ct},borderRight:{themeKey:"borders",transform:Ct},borderBottom:{themeKey:"borders",transform:Ct},borderLeft:{themeKey:"borders",transform:Ct},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ct},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:At},color:{themeKey:"palette",transform:Ft},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ft},backgroundColor:{themeKey:"palette",transform:Ft},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nt},rowGap:{style:Yt},columnGap:{style:jt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zt},maxWidth:{style:Vt},minWidth:{transform:zt},height:{transform:zt},maxHeight:{transform:zt},minHeight:{transform:zt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),qt=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=ot(n,a)||{};return u?u(o):et(o,t,(t=>{let n=it(c,l,t);return t===n&&"string"==typeof t&&(n=it(c,l,`${e}${"default"===t?"":$e(t)}`,t)),!1===s?n:{[s]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Kt;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=tt(o.breakpoints),a=Object.keys(s);let l=s;return Object.keys(r).forEach((n=>{const s=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=s)if("object"==typeof s)if(i[n])l=Xe(l,e(n,s,o,i));else{const e=et({theme:o},s,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,s)?l=Xe(l,e):l[n]=t({sx:s,theme:o})}else l=Xe(l,e(n,s,o,i))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,nt(a,l))}return Array.isArray(r)?r.map(s):s(r)}}();qt.filterProps=["sx"];const Xt=qt;function Jt(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Kt;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ge(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-r/100}${n})`}return{keys:s,values:i,up:a,down:l,between:u,only:function(e){return s.indexOf(e)+1<s.length?u(e,s[s.indexOf(e)+1]):a(e)},not:function(e){const t=s.indexOf(e);return 0===t?a(s[1]):t===s.length-1?l(s[t]):u(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Zt={borderRadius:4};function en(e=8,t=mt({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function tn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}const nn=function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e;let a=qe({breakpoints:Qt(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:en(o),shape:{...Zt,...i}},s);return a=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(a),a.applyStyles=tn,a=t.reduce(((e,t)=>qe(e,t)),a),a.unstable_sxConfig={...Kt,...s?.unstable_sxConfig},a.unstable_sx=function(e){return Xt({sx:e,theme:this})},a},rn=nn(),on=function(e=rn){return function(e=null){const n=t.useContext(Te);return n&&(r=n,0!==Object.keys(r).length)?n:e;var r}(e)};var sn=o(4848);const an=e=>e,ln=(()=>{let e=an;return{configure(t){e=t},generate:t=>e(t),reset(){e=an}}})();function un(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function cn(e){if(e.type)return e;if("#"===e.charAt(0))return cn(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Be(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(Be(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const dn=(e,t)=>{try{return(e=>{const t=cn(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function hn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function pn(e){e=cn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",l.push(t[3])),hn({type:a,values:l})}function fn(e){let t="hsl"===(e=cn(e)).type||"hsla"===e.type?cn(pn(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function mn(e,t){return e=cn(e),t=un(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hn(e)}function gn(e,t,n){try{return mn(e,t)}catch(t){return e}}function bn(e,t){if(e=cn(e),t=un(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return hn(e)}function yn(e,t,n){try{return bn(e,t)}catch(t){return e}}function wn(e,t){if(e=cn(e),t=un(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return hn(e)}function vn(e,t,n){try{return wn(e,t)}catch(t){return e}}function Sn(e,t,n){try{return function(e,t=.15){return fn(e)>.5?bn(e,t):wn(e,t)}(e,t)}catch(t){return e}}const Cn={black:"#000",white:"#fff"},_n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Mn="#f3e5f5",xn="#ce93d8",kn="#ba68c8",Rn="#ab47bc",Tn="#9c27b0",En="#7b1fa2",Ln="#e57373",In="#ef5350",Pn="#f44336",Dn="#d32f2f",Hn="#c62828",On="#ffb74d",An="#ffa726",Nn="#ff9800",jn="#f57c00",Yn="#e65100",Fn="#e3f2fd",zn="#90caf9",Wn="#42a5f5",Vn="#1976d2",Bn="#1565c0",$n="#4fc3f7",Un="#29b6f6",Gn="#03a9f4",Kn="#0288d1",qn="#01579b",Xn="#81c784",Jn="#66bb6a",Qn="#4caf50",Zn="#388e3c",er="#2e7d32",tr="#1b5e20";function nr(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Cn.white,default:Cn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const rr=nr();function or(){return{text:{primary:Cn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Cn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ir=or();function sr(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=wn(e.main,o):"dark"===t&&(e.dark=bn(e.main,i)))}function ar(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:zn,light:Fn,dark:Wn}:{main:Vn,light:Wn,dark:Bn}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xn,light:Mn,dark:Rn}:{main:Tn,light:kn,dark:En}}(t),a=e.error||function(e="light"){return"dark"===e?{main:Pn,light:Ln,dark:Dn}:{main:Dn,light:In,dark:Hn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Un,light:$n,dark:Kn}:{main:Kn,light:Gn,dark:qn}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Jn,light:Xn,dark:Zn}:{main:er,light:Qn,dark:tr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:An,light:On,dark:jn}:{main:"#ed6c02",light:Nn,dark:Yn}}(t);function d(e){const t=function(e,t){const n=fn(e),r=fn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ir.text.primary)>=n?ir.text.primary:rr.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Be(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Be(12,t?` (${t})`:"",JSON.stringify(e.main)));return sr(e,"light",o,r),sr(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;return"light"===t?p=nr():"dark"===t&&(p=or()),qe({common:{...Cn},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:_n,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r,...p},o)}function lr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}function ur(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const cr=(e,t,n,r=[])=>{let o=e;t.forEach(((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))};function dr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};var a,l;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),cr(i,e,`var(${r})`,a),cr(s,e,`var(${r}, ${l})`,a)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach((([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):a([...n,t],o,r))}))}(e),{css:o,vars:i,varsWithDefaults:s}}const hr={textTransform:"uppercase"},pr='"Roboto", "Helvetica", "Arial", sans-serif';function fr(e,t){const{fontFamily:n=pr,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,h=r/14,p=c||(e=>e/l*h+"rem"),f=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===pr?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5+"em")}:{},...i,...u};var s},m={h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(s,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(s,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(s,14,1.75,.4,hr),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,hr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qe({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...m},d,{clone:!1})}function mr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const gr=["none",mr(0,2,1,-1,0,1,1,0,0,1,3,0),mr(0,3,1,-2,0,2,2,0,0,1,5,0),mr(0,3,3,-2,0,3,4,0,0,1,8,0),mr(0,2,4,-1,0,4,5,0,0,1,10,0),mr(0,3,5,-1,0,5,8,0,0,1,14,0),mr(0,3,5,-1,0,6,10,0,0,1,18,0),mr(0,4,5,-2,0,7,10,1,0,2,16,1),mr(0,5,5,-3,0,8,10,1,0,3,14,2),mr(0,5,6,-3,0,9,12,1,0,3,16,2),mr(0,6,6,-3,0,10,14,1,0,4,18,3),mr(0,6,7,-4,0,11,15,1,0,4,20,3),mr(0,7,8,-4,0,12,17,2,0,5,22,4),mr(0,7,8,-4,0,13,19,2,0,5,24,4),mr(0,7,9,-4,0,14,21,2,0,5,26,4),mr(0,8,9,-5,0,15,22,2,0,6,28,5),mr(0,8,10,-5,0,16,24,2,0,6,30,5),mr(0,8,11,-5,0,17,26,2,0,6,32,5),mr(0,9,11,-5,0,18,28,2,0,7,34,6),mr(0,9,12,-6,0,19,29,2,0,7,36,6),mr(0,10,13,-6,0,20,31,3,0,8,38,7),mr(0,10,13,-6,0,21,33,3,0,8,40,7),mr(0,10,14,-6,0,22,35,3,0,8,42,7),mr(0,11,14,-7,0,23,36,3,0,9,44,8),mr(0,11,15,-7,0,24,38,3,0,9,46,8)],br={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},yr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wr(e){return`${Math.round(e)}ms`}function vr(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Sr(e){const t={...br,...e.easing},n={...yr,...e.duration};return{getAutoHeightDuration:vr,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:s=0,...a}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wr(o)} ${i} ${"string"==typeof s?s:wr(s)}`)).join(",")},...e,easing:t,duration:n}}const Cr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _r(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,s]=n[o];!Ge(r=s)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||i.startsWith("unstable_")?delete t[i]:Ge(s)&&(t[i]={...s},e(t[i]))}var r}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}const Mr=function(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(Be(20));const c=ar(i),d=nn(e);let h=qe(d,{mixins:(p=d.breakpoints,f=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:c,shadows:gr.slice(),typography:fr(c,a),transitions:Sr(s),zIndex:{...Cr}});var p,f;return h=qe(h,u),h=t.reduce(((e,t)=>qe(e,t)),h),h.unstable_sxConfig={...Kt,...u?.unstable_sxConfig},h.unstable_sx=function(e){return Xt({sx:e,theme:this})},h.toRuntimeSource=_r,h};function xr(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const kr=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=xr(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function Rr(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Tr(e){return"dark"===e?kr:[]}function Er(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Lr=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(s=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${s?`${s}-`:""}overlays-${t}`)),`--${s?`${s}-`:""}palette-AppBar-darkBg`,`--${s?`${s}-`:""}palette-AppBar-darkColor`]).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var s;return r};function Ir(e,t,n){!e[t]&&n&&(e[t]=n)}function Pr(e){return"string"==typeof e&&e.startsWith("hsl")?pn(e):e}function Dr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=dn(Pr(e[t])))}const Hr=e=>{try{return e()}catch(e){}};function Or(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=ar(t);return{palette:i,opacity:{...Rr(i.mode),...n},overlays:r||Tr(i.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:i,...s}=Mr({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:i,opacity:{...Rr(o),...t?.opacity},overlays:t?.overlays||Tr(o)},s}function Ar(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=Er,colorSchemeSelector:a=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),h=((e="mui")=>lr(e))(i),{[d]:p,light:f,dark:m,...g}=n,b={...g};let y=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(y=!0),!y)throw new Error(Be(21,d));const w=Or(b,y,u,d);f&&!b.light&&Or(b,f,void 0,"light"),m&&!b.dark&&Or(b,m,void 0,"dark");let v={defaultColorScheme:d,...w,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:h,colorSchemes:b,font:{...ur(w.typography),...w.font},spacing:(S=u.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(v.colorSchemes).forEach((e=>{const t=v.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return h(e,t[r][o])};if("light"===t.mode&&(Ir(t.common,"background","#fff"),Ir(t.common,"onBackground","#000")),"dark"===t.mode&&(Ir(t.common,"background","#000"),Ir(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){Ir(t.Alert,"errorColor",yn(t.error.light,.6)),Ir(t.Alert,"infoColor",yn(t.info.light,.6)),Ir(t.Alert,"successColor",yn(t.success.light,.6)),Ir(t.Alert,"warningColor",yn(t.warning.light,.6)),Ir(t.Alert,"errorFilledBg",n("palette-error-main")),Ir(t.Alert,"infoFilledBg",n("palette-info-main")),Ir(t.Alert,"successFilledBg",n("palette-success-main")),Ir(t.Alert,"warningFilledBg",n("palette-warning-main")),Ir(t.Alert,"errorFilledColor",Hr((()=>t.getContrastText(t.error.main)))),Ir(t.Alert,"infoFilledColor",Hr((()=>t.getContrastText(t.info.main)))),Ir(t.Alert,"successFilledColor",Hr((()=>t.getContrastText(t.success.main)))),Ir(t.Alert,"warningFilledColor",Hr((()=>t.getContrastText(t.warning.main)))),Ir(t.Alert,"errorStandardBg",vn(t.error.light,.9)),Ir(t.Alert,"infoStandardBg",vn(t.info.light,.9)),Ir(t.Alert,"successStandardBg",vn(t.success.light,.9)),Ir(t.Alert,"warningStandardBg",vn(t.warning.light,.9)),Ir(t.Alert,"errorIconColor",n("palette-error-main")),Ir(t.Alert,"infoIconColor",n("palette-info-main")),Ir(t.Alert,"successIconColor",n("palette-success-main")),Ir(t.Alert,"warningIconColor",n("palette-warning-main")),Ir(t.AppBar,"defaultBg",n("palette-grey-100")),Ir(t.Avatar,"defaultBg",n("palette-grey-400")),Ir(t.Button,"inheritContainedBg",n("palette-grey-300")),Ir(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ir(t.Chip,"defaultBorder",n("palette-grey-400")),Ir(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ir(t.Chip,"defaultIconColor",n("palette-grey-700")),Ir(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ir(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ir(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ir(t.LinearProgress,"primaryBg",vn(t.primary.main,.62)),Ir(t.LinearProgress,"secondaryBg",vn(t.secondary.main,.62)),Ir(t.LinearProgress,"errorBg",vn(t.error.main,.62)),Ir(t.LinearProgress,"infoBg",vn(t.info.main,.62)),Ir(t.LinearProgress,"successBg",vn(t.success.main,.62)),Ir(t.LinearProgress,"warningBg",vn(t.warning.main,.62)),Ir(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ir(t.Slider,"primaryTrack",vn(t.primary.main,.62)),Ir(t.Slider,"secondaryTrack",vn(t.secondary.main,.62)),Ir(t.Slider,"errorTrack",vn(t.error.main,.62)),Ir(t.Slider,"infoTrack",vn(t.info.main,.62)),Ir(t.Slider,"successTrack",vn(t.success.main,.62)),Ir(t.Slider,"warningTrack",vn(t.warning.main,.62));const e=Sn(t.background.default,.8);Ir(t.SnackbarContent,"bg",e),Ir(t.SnackbarContent,"color",Hr((()=>t.getContrastText(e)))),Ir(t.SpeedDialAction,"fabHoverBg",Sn(t.background.paper,.15)),Ir(t.StepConnector,"border",n("palette-grey-400")),Ir(t.StepContent,"border",n("palette-grey-400")),Ir(t.Switch,"defaultColor",n("palette-common-white")),Ir(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ir(t.Switch,"primaryDisabledColor",vn(t.primary.main,.62)),Ir(t.Switch,"secondaryDisabledColor",vn(t.secondary.main,.62)),Ir(t.Switch,"errorDisabledColor",vn(t.error.main,.62)),Ir(t.Switch,"infoDisabledColor",vn(t.info.main,.62)),Ir(t.Switch,"successDisabledColor",vn(t.success.main,.62)),Ir(t.Switch,"warningDisabledColor",vn(t.warning.main,.62)),Ir(t.TableCell,"border",vn(gn(t.divider,1),.88)),Ir(t.Tooltip,"bg",gn(t.grey[700],.92))}var r;if("dark"===t.mode){Ir(t.Alert,"errorColor",vn(t.error.light,.6)),Ir(t.Alert,"infoColor",vn(t.info.light,.6)),Ir(t.Alert,"successColor",vn(t.success.light,.6)),Ir(t.Alert,"warningColor",vn(t.warning.light,.6)),Ir(t.Alert,"errorFilledBg",n("palette-error-dark")),Ir(t.Alert,"infoFilledBg",n("palette-info-dark")),Ir(t.Alert,"successFilledBg",n("palette-success-dark")),Ir(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ir(t.Alert,"errorFilledColor",Hr((()=>t.getContrastText(t.error.dark)))),Ir(t.Alert,"infoFilledColor",Hr((()=>t.getContrastText(t.info.dark)))),Ir(t.Alert,"successFilledColor",Hr((()=>t.getContrastText(t.success.dark)))),Ir(t.Alert,"warningFilledColor",Hr((()=>t.getContrastText(t.warning.dark)))),Ir(t.Alert,"errorStandardBg",yn(t.error.light,.9)),Ir(t.Alert,"infoStandardBg",yn(t.info.light,.9)),Ir(t.Alert,"successStandardBg",yn(t.success.light,.9)),Ir(t.Alert,"warningStandardBg",yn(t.warning.light,.9)),Ir(t.Alert,"errorIconColor",n("palette-error-main")),Ir(t.Alert,"infoIconColor",n("palette-info-main")),Ir(t.Alert,"successIconColor",n("palette-success-main")),Ir(t.Alert,"warningIconColor",n("palette-warning-main")),Ir(t.AppBar,"defaultBg",n("palette-grey-900")),Ir(t.AppBar,"darkBg",n("palette-background-paper")),Ir(t.AppBar,"darkColor",n("palette-text-primary")),Ir(t.Avatar,"defaultBg",n("palette-grey-600")),Ir(t.Button,"inheritContainedBg",n("palette-grey-800")),Ir(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ir(t.Chip,"defaultBorder",n("palette-grey-700")),Ir(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ir(t.Chip,"defaultIconColor",n("palette-grey-300")),Ir(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ir(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ir(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ir(t.LinearProgress,"primaryBg",yn(t.primary.main,.5)),Ir(t.LinearProgress,"secondaryBg",yn(t.secondary.main,.5)),Ir(t.LinearProgress,"errorBg",yn(t.error.main,.5)),Ir(t.LinearProgress,"infoBg",yn(t.info.main,.5)),Ir(t.LinearProgress,"successBg",yn(t.success.main,.5)),Ir(t.LinearProgress,"warningBg",yn(t.warning.main,.5)),Ir(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ir(t.Slider,"primaryTrack",yn(t.primary.main,.5)),Ir(t.Slider,"secondaryTrack",yn(t.secondary.main,.5)),Ir(t.Slider,"errorTrack",yn(t.error.main,.5)),Ir(t.Slider,"infoTrack",yn(t.info.main,.5)),Ir(t.Slider,"successTrack",yn(t.success.main,.5)),Ir(t.Slider,"warningTrack",yn(t.warning.main,.5));const e=Sn(t.background.default,.98);Ir(t.SnackbarContent,"bg",e),Ir(t.SnackbarContent,"color",Hr((()=>t.getContrastText(e)))),Ir(t.SpeedDialAction,"fabHoverBg",Sn(t.background.paper,.15)),Ir(t.StepConnector,"border",n("palette-grey-600")),Ir(t.StepContent,"border",n("palette-grey-600")),Ir(t.Switch,"defaultColor",n("palette-grey-300")),Ir(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ir(t.Switch,"primaryDisabledColor",yn(t.primary.main,.55)),Ir(t.Switch,"secondaryDisabledColor",yn(t.secondary.main,.55)),Ir(t.Switch,"errorDisabledColor",yn(t.error.main,.55)),Ir(t.Switch,"infoDisabledColor",yn(t.info.main,.55)),Ir(t.Switch,"successDisabledColor",yn(t.success.main,.55)),Ir(t.Switch,"warningDisabledColor",yn(t.warning.main,.55)),Ir(t.TableCell,"border",yn(gn(t.divider,1),.68)),Ir(t.Tooltip,"bg",gn(t.grey[700],.92))}Dr(t.background,"default"),Dr(t.background,"paper"),Dr(t.common,"background"),Dr(t.common,"onBackground"),Dr(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ir(t[e],"mainChannel",dn(Pr(n.main))),n.light&&Ir(t[e],"lightChannel",dn(Pr(n.light))),n.dark&&Ir(t[e],"darkChannel",dn(Pr(n.dark))),n.contrastText&&Ir(t[e],"contrastTextChannel",dn(Pr(n.contrastText))),"text"===e&&(Dr(t[e],"primary"),Dr(t[e],"secondary")),"action"===e&&(n.active&&Dr(t[e],"active"),n.selected&&Dr(t[e],"selected")))}))})),v=t.reduce(((e,t)=>qe(e,t)),v);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Lr(v)},{vars:_,generateThemeVars:M,generateStyleSheets:x}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=dr(l,t);let h=d;const p={},{[a]:f,...m}=i;if(Object.entries(m||{}).forEach((([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=dr(n,t);h=qe(h,i),p[e]={css:o,vars:r}})),f){const{css:e,vars:n,varsWithDefaults:r}=dr(f,t);h=qe(h,r),p[a]={css:e,vars:n}}function g(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(p).forEach((([,{vars:t}])=>{e=qe(e,t)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...c}),c);const{[o]:a,...l}=p;if(a){const{css:e}=a,t=i[o]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const o=i[e]?.palette?.mode,a=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...a}),a)})),t}}}(v,C);return v.vars=_,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach((([e,t])=>{v[e]=t})),v.generateThemeVars=M,v.generateStyleSheets=x,v.generateSpacing=function(){return en(u.spacing,mt(this))},v.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(a),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=s,v.unstable_sxConfig={...Kt,...u?.unstable_sxConfig},v.unstable_sx=function(e){return Xt({sx:e,theme:this})},v.toRuntimeSource=_r,v}function Nr(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:ar({...!0===n?{}:n.palette,mode:t})})}function jr(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...s}=e,a=i||"light",l=o?.[a],u={...o,...n?{[a]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Mr(e,...t);let r=n;"palette"in e||u[a]&&(!0!==u[a]?r=u[a].palette:"dark"===a&&(r={mode:"dark"}));const o=Mr({...e,palette:r},...t);return o.defaultColorScheme=a,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},Nr(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},Nr(o,"light",u.light)),o}return n||"light"in u||"light"!==a||(u.light=!0),Ar({...s,colorSchemes:u,defaultColorScheme:a,..."boolean"!=typeof r&&r},...t)}const Yr="$$material",Fr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function zr(e,t,n="Mui"){const r=Fr[t];return r?`${n}-${r}`:`${ln.generate(e)}-${t}`}function Wr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=zr(e,t,n)})),r}const Vr=Wr("MuiBox",["root"]),Br=jr(),$r=function(e={}){const{themeId:n,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:s}=e,a=ze("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xt);return t.forwardRef((function(e,t){const l=on(r),{className:u,component:c="div",...d}=Jt(e);return(0,sn.jsx)(a,{as:c,ref:t,className:i(u,s?s(o):o),theme:n&&l[n]||l,...d})}))}({themeId:Yr,defaultTheme:Br,defaultClassName:Vr.root,generateClassName:ln.generate}),Ur=$r;var Gr=o(5072),Kr=o.n(Gr),qr=o(7825),Xr=o.n(qr),Jr=o(7659),Qr=o.n(Jr),Zr=o(5056),eo=o.n(Zr),to=o(540),no=o.n(to),ro=o(1113),oo=o.n(ro),io=o(7400),so={};so.styleTagTransform=oo(),so.setAttributes=eo(),so.insert=Qr().bind(null,"head"),so.domAPI=Xr(),so.insertStyleElement=no(),Kr()(io.A,so),io.A&&io.A.locals&&io.A.locals;var ao=o(961);o(6280),o(4114),o(3921),o(7642),o(8004),o(3853),o(5876),o(2475),o(5024),o(1698),o(8992),o(4520),o(3949),o(1454),o(9848);const{entries:lo,setPrototypeOf:uo,isFrozen:co,getPrototypeOf:ho,getOwnPropertyDescriptor:po}=Object;let{freeze:fo,seal:mo,create:go}=Object,{apply:bo,construct:yo}="undefined"!=typeof Reflect&&Reflect;fo||(fo=function(e){return e}),mo||(mo=function(e){return e}),bo||(bo=function(e,t,n){return e.apply(t,n)}),yo||(yo=function(e,t){return new e(...t)});const wo=Ho(Array.prototype.forEach),vo=Ho(Array.prototype.lastIndexOf),So=Ho(Array.prototype.pop),Co=Ho(Array.prototype.push),_o=Ho(Array.prototype.splice),Mo=Ho(String.prototype.toLowerCase),xo=Ho(String.prototype.toString),ko=Ho(String.prototype.match),Ro=Ho(String.prototype.replace),To=Ho(String.prototype.indexOf),Eo=Ho(String.prototype.trim),Lo=Ho(Object.prototype.hasOwnProperty),Io=Ho(RegExp.prototype.test),Po=(Do=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yo(Do,t)});var Do;function Ho(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return bo(e,t,r)}}function Oo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mo;uo&&uo(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(co(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Ao(e){for(let t=0;t<e.length;t++)Lo(e,t)||(e[t]=null);return e}function No(e){const t=go(null);for(const[n,r]of lo(e))Lo(e,n)&&(Array.isArray(r)?t[n]=Ao(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=No(r):t[n]=r);return t}function jo(e,t){for(;null!==e;){const n=po(e,t);if(n){if(n.get)return Ho(n.get);if("function"==typeof n.value)return Ho(n.value)}e=ho(e)}return function(){return null}}const Yo=fo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Fo=fo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zo=fo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wo=fo(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vo=fo(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Bo=fo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$o=fo(["#text"]),Uo=fo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Go=fo(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ko=fo(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),qo=fo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xo=mo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jo=mo(/<%[\w\W]*|[\w\W]*%>/gm),Qo=mo(/\$\{[\w\W]*/gm),Zo=mo(/^data-[\-\w.\u00B7-\uFFFF]+$/),ei=mo(/^aria-[\-\w]+$/),ti=mo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ni=mo(/^(?:\w+script|data):/i),ri=mo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oi=mo(/^html$/i),ii=mo(/^[a-z][.\w]*(-[.\w]+)+$/i);var si=Object.freeze({__proto__:null,ARIA_ATTR:ei,ATTR_WHITESPACE:ri,CUSTOM_ELEMENT:ii,DATA_ATTR:Zo,DOCTYPE_NAME:oi,ERB_EXPR:Jo,IS_ALLOWED_URI:ti,IS_SCRIPT_OR_DATA:ni,MUSTACHE_EXPR:Xo,TMPLIT_EXPR:Qo});const ai=function(){return"undefined"==typeof window?null:window};var li=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ai();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:u,NodeFilter:c,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,m=u.prototype,g=jo(m,"cloneNode"),b=jo(m,"remove"),y=jo(m,"nextSibling"),w=jo(m,"childNodes"),v=jo(m,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let S,C="";const{implementation:_,createNodeIterator:M,createDocumentFragment:x,getElementsByTagName:k}=r,{importNode:R}=o;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof lo&&"function"==typeof v&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:E,ERB_EXPR:L,TMPLIT_EXPR:I,DATA_ATTR:P,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:A}=si;let{IS_ALLOWED_URI:N}=si,j=null;const Y=Oo({},[...Yo,...Fo,...zo,...Vo,...$o]);let F=null;const z=Oo({},[...Uo,...Go,...Ko,...qo]);let W=Object.seal(go(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,B=null,$=!0,U=!0,G=!1,K=!0,q=!1,X=!0,J=!1,Q=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,se=!1,ae={},le=null;const ue=Oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ce=null;const de=Oo({},["audio","video","img","source","image","track"]);let he=null;const pe=Oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let be=ge,ye=!1,we=null;const ve=Oo({},[fe,me,ge],xo);let Se=Oo({},["mi","mo","mn","ms","mtext"]),Ce=Oo({},["annotation-xml"]);const _e=Oo({},["title","style","font","a","script"]);let Me=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Re=null;const Te=r.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Re||Re!==e){if(e&&"object"==typeof e||(e={}),e=No(e),Me=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===Me?xo:Mo,j=Lo(e,"ALLOWED_TAGS")?Oo({},e.ALLOWED_TAGS,ke):Y,F=Lo(e,"ALLOWED_ATTR")?Oo({},e.ALLOWED_ATTR,ke):z,we=Lo(e,"ALLOWED_NAMESPACES")?Oo({},e.ALLOWED_NAMESPACES,xo):ve,he=Lo(e,"ADD_URI_SAFE_ATTR")?Oo(No(pe),e.ADD_URI_SAFE_ATTR,ke):pe,ce=Lo(e,"ADD_DATA_URI_TAGS")?Oo(No(de),e.ADD_DATA_URI_TAGS,ke):de,le=Lo(e,"FORBID_CONTENTS")?Oo({},e.FORBID_CONTENTS,ke):ue,V=Lo(e,"FORBID_TAGS")?Oo({},e.FORBID_TAGS,ke):No({}),B=Lo(e,"FORBID_ATTR")?Oo({},e.FORBID_ATTR,ke):No({}),ae=!!Lo(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,q=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,N=e.ALLOWED_URI_REGEXP||ti,be=e.NAMESPACE||ge,Se=e.MATHML_TEXT_INTEGRATION_POINTS||Se,Ce=e.HTML_INTEGRATION_POINTS||Ce,W=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(U=!1),te&&(ee=!0),ae&&(j=Oo({},$o),F=[],!0===ae.html&&(Oo(j,Yo),Oo(F,Uo)),!0===ae.svg&&(Oo(j,Fo),Oo(F,Go),Oo(F,qo)),!0===ae.svgFilters&&(Oo(j,zo),Oo(F,Go),Oo(F,qo)),!0===ae.mathMl&&(Oo(j,Vo),Oo(F,Ko),Oo(F,qo))),e.ADD_TAGS&&(j===Y&&(j=No(j)),Oo(j,e.ADD_TAGS,ke)),e.ADD_ATTR&&(F===z&&(F=No(F)),Oo(F,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Oo(he,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ue&&(le=No(le)),Oo(le,e.FORBID_CONTENTS,ke)),ie&&(j["#text"]=!0),J&&Oo(j,["html","head","body"]),j.table&&(Oo(j,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Po('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Po('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=e.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else void 0===S&&(S=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i)),null!==S&&"string"==typeof C&&(C=S.createHTML(""));fo&&fo(e),Re=e}},Ie=Oo({},[...Fo,...zo,...Wo]),Pe=Oo({},[...Vo,...Bo]),De=function(e){Co(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){b(e)}},He=function(e,t){try{Co(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Co(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Oe=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=ko(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Me&&be===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=S?S.createHTML(e):e;if(be===ge)try{t=(new p).parseFromString(o,Me)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(be,"template",null);try{t.documentElement.innerHTML=ye?C:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),be===ge?k.call(t,J?"html":"body")[0]:J?t.documentElement:i},Ae=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ne=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function Ye(e,t,r){wo(e,(e=>{e.call(n,t,r,Re)}))}const Fe=function(e){let t=null;if(Ye(T.beforeSanitizeElements,e,null),Ne(e))return De(e),!0;const r=ke(e.nodeName);if(Ye(T.uponSanitizeElement,e,{tagName:r,allowedTags:j}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&Io(/<[/\w!]/g,e.innerHTML)&&Io(/<[/\w!]/g,e.textContent))return De(e),!0;if(7===e.nodeType)return De(e),!0;if(X&&8===e.nodeType&&Io(/<[/\w]/g,e.data))return De(e),!0;if(!j[r]||V[r]){if(!V[r]&&We(r)){if(W.tagNameCheck instanceof RegExp&&Io(W.tagNameCheck,r))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=v(e)||e.parentNode,n=w(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}return De(e),!0}return e instanceof u&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=Mo(e.tagName),r=Mo(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ie[n]):e.namespaceURI===fe?t.namespaceURI===ge?"math"===n:t.namespaceURI===me?"math"===n&&Ce[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===me&&!Ce[r])&&!(t.namespaceURI===fe&&!Se[r])&&!Pe[n]&&(_e[n]||!Ie[n]):!("application/xhtml+xml"!==Me||!we[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Io(/<\/no(script|embed|frames)/i,e.innerHTML)?(q&&3===e.nodeType&&(t=e.textContent,wo([E,L,I],(e=>{t=Ro(t,e," ")})),e.textContent!==t&&(Co(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ye(T.afterSanitizeElements,e,null),!1):(De(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if(U&&!B[t]&&Io(P,t));else if($&&Io(D,t));else if(!F[t]||B[t]){if(!(We(e)&&(W.tagNameCheck instanceof RegExp&&Io(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&Io(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Io(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(he[t]);else if(Io(N,Ro(n,O,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==To(n,"data:")||!ce[e])if(G&&!Io(H,Ro(n,O,"")));else if(n)return!1;return!0},We=function(e){return"annotation-xml"!==e&&ko(e,A)},Ve=function(e){Ye(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ne(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:s,namespaceURI:a,value:l}=i,u=ke(s),c=l;let d="value"===s?c:Eo(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ye(T.uponSanitizeAttribute,e,r),d=r.attrValue,!oe||"id"!==u&&"name"!==u||(He(s,e),d="user-content-"+d),X&&Io(/((--!?|])>)|<\/(style|title)/i,d)){He(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){He(s,e);continue}if(!K&&Io(/\/>/i,d)){He(s,e);continue}q&&wo([E,L,I],(e=>{d=Ro(d,e," ")}));const h=ke(e.nodeName);if(ze(h,u,d)){if(S&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(a);else switch(f.getAttributeType(h,u)){case"TrustedHTML":d=S.createHTML(d);break;case"TrustedScriptURL":d=S.createScriptURL(d)}if(d!==c)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),Ne(e)?De(e):So(n.removed)}catch(t){He(s,e)}}else He(s,e)}Ye(T.afterSanitizeAttributes,e,null)},Be=function e(t){let n=null;const r=Ae(t);for(Ye(T.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ye(T.uponSanitizeShadowNode,n,null),Fe(n),Ve(n),n.content instanceof s&&e(n.content);Ye(T.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,u=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Po("toString is not a function");if("string"!=typeof(e=e.toString()))throw Po("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Le(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=ke(e.nodeName);if(!j[t]||V[t])throw Po("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Oe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!q&&!J&&-1===e.indexOf("<"))return S&&ne?S.createHTML(e):e;if(r=Oe(e),!r)return ee?null:ne?C:""}r&&Z&&De(r.firstChild);const c=Ae(se?e:r);for(;a=c.nextNode();)Fe(a),Ve(a),a.content instanceof s&&Be(a.content);if(se)return e;if(ee){if(te)for(u=x.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(F.shadowroot||F.shadowrootmode)&&(u=R.call(o,u,!0)),u}let d=J?r.outerHTML:r.innerHTML;return J&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Io(oi,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),q&&wo([E,L,I],(e=>{d=Ro(d,e," ")})),S&&ne?S.createHTML(d):d},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Re=null,Q=!1},n.isValidAttribute=function(e,t,n){Re||Le({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Co(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=vo(T[e],t);return-1===n?void 0:_o(T[e],n,1)[0]}return So(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function ui(e){return e[0].toUpperCase()+e.substr(1)}function ci(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function di(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,((e,n)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]))}function pi(e){return fi(`${e}`,{ALLOWED_TAGS:[]})}function fi(e,t){return li.sanitize(e,t)}const mi=e=>["tabindex",e],gi=e=>["aria-label",e],bi=e=>["aria-haspopup",e],yi=e=>["aria-rowcount",e],wi=e=>["aria-colcount",e],vi=e=>["aria-rowindex",e],Si=e=>["aria-colindex",e],Ci=e=>["aria-expanded",e],_i=e=>["aria-checked",e],Mi=e=>["aria-relevant",e],xi=e=>["aria-posinset",e];function ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r}function Ri(e,t){const n=e.closest(".handsontable");return!!n&&(n.parentNode===t||n===t)}function Ti(e){return function(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}(e)&&e.parent}function Ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:r,DOCUMENT_FRAGMENT_NODE:o}=Node;let i=e;for(;null!=i&&i!==n;){const{nodeType:e,nodeName:n}=i;if(e===r&&(t.includes(n)||t.includes(i)))return i;const{host:s}=i;i=s&&e===o?s:i.parentNode}return null}function Li(e,t,n){const r=[];let o=e;for(;o&&(o=Ei(o,t,n),o&&(!n||n.contains(o)));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;const i=r.length;return i?r[i-1]:null}function Ii(e,t){let n=e.parentNode,r=[];for("string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function Pi(e,t,n){const r=n.parentElement.querySelector(`.ht_clone_${e}`);return r?r.contains(t):null}function Di(e){return e&&e.length?e.filter((e=>!!e)):[]}function Hi(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const n=[],r=[];return r.push(...e.filter((e=>{const r=e instanceof RegExp;return r&&t&&n.push(e),!r}))),t?{regexFree:r,regexes:n}:r}function Oi(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)}function Ai(e,t){"string"==typeof t&&(t=t.split(" ")),(t=Di(t)).length>0&&e.classList.add(...t)}function Ni(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:n,regexes:r}=Hi(t,!0);n=Di(n),n.length>0&&e.classList.remove(...n),r.forEach((t=>{e.classList.forEach((n=>{t.test(n)&&e.classList.remove(n)}))}))}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,n]]),t.forEach((t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)}))}function Yi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:n,regexes:r}=Hi(t,!0);n.forEach((t=>{""!==t&&e.removeAttribute(t)})),r.forEach((t=>{e.getAttributeNames().forEach((n=>{t.test(n)&&e.removeAttribute(n)}))}))}function Fi(e){if(3===e.nodeType)e.parentNode.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1){const t=e.childNodes;for(let e=t.length-1;e>=0;e--)Fi(t[e])}}function zi(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const Wi=/(<(.*)>|&(.*);)/;function Vi(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Wi.test(t)?e.innerHTML=n?fi(t):t:Bi(e,t)}function Bi(e,t){const n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.textContent=t:(zi(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function $i(e){const t=e.ownerDocument.documentElement,n=e.ownerDocument.defaultView;let r=e;for(;r!==t;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return $i(r.host.impl);if(r.host)return $i(r.host);throw new Error("Lost in Web Components world")}return!1}if("none"===n.getComputedStyle(r).display)return!1;r=r.parentNode}return!0}function Ui(e){const t=e.ownerDocument,n=t.defaultView,r=t.documentElement;let o,i,s,a=e;for(o=a.offsetLeft,i=a.offsetTop,s=a;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)o+=a.offsetLeft,i+=a.offsetTop,s=a;return s&&"fixed"===s.style.position&&(o+=n.pageXOffset||r.scrollLeft,i+=n.pageYOffset||r.scrollTop),{left:o,top:i}}function Gi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function Ki(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}function qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?Gi(t):e.scrollTop}function Xi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?Ki(t):e.scrollLeft}function Ji(e){let t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);const r=["auto","scroll"];let o=e.parentNode;for(;o&&o.style&&t.body!==o;){let{overflow:e,overflowX:t,overflowY:i}=o.style;if([e,t,i].includes("scroll"))return o;if(({overflow:e,overflowX:t,overflowY:i}=n.getComputedStyle(o)),r.includes(e)||r.includes(t)||r.includes(i))return o;if(o.clientHeight<=o.scrollHeight+1&&(r.includes(i)||r.includes(e)))return o;if(o.clientWidth<=o.scrollWidth+1&&(r.includes(t)||r.includes(e)))return o;o=o.parentNode}return n}function Qi(e){const t=e.ownerDocument,n=t.defaultView;let r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;const e=n.getComputedStyle(r),t=["scroll","hidden","auto"],o=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),s=e.getPropertyValue("overflow-x");if(t.includes(o)||t.includes(i)||t.includes(s))return r;r=r.parentNode}return n}function Zi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?`${n.innerWidth}px`:"height"===t?`${n.innerHeight}px`:void 0;const r=e.style[t];if(""!==r&&void 0!==r)return r;const o=n.getComputedStyle(e);return""!==o[t]&&void 0!==o[t]?o[t]:void 0}function es(e){return e.offsetWidth}function ts(e){return e.offsetHeight}function ns(e){return e.clientHeight||e.innerHeight}function rs(e){return e.clientWidth||e.innerWidth}function os(e){return e.selectionStart?e.selectionStart:0}function is(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())}function ss(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){const o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=i}}}let as;function ls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===as&&(as=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}(e)),as}function us(e){return e instanceof Window?e.document.body.scrollHeight>e.innerHeight:e.offsetWidth!==e.clientWidth}function cs(e){return e instanceof Window?e.document.body.scrollWidth>e.innerWidth:e.offsetHeight!==e.clientHeight}function ds(e,t,n){e.style.transform=`translate3d(${t},${n},0)`}function hs(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")}function ps(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function fs(e){return ps(e)&&!1===e.hasAttribute("data-hot-input")}function ms(e){return!e.parentNode}function gs(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=e.ownerDocument,o=r.createRange(),i=r.defaultView.getSelection();ji(e,"contenteditable",!0),n&&ji(e,"aria-hidden","true"),t&&Ai(e,"invisibleSelection"),o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o)}function bs(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),n.removeAllRanges(),t&&Ni(e,"invisibleSelection"),e.removeAttribute("contenteditable")}function ys(e){var t;const n=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(n&&null!==n&&e instanceof n)}var ws=o(5093);function vs(e,t){const n=t.length;let r=0;for(;r<n;)e.push(t[r]),r+=1}function Ss(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const n=e.length,r=e[0].length;for(let o=0;o<n;o++)for(let n=0;n<r;n++)t[n]||(t[n]=[]),t[n][o]=e[o][n];return t}function Cs(e,t,n,r){let o=-1,i=e,s=n;Array.isArray(e)||(i=Array.from(e));const a=i.length;for(r&&a&&(o+=1,s=i[o]),o+=1;o<a;)s=t(s,i[o],o,i),o+=1;return s}function _s(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const o=r.length,i=[];let s=-1;for(;n<o;){const e=r[n];t(e,n,r)&&(s+=1,i[s]=e),n+=1}return i}function Ms(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const o=r.length,i=[];let s=-1;for(;n<o;){const e=r[n];s+=1,i[s]=t(e,n,r),n+=1}return i}function xs(e,t){let n=0,r=e;Array.isArray(e)||(r=Array.from(e));const o=r.length;for(;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,...o]=[...t];let i=r;return xs(o,(e=>{i=i.filter((t=>!e.includes(t)))})),i}function Rs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)}function Ts(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Cs(e,((e,t,r)=>e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")),"").trim()}function Es(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t}function Ls(e){return void 0!==e}function Is(e){return void 0===e}function Ps(e){return null===e||""===e||Is(e)}const Ds="length",Hs=e=>parseInt(e,16),Os=e=>parseInt(e,10),As=(e,t,n)=>e.substr(t,n),Ns=e=>e.codePointAt(0)-65,js=e=>`${e}`.replace(/\-/g,"");let Ys=!1;const Fs={invalid:()=>Ts`
- The license key for Handsontable is invalid.\x20
- If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:n}=e;return Ts`
- The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
- version ${n}. Renew your license key at handsontable.com or downgrade to a version released prior\x20
- to ${t}. If you need any help, contact us at sales@handsontable.com.`},missing:()=>Ts`
- The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
- Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
- passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\x20
- us at support@handsontable.com.`,non_commercial:()=>""},zs={invalid:()=>Ts`
- The license key for Handsontable is invalid.\x20
- <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\x20
- install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,expired:e=>{let{keyValidityDate:t,hotVersion:n}=e;return Ts`
- The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
- version ${n}. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\x20
- license key or downgrade to a version released prior to ${t}. If you need any\x20
- help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.`},missing:()=>Ts`
- The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
- Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
- passing the key: 'non-commercial-and-evaluation'.\x20
- <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
- the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""};function Ws(e){return"function"==typeof e}function Vs(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((()=>{t=e.apply(this,i)}),n),t}}function Bs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}}function $s(e,t,n,r,o,i,s,a){return Ls(a)?e.call(t,n,r,o,i,s,a):Ls(s)?e.call(t,n,r,o,i,s):Ls(i)?e.call(t,n,r,o,i):Ls(o)?e.call(t,n,r,o):Ls(r)?e.call(t,n,r):Ls(n)?e.call(t,n):e.call(t)}function Us(e){let t;return Array.isArray(e)?t=e.length?new Array(e.length).fill(null):[]:(t={},ta(e,((e,n)=>{"__children"!==n&&(e&&"object"==typeof e&&!Array.isArray(e)?t[n]=Us(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?t[n]=[Us(e[0])]:t[n]=[]:t[n]=null)}))),t}function Gs(e,t,n){const r=Array.isArray(n);return ta(t,((t,o)=>{(!1===r||n.includes(o))&&(e[o]=t)})),e}function Ks(e,t){ta(t,((n,r)=>{t[r]&&"object"==typeof t[r]?(e[r]||(Array.isArray(t[r])?e[r]=[]:"[object Date]"===Object.prototype.toString.call(t[r])?e[r]=t[r]:e[r]={}),Ks(e[r],t[r])):e[r]=t[r]}))}function qs(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function Xs(e){const t={};return ta(e,((e,n)=>{t[n]=e})),t}function Js(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return xs(n,(t=>{e.MIXINS.push(t.MIXIN_NAME),ta(t,((t,n)=>{if(void 0!==e.prototype[n])throw new Error(`Mixin conflict. Property '${n}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[n]=t;else{const r=function(e,t){const n=`_${e}`;return function(){return void 0===this[n]&&(this[n]=(e=>{let t=e;return(Array.isArray(t)||Zs(t))&&(t=qs(t)),t})(t)),this[n]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,n,{get:r(n,t),set:o(n),configurable:!0})}}))})),e}function Qs(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Zs(e){return"[object Object]"===Object.prototype.toString.call(e)}function ea(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)}function ta(e,t){for(const n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function na(e,t,n){if("string"!=typeof t)return;const r=t.split(".");let o=e;r.forEach(((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==r.length-1?(ia(o,e)||(o[e]={}),o=o[e]):o[e]=n)}))}function ra(e){if(!Zs(e))return 0;const t=function(e){let n=0;return Zs(e)?ta(e,((e,r)=>{"__children"!==r&&(n+=t(e))})):n+=1,n};return t(e)}function oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const n=`_${t}`,r={_touched:!1,[n]:e,isTouched(){return this._touched}};return Object.defineProperty(r,t,{get(){return this[n]},set(e){this._touched=!0,this[n]=e},enumerable:!0,configurable:!0}),r}function ia(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sa(e){return window.requestAnimationFrame(e)}function aa(e){window.cancelAnimationFrame(e)}function la(){return"ontouchstart"in window}let ua;o(3110);const ca=e=>{const t={value:!1,test:(n,r)=>{t.value=e(n,r)}};return t},da={chrome:ca(((e,t)=>/Chrome/.test(e)&&/Google/.test(t))),chromeWebKit:ca((e=>/CriOS/.test(e))),edge:ca((e=>/Edge/.test(e))),edgeWebKit:ca((e=>/EdgiOS/.test(e))),firefox:ca((e=>/Firefox/.test(e))),firefoxWebKit:ca((e=>/FxiOS/.test(e))),mobile:ca((e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))),safari:ca(((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t)))},ha={mac:ca((e=>/^Mac/.test(e))),win:ca((e=>/^Win/.test(e))),linux:ca((e=>/^Linux/.test(e))),ios:ca((e=>/iPhone|iPad|iPod/i.test(e)))};function pa(){return da.chrome.value}function fa(){return da.firefox.value}function ma(){return da.safari.value}function ga(){return da.mobile.value}function ba(){return ha.ios.value}function ya(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&ha.mac.value}function wa(){return ha.win.value}function va(){return ha.mac.value}"undefined"!=typeof window&&(function(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ta(da,(n=>{let{test:r}=n;r(e,t)}))}(),function(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ta(ha,(t=>{let{test:n}=t;n(e)}))}());const Sa={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:fa()?182:174,AUDIO_MUTE:fa()?181:173,AUDIO_UP:fa()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},Ca=[Sa.ALT,Sa.ARROW_DOWN,Sa.ARROW_LEFT,Sa.ARROW_RIGHT,Sa.ARROW_UP,Sa.AUDIO_DOWN,Sa.AUDIO_MUTE,Sa.AUDIO_UP,Sa.BACKSPACE,Sa.CAPS_LOCK,Sa.DELETE,Sa.END,Sa.ENTER,Sa.ESCAPE,Sa.F1,Sa.F2,Sa.F3,Sa.F4,Sa.F5,Sa.F6,Sa.F7,Sa.F8,Sa.F9,Sa.F10,Sa.F11,Sa.F12,Sa.F13,Sa.F14,Sa.F15,Sa.F16,Sa.F17,Sa.F18,Sa.F19,Sa.HOME,Sa.INSERT,Sa.MEDIA_NEXT,Sa.MEDIA_PLAY_PAUSE,Sa.MEDIA_PREV,Sa.MEDIA_STOP,Sa.NULL,Sa.NUM_LOCK,Sa.PAGE_DOWN,Sa.PAGE_UP,Sa.PAUSE,Sa.SCROLL_LOCK,Sa.SHIFT,Sa.TAB];function _a(e){return Ca.includes(e)}function Ma(e,t){const n=t.split("|");let r=!1;return xs(n,(t=>{if(e===Sa[t])return r=!0,!1})),r}function xa(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function ka(e){return!1===e.isImmediatePropagationEnabled}function Ra(e){return 2===e.button}function Ta(e){return 0===e.button}function Ea(){Ls(console)&&console.warn(...arguments)}function La(){Ls(console)&&console.error(...arguments)}const Ia=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],Pa=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),Da=new Map([[]]);function Ha(e,t,n){Oa(e,t),t.set(e,n)}function Oa(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Aa(e,t,n){return e.set(ja(e,t),n),n}function Na(e,t){return e.get(ja(e,t))}function ja(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}o(7145),o(2577);var Ya=new WeakMap,Fa=new WeakMap,za=new WeakMap,Wa=new WeakSet;class Va{constructor(){var e;Oa(this,e=Wa),e.add(this),Ha(this,Ya,new Map),Ha(this,Fa,new Map),Ha(this,za,new Set),Ia.forEach((e=>ja(Wa,this,Ba).call(this,e)))}getHooks(e){var t;return null!==(t=Na(Ya,this).get(e))&&void 0!==t?t:[]}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Na(Ya,this).has(e)||(ja(Wa,this,Ba).call(this,e),Ia.push(e));const r=Na(Ya,this).get(e);if(r.find((e=>e.callback===t)))return;const o=Number.isInteger(n.orderIndex)?n.orderIndex:0,i=!!n.runOnce,s=!!n.initialHook;let a=!1;if(s){const e=r.find((e=>e.initialHook));e&&(e.callback=t,a=!0)}if(!a){r.push({callback:t,orderIndex:o,runOnce:i,initialHook:s,skip:!1});let n=Na(za,this).has(e);n||0===o||(n=!0,Na(za,this).add(e)),n&&r.length>1&&Na(Ya,this).set(e,r.toSorted(((e,t)=>e.orderIndex-t.orderIndex)))}}has(e){return Na(Ya,this).has(e)&&Na(Ya,this).get(e).length>0}remove(e,t){if(!Na(Ya,this).has(e))return!1;const n=Na(Ya,this).get(e),r=n.find((e=>e.callback===t));if(r){let t=Na(Fa,this).get(e);return r.skip=!0,t+=1,t>100&&(Na(Ya,this).set(e,n.filter((e=>!e.skip))),t=0),Na(Fa,this).set(e,t),!0}return!1}destroy(){Na(Ya,this).clear(),Na(Fa,this).clear(),Aa(Ya,this,null),Aa(Fa,this,null)}}function Ba(e){Na(Ya,this).set(e,[]),Na(Fa,this).set(e,0)}const $a=Ts`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
- Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
- learn about the migration path.`;class Ua{constructor(){!function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"globalBucket",new Va)}static getSingleton(){return Ga}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new Va),e.pluginHookBucket):this.globalBucket}add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?xs(t,(t=>this.add(e,t,n))):(Pa.has(e)&&Ea(hi($a,{hookName:e,removedInVersion:Pa.get(e)})),Da.has(e)&&Ea(Da.get(e)),this.getBucket(n).add(e,t,{orderIndex:r,runOnce:!1})),this}once(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?xs(t,(t=>this.once(e,t,n))):this.getBucket(n).add(e,t,{orderIndex:r,runOnce:!0}),this}addAsFixed(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?xs(t,(t=>this.addAsFixed(e,t,n))):this.getBucket(n).add(e,t,{initialHook:!0}),this}remove(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(n).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,n,r,o,i,s,a){{const l=this.getBucket().getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=$s(l[c].callback,e,n,r,o,i,s,a);void 0!==u&&(n=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback),c+=1}}{const l=this.getBucket(e).getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=$s(l[c].callback,e,n,r,o,i,s,a);void 0!==u&&(n=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback,e),c+=1}}return n}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||Ia.push(e)}deregister(e){this.isRegistered(e)&&Ia.splice(Ia.indexOf(e),1)}isDeprecated(e){return Da.has(e)||Pa.has(e)}isRegistered(e){return Ia.indexOf(e)>=0}getRegistered(){return Ia}}const Ga=new Ua,Ka=new Map;function qa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";Ka.has(e)||Ka.set(e,new Map);const t=Ka.get(e);return{register:function(e,n){t.set(e,n)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]}}}const Xa=new WeakMap,{register:Ja,getItem:Qa,hasItem:Za,getNames:el,getValues:tl}=qa("editors");function nl(e){const t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},Ua.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function rl(e,t){let n;if("function"==typeof e)Xa.get(e)||il(null,e),n=Xa.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=Qa(e)}if(!n)throw Error(`No editor registered under name "${e}"`);return n.getInstance(t)}function ol(e){if("function"==typeof e)return e;if(!Za(e))throw Error(`No registered editor found under "${e}" name`);return Qa(e).getConstructor()}function il(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const n=new nl(t);"string"==typeof e&&Ja(e,n),Xa.set(t,n)}let sl=0;const al=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function o(e){n.call(this,function(e){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),xa(this)},e}(e))}return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:o,options:r,eventManager:this}),e.addEventListener(t,o,r),sl+=1,()=>{this.removeEventListener(e,t,n)}}removeEventListener(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;for(;i;)if(i-=1,r=this.context.eventListeners[i],r.event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),sl-=1}}clearEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.context)return;let t=this.context.eventListeners.length;for(;t;){t-=1;const n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),sl-=1)}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,t){let n=e.document,r=e;n||(n=e.ownerDocument?e.ownerDocument:e,r=n.defaultView);const o={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};let i;n.createEvent?(i=n.createEvent("MouseEvents"),i.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||n.body.parentNode)):i=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(`on${t}`,i)}};function ll(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ul(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var cl=new WeakSet;class dl{constructor(e,t,n){var r,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,o=cl),o.add(r),ll(this,"hot",void 0),ll(this,"tableMeta",void 0),ll(this,"selection",void 0),ll(this,"eventManager",void 0),ll(this,"destroyed",!1),ll(this,"activeEditor",void 0),ll(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=n,this.eventManager=new al(e),this.hot.addHook("afterDocumentKeyDown",(e=>ul(cl,this,hl).call(this,e))),this.hot.addHook("beforeCompositionStart",(e=>ul(cl,this,hl).call(this,e))),this.hot.view._wt.update("onCellDblClick",((e,t,n)=>ul(cl,this,pl).call(this,e,t,n)))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,(e=>{e&&this.prepareEditor()}));const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:n,col:r}=t,o=this.hot.runHooks("modifyGetCellCoords",n,r,!1,"meta");let i=n,s=r;if(Array.isArray(o)&&([i,s]=o),this.cellProperties=this.hot.getCellMeta(i,s),!this.isCellEditable())return void this.clearActiveEditor();const a=this.hot.getCell(n,r,!0);if(a){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(s),o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i),s);this.activeEditor=rl(e,this.hot),this.activeEditor.prepare(n,r,t,a,o,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const r=this.hot.getSelectedRangeLast();let o=this.hot.runHooks("beforeBeginEditing",r.highlight.row,r.highlight.col,e,t,n);t instanceof MouseEvent&&"boolean"!=typeof o&&(o=0===this.hot.selection.getLayerLevel()&&r.isSingle()),!1!==o?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:n,col:r}=e.highlight,{rowIndexMapper:o,columnIndexMapper:i}=this.hot,s=o.isHidden(this.hot.toPhysicalRow(n))||i.isHidden(this.hot.toPhysicalColumn(r));return!(this.cellProperties.readOnly||!t||s)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function hl(e){const t=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!t||t.highlight.isHeader()||ka(e))return;const{keyCode:n}=e,r=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&(_a(n)||function(e){return[Sa.CONTROL,Sa.COMMAND_LEFT,Sa.COMMAND_RIGHT,Sa.COMMAND_FIREFOX].includes(e)}(n)||r||this.isEditorOpened()||this.openEditor("",e))}function pl(e,t){t.isCell()&&this.openEditor(null,e,!0)}const fl=new WeakMap;dl.getInstance=function(e,t,n){let r=fl.get(e);return r||(r=new dl(e,t,n),fl.set(e,r)),r};const ml=dl;function gl(e,t,n){bl(e,t),t.set(e,n)}function bl(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yl(e,t){return e.get(vl(e,t))}function wl(e,t,n){return e.set(vl(e,t),n),n}function vl(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Sl=Object.freeze({CELL:"cell",MIXED:"mixed"});var Cl=new WeakMap,_l=new WeakMap,Ml=new WeakMap,xl=new WeakMap,kl=new WeakMap,Rl=new WeakSet;class Tl{constructor(e){var t,n=this;bl(this,t=Rl),t.add(this),gl(this,Cl,void 0),gl(this,_l,void 0),gl(this,Ml,1),gl(this,xl,null),gl(this,kl,new Map);const r=e.getSettings();wl(Cl,this,e),wl(_l,this,r.imeFastEdit?Sl.MIXED:Sl.CELL),yl(Cl,this).addHook("afterUpdateSettings",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vl(Rl,n,Pl).call(n,...t)})),yl(Cl,this).addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vl(Rl,n,Ll).call(n,...t)})),yl(Cl,this).addHook("afterSelectionFocusSet",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vl(Rl,n,Ll).call(n,...t)})),yl(Cl,this).addHook("afterSelectionEnd",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vl(Rl,n,Il).call(n,...t)}))}getFocusMode(){return yl(_l,this)}setFocusMode(e){Object.values(Sl).includes(e)?wl(_l,this,e):Ea(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return yl(Ml,this)}setRefocusDelay(e){wl(Ml,this,e)}setRefocusElementGetter(e){wl(xl,this,e)}getRefocusElement(){var e;return"function"==typeof yl(xl,this)?yl(xl,this).call(this):null===(e=yl(Cl,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,n;const r=null===(t=yl(Cl,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!r)return;let o=yl(Cl,this).runHooks("modifyFocusedElement",r.row,r.col,e);ys(o)||(o=e),!o||null!==(n=yl(Cl,this).getActiveEditor())&&void 0!==n&&n.isOpened()||o.focus({preventScroll:!0})};e?t(e):vl(Rl,this,El).call(this,(e=>t(e)))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yl(Ml,this);var n,r;!yl(Cl,this).getSettings().imeFastEdit||null!==(e=yl(Cl,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(n=yl(Cl,this).getActiveEditor())||void 0===n||null===(r=n.refreshValue)||void 0===r||r.call(n),yl(kl,this).has(t)||yl(kl,this).set(t,Vs((()=>{var e;yl(Cl,this).isDestroyed||null===(e=this.getRefocusElement())||void 0===e||e.select()}),t)),yl(kl,this).get(t)())}}function El(e){var t;const n=null===(t=yl(Cl,this).getSelectedRangeLast())||void 0===t?void 0:t.highlight;if(!n||!yl(Cl,this).selection.isCellVisible(n))return void e(null);const r=yl(Cl,this).getCell(n.row,n.col,!0);null===r?yl(Cl,this).addHookOnce("afterScroll",(()=>{e(yl(Cl,this).getCell(n.row,n.col,!0))})):e(r)}function Ll(){vl(Rl,this,El).call(this,(e=>{const{activeElement:t}=yl(Cl,this).rootDocument;t&&fs(t)&&t.blur(),this.focusOnHighlightedCell(e)}))}function Il(){vl(Rl,this,El).call(this,(e=>{this.getFocusMode()===Sl.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()}))}function Pl(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?Sl.MIXED:Sl.CELL)}o(9978),o(8872);const Dl={" ":" ","&":"&","<":"<",">":">"},Hl=new RegExp(Object.keys(Dl).map((e=>`(${e})`)).join("|"),"gi");function Ol(e){const t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData(...r),i=o.length,s=i>0?o[0].length:0,a=["<table>","</table>"],l=t?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,d=t?1:0;for(let r=0;r<i;r+=1){const i=t&&0===r,a=[];for(let t=0;t<s;t+=1){const s=!i&&n&&0===t;let l="";if(i)l=`<th>${e.getColHeader(t-c)}</th>`;else if(s)l=`<th>${e.getRowHeader(r-d)}</th>`;else{const n=o[r][t],{hidden:i,rowspan:s,colspan:a}=e.getCellMeta(r-d,t-c);if(!i){const e=[];if(s&&e.push(`rowspan="${s}"`),a&&e.push(`colspan="${a}"`),Ps(n))l=`<td ${e.join(" ")}></td>`;else{const t=n.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi," ").replace(/\t/gi,"	");l=`<td ${e.join(" ")}>${t}</td>`}}}a.push(l)}const h=["<tr>",...a,"</tr>"].join("");i?l.splice(1,0,h):u.splice(-1,0,h)}return a.splice(1,0,l.join(""),u.join("")),a.join("")}function Al(e){const t=e.length,n=["<table>"];for(let r=0;r<t;r+=1){const o=e[r],i=o.length,s=[];0===r&&n.push("<tbody>");for(let e=0;e<i;e+=1){const t=o[e],n=Ps(t)?"":t.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(e=>`<span style="mso-spacerun: yes">${" ".repeat(e.length-1)} </span>`)).replace(/\t/gi,"	");s.push(`<td>${n}</td>`)}n.push("<tr>",...s,"</tr>"),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function Nl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=typeof e;if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const n=Array.from(new Set([".",...t])).map((e=>`\\${e}`)).join("|");return new RegExp(`^[+-]?(((${n})?\\d+((${n})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function jl(e,t,n){let r=-1;for("function"==typeof t?(n=t,t=e):r=e-1;++r<=t&&!1!==n(r););}function Yl(e,t,n){let r=e+1;for("function"==typeof t&&(n=t,t=0);--r>=t&&!1!==n(r););}function Fl(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)}function zl(e,t,n){return Math.min(e,t)===e?t:Math.max(e,n)===e?n:e}const Wl="asc",Vl=new Map([[Wl,[-1,1]],["desc",[1,-1]]]),Bl=e=>`The priority '${e}' is already declared in a map.`,$l=e=>`The priority '${e}' is not a number.`,Ul=e=>`The id '${e}' is already declared in a map.`;function Gl(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function n(){return[...t]}function r(e){return t.has(e)}return e=Ws(e)?e:Ul,{addItem:function(n,o){if(r(n))throw new Error(e(n));t.set(n,o)},clear:function(){t.clear()},getId:function(e){const[t]=n().find((t=>{let[n,r]=t;return e===r&&n}))||[null];return t},getItem:function(e){return t.get(e)},getItems:n,hasItem:r,removeItem:function(e){return t.delete(e)}}}const Kl=e=>`'${e}' value is already declared in a unique set.`,ql=e=>`There is already registered "${e}" plugin.`,Xl=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new Map;return e=Ws(e)?e:Bl,t=Ws(t)?t:$l,{addItem:function(r,o){if(!Nl(r))throw new Error(t(r));if(n.has(r))throw new Error(e(r));n.set(r,o)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wl;const[t,r]=Vl.get(e)||Vl.get(Wl);return[...n].sort(((e,n)=>e[0]<n[0]?t:r)).map((e=>e[1]))}}}({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),Jl=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=Ws(e)?e:Kl,{addItem:function(n){if(t.has(n))throw new Error(e(n));t.add(n)},clear:function(){t.clear()},getItems:function(){return[...t]}}}({errorItemExists:ql}),Ql=Gl({errorIdExists:ql});function Zl(){return[...Xl.getItems(),...Jl.getItems()]}function eu(e){const t=ui(e);return Ql.getItem(t)}function tu(e,t,n){[e,t,n]=function(e,t,n){return"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY),[e,t,n]}(e,t,n),void 0===eu(e)&&function(e,t,n){const r=ui(e);if(Ql.hasItem(r))throw new Error(ql(r));void 0===n?Jl.addItem(r):Xl.addItem(n,r),Ql.addItem(r,t)}(e,t,n)}const{register:nu,getItem:ru,hasItem:ou,getNames:iu,getValues:su}=qa("renderers");function au(e){if("function"==typeof e)return e;if(!ou(e))throw Error(`No registered renderer found under "${e}" name`);return ru(e)}function lu(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE),nu(e,t)}const{register:uu,getItem:cu,hasItem:du,getNames:hu,getValues:pu}=qa("validators");function fu(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE),uu(e,t)}function mu(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function gu(e,t){return e.get(yu(e,t))}function bu(e,t,n){return e.set(yu(e,t),n),n}function yu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var wu=new WeakMap,vu=new WeakMap,Su=new WeakMap,Cu=new WeakMap,_u=new WeakMap,Mu=new WeakMap,xu=new WeakMap,ku=new WeakMap,Ru=new WeakMap,Tu=new WeakMap;const Eu=class{constructor(e,t,n,r,o,i){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;mu(this,wu,void 0),mu(this,vu,void 0),mu(this,Su,void 0),mu(this,Cu,void 0),mu(this,_u,void 0),mu(this,Mu,void 0),mu(this,xu,void 0),mu(this,ku,void 0),mu(this,Ru,[null,null]),mu(this,Tu,[null,null]),bu(wu,this,n),bu(vu,this,t),bu(Su,this,o),bu(Cu,this,i),bu(_u,this,s),bu(Mu,this,r),bu(xu,this,e),this.registerEvents()}registerEvents(){gu(Mu,this).addEventListener(gu(Su,this).holder,"contextmenu",(e=>this.onContextMenu(e))),gu(Mu,this).addEventListener(gu(Su,this).TABLE,"mouseover",(e=>this.onMouseOver(e))),gu(Mu,this).addEventListener(gu(Su,this).TABLE,"mouseout",(e=>this.onMouseOut(e)));const e=()=>{gu(Mu,this).addEventListener(gu(Su,this).holder,"touchstart",(e=>this.onTouchStart(e))),gu(Mu,this).addEventListener(gu(Su,this).holder,"touchend",(e=>this.onTouchEnd(e))),this.momentumScrolling||(this.momentumScrolling={}),gu(Mu,this).addEventListener(gu(Su,this).holder,"scroll",(()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||gu(wu,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout((()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,gu(wu,this).getSetting("onAfterMomentumScroll"))}),200)}))};ga()?e():(la()&&e(),(()=>{gu(Mu,this).addEventListener(gu(Su,this).holder,"mouseup",(e=>this.onMouseUp(e))),gu(Mu,this).addEventListener(gu(Su,this).holder,"mousedown",(e=>this.onMouseDown(e)))})())}selectedCellWasTouched(e){const t=this.parentCell(e).coords;if(gu(ku,this)&&t){const[e,n]=[t.row,gu(ku,this).from.row],[r,o]=[t.col,gu(ku,this).from.col];return e===n&&r===o}return!1}parentCell(e){const t={},n=Li(e,["TD","TH"],gu(Su,this).TABLE);return n?(t.coords=gu(Su,this).getCoords(n),t.TD=n):Oi(e,"wtBorder")&&Oi(e,"current")?(t.coords=gu(Cu,this).getFocusSelection().cellRange.highlight,t.TD=gu(Su,this).getCell(t.coords)):Oi(e,"wtBorder")&&Oi(e,"area")&&gu(Cu,this).getAreaSelection().cellRange&&(t.coords=gu(Cu,this).getAreaSelection().cellRange.to,t.TD=gu(Su,this).getCell(t.coords)),t}onMouseDown(e){const t=gu(vu,this).rootDocument.activeElement,n=Bs(ki,e.target),r=e.target;if(!["TD","TH"].includes(t.nodeName)&&(r===t||n(0)===t||n(1)===t))return;const o=this.parentCell(r);Oi(r,"corner")?gu(wu,this).getSetting("onCellCornerMouseDown",e,r):o.TD&&gu(wu,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,o.coords,o.TD),(0===e.button||this.touchApplied)&&o.TD&&(gu(Tu,this)[0]=o.TD,clearTimeout(gu(Ru,this)[0]),gu(Ru,this)[0]=setTimeout((()=>{gu(Tu,this)[0]=null}),1e3))}onContextMenu(e){if(gu(wu,this).has("onCellContextMenu")){const t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}onMouseOver(e){if(!gu(wu,this).has("onCellMouseOver"))return;const t=gu(Su,this).TABLE,n=Li(e.target,["TD","TH"],t),r=gu(_u,this)||this;n&&n!==r.lastMouseOver&&Ii(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,gu(Su,this).getCoords(n),n))}onMouseOut(e){if(!gu(wu,this).has("onCellMouseOut"))return;const t=gu(Su,this).TABLE,n=Li(e.target,["TD","TH"],t),r=Li(e.relatedTarget,["TD","TH"],t),o=gu(_u,this)||this;n&&n!==r&&Ii(n,t)&&(this.callListener("onCellMouseOut",e,gu(Su,this).getCoords(n),n),null===r&&(o.lastMouseOver=null))}onMouseUp(e){const t=this.parentCell(e.target);t.TD&&gu(wu,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,t.coords,t.TD),(0===e.button||this.touchApplied)&&(t.TD===gu(Tu,this)[0]&&t.TD===gu(Tu,this)[1]?(Oi(e.target,"corner")?this.callListener("onCellCornerDblClick",e,t.coords,t.TD):this.callListener("onCellDblClick",e,t.coords,t.TD),gu(Tu,this)[0]=null,gu(Tu,this)[1]=null):t.TD===gu(Tu,this)[0]&&(gu(Tu,this)[1]=t.TD,clearTimeout(gu(Ru,this)[1]),gu(Ru,this)[1]=setTimeout((()=>{gu(Tu,this)[1]=null}),500)))}onTouchStart(e){bu(ku,this,gu(Cu,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var t;const n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=Ls(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&gu(wu,this).getSetting("isDataViewInstance")){const t=["A","BUTTON","INPUT"];ba()&&(da.chromeWebKit.value||da.firefoxWebKit.value)&&this.selectedCellWasTouched(n)&&!t.includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,t,n,r){const o=gu(wu,this).getSettingPure(e);o&&o(t,n,r,gu(xu,this).call(this))}destroy(){clearTimeout(gu(Ru,this)[0]),clearTimeout(gu(Ru,this)[1]),gu(Mu,this).destroy()}};function Lu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Iu=class{constructor(e,t,n){Lu(this,"offset",void 0),Lu(this,"total",void 0),Lu(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=n}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}};function Pu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Du=class{constructor(e,t,n){Pu(this,"offset",void 0),Pu(this,"total",void 0),Pu(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=n}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}};function Hu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ou{constructor(){Hu(this,"currentSize",0),Hu(this,"nextSize",0),Hu(this,"currentOffset",0),Hu(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}function Au(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nu{constructor(){Au(this,"size",new Ou),Au(this,"workingSpace",0),Au(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return null!==this.sharedSize}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=1,e.workingSpace=2,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=2,e.workingSpace=1,this.sharedSize=e.getViewSize()}}o(3609);class ju{constructor(e,t){(function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"order",[]),this.order=[...Array(t).keys()].map((t=>e+t))}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}class Yu{constructor(e){(function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:n}=e.getViewSize();let r=Math.max(n,t);if(0===r)return[];const{currentOffset:o,nextOffset:i}=e.getViewSize(),s=new ju(o,t),a=new ju(i,n),l=[];for(let t=0;t<r;t++){const o=s.get(t),i=a.get(t);if(-1===i)l.push(["remove",o]);else if(-1===o)!e.isShared()||e.isShared()&&e.isPlaceOn(2)?l.push(["append",i]):l.push(["prepend",i]);else if(i>o)s.has(i)&&(s.remove(i),n<=s.length&&(r-=1)),l.push(["replace",i,o]);else if(i<o){const e=s.prepend(i);l.push(["insert_before",i,o,e])}else l.push(["none",i])}return l}}function Fu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class zu{constructor(e,t){Fu(this,"rootNode",void 0),Fu(this,"nodesPool",void 0),Fu(this,"sizeSet",new Nu),Fu(this,"collectedNodes",[]),Fu(this,"viewDiffer",new Yu(this.sizeSet)),Fu(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[n,r,o,i]=e,s=this.nodesPool(r);switch(this.collectedNodes.push(s),n){case"prepend":t.insertBefore(s,t.firstChild);break;case"append":t.appendChild(s);break;case"insert_before":t.insertBefore(s,this.nodesPool(o)),t.removeChild(this.nodesPool(i));break;case"replace":t.replaceChild(s,this.nodesPool(o));break;case"remove":t.removeChild(s)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}class Wu extends zu{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}function Vu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Bu{constructor(e){Vu(this,"nodeType",void 0),Vu(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const n="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(n))return this.pool.get(n);const r=this.rootDocument.createElement(this.nodeType);return this.pool.set(n,r),r}}function $u(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Uu{constructor(e,t){$u(this,"nodesPool",null),$u(this,"nodeType",void 0),$u(this,"rootNode",void 0),$u(this,"table",null),$u(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new Bu(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}function Gu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ku extends Uu{constructor(){super("TH"),Gu(this,"orderViews",new WeakMap),Gu(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new Wu(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e))),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:n,rows:r,cells:o}=this.table;for(let i=0;i<e;i++){const e=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=e;const a=this.obtainOrderView(s),l=o.obtainOrderView(s);a.appendView(l).setSize(n).setOffset(0).start();for(let r=n-1;r>=0;r--){a.render();const n=a.getCurrentNode();n.className="",n.removeAttribute("style"),Yi(n,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ji(n,[["role","rowheader"],["scope","row"],Si(r+1),mi(-1)]),t[r](e,n,r)}a.end()}}}class qu extends Uu{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let n=this.rootNode.firstChild;if(e){const{columnsToRender:r}=this.table,o=r+t;for(let t=0,r=e;t<r;t++){for(n=this.rootNode.childNodes[t],n||(n=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(n)),this.renderedNodes=n.childNodes.length;this.renderedNodes<o;)n.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)n.removeChild(n.lastChild),this.renderedNodes-=1}const i=this.rootNode.childNodes.length;if(i>e)for(let t=e;t<i;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else n&&zi(n)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&ji(this.rootNode,[["role","rowgroup"]]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:n,rowHeadersCount:r}=this.table,o=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&ji(o,[["role","row"],vi(t+1)]);for(let i=-1*r;i<n;i+=1){const n=this.table.renderedColumnToSource(i),s=o.childNodes[i+r];s.className="",s.removeAttribute("style"),Yi(s,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ji(s,[Si(i+1+this.table.rowHeadersCount),mi(-1),["role","columnheader"],...i>=0?[["scope","col"]]:[["role","row"]]]),e[t](n,s,t)}}}}let Xu=!1;class Ju extends Uu{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,n=e+t;for(;this.renderedNodes<n;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>n;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!Xu&&e>1e3&&(Xu=!0,Ea(Ts`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
- Consider limiting the number of rendered columns by specifying the table width and/or\x20
- turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),n=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${n}px`}for(let n=0;n<e;n++){const e=this.table.renderedColumnToSource(n),r=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[n+t].style.width=`${r}px`}const n=this.rootNode.firstChild;n&&Ai(n,"rowHeader")}}const Qu="ht__row_even",Zu="ht__row_odd";let ec=!1;class tc extends Uu{constructor(e){super("TR",e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"orderView",void 0),this.orderView=new zu(e,(e=>this.nodesPool.obtain(e)))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!ec&&e>1e3&&(ec=!0,Ea(Ts`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
- Consider limiting the number of rendered rows by specifying the table height and/or\x20
- turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&ji(this.rootNode,[["role","rowgroup"]]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let r=0;r<e;r++){this.orderView.render();const e=this.orderView.getCurrentNode(),o=this.table.renderedRowToSource(r);var t,n;this.table.isAriaEnabled()&&ji(e,[["role","row"],vi(o+(null!==(t=null===(n=this.table.rowUtils)||void 0===n||null===(n=n.dataAccessObject)||void 0===n?void 0:n.columnHeaders.length)&&void 0!==t?t:0)+1)]),(o+1)%2==0?Oi(e,Qu)||(Ni(e,Zu),Ai(e,Qu)):Oi(e,Zu)||(Ni(e,Qu),Ai(e,Zu))}this.orderView.end()}}function nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class rc extends Uu{constructor(){super("TD"),nc(this,"orderViews",new WeakMap),nc(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new Wu(e,(e=>this.nodesPool.obtain(this.sourceRowIndex,e)),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:n,rowHeaders:r}=this.table;for(let s=0;s<e;s++){const e=this.table.renderedRowToSource(s),a=n.getRenderedNode(s);this.sourceRowIndex=e;const l=this.obtainOrderView(a),u=r.obtainOrderView(a);l.prependView(u).setSize(t).setOffset(0).start();for(let n=0;n<t;n++){l.render();const t=this.table.renderedColumnToSource(n),r=l.getCurrentNode();var o,i;Oi(r,"hide")||(r.className=""),r.removeAttribute("style"),r.removeAttribute("dir"),Yi(r,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,r),this.table.isAriaEnabled()&&ji(r,[...r.hasAttribute("role")?[]:[["role","gridcell"]],mi(-1),Si(t+(null!==(o=null===(i=this.table.rowUtils)||void 0===i||null===(i=i.dataAccessObject)||void 0===i?void 0:i.rowHeaders.length)&&void 0!==o?o:0)+1)])}l.end()}}}function oc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ic{constructor(e){let{cellRenderer:t,stylesHandler:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oc(this,"rootNode",void 0),oc(this,"rootDocument",void 0),oc(this,"rowHeaders",null),oc(this,"columnHeaders",null),oc(this,"colGroup",null),oc(this,"rows",null),oc(this,"cells",null),oc(this,"rowFilter",null),oc(this,"columnFilter",null),oc(this,"rowUtils",null),oc(this,"columnUtils",null),oc(this,"rowsToRender",0),oc(this,"columnsToRender",0),oc(this,"rowHeaderFunctions",[]),oc(this,"rowHeadersCount",0),oc(this,"columnHeaderFunctions",[]),oc(this,"columnHeadersCount",0),oc(this,"cellRenderer",void 0),oc(this,"activeOverlayName",void 0),oc(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=n}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:n,rows:r,cells:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=n,this.rows=r,this.cells=o}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();const{rowsToRender:e,rows:t}=this;for(let n=0;n<e;n++){const e=t.getRenderedNode(n),r=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(n),o=r.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=o?o-i+"px":""}}}}class sc{constructor(){let{TABLE:e,THEAD:t,COLGROUP:n,TBODY:r,rowUtils:o,columnUtils:i,cellRenderer:s,stylesHandler:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new ic(e,{cellRenderer:s,stylesHandler:a}),this.renderer.setRenderers({rowHeaders:new Ku,columnHeaders:new qu(t),colGroup:new Ju(n),rows:new tc(r),cells:new rc}),this.renderer.setAxisUtils(o,i)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}function ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lc{constructor(e,t){ac(this,"dataAccessObject",void 0),ac(this,"wtSettings",void 0),ac(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.dataAccessObject.stylesHandler.getDefaultRowHeight();const n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const n=e.getSetting("rowHeaders").length,r=e.getSetting("defaultColumnWidth");for(let e=0;e<n;e++){let n=Array.isArray(t)?t[e]:t;n=null==n?r:n,this.headerWidths.set(e,n)}}}}function uc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class cc{constructor(e,t){uc(this,"dataAccessObject",void 0),uc(this,"wtSettings",void 0),this.dataAccessObject=e,this.wtSettings=t}getHeight(e){let t=this.wtSettings.getSetting("rowHeight",e);const n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}getHeightByOverlayName(e,t){let n=this.wtSettings.getSetting("rowHeightByOverlayName",e,t);const r=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==r&&(n=void 0===n?r:Math.max(n,r)),n}}const dc="top",hc="bottom",pc="inline_start",fc="top_inline_start_corner",mc="bottom_inline_start_corner",gc=[dc,hc,pc,fc,mc],bc=new Map([[dc,`ht_clone_${dc}`],[hc,`ht_clone_${hc}`],[pc,`ht_clone_${pc} ht_clone_left`],[fc,`ht_clone_${fc} ht_clone_top_left_corner`],[mc,`ht_clone_${mc} ht_clone_bottom_left_corner`]]);function yc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wc=class{constructor(e,t,n,r,o){yc(this,"wtSettings",null),yc(this,"domBindings",void 0),yc(this,"TBODY",null),yc(this,"THEAD",null),yc(this,"COLGROUP",null),yc(this,"hasTableHeight",!0),yc(this,"hasTableWidth",!0),yc(this,"isTableVisible",!1),yc(this,"tableOffset",0),yc(this,"holderOffset",0),this.domBindings=n,this.isMaster="master"===o,this.name=o,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=r,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=n.rootTable,Fi(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const i=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(()=>this._modifyRowHeaderWidth(i))),this.rowUtils=new cc(this.dataAccessObject,this.wtSettings),this.columnUtils=new lc(this.dataAccessObject,this.wtSettings),this.tableRenderer=new sc({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.dataAccessObject.stylesHandler})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&Oi(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtSpreader",t&&t.insertBefore(n,e),n.appendChild(e)),n.style.position="relative",this.wtSettings.getSetting("ariaTags")&&ji(n,[["role","presentation"]]),n}createHider(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&Oi(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.className="wtHider",t&&t.insertBefore(n,e),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&ji(n,[["role","presentation"]]),n}createHolder(e){const t=e.parentNode;let n;return t&&t.nodeType===Node.ELEMENT_NODE&&Oi(t,"wtHolder")||(n=this.domBindings.rootDocument.createElement("div"),n.style.position="relative",n.className="wtHolder",ji(n,[mi(-1)]),t&&t.insertBefore(n,e),this.isMaster&&(n.parentNode.className+="ht_master handsontable",n.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&ji(n.parentNode,[["role","presentation"]])),n.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&ji(n,[["role","presentation"]]),n}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:n,wtViewport:r}=this.dataAccessObject,o=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),a=s.length,l=t.getSetting("columnHeaders"),u=l.length;let c=e;if(this.isMaster&&(n.beforeDraw(),this.holderOffset=Ui(this.holder),c=r.createCalculators(c),a&&!t.getSetting("fixedColumnsStart"))){const e=n.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(c=!1)}if(c)this.isMaster&&n.refresh(!0);else{this.isMaster?this.tableOffset=Ui(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new Du(e,o,u),this.columnFilter=new Iu(t,i,a);let c=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),c=!0!==e.skipRender}c&&(this.tableRenderer.setHeaderContentRenderers(s,l),(this.is(hc)||this.is(mc))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(hc))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||r.createVisibleCalculators(),n.refresh(!1),n.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(hc)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let d=!1;return this.isMaster&&(d=n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&(d=n.bottomOverlay.resetFixedPosition()||d),d=n.inlineStartOverlay.resetFixedPosition()||d,n.topInlineStartCornerOverlay&&n.topInlineStartCornerOverlay.resetFixedPosition(),n.bottomInlineStartCornerOverlay&&n.bottomInlineStartCornerOverlay.clone&&n.bottomInlineStartCornerOverlay.resetFixedPosition()),d?(n.refreshAll(),n.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(c),this.isMaster&&n.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let n=this.wtSettings.getSetting("columnHeaders").length;const r=this.dataAccessObject.stylesHandler.getDefaultRowHeight();let o,i,s;const a=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;n;)n-=1,o=this.getColumnHeaderHeight(n),i=this.getColumnHeader(t,n),i&&(s=ns(i),(!o&&r<s||o<s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=s),Array.isArray(a)?null!==a[n]&&void 0!==a[n]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a[n]):isNaN(a)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a),this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]<(a[n]||a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[n]=a[n]||a))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height=`${n[r]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(hc))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let n=0;n<e;n++){const e=this.rowFilter.renderedToSource(n);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,n=e.col;const r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n,!this.isMaster,"render");if(r&&Array.isArray(r)&&([t,n]=r),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;const o=this.getRow(t);if(!o&&t>=0)throw new Error("TR was expected to be rendered but is not");const i=o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!i&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return i}getRow(e){let t=null,n=null;var r,o;return e<0?(t=null===(r=this.rowFilter)||void 0===r?void 0:r.sourceRowToVisibleColHeadedRow(e),n=this.THEAD):(t=null===(o=this.rowFilter)||void 0===o?void 0:o.sourceToRendered(e),n=this.TBODY),void 0!==t&&void 0!==n&&!(n.childNodes.length<t+1)&&n.childNodes[t]}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((e=>{const r=e.childNodes[n];r&&t.push(r)})),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const n=this.rowFilter.sourceToRendered(e),r=n<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):n,o=(n<0?this.THEAD:this.TBODY).childNodes[r];return null==o?void 0:o.childNodes[t]}getRowHeaders(e){const t=[],n=this.wtSettings.getSetting("rowHeaders").length;for(let r=0;r<n;r++){const n=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],o=null==n?void 0:n.childNodes[r];o&&t.push(o)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=Ei(t,["TD","TH"])),null===t)return null;const n=t.parentNode;if(!n)return null;const r=n.parentNode;let o=function(e){let t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}(n),i=t.cellIndex;Pi(fc,t,this.wtRootElement)||Pi(dc,t,this.wtRootElement)?"THEAD"===r.nodeName&&(o-=r.childNodes.length):Pi(mc,t,this.wtRootElement)||Pi(hc,t,this.wtRootElement)?o=this.wtSettings.getSetting("totalRows")-r.childNodes.length+o:r===this.THEAD?o=this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter&&(o=this.rowFilter.renderedToSource(o)),Pi(fc,t,this.wtRootElement)||Pi(pc,t,this.wtRootElement)||Pi(mc,t,this.wtRootElement)?i=this.columnFilter.offsettedTH(i):this.columnFilter&&(i=this.columnFilter.visibleRowHeadedColumnToSourceColumn(i));const s=this.wtSettings.getSetting("onModifyGetCoordsElement",o,i);return s&&Array.isArray(s)&&([o,i]=s),this.wot.createCellCoords(o,i)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=e*this.dataAccessObject.stylesHandler.getDefaultRowHeight(),n=ns(this.TBODY)-1,r=this.wot.stylesHandler.areCellsBorderBox(),o=r?ts:ns,i=r?0:1,s=r?1:0;let a,l,u,c,d;if(t!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),a=this.getRowHeight(u),c=this.getTrForRow(u),d=c.querySelector("th");const t=0===u?s:0;l=d?o(d):o(c)-i,(!a&&this.dataAccessObject.stylesHandler.getDefaultRowHeight()<l-t||a<l)&&(r||(l+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=l)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return es(this.TABLE)}getHeight(){return ts(this.TABLE)}getTotalWidth(){const e=es(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=ts(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return $i(this.TABLE)}_modifyRowHeaderWidth(e){let t=Ws(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}},vc={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};ea(vc,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});const Sc=vc,Cc={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};ea(Cc,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});const _c=Cc;class Mc extends wc{constructor(e,t,n,r){super(e,t,n,r,dc)}}Js(Mc,Sc),Js(Mc,_c);const xc=Mc;function kc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Rc=new WeakSet;function Tc(e){const{wtSettings:t,inlineStartOverlay:n,wtTable:r,wtViewport:o,totalColumns:i,rootWindow:s}=this.dataAccessObject;if(n.mainTableScrollableElement===s){let a=null;if(t.getSetting("rtlMode")){const e=r.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;a=Math.abs(e.right-t)}else a=Ui(r.wtRootElement).left;const l=Math.abs(Xi(s,s));if(a>l){const t=rs(s);let r=o.getRowHeaderWidth();for(let o=1;o<=i;o++)if(r+=n.sumCellSizes(o-1,o),a+r-l>=t){e=o-2;break}}}return e}function Ec(e){const{topOverlay:t,wtTable:n,wtViewport:r,totalRows:o,rootWindow:i}=this.dataAccessObject;if(t.mainTableScrollableElement===i){const s=Ui(n.wtRootElement),a=qi(i,i);if(s.top>a){const n=ns(i);let l=r.getColumnHeaderHeight();for(let r=1;r<=o;r++)if(l+=t.sumCellSizes(r-1,r),s.top+l-a>=n){e=r-2;break}}}return e}const Lc=class{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Rc),n.add(t),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,n){if(e.col<0||e.row<0)return!1;const r=this.scrollViewportHorizontally(e.col,t),o=this.scrollViewportVertically(e.row,n);return r||o}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalColumns:r}=this.dataAccessObject;if(!n)return!1;const o=oa(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,o),!Number.isInteger(e)||e<0||e>r)return!1;t=o.value;const{fixedColumnsStart:i,inlineStartOverlay:s}=this.dataAccessObject,a="auto"===t;if(a&&e<i)return!1;const l=this.getFirstVisibleColumn(),u=this.getLastVisibleColumn();let c=!1;return(a&&(e<l||e>u)||!a)&&(c=s.scrollTo(e,a?e>=this.getLastPartiallyVisibleColumn():"end"===t)),c}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:n,totalRows:r}=this.dataAccessObject;if(!n)return!1;const o=oa(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,o),!Number.isInteger(e)||e<0||e>r)return!1;t=o.value;const{fixedRowsBottom:i,fixedRowsTop:s,topOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&(e<s||e>r-i-1))return!1;const u=this.getFirstVisibleRow(),c=this.getLastVisibleRow();let d=!1;return(l&&(e<u||e>c)||!l)&&(d=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return kc(Rc,this,Ec).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return kc(Rc,this,Ec).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return kc(Rc,this,Tc).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return kc(Rc,this,Tc).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}};function Ic(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pc(e,t){return e.get(Hc(e,t))}function Dc(e,t,n){return e.set(Hc(e,t),n),n}function Hc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Oc=new WeakMap;class Ac{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i;Ic(this,"row",null),Ic(this,"col",null),i=!1,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=Oc),o.set(r,i),Dc(Oc,this,n),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:n,countRowHeaders:r,countColHeaders:o}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col)||this.row<-o||this.col<-r||this.row>=t||this.col>=n)}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return Pc(Oc,this)}isSouthEastOf(e){return this.row>=e.row&&(Pc(Oc,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(Pc(Oc,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(Pc(Oc,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(Pc(Oc,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof Ac&&Dc(Oc,this,e.isRtl()),this}clone(){return new Ac(this.row,this.col,Pc(Oc,this))}toObject(){return{row:this.row,col:this.col}}}const Nc=Ac;function jc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e,t){return e.get(Fc(e,t))}function Fc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var zc=new WeakMap;class Wc{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var o,i,s;jc(this,"highlight",null),jc(this,"from",null),jc(this,"to",null),s=!1,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=zc),i.set(o,s),this.highlight=e.clone(),this.from=t.clone(),this.to=n.clone(),function(e,t,n){e.set(Fc(e,t),n)}(zc,this,r)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:n}=e,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner(),o=this.getDirection(),i=e.getOuterTopStartCorner(),s=e.getOuterBottomEndCorner(),a=Math.min(n.row,i.row),l=Math.min(n.col,i.col),u=Math.max(r.row,s.row),c=Math.max(r.col,s.col),d=this._createCellCoords(a,l),h=this._createCellCoords(u,c);return this.from=d,this.to=h,this.setDirection(o),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return Yc(zc,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return Yc(zc,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return Yc(zc,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return Yc(zc,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return Yc(zc,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return Yc(zc,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return Yc(zc,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return Yc(zc,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof Nc&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),s=Math.max(e.from.row,e.to.row),a=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push(Yc(zc,this)?"left":"right"),n===s&&u.push("bottom"),r===a&&u.push(Yc(zc,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(this._createCellCoords(r,o));return n}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[];for(let r=e.row;r<=t.row;r++)for(let o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(this._createCellCoords(r,o));return n}forAll(e){const t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();for(let r=t.row;r<=n.row;r++)for(let o=t.col;o<=n.col;o++)if(!1===e(r,o))return}clone(){return new Wc(this.highlight,this.from,this.to,Yc(zc,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new Nc(e,t,Yc(zc,this))}}const Vc=Wc;function Bc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class $c{get eventManager(){return new al(this)}constructor(e,t){Bc(this,"wtTable",void 0),Bc(this,"wtScroll",void 0),Bc(this,"wtViewport",void 0),Bc(this,"wtOverlays",void 0),Bc(this,"selectionManager",void 0),Bc(this,"wtEvent",void 0),Bc(this,"guid",`wt_${ci()}`),Bc(this,"drawInterrupted",!1),Bc(this,"drawn",!1),Bc(this,"activeOverlayName","master"),Bc(this,"domBindings",void 0),Bc(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new Lc(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){Bi(n,e[t])}])}}createCellCoords(e,t){return new Nc(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,n){return new Vc(e,t,n,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||function(e){const t=e.ownerDocument.defaultView;let n=e;for(;n.parentNode;){if("0px"===n.style.height||"0"===n.style.height)return"hidden"===t.getComputedStyle(n).overflow;n=n.parentNode}return!1}(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),o=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<n&&e.col<o)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<o&&e.row>=t-r){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<o)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-r&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,n){return this.wtScroll.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get stylesHandler(){return e.stylesHandler},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}function Uc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Gc extends $c{constructor(e,t,n){super(e,t),Uc(this,"cloneSource",void 0),Uc(this,"cloneOverlay",void 0);const r=this.wtSettings.getSetting("facade",this);this.cloneSource=n.source,this.cloneOverlay=n.overlay,this.stylesHandler=n.stylesHandler,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),r,this.domBindings,this.wtSettings),this.wtViewport=n.viewport,this.selectionManager=n.selectionManager,this.wtEvent=new Eu(r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,n.event),this.findOriginalHeaders()}}class Kc{constructor(e,t,n,r,o){(function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"wtSettings",null),ea(this,"wot",e,{writable:!1}),this.domBindings=o,this.facadeGetter=t,this.wtSettings=r;const{TABLE:i,hider:s,spreader:a,holder:l,wtRootElement:u}=this.wot.wtTable;this.instance=this.wot,this.type=n,this.mainTableScrollableElement=null,this.TABLE=i,this.hider=s,this.spreader=a,this.holder=l,this.wtRootElement=u,this.trimmingContainer=Qi(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.clone=this.makeClone()}hasRenderingStateChanged(){return this.needFullRender!==this.shouldBeRendered()}updateStateOfRendering(e){"before"===e&&this.shouldBeRendered()?this.needFullRender=!0:"after"!==e||this.shouldBeRendered()||(this.needFullRender=!1)}shouldBeRendered(){return!0}updateTrimmingContainer(){this.trimmingContainer=Qi(this.hider.parentNode.parentNode)}updateMainScrollableElement(){const{wtTable:e}=this.wot,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=Ji(e.TABLE)}getRelativeCellPosition(e,t,n){if(!1===this.clone.wtTable.holder.contains(e))return void Ea(`The provided element is not a child of the ${this.type} overlay`);const r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),s=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),a=this.clone.wtTable.spreader,l={start:this.getRelativeStartPosition(a),top:a.offsetTop},u={start:this.getRelativeStartPosition(e),top:e.offsetTop};let c=null;return c=r?this.getRelativeCellPositionWithinWindow(i,o,u,l):this.getRelativeCellPositionWithinHolder(i,s,o,u,l),c}getRelativeStartPosition(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}getRelativeCellPositionWithinWindow(e,t,n,r){const o=this.wot.wtTable.wtRootElement.getBoundingClientRect();let i=0,s=0;if(t){let e=o.left;this.isRtl()&&(e=this.domBindings.rootWindow.innerWidth-(o.left+o.width+ls())),i=e<=0?-1*e:0}else i=r.start;return s=e?this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:r.top,{start:n.start+i,top:n.top+s}}getRelativeCellPositionWithinHolder(e,t,n,r,o){const i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),s=this.wot.wtOverlays.topOverlay.getScrollPosition();let a=0,l=0;if(n||(a=i-o.start),t){const e=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+e.top}else e||(l=s-o.top);return{start:r.start-a,top:r.top-l}}makeClone(){if(-1===gc.indexOf(this.type))throw new Error(`Clone type "${this.type}" is not supported.`);const{wtTable:e,wtSettings:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,o=n.createElement("div"),i=n.createElement("table"),s=e.wtRootElement.parentNode;o.className=`${bc.get(this.type)} handsontable`,o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,t.getSetting("ariaTags")&&ji(o,[["role","presentation"]]),i.className=e.TABLE.className,e.TABLE.getAttribute("role")&&i.setAttribute("role",e.TABLE.getAttribute("role")),o.appendChild(i),s.appendChild(o);const a=this.wtSettings.getSetting("preventOverflow");return!0===a||"horizontal"===a&&this.type===dc||"vertical"===a&&this.type===pc?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(s).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=Ji(e.TABLE),new Gc(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selectionManager:this.wot.selectionManager,stylesHandler:this.wot.stylesHandler})}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.needFullRender){const t=this.clone.cloneSource;t.activeOverlayName=this.clone.wtTable.name,this.clone.draw(e),t.activeOverlayName="master"}}reset(){const e=this.clone.wtTable.holder,t=this.clone.wtTable.hider;[e.style,t.style,e.parentNode.style].forEach((e=>{e.width="",e.height=""}))}isRtl(){return this.wtSettings.getSetting("rtlMode")}destroy(){this.clone.eventManager.destroy()}}const qc=e=>{const t=e.stylesHandler;if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const n=t.getCSSVariableValue("cell-autofill-size"),r=t.getCSSVariableValue("cell-autofill-border-width"),o=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:n,height:n,borderWidth:r,borderStyle:"solid",borderColor:o})};class Xc extends Kc{constructor(e,t,n,r){super(e,t,dc,n,r),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new xc(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,n=this.wtSettings.getSetting("preventOverflow");let r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),hs(e);else{const{wtTable:t}=this.wot,n=t.hider.getBoundingClientRect();o=Math.ceil(n.bottom)===e.offsetHeight,r=this.getOverlayOffset(),ds(e,"0px",`${r}px`)}const i=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),i}setScrollPosition(e){const{rootWindow:t}=this.domBindings,n=this.mainTableScrollableElement;let r=!1;if(n===t&&e!==t.scrollY){const n=t.scrollY;t.scrollTo(Ki(t),e),r=n!==t.scrollY}else if(e!==n.scrollTop){const t=n.scrollTop;n.scrollTop=e,r=t!==n.scrollTop}return r}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const n=this.wot.stylesHandler.getDefaultRowHeight();let r=e,o=0;for(;r<t;){const e=this.wot.wtTable.getRowHeight(r);o+=void 0===e?n:e,r+=1}return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,o=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===i){let r=t.getWorkspaceWidth();t.hasVerticalScroll()&&(r-=ls(n)),r=Math.min(r,e.wtRootElement.scrollWidth),o.width=`${r}px`}else o.width="";this.clone.wtTable.holder.style.width=o.width;let s=ts(this.clone.wtTable.TABLE);e.hasDefinedSize()||(s=0),o.height=`${s}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=qc(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:n,wtSettings:r}=this,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=r.getSetting("columnHeaders"),s=0===r.getSetting("fixedRowsTop")&&i.length>0&&!Oi(o.parentNode,"innerBorderTop")?1:0;let a=this.getTableParentOffset(),l=0;if(t&&this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1),t&&o.offsetHeight!==o.clientHeight&&(l=ls(this.domBindings.rootDocument)),t){const t=r.getSetting("fixedRowsBottom"),o=r.getSetting("totalRows");a+=this.sumCellSizes(0,e+1),a-=n.wtViewport.getViewportHeight()-this.sumCellSizes(o-t,o),a+=1,a+=s}else a+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);var u;return a+=l,(u=this.mainTableScrollableElement).scrollHeight-u.clientHeight===a-s&&s>0&&this.wot.wtOverlays.expandHiderVerticallyBy(s),this.setScrollPosition(a)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return qi(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),n>e&&(n=0)}return n}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:n}=this,r=this.wot.wtTable.holder.parentNode,o=n.getSetting("totalColumns"),i="horizontal"===n.getSetting("preventOverflow");o?Ni(r,"emptyColumns"):Ai(r,"emptyColumns");let s=!1;if(!t&&!i){const t=n.getSetting("fixedRowsTop"),o=this.cachedFixedRowsTop!==t,i=n.getSetting("columnHeaders");if((o||0===t)&&i.length>0){const t=Oi(r,"innerBorderTop");this.cachedFixedRowsTop=n.getSetting("fixedRowsTop"),e||0===n.getSetting("totalRows")?(Ai(r,"innerBorderTop"),s=!t):(Ni(r,"innerBorderTop"),s=t)}}return s}}const Jc={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};ea(Jc,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});const Qc=Jc;class Zc extends wc{constructor(e,t,n,r){super(e,t,n,r,hc)}}Js(Zc,Qc),Js(Zc,_c);const ed=Zc;class td extends Kc{constructor(e,t,n,r){super(e,t,hc,n,r),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"cachedFixedRowsBottom",-1),this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom")}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ed(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const{rootWindow:e}=this.domBindings,t=this.clone.wtTable.holder.parentNode;t.style.top="";let n=0;const r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom=`${n}px`);const o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n}=this.domBindings,r=this.clone.wtTable.holder.parentNode;let o=0;t.hasVerticalScroll()||(o+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(o+=ls(n)),r.style.bottom=`${o}px`}setScrollPosition(e){const{rootWindow:t}=this.domBindings,n=this.mainTableScrollableElement;let r=!1;if(n===t&&e!==t.scrollY){const e=t.scrollY;t.scrollTo(Ki(t),top),r=e!==t.scrollY}else if(e!==n.scrollTop){const t=n.scrollTop;n.scrollTop=e,r=t!==n.scrollTop}return r}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const{wtTable:n,stylesHandler:r}=this.wot,o=r.getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=n.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,o=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===i){let r=t.getWorkspaceWidth();t.hasVerticalScroll()&&(r-=ls(n)),r=Math.min(r,e.wtRootElement.scrollWidth),o.width=`${r}px`}else o.width="";this.clone.wtTable.holder.style.width=o.width;let s=ts(this.clone.wtTable.TABLE);e.hasDefinedSize()||(s=0),o.height=`${s}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){let n=this.getTableParentOffset();const r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder;let o=0;t&&r.offsetHeight!==r.clientHeight&&(o=ls(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return qi(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight(),t=e-this.clone.wtTable.getTotalHeight(),r=this.domBindings.rootDocument.documentElement.clientHeight;n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-r+e,0),n>t&&(n=0)}return n}adjustHeaderBordersPosition(e){const t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders");let o=!1;if((n||0===t)&&r.length>0){const t=this.wot.wtTable.holder.parentNode,n=Oi(t,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?(Ai(t,"innerBorderBottom"),o=!n):(Ni(t,"innerBorderBottom"),o=n)}return o}}const nd={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};ea(nd,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});const rd=nd,od={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};ea(od,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});const id=od;class sd extends wc{constructor(e,t,n,r){super(e,t,n,r,pc)}}Js(sd,rd),Js(sd,id);const ad=sd;class ld extends Kc{constructor(e,t,n,r){super(e,t,pc,n,r)}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ad(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow");let o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),hs(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),ds(n,`${o}px`,"0px"));const i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let n=!1;this.isRtl()&&(e=-e);const r=this.mainTableScrollableElement;if(r===t&&e!==t.scrollX){const r=t.scrollX;t.scrollTo(e,Gi(t)),n=r!==t.scrollX}else if(e!==r.scrollLeft){const t=r.scrollLeft;r.scrollLeft=e,n=t!==r.scrollLeft}return n}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const n=this.wtSettings.getSetting("defaultColumnWidth");let r=e,o=0;for(;r<t;)o+=this.wot.wtTable.getColumnWidth(r)||n,r+=1;return o}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n,rootWindow:r}=this.domBindings,o=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===i){let r=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(r-=ls(n)),r=Math.min(r,e.wtRootElement.scrollHeight),o.height=`${r}px`}else o.height="";this.clone.wtTable.holder.style.height=o.height;const s=es(this.clone.wtTable.TABLE);o.width=`${s}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=qc(this.wot),n=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+n}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:n}=this,r=n.getSetting("rowHeaders"),o=n.getSetting("fixedColumnsStart"),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,s=0===o&&r.length>0&&!Oi(i.parentNode,"innerBorderInlineStart")?1:0;let a=this.getTableParentOffset(),l=0;var u;return t&&this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1),t&&i.offsetWidth!==i.clientWidth&&(l=ls(this.domBindings.rootDocument)),t?(a+=this.sumCellSizes(0,e+1),a-=this.wot.wtViewport.getViewportWidth(),a+=s):a+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),a+=l,(u=this.mainTableScrollableElement).scrollWidth-u.clientWidth===a-s&&s>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(s),this.setScrollPosition(a)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs(Xi(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let n=0;return this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),n>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0)),n}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,n=this.wot.wtTable.holder.parentNode,r=t.getSetting("rowHeaders"),o=t.getSetting("fixedColumnsStart"),i=t.getSetting("totalRows"),s="vertical"===t.getSetting("preventOverflow");i?Ni(n,"emptyRows"):Ai(n,"emptyRows");let a=!1;if(!s)if(o&&!r.length)Ai(n,"innerBorderLeft innerBorderInlineStart");else if(!o&&r.length){const t=Oi(n,"innerBorderInlineStart");e?(Ai(n,"innerBorderLeft innerBorderInlineStart"),a=!t):(Ni(n,"innerBorderLeft innerBorderInlineStart"),a=t)}return a}}class ud extends wc{constructor(e,t,n,r){super(e,t,n,r,fc)}}Js(ud,Sc),Js(ud,id);const cd=ud;function dd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class hd extends Kc{constructor(e,t,n,r,o,i){super(e,t,fc,n,r),dd(this,"topOverlay",void 0),dd(this,"inlineStartOverlay",void 0),this.topOverlay=o,this.inlineStartOverlay=i}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new cd(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode;this.trimmingContainer===this.domBindings.rootWindow?ds(e,this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1)+"px",`${this.topOverlay.getOverlayOffset()}px`):hs(e);let t=ts(this.clone.wtTable.TABLE);const n=es(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(t=0),e.style.height=`${t}px`,e.style.width=`${n}px`,!1}}class pd extends wc{constructor(e,t,n,r){super(e,t,n,r,mc)}}Js(pd,Qc),Js(pd,id);const fd=pd;class md extends Kc{constructor(e,t,n,r,o,i){super(e,t,mc,n,r),this.bottomOverlay=o,this.inlineStartOverlay=i}createTable(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new fd(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wot:e}=this;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;const t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){const e=this.inlineStartOverlay.getOverlayOffset(),n=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${n}px`}else hs(t),this.repositionOverlay();let n=ts(this.clone.wtTable.TABLE);const r=es(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(n=0),t.style.height=`${n}px`,t.style.width=`${r}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:n}=this.domBindings,r=this.clone.wtTable.holder.parentNode;let o=0;t.hasVerticalScroll()||(o+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(o+=ls(n)),r.style.bottom=`${o}px`}}function gd(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yd(e,t,n){return e.set(vd(e,t),n),n}function wd(e,t){return e.get(vd(e,t))}function vd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Sd=new WeakMap,Cd=new WeakMap,_d=new WeakMap,Md=new WeakMap;const xd=class{constructor(e,t,n,r,o,i){bd(this,"wot",null),gd(this,Sd,[]),bd(this,"topOverlay",null),bd(this,"bottomOverlay",null),bd(this,"inlineStartOverlay",null),bd(this,"topInlineStartCornerOverlay",null),bd(this,"bottomInlineStartCornerOverlay",null),bd(this,"browserLineHeight",void 0),bd(this,"wtSettings",null),gd(this,Cd,!1),gd(this,_d,0),gd(this,Md,null),bd(this,"resizeObserver",new ResizeObserver((e=>{sa((()=>{Array.isArray(e)&&e.length&&(yd(_d,this,wd(_d,this)+1),100===wd(_d,this)&&(Ea("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==wd(Md,this)&&clearTimeout(wd(Md,this)),yd(Md,this,setTimeout((()=>{yd(_d,this,0)}),100)),this.wtSettings.getSetting("onContainerElementResize"))}))}))),this.wot=e,this.wtSettings=r,this.domBindings=n,this.facadeGetter=t,this.wtTable=i;const{rootDocument:s,rootWindow:a}=this.domBindings;this.instance=this.wot,this.eventManager=o,this.scrollbarSize=ls(s);const l="hidden"===a.getComputedStyle(i.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=l?i.holder:Ji(i.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=a.scrollX,this.lastScrollY=a.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...wd(Sd,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,n=e.getComputedStyle(t.body),r=parseInt(n.lineHeight,10),o=1.2*parseInt(n.fontSize,10);this.browserLineHeight=r||o}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new Xc(...e),this.bottomOverlay=new td(...e),this.inlineStartOverlay=new ld(...e),this.topInlineStartCornerOverlay=new hd(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new md(...e,this.bottomOverlay,this.inlineStartOverlay),yd(Sd,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){yd(Cd,this,wd(Sd,this).reduce(((e,t)=>t.hasRenderingStateChanged()||e),!1)),wd(Sd,this).forEach((e=>e.updateStateOfRendering("before")))}afterDraw(){this.syncScrollWithMaster(),wd(Sd,this).forEach((e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()}))}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:n}=this.topOverlay,{mainTableScrollableElement:r}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",(e=>this.onKeyDown(e))),this.eventManager.addEventListener(e.documentElement,"keyup",(()=>this.onKeyUp())),this.eventManager.addEventListener(e,"visibilitychange",(()=>this.onKeyUp())),this.eventManager.addEventListener(n,"scroll",(e=>this.onTableScroll(e)),{passive:!0}),n!==r&&this.eventManager.addEventListener(r,"scroll",(e=>this.onTableScroll(e)),{passive:!0});const o=t.devicePixelRatio&&t.devicePixelRatio>1,i=this.scrollableElement===t,s=this.wtSettings.getSetting("preventWheel"),a={passive:i};let l;(s||o||!pa())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(e=>this.onCloneWheel(e,s)),a),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",(e=>this.onCloneWheel(e,s)),a)})),this.eventManager.addEventListener(t,"resize",(()=>{sa((()=>{clearTimeout(l),this.wtSettings.getSetting("onWindowResize"),l=setTimeout((()=>{yd(_d,this,0)}),200)}))})),i||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:n}=this.domBindings,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,s=o!==n&&i!==n&&!i.contains(o),a=r!==n&&i!==n&&!i.contains(r);if(this.keyPressed&&(s||a)||this.scrollableElement===n)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=Ma(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);const r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let n=this.scrollableElement.scrollLeft,r=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(n=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(r=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==n,this.verticalScrolling=this.lastScrollY!==r,this.lastScrollX=n,this.lastScrollY=r,this.horizontalScrolling){e.scrollLeft=n;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=n)}this.verticalScrolling&&(t.scrollTop=r),this.refreshAll()}syncScrollWithMaster(){if(!wd(Cd,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:n}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n),yd(Cd,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=Ji(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:n}=this.domBindings,r=this.scrollableElement===n,o=this.wtSettings.getSetting("totalColumns"),i=this.wtSettings.getSetting("totalRows"),s=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,i)+1,l=s+this.inlineStartOverlay.sumCellSizes(0,o),u=t.hider.style,c=(()=>!r&&this.scrollableElement.scrollTop>Math.max(0,a-t.holder.clientHeight))()?1:0,d=(()=>!r&&this.scrollableElement.scrollLeft>Math.max(0,l-t.holder.clientWidth))()?1:0;u.width=`${l+d}px`,u.height=`${a+c}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let n=null;return xs(t,(t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}syncOverlayTableClassNames(){const e=this.wtTable.TABLE;xs([this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],(t=>{t&&(t.clone.wtTable.TABLE.className=e.className)}))}};function kd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Rd{constructor(e){kd(this,"settings",{}),kd(this,"defaults",Object.freeze(this.getDefaults())),ta(this.defaults,((t,n)=>{if(void 0!==e[n])this.settings[n]=e[n];else{if(void 0===t)throw new Error(`A required setting "${n}" was not provided`);this.settings[n]=t}}))}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,n)=>{const r=this.getSetting("data",e,t);Bi(n,null==r?"":r)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0}}update(e,t){return void 0===t?ta(e,((e,t)=>{this.settings[t]=e})):this.settings[e]=t,this}getSetting(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}class Td extends wc{constructor(e,t,n,r){super(e,t,n,r,"master")}alignOverlaysWithTrimmingContainer(){const e=Qi(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t)this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible");else{const n=e.parentElement,r=Zi(e,"height",t),o=Zi(e,"overflow",t),i=this.holder.style,{scrollWidth:s,scrollHeight:a}=e;let l=e.offsetWidth,u=e.offsetHeight;if(n&&["auto","hidden","scroll"].includes(o)){const r=e.cloneNode(!1);r.style.overflow="auto",r.style.position="absolute",e.nextElementSibling?n.insertBefore(r,e.nextElementSibling):n.appendChild(r);const o=parseInt(t.getComputedStyle(r).height,10);n.removeChild(r),0===o&&(u=0)}u=Math.min(u,a),i.height="auto"===r?"auto":`${u}px`,l=Math.min(l,s),i.width=`${l}px`,i.overflow="",this.hasTableHeight="auto"===i.height||u>0,this.hasTableWidth=l>0}this.isTableVisible=$i(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,n="master",r=e.getSetting("columnHeaders").length;if(r&&!t.hasOversizedColumnHeadersMarked[n]){const o=e.getSetting("rowHeaders").length,i=this.getRenderedColumnsCount();for(let e=0;e<r;e++)for(let e=-1*o;e<i;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[n]=!0}}}Js(Td,rd),Js(Td,_c);const Ed=Td;function Ld(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Id{constructor(){Ld(this,"count",0),Ld(this,"startRow",0),Ld(this,"endRow",0),Ld(this,"startPosition",0),Ld(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:t}=e;this.count=t,this.endRow=this.count-1}process(){}finalize(){}}function Pd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o(8107),o(9738);class Dd{constructor(){Pd(this,"count",0),Pd(this,"startRow",null),Pd(this,"endRow",null),Pd(this,"startPosition",null),Pd(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:r,innerViewportHeight:o}=t;n<=r&&(this.startRow=e),n>=r&&n<=o&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:n,viewportHeight:r,horizontalScrollbarHeight:o,totalRows:i,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=r-o)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null,n+r-o<0||n>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function Hd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Od extends Dd{constructor(){super(...arguments),Hd(this,"rowStartOffset",0),Hd(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalRows:r,startPositions:o}=e;if(null!==this.startRow&&"function"==typeof n){const e=this.startRow,t=this.endRow;n(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=o[this.startRow])&&void 0!==t?t:null,r<this.endRow&&(this.endRow=r-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function Ad(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nd{constructor(){Ad(this,"count",0),Ad(this,"startRow",null),Ad(this,"endRow",null),Ad(this,"startPosition",null),Ad(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:n,zeroBasedScrollOffset:r,innerViewportHeight:o,rowHeight:i}=t;n>=r&&n+i<=o&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:n,viewportHeight:r,horizontalScrollbarHeight:o,totalRows:i,needReverse:s,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&s)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=r-o&&(this.startRow-=1),e>=r-o)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null,n+r-o<(null===this.startRow?0:e.getRowHeight(this.startRow))||n>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}function jd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Yd{constructor(){jd(this,"count",0),jd(this,"startColumn",0),jd(this,"endColumn",0),jd(this,"startPosition",0),jd(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}function Fd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class zd{constructor(){Fd(this,"count",0),Fd(this,"startColumn",null),Fd(this,"endColumn",null),Fd(this,"startPosition",null),Fd(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:n,zeroBasedScrollOffset:r,viewportWidth:o}=t;n<=r&&(this.startColumn=e),n>=r&&n<=r+(r>0?o+1:o)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:n,viewportWidth:r,inlineStartOffset:o,zeroBasedScrollOffset:i,totalColumns:s,needReverse:a,startPositions:l,columnWidth:u}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+u-l[this.startColumn-1];if(this.startColumn-=1,e>r)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null,n+r-(i>0?r+1:r)<-1*o||n>l.at(-1)+u||-1*n-r>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}function Wd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Vd extends zd{constructor(){super(...arguments),Wd(this,"columnStartOffset",0),Wd(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:n,totalColumns:r,startPositions:o}=e;if(null!==this.startColumn&&"function"==typeof n){const e=this.startColumn,t=this.endColumn;n(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=o[this.startColumn])&&void 0!==t?t:null,r<this.endColumn&&(this.endColumn=r-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}function Bd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class $d{constructor(){Bd(this,"count",0),Bd(this,"startColumn",null),Bd(this,"endColumn",null),Bd(this,"startPosition",null),Bd(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:n,zeroBasedScrollOffset:r,viewportWidth:o,columnWidth:i}=t;n>=r&&n+i<=r+(r>0?o+1:o)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:n,viewportWidth:r,inlineStartOffset:o,zeroBasedScrollOffset:i,totalColumns:s,needReverse:a,startPositions:l,columnWidth:u}=e;if(this.endColumn===s-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+u-l[this.startColumn-1];if(e<=r&&(this.startColumn-=1),e>=r)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const c=n+r-(i>0?r+1:r),d=null===this.startColumn?0:e.getColumnWidth(this.startColumn);c<-1*o||n>l.at(-1)||-1*n-r>-1*d?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endColumn&&(this.endColumn=s-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}function Ud(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Gd{constructor(e){Ud(this,"calculationTypes",[]),Ud(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach((t=>{let[n,r]=t;this.calculationResults.set(n,r),r.initialize(e)}))}_process(e,t){this.calculationTypes.forEach((n=>{let[,r]=n;return r.process(e,t)}))}_finalize(e){this.calculationTypes.forEach((t=>{let[,n]=t;return n.finalize(e)}))}getResultsFor(e){return this.calculationResults.get(e)}}function Kd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qd extends Gd{constructor(e){let{calculationTypes:t,viewportHeight:n,scrollOffset:r,totalRows:o,defaultRowHeight:i,rowHeightFn:s,overrideFn:a,horizontalScrollbarHeight:l}=e;super(t),Kd(this,"viewportHeight",0),Kd(this,"scrollOffset",0),Kd(this,"zeroBasedScrollOffset",0),Kd(this,"totalRows",0),Kd(this,"rowHeightFn",null),Kd(this,"rowHeight",0),Kd(this,"overrideFn",null),Kd(this,"horizontalScrollbarHeight",0),Kd(this,"innerViewportHeight",0),Kd(this,"totalCalculatedHeight",0),Kd(this,"startPositions",[]),Kd(this,"needReverse",!0),this.defaultHeight=i,this.viewportHeight=n,this.scrollOffset=r,this.zeroBasedScrollOffset=Math.max(r,0),this.totalRows=o,this.rowHeightFn=s,this.overrideFn=a,this.horizontalScrollbarHeight=null!=l?l:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}function Xd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jd=50;class Qd extends Gd{constructor(e){let{calculationTypes:t,viewportWidth:n,scrollOffset:r,totalColumns:o,columnWidthFn:i,overrideFn:s,inlineStartOffset:a}=e;super(t),Xd(this,"viewportWidth",0),Xd(this,"scrollOffset",0),Xd(this,"zeroBasedScrollOffset",0),Xd(this,"totalColumns",0),Xd(this,"columnWidthFn",null),Xd(this,"columnWidth",0),Xd(this,"overrideFn",null),Xd(this,"inlineStartOffset",0),Xd(this,"totalCalculatedWidth",0),Xd(this,"startPositions",[]),Xd(this,"needReverse",!0),this.viewportWidth=n,this.scrollOffset=r,this.zeroBasedScrollOffset=Math.max(r,0),this.totalColumns=o,this.columnWidthFn=i,this.overrideFn=s,this.inlineStartOffset=a,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?Jd:t}}const Zd=class{constructor(e,t,n,r,o){this.dataAccessObject=e,this.wot=e.wot,this.instance=this.wot,this.domBindings=t,this.wtSettings=n,this.wtTable=o,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.rowsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllRows")?new Id:new Od],["fullyVisible",()=>new Nd],["partiallyVisible",()=>new Dd]]),this.columnsCalculatorTypes=new Map([["rendered",()=>this.wtSettings.getSetting("renderAllColumns")?new Yd:new Vd],["fullyVisible",()=>new $d],["partiallyVisible",()=>new zd]]),this.eventManager=r,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(()=>{this.clientHeight=this.getWorkspaceHeight()}))}getWorkspaceHeight(){const e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer;let n=0;return n=t===this.domBindings.rootWindow?e.documentElement.clientHeight:ts(t)>0&&t.clientHeight>0?t.clientHeight:1/0,n}getViewportHeight(){let e=this.getWorkspaceHeight();if(e===1/0)return e;const t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}getWorkspaceWidth(){const{rootDocument:e,rootWindow:t}=this.domBindings,n=this.dataAccessObject.inlineStartOverlayTrimmingContainer;let r;if(n===t){const t=this.wtSettings.getSetting("totalColumns");r=this.wtTable.holder.offsetWidth,this.getRowHeaderWidth()+this.sumColumnWidths(0,t)>r&&(r=e.documentElement.clientWidth)}else r=n.clientWidth;return r}getViewportWidth(){const e=this.getWorkspaceWidth();if(e===1/0)return e;const t=this.getRowHeaderWidth();return t>0?e-t:e}hasVerticalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollHeight>e.clientHeight}const{holder:e,hider:t}=this.wtTable,n=e.clientHeight,r=t.offsetHeight;return n<r||r>this.getWorkspaceHeight()}hasHorizontalScroll(){if(this.isVerticallyScrollableByWindow()){const e=this.domBindings.rootDocument.documentElement;return e.scrollWidth>e.clientWidth}const{holder:e,hider:t}=this.wtTable,n=e.clientWidth,r=t.offsetWidth;return n<r||r>this.getWorkspaceWidth()}isVerticallyScrollableByWindow(){return this.dataAccessObject.topOverlayTrimmingContainer===this.domBindings.rootWindow}isHorizontallyScrollableByWindow(){return this.dataAccessObject.inlineStartOverlayTrimmingContainer===this.domBindings.rootWindow}sumColumnWidths(e,t){let n=0,r=e;for(;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}getWorkspaceOffset(){return Ui(this.wtTable.holder)}getColumnHeaderHeight(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=ts(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}getRowHeaderWidth(){const e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(let n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){let e=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(let n=0,r=t.length;n<r;n++)e?(this.rowHeaderWidth+=es(e),e=e.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}createRowsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:n}=this;let r,o,i=this.getViewportHeight();this.rowHeaderWidth=NaN;let s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset;const a=t.getSetting("fixedRowsTop"),l=t.getSetting("fixedRowsBottom"),u=t.getSetting("totalRows");return a&&s>=0&&(o=this.dataAccessObject.topOverlay.sumCellSizes(0,a),s+=o,i-=o),l&&this.dataAccessObject.bottomOverlay.clone&&(o=this.dataAccessObject.bottomOverlay.sumCellSizes(u-l,u),i-=o),r=n.holder.clientHeight===n.holder.offsetHeight?0:ls(this.domBindings.rootDocument),new qd({calculationTypes:e.map((e=>[e,this.rowsCalculatorTypes.get(e)()])),viewportHeight:i,scrollOffset:s,totalRows:t.getSetting("totalRows"),defaultRowHeight:this.instance.stylesHandler.getDefaultRowHeight(),rowHeightFn:e=>n.getRowHeight(e),overrideFn:t.getSettingPure("viewportRowCalculatorOverride"),horizontalScrollbarHeight:r})}createColumnsCalculator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["rendered","fullyVisible","partiallyVisible"];const{wtSettings:t,wtTable:n}=this;let r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;const i=t.getSetting("fixedColumnsStart");if(i&&o>=0){const e=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=e,r-=e}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=ls(this.domBindings.rootDocument)),new Qd({calculationTypes:e.map((e=>[e,this.columnsCalculatorTypes.get(e)()])),viewportWidth:r,scrollOffset:o,totalColumns:t.getSetting("totalColumns"),columnWidthFn:e=>n.getColumnWidth(e),overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}createCalculators(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,n=this.createRowsCalculator(),r=this.createColumnsCalculator();if(e&&!t.getSetting("renderAllRows")){const t=n.getResultsFor("fullyVisible");e=this.areAllProposedVisibleRowsAlreadyRendered(t)}if(e&&!t.getSetting("renderAllColumns")){const t=r.getResultsFor("fullyVisible");e=this.areAllProposedVisibleColumnsAlreadyRendered(t)}return e||(this.rowsRenderCalculator=n.getResultsFor("rendered"),this.columnsRenderCalculator=r.getResultsFor("rendered")),this.rowsVisibleCalculator=n.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=r.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=n.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=r.getResultsFor("partiallyVisible"),e}createVisibleCalculators(){const e=this.createRowsCalculator(["fullyVisible","partiallyVisible"]),t=this.createColumnsCalculator(["fullyVisible","partiallyVisible"]);this.rowsVisibleCalculator=e.getResultsFor("fullyVisible"),this.columnsVisibleCalculator=t.getResultsFor("fullyVisible"),this.rowsPartiallyVisibleCalculator=e.getResultsFor("partiallyVisible"),this.columnsPartiallyVisibleCalculator=t.getResultsFor("partiallyVisible")}areAllProposedVisibleRowsAlreadyRendered(e){if(!this.rowsVisibleCalculator)return!1;let{startRow:t,endRow:n}=e;if(null===t&&null===n){if(!e.isVisibleInTrimmingContainer)return!0;t=this.rowsPartiallyVisibleCalculator.startRow,n=this.rowsPartiallyVisibleCalculator.endRow}const{startRow:r,endRow:o,rowStartOffset:i,rowEndOffset:s}=this.rowsRenderCalculator,a=this.wtSettings.getSetting("totalRows")-1,l=this.wtSettings.getSetting("viewportRowRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(i,l)),n=Math.min(a,n+Math.min(s,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(i/2)),n=Math.min(a,n+Math.ceil(s/2))),!(t<r||t===r&&t>0||n>o||n===o&&n<a)}areAllProposedVisibleColumnsAlreadyRendered(e){if(!this.columnsVisibleCalculator)return!1;let{startColumn:t,endColumn:n}=e;if(null===t&&null===n){if(!e.isVisibleInTrimmingContainer)return!0;t=this.columnsPartiallyVisibleCalculator.startColumn,n=this.columnsPartiallyVisibleCalculator.endColumn}const{startColumn:r,endColumn:o,columnStartOffset:i,columnEndOffset:s}=this.columnsRenderCalculator,a=this.wtSettings.getSetting("totalColumns")-1,l=this.wtSettings.getSetting("viewportColumnRenderingThreshold");return Number.isInteger(l)&&l>0?(t=Math.max(0,t-Math.min(i,l)),n=Math.min(a,n+Math.min(s,l))):"auto"===l&&(t=Math.max(0,t-Math.ceil(i/2)),n=Math.min(a,n+Math.ceil(s/2))),!(t<r||t===r&&t>0||n>o||n===o&&n<a)}resetHasOversizedColumnHeadersMarked(){ta(this.hasOversizedColumnHeadersMarked,((e,t,n)=>{n[t]=void 0}))}};function eh(e,t,n){th(e,t),t.set(e,n)}function th(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nh(e,t){return e.get(oh(e,t))}function rh(e,t,n){return e.set(oh(e,t),n),n}function oh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}o(3514);var ih=new WeakMap,sh=new WeakMap,ah=new WeakSet;class lh{constructor(){var e;th(this,e=ah),e.add(this),eh(this,ih,void 0),eh(this,sh,void 0)}setActiveOverlay(e){return rh(sh,this,e),this}setActiveSelection(e){return rh(ih,this,e),this}scan(){const e=nh(ih,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e)))):"area"===e?this.scanCellsRange((e=>t.add(e))):"focus"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e))),this.scanCellsRange((e=>t.add(e)))):"fill"===e?this.scanCellsRange((e=>t.add(e))):"header"===e?(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanRowsInHeadersRange((e=>t.add(e)))):"row"===e?(this.scanRowsInHeadersRange((e=>t.add(e))),this.scanRowsInCellsRange((e=>t.add(e)))):"column"===e&&(this.scanColumnsInHeadersRange((e=>t.add(e))),this.scanColumnsInCellsRange((e=>t.add(e)))),t}scanColumnsInHeadersRange(e){const[t,n,r,o]=nh(ih,this).getCorners(),{wtTable:i}=nh(sh,this),s=i.getRenderedColumnsCount(),a=i.getColumnHeadersCount();let l=0;for(let u=-i.getRowHeadersCount();u<s;u++){const s=i.columnFilter.renderedToSource(u);if(!(s<n||s>o)){for(let u=-a;u<0;u++){if(u<t||u>r)continue;const c=u+a;let d=i.getColumnHeader(s,c);const h=nh(sh,this).getSetting("onBeforeHighlightingColumnHeader",s,c,{selectionType:nh(ih,this).settings.selectionType,columnCursor:l,selectionWidth:o-n+1});null!==h&&(h!==s&&(d=i.getColumnHeader(h,c)),e(d))}l+=1}}}scanRowsInHeadersRange(e){const[t,n,r,o]=nh(ih,this).getCorners(),{wtTable:i}=nh(sh,this),s=i.getRenderedRowsCount(),a=i.getRowHeadersCount();let l=0;for(let u=-i.getColumnHeadersCount();u<s;u++){const s=i.rowFilter.renderedToSource(u);if(!(s<t||s>r)){for(let u=-a;u<0;u++){if(u<n||u>o)continue;const c=u+a;let d=i.getRowHeader(s,c);const h=nh(sh,this).getSetting("onBeforeHighlightingRowHeader",s,c,{selectionType:nh(ih,this).settings.selectionType,rowCursor:l,selectionHeight:r-t+1});null!==h&&(h!==s&&(d=i.getRowHeader(h,c)),e(d))}l+=1}}}scanCellsRange(e){const{wtTable:t}=nh(sh,this);oh(ah,this,uh).call(this,((n,r)=>{const o=t.getCell(nh(sh,this).createCellCoords(n,r)),i=nh(sh,this).getSetting("onAfterDrawSelection",n,r,nh(ih,this).settings.layerLevel);"string"==typeof i&&Ai(o,i),e(o)}))}scanRowsInCellsRange(e){const[t,,n]=nh(ih,this).getCorners(),{wtTable:r}=nh(sh,this);oh(ah,this,ch).call(this,((o,i)=>{if(o>=t&&o<=n){const t=r.getCell(nh(sh,this).createCellCoords(o,i));e(t)}}))}scanColumnsInCellsRange(e){const[,t,,n]=nh(ih,this).getCorners(),{wtTable:r}=nh(sh,this);oh(ah,this,ch).call(this,((o,i)=>{if(i>=t&&i<=n){const t=r.getCell(nh(sh,this).createCellCoords(o,i));e(t)}}))}}function uh(e){let[t,n,r,o]=nh(ih,this).getCorners();if(t<0&&r<0||n<0&&o<0)return;const{wtTable:i}=nh(sh,this),s=t!==r||n!==o;if(n=Math.max(n,0),o=Math.max(o,0),t=Math.max(t,0),r=Math.max(r,0),s){if(n=Math.max(n,i.getFirstRenderedColumn()),o=Math.min(o,i.getLastRenderedColumn()),t=Math.max(t,i.getFirstRenderedRow()),r=Math.min(r,i.getLastRenderedRow()),o<n||r<t)return}else if(!ys(i.getCell(nh(sh,this).createCellCoords(t,n))))return;for(let i=t;i<=r;i+=1)for(let t=n;t<=o;t+=1)e(i,t)}function ch(e){const{wtTable:t}=nh(sh,this),n=t.getRenderedRowsCount(),r=t.getRenderedColumnsCount();for(let o=0;o<n;o+=1){const n=t.rowFilter.renderedToSource(o);for(let o=0;o<r;o+=1)e(n,t.columnFilter.renderedToSource(o))}}const dh=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle=qc(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",(()=>this.onMouseDown())),this.eventManager.addEventListener(e,"mouseup",(()=>this.onMouseUp()));for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",(t=>this.onMouseEnter(t,this.main.childNodes[e])))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),xa(e);const n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var s;((s=i).clientY<Math.floor(o.top)||s.clientY>Math.ceil(o.top+o.height)||s.clientX<Math.floor(o.left)||s.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const n=["top","start","bottom","end","corner"];let r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(let o=0;o<5;o++){const i=n[o],s=t.createElement("div");s.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(s.className+=" hidden"),r=s.style,r.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,r.width=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,this.main.appendChild(s)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=`${this.cornerDefaultStyle.width}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),ga()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:o}=this.wot;let i=o.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",o.bordersHolder=i,o.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,stylesHandler:t}=this.wot,n=t.getCSSVariableValue("cell-mobile-handle-size"),r=t.getCSSVariableValue("cell-mobile-handle-border-radius"),o=t.getCSSVariableValue("cell-mobile-handle-background-color"),i=t.getCSSVariableValue("cell-mobile-handle-border-width"),s=t.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.createElement("DIV")},this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style},ta({position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`},((e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e})),ta(t.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${r}px`,background:`${o}`,border:`${i}px solid ${s}`},((e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const n=this.wot.selectionManager.getAreaSelection();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,n,r,o,i){const s=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:u,bottomHitArea:c}=this.selectionHandles.styles,d=parseInt(a.borderWidth,10),h=parseInt(a.width,10),p=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();a.top=`${parseInt(n-h-1,10)}px`,a[s]=`${parseInt(r-h-1,10)}px`,l.top=`${parseInt(n-p/4*3,10)}px`,l[s]=`${parseInt(r-p/4*3,10)}px`;const g=Math.min(parseInt(r+o,10),f-h-2*d),b=Math.min(parseInt(r+o-p/4,10),f-p-2*d);u[s]=`${g}px`,c[s]=`${b}px`;const y=Math.min(parseInt(n+i,10),m-h-2*d),w=Math.min(parseInt(n+i-p/4,10),m-p-2*d);u.top=`${y}px`,c.top=`${w}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(u.display="none",c.display="none"):(u.display="block",c.display="block")):(a.display="none",u.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,n,r,o]=e;if(t<0&&r<0||n<0&&o<0)return void this.disappear();const{wtTable:i,rootDocument:s,rootWindow:a}=this.wot,l=t!==r||n!==o,u=i.getFirstRenderedRow(),c=i.getLastRenderedRow(),d=i.getFirstRenderedColumn(),h=i.getLastRenderedColumn();if(d<0&&h<0||u<0&&c<0)return void this.disappear();let p;if(l){if(n=Math.max(n,d),o=Math.min(o,h),t=Math.max(t,u),r=Math.min(r,c),o<n||r<t)return void this.disappear();p=i.getCell(this.wot.createCellCoords(t,n))}else if(p=i.getCell(this.wot.createCellCoords(t,n)),!ys(p))return void this.disappear();const f=l?i.getCell(this.wot.createCellCoords(r,o)):p,m=Ui(p),g=l?Ui(f):m,b=Ui(i.TABLE),y=m.top,w=m.left,v=this.wot.wtSettings.getSetting("rtlMode");let S=0,C=0;if(v){const e=es(i.TABLE),t=es(p),n=a.innerWidth-b.left-e;C=w+t-g.left,S=a.innerWidth-w-t-n-1}else C=g.left+es(f)-w,S=w-b.left-1;if(this.isEntireColumnSelected(t,r)){const e=t,r=this.getDimensionsFromHeader("columns",n,o,e,b);let i=null;r&&([i,S,C]=r),i&&(p=i)}let _=y-b.top-1,M=g.top+ts(f)-y;if(this.isEntireRowSelected(n,o)){const e=n,o=this.getDimensionsFromHeader("rows",t,r,e,b);let i=null;o&&([i,_,M]=o),i&&(p=i)}const x=a.getComputedStyle(p);parseInt(x.borderTopWidth,10)>0&&(_+=1,M=M>0?M-1:0),parseInt(x[v?"borderRightWidth":"borderLeftWidth"],10)>0&&(S+=1,C=C>0?C-1:0);const k=v?"right":"left";this.topStyle.top=`${_}px`,this.topStyle[k]=`${S}px`,this.topStyle.width=`${C}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[k]=`${S}px`,this.startStyle.height=`${M}px`,this.startStyle.display="block";const R=Math.floor(this.settings.border.width/2);this.bottomStyle.top=_+M-R+"px",this.bottomStyle[k]=`${S}px`,this.bottomStyle.width=`${C}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[k]=S+C-R+"px",this.endStyle.height=`${M+1}px`,this.endStyle.display="block";let T=this.settings.border.cornerVisible;T="function"==typeof T?T(this.settings.layerLevel):T;const E=this.wot.getSetting("onModifyGetCellCoords",r,o,!1,"render");let[L,I]=[r,o];if(E&&Array.isArray(E)&&([,,L,I]=E),ga()||!T||this.isPartRange(L,I))this.cornerStyle.display="none";else{this.cornerStyle.top=_+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[k]=S+C+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=Qi(i.TABLE);const t=e===a;t&&(e=s.documentElement);const n=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,l=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),u=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(o===this.wot.getSetting("totalColumns")-1){const r=t?f.getBoundingClientRect().left:f.offsetLeft;let o=!1,i=0;v?(i=r-parseInt(this.cornerDefaultStyle.width,10)/2,o=i<0):(i=r+es(f)+parseInt(this.cornerDefaultStyle.width,10)/2,o=i>=rs(e)),o&&(this.cornerStyle[k]=`${Math.floor(S+C+this.cornerCenterPointOffset-l-n)}px`,this.cornerStyle[v?"borderLeftWidth":"borderRightWidth"]=0)}if(r===this.wot.getSetting("totalRows")-1){const r=(t?f.getBoundingClientRect().top:f.offsetTop)+ts(f)+parseInt(this.cornerDefaultStyle.height,10)/2>=ns(e),o=this.wot.stylesHandler.isClassicTheme();if(r){const e=Math.floor(_+M+this.cornerCenterPointOffset-u-n);o?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}ga()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(r,o,_,S,C,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,n,r,o){const{wtTable:i}=this.wot,s=i.wtRootElement.parentNode;let a=null,l=null,u=null,c=null,d=null,h=null,p=null,f=null;switch(e){case"rows":a=function(){return i.getRowHeader(...arguments)},l=function(){return ts(...arguments)},u="ht__selection--rows",h="top";break;case"columns":a=function(){return i.getColumnHeader(...arguments)},l=function(){return es(...arguments)},u="ht__selection--columns",h="left"}if(s.classList.contains(u)){const e=this.wot.getSetting("columnHeaders").length;if(p=a(t,e-r),f=a(n,e-r),!p||!f)return!1;const i=Ui(p),s=Ui(f);return p&&f&&(c=i[h]-o[h]-1,d=s[h]+l(f)-i[h]),[p,c,d]}return!1}changeBorderStyle(e,t){const n=this[e].style,r=t[e];!r||r.hide?Ai(this[e],"hidden"):(Oi(this[e],"hidden")&&Ni(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height=`${r.width}px`),"start"!==e&&"end"!==e||(n.width=`${r.width}px`))}changeBorderToDefaultStyle(e){const t=this[e].style;t.backgroundColor="#000",t.width="1px",t.height="1px"}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?Ai(this[e],"hidden"):Ni(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",ga()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}};function hh(e,t,n){ph(e,t),t.set(e,n)}function ph(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fh(e,t){return e.get(gh(e,t))}function mh(e,t,n){return e.set(gh(e,t),n),n}function gh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var bh=new WeakMap,yh=new WeakMap,wh=new WeakMap,vh=new WeakMap,Sh=new WeakMap,Ch=new WeakMap,_h=new WeakSet;class Mh{constructor(e){var t;ph(this,t=_h),t.add(this),hh(this,bh,void 0),hh(this,yh,void 0),hh(this,wh,new lh),hh(this,vh,new WeakMap),hh(this,Sh,new WeakSet),hh(this,Ch,new Map),mh(yh,this,e)}setActiveOverlay(e){return mh(bh,this,e),fh(wh,this).setActiveOverlay(fh(bh,this)),fh(vh,this).has(fh(bh,this))||fh(vh,this).set(fh(bh,this),new Set),this}getFocusSelection(){return null!==fh(yh,this)?fh(yh,this).getFocus():null}getAreaSelection(){return null!==fh(yh,this)?fh(yh,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(fh(Ch,this).has(e)){const t=fh(Ch,this).get(e);if(t.has(fh(bh,this)))return t.get(fh(bh,this));const n=new dh(fh(bh,this),e.settings);return t.set(fh(bh,this),n),n}const t=new dh(fh(bh,this),e.settings);return fh(Ch,this).set(e,new Map([[fh(bh,this),t]])),t}getBorderInstances(e){var t,n;return Array.from(null!==(t=null===(n=fh(Ch,this).get(e))||void 0===n?void 0:n.values())&&void 0!==t?t:[])}destroyBorders(e){fh(Ch,this).get(e).forEach((e=>e.destroy())),fh(Ch,this).delete(e)}render(e){if(null===fh(yh,this))return;e&&gh(_h,this,xh).call(this);const t=Array.from(fh(yh,this)),n=new Map,r=new Map;for(let e=0;e<t.length;e++){const o=t[e],{className:i,headerAttributes:s,createLayers:a,selectionType:l}=o.settings;fh(Sh,this).has(o)||(fh(Sh,this).add(o),o.addLocalHook("destroy",(()=>this.destroyBorders(o))));const u=this.getBorderInstance(o);if(o.isEmpty()){null==u||u.disappear();continue}i&&fh(wh,this).setActiveSelection(o).scan().forEach((e=>{if(n.has(e)){const t=n.get(e);t.has(i)&&!0===a?t.set(i,t.get(i)+1):t.set(i,1)}else n.set(e,new Map([[i,1]]));s&&(r.has(e)||r.set(e,[]),"TH"===e.nodeName&&r.get(e).push(...s))}));const c=o.getCorners();fh(bh,this).getSetting("onBeforeDrawBorders",c,l),null==u||u.appear(c)}n.forEach(((e,t)=>{var n;const r=Array.from(e).map((e=>{let[t,n]=e;return 1===n?t:[t,...Array.from({length:n-1},((e,n)=>`${t}-${n+1}`))]})).flat();r.forEach((e=>fh(vh,this).get(fh(bh,this)).add(e))),Ai(t,r),"TD"===t.nodeName&&Array.isArray(null===(n=fh(yh,this).options)||void 0===n?void 0:n.cellAttributes)&&ji(t,fh(yh,this).options.cellAttributes)})),Array.from(r.keys()).forEach((e=>{ji(e,[...r.get(e)])}))}}function xh(){const e=fh(vh,this).get(fh(bh,this)),t=fh(bh,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let n=0;n<t.length;n++)e.add(t[n]);e.forEach((e=>{var t,n;const r=fh(bh,this).wtTable.TABLE.querySelectorAll(`.${e}`);let o=[];Array.isArray(null===(t=fh(yh,this).options)||void 0===t?void 0:t.cellAttributes)&&(o=fh(yh,this).options.cellAttributes.map((e=>e[0]))),Array.isArray(null===(n=fh(yh,this).options)||void 0===n?void 0:n.headerAttributes)&&(o=[...o,...fh(yh,this).options.headerAttributes.map((e=>e[0]))]);for(let t=0,n=r.length;t<n;t++)Ni(r[t],e),Yi(r[t],o)})),e.clear()}function kh(e,t,n){Rh(e,t),t.set(e,n)}function Rh(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Th(e,t){return e.get(Lh(e,t))}function Eh(e,t,n){return e.set(Lh(e,t),n),n}function Lh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Ih=new WeakMap,Ph=new WeakMap,Dh=new WeakMap,Hh=new WeakMap,Oh=new WeakMap,Ah=new WeakMap,Nh=new WeakMap,jh=new WeakSet;class Yh{constructor(e){var t;Rh(this,t=jh),t.add(this),kh(this,Ih,void 0),kh(this,Ph,void 0),kh(this,Dh,void 0),kh(this,Hh,void 0),kh(this,Oh,!0),kh(this,Ah,{}),kh(this,Nh,{}),Eh(Ph,this,e.rootTable.parentElement.parentElement),Eh(Hh,this,e.rootDocument)}isClassicTheme(){return Th(Oh,this)}getCSSVariableValue(e){var t;if(Th(Oh,this))return null;if(Th(Ah,this)[`--ht-${e}`])return Th(Ah,this)[`--ht-${e}`];const n=null!==(t=Lh(jh,this,Bh).call(this,`--ht-${e}`))&&void 0!==t?t:Lh(jh,this,$h).call(this,`--ht-${e}`);return null!==n?(Th(Ah,this)[`--ht-${e}`]=n,n):void 0}getStyleForTD(e){var t;return null===(t=Th(Nh,this))||void 0===t?void 0:t.td[e]}getDefaultRowHeight(){if(Th(Oh,this))return 23;const e=Lh(jh,this,Fh).call(this);return!e&&Oi(Th(Ph,this),"ht-wrapper")?(Ea(`The "${Th(Ih,this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`),Eh(Oh,this,!0),this.useTheme(),23):e}areCellsBorderBox(){return"border-box"===this.getStyleForTD("box-sizing")}useTheme(e){if(!e)return Lh(jh,this,Wh).call(this),Eh(Oh,this,!0),void Eh(Ih,this,e||void 0);e&&e!==Th(Ih,this)&&(Th(Ih,this)&&Lh(jh,this,Uh).call(this),Eh(Ih,this,e),Eh(Oh,this,!1),Lh(jh,this,zh).call(this),Lh(jh,this,Wh).call(this))}getThemeName(){return Th(Ih,this)}removeClassNames(){Oi(Th(Ph,this),Th(Ih,this))&&Ni(Th(Ph,this),Th(Ih,this))}}function Fh(){const e=this.getCSSVariableValue("line-height"),t=this.getCSSVariableValue("cell-vertical-padding"),n=Math.ceil(parseFloat(this.getStyleForTD("border-bottom-width")));return null===e||null===t||isNaN(n)?null:e+2*t+n}function zh(){Ni(Th(Ph,this),/ht-theme-.*/g),Ai(Th(Ph,this),Th(Ih,this))}function Wh(){this.isClassicTheme()||Eh(Dh,this,getComputedStyle(Th(Ph,this)));const e=Lh(jh,this,Vh).call(this,["box-sizing","border-bottom-width"]);Th(Nh,this).td={...Th(Nh,this).td,"box-sizing":e["box-sizing"],"border-bottom-width":e["border-bottom-width"]}}function Vh(e){const t=Th(Hh,this),n=Th(Ph,this),r=t.createElement("table"),o=t.createElement("tbody"),i=t.createElement("tr"),s=t.createElement("tr"),a=t.createElement("td");s.appendChild(a),o.appendChild(i),o.appendChild(s),r.appendChild(o),n.appendChild(r);const l=getComputedStyle(a),u={};return e.forEach((e=>{u[e]=l.getPropertyValue(e)})),n.removeChild(r),u}function Bh(e){const t=Math.ceil(parseFloat(Lh(jh,this,$h).call(this,e)));return Number.isNaN(t)?null:t}function $h(e){const t=Th(Dh,this).getPropertyValue(e);return""===t?null:t}function Uh(){Eh(Nh,this,{}),Eh(Ah,this,{}),Eh(Oh,this,!0)}class Gh extends $c{constructor(e,t){super(e,new Rd(t)),this.stylesHandler=new Yh(this.domBindings);const n=this.wtSettings.getSetting("facade",this);this.wtTable=new Ed(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=new Zd(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new Mh(this.wtSettings.getSetting("selections")),this.wtEvent=new Eu(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new xd(this,n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];ta({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},((n,r)=>{this.wtSettings.getSetting(r).length&&t.push(n),e.push(n)})),Ni(this.wtTable.wtRootElement.parentNode,e),Ai(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!gc.includes(e))return null;const n=e.replace(/_([a-z])/g,(e=>e[1].toUpperCase()));return null!==(t=this.wtOverlays[`${n}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}class Kh{constructor(e){e instanceof $c?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new Kh(e);return()=>t},this._wot=new Gh(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}get stylesHandler(){return this._wot.stylesHandler}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,n){return this._wot.createCellRange(e,t,n)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,n){return this._wot.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}function qh(e){let{isShiftKey:t,isLeftClick:n,isRightClick:r,coords:o,selection:i,controller:s,cellCoordsFactory:a}=e;const l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(i.markSource("mouse"),t&&l)o.row>=0&&o.col>=0&&!s.cell?i.setRangeEnd(o):(u||c)&&o.row>=0&&o.col>=0&&!s.cell?i.setRangeEnd(a(o.row,o.col)):u&&o.row<0&&!s.column?i.setRangeEnd(a(l.to.row,o.col)):c&&o.col<0&&!s.row?i.setRangeEnd(a(o.row,l.to.col)):(!u&&!c&&o.col<0||u&&o.col<0)&&!s.row?i.selectRows(Math.max(l.from.row,0),o.row,o.col):(!u&&!c&&o.row<0||c&&o.row<0)&&!s.column&&i.selectColumns(Math.max(l.from.col,0),o.col,o.row);else{const e=!i.inInSelection(o),t=n||r&&e;o.row<0&&o.col>=0&&!s.column?t&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!s.row?t&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!s.cell?t&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0,{disableHeadersHighlight:!0,focusPosition:{row:0,col:0}})}i.markEndSource()}const Xh=new Map([["mousedown",qh],["mouseover",function(e){let{isLeftClick:t,coords:n,selection:r,controller:o,cellCoordsFactory:i}=e;if(!t)return;const s=r.isSelectedByRowHeader(),a=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();r.markSource("mouse"),a&&!o.column?r.setRangeEnd(i(u-1,n.col)):s&&!o.row?r.setRangeEnd(i(n.row,l-1)):o.cell||r.setRangeEnd(n),r.markEndSource()}],["touchstart",qh]]);function Jh(e,t){let{coords:n,selection:r,controller:o,cellCoordsFactory:i}=t;Xh.get(e.type)({coords:n,selection:r,controller:o,cellCoordsFactory:i,isShiftKey:e.shiftKey,isLeftClick:Ta(e)||"touchstart"===e.type,isRightClick:Ra(e)})}const Qh=new WeakMap,Zh=Symbol("rootInstance");function ep(e){return e===Zh}function tp(e){return Qh.has(e)}function np(e,t,n){rp(e,t),t.set(e,n)}function rp(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function op(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ip(e,t){return e.get(ap(e,t))}function sp(e,t,n){return e.set(ap(e,t),n),n}function ap(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var lp=new WeakMap,up=new WeakMap,cp=new WeakMap,dp=new WeakMap,hp=new WeakMap,pp=new WeakMap,fp=new WeakMap,mp=new WeakMap,gp=new WeakSet;function bp(){return parseInt(this.hot.rootElement.getAttribute(wi()[0]),10)}function yp(e){const t=ap(gp,this,bp).call(this)+e;ji(this.hot.rootElement,...wi(t))}function wp(){const e=this.hot.rootElement;this.hasVerticalScroll()?Ai(e,"htHasScrollY"):Ni(e,"htHasScrollY"),this.hasHorizontalScroll()?Ai(e,"htHasScrollX"):Ni(e,"htHasScrollX")}const vp=class{constructor(e){var t;rp(this,t=gp),t.add(this),op(this,"hot",void 0),op(this,"eventManager",void 0),op(this,"settings",void 0),op(this,"THEAD",void 0),op(this,"TBODY",void 0),op(this,"_wt",void 0),op(this,"activeWt",void 0),np(this,lp,0),np(this,up,0),op(this,"postponedAdjustElementsSize",!1),np(this,cp,!1),np(this,dp,void 0),np(this,hp,void 0),np(this,pp,0),np(this,fp,0),np(this,mp,null),this.hot=e,this.eventManager=new al(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!e),ap(gp,this,wp).call(this),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}getCellAtCoords(e,t){const n=this._wt.getCell(e,t);return n<0?null:n}scrollViewport(e,t,n){return this._wt.scrollViewport(e,t,n)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,n=e.getAttribute("style");n&&e.setAttribute("data-originalstyle",n),Ai(e,"handsontable"),sp(hp,this,t.createElement("TABLE")),Ai(ip(hp,this),"htCore"),this.hot.getSettings().tableClassName&&Ai(ip(hp,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&(ji(ip(hp,this),[["role","presentation"]]),ji(e,[["role","treegrid"],yi(-1),wi(this.hot.countCols()),["aria-multiselectable","true"]])),this.THEAD=t.createElement("THEAD"),ip(hp,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),ip(hp,this).appendChild(this.TBODY),this.hot.table=ip(hp,this),this.hot.container.insertBefore(ip(hp,this),this.hot.container.firstChild)}registerEvents(){const{rootElement:e,rootDocument:t,selection:n,rootWindow:r}=this.hot,o=t.documentElement;this.eventManager.addEventListener(e,"mousedown",(e=>{sp(cp,this,!0),this.isTextSelectionAllowed(e.target)||(is(r),e.preventDefault(),r.focus())})),this.eventManager.addEventListener(e,"mouseup",(()=>{sp(cp,this,!1)})),this.eventManager.addEventListener(e,"mousemove",(e=>{ip(cp,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&is(r),e.preventDefault())})),this.eventManager.addEventListener(o,"keyup",(e=>{n.isInProgress()&&!e.shiftKey&&n.finish()})),this.eventManager.addEventListener(o,"mouseup",(r=>{n.isInProgress()&&Ta(r)&&n.finish(),sp(dp,this,!1);const o=fs(t.activeElement);ps(t.activeElement)&&!o||!o&&(n.isSelected()||n.isSelectedByAnyHeader()||e.contains(r.target)||Ra(r))||this.hot.unlisten()})),this.eventManager.addEventListener(o,"contextmenu",(e=>{n.isInProgress()&&Ra(e)&&(n.finish(),sp(dp,this,!1))})),this.eventManager.addEventListener(o,"touchend",(()=>{n.isInProgress()&&n.finish(),sp(dp,this,!1)})),this.eventManager.addEventListener(o,"mousedown",(n=>{const r=n.target,i=n.x||n.clientX,s=n.y||n.clientY;let a=n.target;if(ip(dp,this)||!e||!this.hot.view)return;const{holder:l}=this._wt.wtTable;if(a===l){const e=ls(t);if(t.elementFromPoint(i+e,s)!==l||t.elementFromPoint(i,s+e)!==l)return}else for(;a!==o;){if(null===a){if(n.isTargetWebComponent)break;return}if(a===e)return;a=a.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(r):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)}));let i=Ti(r);for(;null!==i;)this.eventManager.addEventListener(i.document.documentElement,"click",(()=>{this.hot.unlisten()})),i=Ti(i);this.eventManager.addEventListener(ip(hp,this),"selectstart",(e=>{this.settings.fragmentSelection||ps(e.target)||e.preventDefault()}))}translateFromRenderableToVisualCoords(e){let{row:t,col:n}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,n))}translateFromRenderableToVisualIndex(e,t){let n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}countRenderableIndexes(e,t){const n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,n,r){if(isNaN(e)||e<0)return 0;const o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;let s=0;return t<0?s=i+1:t>0&&(s=r-i),s}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let n=0;for(let r=e;r<=t;r++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(r)&&(n+=1);return n}countRenderableRowsInRange(e,t){let n=0;for(let r=e;r<=t;r++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(r)&&(n+=1);return n}getStylesHandler(){return this._wt.stylesHandler}getDefaultRowHeight(){return this._wt.stylesHandler.getDefaultRowHeight()}addClassNameToLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&Ai(n,e)}removeClassNameFromLicenseElement(e){var t;const n=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");n&&Ni(n,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:ip(hp,this),isDataViewInstance:()=>tp(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push(((e,t)=>{const n=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(n,t)})),this.hot.runHooks("afterGetRowHeaderRenderers",e),sp(up,this,e.length),this.hot.getSettings().ariaTags&&ap(gp,this,bp).call(this)===this.hot.countCols()&&ap(gp,this,yp).call(this,ip(up,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push(((e,t)=>{const n=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(n,t)})),this.hot.runHooks("afterGetColumnHeaderRenderers",e),sp(lp,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const n=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),r=null===n?e:n;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(r),r,t)},cellRenderer:(e,t,n)=>{const[r,o]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",r,o,!1,"meta");let s=r,a=o;Array.isArray(i)&&([s,a]=i);const l=this.hot.getCellMeta(s,a),u=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(s,u);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l)),this.hot.runHooks("beforeRenderer",n,r,o,u,c,l),this.hot.getCellRenderer(l)(this.hot,n,r,o,u,c,l),this.hot.runHooks("afterRenderer",n,r,o,u,c,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&$i(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,n,r)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=r,sp(dp,this,!0),sp(mp,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,o,n,i),ka(e)||(Jh(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,o,n),this.activeWt=this._wt)},onCellContextMenu:(e,t,n,r)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,sp(dp,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,o,n),ka(e)||(this.hot.runHooks("afterOnCellContextMenu",e,o,n),this.activeWt=this._wt)},onCellMouseOut:(e,t,n,r)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,this.hot.runHooks("beforeOnCellMouseOut",e,o,n),ka(e)||(this.hot.runHooks("afterOnCellMouseOut",e,o,n),this.activeWt=this._wt)},onCellMouseOver:(e,t,n,r)=>{const o=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=r,this.hot.runHooks("beforeOnCellMouseOver",e,o,n,i),ka(e)||(!ip(dp,this)||ip(mp,this)&&ip(mp,this).x===e.clientX&&ip(mp,this).y===e.clientY||Jh(e,{coords:o,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,o,n),this.activeWt=this._wt,sp(mp,this,null))},onCellMouseUp:(e,t,n,r)=>{const o=this.translateFromRenderableToVisualCoords(t);this.activeWt=r,this.hot.runHooks("beforeOnCellMouseUp",e,o,n),ka(e)||this.hot.isDestroyed||(this.hot.runHooks("afterOnCellMouseUp",e,o,n),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const n=this.hot.rowIndexMapper,r=e<0;let o=e;return r||(o=n.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollVertically",o,t),this.hot.runHooks("beforeViewportScroll"),r?o:n.getRenderableFromVisualIndex(o)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const n=this.hot.columnIndexMapper,r=e<0;let o=e;return r||(o=n.getVisualFromRenderableIndex(e),null!==o)?(o=this.hot.runHooks("beforeViewportScrollHorizontally",o,t),this.hot.runHooks("beforeViewportScroll"),r?o:n.getRenderableFromVisualIndex(o)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,n)=>{const r=this.hot.rowIndexMapper,o=e<0;let i=e;o||(i=r.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingRowHeader",i,t,n);return o?s:r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(s,1))},onBeforeHighlightingColumnHeader:(e,t,n)=>{const r=this.hot.columnIndexMapper,o=e<0;let i=e;o||(i=r.getVisualFromRenderableIndex(e));const s=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,n);return o?s:r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(s,1))},onAfterDrawSelection:(e,t,n)=>{let r;const[o,i]=this.translateFromRenderableToVisualIndex(e,t),s=this.hot.selection.getSelectedRange();if(s.size()>0){const e=s.peekByIndex(null!=n?n:0);r=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",o,i,r,n)},onBeforeDrawBorders:(e,t)=>{const[n,r,o,i]=e,s=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(n),this.hot.columnIndexMapper.getVisualFromRenderableIndex(r),this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",s,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,n,r)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?o.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,s,n,r);if(Array.isArray(l)){const[e,t,n,r]=l;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,n>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n,-1)):n,r>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,-1)):r]}},onModifyGetCoordsElement:(e,t)=>{const n=this.hot.rowIndexMapper,r=this.hot.columnIndexMapper,o=t>=0?r.getVisualFromRenderableIndex(t):t,i=e>=0?n.getVisualFromRenderableIndex(e):e,s=this.hot.runHooks("modifyGetCoordsElement",i,o);if(Array.isArray(s)){const[e,t]=s;return[e>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(e,1)):e,t>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const n=this.countRenderableRows(),r=e.startRow,o=e.endRow;if("number"==typeof t)e.startRow=Math.max(r-t,0),e.endRow=Math.min(o+t,n-1);else if("auto"===t){const t=Math.max(1,Math.ceil(o/n*12));e.startRow=Math.max(r-t,0),e.endRow=Math.min(o+t,n-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const n=this.countRenderableColumns(),r=e.startColumn,o=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(r-t,0),e.endColumn=Math.min(o+t,n-1)),"auto"===t){const t=Math.max(1,Math.ceil(o/n*6));e.startColumn=Math.max(r-t,0),e.endColumn=Math.min(o+t,n-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e}};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new Kh(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:n,height:r}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(n,r),this.eventManager.addEventListener(t,"mousedown",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(t,"contextmenu",(e=>{e.target===t&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",(()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()}))}isTextSelectionAllowed(e){if(ps(e))return!0;const t=Ii(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())}isMouseDown(){return ip(dp,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const n=t.firstChild;if(!Oi(n,"relative"))return zi(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:n,getRowHeader:r}=this.hot,o=n.createElement("div"),i=n.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,r),o.appendChild(i),t.appendChild(o)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const i=t.firstChild;Oi(i,"relative")?(this.updateCellHeader(i.querySelector(".colHeader"),e,n,r),i.className="",Ai(i,["relative",...o()])):(zi(t),this.appendColHeader(e,t,n,r))}else{const{rootDocument:i}=this.hot,s=i.createElement("div"),a=i.createElement("span"),l=o();s.classList.add("relative",...l),a.className="colHeader",this.settings.ariaTags&&(ji(s,"role","presentation"),ji(a,"role","presentation")),this.updateCellHeader(a,e,n,r),s.appendChild(a),t.appendChild(s)}this.hot.runHooks("afterGetColHeader",e,t,r)}updateCellHeader(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t;const i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&(Oi(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):Oi(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?Vi(e,n(t,r)):(Bi(e,String.fromCharCode(160)),Ai(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){sp(pp,this,e),sp(fp,this,t)}getLastSize(){return{width:ip(pp,this),height:ip(fp,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return ip(lp,this)}getRowHeadersCount(){return ip(up,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}};function Sp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;const r=[];return Array.isArray(e)&&Array.isArray(e[0])||(n=[e]),n.forEach(((e,n)=>{Array.isArray(e)?e.forEach(((e,o)=>{r.push([n+t,o,e])})):Object.keys(e).forEach((o=>{r.push([n+t,o,e[o]])}))})),r}function Cp(e){let t=0;return Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&Zs(e[0])&&(t=ra(e[0]))),t}function _p(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}o(3215);const Mp=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];_p(this,"hot",void 0),_p(this,"data",void 0),_p(this,"dataType","array"),_p(this,"colToProp",(()=>{})),_p(this,"propToCol",(()=>{})),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return xs(this.data,((n,r)=>{const o=this.getAtCell(r,e);t.push(o)})),t}getAtRow(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=void 0===t&&void 0===n,{dataDotNotation:i}=this.hot.getSettings();let s=null,a=null;if(s=this.modifyRowData(e),Array.isArray(s))a=[],o?s.forEach(((t,n)=>{a[n]=this.getAtPhysicalCell(e,n,s)})):jl(t,n,(n=>{a[n-t]=this.getAtPhysicalCell(e,n,s)}));else if(Zs(s)||Ws(s))if(a=r?[]:{},!o||r){const o=0,l=this.countFirstRowKeys()-1;jl(o,l,(u=>{const c=this.colToProp(u);if(u>=(t||o)&&u<=(n||l)&&!Number.isInteger(c)){const t=this.getAtPhysicalCell(e,c,s);r?a.push(t):i?na(a,c,t):a[c]=t}}))}else ta(s,((t,n)=>{const r=this.getAtPhysicalCell(e,n,s);i?na(a,n,r):a[n]=r}));return a}setAtCell(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const r=oa(n);this.hot.runHooks("modifySourceData",e,t,r,"set"),r.isTouched()&&(n=r.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=n:na(this.data[e],t,n))}}getAtPhysicalCell(e,t,n){let r=null;if(n)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();r=e?function(e,t){const n=t.split(".");let r=e;return ta(n,(e=>{if(r=r[e],void 0===r)return r=void 0,!1})),r}(n,t):n[t]}else r="function"==typeof t?t(n):n[t];if(this.hot.hasHook("modifySourceData")){const n=oa(r);this.hot.runHooks("modifySourceData",e,t,n,"get"),n.isTouched()&&(r=n.value)}return r}getAtCell(e,t){const n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,o=null,i=null,s=null,a=null;null===e||null===t?(r=!0,o=0,s=this.countRows()-1):(o=Math.min(e.row,t.row),i=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const l=[];return jl(o,s,(e=>{l.push(r?this.getAtRow(e,void 0,void 0,n):this.getAtRow(e,i,a,n))})),l}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return Cp(this.data)}destroy(){this.data=null,this.hot=null}};o(7550);const xp={_localHooks:Object.create(null),addLocalHook(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks(e,t,n,r,o,i,s){if(this._localHooks[e]){const a=this._localHooks[e].length;for(let l=0;l<a;l++)$s(this._localHooks[e][l],this,t,n,r,o,i,s)}},clearLocalHooks(){return this._localHooks={},this}};ea(xp,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});const kp=xp;function Rp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Tp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Rp(this,"indexedValues",[]),Rp(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,Ws(this.initValueOrFn)?jl(e-1,(e=>this.indexedValues.push(this.initValueOrFn(e)))):jl(e-1,(()=>this.indexedValues.push(this.initValueOrFn))),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}function Ep(e,t,n){return[...e.slice(0,t),...n,...e.slice(t)]}function Lp(e,t){return _s(e,(e=>!1===t.includes(e)))}function Ip(e,t){return Ms(e,(e=>e-t.filter((t=>t<e)).length))}function Pp(e,t){const n=t[0],r=t.length;return Ms(e,(e=>e>=n?e+r:e))}Js(Tp,kp);class Dp extends Tp{constructor(){super((e=>e))}insert(e,t){const n=Pp(this.indexedValues,t);this.indexedValues=Ep(n,e,t),super.insert(e,t)}remove(e){const t=Lp(this.indexedValues,e);this.indexedValues=Ip(t,e),super.remove(e)}}function Hp(e,t,n,r){const o=n.length?n[0]:void 0;return[...e.slice(0,o),...n.map(((e,t)=>Ws(r)?r(e,t):r)),...void 0===o?[]:e.slice(o)]}function Op(e,t){return _s(e,((e,n)=>!1===t.includes(n)))}class Ap extends Tp{insert(e,t){this.indexedValues=Hp(this.indexedValues,0,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=Op(this.indexedValues,e),super.remove(e)}}class Np extends Ap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return Cs(this.getValues(),((e,t,n)=>(t&&e.push(n),e)),[])}}class jp extends Tp{constructor(){super(...arguments),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map((e=>this.indexedValues[e]))}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=Lp(this.orderOfIndexes,[e]),Ws(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=Hp(this.indexedValues,0,t,this.initValueOrFn),this.orderOfIndexes=Pp(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=Op(this.indexedValues,e),this.orderOfIndexes=Lp(this.orderOfIndexes,e),this.orderOfIndexes=Ip(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map((e=>[e,this.getValueAtIndex(e)]))}}class Yp extends Ap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return Cs(this.getValues(),((e,t,n)=>(t&&e.push(n),e)),[])}}const Fp=new Map([["hiding",Np],["index",Tp],["linkedPhysicalIndexToValue",jp],["physicalIndexToValue",Ap],["trimming",Yp]]);let zp=0;class Wp{constructor(){!function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"collection",new Map)}register(e,t){!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(()=>this.runLocalHooks("change",t))),zp+=1)}unregister(e){const t=this.collection.get(e);Ls(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),zp-=1)}unregisterAll(){this.collection.forEach(((e,t)=>this.unregister(t))),this.collection.clear()}get(e){return Is(e)?Array.from(this.collection.values()):this.collection.get(e)}getLength(){return this.collection.size}removeFromEvery(e){this.collection.forEach((t=>{t.remove(e)}))}insertToEvery(e,t){this.collection.forEach((n=>{n.insert(e,t)}))}initEvery(e){this.collection.forEach((t=>{t.init(e)}))}}function Vp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Js(Wp,kp);class Bp extends Wp{constructor(e,t){super(),Vp(this,"mergedValuesCache",[]),Vp(this,"aggregationFunction",void 0),Vp(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=Ms(this.get(),(e=>e.getValues())),t=[],n=Ls(e[0])&&e[0].length||0;for(let r=0;r<n;r+=1){const n=[];for(let t=0;t<this.getLength();t+=1)n.push(e[t][r]);t.push(n)}return Ms(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const n=this.getMergedValues(t)[e];return Ls(n)?n:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}function $p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Up=new WeakMap;class Gp{constructor(){var e,t,n;n=[],function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Up),t.set(e,n)}subscribe(e){var t;return this.addLocalHook("change",e),this._write((t=Up).get($p(t,this))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){!function(e,t,n){e.set($p(e,t),n)}(Up,this,e)}}function Kp(e,t){const n=[];let r=0,o=0;for(;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}function qp(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Xp(e,t){return e.get(Qp(e,t))}function Jp(e,t,n){return e.set(Qp(e,t),n),n}function Qp(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Js(Gp,kp);var Zp=new WeakMap,ef=new WeakMap,tf=new WeakMap,nf=new WeakMap,rf=new WeakMap;class of{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qp(this,Zp,new Set),qp(this,ef,[]),qp(this,tf,[]),qp(this,nf,!1),qp(this,rf,!1),Jp(rf,this,null!=e&&e)}createObserver(){const e=new Gp;return Xp(Zp,this).add(e),e.addLocalHook("unsubscribe",(()=>{Xp(Zp,this).delete(e)})),e._writeInitialChanges(Kp(Xp(ef,this),Xp(tf,this))),e}emit(e){let t=Xp(tf,this);Xp(nf,this)&&Xp(ef,this).length===e.length||(0===e.length?e=new Array(t.length).fill(Xp(rf,this)):Jp(ef,this,new Array(e.length).fill(Xp(rf,this))),Xp(nf,this)||(Jp(nf,this,!0),t=Xp(ef,this)));const n=Kp(t,e);Xp(Zp,this).forEach((e=>e._write(n))),Jp(tf,this,e)}}function sf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}new Set;class af{constructor(){sf(this,"indexesSequence",new Dp),sf(this,"trimmingMapsCollection",new Bp((e=>e.some((e=>!0===e))),!1)),sf(this,"hidingMapsCollection",new Bp((e=>e.some((e=>!0===e))),!1)),sf(this,"variousMapsCollection",new Wp),sf(this,"hidingChangesObservable",new of({initialIndexValue:!1})),sf(this,"notTrimmedIndexesCache",[]),sf(this,"notHiddenIndexesCache",[]),sf(this,"isBatched",!1),sf(this,"indexesSequenceChanged",!1),sf(this,"indexesChangeSource",void 0),sf(this,"trimmedIndexesChanged",!1),sf(this,"hiddenIndexesChanged",!1),sf(this,"renderablePhysicalIndexesCache",[]),sf(this,"fromPhysicalToVisualIndexesCache",new Map),sf(this,"fromVisualToRenderableIndexesCache",new Map),this.indexesSequence.addLocalHook("change",(()=>{this.indexesSequenceChanged=!0,this.updateCache(),this.runLocalHooks("indexesSequenceChange",this.indexesChangeSource),this.runLocalHooks("change",this.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(e=>{this.trimmedIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(e=>{this.hiddenIndexesChanged=!0,this.updateCache(),this.runLocalHooks("change",e,this.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(e=>{this.runLocalHooks("change",e,this.variousMapsCollection)}))}suspendOperations(){this.isBatched=!0}resumeOperations(){this.isBatched=!1,this.updateCache()}createChangesObserver(e){if("hiding"!==e)throw new Error(`Unsupported index map type "${e}".`);return this.hidingChangesObservable.createObserver()}createAndRegisterIndexMap(e,t,n){return this.registerMap(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Fp.has(e))throw new Error(`The provided map type ("${e}") does not exist.`);return new(Fp.get(e))(t)}(t,n))}registerMap(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error(`Map with name "${e}" has been already registered.`);t instanceof Yp?this.trimmingMapsCollection.register(e,t):t instanceof Np?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);const n=this.getNumberOfIndexes();return n>0&&t.init(n),t}unregisterMap(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}unregisterAll(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}getPhysicalFromVisualIndex(e){const t=this.notTrimmedIndexesCache[e];return Ls(t)?t:null}getPhysicalFromRenderableIndex(e){const t=this.renderablePhysicalIndexesCache[e];return Ls(t)?t:null}getVisualFromPhysicalIndex(e){const t=this.fromPhysicalToVisualIndexesCache.get(e);return Ls(t)?t:null}getVisualFromRenderableIndex(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}getRenderableFromVisualIndex(e){const t=this.fromVisualToRenderableIndexesCache.get(e);return Ls(t)?t:null}getNearestNotHiddenIndex(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null===this.getPhysicalFromVisualIndex(e))return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;const r=Array.from(this.fromVisualToRenderableIndexesCache.keys());let o=-1;return o=t>0?r.findIndex((t=>t>e)):r.reverse().findIndex((t=>t<e)),-1===o?n?this.getNearestNotHiddenIndex(e,-t,!1):null:r[o]}initToLength(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=[...new Array(e).keys()],this.notHiddenIndexesCache=[...new Array(e).keys()],this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}fitToLength(e){const t=this.getNumberOfIndexes();if(e<t){const t=[...Array(this.getNumberOfIndexes()-e).keys()].map((t=>t+e));this.removeIndexes(t)}else this.insertIndexes(t,e-t)}getIndexesSequence(){return this.indexesSequence.getValues()}setIndexesSequence(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}getNotTrimmedIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.notTrimmedIndexesCache:this.getIndexesSequence().filter((e=>!1===this.isTrimmed(e)))}getNotTrimmedIndexesLength(){return this.getNotTrimmedIndexes().length}getNotHiddenIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.notHiddenIndexesCache:this.getIndexesSequence().filter((e=>!1===this.isHidden(e)))}getNotHiddenIndexesLength(){return this.getNotHiddenIndexes().length}getRenderableIndexes(){return!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])?this.renderablePhysicalIndexesCache:this.getNotTrimmedIndexes().filter((e=>!1===this.isHidden(e)))}getRenderableIndexesLength(){return this.getRenderableIndexes().length}getNumberOfIndexes(){return this.getIndexesSequence().length}moveIndexes(e,t){"number"==typeof e&&(e=[e]);const n=Ms(e,(e=>this.getPhysicalFromVisualIndex(e))),r=this.getNotTrimmedIndexesLength(),o=e.length,i=Lp(this.getIndexesSequence(),n),s=i.filter((e=>!1===this.isTrimmed(e)));let a=i.indexOf(s[s.length-1])+1;if(t+o<r){const e=s[t];a=i.indexOf(e)}this.indexesChangeSource="move",this.setIndexesSequence(Ep(i,a,n)),this.indexesChangeSource=void 0}isTrimmed(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}isHidden(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}insertIndexes(e,t){const n=this.getNotTrimmedIndexes()[e],r=Ls(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=Ms(new Array(t).fill(r),((e,t)=>e+t));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,i),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}removeIndexes(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}updateCache(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}cacheFromPhysicalToVisualIndexes(){const e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(e,t)}}cacheFromVisualToRenderableIndexes(){const e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(let t=0;t<e;t+=1){const e=this.getPhysicalFromRenderableIndex(t),n=this.getVisualFromPhysicalIndex(e);this.fromVisualToRenderableIndexesCache.set(n,t)}}}function lf(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);return t?`${t[1].toLowerCase()}-${t[2].toUpperCase()}`:e}function uf(e){Ls(e)&&La(Ts`Language with code "${e}" was not found. You should register particular language\x20
- before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)}Js(af,kp);const{register:cf,getValues:df}=qa("phraseFormatters");cf("pluralize",(function(e,t){return Array.isArray(e)&&Number.isInteger(t)?e[t]:e}));const hf="ContextMenu:items",pf=`${hf}.noItems`,ff=`${hf}.insertRowAbove`,mf=`${hf}.insertRowBelow`,gf=`${hf}.insertColumnOnTheLeft`,bf=`${hf}.insertColumnOnTheRight`,yf=`${hf}.removeRow`,wf=`${hf}.removeColumn`,vf=`${hf}.undo`,Sf=`${hf}.redo`,Cf=`${hf}.readOnly`,_f=`${hf}.clearColumn`,Mf=`${hf}.copy`,xf=`${hf}.copyWithHeaders`,kf=`${hf}.copyWithGroupHeaders`,Rf=`${hf}.copyHeadersOnly`,Tf=`${hf}.cut`,Ef=`${hf}.freezeColumn`,Lf=`${hf}.unfreezeColumn`,If=`${hf}.mergeCells`,Pf=`${hf}.unmergeCells`,Df=`${hf}.addComment`,Hf=`${hf}.editComment`,Of=`${hf}.removeComment`,Af=`${hf}.readOnlyComment`,Nf=`${hf}.align`,jf=`${hf}.align.left`,Yf=`${hf}.align.center`,Ff=`${hf}.align.right`,zf=`${hf}.align.justify`,Wf=`${hf}.align.top`,Vf=`${hf}.align.middle`,Bf=`${hf}.align.bottom`,$f=`${hf}.borders`,Uf=`${hf}.borders.top`,Gf=`${hf}.borders.right`,Kf=`${hf}.borders.bottom`,qf=`${hf}.borders.left`,Xf=`${hf}.borders.remove`,Jf=`${hf}.nestedHeaders.insertChildRow`,Qf=`${hf}.nestedHeaders.detachFromParent`,Zf=`${hf}.hideColumn`,em=`${hf}.showColumn`,tm=`${hf}.hideRow`,nm=`${hf}.showRow`,rm="Filters:",om=`${rm}conditions`,im=`${om}.none`,sm=`${om}.isEmpty`,am=`${om}.isNotEmpty`,lm=`${om}.isEqualTo`,um=`${om}.isNotEqualTo`,cm=`${om}.beginsWith`,dm=`${om}.endsWith`,hm=`${om}.contains`,pm=`${om}.doesNotContain`,fm=`${om}.byValue`,mm=`${om}.greaterThan`,gm=`${om}.greaterThanOrEqualTo`,bm=`${om}.lessThan`,ym=`${om}.lessThanOrEqualTo`,wm=`${om}.isBetween`,vm=`${om}.isNotBetween`,Sm=`${om}.after`,Cm=`${om}.before`,_m=`${om}.today`,Mm=`${om}.tomorrow`,xm=`${om}.yesterday`,km=`${rm}labels.filterByCondition`,Rm=`${rm}labels.filterByValue`,Tm=`${rm}labels.conjunction`,Em=`${rm}labels.disjunction`,Lm=`${rm}values.blankCells`,Im=`${rm}buttons.selectAll`,Pm=`${rm}buttons.clear`,Dm=`${rm}buttons.ok`,Hm=`${rm}buttons.cancel`,Om=`${rm}buttons.placeholder.search`,Am=`${rm}buttons.placeholder.value`,Nm=`${rm}buttons.placeholder.secondValue`,jm="CheckboxRenderer:",Ym=`${jm}checked`,Fm=`${jm}unchecked`,zm={languageCode:"en-US",[pf]:"No available options",[ff]:"Insert row above",[mf]:"Insert row below",[gf]:"Insert column left",[bf]:"Insert column right",[yf]:["Remove row","Remove rows"],[wf]:["Remove column","Remove columns"],[vf]:"Undo",[Sf]:"Redo",[Cf]:"Read only",[_f]:"Clear column",[Nf]:"Alignment",[jf]:"Left",[Yf]:"Center",[Ff]:"Right",[zf]:"Justify",[Wf]:"Top",[Vf]:"Middle",[Bf]:"Bottom",[Ef]:"Freeze column",[Lf]:"Unfreeze column",[$f]:"Borders",[Uf]:"Top",[Gf]:"Right",[Kf]:"Bottom",[qf]:"Left",[Xf]:"Remove border(s)",[Df]:"Add comment",[Hf]:"Edit comment",[Of]:"Delete comment",[Af]:"Read-only comment",[If]:"Merge cells",[Pf]:"Unmerge cells",[Mf]:"Copy",[xf]:["Copy with header","Copy with headers"],[kf]:["Copy with group header","Copy with group headers"],[Rf]:["Copy header only","Copy headers only"],[Tf]:"Cut",[Jf]:"Insert child row",[Qf]:"Detach from parent",[Zf]:["Hide column","Hide columns"],[em]:["Show column","Show columns"],[tm]:["Hide row","Hide rows"],[nm]:["Show row","Show rows"],[im]:"None",[sm]:"Is empty",[am]:"Is not empty",[lm]:"Is equal to",[um]:"Is not equal to",[cm]:"Begins with",[dm]:"Ends with",[hm]:"Contains",[pm]:"Does not contain",[mm]:"Greater than",[gm]:"Greater than or equal to",[bm]:"Less than",[ym]:"Less than or equal to",[wm]:"Is between",[vm]:"Is not between",[Sm]:"After",[Cm]:"Before",[_m]:"Today",[Mm]:"Tomorrow",[xm]:"Yesterday",[Lm]:"Blank cells",[km]:"Filter by condition",[Rm]:"Filter by value",[Tm]:"And",[Em]:"Or",[Im]:"Select all",[Pm]:"Clear",[Dm]:"OK",[Hm]:"Cancel",[Om]:"Search",[Am]:"Value",[Nm]:"Second value",[Ym]:"Checked",[Fm]:"Unchecked"},Wm=e,Vm=zm.languageCode,{register:Bm,getItem:$m,hasItem:Um,getValues:Gm}=qa("languagesDictionaries");function Km(e,t){let n=e,r=t;return Zs(e)&&(r=e,n=r.languageCode),function(e,t){var n;e!==Vm&&(n=t,ta($m(Vm),((e,t)=>{Is(n[t])&&(n[t]=e)})))}(n,r),Bm(n,qs(r)),qs(r)}function qm(e){return Xm(e)?qs($m(e)):null}function Xm(e){return Um(e)}function Jm(e,t,n){const r=qm(e);if(null===r)return null;const o=r[t];if(Is(o))return null;const i=function(e,t){let n=e;return xs(df(),(r=>{n=r(e,t)})),n}(o,n);return Array.isArray(i)?i[0]:i}Km(zm);const Qm="active-header",Zm="header",eg="area",tg="focus";class ng{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}Js(ng,kp);const rg=ng;const og=class extends rg{constructor(e,t){super(e,null),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:n}=e,r=this.getNearestNotHiddenCoords(t,1),o=this.getNearestNotHiddenCoords(n,-1);return null===r||null===o?null:((r.row>o.row||r.col>o.col)&&(r=t,o=n),this.settings.createCellRange(r,r,o))}getNearestNotHiddenCoords(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===r)return null;const o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,n);return null===o?null:this.settings.createCellCoords(r,o)}getNearestNotHiddenIndex(e,t,n){return t<0?t:e.getNearestNotHiddenIndex(t,n)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),n="N-S"===e.getVerticalDirection()?1:-1,r="W-E"===e.getHorizontalDirection()?1:-1,o=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let i=null;if(null!==o&&null!==o.col&&null!==o.row||(i=this.getNearestNotHiddenCoords(t,n,r)),null!==i&&e.overlaps(i)){const t=e.highlight.clone();if(t.row>=0&&(t.row=i.row),t.col>=0&&(t.col=i.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==o&&null===i&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return null===n.row||null===n.col||null===r.row||null===r.col?null:this.settings.createCellRange(n,n,r)}};function ig(e){let{activeHeaderClassName:t,...n}=e;return new og({className:t,...n,selectionType:Qm})}function sg(e){let{areaCornerVisible:t,...n}=e;return new og({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...n,selectionType:eg})}function ag(e){let{...t}=e;return new og({className:"highlight",...t,selectionType:eg})}function lg(e){let{columnClassName:t,...n}=e;return new og({className:t,...n,selectionType:"column"})}function ug(e){let{headerClassName:t,...n}=e;return new og({className:t,...n,selectionType:Zm})}function cg(e){let{rowClassName:t,...n}=e;return new og({className:t,...n,selectionType:"row"})}function dg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var pg=new WeakSet;class fg{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=pg),n.add(t),dg(this,"options",void 0),dg(this,"layerLevel",0),dg(this,"focus",void 0),dg(this,"fill",void 0),dg(this,"layeredAreas",new Map),dg(this,"areas",new Map),dg(this,"rowHeaders",new Map),dg(this,"columnHeaders",new Map),dg(this,"activeRowHeaders",new Map),dg(this,"activeColumnHeaders",new Map),dg(this,"activeCornerHeaders",new Map),dg(this,"rowHighlights",new Map),dg(this,"columnHighlights",new Map),dg(this,"customSelections",[]),this.options=e,this.focus=function(e){let{cellCornerVisible:t,...n}=e;return new og({className:"current",headerAttributes:[["aria-selected","true"]],border:{width:2,color:"#4b89ff",cornerVisible:t},...n,selectionType:tg})}(e),this.fill=function(e){let{...t}=e;return new og({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:"fill"})}(e)}isEnabledFor(e,t){let n=e;e===tg&&(n="current");let r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return hg(pg,this,mg).call(this,this.layeredAreas,sg)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return hg(pg,this,mg).call(this,this.areas,ag)}getAreas(){return[...this.areas.values()]}createRowHeader(){return hg(pg,this,mg).call(this,this.rowHeaders,ug)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return hg(pg,this,mg).call(this,this.columnHeaders,ug)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return hg(pg,this,mg).call(this,this.activeRowHeaders,ig)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return hg(pg,this,mg).call(this,this.activeColumnHeaders,ig)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return hg(pg,this,mg).call(this,this.activeCornerHeaders,ig)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return hg(pg,this,mg).call(this,this.rowHighlights,cg)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return hg(pg,this,mg).call(this,this.columnHighlights,lg)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push(function(e){let{border:t,visualCellRange:n,...r}=e;return new og({...t,...r,selectionType:"custom-selection"},n)}({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),xs(this.areas.values(),(e=>{e.clear()})),xs(this.layeredAreas.values(),(e=>{e.clear()})),xs(this.rowHeaders.values(),(e=>{e.clear()})),xs(this.columnHeaders.values(),(e=>{e.clear()})),xs(this.activeRowHeaders.values(),(e=>{e.clear()})),xs(this.activeColumnHeaders.values(),(e=>{e.clear()})),xs(this.activeCornerHeaders.values(),(e=>{e.clear()})),xs(this.rowHighlights.values(),(e=>{e.clear()})),xs(this.columnHighlights.values(),(e=>{e.clear()}))}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function mg(e,t){const n=this.layerLevel;if(e.has(n))return e.get(n);const r=t({layerLevel:n,...this.options});return e.set(n,r),r}const gg=fg;function bg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class yg{constructor(e){bg(this,"ranges",[]),bg(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}pop(){return this.ranges.pop(),this}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){return this.ranges.some((t=>t.includes(e)))}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}const wg=yg;function vg(e,t,n){Sg(e,t),t.set(e,n)}function Sg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cg(e,t){return e.get(Mg(e,t))}function _g(e,t,n){return e.set(Mg(e,t),n),n}function Mg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var xg=new WeakMap,kg=new WeakMap,Rg=new WeakMap,Tg=new WeakSet;class Eg{constructor(e,t){var n;Sg(this,n=Tg),n.add(this),vg(this,xg,void 0),vg(this,kg,void 0),vg(this,Rg,{x:0,y:0}),_g(xg,this,e),_g(kg,this,t)}transformStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Cg(kg,this).createCellCoords(e,t);let o=Cg(xg,this).current().highlight;const i=Cg(kg,this).visualToRenderableCoords(o);let s=0,a=0;if(this.runLocalHooks("beforeTransformStart",r),null!==i.row&&null!==i.col){const{width:e,height:t}=Mg(Tg,this,Ig).call(this),{row:i,col:l}=Mg(Tg,this,Hg).call(this,o),u=Cg(kg,this).fixedRowsBottom(),c=Cg(kg,this).minSpareRows(),d=Cg(kg,this).minSpareCols(),h=Cg(kg,this).autoWrapRow(),p=Cg(kg,this).autoWrapCol(),f=Cg(kg,this).createCellCoords(i+r.row,l+r.col);if(f.row>=t){const r=oa(n&&c>0&&0===u),o=f.col+1,i=Cg(kg,this).createCellCoords(f.row-t,o>=e?o-e:o);this.runLocalHooks("beforeColumnWrap",r,Mg(Tg,this,Og).call(this,i),o>=e),r.value?this.runLocalHooks("insertRowRequire",Cg(kg,this).countRenderableRows()):p&&f.assign(i)}else if(f.row<0){const n=oa(p),r=f.col-1,o=Cg(kg,this).createCellCoords(t+f.row,r<0?e+r:r);this.runLocalHooks("beforeColumnWrap",n,Mg(Tg,this,Og).call(this,o),r<0),p&&f.assign(o)}if(f.col>=e){const r=oa(n&&d>0),o=f.row+1,i=Cg(kg,this).createCellCoords(o>=t?o-t:o,f.col-e);this.runLocalHooks("beforeRowWrap",r,Mg(Tg,this,Og).call(this,i),o>=t),r.value?this.runLocalHooks("insertColRequire",Cg(kg,this).countRenderableColumns()):h&&f.assign(i)}else if(f.col<0){const n=oa(h),r=f.row-1,o=Cg(kg,this).createCellCoords(r<0?t+r:r,e+f.col);this.runLocalHooks("beforeRowWrap",n,Mg(Tg,this,Og).call(this,o),r<0),h&&f.assign(o)}const{rowDir:m,colDir:g}=Mg(Tg,this,Lg).call(this,f);s=m,a=g,o=Mg(Tg,this,Og).call(this,f)}return this.runLocalHooks("afterTransformStart",o,s,a),o}transformEnd(e,t){const n=Cg(kg,this).createCellCoords(e,t),r=Cg(xg,this).current(),o=Cg(kg,this).visualToRenderableCoords(r.highlight),i=Mg(Tg,this,Pg).call(this,r.to.row,r.from.row),s=Mg(Tg,this,Dg).call(this,r.to.col,r.from.col),a=r.to.clone();let l=0,u=0;if(this.runLocalHooks("beforeTransformEnd",n),null!==o.row&&null!==o.col&&null!==i&&null!==s){const{row:e,col:t}=Mg(Tg,this,Hg).call(this,r.highlight),o=Cg(kg,this).createCellCoords(i+n.row,s+n.col),c=r.getTopStartCorner(),d=r.getTopEndCorner(),h=r.getBottomEndCorner();if(n.col<0&&s>=t&&o.col<t){const e=o.col-t;o.col=Mg(Tg,this,Dg).call(this,c.col,d.col)+e}else if(n.col>0&&s<=t&&o.col>t){const e=Mg(Tg,this,Dg).call(this,d.col,c.col),t=Math.max(o.col-e,1);o.col=e+t}if(n.row<0&&i>=e&&o.row<e){const t=o.row-e;o.row=Mg(Tg,this,Pg).call(this,c.row,h.row)+t}else if(n.row>0&&i<=e&&o.row>e){const e=Mg(Tg,this,Pg).call(this,h.row,c.row),t=Math.max(o.row-e,1);o.row=e+t}const{rowDir:p,colDir:f}=Mg(Tg,this,Lg).call(this,o);l=p,u=f;const m=Mg(Tg,this,Og).call(this,o);0===n.row&&0!==n.col?a.col=m.col:0!==n.row&&0===n.col?a.row=m.row:(a.row=m.row,a.col=m.col)}return this.runLocalHooks("afterTransformEnd",a,l,u),a}setOffsetSize(e){let{x:t,y:n}=e;_g(Rg,this,{x:t,y:n})}resetOffsetSize(){_g(Rg,this,{x:0,y:0})}}function Lg(e){const{width:t,height:n}=Mg(Tg,this,Ig).call(this);let r=0,o=0;return e.row<0?(r=-1,e.row=0):e.row>0&&e.row>=n&&(r=1,e.row=n-1),e.col<0?(o=-1,e.col=0):e.col>0&&e.col>=t&&(o=1,e.col=t-1),{rowDir:r,colDir:o}}function Ig(){return{width:Cg(Rg,this).x+Cg(kg,this).countRenderableColumns(),height:Cg(Rg,this).y+Cg(kg,this).countRenderableRows()}}function Pg(e,t){const n=Cg(kg,this).findFirstNonHiddenRenderableRow(e,t);return null===n?null:Cg(Rg,this).y+n}function Dg(e,t){const n=Cg(kg,this).findFirstNonHiddenRenderableColumn(e,t);return null===n?null:Cg(Rg,this).x+n}function Hg(e){const{row:t,col:n}=Cg(kg,this).visualToRenderableCoords(e);if(null===t||null===n)throw new Error("Renderable coords are not visible.");return Cg(kg,this).createCellCoords(Cg(Rg,this).y+t,Cg(Rg,this).x+n)}function Og(e){const t=e.clone();return t.col=e.col-Cg(Rg,this).x,t.row=e.row-Cg(Rg,this).y,Cg(kg,this).renderableToVisualCoords(t)}Js(Eg,kp);const Ag=Eg,Ng=[3,2],jg=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],Yg=Symbol("root"),Fg=Symbol("child");function zg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yg;if(t!==Yg&&t!==Fg)throw new Error("The second argument is used internally only and cannot be overwritten.");const n=Array.isArray(e),r=t===Yg;let o=0;if(n){const t=e[0];if(0===e.length)o=1;else if(r&&t instanceof Vc)o=3;else if(r&&Array.isArray(t))o=zg(t,Fg);else if(e.length>=2&&e.length<=4){!e.some(((e,t)=>!jg[t].includes(typeof e)))&&(o=2)}}return o}function Wg(e){let{createCellCoords:t,createCellRange:n,keepDirection:r=!1,propToCol:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ng.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(i){const s=3===e;let a=s?i.from.row:i[0],l=s?i.from.col:i[1],u=s?i.to.row:i[2],c=s?i.to.col:i[3];if("function"==typeof o&&("string"==typeof l&&(l=o(l)),"string"==typeof c&&(c=o(c))),Is(u)&&(u=a),Is(c)&&(c=l),!r){const e=a,t=l,n=u,r=c;a=Math.min(e,n),l=Math.min(t,r),u=Math.max(e,n),c=Math.max(t,r)}const d=t(a,l),h=t(u,c);return n(d,d,h)}}function Vg(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Bg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e,t){return e.get(Gg(e,t))}function Ug(e,t,n){return e.set(Gg(e,t),n),n}function Gg(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Kg=new WeakMap,qg=new WeakMap,Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap;class eb{constructor(e,t){var n=this;Bg(this,"settings",void 0),Bg(this,"tableProps",void 0),Bg(this,"inProgress",!1),Bg(this,"selectedRange",new wg(((e,t,n)=>this.tableProps.createCellRange(e,t,n)))),Bg(this,"highlight",void 0),Vg(this,Kg,void 0),Vg(this,qg,void 0),Bg(this,"selectedByRowHeader",new Set),Bg(this,"selectedByColumnHeader",new Set),Vg(this,Xg,!1),Vg(this,Jg,!1),Vg(this,Qg,"unknown"),Vg(this,Zg,-1),this.settings=e,this.tableProps=t,this.highlight=new gg({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[["aria-selected","true"]],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:function(){return n.isCellCornerVisible(...arguments)},areaCornerVisible:function(){return n.isAreaCornerVisible(...arguments)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,n)=>this.tableProps.createCellRange(e,t,n)}),Ug(Kg,this,new Ag(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>this.tableProps.countRenderableRows(),countRenderableColumns:()=>this.tableProps.countRenderableColumns(),visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return n.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return n.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>e.fixedRowsBottom,minSpareRows:()=>e.minSpareRows,minSpareCols:()=>e.minSpareCols,autoWrapRow:()=>e.autoWrapRow,autoWrapCol:()=>e.autoWrapCol})),Ug(qg,this,new Ag(this.selectedRange,{rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,countRenderableRows:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)},countRenderableColumns:()=>{const e=this.selectedRange.current();return this.tableProps.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),findFirstNonHiddenRenderableRow:function(){return n.tableProps.findFirstNonHiddenRenderableRow(...arguments)},findFirstNonHiddenRenderableColumn:function(){return n.tableProps.findFirstNonHiddenRenderableColumn(...arguments)},createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),fixedRowsBottom:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0})),$g(Kg,this).addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("beforeModifyTransformStart",...t)})),$g(Kg,this).addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("afterModifyTransformStart",...t)})),$g(Kg,this).addLocalHook("beforeTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("beforeModifyTransformEnd",...t)})),$g(Kg,this).addLocalHook("afterTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("afterModifyTransformEnd",...t)})),$g(Kg,this).addLocalHook("insertRowRequire",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("insertRowRequire",...t)})),$g(Kg,this).addLocalHook("insertColRequire",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("insertColRequire",...t)})),$g(Kg,this).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("beforeRowWrap",...t)})),$g(Kg,this).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("beforeColumnWrap",...t)})),$g(qg,this).addLocalHook("beforeTransformStart",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("beforeModifyTransformFocus",...t)})),$g(qg,this).addLocalHook("afterTransformStart",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("afterModifyTransformFocus",...t)}))}getSelectedRange(){return this.selectedRange}markSource(e){Ug(Qg,this,e)}markEndSource(){Ug(Qg,this,"unknown")}getSelectionSource(){return $g(Qg,this)}setExpectedLayers(e){Ug(Zg,this,e)}begin(){this.inProgress=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,Ug(Zg,this,-1)}isInProgress(){return this.inProgress}setRangeStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e;const o="multiple"===this.settings.selectionMode,i=Is(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,s=e.clone();Ug(Xg,this,!1),this.runLocalHooks("beforeSetRangeStart"+(n?"Only":""),s),(!o||o&&!i&&Is(t))&&this.selectedRange.clear(),this.selectedRange.add(s).current().setHighlight(r.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),n||this.setRangeEnd(e)}setRangeStartOnly(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.setRangeStart(e,t,!0,n)}setRangeEnd(e){if(this.selectedRange.isEmpty())return;const t=e.clone(),n=this.tableProps.countRows(),r=this.tableProps.countCols(),o=this.selectedRange.current().clone().setTo(e).isSingleHeader();if((n>0||r>0)&&(0===n&&t.col<0&&!o||0===r&&t.row<0&&!o))return;this.runLocalHooks("beforeSetRangeEnd",t),this.begin();const i=this.selectedRange.current();if(this.settings.navigableHeaders||i.highlight.normalize(),"single"===this.settings.selectionMode)i.setFrom(i.highlight),i.setTo(i.highlight);else{const e=i.getHorizontalDirection(),n=i.getVerticalDirection(),r=this.isMultiple();i.setTo(t),r&&(e!==i.getHorizontalDirection()||1===i.getWidth()&&!i.includes(i.highlight))&&i.from.assign({col:i.highlight.col}),r&&(n!==i.getVerticalDirection()||1===i.getHeight()&&!i.includes(i.highlight))&&i.from.assign({row:i.highlight.row})}n>0&&r>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!i.isSingleHeader())&&i.to.normalize(),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.selectedRange.current().highlight),this.applyAndCommit();const s=-1===$g(Zg,this)||this.selectedRange.size()===$g(Zg,this);this.runLocalHooks("afterSetRangeEnd",e,s)}applyAndCommit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedRange.current(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();const n=this.tableProps.countRows(),r=this.tableProps.countCols();t<this.highlight.layerLevel&&(xs(this.highlight.getAreas(),(e=>{e.clear()})),xs(this.highlight.getLayeredAreas(),(e=>{e.clear()})),xs(this.highlight.getRowHeaders(),(e=>{e.clear()})),xs(this.highlight.getColumnHeaders(),(e=>{e.clear()})),xs(this.highlight.getActiveRowHeaders(),(e=>{e.clear()})),xs(this.highlight.getActiveColumnHeaders(),(e=>{e.clear()})),xs(this.highlight.getActiveCornerHeaders(),(e=>{e.clear()})),xs(this.highlight.getRowHighlights(),(e=>{e.clear()})),xs(this.highlight.getColumnHighlights(),(e=>{e.clear()}))),this.highlight.useLayerLevel(t);const o=this.highlight.createArea(),i=this.highlight.createLayeredArea(),s=this.highlight.createRowHeader(),a=this.highlight.createColumnHeader(),l=this.highlight.createActiveRowHeader(),u=this.highlight.createActiveColumnHeader(),c=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();if(o.clear(),i.clear(),s.clear(),a.clear(),l.clear(),u.clear(),c.clear(),d.clear(),h.clear(),this.highlight.isEnabledFor(eg,e.highlight)&&(this.isMultiple()||t>=1)&&(o.add(e.from).add(e.to).commit(),i.add(e.from).add(e.to).commit(),1===t)){const e=this.selectedRange.previous();this.highlight.useLayerLevel(t-1),this.highlight.createArea().add(e.from).commit().syncWith(e),this.highlight.createLayeredArea().add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t)}if(this.highlight.isEnabledFor(Zm,e.highlight)){if(!e.isSingleHeader()){const t=this.tableProps.createCellCoords(Math.max(e.from.row,0),-1),n=this.tableProps.createCellCoords(e.to.row,-1),r=this.tableProps.createCellCoords(-1,Math.max(e.from.col,0)),o=this.tableProps.createCellCoords(-1,e.to.col);"single"===this.settings.selectionMode?(s.add(t).commit(),a.add(r).commit(),d.add(t).commit(),h.add(r).commit()):(s.add(t).add(n).commit(),a.add(r).add(o).commit(),d.add(t).add(n).commit(),h.add(r).add(o).commit())}const t=!$g(Jg,this)&&this.isEntireRowSelected()&&(r>0&&r===e.getWidth()||0===r&&this.isSelectedByRowHeader()),o=!$g(Jg,this)&&this.isEntireColumnSelected()&&(n>0&&n===e.getHeight()||0===n&&this.isSelectedByColumnHeader());t&&l.add(this.tableProps.createCellCoords(Math.max(e.from.row,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row,0),-1)).commit(),o&&u.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col,0))).commit(),t&&o&&c.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}}setRangeFocus(e){if(this.selectedRange.isEmpty())return;const t=this.selectedRange.current();this.inProgress||this.runLocalHooks("beforeSetFocus",e);const n=this.highlight.getFocus();n.clear(),t.setHighlight(e),this.inProgress||this.runLocalHooks("beforeHighlightSet"),this.highlight.isEnabledFor(tg,t.highlight)&&n.add(t.highlight).commit().syncWith(t),this.inProgress||(Ug(Xg,this,!0),this.runLocalHooks("afterSetFocus",t.highlight))}transformStart(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.settings.navigableHeaders?$g(Kg,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):$g(Kg,this).resetOffsetSize(),this.setRangeStart($g(Kg,this).transformStart(e,t,n))}transformEnd(e,t){this.settings.navigableHeaders?$g(Kg,this).setOffsetSize({x:this.tableProps.countRowHeaders(),y:this.tableProps.countColHeaders()}):$g(Kg,this).resetOffsetSize(),this.setRangeEnd($g(Kg,this).transformEnd(e,t))}transformFocus(e,t){const n=this.selectedRange.current(),{row:r,col:o}=n.getOuterTopStartCorner(),i=this.tableProps.countRenderableColumnsInRange(0,o-1),s=this.tableProps.countRenderableRowsInRange(0,r-1);n.highlight.isHeader()?$g(qg,this).setOffsetSize({x:o<0?Math.abs(o):-i,y:r<0?Math.abs(r):-s}):$g(qg,this).setOffsetSize({x:o<0?0:-i,y:r<0?0:-s});const a=$g(qg,this).transformStart(e,t);this.setRangeFocus(a.normalize())}shiftRows(e,t){if(!this.isSelected())return;const n=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByColumnHeader()||n.getOuterTopStartCorner().row>=e){const{from:r,to:o,highlight:i}=n,s=this.tableProps.countRows(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),u=l?-1:0,c=l?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords(zl(r.row+c,u,s-1),r.col),h=this.tableProps.createCellCoords(zl(o.row+t,u,s-1),o.col);this.markSource("shift"),i.row>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords(zl(i.row+t,0,s-1),i.col)):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.markEndSource()}}shiftColumns(e,t){if(!this.isSelected())return;const n=this.selectedRange.current();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByRowHeader()||n.getOuterTopStartCorner().col>=e){const{from:r,to:o,highlight:i}=n,s=this.tableProps.countCols(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),u=a?-1:0,c=a?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords(r.row,zl(r.col+c,u,s-1)),h=this.tableProps.createCellCoords(o.row,zl(o.col+t,u,s-1));this.markSource("shift"),i.col>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords(i.row,zl(i.col+t,0,s-1))):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.markEndSource()}}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(){if(!this.isSelected())return!1;const e=oa(!this.selectedRange.current().isSingle());return this.runLocalHooks("afterIsMultipleSelection",e),e.value}isFocusSelectionChanged(){return this.isSelected()&&$g(Xg,this)}isSelectedByRowHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{col:t}=e.getOuterTopStartCorner(),n=this.tableProps.countRowHeaders(),r=this.tableProps.countCols();return(n>0&&t<0||0===n)&&e.getWidth()===r};if(-1===e)return Array.from(this.selectedRange).some((e=>t(e)));const n=this.selectedRange.peekByIndex(e);return!!n&&t(n)}isSelectedByColumnHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{row:t}=e.getOuterTopStartCorner(),n=this.tableProps.countColHeaders(),r=this.tableProps.countRows();return(n>0&&t<0||0===n)&&e.getHeight()===r};if(-1===e)return Array.from(this.selectedRange).some((e=>t(e)));const n=this.selectedRange.peekByIndex(e);return!!n&&t(n)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}isCellCornerVisible(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}isCellVisible(e){const t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple()}clear(){this.selectedRange.clear(),this.highlight.clear()}deselect(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{focusPosition:!1,disableHeadersHighlight:!1};const o=this.tableProps.countRows(),i=this.tableProps.countCols(),s=this.tableProps.countRowHeaders(),a=this.tableProps.countColHeaders(),l=n?-a:0,u=t?-s:0;if(0===l&&0===u&&(0===o||0===i))return;let c=null===(e=this.getSelectedRange().current())||void 0===e?void 0:e.highlight;const{focusPosition:d,disableHeadersHighlight:h}=r;Ug(Jg,this,h),d&&Number.isInteger(null==d?void 0:d.row)&&Number.isInteger(null==d?void 0:d.col)&&(c=this.tableProps.createCellCoords(zl(d.row,l,o-1),zl(d.col,u,i-1)));const p=this.tableProps.createCellCoords(l,u),f=this.tableProps.createCellCoords(o-1,i-1);this.clear(),this.setRangeStartOnly(p,void 0,c),u<0&&this.selectedByRowHeader.add(this.getLayerLevel()),l<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(f),this.finish(),Ug(Jg,this,!1)}selectCells(e){var t=this;const n=zg(e);if(1===n)return!1;if(0===n)throw new Error(Ts`Unsupported format of the selection ranges was passed. To select cells pass\x20
- the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
- columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const r=Wg(n,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),o=this.settings.navigableHeaders,i={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},s=!e.some((e=>{const t=r(e),n=t.isValid(i);return!(n&&!t.containsHeaders()||n&&t.containsHeaders()&&t.isSingleHeader())}));return s&&(this.clear(),this.setExpectedLayers(e.length),xs(e,(e=>{const{from:t,to:n}=r(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(n.clone())})),this.finish()),s}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r="string"==typeof e?this.tableProps.propToCol(e):e,o="string"==typeof t?this.tableProps.propToCol(t):t,i=this.tableProps.countRows(),s=this.tableProps.countCols(),a=this.tableProps.countColHeaders(),l=0===a?0:-a,u=this.tableProps.createCellCoords(l,r),c=this.tableProps.createCellCoords(i-1,o),d=this.tableProps.createCellRange(u,u,c).isValid({countRows:i,countCols:s,countRowHeaders:0,countColHeaders:a});if(d){let e=0,t=0;Number.isInteger(null==n?void 0:n.row)&&Number.isInteger(null==n?void 0:n.col)?(e=zl(n.row,l,i-1),t=zl(n.col,Math.min(r,o),Math.max(r,o))):(e=zl(n,l,i-1),t=r);const s=this.tableProps.createCellCoords(e,t),u=0===a?0:zl(s.row,l,-1),c=i-1,d=this.tableProps.createCellCoords(u,r),h=this.tableProps.createCellCoords(c,o);this.runLocalHooks("beforeSelectColumns",d,h,s),d.row=u,h.row=c,this.setRangeStartOnly(d,void 0,s),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.runLocalHooks("afterSelectColumns",d,h,s),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=this.tableProps.countRows(),o=this.tableProps.countCols(),i=this.tableProps.countRowHeaders(),s=0===i?0:-i,a=this.tableProps.createCellCoords(e,s),l=this.tableProps.createCellCoords(t,o-1),u=this.tableProps.createCellRange(a,a,l).isValid({countRows:r,countCols:o,countRowHeaders:i,countColHeaders:0});if(u){let r=0,a=0;Number.isInteger(null==n?void 0:n.row)&&Number.isInteger(null==n?void 0:n.col)?(r=zl(n.row,Math.min(e,t),Math.max(e,t)),a=zl(n.col,s,o-1)):(r=e,a=zl(n,s,o-1));const l=this.tableProps.createCellCoords(r,a),u=0===i?0:zl(l.col,s,-1),c=o-1,d=this.tableProps.createCellCoords(e,u),h=this.tableProps.createCellCoords(t,c);this.runLocalHooks("beforeSelectRows",d,h,l),d.col=u,h.col=c,this.setRangeStartOnly(d,void 0,l),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(h),this.runLocalHooks("afterSelectRows",d,h,l),this.finish()}return u}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const n=this.selectedRange.peekByIndex(this.selectedRange.size()-1),{from:r,to:o,highlight:i}=n;this.clear(),i.assign({row:zl(i.row,-1/0,e-1),col:zl(i.col,-1/0,t-1)}),r.assign({row:zl(r.row,-1/0,e-1),col:zl(r.col,-1/0,t-1)}),o.assign({row:zl(o.row,0,e-1),col:zl(o.col,0,t-1)}),this.selectedRange.ranges.push(n),this.highlight.isEnabledFor(tg,this.selectedRange.current().highlight)&&this.highlight.getFocus().add(i).commit().syncWith(n),this.applyAndCommit(n)}commit(){if(this.highlight.getCustomSelections().forEach((e=>{e.commit()})),!this.isSelected())return;const e=this.getLayerLevel(),t=this.selectedRange.current();this.highlight.isEnabledFor(tg,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),n=this.highlight.createLayeredArea(),r=this.highlight.createRowHeader(),o=this.highlight.createColumnHeader(),i=this.highlight.createActiveRowHeader(),s=this.highlight.createActiveColumnHeader(),a=this.highlight.createActiveCornerHeader(),l=this.highlight.createRowHighlight(),u=this.highlight.createColumnHighlight();t.commit(),n.commit(),r.commit(),o.commit(),i.commit(),s.commit(),a.commit(),l.commit(),u.commit()}this.highlight.useLayerLevel(e)}}Js(eb,kp);const tb=eb,{register:nb,getItem:rb,hasItem:ob,getNames:ib,getValues:sb}=qa("cellTypes");function ab(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);const{editor:n,renderer:r,validator:o}=t;n&&il(e,n),r&&lu(e,r),o&&fu(e,o),nb(e,t)}function lb(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const r="string"==typeof t.type?function(e){if(!ob(e))throw Error(`You declared cell type "${e}" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method`);return rb(e)}(t.type):t.type;if(e._automaticallyAssignedMetaProps&&ta(t,((t,n)=>{e._automaticallyAssignedMetaProps.delete(n)})),!Zs(r))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const o={};ta(r,((t,r)=>{var i;(function(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!ia(t,e))})(r,n)&&(o[r]=t,null===(i=e._automaticallyAssignedMetaProps)||void 0===i||i.add(r))})),Gs(e,o)}function ub(e){return Number.isInteger(e)&&e>=0}function cb(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)}function db(e){return null==e}const hb=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===Ps(r))return!1;return!0},isEmptyRow(e){let t,n,r,o;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===Ps(r))return"object"==typeof r&&(o=this.getCellMeta(e,t),Qs(this.getSchema()[o.prop],r));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0});function pb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class fb{constructor(e){pb(this,"metaCtor",class{}),pb(this,"meta",void 0),this.meta=this.metaCtor.prototype,Gs(this.meta,hb()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;Gs(this.meta,e),lb(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}class mb{constructor(e){!function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"meta",void 0);const t=e.getMetaConstructor();this.meta=new t}getMeta(){return this.meta}updateMeta(e){Gs(this.meta,e),lb(this.meta,e,e)}}function gb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class bb{constructor(e){gb(this,"valueFactory",void 0),gb(this,"data",[]),gb(this,"index",[]),gb(this,"holes",new Set),this.valueFactory=e}obtain(e){cb((()=>ub(e)),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let n;if(t>=0)n=this.data[t],void 0===n&&(n=this.valueFactory(e),this.data[t]=n);else if(n=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=n,this.index[e]=t}else this.data.push(n),this.index[e]=this.data.length-1;return n}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;cb((()=>ub(e)||db(e)),"Expecting an unsigned number or null/undefined argument.");const n=[],r=this.data.length;for(let e=0;e<t;e++)n.push(r+e),this.data.push(void 0);const o=db(e)?this.index.length:e;this.index=[...this.index.slice(0,o),...n,...this.index.slice(o)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;cb((()=>ub(e)||db(e)),"Expecting an unsigned number or null/undefined argument.");const n=this.index.splice(db(e)?this.index.length-t:e,t);for(let e=0;e<n.length;e++){const t=n[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter(((e,t)=>void 0!==e&&!this.holes.has(t)))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const n=this._getKeyByStorageIndex(t);-1!==n&&void 0!==this.data[t]&&e.push([n,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const n=e[t];return t+=1,{value:n,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}function yb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wb=["data","width"];class vb{constructor(e){yb(this,"globalMeta",void 0),yb(this,"metas",new bb((()=>this._createMeta()))),this.globalMeta=e,this.metas=new bb((()=>this._createMeta()))}updateMeta(e,t){const n=this.getMeta(e);Gs(n,t),lb(n,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}var r,o;r=n,(o=e).prototype.constructor=o,r.prototype=new o,r.prototype.constructor=r;for(let e=0;e<t.length;e++)n.prototype[t[e]]=void 0;return n}(this.globalMeta.getMetaConstructor(),wb).prototype}}function Sb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Cb{constructor(e){Sb(this,"columnMeta",void 0),Sb(this,"metas",new bb((()=>this._createRow()))),this.columnMeta=e}updateMeta(e,t,n){const r=this.getMeta(e,t);Gs(r,n),lb(r,n)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let n=0;n<this.metas.size();n++)this.metas.obtain(n).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let n=0;n<this.metas.size();n++)this.metas.obtain(n).remove(e,t)}getMeta(e,t,n){const r=this.metas.obtain(e).obtain(t);return void 0===n?r:r[n]}setMeta(e,t,n,r){var o;const i=this.metas.obtain(e).obtain(t);null===(o=i._automaticallyAssignedMetaProps)||void 0===o||o.delete(n),i[n]=r}removeMeta(e,t,n){delete this.metas.obtain(e).obtain(t)[n]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let n=0;n<t.length;n++)Ls(t[n])&&e.push(...t[n].values());return e}getMetasAtRow(e){cb((()=>ub(e)),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new bb((e=>this._createMeta(e)))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}class _b{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new fb(e),this.tableMeta=new mb(this.globalMeta),this.columnMeta=new vb(this.globalMeta),this.cellMeta=new Cb(this.columnMeta),n.forEach((e=>new e(this))),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,n){const r=this.cellMeta.getMeta(e,t);return r.visualRow=n.visualRow,r.visualCol=n.visualColumn,r.row=e,r.col=t,n.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",r),r}getCellMetaKeyValue(e,t,n){if("string"!=typeof n)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,n)}setCellMeta(e,t,n,r){this.cellMeta.setMeta(e,t,n,r)}updateCellMeta(e,t,n){this.cellMeta.updateMeta(e,t,n)}removeCellMeta(e,t,n){this.cellMeta.removeMeta(e,t,n)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}function Mb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Js(_b,kp);class xb{constructor(e){var t=this;Mb(this,"metaManager",void 0),Mb(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",(function(){return t.extendCellMeta(...arguments)})),Ua.getSingleton().add("beforeRender",(e=>{e&&this.metaSyncMemo.clear()}),this.metaManager.hot)}extendCellMeta(e){var t;const{row:n,col:r}=e;if(null!==(t=this.metaSyncMemo.get(n))&&void 0!==t&&t.has(r))return;const{visualRow:o,visualCol:i}=e,s=this.metaManager.hot,a=s.colToProp(i);e.prop=a,s.runHooks("beforeGetCellMeta",o,i,e);const l=ia(e,"type")?e.type:null;let u=Ws(e.cells)?e.cells(n,r,a):null;var c;l&&(u?u.type=null!==(c=u.type)&&void 0!==c?c:l:u={type:l}),u&&this.metaManager.updateCellMeta(n,r,u),s.runHooks("afterGetCellMeta",o,i,e),this.metaSyncMemo.has(n)||this.metaSyncMemo.set(n,new Set),this.metaSyncMemo.get(n).add(r)}}function kb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rb=new WeakMap;class Tb{constructor(e){var t,n,r;kb(this,"metaManager",void 0),kb(this,"usageTracker",new Set),kb(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),r=(e,t,n)=>{if(!n)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Rb),n.set(t,r),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach(((e,t)=>{const{initOnly:n,target:r,onChange:o}=e,i="string"==typeof r,s=i?r:t,a=`_${s}`;var l,u;this.metaManager.globalMeta.meta[a]=this.metaManager.globalMeta.meta[s],o?(this.installPropWatcher(t,a,o),i&&this.installPropWatcher(r,a,o)):n&&(this.installPropWatcher(t,a,(u=this,(l=Rb).get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(l,u)))),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))}))}installPropWatcher(e,t,n){const r=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(o){const i=!r.usageTracker.has(e);r.usageTracker.add(e),n.call(r,e,o,i),this[t]=o},enumerable:!0,configurable:!0})}}const Eb=/^(\r\n|\n\r|\r|\n)/,Lb=/^[^\t\r\n]+/,Ib=/^\t/;function Pb(e){let t,n,r,o,i,s="";for(t=0,n=e.length;t<n;t+=1){for(o=e[t].length,r=0;r<o;r+=1)r>0&&(s+="\t"),i=e[t][r],"string"==typeof i?i.indexOf("\n")>-1?s+=`"${i.replace(/"/g,'""')}"`:s+=i:s+=null==i?"":i;t!==n-1&&(s+="\n")}return s}function Db(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hb{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,n){Db(this,"hot",void 0),Db(this,"metaManager",void 0),Db(this,"tableMeta",void 0),Db(this,"dataSource",void 0),Db(this,"duckSchema",void 0),Db(this,"colToPropCache",void 0),Db(this,"propToColCache",void 0),this.hot=e,this.metaManager=n,this.tableMeta=n.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let n;if(this.colToPropCache=[],this.propToColCache=new Map,t){let r=0,o=0,i=!1;if("function"==typeof t){const t=ra(e);r=t>0?t:this.countFirstRowKeys(),i=!0}else{const e=this.tableMeta.maxCols;r=Math.min(e,t.length)}for(n=0;n<r;n++){const e=i?t(n):t[n];if(Zs(e)){if(void 0!==e.data){const t=i?o:n;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}o+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return Cp(this.dataSource)}recursiveDuckColumns(e,t,n){let r,o=t,i=n;return void 0===o&&(o=0,i=""),"object"!=typeof e||Array.isArray(e)||ta(e,((e,t)=>{null===e?(r=i+t,this.colToPropCache.push(r),this.propToColCache.set(r,o),o+=1):o=this.recursiveDuckColumns(e,o,`${t}.`)})),o}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&Ls(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if(Ls(t))return this.hot.toVisualColumn(t);const n=this.hot.toVisualColumn(e);return null===n?e:n}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?Us(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:r="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.hot.countSourceRows();let i=o,s=0,a=e;if(("number"!=typeof a||a>=o)&&(a=o),a<this.hot.countRows()&&(i=this.hot.toPhysicalRow(a)),!1===this.hot.runHooks("beforeCreateRow",a,t,n)||null===i)return{delta:0};const l=this.tableMeta.maxRows,u=this.getSchema().length,c=[];for(;s<t&&o+s<l;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=qs(this.getSchema()):(e=[],jl(u-1,(()=>e.push(null)))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(a+s):(e={},Ks(e,this.getSchema())),c.push(e),s+=1}this.hot.rowIndexMapper.insertIndexes(a,s),"below"===r&&(i=Math.min(i+1,o)),this.spliceData(i,0,c);const d=this.hot.toVisualRow(i);return this.hot.countSourceRows()===c.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),s>0&&(null==e?this.metaManager.createRow(null,s):"auto"!==n&&this.metaManager.createRow(i,t)),this.hot.runHooks("afterCreateRow",d,s,n),{delta:s,startPhysicalIndex:i}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:n,mode:r="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const o=this.dataSource,i=this.tableMeta.maxCols,s=this.hot.countSourceCols();let a=e;if(("number"!=typeof a||a>=s)&&(a=s),!1===this.hot.runHooks("beforeCreateCol",a,t,n))return{delta:0};let l=s;a<this.hot.countCols()&&(l=this.hot.toPhysicalColumn(a));const u=this.hot.countSourceRows();let c=this.hot.countCols(),d=0,h=l;"end"===r&&(h=Math.min(h+1,s));const p=h;for(;d<t&&c<i;){if("number"!=typeof a||a>=c)if(u>0)for(let e=0;e<u;e+=1)void 0===o[e]&&(o[e]=[]),o[e].push(null);else o.push([null]);else for(let e=0;e<u;e++)o[e].splice(h,0,null);d+=1,h+=1,c+=1}this.hot.columnIndexMapper.insertIndexes(a,d),d>0&&(null==e?this.metaManager.createColumn(null,d):"auto"!==n&&this.metaManager.createColumn(p,t));const f=this.hot.toVisualColumn(p);return this.hot.runHooks("afterCreateCol",f,d,n),this.refreshDuckSchema(),{delta:d,startPhysicalIndex:p}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0,r=Number.isInteger(e)?e:-t;const o=this.visualRowsToPhysical(r,t),i=this.hot.countSourceRows();if(r=(i+r)%i,!1===this.hot.runHooks("beforeRemoveRow",r,o.length,o,n))return!1;const s=o.length;if(this.filterData(r,s,o),r<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(o);const e=Ls(this.tableMeta.columns)||Ls(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return o.slice(0).sort(((e,t)=>t-e)).forEach((e=>{this.metaManager.removeRow(e,1)})),this.hot.runHooks("afterRemoveRow",r,s,o,n),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let r="number"!=typeof e?-t:e;r=(this.hot.countCols()+r)%this.hot.countCols();const o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort(((e,t)=>t-e));if(!1===this.hot.runHooks("beforeRemoveCol",r,t,o,n))return!1;let s=!0;const a=i.length,l=this.dataSource;for(let e=0;e<a;e++)s&&o[0]!==o[e]-e&&(s=!1);if(s)for(let e=0,n=this.hot.countSourceRows();e<n;e++)l[e].splice(o[0],t),0===e&&this.metaManager.removeColumn(o[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(i[t],1),0===e&&this.metaManager.removeColumn(i[t],1);return r<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(o),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",r,t,o,n),this.refreshDuckSchema(),!0}spliceCol(e,t,n){const r=this.hot.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n);for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];vs(a,i);let u=0;for(;u<n;)a.push(null),u+=1;return function(e){const t=e.length;let n=0;for(;n<t;)e[n]=[e[n]],n+=1}(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),o}spliceRow(e,t,n){const r=this.hot.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n);for(var s=arguments.length,a=new Array(s>3?s-3:0),l=3;l<s;l++)a[l-3]=arguments[l];vs(a,i);let u=0;for(;u<n;)a.push(null),u+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),o}spliceData(e,t,n){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,n)){const t=[...this.dataSource.slice(0,e),...n,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach((e=>this.dataSource.push(e)))}}filterData(e,t,n){let r=this.hot.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter(((e,t)=>-1===n.indexOf(t)))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}get(e,t){const n=this.hot.toPhysicalRow(e);let r=this.dataSource[n];const o=this.hot.runHooks("modifyRowData",n);r=isNaN(o)?o:r;const{dataDotNotation:i}=this.hot.getSettings();let s=null;if(r&&r.hasOwnProperty&&ia(r,t))s=r[t];else if(i&&"string"==typeof t&&t.indexOf(".")>-1){let e=r;if(!e)return null;const n=t.split(".");for(let t=0,r=n.length;t<r;t++)if(e=e[n[t]],void 0===e)return null;s=e}else"function"==typeof t&&(s=t(this.dataSource.slice(n,n+1)[0]));if(this.hot.hasHook("modifyData")){const e=oa(s);this.hot.runHooks("modifyData",n,this.propToCol(t),e,"get"),e.isTouched()&&(s=e.value)}return s}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,n){const r=this.hot.toPhysicalRow(e);let o=n,i=this.dataSource[r];const s=this.hot.runHooks("modifyRowData",r);if(i=isNaN(s)?s:i,this.hot.hasHook("modifyData")){const e=oa(o);this.hot.runHooks("modifyData",r,this.propToCol(t),e,"set"),e.isTouched()&&(o=e.value)}const{dataDotNotation:a}=this.hot.getSettings();if(i&&i.hasOwnProperty&&ia(i,t))i[t]=o;else if(a&&"string"==typeof t&&t.indexOf(".")>-1){let e,n=i,r=0;const s=t.split(".");for(r=0,e=s.length-1;r<e;r++){if("__proto__"===s[r]||"constructor"===s[r]||"prototype"===s[r])return;void 0===n[s[r]]&&(n[s[r]]={}),n=n[s[r]]}n[s[r]]=o}else if("function"==typeof t)t(this.dataSource.slice(r,r+1)[0],o);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;i[t]=o}}visualRowsToPhysical(e,t){const n=this.hot.countSourceRows(),r=[];let o,i=(n+e)%n,s=t;for(;i<n&&s;)o=this.hot.toPhysicalRow(i),r.push(o),s-=1,i+=1;return r}visualColumnsToPhysical(e,t){const n=this.hot.countCols(),r=[];let o=(n+e)%n,i=t;for(;o<n&&i;){const e=this.hot.toPhysicalColumn(o);r.push(e),i-=1,o+=1}return r}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,Hb.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,n){const r=[];let o,i,s;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const u=n===Hb.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),d=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(o=Math.min(e.row,t.row);o<=c;o++){s=[];const n=o>=0?this.hot.toPhysicalRow(o):o;for(i=Math.min(e.col,t.col);i<=d&&null!==n;i++)s.push(u.call(this,o,this.colToProp(i)));null!==n&&r.push(s)}return r}getText(e,t){return Pb(this.getRange(e,t,Hb.DESTINATION_RENDERER))}getCopyableText(e,t){return Pb(this.getRange(e,t,Hb.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}const Ob=Hb;function Ab(e,t,n,r){const{hotInstance:o,dataMap:i,dataSource:s,internalSource:a,source:l,metaManager:u,firstRun:c}=r,d=ui(a),h=o.getSettings();Array.isArray(h.dataSchema)?o.dataType="array":Ws(h.dataSchema)?o.dataType="function":o.dataType="object",i&&i.destroy(),e=o.runHooks(`before${d}`,e,c,l);const p=new Ob(o,e,u);if(t(p),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${a} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=p.getSchema();let n;e=[];let r=0,i=0;for(r=0,i=h.startRows;r<i;r++)if("object"!==o.dataType&&"function"!==o.dataType||!h.dataSchema)if("array"===o.dataType)n=qs(t[0]),e.push(n);else{n=[];for(let e=0,t=h.startCols;e<t;e++)n.push(null);e.push(n)}else n=qs(t),e.push(n)}}Array.isArray(e[0])&&(o.dataType="array"),h.data=e,p.dataSource=e,s.data=e,s.dataType=o.dataType,s.colToProp=p.colToProp.bind(p),s.propToCol=p.propToCol.bind(p),s.countCachedColumns=p.countCachedColumns.bind(p),n(p),o.runHooks(`after${d}`,e,c,l),c||(o.runHooks("afterChange",null,a),o.render()),o.getSettings().ariaTags&&ji(o.rootElement,[yi(-1),wi(o.countCols()+(o.view?o.countRowHeaders():0))])}function Nb(e){ys(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})}function jb(e){const{selection:t,view:n}=e,r=e.getSelectedRangeLast(),o=t.getSelectionSource(),i=n.getFirstFullyVisibleColumn(),s=n.getLastFullyVisibleColumn(),a=r.getTopStartCorner().col,l=r.getBottomEndCorner().col,u=a<=i,c=l>=s,d=n.getFirstFullyVisibleRow(),h=n.getLastFullyVisibleRow(),p=r.getTopStartCorner().row,f=r.getBottomEndCorner().row,m=p<=d,g=f>=h;return{getComputedColumnTarget:e=>"mouse"===o||"keyboard"===o?e.col:u&&c?r.highlight.col:u?a:c?l:e.col,getComputedRowTarget:e=>"mouse"===o||"keyboard"===o?e.row:m&&g?r.highlight.row:m?p:g?f:e.row}}const Yb="gridDefault",Fb="editorManager.handlingEditor";function zb(e){const t=e.rootDocument.createElement("input");return t.type="text",t.name="__htFocusCatcher",t.classList.add("htFocusCatcher"),e.getSettings().ariaTags&&ji(t,[gi("Focus catcher")]),t}function Wb(e){const{rowIndexMapper:t,columnIndexMapper:n}=e,{navigableHeaders:r}=e.getSettings();let o=r&&e.countColHeaders()>0?-e.countColHeaders():0,i=r&&e.countRowHeaders()>0?-e.countRowHeaders():0;return 0===o&&(o=t.getVisualFromRenderableIndex(o)),0===i&&(i=n.getVisualFromRenderableIndex(i)),null===o||null===i?null:e._createCellCoords(o,i)}function Vb(e){var t,n;const{rowIndexMapper:r,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=r.getRenderableIndexesLength()-1,a=o.getRenderableIndexesLength()-1;if(s<0){if(!i||0===e.countColHeaders())return null;s=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=r.getVisualFromRenderableIndex(s))&&void 0!==t?t:s,null!==(n=o.getVisualFromRenderableIndex(a))&&void 0!==n?n:a)}const Bb=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]),$b=e=>e.map((e=>{const t=e.toLowerCase();return Bb.has(t)?Bb.get(t):t})).sort().join("+"),Ub=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]),Gb=e=>{let{which:t,key:n}=e;if(Ub.has(t))return Ub.get(t);const r=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(r)?r:n.toLowerCase()},Kb=Symbol("shortcut-context");function qb(e){return Zs(e)&&e.__kindOf===Kb}const Xb=["meta","alt","shift","control"],Jb=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}}(),Qb=[];let Zb=0;const ey={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}},ty={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){xs(this._hooksStorage[e]||[],(t=>{this.hot.removeHook(e,t)}))},clearHooks(){ta(this._hooksStorage,((e,t)=>this.removeHooksByKey(t))),this._hooksStorage={}}};ea(ty,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});const ny=ty;function ry(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oy=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class iy{static get EDITOR_TYPE(){return"base"}constructor(e){ry(this,"hot",void 0),ry(this,"state",oy.VIRGIN),ry(this,"_opened",!1),ry(this,"_fullEditMode",!1),ry(this,"_closeCallback",null),ry(this,"TD",null),ry(this,"row",null),ry(this,"col",null),ry(this,"prop",null),ry(this,"originalValue",null),ry(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=this.isOpened()?this.state:oy.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let n,r,o,i;if(t){const e=this.hot.getSelectedLast();n=Math.max(Math.min(e[0],e[2]),0),r=Math.max(Math.min(e[1],e[3]),0),o=Math.max(e[0],e[2]),i=Math.max(e[1],e[3])}else[n,r,o,i]=[this.row,this.col,null,null];const s=this.hot.runHooks("modifyGetCellCoords",n,r,!1,"meta");Array.isArray(s)&&([n,r]=s),this.hot.populateFromArray(n,r,e,o,i,"edit")}beginEditing(e,t){if(this.state!==oy.VIRGIN)return;const n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col),i=()=>{if(this.state=oy.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:Es(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",i),n.view.scrollViewport(n._createCellCoords(r,o))||(this.hot.removeHook("afterScroll",i),i())}finishEditing(e,t,n){let r;if(n){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),n(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==oy.VIRGIN){if(this.state===oy.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const n=this.getValue();r=this.cellProperties.trimWhitespace?[["string"==typeof n?String.prototype.trim.call(n||""):n]]:[[n]],this.state=oy.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(e=>{this.state=oy.FINISHED,this.discardEditor(e)})):(this.state=oy.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((()=>{this._fireCallbacks(!0)}))}cancelChanges(){this.state=oy.FINISHED,this.discardEditor()}discardEditor(e){this.state===oy.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=oy.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=oy.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===oy.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:n,wtViewport:r}=this.hot.view._wt,o=this.hot.rootWindow,i=Ui(t),s=es(t),a=Ui(this.hot.rootElement),l=es(this.hot.rootElement),u=n.topOverlay.holder,c=n.inlineStartOverlay.holder,d=u!==o?u.scrollTop:0,h=c!==o?c.scrollLeft:0,p=o.innerWidth-a.left-l,{wtTable:f}=null!==(e=n.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=f.name,g=["master","inline_start"].includes(m)?d:0,b=["master","top","bottom"].includes(m)?h:0,y=i.top===a.top?0:1;let w=i.top-a.top-y-g,v=0;v=this.hot.isRtl()?o.innerWidth-i.left-s-p-1+b:i.left-a.left-1-b,["top","top_inline_start_corner"].includes(m)&&(w+=n.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(v+=Math.abs(n.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),C=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),_=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),M=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&C<=0||C===M)&&(w+=1),_<=0&&(v+=1);const x=r.rowsRenderCalculator.startPosition,k=r.columnsRenderCalculator.startPosition,R=Math.abs(n.inlineStartOverlay.getScrollPosition()),T=n.topOverlay.getScrollPosition(),E=ls(this.hot.rootDocument);let L=t.offsetTop;if(["inline_start","master"].includes(m)&&(L+=x-T),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=n.bottomOverlay.clone;L+=e.getWorkspaceHeight()-t.getHeight()-E}let I=t.offsetLeft;this.hot.isRtl()?(I=I>=0?f.getWidth()-t.offsetLeft:Math.abs(I),I+=k-R-s):["top","master","bottom"].includes(m)&&(I+=k-R);const P=o.getComputedStyle(this.TD),D=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",H=parseInt(P[D],10)>0?0:1,O=parseInt(P.borderTopWidth,10)>0?0:1,A=es(t)+H,N=ts(t)+O,j=us(u)?E:0,Y=cs(c)?E:0,F=this.hot.view.maximumVisibleElementWidth(I)-j+H;return{top:w,start:v,height:N,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(L)-Y+O,this.hot.view.getDefaultRowHeight()),width:A,maxWidth:F}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}Js(iy,ny);const sy={name:"editorCloseAndSaveByArrowKeys",callback(e,t,n){const r=e._getEditorManager(),o=r.getActiveEditor();o.isInFullEditMode()&&o.state===oy.EDITING||(r.closeEditorAndSaveChanges(),e.getSelected()&&(n.includes("arrowdown")?e.selection.transformStart(1,0):n.includes("arrowup")?e.selection.transformStart(-1,0):n.includes("arrowleft")?e.selection.transformStart(0,-1*e.getDirectionFactor()):n.includes("arrowright")&&e.selection.transformStart(0,e.getDirectionFactor())),t.preventDefault())}},ay={name:"editorCloseAndSaveByEnter",callback(e,t){const n=e._getEditorManager();n.closeEditorAndSaveChanges(t.ctrlKey||t.metaKey),n.moveSelectionAfterEnter(t)}},ly={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}},uy={name:"editorFastOpen",callback(e,t){const{highlight:n}=e.getSelectedRangeLast();n.isHeader()||e._getEditorManager().openEditor(null,t,!0)}},cy={name:"editorOpen",callback(e,t,n){const r=e._getEditorManager(),o=e.getSelectedRangeLast(),{highlight:i}=o;if(e.selection.isMultiple()&&!o.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const r=e.getSettings(),o="function"==typeof r.enterMoves?r.enterMoves(t):r.enterMoves;n.includes("shift")?e.selection.transformFocus(-o.row,-o.col):e.selection.transformFocus(o.row,o.col)}else i.isHeader()||(e.getSettings().enterBeginsEditing?r.cellProperties.readOnly?r.moveSelectionAfterEnter(t):r.openEditor(null,t,!0):r.moveSelectionAfterEnter(t),xa(t))}},dy={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}},hy={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:n}=e,{to:r}=e.getSelectedRangeLast(),o=Math.min(r.row+e.countVisibleRows(),e.countRows()-1),i=n.getNearestNotHiddenIndex(o,-1);if(null!==i){const n=e._createCellCoords(i,r.col),o=r.row-e.getFirstFullyVisibleRow(),s=Math.min(n.row-o,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(n),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},py={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}},fy={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}},my={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:n,from:r,to:o}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(r.col,o.col,n),t.markEndSource()}},gy={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast(),s=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(e.countRows()-1,-1),l=o.clone();l.row=r.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}},by={name:"extendCellsSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&r.isCell()){const s=n.getNearestNotHiddenIndex(e.countCols()-1,-1),a=o.clone();a.col=r.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,r.clone()),t.setRangeEnd(e._createCellCoords(i.row,s)),t.markEndSource()}}},yy={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&r.isCell()){const s=parseInt(e.getSettings().fixedColumnsStart,10),a=n.getNearestNotHiddenIndex(s,1),l=o.clone();l.col=r.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}},wy={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast(),s=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=o.clone();l.col=r.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}},vy={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast(),s=r.isHeader()&&t.isSelectedByColumnHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=o.clone();l.col=r.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),s&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}},Sy={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:n}=e,{highlight:r,from:o,to:i}=e.getSelectedRangeLast(),s=r.isHeader()&&t.isSelectedByRowHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(0,1),l=o.clone();l.row=r.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,r.clone()),s&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}},Cy={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:n,from:r,to:o}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(r.row,o.row,n),t.markEndSource()}},_y={name:"extendCellsSelectionUp",callback(e){const{selection:t}=e,{highlight:n}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(n.isCell()||n.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(-1,0),t.markEndSource())}},My={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:n}=e,{to:r}=e.getSelectedRangeLast(),o=Math.max(r.row-e.countVisibleRows(),0),i=n.getNearestNotHiddenIndex(o,1);if(null!==i){const n=e._createCellCoords(i,r.col),o=r.row-e.getFirstFullyVisibleRow(),s=Math.max(n.row-o,0);t.markSource("keyboard"),t.setRangeEnd(n),t.markEndSource(),e.scrollViewportTo({row:s,verticalSnap:"top",horizontalSnap:"start"})}}},xy={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(1,0),t.markEndSource()}},ky={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:n}=e.getSettings(),r=n?e.countColHeaders():0,{row:o}=e.getSelectedRangeLast().highlight;let i=e.countVisibleRows()+r;i=0===i?1:i,o===e.countRows()-1?i=1:o+i>e.countRows()&&(i=e.countRows()-o-1),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}},Ry={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:n}=e,r=e.getSettings(),o=e.getSelectedRangeLast(),i="function"==typeof r.tabMoves?r.tabMoves(t):r.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!o.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?n.transformFocus(-i.row,-i.col):n.transformStart(-i.row,-i.col),n.markEndSource()}},Ty={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:n}=e,r=e.getSettings(),o=e.getSelectedRangeLast(),i="function"==typeof r.tabMoves?r.tabMoves(t):r.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!o.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?n.transformFocus(i.row,i.col):n.transformStart(i.row,i.col),n.markEndSource()}},Ey={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}},Ly={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}},Iy={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeLast().highlight;let r=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===r&&(r=-1),t.setRangeStart(e._createCellCoords(r,n))}},Py={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:n,columnIndexMapper:r}=e,o=parseInt(e.getSettings().fixedRowsBottom,10),i=n.getNearestNotHiddenIndex(e.countRows()-o-1,-1),s=r.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,s)),t.markEndSource()}},Dy={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:n}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeLast().highlight.row,n.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}},Hy={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:n}=e,r=parseInt(e.getSettings().fixedColumnsStart,10),o=e.getSelectedRangeLast().highlight.row,i=n.getNearestNotHiddenIndex(r,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}},Oy={name:"moveCellSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:n}=e,r=e.getSelectedRangeLast().highlight.row;let o=n.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]);null===o&&(o=e.isRtl()?-1:-e.countRowHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,o)),t.markEndSource()}},Ay={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:n}=e,{row:r}=e.getSelectedRangeLast().highlight;let o=n.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===o&&(o=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,o)),t.markEndSource()}},Ny={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:n}=e.getSelectedRangeLast().highlight;let r=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===r&&(r=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(r,n)),t.markEndSource()}},jy={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:n,columnIndexMapper:r}=e,o=parseInt(e.getSettings().fixedRowsTop,10),i=parseInt(e.getSettings().fixedColumnsStart,10),s=n.getNearestNotHiddenIndex(o,1),a=r.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,a)),t.markEndSource()}},Yy={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}},Fy={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:n}=e.getSettings(),r=n?e.countColHeaders():0,{row:o}=e.getSelectedRangeLast().highlight;let i=e.countVisibleRows()+r;i=0===i?-1:-i,o===-r?i=-1:o+i<r&&(i=-(o+r)),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}},zy={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}},Wy={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeLast(),n=e.getFirstFullyVisibleRow()-1,r=e.getFirstFullyVisibleColumn()-1,o=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,s=e._createCellCoords(n,r),a=e._createCellCoords(o,i);if(!e._createCellRange(s,s,a).includes(t)&&(t.row>=0||t.col>=0)){const n={};if(t.col>=0){const r=Math.floor(e.countVisibleCols()/2);n.col=Math.max(t.col-r,0)}if(t.row>=0){const r=Math.floor(e.countVisibleRows()/2);n.row=Math.max(t.row-r,0)}e.scrollViewportTo({...n,verticalSnap:"top",horizontalSnap:"start"})}}},Vy={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}},By={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}},$y={name:"populateSelectedCellsData",callback(e){const t=e.getSelectedRange(),{row:n,col:r}=t[t.length-1].highlight.normalize(),o=e.getDataAtCell(n,r),i=new Map;for(let s=0;s<t.length;s++)t[s].forAll(((t,s)=>{if(t>=0&&s>=0&&(t!==n||s!==r)){const{readOnly:n}=e.getCellMeta(t,s);n||i.set(`${t}x${s}`,[t,s,o])}}));e.setDataAtCell(Array.from(i.values()))}},Uy=[ey,sy,ay,ly,uy,cy,dy,hy,py,fy,my,gy,by,yy,wy,vy,Sy,Cy,_y,My,xy,ky,Ry,Ty,Ey,Ly,Iy,Py,Dy,Hy,Oy,Ay,Ny,jy,Yy,Fy,zy,Wy,Vy,By,$y];function Gy(e){const t={};return Uy.forEach((n=>{let{name:r,callback:o}=n;t[r]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return o(e,...n)}})),t}function Ky(e){const t=e.getShortcutManager().addContext("editor"),n=Gy(e),r={group:Fb};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>n.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>n.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>n.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>n.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>n.editorCloseWithoutSaving()}],r)}function qy(e){const t=e.getShortcutManager().addContext("grid"),n=Gy(e),r={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return Ls(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:Yb};t.addShortcuts([{keys:[["F2"]],callback:e=>n.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>n.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>n.emptySelectedCells()}],{group:Fb,runOnlyIf:()=>Ls(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>n.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>n.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>n.populateSelectedCellsData(),runOnlyIf:()=>{var t,n;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(n=e.getSelectedRangeLast())||void 0===n?void 0:n.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>n.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>n.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>n.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>n.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>n.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>n.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>n.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>n.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>n.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>n.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>n.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>n.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>n.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>n.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>n.scrollToFocusedCell()}],r)}function Xy(e){const{classNames:t}=function(e,t){const n={element:void 0,classNames:[]};let r=e;for(;null!==r&&r!==e.ownerDocument.documentElement&&!n.element;){if("string"==typeof t&&r.classList.contains(t))n.element=r,n.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(r.classList).filter((e=>t.test(e)));e.length&&(n.element=r,n.classNames.push(...e))}r=r.parentElement}return n}(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()}let Jy=null;const Qy=new Map;function Zy(e,t){var n,r=this;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this;const s=new al(i);let a,l,u,c,d,h,p=!0;ep(o)&&Qh.set(this,!0),this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const f=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",m=["rtl","ltr"].includes(f)?f:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",m),this.isRtl=function(){return"rtl"===m},this.isLtr=function(){return!i.isRtl()},this.getDirectionFactor=function(){return i.isLtr()?1:-1},t.language=function(e){let t=lf(e);return Xm(t)||(t=Vm,uf(e)),t}(t.language);const g=Object.fromEntries(Object.entries(t).filter((e=>{let[t]=e;return!(Ua.getSingleton().isRegistered(t)||Ua.getSingleton().isDeprecated(t))}))),b=new _b(i,g,[xb,Tb]),y=b.getTableMeta(),w=b.getGlobalMeta(),v=Gl();this.container=this.rootDocument.createElement("div"),e.insertBefore(this.container,e.firstChild),tp(this)&&(function(e,t){const n=!Ps(e),r="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),o="15.3.0";let i,s="invalid",a="invalid";const l=function(e){let t=[][Ds],n=t;if(e[Ds]!==Ns("Z"))return!1;for(let t="",r="B<H4P+".split(""),o=Ns(r.shift());o;o=Ns(r.shift()||"A"))--o<""[Ds]?n|=(Os(`${Os(Hs(t)+(Hs(As(e,Math.abs(o),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=As(e,o,o?1===r[Ds]?9:8:6);return n===t}(e=js(e||""));if(n||r||l)if(l){const t=ws("29/04/2025","DD/MM/YYYY"),n=Math.floor(t.toDate().getTime()/864e5),r=Hs(As(js(u=e),Hs("12"),Ns("F")))/(Hs(As(js(u),Ns("B"),~~![][Ds]))||9);i=ws(864e5*(r+1),"x").format("MMMM DD, YYYY"),n>r?(s="expired",a="expired"):(s="valid",a="valid")}else r?(s="non_commercial",a="valid"):(s="invalid",a="invalid");else s="missing",a="missing";var u;if("undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(s="valid",a="valid"),Ys||"valid"===s||(Fs[s]({keyValidityDate:i,hotVersion:o})&&console["non_commercial"===s?"info":"warn"](Fs[s]({keyValidityDate:i,hotVersion:o})),Ys=!0),"valid"!==a&&t.parentNode&&zs[a]({keyValidityDate:i,hotVersion:o})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=zs[a]({keyValidityDate:i,hotVersion:o}),t.parentNode.insertBefore(e,t.nextSibling)}}(t.licenseKey,e),Ai(e,"ht-wrapper")),this.guid=`ht_${ci()}`,Qy.set(this.guid,this),this.columnIndexMapper=new af,this.rowIndexMapper=new af,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(e=>{i.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(e=>{i.runHooks("afterRowSequenceChange",e)})),s.addEventListener(this.rootDocument.documentElement,"compositionstart",(e=>{i.runHooks("beforeCompositionStart",e)})),l=new Mp(i),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let S=new tb(y,{rowIndexMapper:i.rowIndexMapper,columnIndexMapper:i.columnIndexMapper,countCols:()=>i.countCols(),countRows:()=>i.countRows(),propToCol:e=>a.propToCol(e),isEditorOpened:()=>!!i.getActiveEditor()&&i.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return r.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return r.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>i.getShortcutManager(),createCellCoords:(e,t)=>i._createCellCoords(e,t),createCellRange:(e,t,n)=>i._createCellRange(e,t,n),visualToRenderableCoords:e=>{const{row:t,col:n}=e;return i._createCellCoords(t>=0?i.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?i.columnIndexMapper.getRenderableFromVisualIndex(n):n)},renderableToVisualCoords:e=>{const{row:t,col:n}=e;return i._createCellCoords(t>=0?i.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?i.columnIndexMapper.getVisualFromRenderableIndex(n):n)},findFirstNonHiddenRenderableRow:(e,t)=>{const n=t>e?1:-1,r=Math.min(e,t),o=Math.max(e,t),s=i.rowIndexMapper.getNearestNotHiddenIndex(e,n);return null===s||1===n&&s>o||-1===n&&s<r?null:s>=0?i.rowIndexMapper.getRenderableFromVisualIndex(s):s},findFirstNonHiddenRenderableColumn:(e,t)=>{const n=t>e?1:-1,r=Math.min(e,t),o=Math.max(e,t),s=i.columnIndexMapper.getNearestNotHiddenIndex(e,n);return null===s||1===n&&s>o||-1===n&&s<r?null:s>=0?i.columnIndexMapper.getRenderableFromVisualIndex(s):s},isDisabledCellSelection:(e,t)=>e<0||t<0?i.getSettings().disableVisualSelection:i.getCellMeta(e,t).disableVisualSelection});this.selection=S;const C=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function _(e,t){const n="className"===e?i.rootElement:i.table;if(p)Ai(n,t);else{let r=[],o=[];w[e]&&(r=Array.isArray(w[e])?w[e]:Rs(w[e])),t&&(o=Array.isArray(t)?t:Rs(t));const i=ks(r,o),s=ks(o,r);i.length&&Ni(n,i),s.length&&Ai(n,s)}w[e]=t}function M(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function x(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function k(e,t,n){if(!e.length)return void n();const r=i.getActiveEditor(),o=new M;let s=!0;o.onQueueEmpty=()=>{r&&s&&r.cancelChanges(),n()};for(let n=e.length-1;n>=0;n--){const[r,l]=e[n],u=a.propToCol(l);let c;c=Number.isInteger(u)?i.getCellMeta(r,u):{...Object.getPrototypeOf(y),...y},i.getCellValidator(c)&&(o.addValidatorToQueue(),i.validateCell(e[n][3],c,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");!1===r&&!1===n.allowInvalid&&(s=!1,e.splice(t,1),n.valid=!0),o.removeValidatorFormQueue()}}(n,c),t))}o.checkIfQueueIsEmpty()}function R(e,t){for(let t=e.length-1;t>=0;t--){let n=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(y.allowInsertRow)for(;e[t][0]>i.countRows()-1;){const{delta:e}=a.createRow(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}if("array"===i.dataType&&(!y.columns||0===y.columns.length)&&y.allowInsertColumn)for(;a.propToCol(e[t][1])>i.countCols()-1;){const{delta:e}=a.createCol(void 0,void 0,{source:"auto"});if(0===e){n=!0;break}}n||a.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){u.adjustRowsAndCols(),i.runHooks("beforeChangeRender",e,t),c.closeEditor(),i.render(),c.prepareEditor(),i.view.adjustElementsSize(),i.runHooks("afterChange",e,t||"edit");const n=i.getActiveEditor();n&&Ls(n.refreshValue)&&n.refreshValue()}else i.render()}function T(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}function E(e,t){const n=i.runHooks("beforeChange",e,t||"edit"),r=e.filter((e=>null!==e));var o;if(!1===n||0===r.length)return null===(o=i.getActiveEditor())||void 0===o||o.cancelChanges(),[];for(let e=r.length-1;e>=0;e--){const[t,n,,o]=r[e],s=a.propToCol(n);let l;l=Number.isInteger(s)?i.getCellMeta(t,s):{...Object.getPrototypeOf(y),...y};const{type:u,checkedTemplate:c,uncheckedTemplate:d}=l;if("numeric"===u&&"string"==typeof o&&Nl(o,[","])&&(r[e][3]=x(o)),"checkbox"===u){const t=Es(o),n=t===Es(c),i=t===Es(d);(n||i)&&(r[e][3]=n?c:d)}}return r}this.columnIndexMapper.addLocalHook("cacheUpdated",C),this.rowIndexMapper.addLocalHook("cacheUpdated",C),this.selection.addLocalHook("afterSetRangeEnd",((e,t)=>{const n=oa(!1),r=this.selection.getSelectedRange(),{from:o,to:s}=r.current(),a=r.size()-1;this.runHooks("afterSelection",o.row,o.col,s.row,s.col,n,a),this.runHooks("afterSelectionByProp",o.row,i.colToProp(o.col),s.row,i.colToProp(s.col),n,a),t&&(!n.isTouched()||n.isTouched()&&!n.value)&&h.scrollTo(e);const l=S.isSelectedByRowHeader(),u=S.isSelectedByColumnHeader();l&&u?Ai(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?(Ni(this.rootElement,"ht__selection--columns"),Ai(this.rootElement,"ht__selection--rows")):u?(Ni(this.rootElement,"ht__selection--rows"),Ai(this.rootElement,"ht__selection--columns")):Ni(this.rootElement,["ht__selection--rows","ht__selection--columns"]),"shift"!==S.getSelectionSource()&&c.closeEditor(null),i.view.render(),c.prepareEditor()})),this.selection.addLocalHook("beforeSetFocus",(e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)})),this.selection.addLocalHook("afterSetFocus",(e=>{const t=oa(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&h.scrollTo(e),c.closeEditor(),i.view.render(),c.prepareEditor()})),this.selection.addLocalHook("afterSelectionFinished",(e=>{const t=e.length-1,{from:n,to:r}=e[t];this.runHooks("afterSelectionEnd",n.row,n.col,r.row,r.col,t),this.runHooks("afterSelectionEndByProp",n.row,i.colToProp(n.col),r.row,i.colToProp(r.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("afterDeselect",(()=>{c.closeEditor(),i.view.render(),Ni(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")})),this.selection.addLocalHook("beforeHighlightSet",(()=>this.runHooks("beforeSelectionHighlightSet"))).addLocalHook("beforeSetRangeStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeSetRangeStart",...t)})).addLocalHook("beforeSetRangeStartOnly",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeSetRangeStartOnly",...t)})).addLocalHook("beforeSetRangeEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeSetRangeEnd",...t)})).addLocalHook("beforeSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeSelectColumns",...t)})).addLocalHook("afterSelectColumns",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("afterSelectColumns",...t)})).addLocalHook("beforeSelectRows",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeSelectRows",...t)})).addLocalHook("afterSelectRows",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("afterSelectRows",...t)})).addLocalHook("beforeModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("modifyTransformStart",...t)})).addLocalHook("afterModifyTransformStart",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("afterModifyTransformStart",...t)})).addLocalHook("beforeModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("modifyTransformFocus",...t)})).addLocalHook("afterModifyTransformFocus",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("afterModifyTransformFocus",...t)})).addLocalHook("beforeModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("modifyTransformEnd",...t)})).addLocalHook("afterModifyTransformEnd",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("afterModifyTransformEnd",...t)})).addLocalHook("beforeRowWrap",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeRowWrap",...t)})).addLocalHook("beforeColumnWrap",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runHooks("beforeColumnWrap",...t)})).addLocalHook("insertRowRequire",(e=>this.alter("insert_row_above",e,1,"auto"))).addLocalHook("insertColRequire",(e=>this.alter("insert_col_start",e,1,"auto"))),u={alter(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const s=e=>{if(0===e.length)return[];const t=[...e];t.sort(((e,t)=>{let[n]=e,[r]=t;return n===r?0:n>r?1:-1}));const n=Cs(t,((e,t)=>{let[n,r]=t;const o=e[e.length-1],[i,s]=o,a=i+s;if(n<=a){const e=Math.max(r-(a-n),0);o[1]+=e}else e.push([n,r]);return e}),[t[0]]);return n};switch(e){case"insert_row_below":case"insert_row_above":const o=i.countSourceRows();if(y.maxRows===o)return;const l="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===l?o:0;const{delta:u,startPhysicalIndex:d}=a.createRow(t,n,{source:r,mode:l});S.shiftRows(i.toVisualRow(d),u);break;case"insert_col_start":case"insert_col_end":const h="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===h?i.countSourceCols():0;const{delta:p,startPhysicalIndex:f}=a.createCol(t,n,{source:r,mode:h});if(p){if(Array.isArray(y.colHeaders)){const e=[i.toVisualColumn(f),0];e.length+=p,Array.prototype.splice.apply(y.colHeaders,e)}S.shiftColumns(i.toVisualColumn(f),p)}break;case"remove_row":const m=e=>{let t=0;xs(e,(e=>{let[n,o]=e;const s=Ps(n)?i.countRows()-1:Math.max(n-t,0);if(Number.isInteger(n)&&(n=Math.max(n-t,0)),!a.removeRow(n,o,r))return;if(S.isSelected()){const{row:e}=i.getSelectedRangeLast().highlight;e>=n&&e<=n+o-1&&c.closeEditor(!0)}const l=i.countRows(),u=y.fixedRowsTop;u>=s+1&&(y.fixedRowsTop-=Math.min(o,u-s));const d=y.fixedRowsBottom;d&&s>=l-d&&(y.fixedRowsBottom-=Math.min(o,d)),0===l?S.deselect():"ContextMenu.removeRow"===r?S.refresh():S.shiftRows(n,-o),t+=o}))};Array.isArray(t)?m(s(t)):m([[t,n]]);break;case"remove_col":const g=e=>{let t=0;xs(e,(e=>{let[n,o]=e;const s=Ps(n)?i.countCols()-1:Math.max(n-t,0);let l=i.toPhysicalColumn(s);if(Number.isInteger(n)&&(n=Math.max(n-t,0)),!a.removeCol(n,o,r))return;if(S.isSelected()){const{col:e}=i.getSelectedRangeLast().highlight;e>=n&&e<=n+o-1&&c.closeEditor(!0)}0===i.countCols()?S.deselect():"ContextMenu.removeColumn"===r?S.refresh():S.shiftColumns(n,-o);const u=y.fixedColumnsStart;u>=s+1&&(y.fixedColumnsStart-=Math.min(o,u-s)),Array.isArray(y.colHeaders)&&(void 0===l&&(l=-1),y.colHeaders.splice(l,o)),t+=o}))};Array.isArray(t)?g(s(t)):g([[t,n]]);break;default:throw new Error(`There is no such action "${e}"`)}o||u.adjustRowsAndCols(),i.view.render(),i.view.adjustElementsSize()},adjustRowsAndCols(){const e=y.minRows,t=y.minSpareRows,n=y.minCols,r=y.minSpareCols;if(e){const t=i.countRows();t<e&&a.createRow(t,e-t,{source:"auto"})}if(t){const e=i.countEmptyRows(!0);if(e<t){const n=t-e,r=Math.min(n,y.maxRows-i.countSourceRows());a.createRow(i.countRows(),r,{source:"auto"})}}{let e;(n||r)&&(e=i.countEmptyCols(!0));let t=i.countCols();if(n&&!y.columns&&t<n){const r=n-t;e+=r,a.createCol(t,r,{source:"auto"})}if(r&&!y.columns&&"array"===i.dataType&&e<r){t=i.countCols();const n=r-e,o=Math.min(n,y.maxCols-t);a.createCol(t,o,{source:"auto"})}}},populateFromArray(e,t,n,r,o){let s,a,l,u;const c=[],d={},h=[],p=e.row,f=e.col;if(a=t.length,0===a)return!1;let m=0,g=0;switch(Zs(n)&&(m=n.col-f+1,g=n.row-p+1),o){case"shift_down":const o=Ss(t),b=o.length,w=Math.max(b,m),v=i.getData().slice(p),S=Ss(v).slice(f,f+w);for(l=0;l<w;l+=1)if(l<b){for(s=0,a=o[l].length;s<g-a;s+=1)o[l].push(o[l][s%a]);l<S.length?h.push(o[l].concat(S[l])):h.push(o[l].concat(new Array(v.length).fill(null)))}else h.push(o[l%b].concat(S[l]));i.populateFromArray(p,f,Ss(h));break;case"shift_right":const C=t.length,_=Math.max(C,g),M=i.getData().slice(p).map((e=>e.slice(f)));for(s=0;s<_;s+=1)if(s<C){for(l=0,u=t[s].length;l<m-u;l+=1)t[s].push(t[s][l%u]);if(s<M.length)for(let e=0;e<M[s].length;e+=1)t[s].push(M[s][e]);else t[s].push(...new Array(M[0].length).fill(null))}else t.push(t[s%a].slice(0,_).concat(M[s]));i.populateFromArray(p,f,t);break;default:d.row=e.row,d.col=e.col;let x,k=0,R=0,T=!0;const E=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const r=t[e%t.length];return null!==n?r[n%r.length]:r},L=t.length,I=n?n.row-e.row+1:0;for(a=n?I:Math.max(L,I),s=0;s<a&&!(n&&d.row>n.row&&I>L||!y.allowInsertRow&&d.row>i.countRows()-1||d.row>=y.maxRows);s++){const t=s-k,o=E(t).length,h=n?n.col-e.col+1:0;if(u=n?h:Math.max(o,h),d.col=e.col,x=i.getCellMeta(d.row,d.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!x.skipRowOnPaste){for(R=0,l=0;l<u&&!(n&&d.col>n.col&&h>o||!y.allowInsertColumn&&d.col>i.countCols()-1||d.col>=y.maxCols);l++){if(x=i.getCellMeta(d.row,d.col),("CopyPaste.paste"===r||"Autofill.fill"===r)&&x.skipColumnOnPaste){R+=1,d.col+=1,u+=1;continue}if(x.readOnly&&"UndoRedo.undo"!==r){d.col+=1;continue}let e=E(t,l-R),n=i.getDataAtCell(d.row,d.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===n&&(n=[]),null===n||"object"!=typeof n)T=!1;else{const t=Us(Array.isArray(n)?n:n[0]||n),r=Us(Array.isArray(e)?e:e[0]||e);Qs(t,r)||Array.isArray(t)&&Array.isArray(r)?e=qs(e):T=!1}else null!==n&&"object"==typeof n&&(T=!1);T&&c.push([d.row,d.col,e]),T=!0,d.col+=1}d.row+=1}else k+=1,d.row+=1,a+=1}i.setDataAtCell(c,null,null,r||"populateFromArray")}}},this.init=function(){l.setData(y.data),i.runHooks("beforeInit"),(ga()||ya())&&Ai(i.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new vp(this);const e=y.themeName||Xy(i.rootElement);i.useTheme(e),i.view.addClassNameToLicenseElement(i.getCurrentThemeName()),c=ml.getInstance(i,y,S),h=function(e){const{selection:t}=e;let n=!1,r=!1;return{resume(){r=!1},suspend(){r=!0},skipNextScrollCycle(){n=!0},scrollTo(o){var i;if(n||r)return void(n=!1);let s;t.isFocusSelectionChanged()?s=function(e){return t=>{e.scrollViewportTo(t.toObject(),(()=>{const{row:t,col:n}=e.getSelectedRangeLast().highlight;Nb(e.getCell(t,n,!0))}))}}(e):t.isSelectedByCorner()?s=()=>{}:t.isSelectedByRowHeader()?s=function(e){return t=>{const n=jb(e).getComputedRowTarget(t);e.scrollViewportTo({row:n},(()=>{const t=!!e.getSettings().rowHeaders;Nb(e.getCell(n,t?-1:0,!0))}))}}(e):t.isSelectedByColumnHeader()?s=function(e){return t=>{const n=jb(e).getComputedColumnTarget(t);e.scrollViewportTo({col:n},(()=>{const t=!!e.getSettings().colHeaders;Nb(e.getCell(t?-1:0,n,!0))}))}}(e):1===t.getSelectedRange().size()&&t.isMultiple()?s=function(e){return t=>{const n=jb(e),r={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(r,(()=>{const{row:t,col:n}=r;Nb(e.getCell(t,n,!0))}))}}(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(s=function(e){return t=>{const n=jb(e),r={row:n.getComputedRowTarget(t),col:n.getComputedColumnTarget(t)};e.scrollViewportTo(r,(()=>{const{row:t,col:n}=r;Nb(e.getCell(t,n,!0))}))}}(e)):s=function(e){return t=>{const n=e.selection.getSelectionSource(),{row:r,col:o}=t,i=()=>{Nb(e.getCell(r,o,!0))};if(r<0&&o>=0)e.scrollViewportTo({col:o},i);else if(o<0&&r>=0)e.scrollViewportTo({row:r},i);else{if("mouse"===n&&(o===e.view.getLastPartiallyVisibleColumn()||r===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:r,col:o},i)}}}(e),null===(i=s)||void 0===i||i(o)}}}(i),d=new Tl(i),tp(this)&&function(e){const t=function(e){return t=>{if(!t)return null;const n=Wb(e),r=Vb(e);return t.col<n.col&&(t.col=n.col),t.col>r.col&&(t.col=r.col),t.row<n.row&&(t.row=n.row),t.row>r.row&&(t.row=r.row),t}}(e);let n;const{activate:r,deactivate:o}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.rootElement,r=zb(e),o=zb(e);return r.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromTop())),o.addEventListener("focus",(()=>null==t?void 0:t.onFocusFromBottom())),n.firstChild.before(r),n.lastChild.after(o),{activate(){e._registerTimeout((()=>{r.tabIndex=0,o.tabIndex=0}),10)},deactivate(){e._registerTimeout((()=>{r.tabIndex=-1,o.tabIndex=-1}),10)}}}(e,{onFocusFromTop(){var r;const o=null!==(r=t(n))&&void 0!==r?r:Wb(e);o&&(e.runHooks("modifyFocusOnTabNavigation","from_above",o),e.selectCell(o.row,o.col)),e.listen()},onFocusFromBottom(){var r;const o=null!==(r=t(n))&&void 0!==r?r:Vb(e);o&&(e.runHooks("modifyFocusOnTabNavigation","from_below",o),e.selectCell(o.row,o.col)),e.listen()}}),i={wrapped:!1,flipped:!1};let s=!0,a=!1,l=!1;e.addHook("afterListen",(()=>o())),e.addHook("afterUnlisten",(()=>r())),e.addHook("afterSelection",((t,r,o,u,c)=>{var d;a&&(i.wrapped&&i.flipped||l)&&(l=!1,c.value=!0),s&&(n=null===(d=e.getSelectedRangeLast())||void 0===d?void 0:d.highlight)})),e.addHook("beforeRowWrap",((e,t,n)=>{i.wrapped=!0,i.flipped=n}));const u={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:Yb,group:"focusCatcher"};e.getShortcutManager().getContext("grid").addShortcuts([{...u,callback:()=>{const{tabNavigation:t}=e.getSettings();a=!0,e.getSelectedRangeLast()&&!t&&(s=!1),t||(l=!0)},position:"before"},{...u,callback:t=>{const{tabNavigation:r,autoWrapRow:o}=e.getSettings();if(a=!1,s=!0,!r||!e.selection.isSelected()||o&&i.wrapped&&i.flipped||!o&&i.wrapped)return o&&i.wrapped&&i.flipped&&(n=t.shiftKey?Wb(e):Vb(e)),i.wrapped=!1,i.flipped=!1,e.deselectCell(),e.unlisten(),!1;t.preventDefault()},position:"after"}])}(i),i.runHooks("init"),this.render(),p&&null===i.rootElement.offsetParent&&function(e){const t=new IntersectionObserver(((t,n)=>{t.forEach((t=>{t.isIntersecting&&null!==e.offsetParent&&(i.view._wt.wtOverlays.updateLastSpreaderSize(),i.render(),i.view.adjustElementsSize(),n.unobserve(e))}))}),{root:e.ownerDocument.body});t.observe(e)}(i.rootElement),"object"==typeof p&&(i.runHooks("afterChange",p[0],p[1]),p=!1),i.runHooks("afterInit")},this._createCellCoords=function(e,t){return i.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return i.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){let o=i.getCellValidator(t);function s(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!0===t.hidden)return void n(e);const r=t.visualCol,o=t.visualRow,s=i.getCell(o,r,!0);if(s&&"TH"!==s.nodeName){const e=i.rowIndexMapper.getRenderableFromVisualIndex(o),t=i.columnIndexMapper.getRenderableFromVisualIndex(r);i.view._wt.getSetting("cellRenderer",e,t,s)}n(e)}var a,l;l=o,"[object RegExp]"===Object.prototype.toString.call(l)&&(a=o,o=function(e,t){t(a.test(e))}),Ws(o)?(e=i.runHooks("beforeValidate",e,t.visualRow,t.prop,r),i._registerImmediate((()=>{o.call(t,e,(n=>{i&&(n=i.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,s(n),i.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):i._registerImmediate((()=>{t.valid=!0,s(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,r){const o=T(e,t,n),s=[];let u,c,d,h=r;for(u=0,c=o.length;u<c;u++){if("object"!=typeof o[u])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof o[u][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");d=o[u][1]>=this.countCols()?o[u][1]:a.colToProp(o[u][1]),s.push([o[u][0],d,l.getAtCell(this.toPhysicalRow(o[u][0]),o[u][1]),o[u][2]])}h||"object"!=typeof e||(h=t);const p=E(s,h);i.runHooks("afterSetDataAtCell",p,h),k(p,h,(()=>{R(p,h)}))},this.setDataAtRowProp=function(e,t,n,r){const o=T(e,t,n),s=[];let a,u,c=r;for(a=0,u=o.length;a<u;a++)s.push([o[a][0],o[a][1],l.getAtCell(this.toPhysicalRow(o[a][0]),o[a][1]),o[a][2]]);c||"object"!=typeof e||(c=t);const d=E(s,r);i.runHooks("afterSetDataAtRowProp",d,c),k(d,c,(()=>{R(d,c)}))},this.listen=function(){i&&!i.isListening()&&(Qy.forEach((e=>{i!==e&&e.unlisten()})),Jy=i.guid,i.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(Jy=null,i.runHooks("afterUnlisten"))},this.isListening=function(){return Jy===i.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];c.closeEditor(e),i.view.render(),t&&S.isSelected()&&c.prepareEditor()},this.populateFromArray=function(e,t,n,r,o,s,a){if("object"!=typeof n||"object"!=typeof n[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const l="number"==typeof r?i._createCellCoords(r,o):null;return u.populateFromArray(i._createCellCoords(e,t),n,l,s,a)},this.spliceCol=function(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return a.spliceCol(e,t,n,...o)},this.spliceRow=function(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return a.spliceRow(e,t,n,...o)},this.getSelected=function(){if(S.isSelected())return Ms(S.getSelectedRange(),(e=>{let{from:t,to:n}=e;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(S.isSelected())return Array.from(S.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!S.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];xs(S.getSelectedRange(),(e=>{if(e.isSingleHeader())return;const n=e.getTopStartCorner(),r=e.getBottomEndCorner();jl(n.row,r.row,(e=>{jl(n.col,r.col,(n=>{this.getCellMeta(e,n).readOnly||t.push([e,n,null])}))}))})),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||i.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||i.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!i.view)return;const e=i.view,{width:t,height:n}=e.getLastSize(),{width:r,height:o}=i.rootElement.getBoundingClientRect(),s=r!==t||o!==n;!1===i.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:r,height:o},s)||((s||e._wt.wtOverlays.scrollableElement===i.rootWindow)&&(e.setLastSize(r,o),i.render(),e.adjustElementsSize()),i.runHooks("afterRefreshDimensions",{width:t,height:n},{width:r,height:o},s))},this.updateData=function(e,t){Ab(e,(e=>{a=e}),(e=>{a=e,i.columnIndexMapper.fitToLength(this.getInitialColumnCount()),i.rowIndexMapper.fitToLength(this.countSourceRows()),u.adjustRowsAndCols(),S.refresh()}),{hotInstance:i,dataMap:a,dataSource:l,internalSource:"updateData",source:t,metaManager:b,firstRun:p})},this.loadData=function(e,t){Ab(e,(e=>{a=e}),(()=>{b.clearCellsCache(),i.initIndexMappers(),u.adjustRowsAndCols(),S.refresh(),p&&(p=[null,"loadData"])}),{hotInstance:i,dataMap:a,dataSource:l,internalSource:"loadData",source:t,metaManager:b,firstRun:p})},this.getInitialColumnCount=function(){const e=y.columns;let t=0;if(Array.isArray(e))t=e.length;else if(Ws(e))if("array"===i.dataType){const n=this.countSourceCols();for(let r=0;r<n;r+=1)e(r)&&(t+=1)}else"object"!==i.dataType&&"function"!==i.dataType||(t=a.colToPropCache.length);else if(Ls(y.dataSchema)){const e=a.getSchema();t=Array.isArray(e)?e.length:ra(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,r){return Is(e)?a.getAll():a.getRange(i._createCellCoords(e,t),i._createCellCoords(n,r),a.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,r){return a.getCopyableText(i._createCellCoords(e,t),i._createCellCoords(n,r))},this.getCopyableData=function(e,t){return a.getCopyable(e,a.colToProp(t))},this.getSchema=function(){return a.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(p?i.loadData:i.updateData).bind(this);let r,o,s=!1;if(Ls(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if(Ls(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if(Ls(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(r in e.language&&function(e){const t=lf(e);Xm(t)?(i.runHooks("beforeLanguageChange",t),w.language=t,i.runHooks("afterLanguageChange",t)):uf(e)}(e.language),e)if("data"===r||"language"===r);else if("className"===r)_("className",e.className);else if("tableClassName"===r&&i.table)_("tableClassName",e.tableClassName),i.view._wt.wtOverlays.syncOverlayTableClassNames();else if(Ua.getSingleton().isRegistered(r)||Ua.getSingleton().isDeprecated(r)){const t=e[r];Ws(t)?(Ua.getSingleton().addAsFixed(r,t,i),y[r]=t):Array.isArray(t)&&(Ua.getSingleton().add(r,t,i),y[r]=t)}else!t&&ia(e,r)&&(w[r]=e[r]);void 0===e.data&&void 0===y.data?n(null,"updateSettings"):void 0!==e.data?n(e.data,"updateSettings"):void 0!==e.columns&&(a.createMap(),i.initIndexMappers());const l=i.countCols(),c=y.columns;if(c&&Ws(c)&&(s=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||b.clearCache(),l>0)for(r=0,o=0;r<l;r++){if(c){const e=s?c(r):c[o];e&&b.updateColumnMeta(o,e)}o+=1}Ls(e.cell)&&ta(e.cell,(e=>{i.setCellMetaObject(e.row,e.col,e)})),i.runHooks("afterCellMetaReset");let d=i.rootElement.style.height;""!==d&&(d=parseInt(i.rootElement.style.height,10));let h=e.height;if(Ws(h)&&(h=h()),t&&i.rootElement.getAttribute("style")&&i.rootElement.setAttribute("data-initialstyle",i.rootElement.getAttribute("style")),null===h){const e=i.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?i.rootElement.setAttribute("style",e):(i.rootElement.style.height="",i.rootElement.style.overflow="")}else void 0!==h&&(i.rootElement.style.height=isNaN(h)?`${h}`:`${h}px`,i.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;Ws(t)&&(t=t()),i.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(i.view){i.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),i.view._wt.exportSettingsAsClassNames();const t=i.getCurrentThemeName(),n=ia(e,"themeName");t&&n&&t!==e.themeName&&(i.view.getStylesHandler().removeClassNames(),i.view.removeClassNameFromLicenseElement(t));const r=n&&e.themeName||Xy(i.rootElement);i.useTheme(r),i.view.addClassNameToLicenseElement(i.getCurrentThemeName())}i.runHooks("afterUpdateSettings",e)}u.adjustRowsAndCols(),i.view&&!p&&(i.render(),i.view._wt.wtOverlays.adjustElementsSize()),t||!i.view||""!==d&&""!==h&&void 0!==h||d===h||i.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=i.getSelectedLast();if(y.getValue){if(Ws(y.getValue))return y.getValue.call(i);if(e)return i.getData()[e[0][0]][y.getValue]}else if(e)return i.getDataAtCell(e[0],e[1])},this.getSettings=function(){return y},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){u.alter(e,t,n,r,o)},this.getCell=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r||void 0===o||void 0===r?null:i.view.getCellAtCoords(i._createCellCoords(o,r),n)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:n,col:r}=t;let o=n,s=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(s=this.columnIndexMapper.getVisualFromRenderableIndex(r)),i._createCellCoords(o,s)},this.colToProp=function(e){return a.colToProp(e)},this.propToCol=function(e){return a.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return a.get(e,a.colToProp(t))},this.getDataAtRowProp=function(e,t){return a.get(e,t)},this.getDataAtCol=function(e){const t=[],n=a.getRange(i._createCellCoords(0,e),i._createCellCoords(y.data.length-1,e),a.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let r=0;r<n[e].length;r+=1)t.push(n[e][r]);return t},this.getDataAtProp=function(e){const t=[],n=a.getRange(i._createCellCoords(0,a.propToCol(e)),i._createCellCoords(y.data.length-1,a.propToCol(e)),a.DESTINATION_RENDERER);for(let e=0;e<n.length;e+=1)for(let r=0;r<n[e].length;r+=1)t.push(n[e][r]);return t},this.getSourceData=function(e,t,n,r){let o;return o=void 0===e?l.getData():l.getByRange(i._createCellCoords(e,t),i._createCellCoords(n,r)),o},this.getSourceDataArray=function(e,t,n,r){let o;return o=void 0===e?l.getData(!0):l.getByRange(i._createCellCoords(e,t),i._createCellCoords(n,r),!0),o},this.getSourceDataAtCol=function(e){return l.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){const o=T(e,t,n),s=this.hasHook("afterSetSourceDataAtCell"),a=[];s&&xs(o,(e=>{let[t,n,r]=e;a.push([t,n,l.getAtCell(t,n),r])})),xs(o,(e=>{let[t,n,r]=e;l.setAtCell(t,n,r)})),s&&this.runHooks("afterSetSourceDataAtCell",a,r),this.render();const u=i.getActiveEditor();u&&Ls(u.refreshValue)&&u.refreshValue()},this.getSourceDataAtRow=function(e){return l.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return l.getAtCell(e,t)},this.getDataAtRow=function(e){return a.getRange(i._createCellCoords(e,0),i._createCellCoords(e,this.countCols()-1),a.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){const o=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],[i,s]=o;let[,,a,l]=o,u=null,c=null;void 0===a&&(a=i),void 0===l&&(l=s);let d="mixed";return jl(Math.max(Math.min(i,a),0),Math.max(i,a),(e=>{let t=!0;return jl(Math.max(Math.min(s,l),0),Math.max(s,l),(n=>{const r=this.getCellMeta(e,n);return c=r.type,u?t=u===c:u=c,t})),d=t?c:"mixed",t})),d},this.removeCellMeta=function(e,t,n){const[r,o]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let s=b.getCellMetaKeyValue(r,o,n);!1!==i.runHooks("beforeRemoveCellMeta",e,t,n,s)&&(b.removeCellMeta(r,o,n),i.runHooks("afterRemoveCellMeta",e,t,n,s)),s=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length>0&&!Array.isArray(r[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&b.removeRow(this.toPhysicalRow(e),t),r.length>0&&xs(r.reverse(),(t=>{b.createRow(this.toPhysicalRow(e)),xs(t,((t,n)=>this.setCellMetaObject(e,n,t)))})),i.render()},this.setCellMetaObject=function(e,t,n){"object"==typeof n&&ta(n,((n,r)=>{this.setCellMeta(e,t,r,n)}))},this.setCellMeta=function(e,t,n,r){if(!1===i.runHooks("beforeSetCellMeta",e,t,n,r))return;let o=e,s=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(s=this.toPhysicalColumn(t)),b.setCellMeta(o,s,n,r),i.runHooks("afterSetCellMeta",e,t,n,r)},this.getCellsMeta=function(){return b.getCellsMeta()},this.getCellMeta=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},r=this.toPhysicalRow(e),o=this.toPhysicalColumn(t);return null===r&&(r=e),null===o&&(o=t),b.getCellMeta(r,o,{visualRow:e,visualColumn:t,...n})},this.getColumnMeta=function(e){return b.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return b.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===i.dataType||y.columns)},this.getCellRenderer=function(e,t){const n="number"==typeof e?i.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?au(n):Is(n)?au("text"):n},this.getCellEditor=function(e,t){const n="number"==typeof e?i.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?ol(n):Is(n)?ol("text"):n},this.getCellValidator=function(e,t){const n="number"==typeof e?i.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?function(e){if("function"==typeof e)return e;if(!du(e))throw Error(`No registered validator found under "${e}" name`);return cu(e)}(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){const r=new M;e&&(r.onQueueEmpty=e);let o=i.countRows()-1;for(;o>=0;){if(void 0!==t&&-1===t.indexOf(o)){o-=1;continue}let e=i.countCols()-1;for(;e>=0;)void 0===n||-1!==n.indexOf(e)?(r.addValidatorToQueue(),i.validateCell(i.getDataAtCell(o,e),i.getCellMeta(o,e),(e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),e-=1):e-=1;o-=1}r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=y.rowHeaders,n=e;return void 0!==n&&(n=i.runHooks("modifyRowHeader",n)),void 0===n?(t=[],jl(i.countRows()-1,(e=>{t.push(i.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:Ws(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!y.rowHeaders},this.hasColHeaders=function(){if(void 0!==y.colHeaders&&null!==y.colHeaders)return!!y.colHeaders;for(let e=0,t=i.countCols();e<t;e++)if(i.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=i.runHooks("modifyColHeader",e);if(void 0===n){const e=[],t=i.countCols();for(let n=0;n<t;n++)e.push(i.getColHeader(n));return e}let r=y.colHeaders;const o=i.toPhysicalColumn(n),s=function(e){const t=[],n=i.countCols();let r=0;for(;r<n;r++)Ws(y.columns)&&y.columns(r)&&t.push(r);return t[e]}(o);return!1===y.colHeaders?r=null:y.columns&&Ws(y.columns)&&y.columns(s)&&y.columns(s).title?r=y.columns(s).title:y.columns&&y.columns[o]&&y.columns[o].title?r=y.columns[o].title:Array.isArray(y.colHeaders)&&void 0!==y.colHeaders[o]?r=y.colHeaders[o]:Ws(y.colHeaders)?r=y.colHeaders(o):y.colHeaders&&"string"!=typeof y.colHeaders&&"number"!=typeof y.colHeaders&&(r=function(e){let t,n=e+1,r="";for(;n>0;)t=(n-1)%26,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/26,10);return r}(n)),r=i.runHooks("modifyColumnHeaderValue",r,e,t),r},this._getColWidthFromSettings=function(e){let t;if(e>=0&&(t=i.getCellMeta(0,e).width),void 0!==t&&t!==y.width||(t=y.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let n=i._getColWidthFromSettings(e);return n=i.runHooks("modifyColWidth",n,e,t),void 0===n&&(n=Jd),n},this._getRowHeightFromSettings=function(e){const t=this.view.getDefaultRowHeight();let n=y.rowHeights;if(null!=n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return null!=n&&n<t?t:n},this.getRowHeight=function(e,t){let n=i._getRowHeightFromSettings(e);return n=i.runHooks("modifyRowHeight",n,e,t),n},this.countSourceRows=function(){return l.countRows()},this.countSourceCols=function(){return l.countFirstRowKeys()},this.countRows=function(){return a.getLength()},this.countCols=function(){const e=y.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return i.view._wt.drawn?i.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return i.view._wt.drawn?i.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return i.view._wt.drawn?i.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return i.view._wt.drawn?i.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return Yl(i.countRows()-1,(n=>{if(i.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return Yl(i.countCols()-1,(n=>{if(i.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return y.isEmptyRow.call(i,e)},this.isEmptyCol=function(e){return y.isEmptyCol.call(i,e)},this.selectCell=function(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!Is(e)&&!Is(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&h.suspend();const n=S.selectCells(e);return n&&t&&i.listen(),h.resume(),n},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return S.selectColumns(e,t,n)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;return S.selectRows(e,t,n)},this.deselectCell=function(){S.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;h.skipNextScrollCycle(),S.selectAll(e,t,n)};const L=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var n;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(n=arguments[4])||void 0===n||n});const{row:r,col:o,considerHiddenIndexes:s}=null!=e?e:{};let a=r,l=o;if(Ws(t)&&this.addHookOnce("afterScroll",t),void 0===s||s){const e=Number.isInteger(r)&&r>=0,t=Number.isInteger(o)&&o>=0,n=e?L(this.rowIndexMapper,r):void 0,s=t?L(this.columnIndexMapper,o):void 0;if(null===n||null===s)return!1;a=e?i.rowIndexMapper.getRenderableFromVisualIndex(n):r,l=t?i.columnIndexMapper.getRenderableFromVisualIndex(s):o}const u=Number.isInteger(a),c=Number.isInteger(l);let d=!1;return u&&a>=0&&c&&l>=0?d=i.view.scrollViewport(i._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):u&&a>=0&&(c&&l<0||!c)?d=i.view.scrollViewportVertically(a,e.verticalSnap):c&&l>=0&&(u&&a<0||!u)&&(d=i.view.scrollViewportHorizontally(l,e.horizontalSnap)),Ws(t)&&(d?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask((()=>t())))),d},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;Ws(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),n=this.scrollViewportTo(t.toObject());return n?this.view.render():Ws(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask((()=>e()))),n},this.destroy=function(){if(i._clearTimeouts(),i._clearImmediates(),i.view&&i.view.destroy(),l&&l.destroy(),l=null,this.getShortcutManager().destroy(),b.clearCache(),Qy.delete(this.guid),tp(i)){const e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}zi(i.rootElement),s.destroy(),c&&c.destroy(),i.batchExecution((()=>{i.rowIndexMapper.unregisterAll(),i.columnIndexMapper.unregisterAll(),v.getItems().forEach((e=>{let[,t]=e;t.destroy()})),v.clear(),i.runHooks("afterDestroy")}),!0),Ua.getSingleton().destroy(i),ta(i,((e,t,n)=>{var r;Ws(e)?n[t]=(r=t,()=>{throw new Error(`The "${r}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(n[t]=null)})),i.isDestroyed=!0,a&&a.destroy(),a=null,u=null,S=null,c=null,i=null},this.getActiveEditor=function(){return c.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return i.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return i.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return i.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return i.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return i.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return i.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return i.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return i.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return i.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return i.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return i.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return i.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return v.getItem(ui(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:v.getId(e)},this.getInstance=function(){return i},this.addHook=function(e,t,n){Ua.getSingleton().add(e,t,i,n)},this.hasHook=function(e){return Ua.getSingleton().has(e,i)||Ua.getSingleton().has(e)},this.addHookOnce=function(e,t,n){Ua.getSingleton().once(e,t,i,n)},this.removeHook=function(e,t){Ua.getSingleton().remove(e,t,i)},this.runHooks=function(e,t,n,r,o,s,a){return Ua.getSingleton().run(i,e,t,n,r,o,s,a)},this.getTranslatedPhrase=function(e,t){return Jm(y.language,e,t)},this.toHTML=()=>Ol(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",Ol(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{this.view.getStylesHandler().useTheme(e),this.runHooks("afterSetTheme",e,!!p)},this.getCurrentThemeName=()=>this.view.getStylesHandler().getThemeName(),this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){xs(this.timeouts,(e=>{clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){xs(this.immediates,(e=>{clearImmediate(e)}))},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask((()=>{this.isDestroyed||e()}))},this._getEditorManager=function(){return c};const I=(e=>{let{ownerWindow:t,handleEvent:n,beforeKeyDown:r,afterKeyDown:o}=e;const i=Gl({errorIdExists:e=>`The "${e}" context name is already registered.`});let s="grid";const a=()=>s,l=e=>i.getItem(e);let u=!1;const c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a();const r=qb(n)?n:l(n);let o=!1;if(!r.hasShortcut(t))return o;const i=r.getShortcuts(t);for(let n=0;n<i.length;n++){const{callback:r,runOnlyIf:s,preventDefault:a,stopPropagation:l,captureCtrl:d,forwardToContext:h}=i[n];if(!0===s(e)){if(u=d,o=!1===r(e,t),u=!1,a&&e.preventDefault(),l&&(xa(e),e.stopPropagation()),o)break;h&&c(e,t,h)}}return o},d=function(e,t,n,r,o){const i=e=>Xb.includes(e),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[];return e.altKey&&n.push("alt"),t&&(e.ctrlKey||e.metaKey)?n.push("control/meta"):(e.ctrlKey&&n.push("control"),e.metaKey&&n.push("meta")),e.shiftKey&&n.push("shift"),n},a=e=>{if(!1===t(e))return;if(!1===n(e)||229===e.keyCode||"string"!=typeof e.key||ka(e))return;const a=Gb(e);let l=[];i(a)||(l=s(e));const u=[a].concat(l);!o(e,u)&&(va()&&l.includes("meta")||!va()&&l.includes("control"))&&o(e,[a].concat(s(e,!0))),r(e)},l=e=>{if("string"==typeof e.key){const t=Gb(e);i(t)&&Jb.press(t)}},u=e=>{if("string"==typeof e.key){const t=Gb(e);i(t)&&Jb.release(t)}},c=()=>{Jb.releaseAll()};return{mount:()=>{let t=e;for(Zb+=1;t;)1===Zb&&(t.document.documentElement.addEventListener("keydown",l),Qb.push({event:"keydown",listener:l}),t.document.documentElement.addEventListener("keyup",u),Qb.push({event:"keyup",listener:u})),t.document.documentElement.addEventListener("keydown",a),t.document.documentElement.addEventListener("blur",c),t=Ti(t)},unmount:()=>{let t=e;for(Zb-=1;t;){if(0===Zb){for(let e=0;e<Qb.length;e++){const{event:n,listener:r}=Qb[e];t.document.documentElement.removeEventListener(n,r)}Qb.length=0}t.document.documentElement.removeEventListener("keydown",a),t.document.documentElement.removeEventListener("blur",c),t=Ti(t)}},isPressed:e=>Jb.isPressed(e),releasePressedKeys:()=>Jb.releaseAll()}}(t,n,r,o,c);return d.mount(),{addContext:e=>{const t=(e=>{const t=Gl({errorIdExists:t=>`The "${t}" shortcut is already registered in the "${e}" context.`}),n=function(){let{keys:e,callback:n,group:r,runOnlyIf:o=()=>!0,captureCtrl:i=!1,preventDefault:s=!0,stopPropagation:a=!1,relativeToGroup:l,position:u,forwardToContext:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Is(r))throw new Error("You need to define the shortcut's group.");if(!1===Ws(n))throw new Error("The shortcut's callback needs to be a function.");if(!1===Array.isArray(e))throw new Error(Ts`Pass the shortcut\'s keys as an array of arrays,\x20
- using the KeyboardEvent.key properties:\x20
- https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const d={callback:n,group:r,runOnlyIf:o,captureCtrl:i,preventDefault:s,stopPropagation:a};Ls(l)&&(d.relativeToGroup=l,d.position=u),qb(c)&&(d.forwardToContext=c),e.forEach((e=>{const n=$b(e);if(t.hasItem(n)){const e=t.getItem(n);let r=e.findIndex((e=>e.group===l));-1!==r?"before"===u?r-=1:r+=1:r=e.length,e.splice(r,0,d)}else t.addItem(n,[d])}))},r=e=>{const n=$b(e);t.removeItem(n)};return{__kindOf:Kb,addShortcut:n,addShortcuts:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((e=>{ta(t,((n,r)=>{!1===Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t[r])})),n(e)}))},getShortcuts:e=>{const n=$b(e),r=t.getItem(n);return Ls(r)?r.slice():[]},hasShortcut:e=>{const n=$b(e);return t.hasItem(n)},removeShortcutsByKeys:r,removeShortcutsByGroup:e=>{t.getItems().forEach((t=>{let[n,o]=t;const i=o.filter((t=>t.group!==e));0===i.length?r((e=>e.split("+"))(n)):(o.length=0,o.push(...i))}))}}})(e);return i.addItem(e,t),t},getActiveContextName:a,getContext:l,setActiveContextName:e=>{if(!i.hasItem(e))throw new Error(Ts`You've tried to activate the "${e}" shortcut context\x20
- that does not exist. Before activation, register the context using the "addContext" method.`);s=e},isCtrlPressed:()=>!u&&(d.isPressed("control")||d.isPressed("meta")),releasePressedKeys:()=>d.releasePressedKeys(),destroy:()=>d.unmount()}})({handleEvent:()=>i.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||i.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});var P;this.addHook("beforeOnCellMouseDown",(e=>{!1===e.ctrlKey&&!1===e.metaKey&&I.releasePressedKeys()})),this.getShortcutManager=function(){return I},this.getFocusManager=function(){return d},Zl().forEach((e=>{const t=eu(e);v.addItem(e,new t(this))})),P=i,[qy,Ky].forEach((e=>e(P))),I.setActiveContextName("grid"),Ua.getSingleton().run(i,"construct")}function ew(e,t,n){e.addEventListener(t,n,!1)}function tw(e,t,n){e.removeEventListener(t,n,!1)}function nw(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function rw(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,r=e.createTextNode(""),o=e.createElement("span");let i;function s(){var e,s;r.textContent=t.textContent(i),o.style.position="absolute",o.style.fontSize=nw(i).fontSize,o.style.fontFamily=nw(i).fontFamily,o.style.whiteSpace="pre",n.appendChild(o);const a=parseInt((null===(e=nw(i))||void 0===e?void 0:e.paddingInlineStart)||0,10),l=parseInt((null===(s=nw(i))||void 0===s?void 0:s.paddingInlineEnd)||0,10),u=o.clientWidth+a+l+1;n.removeChild(o);const c=i.style;c.height=`${t.minHeight}px`,t.minWidth>u?c.width=`${t.minWidth}px`:u>t.maxWidth?c.width=`${t.maxWidth}px`:c.width=`${u}px`;const d=i.scrollHeight?i.scrollHeight-1:0;t.minHeight>d?c.height=`${t.minHeight}px`:t.maxHeight<d?(c.height=`${t.maxHeight}px`,c.overflowY="visible"):c.height=`${d}px`}function a(){e.defaultView.setTimeout(s,0)}return{init:function(e,n){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=i.clientHeight;else{const n=parseInt(e.minHeight,10);isNaN(n)||(t.minHeight=n)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=i.clientHeight;else{const n=parseInt(e.maxHeight,10);isNaN(n)||(t.maxHeight=n)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=i.clientWidth;else{const n=parseInt(e.minWidth,10);isNaN(n)||(t.minWidth=n)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=i.clientWidth;else{const n=parseInt(e.maxWidth,10);isNaN(n)||(t.maxWidth=n)}o.firstChild||(o.className="autoResize",o.style.display="inline-block",o.appendChild(r))}(n),"TEXTAREA"===i.nodeName&&(i.style.resize="none",i.style.height=`${t.minHeight}px`,i.style.minWidth=`${t.minWidth}px`,i.style.maxWidth=`${t.maxWidth}px`,i.style.overflowY="hidden"),l&&(ew(i,"input",s),ew(i,"keydown",a)),s()},resize:s,unObserve(){tw(i,"input",s),tw(i,"keydown",a)}}}function ow(e,t){const n=os(t),r=t.value.split("\n");let o=n,i=0;for(let t=0;t<r.length;t++){const s=r[t];0!==t&&(i+=r[t-1].length+1);const a=i+s.length;if("home"===e?o=i:"end"===e&&(o=a),n<=a)break}ss(t,o)}function iw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}new Set;const sw="ht_editor_hidden",aw="textEditor";class lw extends iy{static get EDITOR_TYPE(){return"text"}constructor(e){super(e),iw(this,"eventManager",new al(this)),iw(this,"autoResize",rw(this.hot.rootDocument)),iw(this,"TEXTAREA",void 0),iw(this,"textareaStyle",void 0),iw(this,"TEXTAREA_PARENT",void 0),iw(this,"textareaParentStyle",void 0),iw(this,"layerClass",void 0),this.eventManager=new al(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",(()=>this.destroy()))}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),Ri(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,n,r,o,i){const s=this.state;if(super.prepare(e,t,n,r,o,i),!i.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=i;e&&!this.isOpened()&&(this.TEXTAREA.value=""),s===oy.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===oy.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),ss(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),ji(this.TEXTAREA,[["data-hot-input",""],mi(-1)]),Ai(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),Ai(this.TEXTAREA_PARENT,"handsontableInputHolder"),Oi(this.TEXTAREA_PARENT,this.layerClass)&&Ni(this.TEXTAREA_PARENT,this.layerClass),Ai(this.TEXTAREA_PARENT,sw),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){da.edge.value&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",Ni(this.TEXTAREA_PARENT,this.layerClass),Ai(this.TEXTAREA_PARENT,sw)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;jl(e.length-1,(n=>{if(Oi(e[n],"handsontableEditor"))return t=!0,!1})),Oi(this.TEXTAREA_PARENT,sw)&&Ni(this.TEXTAREA_PARENT,sw),t?(this.layerClass="ht_editor_visible",Ai(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),Ai(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==oy.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:n,width:r,maxWidth:o,height:i,maxHeight:s}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${n}px`,this.showEditableElement();const a=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=a.fontSize,this.TEXTAREA.style.fontFamily=a.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(r,o),minHeight:Math.min(i,s),maxWidth:o,maxHeight:s},!0)}bindEvents(){ba()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",(()=>this.finishEditing(!1))),this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>{this.refreshDimensions(),this.state===oy.EDITING&&this.focus()})),this.addHook("afterRowResize",(()=>{this.refreshDimensions(),this.state===oy.EDITING&&this.focus()}))}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>Ls(this.hot.getSelected()),group:aw},n=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(n(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(n(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(n(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[n]=t;ow(n,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[n]=t;ow(n,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(aw)}}function uw(e,t,n,r,o,i,s){const a=s.ariaTags,l=[],u=[],c=[],d=[];s.className&&Ai(t,s.className),s.readOnly?(l.push(s.readOnlyCellClassName),a&&d.push(["aria-readonly","true"])):a&&c.push("aria-readonly"),!1===s.valid&&s.invalidCellClassName?(l.push(s.invalidCellClassName),a&&d.push(["aria-invalid","true"])):(u.push(s.invalidCellClassName),a&&c.push("aria-invalid")),!1===s.wordWrap&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!i&&s.placeholder&&l.push(s.placeholderCellClassName),Ni(t,u),Ai(t,l),Yi(t,c),ji(t,d)}function cw(e,t,n,r,o,i,s){uw.apply(this,[e,t,n,r,o,i,s]);let a=i;!a&&s.placeholder&&(a=s.placeholder),a=Es(a),s.trimWhitespace&&(a=a.trim()),Bi(t,a)}uw.RENDERER_TYPE="base",cw.RENDERER_TYPE="text";const dw={CELL_TYPE:"text",editor:lw,renderer:cw};function hw(e,t){const n=new Zy(e,t||{},Zh);return n.init(),n}ab(dw),hw.editors={BaseEditor:iy},hw.Core=function(e){return new Zy(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Zh)},hw.DefaultSettings=hb(),hw.hooks=Ua.getSingleton(),hw.CellCoords=Nc,hw.CellRange=Vc,hw.packageName="handsontable",hw.buildDate="24/04/2025 10:59:00",hw.version="15.3.0",hw.languages={dictionaryKeys:Wm,getLanguageDictionary:qm,getLanguagesDictionaries:function(){return Gm()},registerLanguageDictionary:Km,getTranslatedPhrase:Jm};const pw=hw;function fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mw(e,t,n){return t=vw(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cw()?Reflect.construct(t,n||[],vw(e).constructor):t.apply(e,n))}function gw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(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,kw(r.key),r)}}function yw(e,t,n){return t&&bw(e.prototype,t),n&&bw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ww(e,t,n){return(t=kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(e){return vw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vw(e)}function Sw(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mw(e,t)}function Cw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cw=function(){return!!e})()}function _w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mw(e,t){return Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mw(e,t)}function xw(e){return function(e){if(Array.isArray(e))return fw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kw(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var Rw=null,Tw="global";function Ew(e,n){var r=t.Children.toArray(e),o=t.Children.count(e),i=null;return 0!==o&&(i=1===o&&r[0].props[n]?r[0]:r.find((function(e){return void 0!==e.props[n]}))),i||null}function Lw(e){return e?e.type.WrappedComponent?e.type.WrappedComponent:e.type:null}function Iw(e,n){if(void 0===e||null===n)return null;var r=Dw(n.props,!1);return r.className="".concat("hot-wrapper-editor-container"," ").concat(r.className),ao.createPortal(t.createElement("div",Object.assign({},r),n),e.body)}function Pw(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tw,o=Ew(e,"hot-editor"),i=Lw(o);return o?t.cloneElement(o,{emitEditorInstance:function(e,t){n.get(i)||n.set(i,new Map),n.get(i).set(null!=t?t:Tw,e)},editorColumnScope:r,isEditor:!0}):null}function Dw(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{id:e.id||(t?"hot-"+Math.random().toString(36).substring(5):void 0),className:e.className||"",style:e.style||{}}}var Hw=function(){return yw((function e(){gw(this,e)}),null,[{key:"getSettings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prevProps,r=void 0===n?{}:n,o=t.isInit,i=void 0!==o&&o,s=t.initOnlySettingKeys,a=void 0===s?[]:s,l=function(t){return!(i||!a.includes(t))&&r[t]===e[t]},u={};if(e.settings){var c=e.settings;for(var d in c)c.hasOwnProperty(d)&&!l(d)&&(u[d]=c[d])}for(var h in e)"settings"!==h&&"children"!==h&&!l(h)&&e.hasOwnProperty(h)&&(u[h]=e[h]);return u}}])}(),Ow=function(e){function n(){return gw(this,n),mw(this,n,arguments)}return Sw(n,e),yw(n,[{key:"getSettingsProps",value:function(){var e=this;return this.internalProps=["_componentRendererColumns","_emitColumnSettings","_columnIndex","_getChildElementByType","_getRendererWrapper","_getEditorClass","_getEditorCache","_getOwnerDocument","hot-renderer","hot-editor","children"],Object.keys(this.props).filter((function(t){return!e.internalProps.includes(t)})).reduce((function(t,n){return t[n]=e.props[n],t}),{})}},{key:"getLocalEditorElement",value:function(){return Pw(this.props.children,this.props._getEditorCache(),this.props._columnIndex)}},{key:"createColumnSettings",value:function(){var e=this.props._getChildElementByType(this.props.children,"hot-renderer"),t=this.getLocalEditorElement();this.columnSettings=Hw.getSettings(this.getSettingsProps()),null!==e&&(this.columnSettings.renderer=this.props._getRendererWrapper(e),this.props._componentRendererColumns.set(this.props._columnIndex,!0)),null!==t&&(this.columnSettings.editor=this.props._getEditorClass(t,this.props._columnIndex))}},{key:"emitColumnSettings",value:function(){this.props._emitColumnSettings(this.columnSettings,this.props._columnIndex)}},{key:"componentDidMount",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"componentDidUpdate",value:function(){this.createColumnSettings(),this.emitColumnSettings()}},{key:"render",value:function(){var e=Iw(this.props._getOwnerDocument(),this.getLocalEditorElement());return t.createElement(t.Fragment,null,e)}}])}(t.Component),Aw=function(e){function n(){var e;return gw(this,n),(e=mw(this,n,arguments)).state={portals:[]},e}return Sw(n,e),yw(n,[{key:"render",value:function(){return t.createElement(t.Fragment,null,this.state.portals)}}])}(t.Component);function Nw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jw,Yw,Fw,zw,Ww={exports:{}};Ww.exports=function(){if(zw)return Fw;zw=1;var e=Yw?jw:(Yw=1,jw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Fw=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fw}()();var Vw=Nw(Ww.exports),Bw=function(e){function n(){var e;return gw(this,n),(e=mw(this,n,arguments)).id=null,e.__hotInstance=null,e.hotElementRef=null,e.columnSettings=[],e.renderersPortalManager=null,e.portalCache=new Map,e.portalContainerCache=new Map,e.renderedCellCache=new Map,e.editorCache=new Map,e.componentRendererColumns=new Map,e}return Sw(n,e),yw(n,[{key:"hotInstance",get:function(){return!this.__hotInstance||this.__hotInstance&&!this.__hotInstance.isDestroyed?this.__hotInstance:(console.warn("The Handsontable instance bound to this component was destroyed and cannot be used properly."),null)},set:function(e){this.__hotInstance=e}},{key:"_isHotInstanceDestroyed",value:function(){return this.__hotInstance&&this.__hotInstance.isDestroyed}},{key:"getPortalContainerCache",value:function(){return this.portalContainerCache}},{key:"getRenderedCellCache",value:function(){return this.renderedCellCache}},{key:"getEditorCache",value:function(){return this.editorCache}},{key:"clearCache",value:function(){this.getRenderedCellCache().clear(),this.componentRendererColumns.clear()}},{key:"getOwnerDocument",value:function(){return"undefined"!=typeof window?this.hotElementRef?this.hotElementRef.ownerDocument:document:null}},{key:"setHotElementRef",value:function(e){this.hotElementRef=e}},{key:"getRendererWrapper",value:function(e){var n=this;return function(r,o,i,s,a,l,u){var c=n.getRenderedCellCache(),d=n.getPortalContainerCache(),h="".concat(i,"-").concat(s),p=r.guid,f="".concat(p,"-").concat(h),m="".concat(h,"-").concat(p);if(c.has(h)&&(o.innerHTML=c.get(h).innerHTML),o&&!o.getAttribute("ghost-table")){for(var g=n.portalCache.get(m),b=d.get(f);o.firstChild;)o.removeChild(o.firstChild);if(g&&b)o.appendChild(b);else{var y=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;r||(r=document),Rw||(Rw=r.createDocumentFragment());var s=null!=i?i:r.createElement("DIV");Rw.appendChild(s);var a=t.cloneElement(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_w(Object(n),!0).forEach((function(t){ww(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({key:"".concat(n.row,"-").concat(n.col)},n));return{portal:ao.createPortal(a,s,o),portalContainer:s}}(e,{TD:o,row:i,col:s,prop:a,value:l,cellProperties:u,isRenderer:!0},o.ownerDocument,m,b),w=y.portal,v=y.portalContainer;d.set(f,v),o.appendChild(v),n.portalCache.set(m,w)}}return c.set(h,o),o}}},{key:"getEditorClass",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tw,r=Lw(e),o=null===(t=this.getEditorCache().get(r))||void 0===t?void 0:t.get(n);return this.makeEditorClass(o)}},{key:"makeEditorClass",value:function(e){var t=function(t){function n(t){var r;return gw(this,n),r=mw(this,n,[t]),e.hotCustomEditorInstance=r,r.editorComponent=e,r}return Sw(n,t),yw(n,[{key:"focus",value:function(){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(){}},{key:"open",value:function(){}},{key:"close",value:function(){}}])}(pw.editors.BaseEditor);return Object.getOwnPropertyNames(pw.editors.BaseEditor.prototype).forEach((function(n){"constructor"!==n&&(t.prototype[n]=function(){for(var t,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(t=e[n]).call.apply(t,[e].concat(o))})})),t}},{key:"getGlobalRendererElement",value:function(){return Ew(this.props.children,"hot-renderer")}},{key:"getGlobalEditorElement",value:function(){return Pw(this.props.children,this.getEditorCache())}},{key:"createNewGlobalSettings",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._isHotInstanceDestroyed()?[]:(null===(e=this.hotInstance)||void 0===e||null===(e=e.getSettings())||void 0===e?void 0:e._initOnlySettings)||[],s=Hw.getSettings(this.props,{prevProps:o,isInit:r,initOnlySettingKeys:i}),a=this.getGlobalRendererElement(),l=this.getGlobalEditorElement();return s.columns=this.columnSettings.length?this.columnSettings:s.columns,l?s.editor=this.getEditorClass(l,Tw):this.props.editor||null!==(t=this.props.settings)&&void 0!==t&&t.editor?s.editor=this.props.editor||this.props.settings.editor:s.editor=ol("text"),a?(s.renderer=this.getRendererWrapper(a),this.componentRendererColumns.set("global",!0)):this.props.renderer||null!==(n=this.props.settings)&&void 0!==n&&n.renderer?s.renderer=this.props.renderer||this.props.settings.renderer:s.renderer=au("text"),s}},{key:"displayAutoSizeWarning",value:function(e){var t,n;this.hotInstance&&(null!==(t=this.hotInstance.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||null!==(n=this.hotInstance.getPlugin("autoColumnSize"))&&void 0!==n&&n.enabled)&&this.componentRendererColumns.size>0&&function(){var e;"undefined"!=typeof console&&(e=console).warn.apply(e,arguments)}("Your `HotTable` configuration includes `autoRowSize`/`autoColumnSize` options, which are not compatible with the component-based renderers`. Disable `autoRowSize` and `autoColumnSize` to prevent row and column misalignment.")}},{key:"setHotColumnSettings",value:function(e,t){this.columnSettings[t]=e}},{key:"handsontableBeforeViewRender",value:function(){this.portalCache.clear(),this.getRenderedCellCache().clear()}},{key:"handsontableAfterViewRender",value:function(){this.renderersPortalManager.setState({portals:xw(this.portalCache.values())})}},{key:"updateHot",value:function(e){this.hotInstance&&this.hotInstance.updateSettings(e,!1)}},{key:"setRenderersPortalManagerRef",value:function(e){this.renderersPortalManager=e}},{key:"componentDidMount",value:function(){var e=this,t=this.createNewGlobalSettings(!0);this.hotInstance=new pw.Core(this.hotElementRef,t),this.hotInstance.addHook("beforeViewRender",(function(){return e.handsontableBeforeViewRender()})),this.hotInstance.addHook("afterViewRender",(function(){return e.handsontableAfterViewRender()})),this.hotInstance.init(),this.displayAutoSizeWarning(t)}},{key:"componentDidUpdate",value:function(e){this.clearCache();var t=this.createNewGlobalSettings(!1,e);this.updateHot(t),this.displayAutoSizeWarning(t)}},{key:"componentWillUnmount",value:function(){this.clearCache(),this.hotInstance&&this.hotInstance.destroy()}},{key:"render",value:function(){var e=this,n=t.Children.toArray(this.props.children).filter((function(e){return function(e){return e.type===Ow}(e)})).map((function(n,r){return t.cloneElement(n,{_componentRendererColumns:e.componentRendererColumns,_emitColumnSettings:e.setHotColumnSettings.bind(e),_columnIndex:r,_getChildElementByType:Ew.bind(e),_getRendererWrapper:e.getRendererWrapper.bind(e),_getEditorClass:e.getEditorClass.bind(e),_getOwnerDocument:e.getOwnerDocument.bind(e),_getEditorCache:e.getEditorCache.bind(e),children:n.props.children})})),r=Dw(this.props),o=Iw(this.getOwnerDocument(),this.getGlobalEditorElement());return t.createElement(t.Fragment,null,t.createElement("div",Object.assign({ref:this.setHotElementRef.bind(this)},r),n),t.createElement(Aw,{ref:this.setRenderersPortalManagerRef.bind(this)}),o)}}],[{key:"version",get:function(){return"15.3.0"}}])}(t.Component);Bw.propTypes={style:Vw.object,id:Vw.string,className:Vw.string};var $w=["children"],Uw=t.forwardRef((function(e,n){var r,o=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$w),s="function"==typeof t.useId?t.useId():void 0,a=null!==(r=i.id)&&void 0!==r?r:s;return t.createElement(Bw,Object.assign({id:a},i,{ref:n}),o)}));Uw.version=Bw.version,t.Component;const Gw="handsontableEditor";class Kw extends lw{static get EDITOR_TYPE(){return"handsontable"}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),ss(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),this.refreshDimensions()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,n,r,o,i){super.prepare(e,t,n,r,o,i);const s=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const n=this.getSourceData(t.row,t.col);void 0!==n&&s.setValue(n),s.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&Gs(a,i.handsontable),this.htOptions=a}beginEditing(e,t){const n=this.hot.getSettings().onBeginEditing;n&&!1===n()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,n){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedLast()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,n)}getHeight(){return this.htEditor.view.getTableHeight()+1}getWidth(){return this.htEditor.view.getTableWidth()}assignHooks(){this.hot.addHook("afterDestroy",(()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()})),this.hot.addHook("afterSetTheme",((e,t)=>{var n;t||null===(n=this.htEditor)||void 0===n||n.useTheme(e)}))}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:Gw,relativeToGroup:Fb,position:"before"},n=(e,t)=>{const n=this.htEditor;if(void 0!==e&&(e<0||n.flipped&&e>n.countRows()-1?n.deselectCell():n.selectCell(e,0),n.getData().length))return t.preventDefault(),xa(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let r,o;return!t.getSelectedLast()&&t.flipped?r=t.countRows()-1:t.getSelectedLast()&&(t.flipped?(o=t.getSelectedLast()[0],r=Math.max(0,o-1)):(o=t.getSelectedLast()[0],r=o-1)),n(r,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let r,o;if(t.getSelectedLast()||t.flipped){if(t.getSelectedLast())if(t.flipped)r=t.getSelectedLast()[0]+1;else if(!t.flipped){const e=t.countRows()-1;o=t.getSelectedLast()[0],r=Math.min(e,o+1)}}else r=0;return n(r,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(Gw)}}function qw(e,t,n){Xw(e,t),t.set(e,n)}function Xw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jw(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qw(e,t){return e.get(Zw(e,t))}function Zw(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var ev=new WeakMap,tv=new WeakMap,nv=new WeakSet;class rv extends Kw{constructor(){var e;super(...arguments),Xw(this,e=nv),e.add(this),Jw(this,"query",null),Jw(this,"strippedChoices",[]),Jw(this,"rawChoices",[]),qw(this,ev,this.hot.guid.slice(0,9)),qw(this,tv,Vs((()=>{this.focus()}),100)),Jw(this,"sortByRelevance",(function(e,t,n){const r=[],o=[],i=e.length;let s,a,l,u,c=t.length;if(0===i){for(l=0;l<c;l++)o.push(l);return o}for(l=0;l<c;l++){if(a=pi(Es(t[l])),n)u=a.indexOf(e);else{const t=this.cellProperties.locale;u=a.toLocaleLowerCase(t).indexOf(e.toLocaleLowerCase(t))}-1!==u&&(s=a.length-u-i,r.push({baseIndex:l,index:u,charsLeft:s,value:a}))}for(r.sort(((e,t)=>{if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0})),l=0,c=r.length;l<c;l++)o.push(r[l].baseIndex);return o}))}static get EDITOR_TYPE(){return"autocomplete"}getValue(){const e=this.rawChoices.find((e=>this.stripValueIfNeeded(e)===this.TEXTAREA.value));return Ls(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),Ai(this.htContainer,"autocompleteEditor"),Ai(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&ji(this.TEXTAREA,[["type","text"],["role","combobox"],bi("listbox"),["aria-autocomplete","list"]])}prepare(e,t,n,r,o,i){var s;super.prepare(e,t,n,r,o,i),this.hot.getSettings().ariaTags&&ji(this.TEXTAREA,[Ci("false"),(s=`${Qw(ev,this)}-listbox-${e}-${t}`,["aria-controls",s])])}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,n=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,r=null==n?void 0:n.length,{row:o,col:i}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",(e=>this.onBeforeKeyDown(e))),this.htEditor.addHook("afterScroll",Qw(tv,this)),this.htEditor.updateSettings({colWidths:e?[es(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,o,i,s,a,l,u)=>{cw(e,o,i,s,a,l,u);const{filteringCaseSensitive:c,allowHtml:d,locale:h}=this.cellProperties,p=this.query;let f,m,g=Es(l);var b;g&&!d&&(f=!0===c?g.indexOf(p):g.toLocaleLowerCase(h).indexOf(p.toLocaleLowerCase(h)),-1!==f&&(m=g.substr(f,p.length),g=g.replace(m,`<strong>${m}</strong>`))),t&&ji(o,[["role","option"],...n?[(b=r,["aria-setsize",b])]:[],...n?[xi(n.indexOf(l)+1)]:[],["id",`${this.htEditor.rootElement.id}_${i}-${s}`]]),o.innerHTML=g},afterSelectionEnd:(e,n)=>{if(t){const t=e=>{var t;ji(e,[["aria-selected","true"]]),ji(this.TEXTAREA,...(t=e.id,["aria-activedescendant",t]))},r=this.htEditor.getCell(e,n,!0);null!==r?t(r):this.htEditor.addHookOnce("afterScrollVertically",(()=>{const r=this.htEditor.getCell(e,n,!0);t(r)}))}}}),t&&(ji(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,"role","presentation"),ji(this.htEditor.rootElement,[["role","listbox"],["aria-live","polite"],Mi("text"),["id",`${Qw(ev,this)}-listbox-${o}-${i}`]]),ji(this.TEXTAREA,...Ci("true"))),this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}))}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&ji(this.TEXTAREA,[Ci("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,(e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))})):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=os(this.TEXTAREA),n=(r=this.TEXTAREA).selectionEnd?r.selectionEnd:0;var r;const o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter;let s=null,a=null,l=e;o&&(s=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),l,this.cellProperties.filteringCaseSensitive));const u=Array.isArray(s)?s.length:0;if(!1===i)u&&(a=s[0]);else{const e=[];for(let t=0,n=l.length;t<n&&!(o&&u<=t);t++)u?e.push(l[s[t]]):e.push(l[t]);a=0,l=e}this.strippedChoices=l,0===l.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData(Ss([l])),l.length>0&&(this.updateDropdownDimensions(),this.flipDropdownIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(a)),this.hot.listen(),ss(this.TEXTAREA,t,t===n?void 0:n)}flipDropdownIfNeeded(){const e=this.getEditedCellRect(),t=e.height;let n=e.top;if(this.hot.view.isVerticallyScrollableByWindow()){const e=this.hot.view.getTableOffset().top-this.hot.rootWindow.scrollY;n=Math.max(n+e,0)}const r=this.getHeight(),o=this.hot.view.getWorkspaceHeight()-n-t,i=r>o&&n>o+t;return i?this.flipDropdown(r):this.unflipDropdown(),this.limitDropdownIfNeeded(i?n:o,r),i}limitDropdownIfNeeded(e,t){if(t>e){let n=0,r=0,o=0,i=null;do{o=this.htEditor.getRowHeight(r)||this.htEditor.view.getDefaultRowHeight(),n+=o,r+=1}while(n<e);i=n-o,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-i+"px"),this.setDropdownHeight(n-o)}}flipDropdown(e){const t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0}unflipDropdown(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.htEditor.flipped=void 0}updateDropdownDimensions(){this.htEditor.updateSettings({width:this.getWidth(),height:this.getHeight()}),Zw(nv,this,ov).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),Zw(nv,this,ov).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getHeight(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderTopWidth,10)+parseInt(e.borderBottomWidth,10),n=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:n},((e,t)=>t)).reduce(((e,t)=>e+(this.htEditor.getRowHeight(t)||this.htEditor.view.getDefaultRowHeight())),0)+t+1}getWidth(){const e=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore")),t=parseInt(e.borderInlineStartWidth,10)+parseInt(e.borderInlineEndWidth,10);return this.htEditor.getColWidth(0)+t}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,n=Ms(e,(e=>Es(e)));return Ms(n,(e=>t?e:pi(e)))}allowKeyEventPropagation(e){const t=this.htEditor.getSelectedRangeLast(),n=t?t.from.row:-1;let r=!1;return e===Sa.ARROW_DOWN&&n>0&&n<this.htEditor.countRows()-1&&(r=!0),e===Sa.ARROW_UP&&n>-1&&(r=!0),r}onBeforeKeyDown(e){if(32===(t=e.keyCode)||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90||e.keyCode===Sa.BACKSPACE||e.keyCode===Sa.DELETE||e.keyCode===Sa.INSERT){let t=10;if(e.keyCode===Sa.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout((()=>{this.queryChoices(this.TEXTAREA.value)}),t)}var t}}function ov(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getWidth()+ls(this.hot.rootDocument)})}class iv extends iy{static get EDITOR_TYPE(){return"checkbox"}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');Oi(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}const sv=()=>window,av=()=>window.document,lv=(e,t)=>window.setTimeout(e,t),uv=function(e,t,n,r){e.addEventListener(t,n,!!r)},cv=function(e,t,n,r){e.removeEventListener(t,n,!!r)},dv=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},hv=function(e,t){dv(e,t)||(e.className=""===e.className?t:e.className+" "+t)},pv=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},fv=function(e){return/Array/.test(Object.prototype.toString.call(e))},mv=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},gv=function(e){let t=e.getDay();return 0===t||6===t},bv=function(e){return e%4==0&&e%100!=0||e%400==0},yv=function(e,t){return[31,bv(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},wv=function(e){mv(e)&&e.setHours(0,0,0,0)},vv=function(e,t){return e.getTime()===t.getTime()},Sv=function(e,t,n){let r,o;for(r in t)o=void 0!==e[r],o&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?mv(t[r])?n&&(e[r]=new Date(t[r].getTime())):fv(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=Sv({},t[r],n):!n&&o||(e[r]=t[r]);return e},Cv=function(e,t,n){let r=av().createEvent("HTMLEvents");r.initEvent(t,!0,!1),r=Sv(r,n),e.dispatchEvent(r)},_v=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},Mv={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},xv=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},kv=function(e){let t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},Rv=function(e,t,n,r,o){let i=new Date(r,n,t),s=e.hasMoment?e.moment(i).isoWeek():function(e,t){e.setHours(0,0,0,0);let n=e.getDate(),r=e.getDay(),o=t,i=o-1,s=function(e){return(e+7-1)%7};e.setDate(n+i-s(r));let a=new Date(e.getFullYear(),0,o),l=(e.getTime()-a.getTime())/864e5;return 1+Math.round((l-i+s(a.getDay()))/7)}(i,o);return'<td class="pika-week">'+s+"</td>"},Tv=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},Ev=function(e,t,n,r,o,i){let s,a,l,u,c,d=e._o,h=n===d.minYear,p=n===d.maxYear,f='<div id="'+i+'" class="pika-title" role="heading" aria-live="polite">',m=!0,g=!0;for(l=[],s=0;s<12;s++)l.push('<option value="'+(n===o?s-t:12+s-t)+'"'+(s===r?' selected="selected"':"")+(h&&s<d.minMonth||p&&s>d.maxMonth?' disabled="disabled"':"")+">"+d.i18n.months[s]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",fv(d.yearRange)?(s=d.yearRange[0],a=d.yearRange[1]+1):(s=n-d.yearRange,a=1+n+d.yearRange),l=[];s<a&&s<=d.maxYear;s++)s>=d.minYear&&l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?f+=c+u:f+=u+c,h&&(0===r||d.minMonth>=r)&&(m=!1),p&&(11===r||d.maxMonth<=r)&&(g=!1),0===t&&(f+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(f+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),f+"</div>"};function Lv(e){let t=this,n=t.config(e);t._onMouseDown=function(e){if(!t._v)return;let r=(e=e||sv().event).target||e.srcElement;if(r)if(dv(r,"is-disabled")||(!dv(r,"pika-button")||dv(r,"is-empty")||dv(r.parentNode,"is-disabled")?dv(r,"pika-prev")?t.prevMonth():dv(r,"pika-next")&&t.nextMonth():(t.setDate(new Date(r.getAttribute("data-pika-year"),r.getAttribute("data-pika-month"),r.getAttribute("data-pika-day"))),n.bound&&lv((function(){t.hide(),n.blurFieldOnSelect&&n.field&&n.field.blur()}),100))),dv(r,"pika-select"))t._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}},t._onChange=function(e){let n=(e=e||sv().event).target||e.srcElement;n&&(dv(n,"pika-select-month")?t.gotoMonth(n.value):dv(n,"pika-select-year")&&t.gotoYear(n.value))},t._onKeyChange=function(e){if(e=e||sv().event,t.isVisible())switch(e.keyCode){case 13:case 27:n.field&&n.field.blur();break;case 37:t.adjustDate("subtract",1);break;case 38:t.adjustDate("subtract",7);break;case 39:t.adjustDate("add",1);break;case 40:t.adjustDate("add",7);break;case 8:case 46:t.setDate(null)}},t._parseFieldValue=function(){if(n.parse)return n.parse(n.field.value,n.format);if(this.hasMoment){let e=this.moment(n.field.value,n.format,n.formatStrict);return e&&e.isValid()?e.toDate():null}return new Date(Date.parse(n.field.value))},t._onInputChange=function(e){let n;e.firedBy!==t&&(n=t._parseFieldValue(),mv(n)&&t.setDate(n),t._v||t.show())},t._onInputFocus=function(){t.show()},t._onInputClick=function(){t.show()},t._onInputBlur=function(){let e=av().activeElement;do{if(dv(e,"pika-single"))return}while(e=e.parentNode);t._c||(t._b=lv((function(){t.hide()}),50)),t._c=!1},t._onClick=function(e){let r=(e=e||sv().event).target||e.srcElement,o=r;if(r){!hasEventListeners&&dv(r,"pika-select")&&(r.onchange||(r.setAttribute("onchange","return;"),uv(r,"change",t._onChange)));do{if(dv(o,"pika-single")||o===n.trigger)return}while(o=o.parentNode);t._v&&r!==n.trigger&&o!==n.trigger&&t.hide()}},t.el=av().createElement("div"),t.el.className="pika-single"+(n.isRTL?" is-rtl":"")+(n.theme?" "+n.theme:""),uv(t.el,"mousedown",t._onMouseDown,!0),uv(t.el,"touchend",t._onMouseDown,!0),uv(t.el,"change",t._onChange),n.keyboardInput&&uv(av(),"keydown",t._onKeyChange),n.field&&(n.container?n.container.appendChild(t.el):n.bound?av().body.appendChild(t.el):n.field.parentNode.insertBefore(t.el,n.field.nextSibling),uv(n.field,"change",t._onInputChange),n.defaultDate||(n.defaultDate=t._parseFieldValue(),n.setDefaultDate=!0));let r=n.defaultDate;mv(r)?n.setDefaultDate?t.setDate(r,!0):t.gotoDate(r):t.gotoDate(new Date),n.bound?(this.hide(),t.el.className+=" is-bound",uv(n.trigger,"click",t._onInputClick),uv(n.trigger,"focus",t._onInputFocus),uv(n.trigger,"blur",t._onInputBlur)):this.show()}function Iv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Lv.prototype={config:function(e){this._o||(this._o=Sv({},Mv,!0));let t=Sv(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;let n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,mv(t.minDate)||(t.minDate=!1),mv(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),fv(t.yearRange)){let e=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||e,t.yearRange[1]=parseInt(t.yearRange[1],10)||e}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||Mv.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(e){return e=e||this._o.format,mv(this._d)?this._o.toString?this._o.toString(this._d,e):this.hasMoment?this.moment(this._d).format(e):this._d.toDateString():""},getMoment:function(){return this.hasMoment?this.moment(this._d):null},setMoment:function(e,t){this.hasMoment&&this.moment.isMoment(e)&&this.setDate(e.toDate(),t)},useMoment:function(e){this.hasMoment=!0,this.moment=e},getDate:function(){return mv(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",Cv(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),!mv(e))return;let n=this._o.minDate,r=this._o.maxDate;mv(n)&&e<n?e=n:mv(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),wv(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),Cv(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())},clear:function(){this.setDate(null)},gotoDate:function(e){let t=!0;if(mv(e)){if(this.calendars){let n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){let n,r=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(r.valueOf()+o):"subtract"===e&&(n=new Date(r.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=_v(this.calendars[0]);for(let e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=_v({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(wv(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=Mv.minDate,this._o.minYear=Mv.minYear,this._o.minMonth=Mv.minMonth,this._o.startRange=Mv.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(wv(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=Mv.maxDate,this._o.maxYear=Mv.maxYear,this._o.maxMonth=Mv.maxMonth,this._o.endRange=Mv.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(!this._v&&!e)return;let t,n=this._o,r=n.minYear,o=n.maxYear,i=n.minMonth,s=n.maxMonth,a="";this._y<=r&&(this._y=r,!isNaN(i)&&this._m<i&&(this._m=i)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s));for(let e=0;e<n.numberOfMonths;e++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),a+='<div class="pika-lendar">'+Ev(this,e,this.calendars[e].year,this.calendars[e].month,this.calendars[0].year,t)+this.render(this.calendars[e].year,this.calendars[e].month,t)+"</div>";this.el.innerHTML=a,n.bound&&"hidden"!==n.field.type&&lv((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)},adjustPosition:function(){let e,t,n,r,o,i,s,a,l,u,c;this._o.container||(this.el.style.position="absolute",e=this._o.trigger,t=this.el.offsetWidth,n=this.el.offsetHeight,r=sv().innerWidth||av().documentElement.clientWidth,o=sv().innerHeight||av().documentElement.clientHeight,i=av().body.scrollTop||av().documentElement.scrollTop,u=!0,c=!0,l=e.getBoundingClientRect(),s=l.left+sv().pageXOffset,a=l.bottom+sv().pageYOffset,(this._o.reposition&&s+t>r||this._o.position.indexOf("right")>-1&&s-t+e.offsetWidth>0)&&(s=s-t+e.offsetWidth,u=!1),(this._o.reposition&&a+n>o+i||this._o.position.indexOf("top")>-1&&a-n-e.offsetHeight>0)&&(a=a-n-e.offsetHeight,c=!1),s<0&&(s=0),a<0&&(a=0),this.el.style.left=s+"px",this.el.style.top=a+"px",hv(this.el,u?"left-aligned":"right-aligned"),hv(this.el,c?"bottom-aligned":"top-aligned"),pv(this.el,u?"right-aligned":"left-aligned"),pv(this.el,c?"top-aligned":"bottom-aligned"))},render:function(e,t,n){let r=this._o,o=new Date,i=yv(e,t),s=new Date(e,t,1).getDay(),a=[],l=[];wv(o),r.firstDay>0&&(s-=r.firstDay,s<0&&(s+=7));let u=0===t?11:t-1,c=11===t?0:t+1,d=0===t?e-1:e,h=11===t?e+1:e,p=yv(d,u),f=i+s,m=f;for(;m>7;)m-=7;f+=7-m;let g=!1;for(let n=0,m=0;n<f;n++){let f=new Date(e,t,n-s+1),b=!!mv(this._d)&&vv(f,this._d),y=vv(f,o),w=-1!==r.events.indexOf(f.toDateString()),v=n<s||n>=i+s,S=n-s+1,C=t,_=e,M=r.startRange&&vv(r.startRange,f),x=r.endRange&&vv(r.endRange,f),k=r.startRange&&r.endRange&&r.startRange<f&&f<r.endRange;v&&(n<s?(S=p+S,C=u,_=d):(S-=i,C=c,_=h));let R={day:S,month:C,year:_,hasEvent:w,isSelected:b,isToday:y,isDisabled:r.minDate&&f<r.minDate||r.maxDate&&f>r.maxDate||r.disableWeekends&&gv(f)||r.disableDayFn&&r.disableDayFn(f),isEmpty:v,isStartRange:M,isEndRange:x,isInRange:k,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&b&&(g=!0),l.push(kv(R)),7===++m&&(r.showWeekNumber&&l.unshift(Rv(this,n-s,t,e,r.firstWeekOfYearMinDays)),a.push(Tv(l,r.isRTL,r.pickWholeWeek,g)),l=[],m=0,g=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){let t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+xv(e,t)+'">'+xv(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+"<tbody>"+t.join("")+"</tbody></table>"}(r,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),pv(this.el,"is-hidden"),this._o.bound&&(uv(av(),"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){let e=this._v;!1!==e&&(this._o.bound&&cv(av(),"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),hv(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){let e=this._o;this.hide(),cv(this.el,"mousedown",this._onMouseDown,!0),cv(this.el,"touchend",this._onMouseDown,!0),cv(this.el,"change",this._onChange),e.keyboardInput&&cv(av(),"keydown",this._onKeyChange),e.field&&(cv(e.field,"change",this._onInputChange),e.bound&&(cv(e.trigger,"click",this._onInputClick),cv(e.trigger,"focus",this._onInputFocus),cv(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}};const Dv="date",Hv="dateEditor";var Ov=new WeakSet;class Av extends lw{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ov),t.add(e),Iv(this,"parentDestroyed",!1),Iv(this,"$datePicker",null)}static get EDITOR_TYPE(){return Dv}init(){if("function"!=typeof ws)throw new Error("You need to include moment.js to your project.");super.init(),this.hot.addHook("afterDestroy",(()=>{this.parentDestroyed=!0,this.destroyElements()})),this.hot.addHook("afterSetTheme",((e,t)=>{t||(Ni(this.datePicker,/ht-theme-.*/g),Ai(this.datePicker,e))}))}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),Ai(this.datePicker,"htDatepickerHolder");const e=this.hot.getCurrentThemeName();Ni(this.datePicker,/ht-theme-.*/g),Ai(this.datePicker,e),this.hot.rootDocument.body.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",(e=>{Oi(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()}))}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,n,r,o,i){super.prepare(e,t,n,r,o,i)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:Hv})}close(){var e;this._opened=!1,null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout((()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()})),this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(Hv),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=Pv(Ov,this,Nv).call(this),n=this.hot.view.isMouseDown(),r=!!e&&_a(e.keyCode);let o;this.datePicker.style.display="block",this.$datePicker=new Lv(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(ws),this.$datePicker._onInputFocus=function(){},this.originalValue?(o=this.originalValue,ws(o,t,!0).isValid()&&this.$datePicker.setMoment(ws(o,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),r||n||this.setValue("")):this.cellProperties.defaultDate?(o=this.cellProperties.defaultDate,ws(o,t,!0).isValid()&&this.$datePicker.setMoment(ws(o,t),!0),r||n||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&Ks(n,this.cellProperties.datePickerConfig);const r=n.onSelect,o=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.keyboardInput=!1,n.format=null!==(e=n.format)&&void 0!==e?e:Pv(Ov,this,Nv).call(this),n.reposition=n.reposition||!1,n.isRTL=!1,n.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=ws(t).format(Pv(Ov,this,Nv).call(this))),this.setValue(t),r&&r(),ga()&&this.hideDatepicker()},n.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),o&&o()},n}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==oy.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:n,columnIndexMapper:r}=this.hot,{wtOverlays:o}=this.hot.view._wt,{wtTable:i}=null!==(t=o.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,s=n.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleRow()),a=n.getVisualFromRenderableIndex(i.getLastPartiallyVisibleRow()),l=r.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleColumn()),u=r.getVisualFromRenderableIndex(i.getLastPartiallyVisibleColumn());if(this.row>=s&&this.row<=a&&this.col>=l&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+ts(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-es(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function Nv(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}class jv extends rv{static get EDITOR_TYPE(){return"dropdown"}prepare(e,t,n,r,o,i){i.filter=!1,i.strict=!0,super.prepare(e,t,n,r,o,i)}}class Yv extends lw{static get EDITOR_TYPE(){return"numeric"}}class Fv extends lw{constructor(){super(...arguments),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"autoResize",rw(this.hot.rootDocument,{textContent:e=>"•".repeat(e.value.length)}))}static get EDITOR_TYPE(){return"password"}createElements(){super.createElements(),this.TEXTAREA=this.hot.rootDocument.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.setAttribute("data-hot-input",""),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,zi(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}}const zv="ht_editor_visible",Wv="selectEditor";class Vv extends iy{static get EDITOR_TYPE(){return"select"}init(){this.selectWrapper=this.hot.rootDocument.createElement("div"),this.select=this.hot.rootDocument.createElement("select"),this.select.setAttribute("data-hot-input","true"),this.selectWrapper.style.display="none";const e=this.hot.rootDocument.createElement("DIV"),t=this.hot.getSettings().ariaTags;e.className="htAutocompleteArrow",t&&e.setAttribute("aria-hidden","true"),e.appendChild(this.hot.rootDocument.createTextNode(String.fromCharCode(9660))),Ai(this.selectWrapper,"htSelectEditor"),this.selectWrapper.appendChild(this.select),this.selectWrapper.insertBefore(e,this.selectWrapper.firstChild),this.hot.rootElement.appendChild(this.selectWrapper),this.registerHooks()}getValue(){return this.select.value}setValue(e){this.select.value=e}open(){this._opened=!0,this.refreshDimensions(),this.selectWrapper.style.display="",this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.selectWrapper.style.display="none",Oi(this.selectWrapper,zv)&&Ni(this.selectWrapper,zv),this.unregisterShortcuts(),this.clearHooks()}focus(){this.select.focus()}registerHooks(){this.addHook("afterScrollHorizontally",(()=>this.refreshDimensions())),this.addHook("afterScrollVertically",(()=>this.refreshDimensions())),this.addHook("afterColumnResize",(()=>this.refreshDimensions())),this.addHook("afterRowResize",(()=>this.refreshDimensions()))}prepare(e,t,n,r,o,i){super.prepare(e,t,n,r,o,i);const s=this.cellProperties.selectOptions;let a;a="function"==typeof s?this.prepareOptions(s(this.row,this.col,this.prop)):this.prepareOptions(s),zi(this.select),ta(a,((e,t)=>{const n=this.hot.rootDocument.createElement("OPTION");n.value=t,Vi(n,e),this.select.appendChild(n)}))}prepareOptions(e){let t={};if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)t[e[n]]=e[n];else"object"==typeof e&&(t=e);return t}refreshValue(){const e=this.hot.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()}refreshDimensions(){if(this.state!==oy.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.close();const{top:e,start:t,width:n,height:r}=this.getEditedCellRect(),o=this.selectWrapper.style;o.height=`${r}px`,o.width=`${n}px`,o.top=`${e}px`,o[this.hot.isRtl()?"right":"left"]=`${t}px`,o.margin="0px",Ai(this.selectWrapper,zv)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={group:Wv};this.isInFullEditMode()&&e.addShortcuts([{keys:[["ArrowUp"]],callback:()=>{const e=this.select.selectedIndex-1;e>=0&&(this.select[e].selected=!0)}},{keys:[["ArrowDown"]],callback:()=>{const e=this.select.selectedIndex+1;e<=this.select.length-1&&(this.select[e].selected=!0)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(Wv)}}class Bv extends lw{static get EDITOR_TYPE(){return"time"}prepare(e,t,n,r,o,i){super.prepare(e,t,n,r,o,i),this.TEXTAREA.dir="ltr"}}function $v(e,t,n,r,o,i,s){uw.apply(this,[e,t,n,r,o,i,s]),Vi(t,null==i?"":i,!1)}function Uv(e,t,n,r,o,i,s){const{rootDocument:a}=e,l=s.allowHtml?$v:cw,u=a.createElement("DIV"),c=e.getSettings().ariaTags;if(u.className="htAutocompleteArrow",c&&u.setAttribute("aria-hidden","true"),u.appendChild(a.createTextNode(String.fromCharCode(9660))),l.apply(this,[e,t,n,r,o,i,s]),t.firstChild||t.appendChild(a.createTextNode(String.fromCharCode(160))),t.insertBefore(u,t.firstChild),Ai(t,"htAutocomplete"),!e.acArrowListener){const o=new al(e);e.acArrowListener=function(o){Oi(o.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(n,r),t)},o.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",(()=>{o.destroy()}))}}function Gv(e,t,n,r,o,i,s){Uv.apply(this,[e,t,n,r,o,i,s])}$v.RENDERER_TYPE="html",Uv.RENDERER_TYPE="autocomplete",Gv.RENDERER_TYPE="dropdown";const Kv=new WeakMap,qv=new WeakMap,Xv="data-row",Jv="data-col",Qv="checkbox";function Zv(e,t,n,r,o,i,s){const{rootDocument:a}=e,l=e.getSettings().ariaTags;uw.apply(this,[e,t,n,r,o,i,s]),function(e){let t=qv.get(e);if(!t){const{rootElement:n}=e;t=new al(e),t.addEventListener(n,"click",(t=>function(e,t){const{target:n}=e;if(!eS(n))return;if(!n.hasAttribute(Xv)||!n.hasAttribute(Jv))return;const r=parseInt(n.getAttribute(Xv),10),o=parseInt(n.getAttribute(Jv),10);t.getCellMeta(r,o).readOnly&&e.preventDefault()}(t,e))),t.addEventListener(n,"mouseup",(t=>function(e,t){const{target:n}=e;eS(n)&&n.hasAttribute(Xv)&&n.hasAttribute(Jv)&&setTimeout(t.listen,10)}(t,e))),t.addEventListener(n,"change",(t=>function(e,t){const{target:n}=e;if(!eS(n))return;if(!n.hasAttribute(Xv)||!n.hasAttribute(Jv))return;const r=parseInt(n.getAttribute(Xv),10),o=parseInt(n.getAttribute(Jv),10),i=t.getCellMeta(r,o);if(!i.readOnly){let n=null;n=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(r,o,n)}}(t,e))),qv.set(e,t)}}(e);let u=function(e){const t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(a);const c=s.label;let d=!1;if(void 0===s.checkedTemplate&&(s.checkedTemplate=!0),void 0===s.uncheckedTemplate&&(s.uncheckedTemplate=!1),zi(t),i===s.checkedTemplate||Es(i).toLocaleLowerCase(s.locale)===Es(s.checkedTemplate).toLocaleLowerCase(s.locale)?u.checked=!0:i===s.uncheckedTemplate||Es(i).toLocaleLowerCase(s.locale)===Es(s.uncheckedTemplate).toLocaleLowerCase(s.locale)?u.checked=!1:Ps(i)?Ai(u,"noValue"):(u.style.display="none",Ai(u,"htBadValue"),d=!0),ji(u,[[Xv,n],[Jv,r]]),l&&ji(u,[gi(u.checked?e.getTranslatedPhrase(Ym):e.getTranslatedPhrase(Fm)),_i(u.checked),["role","checkbox"]]),!d&&c){let s="";if(c.value)s="function"==typeof c.value?c.value.call(this,n,r,o,i):c.value;else if(c.property){const t=e.getDataAtRowProp(n,c.property);s=null!==t?t:""}const l=function(e,t,n){const r=e.createElement("label");r.className="htCheckboxRendererLabel "+(n?"fullWidth":"");const o=e.createTextNode(t);if(n){const t=e.createElement("span");t.appendChild(o),r.appendChild(t)}else r.appendChild(o);return r.cloneNode(!0)}(a,s,!0!==c.separated);"before"===c.position?c.separated?(t.appendChild(l),t.appendChild(u)):(l.appendChild(u),u=l):c.position&&"after"!==c.position||(c.separated?(t.appendChild(u),t.appendChild(l)):(l.insertBefore(u,l.firstChild),u=l))}function h(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=e.getSelectedRange(),r=[],o=new Map;let i=[],s=0;if(n){for(let a=0;a<n.length;a++){const{row:l,col:u}=n[a].getTopStartCorner(),{row:c,col:d}=n[a].getBottomEndCorner();for(let n=l;n<=c;n+=1)for(let a=u;a<=d;a+=1){const l=e.getCellMeta(n,a);if(l.hidden)continue;const u={checkedTemplate:l.checkedTemplate,uncheckedTemplate:l.uncheckedTemplate};if("checkbox"!==l.type){!0!==t||l.readOnly||(o.has(r.length)?o.set(r.length,[...o.get(r.length),[n,a,null]]):o.set(r.length,[[n,a,null]]));continue}if(!0===l.readOnly)continue;void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);const c=e.getDataAtCell(n,a);!1===t?[l.checkedTemplate,l.checkedTemplate.toString()].includes(c)?i.push([n,a,l.uncheckedTemplate,u]):[l.uncheckedTemplate,l.uncheckedTemplate.toString(),null,void 0].includes(c)&&i.push([n,a,l.checkedTemplate,u]):i.push([n,a,l.uncheckedTemplate,u]),s+=1}r.push(s),s=0}i=i.every((e=>{let[,,t]=e;return t===i[0][2]}))?i.map((e=>{let[t,n,r]=e;return[t,n,r]})):i.map((e=>{let[t,n,,r]=e;return[t,n,r.checkedTemplate]})),i.length>0&&r.forEach(((t,n)=>{let r=i.splice(0,t);o.size&&o.has(n)&&(r=[...r,...o.get(n)]),e.setDataAtCell(r)}))}}function p(){const t=e.getSelectedRange();if(t){for(let n=0;n<t.length;n++){const r=t[n].getTopStartCorner(),o=t[n].getBottomEndCorner();for(let t=r.row;t<=o.row;t++)for(let n=r.col;n<=o.col;n++){if(e.getCellMeta(t,n).readOnly)continue;const r=e.getCell(t,n);if(ys(r)&&r.querySelectorAll("input[type=checkbox]").length>0)return!0}}return!1}}(!c||c&&!c.separated)&&t.appendChild(u),d&&t.appendChild(a.createTextNode("#bad-value#")),Kv.has(e)||(Kv.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),n={group:"checkboxRenderer",relativeToGroup:Fb,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(h(),!p()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(h(),!p()),runOnlyIf:()=>{const t=e.getSelectedRangeLast();return e.getSettings().enterBeginsEditing&&(null==t?void 0:t.highlight.isCell())&&!e.selection.isMultiple()}},{keys:[["delete"],["backspace"]],callback:()=>(h(!0),!p()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isCell()}}],n)}())}function eS(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}function tS(e,t,n,r,o,i,s){Uv.apply(this,[e,t,n,r,o,i,s])}Ua.getSingleton().add("modifyAutoColumnSizeSeed",(function(e,t,n){const{label:r,type:o,row:i,column:s,prop:a}=t;if(o===Qv){if(r){const{value:t,property:o}=r;let l=n;if(t)l="function"==typeof t?t(i,s,a,n):t;else if(o){const e=this.getDataAtRowProp(i,o);l=null!==e?e:n}e=l}return e}})),Zv.RENDERER_TYPE=Qv,tS.RENDERER_TYPE="handsontable";var nS,rS,oS,iS,sS,aS,lS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self?self:{};function uS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cS(){return rS?nS:(rS=1,nS={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}})}function dS(){if(iS)return oS;iS=1;const e=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(r,o,i,s,a,l,u){if(!isNaN(+r))return+r;let c="",d=r.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==r)return-1*n(d,o,i,s,a,l);for(let t=0;t<e.length;t++){let u=e[t];if(c=r.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"),c!==r)return n(c,o,i,s,a,l)*u.factor}if(c=r.replace("%",""),c!==r)return n(c,o,i,s,a,l)/100;let h=parseFloat(r);if(isNaN(h))return;let p=s(h);if(p&&"."!==p&&(c=r.replace(new RegExp(`${t(p)}$`),""),c!==r))return n(c,o,i,s,a,l);let f={};Object.keys(l).forEach((e=>{f[l[e]]=e}));let m=Object.keys(f).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],u=f[t];if(c=r.replace(t,""),c!==r){let e;switch(u){case"thousand":e=Math.pow(10,3);break;case"million":e=Math.pow(10,6);break;case"billion":e=Math.pow(10,9);break;case"trillion":e=Math.pow(10,12)}return n(c,o,i,s,a,l)*e}}}function r(e,r,o="",i,s,a,l){if(""===e)return;if(e===s)return 0;let u=function(e,n,r){let o=e.replace(r,"");return o=o.replace(new RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2"),o=o.replace(n.decimal,"."),o}(e,r,o);return n(u,r,o,i,s,a)}return oS={unformat:function(e,t){const n=gS();let o,i=n.currentDelimiters(),s=n.currentCurrency().symbol,a=n.currentOrdinal(),l=n.getZeroFormat(),u=n.currentAbbreviations();if("string"==typeof e)o=function(e,t){if(!e.indexOf(":")||":"===t.thousands)return!1;let n=e.split(":");if(3!==n.length)return!1;let r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(e,i)?function(e){let t=e.split(":"),n=+t[0],r=+t[1];return+t[2]+60*r+3600*n}(e):r(e,i,s,a,l,u);else{if("number"!=typeof e)return;o=e}if(void 0!==o)return o}},oS}function hS(){if(aS)return sS;aS=1;let e=dS();const t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,n={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},r={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function o(t){return void 0!==e.unformat(t)}function i(e,t,r,o=!1){let s=Object.keys(e).map((o=>{if(!t[o])return console.error(`${r} Invalid key: ${o}`),!1;let s=e[o],a=t[o];if("string"==typeof a&&(a={type:a}),"format"===a.type){if(!i(s,n,`[Validate ${o}]`,!0))return!1}else if(typeof s!==a.type)return console.error(`${r} ${o} type mismatched: "${a.type}" expected, "${typeof s}" provided`),!1;if(a.restrictions&&a.restrictions.length){let t=a.restrictions.length;for(let n=0;n<t;n++){let{restriction:t,message:i}=a.restrictions[n];if(!t(s,e))return console.error(`${r} ${o} invalid value: ${i}`),!1}}return a.restriction&&!a.restriction(s,e)?(console.error(`${r} ${o} invalid value: ${a.message}`),!1):a.validValues&&-1===a.validValues.indexOf(s)?(console.error(`${r} ${o} invalid value: must be among ${JSON.stringify(a.validValues)}, "${s}" provided`),!1):!(a.children&&!i(s,a.children,`[Validate ${o}]`))}));return o||s.push(...Object.keys(t).map((n=>{let o=t[n];if("string"==typeof o&&(o={type:o}),o.mandatory){let t=o.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[n])return console.error(`${r} Missing mandatory key "${n}"`),!1}return!0}))),s.reduce(((e,t)=>e&&t),!0)}function s(e){return i(e,n,"[Validate format]")}return sS={validate:function(e,t){let n=o(e),r=s(t);return n&&r},validateFormat:s,validateInput:o,validateLanguage:function(e){return i(e,r,"[Validate language]")}},sS}var pS,fS,mS={parseFormat:function(e,t={}){return"string"!=typeof e?e:(function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",void(t.base="general")):-1!==e.indexOf("b")?(t.output="byte",void(t.base="binary")):-1!==e.indexOf("d")?(t.output="byte",void(t.base="decimal")):void(-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time");t.output="percent"}else t.output="currency"}(e=function(e,t){let n=e.match(/{([^}]*)}$/);return n?(t.postfix=n[1],e.slice(0,-n[0].length)):e}(e=function(e,t){let n=e.match(/^{([^}]*)}/);return n?(t.prefix=n[1],e.slice(n[0].length)):e}(e,t),t),t),function(e,t){let n=e.match(/[1-9]+[0-9]*/);n&&(t.totalLength=+n[0])}(e,t),function(e,t){let n=e.split(".")[0].match(/0+/);n&&(t.characteristic=n[0].length)}(e,t),function(e,t){if(-1!==e.indexOf(".")){let n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,t),function(e,t){-1!==e.indexOf("a")&&(t.average=!0)}(e,t),function(e,t){-1!==e.indexOf("K")?t.forceAverage="thousand":-1!==e.indexOf("M")?t.forceAverage="million":-1!==e.indexOf("B")?t.forceAverage="billion":-1!==e.indexOf("T")&&(t.forceAverage="trillion")}(e,t),function(e,t){let n=e.split(".")[1];if(n){let e=n.match(/0+/);e&&(t.mantissa=e[0].length)}}(e,t),function(e,t){e.match(/\[\.]/)?t.optionalMantissa=!0:e.match(/\./)&&(t.optionalMantissa=!1)}(e,t),function(e,t){const n=e.split(".")[1];n&&(t.trimMantissa=-1!==n.indexOf("["))}(e,t),function(e,t){-1!==e.indexOf(",")&&(t.thousandSeparated=!0)}(e,t),function(e,t){-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0))}(e,t),function(e,t){e.match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),e.match(/^\+?-/)&&(t.negative="sign")}(e,t),function(e,t){e.match(/^\+/)&&(t.forceSign=!0)}(e,t),t)}};function gS(){if(fS)return pS;fS=1;const e=cS(),t=hS(),n=mS;let r,o={},i={},s=null,a={};function l(e){r=e}function u(){return i[r]}return o.languages=()=>Object.assign({},i),o.currentLanguage=()=>r,o.currentBytes=()=>u().bytes||{},o.currentCurrency=()=>u().currency,o.currentAbbreviations=()=>u().abbreviations,o.currentDelimiters=()=>u().delimiters,o.currentOrdinal=()=>u().ordinal,o.currentDefaults=()=>Object.assign({},u().defaults,a),o.currentOrdinalDefaultFormat=()=>Object.assign({},o.currentDefaults(),u().ordinalFormat),o.currentByteDefaultFormat=()=>Object.assign({},o.currentDefaults(),u().byteFormat),o.currentPercentageDefaultFormat=()=>Object.assign({},o.currentDefaults(),u().percentageFormat),o.currentCurrencyDefaultFormat=()=>Object.assign({},o.currentDefaults(),u().currencyFormat),o.currentTimeDefaultFormat=()=>Object.assign({},o.currentDefaults(),u().timeFormat),o.setDefaults=e=>{e=n.parseFormat(e),t.validateFormat(e)&&(a=e)},o.getZeroFormat=()=>s,o.setZeroFormat=e=>s="string"==typeof e?e:null,o.hasZeroFormat=()=>null!==s,o.languageData=e=>{if(e){if(i[e])return i[e];throw new Error(`Unknown tag "${e}"`)}return u()},o.registerLanguage=(e,n=!1)=>{if(!t.validateLanguage(e))throw new Error("Invalid language data");i[e.languageTag]=e,n&&l(e.languageTag)},o.setLanguage=(t,n=e.languageTag)=>{if(!i[t]){let e=t.split("-")[0],r=Object.keys(i).find((t=>t.split("-")[0]===e));return i[r]?void l(r):void l(n)}l(t)},o.registerLanguage(e),r=e.languageTag,pS=o}var bS,yS={exports:{}};bS=yS,function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,o=Math.floor,i="[BigNumber Error] ",s=i+"Number primitive has more than 15 significant digits: ",a=1e14,l=14,u=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,h=1e9;function p(e){var t=0|e;return e>0||e===t?t:t-1}function f(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(t=e[r++]+"",n=l-t.length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function m(e,t){var n,r,o=e.c,i=t.c,s=e.s,a=t.s,l=e.e,u=t.e;if(!s||!a)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return l>u^n?1:-1;for(a=(l=o.length)<(u=i.length)?l:u,s=0;s<a;s++)if(o[s]!=i[s])return o[s]>i[s]^n?1:-1;return l==u?0:l>u^n?1:-1}function g(e,t,n,r){if(e<t||e>n||e!==o(e))throw Error(i+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var t=e.c.length-1;return p(e.e/l)==t&&e.c[t]%2!=0}function y(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function w(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(++t>(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}t=function e(t){var v,S,C,_,M,x,k,R,T,E,L=B.prototype={constructor:B,toString:null,valueOf:null},I=new B(1),P=20,D=4,H=-7,O=21,A=-1e7,N=1e7,j=!1,Y=1,F=0,z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},W="0123456789abcdefghijklmnopqrstuvwxyz",V=!0;function B(e,t){var r,i,a,c,d,h,p,f,m=this;if(!(m instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>N?m.c=m.e=null:e.e<A?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((h="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,d=e;d>=10;d/=10,c++);return void(c>N?m.c=m.e=null:(m.e=c,m.c=[e]))}f=String(e)}else{if(!n.test(f=String(e)))return C(m,f,h);m.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(c=f.indexOf("."))>-1&&(f=f.replace(".","")),(d=f.search(/e/i))>0?(c<0&&(c=d),c+=+f.slice(d+1),f=f.substring(0,d)):c<0&&(c=f.length)}else{if(g(t,2,W.length,"Base"),10==t&&V)return K(m=new B(e),P+m.e+1,D);if(f=String(e),h="number"==typeof e){if(0*e!=0)return C(m,f,h,t);if(m.s=1/e<0?(f=f.slice(1),-1):1,B.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else m.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=W.slice(0,t),c=d=0,p=f.length;d<p;d++)if(r.indexOf(i=f.charAt(d))<0){if("."==i){if(d>c){c=p;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,d=-1,c=0;continue}return C(m,String(e),h,t)}h=!1,(c=(f=S(f,t,10,m.s)).indexOf("."))>-1?f=f.replace(".",""):c=f.length}for(d=0;48===f.charCodeAt(d);d++);for(p=f.length;48===f.charCodeAt(--p););if(f=f.slice(d,++p)){if(p-=d,h&&B.DEBUG&&p>15&&(e>u||e!==o(e)))throw Error(s+m.s*e);if((c=c-d-1)>N)m.c=m.e=null;else if(c<A)m.c=[m.e=0];else{if(m.e=c,m.c=[],d=(c+1)%l,c<0&&(d+=l),d<p){for(d&&m.c.push(+f.slice(0,d)),p-=l;d<p;)m.c.push(+f.slice(d,d+=l));d=l-(f=f.slice(d)).length}else d-=p;for(;d--;f+="0");m.c.push(+f)}}else m.c=[m.e=0]}function $(e,t,n,r){var o,i,s,a,l;if(null==n?n=D:g(n,0,8),!e.c)return e.toString();if(o=e.c[0],s=e.e,null==t)l=f(e.c),l=1==r||2==r&&(s<=H||s>=O)?y(l,s):w(l,s,"0");else if(i=(e=K(new B(e),t,n)).e,a=(l=f(e.c)).length,1==r||2==r&&(t<=i||i<=H)){for(;a<t;l+="0",a++);l=y(l,i)}else if(t-=s,l=w(l,i,"0"),i+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-a)>0)for(i+1==a&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function U(e,t){for(var n,r,o=1,i=new B(e[0]);o<e.length;o++)(!(r=new B(e[o])).s||(n=m(i,r))===t||0===n&&i.s===t)&&(i=r);return i}function G(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*l-1)>N?e.c=e.e=null:n<A?e.c=[e.e=0]:(e.e=n,e.c=t),e}function K(e,t,n,i){var s,u,d,h,p,f,m,g=e.c,b=c;if(g){e:{for(s=1,h=g[0];h>=10;h/=10,s++);if((u=t-s)<0)u+=l,d=t,p=g[f=0],m=o(p/b[s-d-1]%10);else if((f=r((u+1)/l))>=g.length){if(!i)break e;for(;g.length<=f;g.push(0));p=m=0,s=1,d=(u%=l)-l+1}else{for(p=h=g[f],s=1;h>=10;h/=10,s++);m=(d=(u%=l)-l+s)<0?0:o(p/b[s-d-1]%10)}if(i=i||t<0||null!=g[f+1]||(d<0?p:p%b[s-d-1]),i=n<4?(m||i)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||i||6==n&&(u>0?d>0?p/b[s-d]:0:g[f-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,i?(t-=e.e+1,g[0]=b[(l-t%l)%l],e.e=-t||0):g[0]=e.e=0,e;if(0==u?(g.length=f,h=1,f--):(g.length=f+1,h=b[l-u],g[f]=d>0?o(p/b[s-d]%b[d])*h:0),i)for(;;){if(0==f){for(u=1,d=g[0];d>=10;d/=10,u++);for(d=g[0]+=h,h=1;d>=10;d/=10,h++);u!=h&&(e.e++,g[0]==a&&(g[0]=1));break}if(g[f]+=h,g[f]!=a)break;g[f--]=0,h=1}for(u=g.length;0===g[--u];g.pop());}e.e>N?e.c=e.e=null:e.e<A&&(e.c=[e.e=0])}return e}function q(e){var t,n=e.e;return null===n?e.toString():(t=f(e.c),t=n<=H||n>=O?y(t,n):w(t,n,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(i+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(g(n=e[t],0,h,t),P=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(g(n=e[t],0,8,t),D=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(g(n[0],-h,0,t),g(n[1],0,h,t),H=n[0],O=n[1]):(g(n,-h,h,t),H=-(O=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)g(n[0],-h,-1,t),g(n[1],1,h,t),A=n[0],N=n[1];else{if(g(n,-h,h,t),!n)throw Error(i+t+" cannot be zero: "+n);A=-(N=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(i+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!n,Error(i+"crypto unavailable");j=n}else j=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(g(n=e[t],0,9,t),Y=n),e.hasOwnProperty(t="POW_PRECISION")&&(g(n=e[t],0,h,t),F=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(i+t+" not an object: "+n);z=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(i+t+" invalid: "+n);V="0123456789"==n.slice(0,10),W=n}}return{DECIMAL_PLACES:P,ROUNDING_MODE:D,EXPONENTIAL_AT:[H,O],RANGE:[A,N],CRYPTO:j,MODULO_MODE:Y,POW_PRECISION:F,FORMAT:z,ALPHABET:W}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,n,r=e.c,s=e.e,u=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===u||-1===u)&&s>=-h&&s<=h&&s===o(s)){if(0===r[0]){if(0===s&&1===r.length)return!0;break e}if((t=(s+1)%l)<1&&(t+=l),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=a||n!==o(n))break e;if(0!==n)return!0}}}else if(null===r&&null===s&&(null===u||1===u||-1===u))return!0;throw Error(i+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return U(arguments,-1)},B.minimum=B.min=function(){return U(arguments,1)},B.random=(_=9007199254740992,M=Math.random()*_&2097151?function(){return o(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,s,a,u,d=0,p=[],f=new B(I);if(null==e?e=P:g(e,0,h),a=r(e/l),j)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));d<a;)(u=131072*t[d]+(t[d+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[d]=n[0],t[d+1]=n[1]):(p.push(u%1e14),d+=2);d=a/2}else{if(!crypto.randomBytes)throw j=!1,Error(i+"crypto unavailable");for(t=crypto.randomBytes(a*=7);d<a;)(u=281474976710656*(31&t[d])+1099511627776*t[d+1]+4294967296*t[d+2]+16777216*t[d+3]+(t[d+4]<<16)+(t[d+5]<<8)+t[d+6])>=9e15?crypto.randomBytes(7).copy(t,d):(p.push(u%1e14),d+=7);d=a/7}if(!j)for(;d<a;)(u=M())<9e15&&(p[d++]=u%1e14);for(a=p[--d],e%=l,a&&e&&(u=c[l-e],p[d]=o(a/u)*u);0===p[d];p.pop(),d--);if(d<0)p=[s=0];else{for(s=-1;0===p[0];p.splice(0,1),s-=l);for(d=1,u=p[0];u>=10;u/=10,d++);d<l&&(s-=l-d)}return f.e=s,f.c=p,f}),B.sum=function(){for(var e=1,t=arguments,n=new B(t[0]);e<t.length;)n=n.plus(t[e++]);return n},S=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,s=[0],a=0,l=e.length;a<l;){for(i=s.length;i--;s[i]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),o=0;o<s.length;o++)s[o]>n-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/n|0,s[o]%=n)}return s.reverse()}return function(n,r,o,i,s){var a,l,u,c,d,h,p,m,g=n.indexOf("."),b=P,y=D;for(g>=0&&(c=F,F=0,n=n.replace(".",""),h=(m=new B(r)).pow(n.length-g),F=c,m.c=t(w(f(h.c),h.e,"0"),10,o,e),m.e=m.c.length),u=c=(p=t(n,r,o,s?(a=W,e):(a=e,W))).length;0==p[--c];p.pop());if(!p[0])return a.charAt(0);if(g<0?--u:(h.c=p,h.e=u,h.s=i,p=(h=v(h,m,b,y,o)).c,d=h.r,u=h.e),g=p[l=u+b+1],c=o/2,d=d||l<0||null!=p[l+1],d=y<4?(null!=g||d)&&(0==y||y==(h.s<0?3:2)):g>c||g==c&&(4==y||d||6==y&&1&p[l-1]||y==(h.s<0?8:7)),l<1||!p[0])n=d?w(a.charAt(1),-b,a.charAt(0)):a.charAt(0);else{if(p.length=l,d)for(--o;++p[--l]>o;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(g=0,n="";g<=c;n+=a.charAt(p[g++]));n=w(n,u,a.charAt(0))}return n}}(),v=function(){function e(e,t,n){var r,o,i,s,a=0,l=e.length,u=t%d,c=t/d|0;for(e=e.slice();l--;)a=((o=u*(i=e[l]%d)+(r=c*i+(s=e[l]/d|0)*u)%d*d+a)/n|0)+(r/d|0)+c*s,e[l]=o%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,s,u,c){var d,h,f,m,g,b,y,w,v,S,C,_,M,x,k,R,T,E=r.s==i.s?1:-1,L=r.c,I=i.c;if(!(L&&L[0]&&I&&I[0]))return new B(r.s&&i.s&&(L?!I||L[0]!=I[0]:I)?L&&0==L[0]||!I?0*E:E/0:NaN);for(v=(w=new B(E)).c=[],E=s+(h=r.e-i.e)+1,c||(c=a,h=p(r.e/l)-p(i.e/l),E=E/l|0),f=0;I[f]==(L[f]||0);f++);if(I[f]>(L[f]||0)&&h--,E<0)v.push(1),m=!0;else{for(x=L.length,R=I.length,f=0,E+=2,(g=o(c/(I[0]+1)))>1&&(I=e(I,g,c),L=e(L,g,c),R=I.length,x=L.length),M=R,C=(S=L.slice(0,R)).length;C<R;S[C++]=0);T=I.slice(),T=[0].concat(T),k=I[0],I[1]>=c/2&&k++;do{if(g=0,(d=t(I,S,R,C))<0){if(_=S[0],R!=C&&(_=_*c+(S[1]||0)),(g=o(_/k))>1)for(g>=c&&(g=c-1),y=(b=e(I,g,c)).length,C=S.length;1==t(b,S,y,C);)g--,n(b,R<y?T:I,y,c),y=b.length,d=1;else 0==g&&(d=g=1),y=(b=I.slice()).length;if(y<C&&(b=[0].concat(b)),n(S,b,C,c),C=S.length,-1==d)for(;t(I,S,R,C)<1;)g++,n(S,R<C?T:I,C,c),C=S.length}else 0===d&&(g++,S=[0]);v[f++]=g,S[0]?S[C++]=L[M]||0:(S=[L[M]],C=1)}while((M++<x||null!=S[0])&&E--);m=null!=S[0],v[0]||v.splice(0,1)}if(c==a){for(f=1,E=v[0];E>=10;E/=10,f++);K(w,s+(w.e=f+h*l-1)+1,u,m)}else w.e=h,w.r=+m;return w}}(),x=/^(-?)0([xbo])(?=\w[\w.]*$)/i,k=/^([^.]+)\.$/,R=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,E=/^\s*\+(?=[\w.])|^\s+|\s+$/g,C=function(e,t,n,r){var o,s=n?t:t.replace(E,"");if(T.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(x,(function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t})),r&&(o=r,s=s.replace(k,"$1").replace(R,"0.$1")),t!=s))return new B(s,o);if(B.DEBUG)throw Error(i+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},L.absoluteValue=L.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},L.comparedTo=function(e,t){return m(this,new B(e,t))},L.decimalPlaces=L.dp=function(e,t){var n,r,o,i=this;if(null!=e)return g(e,0,h),null==t?t=D:g(t,0,8),K(new B(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((o=n.length-1)-p(this.e/l))*l,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},L.dividedBy=L.div=function(e,t){return v(this,new B(e,t),P,D)},L.dividedToIntegerBy=L.idiv=function(e,t){return v(this,new B(e,t),0,1)},L.exponentiatedBy=L.pow=function(e,t){var n,s,a,u,c,d,h,p,f=this;if((e=new B(e)).c&&!e.isInteger())throw Error(i+"Exponent not an integer: "+q(e));if(null!=t&&(t=new B(t)),c=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return p=new B(Math.pow(+q(f),c?e.s*(2-b(e)):+q(e))),t?p.mod(t):p;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(s=!d&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||c&&f.c[1]>=24e7:f.c[0]<8e13||c&&f.c[0]<=9999975e7)))return u=f.s<0&&b(e)?-0:0,f.e>-1&&(u=1/u),new B(d?1/u:u);F&&(u=r(F/l+2))}for(c?(n=new B(.5),d&&(e.s=1),h=b(e)):h=(a=Math.abs(+q(e)))%2,p=new B(I);;){if(h){if(!(p=p.times(f)).c)break;u?p.c.length>u&&(p.c.length=u):s&&(p=p.mod(t))}if(a){if(0===(a=o(a/2)))break;h=a%2}else if(K(e=e.times(n),e.e+1,1),e.e>14)h=b(e);else{if(0===(a=+q(e)))break;h=a%2}f=f.times(f),u?f.c&&f.c.length>u&&(f.c.length=u):s&&(f=f.mod(t))}return s?p:(d&&(p=I.div(p)),t?p.mod(t):u?K(p,F,D,void 0):p)},L.integerValue=function(e){var t=new B(this);return null==e?e=D:g(e,0,8),K(t,t.e+1,e)},L.isEqualTo=L.eq=function(e,t){return 0===m(this,new B(e,t))},L.isFinite=function(){return!!this.c},L.isGreaterThan=L.gt=function(e,t){return m(this,new B(e,t))>0},L.isGreaterThanOrEqualTo=L.gte=function(e,t){return 1===(t=m(this,new B(e,t)))||0===t},L.isInteger=function(){return!!this.c&&p(this.e/l)>this.c.length-2},L.isLessThan=L.lt=function(e,t){return m(this,new B(e,t))<0},L.isLessThanOrEqualTo=L.lte=function(e,t){return-1===(t=m(this,new B(e,t)))||0===t},L.isNaN=function(){return!this.s},L.isNegative=function(){return this.s<0},L.isPositive=function(){return this.s>0},L.isZero=function(){return!!this.c&&0==this.c[0]},L.minus=function(e,t){var n,r,o,i,s=this,u=s.s;if(t=(e=new B(e,t)).s,!u||!t)return new B(NaN);if(u!=t)return e.s=-t,s.plus(e);var c=s.e/l,d=e.e/l,h=s.c,f=e.c;if(!c||!d){if(!h||!f)return h?(e.s=-t,e):new B(f?s:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new B(h[0]?s:3==D?-0:0)}if(c=p(c),d=p(d),h=h.slice(),u=c-d){for((i=u<0)?(u=-u,o=h):(d=c,o=f),o.reverse(),t=u;t--;o.push(0));o.reverse()}else for(r=(i=(u=h.length)<(t=f.length))?u:t,u=t=0;t<r;t++)if(h[t]!=f[t]){i=h[t]<f[t];break}if(i&&(o=h,h=f,f=o,e.s=-e.s),(t=(r=f.length)-(n=h.length))>0)for(;t--;h[n++]=0);for(t=a-1;r>u;){if(h[--r]<f[r]){for(n=r;n&&!h[--n];h[n]=t);--h[n],h[r]+=a}h[r]-=f[r]}for(;0==h[0];h.splice(0,1),--d);return h[0]?G(e,h,d):(e.s=3==D?-1:1,e.c=[e.e=0],e)},L.modulo=L.mod=function(e,t){var n,r,o=this;return e=new B(e,t),!o.c||!e.s||e.c&&!e.c[0]?new B(NaN):!e.c||o.c&&!o.c[0]?new B(o):(9==Y?(r=e.s,e.s=1,n=v(o,e,0,3),e.s=r,n.s*=r):n=v(o,e,0,Y),(e=o.minus(n.times(e))).c[0]||1!=Y||(e.s=o.s),e)},L.multipliedBy=L.times=function(e,t){var n,r,o,i,s,u,c,h,f,m,g,b,y,w,v,S=this,C=S.c,_=(e=new B(e,t)).c;if(!(C&&_&&C[0]&&_[0]))return!S.s||!e.s||C&&!C[0]&&!_||_&&!_[0]&&!C?e.c=e.e=e.s=null:(e.s*=S.s,C&&_?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=p(S.e/l)+p(e.e/l),e.s*=S.s,(c=C.length)<(m=_.length)&&(y=C,C=_,_=y,o=c,c=m,m=o),o=c+m,y=[];o--;y.push(0));for(w=a,v=d,o=m;--o>=0;){for(n=0,g=_[o]%v,b=_[o]/v|0,i=o+(s=c);i>o;)n=((h=g*(h=C[--s]%v)+(u=b*h+(f=C[s]/v|0)*g)%v*v+y[i]+n)/w|0)+(u/v|0)+b*f,y[i--]=h%w;y[i]=n}return n?++r:y.splice(0,1),G(e,y,r)},L.negated=function(){var e=new B(this);return e.s=-e.s||null,e},L.plus=function(e,t){var n,r=this,o=r.s;if(t=(e=new B(e,t)).s,!o||!t)return new B(NaN);if(o!=t)return e.s=-t,r.minus(e);var i=r.e/l,s=e.e/l,u=r.c,c=e.c;if(!i||!s){if(!u||!c)return new B(o/0);if(!u[0]||!c[0])return c[0]?e:new B(u[0]?r:0*o)}if(i=p(i),s=p(s),u=u.slice(),o=i-s){for(o>0?(s=i,n=c):(o=-o,n=u),n.reverse();o--;n.push(0));n.reverse()}for((o=u.length)-(t=c.length)<0&&(n=c,c=u,u=n,t=o),o=0;t;)o=(u[--t]=u[t]+c[t]+o)/a|0,u[t]=a===u[t]?0:u[t]%a;return o&&(u=[o].concat(u),++s),G(e,u,s)},L.precision=L.sd=function(e,t){var n,r,o,i=this;if(null!=e&&e!==!!e)return g(e,1,h),null==t?t=D:g(t,0,8),K(new B(i),e,t);if(!(n=i.c))return null;if(r=(o=n.length-1)*l+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},L.shiftedBy=function(e){return g(e,-9007199254740991,u),this.times("1e"+e)},L.squareRoot=L.sqrt=function(){var e,t,n,r,o,i=this,s=i.c,a=i.s,l=i.e,u=P+4,c=new B("0.5");if(1!==a||!s||!s[0])return new B(!a||a<0&&(!s||s[0])?NaN:s?i:1/0);if(0==(a=Math.sqrt(+q(i)))||a==1/0?(((t=f(s)).length+l)%2==0&&(t+="0"),a=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),n=new B(t=a==1/0?"5e"+l:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new B(a+""),n.c[0])for((a=(l=n.e)+u)<3&&(a=0);;)if(o=n,n=c.times(o.plus(v(i,o,u,1))),f(o.c).slice(0,a)===(t=f(n.c)).slice(0,a)){if(n.e<l&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(n,n.e+P+2,1),e=!n.times(n).eq(i));break}if(!r&&(K(o,o.e+P+2,0),o.times(o).eq(i))){n=o;break}u+=4,a+=4,r=1}return K(n,n.e+P+1,D,e)},L.toExponential=function(e,t){return null!=e&&(g(e,0,h),e++),$(this,e,t,1)},L.toFixed=function(e,t){return null!=e&&(g(e,0,h),e=e+this.e+1),$(this,e,t)},L.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=z;else if("object"!=typeof n)throw Error(i+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var s,a=r.split("."),l=+n.groupSize,u=+n.secondaryGroupSize,c=n.groupSeparator||"",d=a[0],h=a[1],p=o.s<0,f=p?d.slice(1):d,m=f.length;if(u&&(s=l,l=u,u=s,m-=s),l>0&&m>0){for(s=m%l||l,d=f.substr(0,s);s<m;s+=l)d+=c+f.substr(s,l);u>0&&(d+=c+f.slice(s)),p&&(d="-"+d)}r=h?d+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):h):d}return(n.prefix||"")+r+(n.suffix||"")},L.toFraction=function(e){var t,n,r,o,s,a,u,d,h,p,m,g,b=this,y=b.c;if(null!=e&&(!(u=new B(e)).isInteger()&&(u.c||1!==u.s)||u.lt(I)))throw Error(i+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+q(u));if(!y)return new B(b);for(t=new B(I),h=n=new B(I),r=d=new B(I),g=f(y),s=t.e=g.length-b.e-1,t.c[0]=c[(a=s%l)<0?l+a:a],e=!e||u.comparedTo(t)>0?s>0?t:h:u,a=N,N=1/0,u=new B(g),d.c[0]=0;p=v(u,t,0,1),1!=(o=n.plus(p.times(r))).comparedTo(e);)n=r,r=o,h=d.plus(p.times(o=h)),d=o,t=u.minus(p.times(o=t)),u=o;return o=v(e.minus(n),r,0,1),d=d.plus(o.times(h)),n=n.plus(o.times(r)),d.s=h.s=b.s,m=v(h,r,s*=2,D).minus(b).abs().comparedTo(v(d,n,s,D).minus(b).abs())<1?[h,r]:[d,n],N=a,m},L.toNumber=function(){return+q(this)},L.toPrecision=function(e,t){return null!=e&&g(e,1,h),$(this,e,t,2)},L.toString=function(e){var t,n=this,r=n.s,o=n.e;return null===o?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=o<=H||o>=O?y(f(n.c),o):w(f(n.c),o,"0"):10===e&&V?t=w(f((n=K(new B(n),P+o+1,D)).c),n.e,"0"):(g(e,2,W.length,"Base"),t=S(w(f(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},L.valueOf=L.toJSON=function(){return q(this)},L._isBigNumber=!0,null!=t&&B.set(t),B}(),t.default=t.BigNumber=t,bS.exports?bS.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)}(lS);var wS=yS.exports;const vS=gS(),SS=hS(),CS=mS,_S=wS,MS={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},xS={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:kS,decimalSuffixes:RS}=vS.currentBytes(),TS={general:{scale:1024,suffixes:RS,marker:"bd"},binary:{scale:1024,suffixes:kS,marker:"b"},decimal:{scale:1e3,suffixes:RS,marker:"d"}};function ES(e,t,n){let r=t[0],o=Math.abs(e);if(o>=n){for(let i=1;i<t.length;++i){let s=Math.pow(n,i),a=Math.pow(n,i+1);if(o>=s&&o<a){r=t[i],e/=s;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function LS(e){let t="";for(let n=0;n<e;n++)t+="0";return t}function IS({instance:e,providedFormat:t,state:n=vS,decimalSeparator:r,defaults:o=n.currentDefaults()}){let i=e._value;if(0===i&&n.hasZeroFormat())return n.getZeroFormat();if(!isFinite(i))return i.toString();let s=Object.assign({},xS,o,t),a=s.totalLength,l=a?0:s.characteristic,u=s.optionalCharacteristic,c=s.forceAverage,d=s.lowPrecision,h=!!a||!!c||s.average,p=a?-1:h&&void 0===t.mantissa?0:s.mantissa,f=!a&&(void 0===t.optionalMantissa?-1===p:s.optionalMantissa),m=s.trimMantissa,g=s.thousandSeparated,b=s.spaceSeparated,y=s.negative,w=s.forceSign,v=s.exponential,S=s.roundingFunction,C="";if(h){let e=function({value:e,forceAverage:t,lowPrecision:n=!0,abbreviations:r,spaceSeparated:o=!1,totalLength:i=0,roundingFunction:s=Math.round}){let a="",l=Math.abs(e),u=-1;if(t&&r[t]&&MS[t]?(a=r[t],e/=MS[t]):l>=MS.trillion||n&&1===s(l/MS.trillion)?(a=r.trillion,e/=MS.trillion):l<MS.trillion&&l>=MS.billion||n&&1===s(l/MS.billion)?(a=r.billion,e/=MS.billion):l<MS.billion&&l>=MS.million||n&&1===s(l/MS.million)?(a=r.million,e/=MS.million):(l<MS.million&&l>=MS.thousand||n&&1===s(l/MS.thousand))&&(a=r.thousand,e/=MS.thousand),a&&(a=(o?" ":"")+a),i){let t=e<0,n=e.toString().split(".")[0],r=t?n.length-1:n.length;u=Math.max(i-r,0)}return{value:e,abbreviation:a,mantissaPrecision:u}}({value:i,forceAverage:c,lowPrecision:d,abbreviations:n.currentAbbreviations(),spaceSeparated:b,roundingFunction:S,totalLength:a});i=e.value,C+=e.abbreviation,a&&(p=e.mantissaPrecision)}if(v){let e=function({value:e,characteristicPrecision:t}){let[n,r]=e.toExponential().split("e"),o=+n;return t?(1<t&&(o*=Math.pow(10,t-1),r=+r-(t-1),r=r>=0?`+${r}`:r),{value:o,abbreviation:`e${r}`}):{value:o,abbreviation:`e${r}`}}({value:i,characteristicPrecision:l});i=e.value,C=e.abbreviation+C}let _=function(e,t,n,r,o,i){if(-1===r)return e;let s=function(e,t,n=Math.round){return-1!==e.toString().indexOf("e")?function(e,t){let n=e.toString(),[r,o]=n.split("e"),[i,s=""]=r.split(".");if(+o>0)n=i+s+LS(o-s.length);else{let e=".";e=+i<0?`-0${e}`:`0${e}`;let r=(LS(-o-1)+Math.abs(i)+s).substr(0,t);r.length<t&&(r+=LS(t-r.length)),n=e+r}return+o>0&&t>0&&(n+=`.${LS(t)}`),n}(e,t):new _S(n(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,r,i),[a,l=""]=s.toString().split(".");if(l.match(/^0+$/)&&(n||o))return a;let u=l.match(/0+$/);return o&&u?`${a}.${l.toString().slice(0,u.index)}`:s.toString()}(i.toString(),i,f,p,m,S);return _=function(e,t,n,r){let o=e,[i,s]=o.toString().split(".");if(i.match(/^-?0$/)&&n)return s?`${i.replace("0","")}.${s}`:i.replace("0","");const a=t<0&&0===i.indexOf("-");if(a&&(i=i.slice(1),o=o.slice(1)),i.length<r){let e=r-i.length;for(let t=0;t<e;t++)o=`0${o}`}return a&&(o=`-${o}`),o.toString()}(_,i,u,l),_=function(e,t,n,r,o){let i=r.currentDelimiters(),s=i.thousands;o=o||i.decimal;let a=i.thousandsSize||3,l=e.toString(),u=l.split(".")[0],c=l.split(".")[1];const d=t<0&&0===u.indexOf("-");if(n){d&&(u=u.slice(1));let e=function(e,t){let n=[],r=0;for(let o=e;o>0;o--)r===t&&(n.unshift(o),r=0),r++;return n}(u.length,a);e.forEach(((e,t)=>{u=u.slice(0,e+t)+s+u.slice(e+t)})),d&&(u=`-${u}`)}return l=c?u+o+c:u,l}(_,i,g,n,r),(h||v)&&(_=function(e,t){return e+t}(_,C)),(w||i<0)&&(_=function(e,t,n){return 0===t?e:0===+e?e.replace("-",""):t>0?`+${e}`:"sign"===n?e:`(${e.replace("-","")})`}(_,i,y)),_}function PS(e,t){if(!e)return t;let n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}const DS=wS;function HS(e,t,n){let r=new DS(e._value),o=t;return n.isNumbro(t)&&(o=t._value),o=new DS(o),e._value=r.minus(o).toNumber(),e}const OS=gS(),AS=hS(),NS=(e=>({loadLanguagesInNode:t=>function(e,t){e.forEach((e=>{let n;try{n=function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}n&&t.registerLanguage(n)}))}(t,e)}))(BS),jS=dS();let YS=(e=>({format:(...t)=>function(e,t={},n){if("string"==typeof t&&(t=CS.parseFormat(t)),!SS.validateFormat(t))return"ERROR: invalid format";let r=t.prefix||"",o=t.postfix||"",i=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){const r=n.currentCurrency();let o,i=Object.assign({},t),s=Object.assign({},xS,i),a="",l=!!s.totalLength||!!s.forceAverage||s.average,u=i.currencyPosition||r.position,c=i.currencySymbol||r.symbol;const d=void 0!==s.spaceSeparatedCurrency?s.spaceSeparatedCurrency:s.spaceSeparated;void 0===i.lowPrecision&&(i.lowPrecision=!1),d&&(a=" "),"infix"===u&&(o=a+c+a);let h=IS({instance:e,providedFormat:i,state:n,decimalSeparator:o});return"prefix"===u&&(h=e._value<0&&"sign"===s.negative?`-${a}${c}${h.slice(1)}`:e._value>0&&s.forceSign?`+${a}${c}${h.slice(1)}`:c+a+h),u&&"postfix"!==u||(a=!s.spaceSeparatedAbbreviation&&l?"":a,h=h+a+c),h}(e,t=PS(t,vS.currentCurrencyDefaultFormat()),vS);case"percent":return function(e,t,n,r){let o=t.prefixSymbol,i=IS({instance:r(100*e._value),providedFormat:t,state:n}),s=Object.assign({},xS,t);return o?`%${s.spaceSeparated?" ":""}${i}`:`${i}${s.spaceSeparated?" ":""}%`}(e,t=PS(t,vS.currentPercentageDefaultFormat()),vS,n);case"byte":return function(e,t,n,r){let o=t.base||"binary",i=Object.assign({},xS,t);const{binarySuffixes:s,decimalSuffixes:a}=n.currentBytes();let l={general:{scale:1024,suffixes:a||RS,marker:"bd"},binary:{scale:1024,suffixes:s||kS,marker:"b"},decimal:{scale:1e3,suffixes:a||RS,marker:"d"}}[o],{value:u,suffix:c}=ES(e._value,l.suffixes,l.scale);return`${IS({instance:r(u),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()})}${i.spaceSeparated?" ":""}${c}`}(e,t=PS(t,vS.currentByteDefaultFormat()),vS,n);case"time":return t=PS(t,vS.currentTimeDefaultFormat()),function(e){let t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return`${t}:${n<10?"0":""}${n}:${r<10?"0":""}${r}`}(e);case"ordinal":return function(e,t,n){let r=n.currentOrdinal(),o=Object.assign({},xS,t),i=IS({instance:e,providedFormat:t,state:n}),s=r(e._value);return`${i}${o.spaceSeparated?" ":""}${s}`}(e,t=PS(t,vS.currentOrdinalDefaultFormat()),vS);default:return IS({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return i=function(e,t){return t+e}(i,r),i=function(e,t){return e+t}(i,o),i}(...t,e),getByteUnit:(...t)=>function(e){let t=TS.general;return ES(e._value,t.suffixes,t.scale).suffix}(...t,e),getBinaryByteUnit:(...t)=>function(e){let t=TS.binary;return ES(e._value,t.suffixes,t.scale).suffix}(...t,e),getDecimalByteUnit:(...t)=>function(e){let t=TS.decimal;return ES(e._value,t.suffixes,t.scale).suffix}(...t,e),formatOrDefault:PS}))(BS),FS=(e=>({add:(t,n)=>function(e,t,n){let r=new DS(e._value),o=t;return n.isNumbro(t)&&(o=t._value),o=new DS(o),e._value=r.plus(o).toNumber(),e}(t,n,e),subtract:(t,n)=>HS(t,n,e),multiply:(t,n)=>function(e,t,n){let r=new DS(e._value),o=t;return n.isNumbro(t)&&(o=t._value),o=new DS(o),e._value=r.times(o).toNumber(),e}(t,n,e),divide:(t,n)=>function(e,t,n){let r=new DS(e._value),o=t;return n.isNumbro(t)&&(o=t._value),o=new DS(o),e._value=r.dividedBy(o).toNumber(),e}(t,n,e),set:(t,n)=>function(e,t,n){let r=t;return n.isNumbro(t)&&(r=t._value),e._value=r,e}(t,n,e),difference:(t,n)=>function(e,t,n){let r=n(e._value);return HS(r,t,n),Math.abs(r._value)}(t,n,e),BigNumber:DS}))(BS);const zS=mS;class WS{constructor(e){this._value=e}clone(){return BS(this._value)}format(e={}){return YS.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=zS.parseFormat(e)),(e=YS.formatOrDefault(e,OS.currentCurrencyDefaultFormat())).output="currency",YS.format(this,e)}formatTime(e={}){return e.output="time",YS.format(this,e)}binaryByteUnits(){return YS.getBinaryByteUnit(this)}decimalByteUnits(){return YS.getDecimalByteUnit(this)}byteUnits(){return YS.getByteUnit(this)}difference(e){return FS.difference(this,e)}add(e){return FS.add(this,e)}subtract(e){return FS.subtract(this,e)}multiply(e){return FS.multiply(this,e)}divide(e){return FS.divide(this,e)}set(e){return FS.set(this,VS(e))}value(){return this._value}valueOf(){return this._value}}function VS(e){let t=e;return BS.isNumbro(e)?t=e._value:"string"==typeof e?t=BS.unformat(e):isNaN(e)&&(t=NaN),t}function BS(e){return new WS(VS(e))}BS.version="2.5.0",BS.isNumbro=function(e){return e instanceof WS},BS.language=OS.currentLanguage,BS.registerLanguage=OS.registerLanguage,BS.setLanguage=OS.setLanguage,BS.languages=OS.languages,BS.languageData=OS.languageData,BS.zeroFormat=OS.setZeroFormat,BS.defaultFormat=OS.currentDefaults,BS.setDefaults=OS.setDefaults,BS.defaultCurrencyFormat=OS.currentCurrencyDefaultFormat,BS.validate=AS.validate,BS.loadLanguagesInNode=NS.loadLanguagesInNode,BS.unformat=jS.unformat,BS.BigNumber=FS.BigNumber;var $S=uS(BS);function US(e,t){if(Nl(e)){const n=t.numericFormat,r=n&&n.culture||"-",o=n&&n.pattern;if(void 0!==r&&!$S.languages()[r]){const e=r.replace("-",""),t=$S.allLanguages?$S.allLanguages[r]:$S[e];t&&$S.registerLanguage(t)}$S.setLanguage(r),e=$S(e).format(o||"0")}return e}function GS(e,t,n,r,o,i,s){let a=i;if(Nl(a)){let e=[];if(Array.isArray(s.className))e=s.className;else{var l;const t=null!==(l=s.className)&&void 0!==l?l:"";t.length&&(e=t.split(" "))}a=US(a,s),e.indexOf("htLeft")<0&&e.indexOf("htCenter")<0&&e.indexOf("htRight")<0&&e.indexOf("htJustify")<0&&e.push("htRight"),e.indexOf("htNumeric")<0&&e.push("htNumeric"),s.className=e.join(" "),t.dir="ltr"}cw(e,t,n,r,o,a,s)}function KS(e,t,n,r,o,i,s){cw.apply(this,[e,t,n,r,o,i,s]);const a=s.hashLength||t.innerHTML.length,l=s.hashSymbol||"*";let u="";jl(a-1,(()=>{u+=l})),Vi(t,u)}function qS(e,t,n,r,o,i,s){cw.apply(this,[e,t,n,r,o,i,s])}function XS(e,t,n,r,o,i,s){cw.apply(this,[e,t,n,r,o,i,s]),t.dir="ltr"}function JS(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(n,QS(n,t)):QS(n,t)(this.source):t(!0)}function QS(e,t){const n=e;return function(e){let r=!1;for(let t=0,o=e.length;t<o;t++)if(n===e[t]){r=!0;break}t(r)}}function ZS(e,t){const n=rl(Dv,this.instance);let r=e,o=!0;null==r&&(r="");let i=ws(r,this.dateFormat||n.defaultDateFormat,!0).isValid(),s=ws(new Date(r)).isValid()||i;if(this.allowEmpty&&""===r&&(s=!0,i=!0),s||(o=!1),!s&&i&&(o=!0),s&&!i)if(!0===this.correctFormat){const e=function(e,t){const n=ws(function(e){const t=new Date(e);return isNaN(new Date(`${e}T00:00`).getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}(e)),r=ws(e,t),o=e.search(/[A-Za-z]/g)>-1;let i;return i=n.isValid()&&n.format("x")===r.format("x")||!r.isValid()||o?n:r,i.format(t)}(r,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),o=!0}else o=!1;t(o)}function eC(e,t){JS.apply(this,[e,t])}function tC(e,t){let n=e;null==n&&(n=""),this.allowEmpty&&""===n?t(!0):t(""!==n&&Nl(e))}GS.RENDERER_TYPE="numeric",KS.RENDERER_TYPE="password",qS.RENDERER_TYPE="select",XS.RENDERER_TYPE="time",JS.VALIDATOR_TYPE="autocomplete",ZS.VALIDATOR_TYPE="date",eC.VALIDATOR_TYPE="dropdown",tC.VALIDATOR_TYPE="numeric";const nC=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];function rC(e,t){const n=this.timeFormat||"h:mm:ss a";let r=!0,o=e;null===o&&(o=""),o=/^\d{3,}$/.test(o)?parseInt(o,10):o;const i=/^\d{1,2}$/.test(o);i&&(o+=":00");const s=ws(o,nC,!0).isValid()?ws(o):ws(o,n);let a=s.isValid(),l=ws(o,n,!0).isValid()&&!i;if(this.allowEmpty&&""===o&&(a=!0,l=!0),a||(r=!1),!a&&l&&(r=!0),a&&!l)if(!0===this.correctFormat){const e=s.format(n);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),r=!0}else r=!1;t(r)}rC.VALIDATOR_TYPE="time";const oC={CELL_TYPE:"autocomplete",editor:rv,renderer:Uv,validator:JS},iC={CELL_TYPE:"checkbox",editor:iv,renderer:Zv};function sC(e,t,n,r,o,i,s){Uv.apply(this,[e,t,n,r,o,i,s])}sC.RENDERER_TYPE="date";const aC={CELL_TYPE:"date",editor:Av,renderer:sC,validator:ZS},lC={CELL_TYPE:"dropdown",editor:jv,renderer:Gv,validator:eC,filter:!1,strict:!0},uC={CELL_TYPE:"handsontable",editor:Kw,renderer:tS},cC={CELL_TYPE:"numeric",editor:Yv,renderer:GS,validator:tC,dataType:"number"},dC={CELL_TYPE:"password",editor:Fv,renderer:KS,copyable:!1},hC={CELL_TYPE:"select",editor:Vv,renderer:qS},pC={CELL_TYPE:"time",editor:Bv,renderer:XS,validator:rC};function fC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gC(e,t){return e.get(bC(e,t))}function bC(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const yC=new Map([["plugin",function(e){return!!eu(e)}],["cell-type",ob],["editor",Za],["renderer",ou],["validator",du]]),wC=Symbol("mainSetting"),vC=[];let SC=null;var CC=new WeakMap,_C=new WeakSet;class MC{static get PLUGIN_KEY(){return"base"}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t;fC(this,t=_C),t.add(this),mC(this,"eventManager",new al(this)),mC(this,"pluginName",null),mC(this,"pluginsInitializedCallbacks",[]),mC(this,"isPluginsReady",!1),mC(this,"enabled",!1),mC(this,"initialized",!1),function(e,t){fC(e,t),t.set(e,{})}(this,CC),ea(this,"hot",e,{writable:!1}),SC=null,this.hot.addHook("afterPluginsInitialized",(()=>this.onAfterPluginsInitialized())),this.hot.addHook("afterUpdateSettings",(e=>this.onUpdateSettings(e))),this.hot.addHook("beforeInit",(()=>this.init()))}init(){this.pluginName=this.hot.getPluginName(this);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach((t=>{const[n,r]=t.split(":");if(!yC.has(n))throw new Error(`Unknown plugin dependency type "${n}" was found.`);yC.get(n)(r)||e.push(` - ${r} (${n})`)})),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");vC.push(t)}}if(SC||(SC=Zl()),SC.indexOf(this.pluginName)>=0&&SC.splice(SC.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",(()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()})),0===SC.length){if(vC.length>0){const e=[`${vC.join("\n")}\n`,"You have to import and register them manually."].join("");throw vC.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const n=this.constructor.DEFAULT_SETTINGS;var r,o;return(Array.isArray(t)||Zs(t))&&n[wC]===e?Array.isArray(t)?t:null!==(r=t[e])&&void 0!==r?r:n[e]:Zs(t)&&null!==(o=t[e])&&void 0!==o?o:n[e]}addHook(e,t,n){gC(CC,this)[e]=gC(CC,this)[e]||[];const r=gC(CC,this)[e];this.hot.addHook(e,t,n),r.push(t),gC(CC,this)[e]=r}removeHooks(e){xs(gC(CC,this)[e]||[],(t=>{this.hot.removeHook(e,t)}))}clearHooks(){const e=gC(CC,this);ta(e,((e,t)=>this.removeHooks(t))),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){xs(this.pluginsInitializedCallbacks,(e=>e())),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=bC(_C,this,xC).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),ta(this,((e,t)=>{"hot"!==t&&(this[t]=null)})),delete this.t,delete this.hot}}function xC(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let n=0;n<t.length;n++)if(void 0!==e[t[n]])return!0;return!1}function kC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RC=class{constructor(e){kC(this,"hot",null),kC(this,"container",null),kC(this,"injected",!1),kC(this,"rows",[]),kC(this,"columns",[]),kC(this,"samples",null),kC(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),0===e&&Ai(this.table.table,"htGhostTableFirstRow"),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}addColumnHeadersRow(e){if(null!=this.hot.getColHeader(0)){const t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}}addColumn(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th,void 0,-1),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}getHeights(e){this.injected||this.injectTable(),xs(this.rows,(t=>{const{height:n}=t.table.getBoundingClientRect();e(t.row,Math.ceil(n))}))}getWidths(e){this.injected||this.injectTable(),xs(this.columns,(t=>{const{width:n}=t.table.getBoundingClientRect();e(t.col,Math.ceil(n))}))}setSettings(e){this.settings=e}setSetting(e,t){this.settings||(this.settings={}),this.settings[e]=t}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1,-1)),this.samples.forEach((n=>{xs(n.strings,(n=>{t.appendChild(this.createColElement(n.col,e))}))})),t}createRow(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),n.appendChild(r)),this.samples.forEach((r=>{xs(r.strings,(r=>{const o=r.col,i=this.hot.getCellMeta(e,o),s=this.hot.getCellRenderer(i),a=t.createElement("td");a.setAttribute("ghost-table",1),s(this.hot,a,e,o,this.hot.colToProp(o),r.value,i),n.appendChild(a)}))})),n}appendColumnHeadersRow(){const{rootDocument:e}=this.hot,t=e.createDocumentFragment(),n=[];if(this.hot.hasRowHeaders()){const r=e.createElement("th");n.push([-1,r]),t.appendChild(r)}this.samples.forEach((r=>{xs(r.strings,(r=>{const o=r.col,i=e.createElement("th");n.push([o,i]),t.appendChild(i)}))})),this.table.tHead.appendChild(t),xs(n,(e=>{const[t,n]=e;this.hot.view.appendColHeader(t,n)}))}createCol(e){const{rootDocument:t}=this.hot,n=t.createDocumentFragment();return this.samples.forEach((r=>{xs(r.strings,(r=>{const o=r.row,i=this.hot.getCellMeta(o,e),s=this.hot.getCellRenderer(i),a=t.createElement("td"),l=t.createElement("tr");a.setAttribute("ghost-table",1),s(this.hot,a,o,e,this.hot.colToProp(e),r.value,i),l.appendChild(a),n.appendChild(l)}))})),n}clean(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}injectTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}removeTable(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}createColElement(e,t){const n=this.hot.rootDocument.createElement("col");let r=0;t>=0&&e>=0&&(r=this.hot.getCellMeta(t,e).colspan);let o=this.hot.getColWidth(e);if(r>1)for(let t=e+1;t<e+r;t++)o+=this.hot.getColWidth(t);return n.style.width=`${o}px`,n}createTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),s=t.createElement("colgroup"),a=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&r.appendChild(s),this.isHorizontal()&&(a.appendChild(l),o.appendChild(a),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(a),r.appendChild(i),Ai(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:s,tr:a,th:l}}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{rootDocument:t}=this.hot,n=t.createDocumentFragment(),r=t.createElement("div");return Ai(r,`htGhostTable htAutoSize ${e.trim()}`),n.appendChild(r),{fragment:n,container:r}}isVertical(){return!(!this.rows.length||this.columns.length)}isHorizontal(){return!(!this.columns.length||this.rows.length)}};function TC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class EC{static get SAMPLE_COUNT(){return 3}constructor(e){TC(this,"samples",null),TC(this,"dataFactory",null),TC(this,"customSampleCount",null),TC(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:EC.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,n){const r=new Map,{from:o,to:i}="number"==typeof n?{from:n,to:n}:n;return jl(o,i,(n=>{const o=this.generateSample(e,t,n);r.set(n,o)})),r}generateSample(e,t,n){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const r=new Map,o="row"===e?"col":"row",i=[];return jl(t.from,t.to,(t=>{const s="row"===e?this.dataFactory(n,t):this.dataFactory(t,n);if(!1===s)return;const{value:a,bundleSeed:l}=s,u="string"==typeof l&&l.length>0;let c;c=u?l:Zs(a)?`${Object.keys(a).length}`:Array.isArray(a)?`${a.length}`:`${Es(a).length}`,r.has(c)||r.set(c,{needed:this.getSampleCount(),strings:[]});const d=r.get(c);d.needed&&(!(i.indexOf(a)>-1)||this.allowDuplicates||u)&&(d.strings.push({value:a,[o]:t}),i.push(a),d.needed-=1)})),r}}const LC=EC;function IC(e,t,n){PC(e,t),t.set(e,n)}function PC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function DC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HC(e,t){return e.get(AC(e,t))}function OC(e,t,n){return e.set(AC(e,t),n),n}function AC(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("modifyAutoColumnSizeSeed");const NC="autoColumnSize";var jC=new WeakMap,YC=new WeakMap,FC=new WeakMap,zC=new WeakSet;class WC extends MC{static get PLUGIN_KEY(){return NC}static get PLUGIN_PRIORITY(){return 10}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t;super(e),PC(this,t=zC),t.add(this),DC(this,"ghostTable",new RC(this.hot)),DC(this,"samplesGenerator",new LC(((e,t)=>{const n=this.hot.toPhysicalRow(e),r=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(r))return!1;const o=this.hot.getCellMeta(e,t);let i="";o.spanned||(i=this.hot.getDataAtCell(e,t));let s="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(s=this.hot.runHooks("modifyAutoColumnSizeSeed",s,o,i)),{value:i,bundleSeed:s}}))),DC(this,"inProgress",!1),DC(this,"measuredColumns",0),DC(this,"columnWidthsMap",new Ap),IC(this,jC,!1),IC(this,YC,[]),IC(this,FC,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",((e,t,n)=>AC(zC,this,qC).call(this,e,t,n)))}isEnabled(){return!1!==this.hot.getSettings()[NC]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AC(zC,e,GC).call(e,...n)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AC(zC,e,KC).call(e,...n)})),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AC(zC,e,JC).call(e,...n)})),this.addHook("beforeRender",(()=>AC(zC,this,UC).call(this))),this.addHook("modifyColWidth",((e,t)=>this.getColumnWidth(t,e))),this.addHook("init",(()=>AC(zC,this,XC).call(this))),super.enablePlugin()}updatePlugin(){OC(FC,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",((e,t,n)=>AC(zC,this,qC).call(this,e,t,n)))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,n)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="number"==typeof e?{from:e,to:e}:e,o="number"==typeof t?{from:t,to:t}:t;jl(r.from,r.to,(e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(n||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&AC(zC,this,BC).call(this,e,o)})),this.ghostTable.columns.length&&(AC(zC,this,$C).call(this),this.measuredColumns=r.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const r=this.hot.countCols()-1;let o=null;this.inProgress=!0;const i=()=>{if(!this.hot)return aa(o),void(this.inProgress=!1);this.calculateColumnsWidth({from:n,to:Math.min(n+WC.CALCULATION_STEP,r)},e,t),n=n+WC.CALCULATION_STEP+1,n<r?o=sa(i):(aa(o),this.inProgress=!1,this.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();s>=0&&(this.calculateColumnsWidth({from:0,to:s},e,t),n=s+1),n<r?i():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[NC];let t=WC.SYNC_CALCULATION_LIMIT;const n=this.hot.countCols()-1;return Zs(e)&&(t=e.syncLimit,di(t)?t=Fl(n,t):t>>=0),Math.min(t,n)}getColumnWidth(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t;return void 0===r&&(r=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),n&&"number"==typeof r&&(r=Math.max(r,Jd))),r}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce(((e,t,n)=>{const r=HC(YC,this).length;return(r-1<n||HC(YC,this)[n]!==t)&&e.push(this.hot.toVisualColumn(n)),r-1<n?HC(YC,this).push(t):HC(YC,this)[n]=t,e}),[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.columnWidthsMap.setValueAtIndex(e,null)}))}),!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function VC(e){const t={from:0,to:this.hot.countRows()-1};e.forEach((e=>{const n=this.hot.toPhysicalColumn(e);null!==n&&(this.hot._getColWidthFromSettings(n)||AC(zC,this,BC).call(this,e,t))})),this.ghostTable.columns.length&&(AC(zC,this,$C).call(this),this.ghostTable.clean())}function BC(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach(((e,t)=>this.ghostTable.addColumn(t,e)))}function $C(){this.hot.batchExecution((()=>{this.ghostTable.getWidths(((e,t)=>{const n=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(n,t)}))}),!0)}function UC(){this.calculateVisibleColumnsWidth(),this.inProgress||(AC(zC,this,VC).call(this,HC(FC,this)),OC(FC,this,[]))}function GC(e,t){t||this.recalculateAllColumnsWidth()}function KC(e){const t=e.reduce(((e,t)=>{let[,n]=t;const r=this.hot.propToCol(n);return Number.isInteger(r)&&-1===e.indexOf(r)&&e.push(r),e}),[]);HC(FC,this).push(...t)}function qC(e,t,n){let r=e;return n&&(this.calculateColumnsWidth(t,void 0,!0),r=this.getColumnWidth(t,void 0,!1)),r}function XC(){OC(YC,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),OC(jC,this,!0)}function JC(e){if(!HC(jC,this))return;const t=e.reduce(((e,t)=>{var n;const r=null===(n=t.address)||void 0===n?void 0:n.col;if(Number.isInteger(r)){const t=this.hot.toVisualColumn(r);-1===e.indexOf(t)&&e.push(t)}return e}),[]);HC(FC,this).push(...t)}const QC={horizontal:"horizontal",vertical:"vertical"};function ZC(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e_(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("modifyAutofillRange"),Ua.getSingleton().register("beforeAutofill"),Ua.getSingleton().register("afterAutofill");const t_="autofill",n_=["fillHandle"];var r_=new WeakSet;class o_ extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=r_),t.add(e),ZC(this,"addingStarted",!1),ZC(this,"mouseDownOnCellCorner",!1),ZC(this,"mouseDragOutside",!1),ZC(this,"handleDraggedCells",0),ZC(this,"directions",[]),ZC(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return t_}static get PLUGIN_PRIORITY(){return 20}static get SETTING_KEYS(){return[t_,...n_]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",(e=>e_(r_,this,s_).call(this,e))),this.addHook("afterOnCellCornerDblClick",(e=>e_(r_,this,i_).call(this,e))),this.addHook("beforeOnCellMouseOver",((e,t)=>e_(r_,this,a_).call(this,t))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){const e=this.hot.getSelectedRangeLast(),{row:t,col:n}=e.getTopStartCorner(),{row:r,col:o}=e.getBottomEndCorner(),i=this.hot.runHooks("modifyCopyableRange",[{startRow:t,startCol:n,endRow:r,endCol:o}]),s=[],a=[],l=[];return xs(i,(e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===s.indexOf(t)&&s.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===a.indexOf(t)&&a.push(t)})),xs(s,(e=>{const t=[];xs(a,(n=>{t.push(this.hot.getCopyableData(e,n))})),l.push(t)})),l}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,n,r]=this.hot.selection.highlight.getFill().getVisualCorners(),o=this.hot.getSelectedRangeLast(),i=o.getTopStartCorner(),s=o.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,s.row,s.col],l=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(s.row,n),Math.max(s.col,r)],a),{directionOfDrag:u,startOfDragCoords:c,endOfDragCoords:d}=function(e,t,n){let r,o,i;return t[0]===e[0]&&t[1]<e[1]?(i="left",r=n(t[0],t[1]),o=n(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",r=n(t[0],e[3]+1),o=n(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",r=n(t[0],t[1]),o=n(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",r=n(e[2]+1,t[1]),o=n(t[2],t[3])),r&&r.normalize(),o&&o.normalize(),{directionOfDrag:i,startOfDragCoords:r,endOfDragCoords:o}}(a,l,((e,t)=>this.hot._createCellCoords(e,t)));if(c&&c.row>-1&&c.col>-1){const e=this.getSelectionData(),t=o.clone(),n=this.hot._createCellRange(c,c,d),r=this.hot.runHooks("beforeAutofill",e,t,n,u);if(!1===r)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let i=r;const s=r;if(["up","left"].indexOf(u)>-1&&(1!==s.length||0!==s[0].length))if(i=[],"up"===u){const e=d.row-c.row+1,t=e%s.length;for(let n=0;n<e;n++)i.push(s[(n+(s.length-t))%s.length])}else{const e=d.col-c.col+1,t=e%s[0].length;for(let n=0;n<s.length;n++){i.push([]);for(let r=0;r<e;r++)i[n].push(s[n][(r+(s[n].length-t))%s[n].length])}}this.hot.populateFromArray(c.row,c.col,i,d.row,d.col,`${this.pluginName}.fill`,null),this.setSelection(l),this.hot.runHooks("afterAutofill",i,t,n,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),n=t.getBottomEndCorner();let r=e;if(this.directions.includes(QC.vertical)&&this.directions.includes(QC.horizontal)){const o=t.getTopStartCorner();(n.col<=e.col||o.col>=e.col)&&(r=this.hot._createCellCoords(n.row,e.col)),(n.row<e.row||o.row>e.row)&&(r=this.hot._createCellCoords(e.row,n.col))}else if(this.directions.includes(QC.vertical))r=this.hot._createCellCoords(e.row,n.col);else{if(!this.directions.includes(QC.horizontal))return;r=this.hot._createCellCoords(n.row,e.col)}return this.reduceSelectionAreaIfNeeded(r)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout((()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1}),200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),n=this.hot.countRows();e[2]<n-1&&t[2]===n-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),n=this.hot.countRows();let r;for(let o=e[2]+1;o<n;o++){for(let n=e[1];n<=e[3];n++)if(!Ps(t[o][n]))return-1;const n=t[o][e[1]-1],i=t[o][e[3]+1];Ps(n)&&Ps(i)||(r=o)}return r}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...Ms(e,(e=>Math.max(e,0))),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,n=Ui(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+ts(this.hot.table),r=Ui(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+es(this.hot.table);return e.clientY>n&&e.clientX<=r}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",(()=>e_(r_,this,l_).call(this))),this.eventManager.addEventListener(e,"mousemove",(e=>e_(r_,this,u_).call(this,e)))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=function(e){const t={};return!0===e?(t.directions=Object.keys(QC),t.autoInsertRow=!0):Zs(e)?(Ls(e.autoInsertRow)?e.direction===QC.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,Ls(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(QC)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1),t}(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function i_(){this.selectAdjacent()&&this.fillIn()}function s_(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function a_(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function l_(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function u_(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}function c_(e,t,n){d_(e,t),t.set(e,n)}function d_(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h_(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p_(e,t,n){return e.set(m_(e,t),n),n}function f_(e,t){return e.get(m_(e,t))}function m_(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const g_="autoRowSize";var b_=new WeakMap,y_=new WeakMap,w_=new WeakSet;class v_ extends MC{static get PLUGIN_KEY(){return g_}static get PLUGIN_PRIORITY(){return 40}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t;super(e),d_(this,t=w_),t.add(this),h_(this,"headerHeight",null),h_(this,"ghostTable",new RC(this.hot)),h_(this,"samplesGenerator",new LC(((e,t)=>{const n=this.hot.toPhysicalRow(e),r=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(n)||this.hot.columnIndexMapper.isHidden(r))return!1;if(e>=0&&t>=0&&this.hot.getCellMeta(e,t).hidden)return!1;let o;return e>=0?o=this.hot.getDataAtCell(e,t):-1===e&&(o=this.hot.getColHeader(t)),{value:o}}))),h_(this,"inProgress",!1),h_(this,"measuredRows",0),h_(this,"rowHeightsMap",new Ap),c_(this,b_,[]),c_(this,y_,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",((e,t,n)=>m_(w_,this,__).call(this,e,t,n)))}isEnabled(){const e=this.hot.getSettings()[g_];return!0===e||Zs(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m_(w_,e,M_).call(e,...n)})),this.addHook("beforeChangeRender",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m_(w_,e,x_).call(e,...n)})),this.addHook("beforeColumnResize",(()=>this.recalculateAllRowsHeight())),this.addHook("afterFormulasValuesUpdate",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m_(w_,e,R_).call(e,...n)})),this.addHook("beforeRender",(()=>m_(w_,this,C_).call(this))),this.addHook("modifyRowHeight",((e,t)=>this.getRowHeight(t,e))),this.addHook("init",(()=>m_(w_,this,k_).call(this))),this.addHook("modifyColumnHeaderHeight",(()=>this.getColumnHeaderHeight())),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),this.addHook("beforeRowResize",((e,t,n)=>m_(w_,this,__).call(this,e,t,n)))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const n=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,n)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="number"==typeof e?{from:e,to:e}:e,o="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,o);this.ghostTable.addColumnHeadersRow(e.get(-1))}jl(r.from,r.to,(e=>{let t=this.hot.toPhysicalRow(e);null===t&&(t=e),(n||null===this.rowHeightsMap.getValueAtIndex(t))&&this.samplesGenerator.generateRowSamples(e,o).forEach(((e,t)=>this.ghostTable.addRow(t,e)))})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)}))}),!0),this.measuredRows=r.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;const r=this.hot.countRows()-1;let o=null;this.inProgress=!0;const i=()=>{if(!this.hot)return aa(o),void(this.inProgress=!1);this.calculateRowsHeight({from:n,to:Math.min(n+v_.CALCULATION_STEP,r)},e,t),n=n+v_.CALCULATION_STEP+1,n<r?o=sa(i):(aa(o),this.inProgress=!1,this.hot.view.adjustElementsSize())},s=this.getSyncCalculationLimit();s>=0&&(this.calculateRowsHeight({from:0,to:s},e,t),n=s+1),n<r?i():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[g_];let t=v_.SYNC_CALCULATION_LIMIT;const n=this.hot.countRows()-1;return Zs(e)&&(t=e.syncLimit,di(t)?t=Fl(n,t):t>>=0),Math.min(t,n)}getRowHeight(e,t){const n=e<0?this.headerHeight:this.rowHeightsMap.getValueAtIndex(this.hot.toPhysicalRow(e));let r=t;return null!==n&&n>(t||0)&&(r=n),r}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution((()=>{e.forEach((e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:n}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution((()=>{jl(Math.min(t,n),Math.max(t,n),(e=>{this.rowHeightsMap.setValueAtIndex(e,null)}))}),!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter((e=>null===e)).length}destroy(){this.ghostTable.clean(),super.destroy()}}function S_(e){const t={from:0,to:this.hot.countCols()-1};e.forEach((e=>{this.samplesGenerator.generateRowSamples(e,t).forEach(((e,t)=>this.ghostTable.addRow(t,e)))})),this.ghostTable.rows.length&&(this.hot.batchExecution((()=>{this.ghostTable.getHeights(((e,t)=>{const n=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(n,t)}))}),!0),this.ghostTable.clean())}function C_(){this.calculateVisibleRowsHeight(),this.inProgress||(m_(w_,this,S_).call(this,f_(b_,this)),p_(b_,this,[]))}function __(e,t,n){let r=e;return n&&(this.calculateRowsHeight(t,void 0,!0),r=this.getRowHeight(t)),r}function M_(e,t){t||this.recalculateAllRowsHeight()}function x_(e){const t=e.reduce(((e,t)=>{let[n]=t;return-1===e.indexOf(n)&&e.push(n),e}),[]);f_(b_,this).push(...t)}function k_(){this.recalculateAllRowsHeight(),p_(y_,this,!0)}function R_(e){if(!f_(y_,this))return;const t=e.reduce(((e,t)=>{var n;const r=null===(n=t.address)||void 0===n?void 0:n.row;if(Number.isInteger(r)){const t=this.hot.toVisualRow(r);-1===e.indexOf(t)&&e.push(t)}return e}),[]);f_(b_,this).push(...t)}const T_=new Map([["indexesSequence",{getListWithInsertedItems:Ep,getListWithRemovedItems:Lp}],["physicallyIndexed",{getListWithInsertedItems:Hp,getListWithRemovedItems:Op}]]),E_=e=>{if(!1===T_.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return T_.get(e)},{getListWithInsertedItems:L_,getListWithRemovedItems:I_}=E_("physicallyIndexed"),{getListWithInsertedItems:P_,getListWithRemovedItems:D_}=E_("physicallyIndexed");const H_="bindRowsWithHeaders",O_=new Map([["loose",class extends Tp{constructor(){super((e=>e))}insert(e,t){const n=Pp(this.indexedValues,t);this.indexedValues=L_(n,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=I_(this.indexedValues,e);this.indexedValues=Ip(t,e),super.remove(e)}}],["strict",class extends Tp{constructor(){super((e=>e))}insert(e,t){this.indexedValues=P_(this.indexedValues,e,t,((e,t)=>this.getNextValue(t))),super.insert(e,t)}remove(e){this.indexedValues=D_(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}]]);var A_=new WeakSet;class N_ extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=A_),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"headerIndexes",null)}static get PLUGIN_KEY(){return H_}static get PLUGIN_PRIORITY(){return 210}isEnabled(){return!!this.hot.getSettings()[H_]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=O_.get(this.getSetting()))&&void 0!==e?e:O_.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",(e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(A_,this,j_).call(this,e))),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function j_(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}function Y_(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function F_(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z_(e,t){return e.get(V_(e,t))}function W_(e,t,n){return e.set(V_(e,t),n),n}function V_(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const B_="collapsibleColumns",$_=["nestedHeaders"],U_="collapsibleIndicator",G_=B_,K_=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var q_=new WeakMap,X_=new WeakSet;class J_ extends MC{constructor(){var e;super(...arguments),Y_(this,e=X_),e.add(this),F_(this,"nestedHeadersPlugin",null),F_(this,"headerStateManager",null),function(e,t){Y_(e,t),t.set(e,null)}(this,q_)}static get PLUGIN_KEY(){return B_}static get PLUGIN_PRIORITY(){return 290}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[B_,...$_]}isEnabled(){return!!this.hot.getSettings()[B_]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||Ea("You need to configure the Nested Headers plugin in order to use collapsible headers."),W_(q_,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",(()=>V_(X_,this,eM).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V_(X_,e,tM).call(e,...n)})),this.addHook("afterGetColHeader",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V_(X_,e,Q_).call(e,...n)})),this.addHook("beforeOnCellMouseDown",((e,t,n)=>V_(X_,this,Z_).call(this,e,t,n))),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState((e=>({collapsible:e.origColspan>1}))):Array.isArray(e)&&(this.headerStateManager.mapState((()=>({collapsible:!1}))),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),W_(q_,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:n}=this.hot.getSelectedRangeLast().highlight,{collapsible:r,isCollapsed:o,columnIndex:i}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,n))&&void 0!==e?e:{};if(r)return o?this.expandSection({row:t,col:i}):this.collapseSection({row:t,col:i}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:G_,relativeToGroup:Fb,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(G_)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,o=function(e){e&&e.parentNode.removeChild(e)};jl(0,e-1,(e=>{const i=t.childNodes[e],s=n.childNodes[e],a=r?r.childNodes[e]:null;jl(0,i.childNodes.length-1,(e=>{let t=i.childNodes[e].querySelector(`.${U_}`);o(t),s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(`.${U_}`),o(t)),r&&a&&a.childNodes[e]&&(t=a.childNodes[e].querySelector(`.${U_}`),o(t))}))}))}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes((t=>{const{collapsible:n,origColspan:r,headerLevel:o,columnIndex:i,isCollapsed:s}=t;if(!0===n&&r>1&&(s&&"expand"===e||!s&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(o),col:i}}));this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!K_.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const n=_s(e,(e=>{let{row:t}=e;return t<0}));let r=n.length>0;xs(n,(e=>{var n;let{row:o,col:i}=e;const{collapsible:s,isCollapsed:a}=null!==(n=this.headerStateManager.getHeaderSettings(o,i))&&void 0!==n?n:{};if(!s||a&&"collapse"===t||!a&&"expand"===t)return r=!1,!1}));const o=[],i=[];r&&xs(n,(e=>{let{row:n,col:r}=e;const{colspanCompensation:s,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,n,r);s>0&&(i.push(...a),o.push(l))}));const s=this.getCollapsedColumns();let a=[];"collapse"===t?a=function(e){const t=[];return xs(e,(e=>{-1===t.indexOf(e)&&t.push(e)})),t}([...s,...i]):"expand"===t&&(a=_s(s,(e=>!i.includes(e))));const l=K_.get(t);if(!1===this.hot.runHooks(l.beforeHook,s,a,r))return void xs(o,(e=>{e()}));this.hot.batchExecution((()=>{xs(i,(e=>{z_(q_,this).setValueAtIndex(this.hot.toPhysicalColumn(e),l.hideColumn)}))}),!0);const u=this.getCollapsedColumns().length!==s.length,c=this.hot.getSelectedRangeLast();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&i.includes(t)){const n=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,r=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==n&&null!==r&&this.hot.selectCell(n,r)}}this.hot.runHooks(l.afterHook,s,a,r,u),this.hot.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return z_(q_,this).getHiddenIndexes()}destroy(){W_(q_,this,null),super.destroy()}}function Q_(e,t,n){var r;const{collapsible:o,origColspan:i,isCollapsed:s}=null!==(r=this.headerStateManager.getHeaderSettings(n,e))&&void 0!==r?r:{},a=o&&i>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let u=t.querySelector(`.${U_}`);var c;Yi(t,[Ci("")[0]]),a?(u||(u=this.hot.rootDocument.createElement("div"),Ai(u,U_),t.querySelector("div:first-child").appendChild(u)),Ni(u,["collapsed","expanded"]),s?(Ai(u,"collapsed"),Bi(u,"+"),l&&ji(t,...Ci(!1))):(Ai(u,"expanded"),Bi(u,"-"),l&&ji(t,...Ci(!0))),l&&ji(u,"aria-hidden","true")):null===(c=u)||void 0===c||c.remove()}function Z_(e,t){Oi(e.target,U_)&&(Oi(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):Oi(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),xa(e))}function eM(){this.updatePlugin()}function tM(e,t){t||this.updatePlugin()}function nM(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rM=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];class oM{constructor(e,t){nM(this,"hot",void 0),nM(this,"sortingStates",new jp),nM(this,"sortEmptyCells",!1),nM(this,"indicator",!0),nM(this,"headerAction",!0),nM(this,"compareFunctionFactory",void 0),nM(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){Zs(e)&&ta(e,((e,t)=>{rM.includes(t)&&(this[t]=e)}))}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex((t=>{let[n]=t;return n===e}))}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return Zs(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){return null===this.sortingStates?[]:this.sortingStates.getEntries().map((e=>{let[t,n]=e;return{column:this.hot.toVisualColumn(t),...n}}))}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if(Ls(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}function iM(e,t,n){const r=t.locale;return function(t,o){const{sortEmptyCells:i}=n;return"string"==typeof t&&(t=t.toLocaleLowerCase(r)),"string"==typeof o&&(o=o.toLocaleLowerCase(r)),t===o?pM:Ps(t)?Ps(o)?pM:i&&"asc"===e?fM:mM:Ps(o)?i&&"asc"===e?mM:fM:isNaN(t)&&!isNaN(o)?"asc"===e?mM:fM:!isNaN(t)&&isNaN(o)?"asc"===e?fM:mM:(isNaN(t)||isNaN(o)||(t=parseFloat(t),o=parseFloat(o)),t<o?"asc"===e?fM:mM:t>o?"asc"===e?mM:fM:pM)}}const sM="default",{register:aM,getItem:lM,hasItem:uM}=qa("sorting.compareFunctionFactory"),{register:cM,getItem:dM}=qa("sorting.mainSortComparator");function hM(e){return uM(e)?lM(e):lM(sM)}aM("checkbox",(function(e,t,n){const r=t.checkedTemplate,o=t.uncheckedTemplate,{sortEmptyCells:i}=n;return function(s,a){const l=Ps(s),u=Ps(a),c=l?o:s,d=u?o:a,h=c===o||c===r,p=d===o||d===r;if(!1===i){if(l&&!1===u)return mM;if(!1===l&&u)return fM}return!1===h&&p?"asc"===e?fM:mM:h&&!1===p?"asc"===e?mM:fM:!1===h&&!1===p?iM(e,t,n)(s,a):c===o&&d===r?"asc"===e?fM:mM:c===r&&d===o?"asc"===e?mM:fM:pM}})),aM("date",(function(e,t,n){return _M(e,t.dateFormat,n)})),aM(sM,iM),aM("numeric",(function(e,t,n){return function(t,r){const o=parseFloat(t),i=parseFloat(r),{sortEmptyCells:s}=n;if(o===i||isNaN(o)&&isNaN(i))return pM;if(s){if(Ps(t))return"asc"===e?fM:mM;if(Ps(r))return"asc"===e?mM:fM}return isNaN(o)?mM:isNaN(i)?fM:o<i?"asc"===e?fM:mM:o>i?"asc"===e?mM:fM:pM}})),aM("time",(function(e,t,n){return _M(e,t.timeFormat,n)}));const pM=0,fM=-1,mM=1,gM="asc",bM="desc",yM="colHeader";function wM(e){if(e!==bM)return e===gM?bM:gM}function vM(e){return e.querySelector(`.${yM}`)}function SM(e,t){if(e<0||!t.parentNode)return!1;const n=t.parentNode.parentNode.childNodes;return-1===Array.from(n).indexOf(t.parentNode)-n.length}function CM(e,t,n){return-1===e&&t>=0&&!1===Ra(n)}function _M(e,t,n){return function(r,o){const{sortEmptyCells:i}=n;if(r===o)return pM;if(Ps(r))return Ps(o)?pM:i&&"asc"===e?fM:mM;if(Ps(o))return i&&"asc"===e?mM:fM;const s=ws(r,t),a=ws(o,t);return s.isValid()?a.isValid()?a.isAfter(s)?"asc"===e?fM:mM:a.isBefore(s)?"asc"===e?mM:fM:pM:fM:mM}}const MM="indicatorDisabled",xM="columnSorting",kM="sortAction",RM=new Map([[gM,"ascending"],[bM,"descending"]]);function TM(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const LM="columnSorting",IM="append",PM=LM;cM(LM,(function(e,t){return function(n,r){const[,...o]=n,[,...i]=r;return function(){const n=e[0],r=t[0],s=o[0],a=i[0],l=r.columnSorting;return(l.compareFunctionFactory?l.compareFunctionFactory:hM(r.type))(n,r,l)(s,a)}()}})),Ua.getSingleton().register("beforeColumnSort"),Ua.getSingleton().register("afterColumnSort");const DM=new WeakMap;var HM=new WeakSet;class OM extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=HM),t.add(e),TM(this,"columnStatesManager",null),TM(this,"columnMetaCache",null),TM(this,"pluginKey",LM),TM(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return LM}static get PLUGIN_PRIORITY(){return 50}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;if(DM.has(this.hot)&&DM.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),void Ea(Ts`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
- Only \`${DM.get(this.hot)}\` will work. The \`${this.pluginKey}\` plugin will remain disabled.`);this.enabled||(DM.set(this.hot,this.pluginKey),this.columnStatesManager=new oM(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new Ap((e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)})),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",((e,t)=>EM(HM,this,NM).call(this,e,t))),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EM(HM,e,YM).call(e,...n)})),this.addHook("afterOnCellMouseDown",((e,t)=>this.onAfterOnCellMouseDown(e,t))),this.addHook("afterInit",(()=>EM(HM,this,AM).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return EM(HM,e,jM).call(e,...n)})),this.hot.view&&EM(HM,this,AM).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const n=vM(t);!1!==SM(e,t)&&null!==n&&this.updateHeaderClasses(n)};DM.delete(this.hot),this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("afterGetColHeader",e)})),this.hot.batchExecution((()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)}),!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&-1===n.row&&n.col>=0},relativeToGroup:Fb,position:"before",group:PM})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(PM)}sort(e){const t=this.getSortConfig(),n=this.getNormalizedSortConfigs(e),r=this.areValidSortConfigs(n);!1!==this.hot.runHooks("beforeColumnSort",t,n,r)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new Dp),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),r&&(this.columnStatesManager.setSortStates(n),this.sortByPresetSortStates(n),this.saveAllSortSettings(n)),this.hot.runHooks("afterColumnSort",t,r?n:t,r),r&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return Ls(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return function(e){if(e.some((e=>!1===function(e){if(!1===Zs(e))return!1;const{column:t,sortOrder:n}=e;return Number.isInteger(t)&&[gM,bM].includes(n)}(e))))return!1;const t=e.map((e=>{let{column:t}=e;return t}));return new Set(t).size===t.length}(e)&&e.every((e=>{let{column:n}=e;return n<=t&&n>=0}))}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=Ms(e,(e=>{let{column:t,...n}=e;return{column:this.hot.toPhysicalColumn(t),...n}})),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value;return Ls(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=Ms(t.initialConfig,(e=>{let{column:t,...n}=e;return{column:this.hot.toVisualColumn(t),...n}}))),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if(Ls(t)){const n=wM(t);return Ls(n)?{column:e,sortOrder:n}:void 0}const n=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<n)return{column:e,sortOrder:wM()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:IM;const n=this.columnStatesManager.getIndexOfColumnInSortQueue(e),r=-1!==n,o=this.getSortConfig(),i=this.getColumnNextConfig(e);if(r){if(Is(i))return[...o.slice(0,n),...o.slice(n+1)];if(t===IM)return[...o.slice(0,n),...o.slice(n+1),i];if("replace"===t)return[...o.slice(0,n),i,...o.slice(n+1)]}return Ls(i)?o.concat(i):o}getPluginColumnConfig(e){if(Zs(e)){const t=e[this.pluginKey];if(Zs(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],n=this.columnStatesManager.getAllColumnsProperties(),r=this.hot.getCellMeta(0,e),o=Object.getPrototypeOf(r);return Array.isArray(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns[e])):Ws(o.columns)?Object.assign(n,t,this.getPluginColumnConfig(o.columns(e))):Object.assign(n,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),n=Object.create(t);return n[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),n}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],n=this.hot.countRows(),r=t=>Ms(e,(e=>this.hot.getDataAtCell(t,e.column)));for(let e=0;e<this.getNumberOfRowsToSort(n);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(r(e)));const o=Ms(t,(e=>e[0]));!function(e,t){const n=dM(t);for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];e.sort(n(...o))}(t,this.pluginKey,Ms(e,(e=>e.sortOrder)),Ms(e,(e=>this.getFirstCellSettings(e.column))));for(let e=t.length;e<n;e+=1)t.push([e].concat(r(e)));const i=Ms(t,(e=>e[0])),s=new Map(Ms(o,((e,t)=>[e,i[t]]))),a=Ms(this.hot.rowIndexMapper.getIndexesSequence(),(e=>s.has(e)?s.get(e):e));this.hot.rowIndexMapper.setIndexesSequence(a)}sortBySettings(e){if(Zs(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||Zs(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if(Ni(e,Array.from(RM.values()).concat(kM,MM,xM)),!1!==this.enabled){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ai(e,function(e,t,n,r){const o=[xM];if(r&&o.push(kM),!1===n)return o.push(MM),o;const i=e.getSortOrderOfColumn(t);return Ls(i)&&o.push(RM.get(i)),o}(...n))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),Ls(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&Oi(e.target,yM)}onAfterOnCellMouseDown(e,t){if(!1!==CM(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),n=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",(()=>{this.sort(n)})):this.sort(n)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function AM(){const e=this.getAllSavedSortSettings();if(Zs(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function NM(e,t){const n=vM(t);if(!1===SM(e,t)||null===n)return;const r=this.getFirstCellSettings(e)[this.pluginKey],o=r.indicator,i=r.headerAction;if(this.updateHeaderClasses(n,this.columnStatesManager,e,o,i),this.hot.getSettings().ariaTags){const n=this.columnStatesManager.getSortOrderOfColumn(e);ji(t,...(s=n?`${n}ending`:"none",["aria-sort",s]))}var s}function jM(e){!0===e&&this.hot.view&&EM(HM,this,AM).call(this)}function YM(e,t,n,r){!1!==CM(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(r.column=!0)}function FM(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zM=class{constructor(e,t){FM(this,"plugin",void 0),FM(this,"hot",void 0),FM(this,"endpoints",[]),FM(this,"settings",void 0),FM(this,"settingsType","array"),FM(this,"currentEndpoint",null),FM(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let n=e;if(n||"function"!=typeof this.settings)return n||(n=this.settings),xs(n,(e=>{const n={};this.assignSetting(e,n,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,n,"reversedRowCoords",!1),this.assignSetting(e,n,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,n,"sourceColumn",e.destinationColumn),this.assignSetting(e,n,"type","sum"),this.assignSetting(e,n,"forceNumeric",!1),this.assignSetting(e,n,"suppressDataTypeErrors",!0),this.assignSetting(e,n,"customFunction",null),this.assignSetting(e,n,"readOnly",!0),this.assignSetting(e,n,"roundFloat",!1),t.push(n)})),t;this.settingsType="function"}assignSetting(e,t,n,r){if("ranges"!==n||void 0!==e[n]){if("ranges"!==n||0!==e[n].length)if(void 0===e[n]){if(r instanceof Error)throw r;t[n]=r}else"destinationRow"===n&&t.reversedRowCoords?t[n]=this.hot.countRows()-e[n]-1:t[n]=e[n]}else t[n]=r}resetSetupBeforeStructureAlteration(e,t,n){if("function"!==this.settingsType)return;const r=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();xs(o,(o=>{"row"===r&&o.destinationRow>=t&&("insert_row"===e?o.alterRowOffset=n:"remove_row"===e&&(o.alterRowOffset=-1*n)),"col"===r&&o.destinationColumn>=t&&("insert_col"===e?o.alterColumnOffset=n:"remove_col"===e&&(o.alterColumnOffset=-1*n))})),this.resetAllEndpoints(o,!1)}resetSetupAfterStructureAlteration(e,t,n,r,o){let i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const s=e.indexOf("row")>-1?"row":"col",a=e.indexOf("remove")>-1?-1:1,l=this.getAllEndpoints(),u=0===e.indexOf("move_row"),c=t;xs(l,(e=>{"row"===s&&e.destinationRow>=c&&(e.alterRowOffset=a*n),"col"===s&&e.destinationColumn>=c&&(e.alterColumnOffset=a*n)})),this.resetAllEndpoints(l,!u),xs(l,u?e=>{this.extendEndpointRanges(e,c,r[0],r.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}:e=>{this.shiftEndpointCoordinates(e,c)}),i&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,n,r){xs(e.ranges,(e=>{e[1]&&(t>=e[0]&&t<=e[1]?n>e[1]?e[1]+=r:n<e[0]&&(e[0]-=r):n>=e[0]&&n<=e[1]&&(e[1]-=r,t<=e[0]&&(e[0]+=1,e[1]+=1)))}))}recreatePhysicalRanges(e){const t=e.ranges,n=[],r=[];xs(t,(e=>{const t=[];if(e[1])for(let n=e[0];n<=e[1];n++)t.push(this.hot.toPhysicalRow(n));else t.push(this.hot.toPhysicalRow(e[0]));r.push(t)})),xs(r,(e=>{let t=[];xs(e,((r,o)=>{0===o?t.push(r):e[o]!==e[o-1]+1&&(t.push(e[o-1]),n.push(t),t=[],t.push(r)),o===e.length-1&&(t.push(r),n.push(t))}))})),e.ranges=n}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,xs(e.ranges,(n=>{xs(n,((r,o)=>{r>=t&&(n[o]+=e.alterRowOffset||0)}))}))):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some((e=>{const t=e.alterRowOffset||0,n=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+n>=this.hot.countCols()}))||(this.cellsToSetCache=[],xs(e,(e=>{this.resetEndpointValue(e,t)})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],xs(this.getAllEndpoints(),(e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")})),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],xs(e,((e,n,r)=>{`${e[2]||""}`!=`${e[3]}`&&xs(this.getAllEndpoints(),((e,o)=>{this.hot.propToCol(r[n][1])===e.sourceColumn&&-1===t.indexOf(o)&&t.push(o)}))})),xs(t,(e=>{this.refreshEndpoint(this.getEndpoint(e))})),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach((e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const n=this.hot.getCellMeta(t,e.destinationColumn);n.readOnly=e.readOnly,n.className="columnSummaryResult"}}))}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e.alterRowOffset||0,r=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?n:0)),this.hot.toVisualColumn(e.destinationColumn+(t?r:0)),""])}setEndpointValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const o=this.hot.toVisualRow(e.destinationRow);if(null!==o){const n=this.hot.getCellMeta(o,e.destinationColumn);"init"!==t&&n.readOnly===e.readOnly||(n.readOnly=e.readOnly,n.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let n=0;Number.isInteger(t)&&(n=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(n)}n?this.hot.setDataAtCell(r,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([r,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){Ea("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}};function WM(e){return null==e||isNaN(e)}function VM(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const BM="columnSummary";var $M=new WeakSet;class UM extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$M),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"endpoints",null)}static get PLUGIN_KEY(){return BM}static get PLUGIN_PRIORITY(){return 220}isEnabled(){return!!this.hot.getSettings()[BM]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[BM],this.endpoints=new zM(this,this.settings),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VM($M,e,GM).call(e,...n)})),this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VM($M,e,qM).call(e,...n)})),this.addHook("afterUpdateSettings",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VM($M,e,KM).call(e,...n)})),this.addHook("beforeCreateRow",((e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,n))),this.addHook("beforeCreateCol",((e,t,n)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,n))),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...n)})),this.addHook("beforeRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...n)})),this.addHook("afterCreateRow",((e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,n))),this.addHook("afterCreateCol",((e,t,n)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,n))),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...n)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...n)})),this.addHook("afterRowMove",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VM($M,e,XM).call(e,...n)})),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return ta(e.ranges,(n=>{t+=this.getPartialSum(n,e.sourceColumn)})),t}getPartialSum(e,t){let n=0,r=e[1]||e[0],o=null,i=0;do{if(o=this.getCellValue(r,t),o=WM(o)?null:o,null!==o){const e=(`${o}`.split(".")[1]||[]).length||1;e>i&&(i=e)}n+=o||0,r-=1}while(r>=e[0]);return Math.round(n*10**i)/10**i}calculateMinMax(e,t){let n=null;return ta(e.ranges,(r=>{const o=this.getPartialMinMax(r,e.sourceColumn,t);if(null===n&&null!==o&&(n=o),null!==o)switch(t){case"min":n=Math.min(n,o);break;case"max":n=Math.max(n,o)}})),null===n?"Not enough data":n}getPartialMinMax(e,t,n){let r,o=null,i=e[1]||e[0];do{if(r=this.getCellValue(i,t),r=WM(r)?null:r,null===o)o=r;else if(null!==r)switch(n){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}i-=1}while(i>=e[0]);return o}countEmpty(e,t){let n,r=0,o=e[1]||e[0];do{n=this.getCellValue(o,t),n=WM(n)?null:n,null===n&&(r+=1),o-=1}while(o>=e[0]);return r}countEntries(e){let t=0;return ta(e.ranges,(n=>{const r=void 0===n[1]?1:n[1]-n[0]+1,o=this.countEmpty(n,e.sourceColumn);t+=r,t-=o})),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const n=this.hot.toVisualRow(e),r=this.hot.toVisualColumn(t);let o=this.hot.getSourceDataAtCell(e,t),i="";if(null!==n&&null!==r&&(i=this.hot.getCellMeta(n,r).className||""),i.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof o&&(o=o.replace(/,/,".")),o=parseFloat(o)),isNaN(o)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(Ts`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
- numeric format. Cannot do the calculation.`);return o}}function GM(){this.endpoints.initEndpoints()}function KM(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function qM(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function XM(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}function JM(e,t,n){QM(e,t),t.set(e,n)}function QM(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ZM(e,t){return e.get(tx(e,t))}function ex(e,t,n){return e.set(tx(e,t),n),n}function tx(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var nx=new WeakMap,rx=new WeakMap,ox=new WeakMap,ix=new WeakSet;class sx{constructor(){var e;QM(this,e=ix),e.add(this),JM(this,nx,!0),JM(this,rx,null),JM(this,ox,new ResizeObserver((e=>tx(ix,this,ax).call(this,e))))}setObservedElement(e){ex(rx,this,e)}unobserve(){ZM(ox,this).unobserve(ZM(rx,this))}observe(){ex(nx,this,!0),ZM(ox,this).observe(ZM(rx,this))}destroy(){ZM(ox,this).disconnect()}}function ax(e){!ZM(nx,this)&&Array.isArray(e)&&e.length?e.forEach((e=>{let{borderBoxSize:t}=e;const{inlineSize:n,blockSize:r}=t[0];this.runLocalHooks("resize",n,r)})):ex(nx,this,!1)}function lx(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function ux(e,t){return e.get(dx(e,t))}function cx(e,t,n){return e.set(dx(e,t),n),n}function dx(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Js(sx,kp);var hx=new WeakMap,px=new WeakMap,fx=new WeakMap,mx=new WeakMap,gx=new WeakMap,bx=new WeakMap,yx=new WeakMap;class wx{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t){var n=this;lx(this,hx,void 0),lx(this,px,!1),lx(this,fx,null),lx(this,mx,void 0),lx(this,gx,void 0),lx(this,bx,!0),lx(this,yx,new sx),cx(hx,this,e),cx(px,this,t),cx(mx,this,this.createEditor()),cx(gx,this,ux(mx,this).style),ux(yx,this).setObservedElement(this.getInputElement()),ux(yx,this).addLocalHook("resize",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("resize",...t)})),this.hide()}setPosition(e,t){ux(gx,this).left=`${e}px`,ux(gx,this).top=`${t}px`}setSize(e,t){if(e&&t){const n=this.getInputElement();n.style.width=`${e}px`,n.style.height=`${t}px`}}getSize(){return{width:es(this.getInputElement()),height:ts(this.getInputElement())}}observeSize(){ux(yx,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){ux(gx,this).display="block",cx(bx,this,!1)}hide(){ux(yx,this).unobserve(),ux(bx,this)||(ux(gx,this).display="none"),cx(bx,this,!0)}isVisible(){return"block"===ux(gx,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return ux(hx,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=ux(hx,this).createElement("div"),t=ux(hx,this).createElement("textarea");return e.style.display="none",cx(fx,this,ux(hx,this).createElement("div")),ux(fx,this).setAttribute("dir",ux(px,this)?"rtl":"ltr"),Ai(ux(fx,this),wx.CLASS_EDITOR_CONTAINER),ux(hx,this).body.appendChild(ux(fx,this)),Ai(e,wx.CLASS_EDITOR),Ai(t,wx.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),ux(fx,this).appendChild(e),e}getInputElement(){return ux(mx,this).querySelector(`.${wx.CLASS_INPUT}`)}getEditorElement(){return ux(mx,this)}destroy(){const e=ux(fx,this)?ux(fx,this).parentNode:null;ux(mx,this).parentNode.removeChild(ux(mx,this)),cx(mx,this,null),cx(gx,this,null),ux(yx,this).destroy(),e&&e.removeChild(ux(fx,this))}}Js(wx,kp);const vx=wx;function Sx(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Cx{constructor(e){Sx(this,"wasLastActionShow",!0),Sx(this,"showDebounced",null),Sx(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout((()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")}),250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=Vs((e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)}),e)}destroy(){this.clearLocalHooks()}}Js(Cx,kp);const _x=Cx,Mx="---------";function xx(e,t){const n={};return xs(e,(e=>{e.forAll(((e,r)=>{e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))}))})),n}function kx(e,t,n,r,o){xs(e,(e=>{e.forAll(((e,i)=>{e>=0&&i>=0&&function(e,t,n,r,o,i){const s=o(e,t);let a=r;s.className&&(a="vertical"===n?function(e,t){return-1!==e.indexOf(t)?e:`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}(s.className,r):function(e,t){return-1!==e.indexOf(t)?e:`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}(s.className,r)),i(e,t,"className",a)}(e,i,t,n,r,o)}))}))}function Rx(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`}function Tx(e,t){let n=!1;return Array.isArray(e)&&xs(e,(e=>(e.forAll(((e,r)=>{if(e>=0&&r>=0&&t(e,r))return n=!0,!1})),n))),n}function Ex(e,t){const n={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:r,left:o}=e.getBoundingClientRect();n.top=r,n.left=o}return n}function Lx(e,t,n){Ix(e,t),t.set(e,n)}function Ix(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Px(e,t,n){return e.set(Hx(e,t),n),n}function Dx(e,t){return e.get(Hx(e,t))}function Hx(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Ox="comments",Ax="comment",Nx="value",jx="style",Yx="readOnly",Fx=Ox,zx=`plugin:${Ox}`;var Wx=new WeakMap,Vx=new WeakMap,Bx=new WeakMap,$x=new WeakMap,Ux=new WeakMap,Gx=new WeakMap,Kx=new WeakSet;class qx extends MC{constructor(){var e;super(...arguments),Ix(this,e=Kx),e.add(this),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"range",{}),Lx(this,Wx,null),Lx(this,Vx,null),Lx(this,Bx,!1),Lx(this,$x,!1),Lx(this,Ux,null),Lx(this,Gx,"")}static get PLUGIN_KEY(){return Ox}static get PLUGIN_PRIORITY(){return 60}static get DEFAULT_SETTINGS(){return{displayDelay:250}}isEnabled(){return!!this.hot.getSettings()[Ox]}enablePlugin(){var e=this;this.enabled||(Dx(Wx,this)||(Px(Wx,this,new vx(this.hot.rootDocument,this.hot.isRtl())),Dx(Wx,this).addLocalHook("resize",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hx(Kx,e,rk).call(e,...n)}))),Dx(Vx,this)||Px(Vx,this,new _x(this.getSetting("displayDelay"))),this.addHook("afterContextMenuDefaultOptions",(e=>this.addToContextMenu(e))),this.addHook("afterRenderer",((e,t,n,r,o,i)=>Hx(Kx,this,ek).call(this,e,i))),this.addHook("afterScroll",(()=>Hx(Kx,this,ik).call(this))),this.addHook("afterBeginEditing",(()=>this.hide())),this.addHook("afterDocumentKeyDown",(e=>Hx(Kx,this,ok).call(this,e))),this.addHook("beforeCompositionStart",(e=>Hx(Kx,this,ok).call(this,e))),this.addHook("afterSetTheme",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hx(Kx,e,sk).call(e,...n)})),Dx(Vx,this).addLocalHook("hide",(()=>this.hide())),Dx(Vx,this).addLocalHook("show",((e,t)=>this.showAtCell(e,t))),this.registerShortcuts(),this.registerListeners(),super.enablePlugin())}updatePlugin(){Dx(Vx,this).updateDelay(this.getSetting("displayDelay")),super.updatePlugin()}disablePlugin(){this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=this.hot.getShortcutManager(),t=e.getContext("grid"),n=e.addContext(zx);t.addShortcut({keys:[["Control","Alt","M"]],callback:()=>{const t=this.hot.getSelectedRangeLast();Px($x,this,!0),this.hot.scrollToFocusedCell((()=>{this.setRange(t),this.show(),this.focusEditor(),e.setActiveContextName(zx),this.hot._registerTimeout((()=>{Px($x,this,!1)}))}))},stopPropagation:!0,runOnlyIf:()=>{var e;return null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight.isCell()},group:Fx}),n.addShortcut({keys:[["Escape"]],callback:()=>{Dx(Wx,this).setValue(Dx(Gx,this)),this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>Dx(Wx,this).isVisible()&&Dx(Wx,this).isFocused(),group:Fx}),n.addShortcut({keys:[["Control/Meta","Enter"]],callback:()=>{this.hide(),e.setActiveContextName("grid")},runOnlyIf:()=>Dx(Wx,this).isVisible()&&Dx(Wx,this).isFocused(),group:Fx}),n.addShortcut({keys:[["Shift","Tab"],["Tab"]],forwardToContext:e.getContext("grid"),callback:()=>{Dx(Wx,this).setValue(Dx(Wx,this).getValue()),this.hide(),e.setActiveContextName("grid")},group:Fx})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Fx)}registerListeners(){const{rootDocument:e}=this.hot,t=this.getEditorInputElement();this.eventManager.addEventListener(e,"mouseover",(e=>Hx(Kx,this,Qx).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>Hx(Kx,this,Xx).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>Hx(Kx,this,Zx).call(this))),this.eventManager.addEventListener(t,"focus",(()=>Hx(Kx,this,nk).call(this))),this.eventManager.addEventListener(t,"blur",(()=>Hx(Kx,this,tk).call(this))),this.eventManager.addEventListener(this.getEditorInputElement(),"mousedown",(e=>Hx(Kx,this,Jx).call(this,e)))}setRange(e){this.range=e}clearRange(){this.range={}}targetIsCellWithComment(e){const t=Ei(e.target,"TD","TBODY");return!!(t&&Oi(t,"htCommentCell")&&Ei(t,[this.hot.rootElement]))}targetIsCommentTextArea(e){return this.getEditorInputElement()===e.target}setComment(e){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const t=Dx(Wx,this).getValue();let n="";null!=e?n=e:null!=t&&(n=t);const r=this.range.from.row,o=this.range.from.col;this.updateCommentMeta(r,o,{[Nx]:n}),this.hot.render()}setCommentAtCell(e,t,n){this.setRange({from:this.hot._createCellCoords(e,t)}),this.setComment(n)}removeComment(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.setCellMeta(this.range.from.row,this.range.from.col,Ax),e&&this.hot.render(),this.hide()}removeCommentAtCell(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.setRange({from:this.hot._createCellCoords(e,t)}),this.removeComment(n)}getComment(){const e=this.range.from.row,t=this.range.from.col;return this.getCommentMeta(e,t,Nx)}getCommentAtCell(e,t){return this.getCommentMeta(e,t,Nx)}show(){var e;if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');const{from:{row:t,col:n}}=this.range;if(t<0||t>this.hot.countSourceRows()-1||n<0||n>this.hot.countSourceCols()-1)return!1;const r=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return Dx(Vx,this).cancelHiding(),Dx(Wx,this).setValue(null!==(e=r[Ax]?r[Ax][Nx]:null)&&void 0!==e?e:""),Dx(Wx,this).show(),this.refreshEditor(!0),!0}showAtCell(e,t){return this.setRange({from:this.hot._createCellCoords(e,t)}),this.show()}hide(){Dx(Wx,this).hide()}refreshEditor(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.range.from&&Dx(Wx,this).isVisible()))return;const{rowIndexMapper:e,columnIndexMapper:t}=this.hot,{row:n,col:r}=this.range.from;let o=e.getRenderableFromVisualIndex(n),i=t.getRenderableFromVisualIndex(r);const s=null===o;Dx(Wx,this).setPosition(0,0),null===o&&(o=e.getRenderableFromVisualIndex(e.getNearestNotHiddenIndex(n,-1))),null===i&&(i=t.getRenderableFromVisualIndex(t.getNearestNotHiddenIndex(r,-1)));const a=null===o,l=null===i;o=null!=o?o:0,i=null!=i?i:0;const{rootWindow:u,view:{_wt:c}}=this.hot,{wtTable:d}=c,h=c.getCell({row:o,col:i},!0),p=this.getCommentMeta(n,r,jx);p?Dx(Wx,this).setSize(p.width,p.height):Dx(Wx,this).resetSize();const f=l?0:d.getColumnWidth(i),m=s&&!a?ts(h):0,{left:g,top:b,width:y,height:w}=h.getBoundingClientRect(),{width:v,height:S}=Dx(Wx,this).getSize(),{innerWidth:C,innerHeight:_}=this.hot.rootWindow,M=this.hot.rootDocument.documentElement,x=ls(this.hot.rootDocument),k=us(this.hot.rootWindow)?x:0,R=cs(this.hot.rootWindow)?x:0;let T=g+u.scrollX+f,E=b+u.scrollY+m;this.hot.isRtl()&&(T-=v+f),this.hot.isLtr()&&g+y+v>C-k?T=g+u.scrollX-v-1:this.hot.isRtl()&&T<-(M.scrollWidth-M.clientWidth)&&(T=g+u.scrollX+f+1),b+S>_-R&&(E-=S-w+1),Dx(Wx,this).setPosition(T,E),Dx(Wx,this).setReadOnlyState(this.getCommentMeta(n,r,Yx)),Dx(Wx,this).observeSize()}focusEditor(){Dx(Wx,this).focus()}updateCommentMeta(e,t,n){const r=this.hot.getCellMeta(e,t)[Ax];let o;r?(o=qs(r),Ks(o,n)):o=n,this.hot.setCellMeta(e,t,Ax,o)}getCommentMeta(e,t,n){const r=this.hot.getCellMeta(e,t);if(r[Ax])return r[Ax][n]}addToContextMenu(e){var t;e.items.push({name:Mx},(t=this,{key:"commentsAddEdit",name(){var e;const n=null===(e=this.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return null!=n&&n.isCell()&&t.getCommentAtCell(n.row,n.col)?this.getTranslatedPhrase(Hf):this.getTranslatedPhrase(Df)},callback(){const e=this.getSelectedRangeLast();t.setRange(e),t.show(),t.focusEditor()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}),function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(Of)},callback(){this.getSelectedRangeLast().forAll(((t,n)=>{t>=0&&n>=0&&e.removeCommentAtCell(t,n,!1)})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}}(this),function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(Af),n=Tx(this.getSelectedRange(),((t,n)=>e.getCommentMeta(t,n,Yx)));return n?Rx(t):t},callback(){this.getSelectedRangeLast().forAll(((t,n)=>{if(t>=0&&n>=0){const r=!!e.getCommentMeta(t,n,Yx);e.updateCommentMeta(t,n,{[Yx]:!r})}}))},disabled(){const t=this.getSelectedRangeLast();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}}(this))}getEditorInputElement(){return Dx(Wx,this).getInputElement()}destroy(){var e,t;null===(e=Dx(Wx,this))||void 0===e||e.destroy(),null===(t=Dx(Vx,this))||void 0===t||t.destroy(),super.destroy()}}function Xx(e){if(this.hot.view&&this.hot.view._wt&&!Dx(Bx,this)&&!this.targetIsCommentTextArea(e)){const t=Ei(e.target,"TD","TBODY");let n=null;t&&(n=this.hot.getCoords(t)),(!t||this.range.from&&n&&(this.range.from.row!==n.row||this.range.from.col!==n.col))&&this.hide()}}function Jx(e){e.stopPropagation()}function Qx(e){const{rootDocument:t}=this.hot;if(!(Dx(Bx,this)||Dx(Wx,this).isFocused()||Oi(e.target,"wtBorder")||Dx(Ux,this)===e.target)&&Dx(Wx,this))if(Px(Ux,this,t.elementFromPoint(e.clientX,e.clientY)),this.targetIsCellWithComment(e)){const t=this.hot._createCellRange(this.hot.getCoords(e.target));Dx(Vx,this).show(t)}else Ii(e.target,t)&&!this.targetIsCommentTextArea(e)&&Dx(Vx,this).hide()}function Zx(){Px(Bx,this,!1)}function ek(e,t){t[Ax]&&t[Ax][Nx]&&Ai(e,t.commentedCellClassName)}function tk(){Px(Gx,this,""),this.hot.getShortcutManager().setActiveContextName("grid"),this.setComment()}function nk(){Px(Gx,this,this.getComment()),this.hot.listen(),this.hot.getShortcutManager().setActiveContextName(zx)}function rk(e,t){this.updateCommentMeta(this.range.from.row,this.range.from.col,{[jx]:{width:e,height:t}})}function ok(e){Dx(Wx,this).isFocused()&&xa(e)}function ik(){Dx($x,this)||this.hide()}function sk(){const e=Dx(Wx,this).getEditorElement();Ni(e,/ht-theme-.*/g),Ai(e,this.hot.getCurrentThemeName())}function ak(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class lk{constructor(e){ak(this,"hot",void 0),ak(this,"commands",{}),ak(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=e.split(":"),i=o[0],s=2===o.length?o[1]:null;let a=this.commands[i];if(!a)throw new Error(`Menu command '${i}' not exists.`);if(s&&a.submenu&&(a=function(e,t){let n;return xs(t,(t=>{const r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}(s,a.submenu.items)),!0===a.disabled)return;if("function"==typeof a.disabled&&!0===a.disabled.call(this.hot))return;if(ia(a,"submenu"))return;const l=[];"function"==typeof a.callback&&l.push(a.callback),"function"==typeof this.commonCallback&&l.push(this.commonCallback),n.unshift(o.join(":")),xs(l,(e=>e.apply(this.hot,n)))}}const uk="alignment",ck="clear_column",dk="col_left",hk="col_right",pk="make_read_only",fk="redo",mk="remove_col",gk="remove_row",bk="row_above",yk="row_below",wk="no_items",vk="undo",Sk=[bk,yk,dk,hk,ck,gk,mk,vk,fk,pk,uk,Mx,wk],Ck={[Mx]:function(){return{name:Mx}},[wk]:function(){return{key:wk,name(){return this.getTranslatedPhrase(pf)},disabled:!0,isCommand:!1}},[bk]:function(){return{key:bk,name(){return this.getTranslatedPhrase(ff)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}},[yk]:function(){return{key:yk,name(){return this.getTranslatedPhrase(mf)},callback(){const e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}},[dk]:function(){return{key:dk,name(){return this.getTranslatedPhrase(gf)},callback(){const e=this.getSelectedRangeLast().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}},[hk]:function(){return{key:hk,name(){return this.getTranslatedPhrase(bf)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}},[ck]:function(){return{key:ck,name(){return this.getTranslatedPhrase(_f)},callback(e,t){const n=t[0].start.col,r=t[0].end.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t[0].start.row,t[0].end.row),r,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeLast();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll(((e,n)=>{if(e<0||n<0)return!0;const{readOnly:r}=this.getCellMeta(e,n);return!!r||(t=!0,!1)})),!t}}},[gk]:function(){return{key:gk,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[n,,r]=e[0];n-r!==0&&(t=1)}return this.getTranslatedPhrase(yf,t)},callback(){this.alter("remove_row",function(e){const t=zg(e.getSelected());if(0===t||1===t)return[];const n=Wg(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),r=new Set;xs(e.getSelected(),(e=>{const{from:t,to:o}=n(e),i=Math.max(t.row,0),s=o.row-i+1;xs(Array.from(new Array(s),((e,t)=>i+t)),(e=>{r.has(e)||r.add(e)}))}));return Cs(Array.from(r).sort(((e,t)=>e-t)),((e,t,n,r)=>(0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])}(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}},[mk]:function(){return{key:mk,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,n,,r]=e[0];n-r!==0&&(t=1)}return this.getTranslatedPhrase(wf,t)},callback(){this.alter("remove_col",function(e){const t=zg(e.getSelected());if(0===t||1===t)return[];const n=Wg(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),r=new Set;xs(e.getSelected(),(e=>{const{from:t,to:o}=n(e),i=Math.max(t.col,0),s=o.col-i+1;xs(Array.from(new Array(s),((e,t)=>i+t)),(e=>{r.has(e)||r.add(e)}))}));return Cs(Array.from(r).sort(((e,t)=>e-t)),((e,t,n,r)=>(0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e)),[])}(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}},[vk]:function(){return{key:vk,name(){return this.getTranslatedPhrase(vf)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}},[fk]:function(){return{key:fk,name(){return this.getTranslatedPhrase(Sf)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}},[pk]:function(){return{key:pk,checkable:!0,ariaChecked(){const e=Tx(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly));return e},ariaLabel(){return this.getTranslatedPhrase(Cf)},name(){let e=this.getTranslatedPhrase(Cf);const t=Tx(this.getSelectedRange(),((e,t)=>this.getCellMeta(e,t).readOnly));return t&&(e=Rx(e)),e},callback(){const e=this.getSelectedRange(),t=Tx(e,((e,t)=>this.getCellMeta(e,t).readOnly));xs(e,(e=>{e.forAll(((e,n)=>{e>=0&&n>=0&&this.setCellMeta(e,n,"readOnly",!t)}))})),this.render()},disabled(){const e=this.getSelectedRangeLast();return!(e&&!e.isSingleHeader()&&!this.selection.isSelectedByCorner()&&0!==this.countRows()&&0!==this.countCols()&&this.getSelectedRange()&&0!==this.getSelectedRange().length)}}},[uk]:function(){return{key:uk,name(){return this.getTranslatedPhrase(Nf)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();return!e||!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner())},submenu:{items:[{key:`${uk}:left`,name(){return this.getTranslatedPhrase(jf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",r="htLeft";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{key:`${uk}:center`,name(){return this.getTranslatedPhrase(Yf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",r="htCenter";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{key:`${uk}:right`,name(){return this.getTranslatedPhrase(Ff)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",r="htRight";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{key:`${uk}:justify`,name(){return this.getTranslatedPhrase(zf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="horizontal",r="htJustify";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{name:Mx},{key:`${uk}:top`,name(){return this.getTranslatedPhrase(Wf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",r="htTop";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{key:`${uk}:middle`,name(){return this.getTranslatedPhrase(Vf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",r="htMiddle";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1},{key:`${uk}:bottom`,name(){return this.getTranslatedPhrase(Bf)},callback(){const e=this.getSelectedRange(),t=xx(e,((e,t)=>this.getCellMeta(e,t).className)),n="vertical",r="htBottom";this.runHooks("beforeCellAlignment",t,e,n,r),kx(e,n,r,((e,t)=>this.getCellMeta(e,t)),((e,t,n,r)=>this.setCellMeta(e,t,n,r))),this.render()},disabled:!1}]}}}};function _k(){const e={};return ta(Ck,((t,n)=>{e[n]=t()})),e}function Mk(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class xk{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Mk(this,"hot",void 0),Mk(this,"predefinedItems",_k()),Mk(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,ta(e,((e,n)=>{let r="";e.name===Mx?(t[Mx]=e,r=Mx):isNaN(parseInt(n,10))?(e.key=void 0===e.key?n:e.key,t[n]=e,r=e.key):(t[e.key]=e,r=e.key),this.defaultOrderPattern.push(r)})),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=[];let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r&&r.items?r=r.items:Array.isArray(r)||(r=e),Zs(r)?ta(r,((e,r)=>{let o=t["string"==typeof e?e:r];o||(o=e),Zs(e)?Gs(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=r),n.push(o)})):xs(r,((e,r)=>{let o=t[e];!o&&Sk.indexOf(e)>=0||(o||(o={name:e,key:`${r}`}),Zs(e)&&Gs(o,e),void 0===o.key&&(o.key=r),n.push(o))})),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}function kk(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Rk{constructor(e,t){kk(this,"top",void 0),kk(this,"topRelative",void 0),kk(this,"left",void 0),kk(this,"leftRelative",void 0),kk(this,"scrollTop",void 0),kk(this,"scrollLeft",void 0),kk(this,"cellHeight",void 0),kk(this,"cellWidth",void 0);const n=t.scrollY,r=t.scrollX;let o,i,s,a,l,u;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(o=parseInt(e.top,10),s=parseInt(e.left,10),l=e.height||0,u=e.width||0,i=o,a=s,o+=n,s+=r):"event"===this.type&&(o=parseInt(e.pageY,10),s=parseInt(e.pageX,10),l=e.target.clientHeight,u=e.target.clientWidth,i=o-n,a=s-r),this.top=o,this.topRelative=i,this.left=s,this.leftRelative=a,this.scrollTop=n,this.scrollLeft=r,this.cellHeight=l,this.cellWidth=u}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}function Tk(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Ek(e,t){return e.get(Ik(e,t))}function Lk(e,t,n){return e.set(Ik(e,t),n),n}function Ik(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Pk=new WeakMap,Dk=new WeakMap,Hk=new WeakMap,Ok=new WeakMap,Ak=new WeakMap;class Nk{constructor(e){Tk(this,Pk,void 0),Tk(this,Dk,void 0),Tk(this,Hk,void 0),Tk(this,Ok,!1),Tk(this,Ak,{above:0,below:0,left:0,right:0}),Lk(Ok,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ek(Ak,this)[e]=t,this}setElement(e){return Lk(Pk,this,e),this}setParentElement(e){return Lk(Dk,this,e),this}updatePosition(e){Lk(Hk,this,new Rk(e,Ek(Pk,this).ownerDocument.defaultView)),Ek(Ok,this)?(Ek(Hk,this).fitsBelow(Ek(Pk,this))?this.setPositionBelowCursor():Ek(Hk,this).fitsAbove(Ek(Pk,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===Ek(Pk,this).dir?Ek(Hk,this).fitsOnLeft(Ek(Pk,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():Ek(Hk,this).fitsOnRight(Ek(Pk,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=Ek(Ak,this).above+Ek(Hk,this).top-Ek(Pk,this).offsetHeight;if(Ek(Dk,this)){const t=Ek(Dk,this).ownerDocument.defaultView.getComputedStyle(Ek(Dk,this).querySelector(".ht_master")),n=Number.parseInt(t.paddingTop,10),r=Number.parseInt(t.borderTop,10);e=Ek(Hk,this).top+Ek(Hk,this).cellHeight-Ek(Pk,this).scrollHeight+n+r}Ek(Pk,this).style.top=`${e}px`}setPositionBelowCursor(){let e=Ek(Ak,this).below+Ek(Hk,this).top+1;if(Ek(Dk,this)){const t=Ek(Dk,this).ownerDocument.defaultView.getComputedStyle(Ek(Dk,this).querySelector(".ht_master")),n=Number.parseInt(t.paddingTop,10),r=Number.parseInt(t.borderTop,10);e=Ek(Hk,this).top-n-r-1}Ek(Pk,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=Ek(Hk,this).left;if(Ek(Dk,this)){const t=Ek(Dk,this).ownerDocument.defaultView,n=Number.parseInt(t.getComputedStyle(Ek(Dk,this).querySelector(".htCore")).borderRightWidth,10);e+=Ek(Hk,this).cellWidth+n}else e+=Ek(Ak,this).right;Ek(Pk,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=Ek(Ak,this).left+Ek(Hk,this).left-Ek(Pk,this).offsetWidth;if(Ek(Dk,this)){const t=Ek(Dk,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(Ek(Dk,this).querySelector(".htCore")).borderLeftWidth,10)}Ek(Pk,this).style.left=`${e}px`}}function jk(e){let{initialPage:t=-1,size:n=()=>0,onItemSelect:r=()=>{},onClear:o=()=>{}}=e;const i=new Set;let s=zl(t,-1,l()-1);function a(e,t){const n=l()-1;return e<0&&(e=n),e>n&&(e=0),i.has(e)?-1:(i.add(e),!1===r(e,!1)&&(e=a(1===t?++e:--e,t)),e)}function l(){return Math.max(n(),0)}return{setCurrentPage:function(e){e>-1&&e<l()&&!1!==r(e,!0)&&(s=e)},getCurrentPage:function(){return s},toFirstItem:function(){l()>0&&(i.clear(),s=a(0,1))},toLastItem:function(){l()>0&&(i.clear(),s=a(l()-1,-1))},toNextItem:function(){l()>0&&(i.clear(),s=a(++s,1))},toPreviousItem:function(){l()>0&&(i.clear(),s=a(--s,-1))},getSize:l,clear:function(){i.clear(),s=t,o()}}}function Yk(e){return ia(e,"submenu")}function Fk(e){return new RegExp(Mx,"i").test(e.name)}function zk(e,t){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(t)}function Wk(e){return ia(e,"disableSelection")}function Vk(e,t){const n=e.slice(0);for(let e=0;e<n.length&&n[e].name===t;)n.shift();return n}const Bk="menu",$k=Bk;function Uk(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Gk(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(e,t,n){return e.set(Xk(e,t),n),n}function qk(e,t){return e.get(Xk(e,t))}function Xk(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap;class eR{get tableBorderWidth(){return void 0===qk(Zk,this)&&this.hotMenu&&Kk(Zk,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),qk(Zk,this)}constructor(e,t){var n=this;Gk(this,"hot",void 0),Gk(this,"options",void 0),Gk(this,"eventManager",new al(this)),Gk(this,"container",void 0),Gk(this,"positioner",void 0),Gk(this,"hotMenu",null),Gk(this,"hotSubMenus",{}),Gk(this,"parentMenu",void 0),Gk(this,"menuItems",null),Gk(this,"origOutsideClickDeselects",null),Uk(this,Jk,void 0),Uk(this,Qk,void 0),Uk(this,Zk,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.container=this.createContainer(this.options.name),this.positioner=new Nk(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.parentMenu.runLocalHooks("afterSelectionChange",...t)})),this.hot.addHook("afterSetTheme",((e,t)=>{var n;t||null===(n=this.hotMenu)||void 0===n||n.useTheme(e)}))}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"touchstart",(e=>this.onDocumentMouseDown(e))),this.eventManager.addEventListener(e.document,"contextmenu",(e=>this.onDocumentContextMenu(e))),e=Ti(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return qk(Jk,this)}getKeyboardShortcutsCtrl(){return qk(Qk,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=Vs((e=>this.openSubMenu(e)),300),t=this.options.minWidth||215;let n=!1,r=_s(this.menuItems,(e=>(e.key===wk&&(n=!0),function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}(e,this.hot))));if(r.length<1&&!n)r.push(_k()[wk]);else if(0===r.length)return;r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mx,n=e.slice(0);return n=Vk(n,t),n=function(e,t){let n=e.slice(0);return n.reverse(),n=Vk(n,t),n.reverse(),n}(n,t),n=function(e){const t=[];return xs(e,((e,n)=>{n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}(n),n}(r,Mx);let o=!1;const i={data:r,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>Ls(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(s=this.hot,(e,t,n,r,o,i)=>{const a=e.getSourceDataAtRow(n),l=s.rootDocument.createElement("div"),u="function"==typeof i?i.call(s):i,c="function"==typeof a.ariaLabel?a.ariaLabel.call(s):a.ariaLabel,d="function"==typeof a.ariaChecked?a.ariaChecked.call(s):a.ariaChecked;if(zi(t),Ai(l,"htItemWrapper"),s.getSettings().ariaTags){const e=!zk(a,s)&&!Wk(a)&&!Fk(a);ji(t,[...(h=a,!0===h.checkable?[["role","menuitemcheckbox"],gi(c),_i(d)]:[["role","menuitem"],gi(u)]),...e?[mi(-1)]:[],...zk(a,s)?[["aria-disabled","true"]]:[],...Yk(a)?[Ci(!1)]:[]])}var h;t.className="",t.appendChild(l),Fk(a)?Ai(t,"htSeparator"):"function"==typeof a.renderer?(Ai(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,l,n,r,o,u))):Vi(l,u),zk(a,s)?Ai(t,"htDisabled"):Wk(a)?Ai(t,"htSelectionDisabled"):Yk(a)&&Ai(t,"htSubmenu")})}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{qk(Jk,this).setCurrentPage(t.row)},afterOnCellMouseOver:(t,n)=>{this.isAllSubMenusClosed()?e(n.row):this.openSubMenu(n.row)},afterOnCellContextMenu:e=>{e.preventDefault(),wa()&&o&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,n,r,o)=>{this.hotMenu.view.isMouseDown()&&(o.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(o=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{wa()&&Ra(e)||!o||!this.hasSelectedItem()||(ga()||ya()?this.hot._registerTimeout((()=>this.close(!0)),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};var s,a;this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,i),this.hotMenu.addHook("afterInit",(()=>this.onAfterInit())),this.hotMenu.init(),Kk(Jk,this,(a=this.hotMenu,jk({size:()=>a.countRows(),onItemSelect(e,t){const n=a.getCell(e,0);if(!n||function(e){return Oi(e,"htSeparator")}(n)||function(e){return Oi(e,"htDisabled")}(n)||function(e){return Oi(e,"htSelectionDisabled")}(n))return!1;a.selectCell(e,0,...t?[e,0,!1,!1]:[])},onClear(){a.deselectCell()}}))),Kk(Qk,this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];function r(e,t){s(t).addShortcuts(e,{group:Bk})}function o(e,t){const o=s(t);e.forEach((e=>{let{keys:t}=e;t.forEach((e=>o.removeShortcutsByKeys(e)))})),n.push({shortcuts:e,contextName:t}),r(e,t)}function i(e){return e?`${$k}:${e}`:$k}function s(t){var n;const r=e.hotMenu.getShortcutManager(),o=i(t);return null!==(n=r.getContext(o))&&void 0!==n?n:r.addContext(o)}return r(function(e){const{hot:t,hotMenu:n}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(n,r)=>{const o=t.getSettings(),i="function"==typeof o.tabMoves?o.tabMoves(n):o.tabMoves;r.includes("shift")?t.selection.transformStart(-i.row,-i.col):t.selection.transformStart(i.row,i.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=n.getSelectedLast();if(t){const n=e.openSubMenu(t[0]);n&&n.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{n.getSelectedLast()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const r=n.getSelectedLast();r&&(n.getSourceDataAtRow(r[0]).submenu?e.openSubMenu(r[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{n.getSelectedLast()?n.selection.transformStart(-n.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{n.getSelectedLast()?n.selection.transformStart(n.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}(e)),t.forEach((e=>{let{shortcuts:t,contextName:n}=e;o(t,n)})),{addCustomShortcuts:o,getCustomShortcuts:function(){return[...n]},getContext:s,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(i(t))}}}(this)),qk(Qk,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",(()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this))),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(qk(Jk,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();e&&ji(this.parentMenu.hotMenu.getCell(e[0],0),[Ci(!1)])}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!function(e){return Oi(e,"htSubmenu")}(t))return!1;const n=this.hotMenu.getSourceDataAtRow(e),r=new eR(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return r.setMenuItems(n.submenu.items),r.open(),r.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=r,this.hot.getSettings().ariaTags&&ji(t,[Ci(!0)]),r}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];if(n){n.destroy(),delete this.hotSubMenus[t.key];const r=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&ji(r,[Ci(!1)])}}closeAllSubMenus(){xs(this.hotMenu.getData(),((e,t)=>this.closeSubMenu(t)))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const n=this.hot.getSelectedRange(),r=n?function(e){return Ms(e,(e=>({start:e.getTopStartCorner(),end:e.getBottomEndCorner()})))}(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}isCommandPassive(e){return!1===e.isCommand||Fk(e)||zk(e,this.hot)||Yk(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const e=this.hotMenu.view.getStylesHandler(),{wtTable:t}=this.hotMenu.view._wt,n=this.hotMenu.getSettings().data,r=t.hider.style,o=t.holder.style,i=parseInt(r.width,10),s=Cs(n,((e,t,n)=>{const r=this.hotMenu.getCell(n,0)?ts(this.hotMenu.getCell(n,0)):0;return e+(t.name===Mx?1:r)}),0);e.isClassicTheme()?(o.width=`${i+3}px`,o.height=`${s+3}px`):(o.width=`${i}px`,o.height=`${s}px`),r.height=o.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let n,r=e;return r&&(Ws(r)&&(r=r.call(this.hot),r=null===r||Is(r)?"":r.toString()),r=r.replace(/[^A-Za-z0-9]/g,"_"),r=`${this.options.className}Sub_${r}`,n=t.querySelector(`.${this.options.className}.${r}`)),n||(n=t.createElement("div"),Ai(n,`htMenu handsontable ${this.options.className}`),r&&Ai(n,r),this.options.container.appendChild(n)),n}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&ji(this.hotMenu.rootElement,[["role","menu"],mi(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!Ii(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||Ii(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&Oi(e.target,"htCore")&&Ii(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}function tR(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nR(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Js(eR,kp);const rR="contextMenu",oR=rR;Ua.getSingleton().register("afterContextMenuDefaultOptions"),Ua.getSingleton().register("beforeContextMenuShow"),Ua.getSingleton().register("afterContextMenuShow"),Ua.getSingleton().register("afterContextMenuHide"),Ua.getSingleton().register("afterContextMenuExecute");var iR=new WeakSet;class sR extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=iR),t.add(e),tR(this,"commandExecutor",new lk(this.hot)),tR(this,"itemsFactory",null),tR(this,"menu",null)}static get PLUGIN_KEY(){return rR}static get PLUGIN_PRIORITY(){return 70}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[bk,yk,Mx,dk,hk,Mx,gk,mk,Mx,vk,fk,Mx,pk,Mx,uk]}isEnabled(){return!!this.hot.getSettings()[rR]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[rR];"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.menu=new eR(this.hot,{className:"htContextMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.menu.addLocalHook("beforeOpen",(()=>nR(iR,this,lR).call(this))),this.menu.addLocalHook("afterOpen",(()=>nR(iR,this,uR).call(this))),this.menu.addLocalHook("afterClose",(()=>nR(iR,this,cR).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.executeCommand.call(e,...n)})),this.addHook("afterOnCellContextMenu",(e=>nR(iR,this,aR).call(this,e))),this.registerShortcuts(),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control/Meta","Shift","Backslash"],["Shift","F10"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();this.hot.scrollToFocusedCell();const t=this.hot.getCell(e.row,e.col,!0).getBoundingClientRect(),n=Ex(this.menu.container,this.hot.rootDocument);this.open({left:t.left+n.left,top:t.top+n.top-1+t.height},{left:t.width,above:-t.height}),this.menu.getNavigator().toFirstItem()},runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&!this.menu.isOpened()},group:oR})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(oR)}open(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};if(null!==(t=this.menu)&&void 0!==t&&t.isOpened())return;this.prepareMenuItems(),this.menu.open();const r=this.menu.tableBorderWidth>0;ta(n,((e,t)=>{const n=["below","right"].includes(t)?e+1:e-1;this.menu.setOffset(t,r?e:n)})),this.menu.setPosition(e)}close(){var e;null===(e=this.menu)||void 0===e||e.close(),this.itemsFactory=null}executeCommand(e){null===this.itemsFactory&&this.prepareMenuItems();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.commandExecutor.execute(e,...n)}prepareMenuItems(){this.itemsFactory=new xk(this.hot,sR.DEFAULT_ITEMS);const e=this.hot.getSettings()[rR],t={items:this.itemsFactory.getItems(e)};this.hot.runHooks("afterContextMenuDefaultOptions",t),this.itemsFactory.setPredefinedItems(t.items);const n=this.itemsFactory.getItems(e);this.hot.runHooks("beforeContextMenuSetItems",n),this.menu.setMenuItems(n),xs(n,(e=>this.commandExecutor.registerCommand(e.key,e)))}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function aR(e){const t=this.hot.getSettings(),n=t.rowHeaders,r=t.colHeaders,o=e.target;if(this.close(),Oi(o,"handsontableInput"))return;if(e.preventDefault(),e.stopPropagation(),!n&&!r&&!(function(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}(o)||Oi(o,"current")&&Oi(o,"wtBorder")))return;const i=Ex(this.menu.container,this.hot.rootDocument);this.open({top:e.clientY+i.top,left:e.clientX+i.left})}function lR(){this.hot.runHooks("beforeContextMenuShow",this)}function uR(){this.hot.runHooks("afterContextMenuShow",this)}function cR(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)}sR.SEPARATOR={name:Mx};class dR{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}class hR{constructor(){this.clipboardData=new dR}preventDefault(){}composedPath(){return[]}}function pR(e,t,n){fR(e,t),t.set(e,n)}function fR(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mR(e,t){return e.get(bR(e,t))}function gR(e,t,n){return e.set(bR(e,t),n),n}function bR(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var yR=new WeakMap,wR=new WeakMap,vR=new WeakMap,SR=new WeakMap,CR=new WeakMap,_R=new WeakMap,MR=new WeakSet;class xR{constructor(e){let{countRows:t,countColumns:n,rowsLimit:r,columnsLimit:o,countColumnHeaders:i}=e;var s;fR(this,s=MR),s.add(this),pR(this,yR,void 0),pR(this,wR,void 0),pR(this,vR,void 0),pR(this,SR,void 0),pR(this,CR,void 0),pR(this,_R,void 0),gR(wR,this,t),gR(vR,this,n),gR(SR,this,r),gR(CR,this,o),gR(_R,this,i)}setSelectedRange(e){gR(yR,this,e)}getCellsRange(){if(0===mR(wR,this).call(this)||0===mR(vR,this).call(this))return null;const{row:e,col:t}=mR(yR,this).getTopStartCorner(),{row:n,col:r}=mR(yR,this).getBottomEndCorner(),o=bR(MR,this,RR).call(this,e,n),i=bR(MR,this,kR).call(this,t,r);return{isRangeTrimmed:n!==o||r!==i,startRow:e,startCol:t,endRow:o,endCol:i}}getMostBottomColumnHeadersRange(){if(0===mR(vR,this).call(this)||0===mR(_R,this).call(this))return null;const{col:e}=mR(yR,this).getTopStartCorner(),{col:t}=mR(yR,this).getBottomEndCorner(),n=bR(MR,this,kR).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-1,startCol:e,endRow:-1,endCol:n}}getAllColumnHeadersRange(){if(0===mR(vR,this).call(this)||0===mR(_R,this).call(this))return null;const{col:e}=mR(yR,this).getTopStartCorner(),{col:t}=mR(yR,this).getBottomEndCorner(),n=bR(MR,this,kR).call(this,e,t);return{isRangeTrimmed:t!==n,startRow:-mR(_R,this).call(this),startCol:e,endRow:-1,endCol:n}}}function kR(e,t){return Math.min(t,Math.max(e+mR(CR,this).call(this)-1,e))}function RR(e,t){return Math.min(t,Math.max(e+mR(SR,this).call(this)-1,e))}function TR(e){const t=[],n=[];return xs(e,(e=>{jl(Math.min(e.startRow,e.endRow),Math.max(e.startRow,e.endRow),(e=>{-1===t.indexOf(e)&&t.push(e)})),jl(Math.min(e.startCol,e.endCol),Math.max(e.startCol,e.endCol),(e=>{-1===n.indexOf(e)&&n.push(e)}))})),{rows:t,columns:n}}function ER(e,t,n){LR(e,t),t.set(e,n)}function LR(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function IR(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PR(e,t){return e.get(HR(e,t))}function DR(e,t,n){return e.set(HR(e,t),n),n}function HR(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("afterCopyLimit"),Ua.getSingleton().register("modifyCopyableRange"),Ua.getSingleton().register("beforeCut"),Ua.getSingleton().register("afterCut"),Ua.getSingleton().register("beforePaste"),Ua.getSingleton().register("afterPaste"),Ua.getSingleton().register("beforeCopy"),Ua.getSingleton().register("afterCopy");const OR="copyPaste",AR=["fragmentSelection"],NR=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var jR=new WeakMap,YR=new WeakMap,FR=new WeakMap,zR=new WeakMap,WR=new WeakMap,VR=new WeakMap,BR=new WeakMap,$R=new WeakMap,UR=new WeakSet;class GR extends MC{constructor(){var e;super(...arguments),LR(this,e=UR),e.add(this),IR(this,"columnsLimit",1/0),IR(this,"rowsLimit",1/0),IR(this,"pasteMode","overwrite"),IR(this,"uiContainer",this.hot.rootDocument.body),ER(this,jR,!1),ER(this,YR,!1),ER(this,FR,!1),ER(this,zR,"cells-only"),ER(this,WR,!1),ER(this,VR,!1),ER(this,BR,new xR({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),ER(this,$R,!1),IR(this,"copyableRanges",[])}static get PLUGIN_KEY(){return OR}static get SETTING_KEYS(){return[OR,...AR]}static get PLUGIN_PRIORITY(){return 80}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[OR]}enablePlugin(){var e,t,n=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),DR(jR,this,this.getSetting("copyColumnHeaders")),DR(YR,this,this.getSetting("copyColumnGroupHeaders")),DR(FR,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",(e=>HR(UR,this,QR).call(this,e))),this.addHook("afterSelection",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return HR(UR,n,ZR).call(n,...t)})),this.addHook("afterSelectionEnd",(()=>HR(UR,this,eT).call(this))),this.eventManager.addEventListener(this.hot.rootDocument,"copy",(function(){return n.onCopy(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"cut",(function(){return n.onCut(...arguments)})),this.eventManager.addEventListener(this.hot.rootDocument,"paste",(function(){return n.onPaste(...arguments)})),ma()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return HR(UR,n,tT).call(n,...t)})),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return HR(UR,n,nT).call(n,...t)})),this.addHook("afterSelection",(()=>HR(UR,this,rT).call(this)))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){DR(zR,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),DR(WR,this,!0),HR(UR,this,KR).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){DR(VR,this,!0),HR(UR,this,KR).call(this,"cut")}getRangedCopyableData(e){return Pb(this.getRangedData(e))}getRangedData(e){const t=[],{rows:n,columns:r}=TR(e);return xs(n,(e=>{const n=[];xs(r,(t=>{e<0?n.push(this.hot.getColHeader(t,e)):n.push(this.hot.getCopyableData(e,t))})),t.push(n)})),t}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const n=new hR;e&&n.clipboardData.setData("text/plain",e),t&&n.clipboardData.setData("text/html",t),this.onPaste(n)}setCopyableText(){const e=this.hot.getSelectedRangeLast();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);PR(BR,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===PR(zR,this)?t.set("headers",PR(BR,this).getMostBottomColumnHeadersRange()):("with-column-headers"===PR(zR,this)?t.set("headers",PR(BR,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===PR(zR,this)&&t.set("headers",PR(BR,this).getAllColumnHeadersRange()),t.set("cells",PR(BR,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter((e=>null!==e)).map((e=>{let{startRow:t,startCol:n,endRow:r,endCol:o}=e;return{startRow:t,startCol:n,endRow:r,endCol:o}})),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const n=t.get("cells");if(null!==n&&n.isRangeTrimmed){const{startRow:e,startCol:t,endRow:r,endCol:o}=n;this.hot.runHooks("afterCopyLimit",r-e+1,o-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.getSelectedRangeLast();if(!e.length)return;const n=e.length,r=e[0].length,o=[],{row:i,col:s}=t.getTopStartCorner(),{row:a,col:l}=t.getBottomEndCorner();let u=i,c=s,d=i,h=s;for(;o.length<n||u<=a;){const{skipRowOnPaste:t,visualRow:a}=this.hot.getCellMeta(u,s);if(u=a+1,!0===t)continue;d=a,c=s;const p=[],f=o.length%n;for(;p.length<r||c<=l;){const{skipColumnOnPaste:t,visualCol:n}=this.hot.getCellMeta(i,c);if(c=n+1,!0===t)continue;h=n;const o=p.length%r;p.push(e[f][o])}o.push(p)}return DR($R,this,!0),this.hot.populateFromArray(i,s,o,void 0,void 0,"CopyPaste.paste",this.pasteMode),[i,s,d,h]}onCopy(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),r=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!PR(WR,this)||this.isEditorOpened()||ys(t)&&(r&&t!==n||!r&&t!==this.hot.rootDocument.body&&!Ri(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),DR(WR,this,!1);const o=this.getRangedData(this.copyableRanges),i=HR(UR,this,qR).call(this,this.copyableRanges);if(this.hot.runHooks("beforeCopy",o,this.copyableRanges,i)){const t=Pb(o);if(e&&e.clipboardData){const n=Al(o,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[NR,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.runHooks("afterCopy",o,this.copyableRanges,i)}DR(zR,this,"cells-only")}onCut(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),r=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!PR(VR,this)||this.isEditorOpened()||ys(t)&&(r&&t!==n||!r&&t!==this.hot.rootDocument.body&&!Ri(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),DR(VR,this,!1);const o=this.getRangedData(this.copyableRanges);if(this.hot.runHooks("beforeCut",o,this.copyableRanges)){const t=Pb(o);if(e&&e.clipboardData){const n=Al(o,this.hot.rootDocument);e.clipboardData.setData("text/plain",t),e.clipboardData.setData("text/html",[NR,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",t);this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",o,this.copyableRanges)}}onPaste(e){const t=e.composedPath()[0],n=this.hot.getFocusManager().getRefocusElement(),r=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||ys(t)&&(r&&t!==n||!r&&t!==this.hot.rootDocument.body&&!Ri(t,this.hot.rootElement)))return;let o;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=fi(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(t&&/(<table)|(<TABLE)/g.test(t)){const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n={},r=t.createDocumentFragment(),o=t.createElement("div");r.appendChild(o);let i=e;if("string"==typeof i){const e=i.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/gm,"")}</td>`}));o.insertAdjacentHTML("afterbegin",`${e}`),i=o.querySelector("table")}if(!i||!function(e){return"TABLE"===(e&&e.nodeName||"")}(i))return;const s=o.querySelector('meta[name$="enerator"]'),a=null!==i.querySelector("tbody th"),l=i.querySelector("tr"),u=l?Array.from(l.cells).reduce(((e,t)=>e+t.colSpan),0)-(a?1:0):0,c=i.tFoot&&Array.from(i.tFoot.rows)||[],d=[];let h=!1,p=0,f=0;if(i.tHead){const e=Array.from(i.tHead.rows).filter((e=>{const t=null!==e.querySelector("td");return t&&d.push(e),!t}));p=e.length,h=p>0,p>1?n.nestedHeaders=Array.from(e).reduce(((e,t)=>{const n=Array.from(t.cells).reduce(((e,t,n)=>{if(a&&0===n)return e;const{colSpan:r,innerHTML:o}=t,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):h&&(n.colHeaders=Array.from(e[0].children).reduce(((e,t,n)=>(a&&0===n||e.push(t.innerHTML),e)),[]))}d.length&&(n.fixedRowsTop=d.length),c.length&&(n.fixedRowsBottom=c.length);const m=[...d,...Array.from(i.tBodies).reduce(((e,t)=>(e.push(...Array.from(t.rows)),e)),[]),...c];f=m.length;const g=new Array(f);for(let e=0;e<f;e++)g[e]=new Array(u);const b=[],y=[];for(let e=0;e<f;e++){const t=m[e],n=Array.from(t.cells),r=n.length;for(let t=0;t<r;t++){const r=n[t],{nodeName:o,innerHTML:i,rowSpan:a,colSpan:l}=r,u=g[e].findIndex((e=>void 0===e));if("TD"===o){if(a>1||l>1){for(let t=e;t<e+a;t++)if(t<f)for(let e=u;e<u+l;e++)g[t][e]=null;const t=r.getAttribute("style");t&&t.includes("mso-ignore:colspan")||b.push({col:u,row:e,rowspan:a,colspan:l})}let t="";t=s&&/excel/gi.test(s.content)?i.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):i.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),g[e][u]=t.replace(Hl,(e=>Dl[e]))}else y.push(i)}}return b.length&&(n.mergeCells=b),y.length&&(n.rowHeaders=y),g.length&&(n.data=g),n}(t,this.hot.rootDocument);o=e.data}else o=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(o=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof o&&(o=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,o=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(Ib))e=e.replace(Ib,""),r+=1,t[o][r]="";else if(e.match(Eb))e=e.replace(Eb,""),r=0,o+=1,t[o]=[""];else{let n="";if(e.startsWith('"')){let t=0,r=!0;for(;r;){const o=e.slice(0,1);'"'===o&&(t+=1),n+=o,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(r=!1)}n=n.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,(e=>new Array(Math.floor(e.length/2)).fill('"').join("")))}else{const t=e.match(Lb);n=t?t[0]:"",e=e.slice(n.length)}t[o][r]=n}return t}(o)),void 0===o||o&&0===o.length)return;if(!1===this.hot.runHooks("beforePaste",o,this.copyableRanges))return;const[i,s,a,l]=this.populateValues(o);this.hot.selectCell(i,s,Math.min(this.hot.countRows()-1,a),Math.min(this.hot.countCols()-1,l)),this.hot.runHooks("afterPaste",o,this.copyableRanges)}destroy(){super.destroy()}}function KR(e){if(ma()){const t=this.hot.getSelectedRangeLast();if(t){const{row:n,col:r}=t.highlight,o=this.hot.getCell(n,r,!0);o&&function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];gs(e,n),t(),bs(e,n)}(o,(()=>{this.hot.rootDocument.execCommand(e)}))}}else this.hot.rootDocument.execCommand(e)}function qR(e){const{rows:t}=TR(e);let n=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)n+=1;return{columnHeadersCount:n}}function XR(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:n}=e.highlight,r=this.hot.getCell(t,n,!0);r&&gs(r)}}}function JR(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeLast();if(e){const{row:t,col:n}=e.highlight,r=this.hot.getCell(t,n,!0);null!=r&&r.hasAttribute("contenteditable")&&bs(r)}}}function QR(e){var t;e.items.push({name:"---------"},(t=this,{key:"copy",name(){return this.getTranslatedPhrase(Mf)},callback(){t.copyCellsOnly()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1})),PR(jR,this)&&e.items.push(function(e){return{key:"copy_with_column_headers",name(){const e=this.getSelectedRangeLast(),t=e?zl(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(xf,t)},callback(){e.copyWithColumnHeaders()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),PR(YR,this)&&e.items.push(function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeLast(),t=e?zl(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(kf,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),PR(FR,this)&&e.items.push(function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),t=e?zl(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(Rf,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this)),e.items.push(function(e){return{key:"cut",name(){return this.getTranslatedPhrase(Tf)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}}(this))}function ZR(e,t,n,r,o){PR($R,this)&&(o.value=!0),DR($R,this,!1)}function eT(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function tT(){HR(UR,this,JR).call(this)}function nT(){HR(UR,this,XR).call(this)}function rT(){HR(UR,this,JR).call(this)}function oT(e,t){return`border_row${e}col${t}`}function iT(e){var t,n;return(Ls(e.start)||Ls(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left),(Ls(e.end)||Ls(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right),delete e.left,delete e.right,e}function sT(e){return Ls(e.start)&&(e.left=e.start),Ls(e.end)&&(e.right=e.end),e}function aT(e,t){return{id:oT(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}}function lT(e,t){let n=!1;return xs(e.getSelectedRange(),(r=>{r.forAll(((r,o)=>{if(r<0||o<0)return;const i=e.getCellMeta(r,o).borders;if(i){if(!t)return n=!0,!1;if(!ia(i[t],"hide")||!1===i[t].hide)return n=!0,!1}}))})),n}function uT(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`}const cT=new Map([["left","start"],["right","end"]]);function dT(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(Gf);return lT(this,t)&&(e=uT(e)),e},callback(n,r){const o=lT(this,t);e.prepareBorder(r,t,o)}}}function hT(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(Kf);return lT(this,"bottom")&&(e=uT(e)),e},callback(t,n){const r=lT(this,"bottom");e.prepareBorder(n,"bottom",r)}}}function pT(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(qf);return lT(this,t)&&(e=uT(e)),e},callback(n,r){const o=lT(this,t);e.prepareBorder(r,t,o)}}}function fT(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(Xf)},callback(t,n){e.prepareBorder(n,"noBorders")},disabled(){return!lT(this)}}}function mT(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const gT="customBorders";var bT=new WeakSet;class yT extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bT),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"savedBorders",[])}static get PLUGIN_KEY(){return gT}static get PLUGIN_PRIORITY(){return 90}isEnabled(){return!!this.hot.getSettings()[gT]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>mT(bT,this,wT).call(this,e))),this.addHook("init",(()=>mT(bT,this,vT).call(this))),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let n=["top","bottom","start","end"],r=null;t&&(this.checkSettingsCohesion([t]),n=Object.keys(t),r=iT(t));const o=Wg(zg(e),{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});xs(e,(e=>{o(e).forAll(((e,t)=>{xs(n,(n=>{var o,i;this.prepareBorderFromCustomAdded(e,t,r,(o=n,null!==(i=cT.get(o))&&void 0!==i?i:o))}))}))})),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=Wg(zg(e),{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),n=[];return xs(e,(e=>{t(e).forAll(((e,t)=>{xs(this.savedBorders,(r=>{r.row===e&&r.col===t&&n.push(sT(r))}))}))})),n}clearBorders(e){e?this.setBorders(e):(xs(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")})),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const n=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,n,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:n})}prepareBorderFromCustomAdded(e,t,n,r){const o=this.hot.countRows(),i=this.hot.countCols();if(e>=o||t>=i)return;let s=aT(e,t);var a,l;n&&(a=s,ia(l=n,"border")&&l.border&&(a.border=l.border),ia(l,"top")&&Ls(l.top)&&(l.top?(Zs(l.top)||(l.top={width:1,color:"#000"}),a.top=l.top):(l.top={hide:!0},a.top=l.top)),ia(l,"bottom")&&Ls(l.bottom)&&(l.bottom?(Zs(l.bottom)||(l.bottom={width:1,color:"#000"}),a.bottom=l.bottom):(l.bottom={hide:!0},a.bottom=l.bottom)),ia(l,"start")&&Ls(l.start)&&(l.start?(Zs(l.start)||(l.start={width:1,color:"#000"}),a.start=l.start):(l.start={hide:!0},a.start=l.start)),ia(l,"end")&&Ls(l.end)&&(l.end?(Zs(l.end)||(l.end={width:1,color:"#000"}),a.end=l.end):(l.end={hide:!0},a.end=l.end)),s=a,xs(this.hot.selection.highlight.customSelections,(e=>{if(s.id===e.settings.id)return Object.assign(e.settings,n),s.id=e.settings.id,s.top=e.settings.top,s.bottom=e.settings.bottom,s.start=e.settings.start,s.end=e.settings.end,!1}))),this.hot.setCellMeta(e,t,"borders",sT(s)),this.insertBorderIntoSettings(s,r)}prepareBorderFromCustomAddedRange(e,t){const n=Math.min(e.to.row,this.hot.countRows()-1),r=Math.min(e.to.col,this.hot.countCols()-1);jl(e.from.row,n,(n=>{jl(e.from.col,r,(r=>{const o=aT(n,r);let i=0;n===e.from.row&&ia(t,"top")&&(i+=1,o.top=t.top),n===e.to.row&&ia(t,"bottom")&&(i+=1,o.bottom=t.bottom),r===e.from.col&&ia(t,"start")&&(i+=1,o.start=t.start),r===e.to.col&&ia(t,"end")&&(i+=1,o.end=t.end),i>0&&(this.hot.setCellMeta(n,r,"borders",sT(o)),this.insertBorderIntoSettings(o))}))}))}removeAllBorders(e,t){const n=oT(e,t);this.spliceBorder(n),this.clearBordersFromSelectionSettings(n),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,n,r){let o=this.hot.getCellMeta(e,t).borders;o=o&&void 0!==o.border?iT(o):aT(e,t),r?(o[n]={hide:!0},4===this.countHide(o)?this.removeAllBorders(e,t):(this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",sT(o)))):(o[n]={width:1,color:"#000"},this.checkCustomSelectionsFromContextMenu(o,n,r)||this.insertBorderIntoSettings(o),this.hot.setCellMeta(e,t,"borders",sT(o)))}prepareBorder(e,t,n){xs(e,(e=>{let{start:r,end:o}=e;if(r.row===o.row&&r.col===o.col)"noBorders"===t?this.removeAllBorders(r.row,r.col):this.setBorder(r.row,r.col,t,n);else switch(t){case"noBorders":jl(r.col,o.col,(e=>{jl(r.row,o.row,(t=>{this.removeAllBorders(t,e)}))}));break;case"top":jl(r.col,o.col,(e=>{this.setBorder(r.row,e,t,n)}));break;case"bottom":jl(r.col,o.col,(e=>{this.setBorder(o.row,e,t,n)}));break;case"start":jl(r.row,o.row,(e=>{this.setBorder(e,r.col,t,n)}));break;case"end":jl(r.row,o.row,(e=>{this.setBorder(e,o.col,t,n)}))}}))}createCustomBorders(e){xs(e,(e=>{const t=iT(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)}))}countHide(e){const{top:t,bottom:n,start:r,end:o}=e;return Cs([t,n,r,o],((e,t)=>{let n=e;return t&&t.hide&&(n+=1),n}),0)}clearBordersFromSelectionSettings(e){const t=Ms(this.hot.selection.highlight.customSelections,(e=>e.settings.id)).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){xs(this.hot.selection.highlight.customSelections,((e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1}))}hideBorders(){xs(this.savedBorders,(e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()}))}spliceBorder(e){const t=Ms(this.savedBorders,(e=>e.id)).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):xs(this.savedBorders,((n,r)=>{if(e.id===n.id)return this.savedBorders[r]=e,t=!0,!1})),t}checkCustomSelectionsFromContextMenu(e,t,n){let r=!1;return xs(this.hot.selection.highlight.customSelections,(o=>{if(e.id===o.settings.id)return xs(this.hot.view._wt.selectionManager.getBorderInstances(o),(e=>{e.toggleHiddenClass(t,n)})),r=!0,!1})),r}checkCustomSelections(e,t,n){const r=this.countHide(e);let o=!1;return 4===r?(this.removeAllBorders(e.row,e.col),o=!0):xs(this.hot.selection.highlight.customSelections,(r=>{if(e.id===r.settings.id)return r.visualCellRange=t,r.commit(),n&&xs(this.hot.view._wt.selectionManager.getBorderInstances(r),(t=>{t.changeBorderStyle(n,e)})),o=!0,!1})),o}changeBorderSettings(){const e=this.hot.getSettings()[gT];if(Array.isArray(e)){const t=qs(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=e.some((e=>Ls(e.left)||Ls(e.right))),n=function(e){return e.some((e=>Ls(e.start)||Ls(e.end)))}(e);if(t&&n)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function wT(e){var t;this.hot.getSettings()[gT]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase($f)},disabled(){const e=this.getSelectedRangeLast();return!e||!!e.isSingleHeader()||this.selection.isSelectedByCorner()},submenu:{items:[(t=this,{key:"borders:top",name(){let e=this.getTranslatedPhrase(Uf);return lT(this,"top")&&(e=uT(e)),e},callback(e,n){const r=lT(this,"top");t.prepareBorder(n,"top",r)}}),dT(this),hT(this),pT(this),fT(this)]}})}function vT(){this.changeBorderSettings()}function ST(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CT(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const _T="dragToScroll";var MT=new WeakSet;class xT extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=MT),t.add(e),ST(this,"boundaries",null),ST(this,"callback",null),ST(this,"listening",!1)}static get PLUGIN_KEY(){return _T}static get PLUGIN_PRIORITY(){return 100}isEnabled(){return!!this.hot.getSettings()[_T]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",(e=>CT(MT,this,kT).call(this,e))),this.addHook("afterOnCellCornerMouseDown",(e=>CT(MT,this,kT).call(this,e))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let n=0,r=0;t<this.boundaries.top?r=t-this.boundaries.top:t>this.boundaries.bottom&&(r=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,r)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mouseup",(()=>this.unlisten())),this.eventManager.addEventListener(t.document,"mousemove",(e=>this.onMouseMove(e))),t=Ti(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function kT(e){if(Ra(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback(((e,n)=>{var r,o;const i=null!==(r=t.scrollLeft)&&void 0!==r?r:t.scrollX,s=null!==(o=t.scrollTop)&&void 0!==o?o:t.scrollY;t.scroll(i+50*Math.sign(e),s+20*Math.sign(n))})),this.listen()}function RT(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function TT(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t,n){return e.set(LT(e,t),n),n}function LT(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("afterDropdownMenuDefaultOptions"),Ua.getSingleton().register("beforeDropdownMenuShow"),Ua.getSingleton().register("afterDropdownMenuShow"),Ua.getSingleton().register("afterDropdownMenuHide"),Ua.getSingleton().register("afterDropdownMenuExecute");const IT="dropdownMenu",PT="changeType",DT=IT;var HT=new WeakMap,OT=new WeakSet;class AT extends MC{static get PLUGIN_KEY(){return IT}static get PLUGIN_PRIORITY(){return 230}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[dk,hk,Mx,mk,Mx,ck,Mx,pk,Mx,uk]}constructor(e){var t;super(e),RT(this,t=OT),t.add(this),TT(this,"commandExecutor",new lk(this.hot)),TT(this,"itemsFactory",null),TT(this,"menu",null),function(e,t){RT(e,t),t.set(e,!1)}(this,HT),this.hot.addHook("afterGetColHeader",((e,t)=>LT(OT,this,YT).call(this,e,t)))}isEnabled(){return this.hot.getSettings()[IT]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new xk(this.hot,AT.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LT(OT,e,$T).call(e,...n)})),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LT(OT,e,BT).call(e,...n)}));const t=this.hot.getSettings()[IT],n={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady((()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",n),this.itemsFactory.setPredefinedItems(n.items);const r=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new eR(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootDocument.body}),this.hot.runHooks("beforeDropdownMenuSetItems",r),this.menu.setMenuItems(r),this.menu.addLocalHook("beforeOpen",(()=>LT(OT,this,FT).call(this))),this.menu.addLocalHook("afterOpen",(()=>LT(OT,this,zT).call(this))),this.menu.addLocalHook("afterSubmenuOpen",(e=>LT(OT,this,WT).call(this,e))),this.menu.addLocalHook("afterClose",(()=>LT(OT,this,VT).call(this))),this.menu.addLocalHook("executeCommand",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.executeCommand.call(e,...n)})),xs(r,(e=>this.commandExecutor.registerCommand(e.key,e)))}))}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),n=Ex(this.menu.container,this.hot.rootDocument),r=this.hot.getCell(-1,t.col,!0).querySelector(`.${PT}`),o=r.getBoundingClientRect();this.open({left:o.left+n.left,top:o.top+r.offsetHeight+n.top},{left:o.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:DT},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:DT}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(DT)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",(e=>LT(OT,this,jT).call(this,e)))}open(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),ta(n,((e,t)=>{this.menu.setOffset(t,e)})),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.commandExecutor.execute(e,...n)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function NT(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function jT(e){if(Oi(e.target,PT)){const t=Ex(this.menu.container,this.hot.rootDocument),n=e.target.getBoundingClientRect();e.stopPropagation(),ET(HT,this,!1),this.open({left:n.left+t.left,top:n.top+e.target.offsetHeight+t.top},{left:n.width,right:0,above:0,below:3})}}function YT(e,t){const n=t.parentNode;if(!n)return;const r=n.parentNode.childNodes,o=Array.prototype.indexOf.call(r,n);if(e<0||o!==r.length-1)return;const i=t.querySelector(`.${PT}`);if(this.enabled&&i)return;if(!this.enabled)return void(i&&i.parentNode.removeChild(i));const s=this.hot.rootDocument.createElement("button");s.className=PT,s.type="button",s.tabIndex=-1,this.hot.getSettings().ariaTags&&(ji(s,[["aria-hidden","true"],gi(" ")]),ji(t,[bi("menu")])),s.onclick=function(){return!1},t.firstChild.insertBefore(s,t.firstChild.firstChild)}function FT(){this.hot.runHooks("beforeDropdownMenuShow",this)}function zT(){this.hot.runHooks("afterDropdownMenuShow",this),LT(OT,this,NT).call(this,this.menu)}function WT(e){LT(OT,this,NT).call(this,e)}function VT(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function BT(e){return(t=HT).get(LT(t,this))?null:e;var t}function $T(e){Oi(e.target,PT)&&ET(HT,this,!0)}function UT(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}AT.SEPARATOR={name:Mx};const GT=class{constructor(e){UT(this,"hot",void 0),UT(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:n,endCol:r}=this._getDataRange(),o=this.options,i=[];return jl(e,n,(e=>{const n=[];!o.exportHiddenRows&&this._isHiddenRow(e)||(jl(t,r,(t=>{!o.exportHiddenColumns&&this._isHiddenColumn(t)||n.push(this.hot.getDataAtCell(e,t))})),i.push(n))})),i}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:n}=this._getDataRange(),r=this.hot.getRowHeader();jl(t,n,(t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(r[t])}))}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:n}=this._getDataRange(),r=this.hot.getColHeader();jl(t,n,(t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(r[t])}))}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[n=0,r=0,o=t,i=e]=this.options.range;return n=Math.max(n,0),r=Math.max(r,0),o=Math.min(o,t),i=Math.min(i,e),{startRow:n,startCol:r,endRow:o,endCol:i}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}};function KT(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class qT{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){KT(this,"dataProvider",void 0),KT(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=Xs(this.constructor.DEFAULT_OPTIONS);const n=new Date;return t=Gs(Xs(qT.DEFAULT_OPTIONS),t),t=Gs(t,e),t.filename=hi(t.filename,{YYYY:n.getFullYear(),MM:`${n.getMonth()+1}`.padStart(2,"0"),DD:`${n.getDate()}`.padStart(2,"0")}),t}}const XT=qT;function JT(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const QT=String.fromCharCode(13),ZT=String.fromCharCode(34),eE=String.fromCharCode(10),tE=String.fromCharCode(61),nE=String.fromCharCode(43),rE=String.fromCharCode(45),oE=String.fromCharCode(64),iE=String.fromCharCode(9);var sE=new WeakSet;function aE(e){return e.startsWith(tE)||e.startsWith(nE)||e.startsWith(rE)||e.startsWith(oE)||e.startsWith(iE)||e.startsWith(QT)?`'${e}`:e}function lE(e,t){return t.test(e)?`'${e}`:e}const uE="csv",cE={[uE]:class extends XT{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=sE),t.add(e)}static get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",sanitizeValues:!1}}export(){const e=this.options,t=this.dataProvider.getData();let n=this.dataProvider.getColumnHeaders();const r=n.length>0,o=this.dataProvider.getRowHeaders(),i=o.length>0;let s=e.bom?String.fromCharCode(65279):"";return r&&(n=Ms(n,(t=>this._escapeCell(t,{force:!0,sanitizeValue:e.sanitizeValues}))),i&&(s+=e.columnDelimiter),s+=n.join(e.columnDelimiter),s+=e.rowDelimiter),xs(t,((t,n)=>{n>0&&(s+=e.rowDelimiter),i&&(s+=this._escapeCell(o[n],{sanitizeValue:e.sanitizeValues}),s+=e.columnDelimiter);const r=t.map((t=>this._escapeCell(t,{sanitizeValue:e.sanitizeValues}))).join(e.columnDelimiter);s+=r})),s}_escapeCell(e){let{force:t=!1,sanitizeValue:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Es(e);return""===r||(n&&(t=!0),n instanceof RegExp?r=JT(sE,this,lE).call(this,r,n):"function"==typeof n?r=n(r):n&&(r=JT(sE,this,aE).call(this,r)),(t||r.indexOf(QT)>=0||r.indexOf(ZT)>=0||r.indexOf(eE)>=0||r.indexOf(this.options.columnDelimiter)>=0)&&(r=r.replace(new RegExp('"',"g"),'""'),r=`"${r}"`)),r}}};class dE extends MC{static get PLUGIN_KEY(){return"exportFile"}static get PLUGIN_PRIORITY(){return 240}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:n,rootWindow:r}=this.hot,o=this._createTypeFormatter(e,t),i=this._createBlob(o),s=r.URL||r.webkitURL,a=n.createElement("a"),l=`${o.options.filename}.${o.options.fileExtension}`;if(void 0!==a.download){const e=s.createObjectURL(i);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),n.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),n.body.removeChild(a),setTimeout((()=>{s.revokeObjectURL(e)}),100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(i,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!cE[e])throw new Error(`Export format type "${e}" is not supported.`);return function(e,t,n){return"function"==typeof cE[e]?new cE[e](t,n):null}(e,new GT(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}function hE(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pE{constructor(e,t){let{id:n,stateless:r=!0}=t;hE(this,"hot",void 0),hE(this,"id",void 0),hE(this,"elements",[]),hE(this,"hidden",!1),hE(this,"stateId",""),hE(this,"state",void 0),this.hot=e,this.id=n,this.stateId=`Filters.component.${this.id}`,this.state=r?null:this.hot.columnIndexMapper.registerMap(this.stateId,new jp)}getElements(){return this.elements}reset(){xs(this.elements,(e=>e.reset()))}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return null===this.hot||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),xs(this.elements,(e=>e.destroy())),this.state=null,this.elements=null,this.hot=null}}Js(pE,kp);const fE={};function mE(e,t){if(!fE[e])throw Error(`Filter condition "${e}" does not exist.`);const{condition:n,descriptor:r}=fE[e];let o=t;return r.inputValuesDecorator&&(o=r.inputValuesDecorator(o)),function(e){return n.apply(e.meta.instance,[].concat([e],[o]))}}function gE(e){if(!fE[e])throw Error(`Filter condition "${e}" does not exist.`);return fE[e].descriptor}function bE(e,t,n){n.key=e,fE[e]={condition:t,descriptor:n}}const yE="none";bE(yE,(function(){return!0}),{name:im,inputsCount:0,showOperators:!1});const wE="empty";bE(wE,(function(e){return Ps(e.value)}),{name:sm,inputsCount:0,showOperators:!0});const vE="not_empty";bE(vE,(function(e,t){return!mE(wE,t)(e)}),{name:am,inputsCount:0,showOperators:!0});const SE="eq";bE(SE,(function(e,t){let[n]=t;return Es(e.value).toLocaleLowerCase(e.meta.locale)===Es(n)}),{name:lm,inputsCount:1,showOperators:!0});const CE="neq";bE(CE,(function(e,t){return!mE(SE,t)(e)}),{name:um,inputsCount:1,showOperators:!0}),bE("gt",(function(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value>r}),{name:mm,inputsCount:1,showOperators:!0}),bE("gte",(function(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value>=r}),{name:gm,inputsCount:1,showOperators:!0}),bE("lt",(function(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value<r}),{name:bm,inputsCount:1,showOperators:!0}),bE("lte",(function(e,t){let[n]=t,r=n;return"numeric"===e.meta.type&&(r=parseFloat(r,10)),e.value<=r}),{name:ym,inputsCount:1,showOperators:!0});const _E="date_after";bE(_E,(function(e,t){let[n]=t;const r=ws(e.value,e.meta.dateFormat),o=ws(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}),{name:Sm,inputsCount:1,showOperators:!0});const ME="date_before";bE(ME,(function(e,t){let[n]=t;const r=ws(e.value,e.meta.dateFormat),o=ws(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}),{name:Cm,inputsCount:1,showOperators:!0});const xE="between";bE(xE,(function(e,t){let[n,r]=t,o=n,i=r;if("numeric"===e.meta.type){const e=parseFloat(o,10),t=parseFloat(i,10);o=Math.min(e,t),i=Math.max(e,t)}else if("date"===e.meta.type){const t=mE(ME,[i]),n=mE(_E,[o]);return t(e)&&n(e)}return e.value>=o&&e.value<=i}),{name:wm,inputsCount:2,showOperators:!0});const kE="not_between";bE(kE,(function(e,t){return!mE(xE,t)(e)}),{name:vm,inputsCount:2,showOperators:!0});const RE="begins_with";bE(RE,(function(e,t){let[n]=t;return Es(e.value).toLocaleLowerCase(e.meta.locale).startsWith(Es(n))}),{name:cm,inputsCount:1,showOperators:!0});const TE="ends_with";bE(TE,(function(e,t){let[n]=t;return Es(e.value).toLocaleLowerCase(e.meta.locale).endsWith(Es(n))}),{name:dm,inputsCount:1,showOperators:!0});const EE="contains";bE(EE,(function(e,t){let[n]=t;return Es(e.value).toLocaleLowerCase(e.meta.locale).indexOf(Es(n))>=0}),{name:hm,inputsCount:1,showOperators:!0});const LE="not_contains";bE(LE,(function(e,t){return!mE(EE,t)(e)}),{name:pm,inputsCount:1,showOperators:!0});const IE="date_tomorrow";bE(IE,(function(e){const t=ws(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(ws().subtract(-1,"days").startOf("day"),"d")}),{name:Mm,inputsCount:0});const PE="date_today";bE(PE,(function(e){const t=ws(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(ws().startOf("day"),"d")}),{name:_m,inputsCount:0});const DE="date_yesterday";bE(DE,(function(e){const t=ws(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame(ws().subtract(1,"days").startOf("day"),"d")}),{name:xm,inputsCount:0});const HE="numeric",OE="text",AE="date",NE={[HE]:[yE,Mx,wE,vE,Mx,SE,CE,Mx,"gt","gte","lt","lte",xE,kE],[OE]:[yE,Mx,wE,vE,Mx,SE,CE,Mx,RE,TE,Mx,EE,LE],[AE]:[yE,Mx,wE,vE,Mx,SE,CE,Mx,ME,_E,xE,Mx,IE,PE,DE]};function jE(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YE="built",FE="building",zE=["click","input","keydown","keypress","keyup","focus","blur","change"];class WE{static get DEFAULTS(){return Xs({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}constructor(e,t){jE(this,"hot",void 0),jE(this,"eventManager",new al(this)),jE(this,"options",void 0),jE(this,"_element",void 0),jE(this,"buildState",void 0),this.hot=e,this.options=Gs(WE.DEFAULTS,t),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName)}setValue(e){this.options.value=e,this.update()}getValue(){return this.options.value}get element(){return this.buildState===FE?this._element:this.buildState===YE?(this.update(),this._element):(this.buildState=FE,this.build(),this.buildState=YE,this._element)}isBuilt(){return this.buildState===YE}translateIfPossible(e){return"string"==typeof e&&e.startsWith(rm)?this.hot.getTranslatedPhrase(e):e}build(){const e=(e,t)=>{this.eventManager.addEventListener(e,t,(e=>this.runLocalHooks(t,e,this)))};if(this.buildState||(this.buildState=FE),this._element.setAttribute("data-hot-input",!0),void 0!==this.options.tabIndex&&this._element.setAttribute("tabindex",this.options.tabIndex),void 0!==this.options.role&&this._element.setAttribute("role",this.options.role),this.options.className&&Ai(this._element,this.options.className),this.options.children.length)xs(this.options.children,(e=>this._element.appendChild(e.element)));else if(this.options.wrapIt){const t=this.hot.rootDocument.createElement(this.options.tagName);t.setAttribute("data-hot-input",!0),ta(this.options,((e,n)=>{void 0!==t[n]&&"className"!==n&&"tagName"!==n&&"children"!==n&&(t[n]=this.translateIfPossible(e))})),this._element.appendChild(t),xs(zE,(n=>e(t,n)))}else xs(zE,(t=>e(this._element,t)))}update(){}reset(){this.options.value="",this.update()}show(){this.element.style.display=""}hide(){this.element.style.display="none"}focus(){}destroy(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}function VE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function BE(e,t){return e.get($E(e,t))}function $E(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Js(WE,kp);var UE=new WeakMap,GE=new WeakSet;class KE extends WE{static get DEFAULTS(){return Xs({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var n;super(e,Gs(KE.DEFAULTS,t)),VE(this,n=GE),n.add(this),function(e,t){VE(e,t),t.set(e,void 0)}(this,UE),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",(e=>$E(GE,this,qE).call(this,e)))}build(){super.build();const e=this.hot.rootDocument.createElement("div");!function(e,t,n){e.set($E(e,t),n)}(UE,this,this._element.firstChild),Ai(this._element,"htUIInput"),Ai(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(BE(UE,this).type=this.options.type,BE(UE,this).placeholder=this.translateIfPossible(this.options.placeholder),BE(UE,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&BE(UE,this).focus()}}function qE(e){this.options.value=e.target.value}function XE(e,t,n){JE(e,t),t.set(e,n)}function JE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function QE(e,t,n){return e.set(eL(e,t),n),n}function ZE(e,t){return e.get(eL(e,t))}function eL(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var tL=new WeakMap,nL=new WeakMap,rL=new WeakMap,oL=new WeakMap,iL=new WeakMap,sL=new WeakSet;class aL extends WE{static get DEFAULTS(){return Xs({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var n;super(e,Gs(aL.DEFAULTS,t)),JE(this,n=sL),n.add(this),XE(this,tL,null),XE(this,nL,[]),XE(this,rL,void 0),XE(this,oL,void 0),XE(this,iL,void 0),this.registerHooks()}getMenu(){return ZE(tL,this)}registerHooks(){this.addLocalHook("click",(()=>eL(sL,this,cL).call(this)))}setItems(e){QE(nL,this,this.translateNames(e)),ZE(tL,this)&&ZE(tL,this).setMenuItems(ZE(nL,this))}translateNames(e){return xs(e,(e=>{e.name=this.translateIfPossible(e.name)})),e}build(){super.build(),QE(tL,this,new eR(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),ZE(tL,this).setMenuItems(ZE(nL,this));const e=new WE(this.hot,{className:"htUISelectCaption"}),t=new WE(this.hot,{className:"htUISelectDropdown"});QE(rL,this,e),QE(oL,this,e.element),QE(iL,this,t),this.hot.getSettings().ariaTags&&(ji(t.element,[["aria-hidden","true"]]),ji(this._element,[["role","listbox"]])),xs([e,t],(e=>this._element.appendChild(e.element))),ZE(tL,this).addLocalHook("select",(e=>eL(sL,this,lL).call(this,e))),ZE(tL,this).addLocalHook("afterClose",(()=>eL(sL,this,uL).call(this))),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:ZE(tL,this).hot.getTranslatedPhrase(im),ZE(oL,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();ZE(tL,this)&&(ZE(tL,this).open(),ZE(tL,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),ZE(tL,this).getNavigator().toFirstItem(),ZE(tL,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){ZE(tL,this)&&ZE(tL,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){ZE(tL,this)&&(ZE(tL,this).destroy(),QE(tL,this,null)),ZE(rL,this)&&ZE(rL,this).destroy(),ZE(iL,this)&&ZE(iL,this).destroy(),super.destroy()}}function lL(e){e.name!==Mx&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function uL(){this.runLocalHooks("afterClose")}function cL(){this.openOptions()}function dL(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var pL=new WeakSet;class fL extends pE{constructor(e,t){var n,r;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=pL),r.add(n),dL(this,"name",""),dL(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new aL(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new KE(this.hot,{placeholder:Am})),this.elements.push(new KE(this.hot,{placeholder:Nm})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",(e=>hL(pL,this,mL).call(this,e))).addLocalHook("afterClose",(()=>this.runLocalHooks("afterClose"))).addLocalHook("tabKeydown",(e=>this.runLocalHooks("selectTabKeydown",e))),xs(this.getInputElements(),(e=>{e.addLocalHook("keydown",(e=>hL(pL,this,gL).call(this,e)))}))}setState(e){if(this.reset(),!e)return;const t=Xs(e.command);t.name.startsWith(om)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),xs(e.args,((e,n)=>{if(n>t.inputsCount-1)return!1;const r=this.getInputElement(n);r.setValue(e),r[t.inputsCount>n?"show":"hide"](),n||this.hot._registerTimeout((()=>r.focus()),10)}))}getState(){const e=this.getSelectElement().getValue()||gE(yE),t=[];return xs(this.getInputElements(),((n,r)=>{e.inputsCount>r&&t.push(n.getValue())})),{command:e,args:t}}updateState(e,t){const n=gE(e?e.name:yE);this.state.setValueAtIndex(t,{command:n,args:e?e.args:[]}),e||xs(this.getInputElements(),(e=>e.setValue(null)))}getSelectElement(){return this.elements.filter((e=>e instanceof aL))[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter((e=>e instanceof KE))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,r,o,i)=>{Ai(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&Ai(t.parentNode,"border");const s=this.hot.rootDocument.createElement("div");return Ai(s,"htFiltersMenuLabel"),s.textContent=i,t.appendChild(s),t.parentElement.hasAttribute("ghost-table")||xs(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[gE(yE)];if(null!==e){const{visualIndex:n}=e;t=function(e){const t=[];let n=e;return NE[n]||(n=OE),xs(NE[n],(e=>{let n;n=e===Mx?{name:Mx}:Xs(gE(e)),t.push(n)})),t}(this.hot.getDataType(0,n,this.hot.countRows(),n))}xs(this.getInputElements(),(e=>e.hide())),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function mL(e){xs(this.getInputElements(),((t,n)=>{t[e.inputsCount>n?"show":"hide"](),0===n&&this.hot._registerTimeout((()=>t.focus()),10)})),this.runLocalHooks("change",e)}function gL(e){Ma(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),xa(e))}const bL={};function yL(e,t,n){bL[e]={name:t,func:n}}const wL="conjunction";yL(wL,Tm,(function(e,t){return e.every((e=>e.func(t)))}));const vL="disjunction";yL(vL,Em,(function(e,t){return e.some((e=>e.func(t)))}));const SL="disjunctionWithExtraCondition";function CL(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function _L(e,t){return e.get(xL(e,t))}function ML(e,t,n){return e.set(xL(e,t),n),n}function xL(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}yL(SL,Em,(function(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((e=>e.func(t)))&&e[e.length-1].func(t)}));var kL=new WeakMap,RL=new WeakMap;class TL extends WE{static get DEFAULTS(){return Xs({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,Gs(TL.DEFAULTS,t)),CL(this,kL,void 0),CL(this,RL,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),ML(RL,this,e),ML(kL,this,this._element.firstChild),_L(kL,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(_L(RL,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&_L(kL,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(_L(kL,this).checked=e)}focus(){this.isBuilt()&&_L(kL,this).focus()}}var EL=new WeakSet;class LL extends pE{constructor(e,t){var n,r;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=EL),r.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.buildOperatorsElement()}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>(Ai(t.parentNode,"htFiltersMenuOperators"),xs(this.elements,(e=>t.appendChild(e.element))),t)}}buildOperatorsElement(){const e=[wL,vL];xs(e,(t=>{const n=new TL(this.hot,{name:"operator",label:{htmlFor:t,textContent:(r=t,bL[r].name)},value:t,checked:t===e[0],id:t});var r;n.addLocalHook("change",(e=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(EL,this,IL).call(this,e))),this.elements.push(n)}))}setChecked(e){if(this.elements.length<e)throw Error(Ts`Radio button with index ${e} doesn't exist.`);xs(this.elements,((t,n)=>{t.setChecked(n===e)}))}getActiveOperationId(){const e=this.elements.find((e=>e instanceof TL&&e.isChecked()));return e?e.getValue():wL}getState(){return this.getActiveOperationId()}setState(e){this.reset(),e&&this.getActiveOperationId()!==e&&xs(this.elements,(t=>{t.setChecked(t.getValue()===e)}))}updateState(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wL;t===SL&&(t=vL),this.state.setValueAtIndex(e,t)}reset(){this.setChecked(0)}}function IL(e){this.setState(e.target.value)}function PL(e,t){let n=e;return""===n&&(n=`(${t})`),n}function DL(e){const t=new Set(e);return function(e){return t.has(e)}}function HL(e){return null==e?"":e}function OL(e){return Array.from(new Set(e)).map((e=>HL(e))).sort(((e,t)=>"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1))}function AL(e,t,n,r){const o=[],i=e===t;let s;return i||(s=DL(t)),e.forEach((e=>{let t=!1;(i||s(e))&&(t=!0);const a={checked:t,value:e,visualValue:PL(e,n)};r&&r(a),o.push(a)})),o}function NL(e,t){return e.get(jL(e,t))}function jL(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ua||(ua="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1)}();var YL=new WeakMap;class FL extends WE{static get DEFAULTS(){return Xs({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){var n,r,o;super(e,Gs(FL.DEFAULTS,t)),o=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=YL),r.set(n,o)}build(){super.build(),function(e,t,n){e.set(jL(e,t),n)}(YL,this,this._element.firstChild)}update(){this.isBuilt()&&(NL(YL,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&NL(YL,this).focus()}activate(){NL(YL,this).click()}}function zL(e,t,n){WL(e,t),t.set(e,n)}function WL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function VL(e,t){return e.get($L(e,t))}function BL(e,t,n){return e.set($L(e,t),n),n}function $L(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const UL="multipleSelect.itemBox";var GL=new WeakMap,KL=new WeakMap,qL=new WeakMap,XL=new WeakMap,JL=new WeakMap,QL=new WeakMap,ZL=new WeakSet;class eI extends WE{static get DEFAULTS(){return Xs({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var n;super(e,Gs(eI.DEFAULTS,t)),WL(this,n=ZL),n.add(this),zL(this,GL,[]),zL(this,KL,void 0),zL(this,qL,void 0),zL(this,XL,void 0),zL(this,JL,void 0),zL(this,QL,void 0),BL(XL,this,new KE(this.hot,{placeholder:Om,className:"htUIMultipleSelectSearch"})),BL(JL,this,new FL(this.hot,{textContent:Im,className:"htUISelectAll"})),BL(QL,this,new FL(this.hot,{textContent:Pm,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return VL(KL,this)}registerHooks(){VL(XL,this).addLocalHook("keydown",(e=>$L(ZL,this,nI).call(this,e))),VL(XL,this).addLocalHook("input",(e=>$L(ZL,this,tI).call(this,e))),VL(JL,this).addLocalHook("click",(e=>$L(ZL,this,rI).call(this,e))),VL(QL,this).addLocalHook("click",(e=>$L(ZL,this,oI).call(this,e)))}setItems(e){var t;BL(GL,this,e),null===(t=VL(KL,this))||void 0===t||t.loadData(VL(GL,this))}setLocale(e){BL(qL,this,e)}getLocale(){return VL(qL,this)}getItems(){return[...VL(GL,this)]}getValue(){return function(e){const t=[];return e.forEach((e=>{e.checked&&t.push(e.value)})),t}(VL(GL,this))}getSearchInputElement(){return VL(XL,this)}getSelectAllElement(){return VL(JL,this)}getClearAllElement(){return VL(QL,this)}isSelectedAllValues(){return VL(GL,this).length===this.getValue().length}build(){super.build();const{rootDocument:e}=this.hot,t=e.createElement("div"),n=new WE(this.hot,{className:"htUISelectionControls",children:[VL(JL,this),VL(QL,this)]});this._element.appendChild(VL(XL,this).element),this._element.appendChild(n.element),this._element.appendChild(t);const r=t=>{var n;if(!this._element)return;null===(n=VL(KL,this))||void 0===n||n.destroy(),Ai(t,"htUIMultipleSelectHot"),BL(KL,this,new this.hot.constructor(t,{data:VL(GL,this),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,n,r,o,i)=>{e.title=i.instance.getDataAtRowProp(t,i.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{VL(KL,this).listen()},modifyColWidth:t=>{const n=VL(KL,this).container.scrollWidth-ls(e);return void 0!==t&&t<n?n:t},maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),VL(KL,this).init(),this.hot.addHook("afterSetTheme",((e,t)=>{t||VL(KL,this).useTheme(e)}));const r=VL(KL,this).getShortcutManager().getContext("grid");r.removeShortcutsByKeys(["Tab"]),r.removeShortcutsByKeys(["Shift","Tab"]),r.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:UL}),r.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{VL(KL,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:UL})};r(t),this.hot._registerTimeout((()=>r(t)),100)}focus(){this.isBuilt()&&VL(KL,this).listen()}reset(){VL(XL,this).reset(),VL(JL,this).reset(),VL(QL,this).reset()}update(){this.isBuilt()&&(VL(KL,this).loadData(function(e,t){const n=DL(t);return e.map((e=>(e.checked=n(e.value),e)))}(VL(GL,this),this.options.value)),super.update())}destroy(){var e;null===(e=VL(KL,this))||void 0===e||e.destroy(),VL(XL,this).destroy(),VL(QL,this).destroy(),VL(JL,this).destroy(),BL(XL,this,null),BL(QL,this,null),BL(JL,this,null),BL(KL,this,null),BL(GL,this,null),super.destroy()}}function tI(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());let n;n=""===t?[...VL(GL,this)]:VL(GL,this).filter((e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0)),VL(KL,this).loadData(n)}function nI(e){this.runLocalHooks("keydown",e,this),Bs(Ma,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),xa(e),VL(KL,this).listen(),VL(KL,this).selectCell(0,0))}function rI(e){const t=[];e.preventDefault(),VL(KL,this).getSourceData().forEach(((e,n)=>{e.checked=!0,t.push(Sp(e,n)[0])})),VL(KL,this).setSourceDataAtCell(t)}function oI(e){const t=[];e.preventDefault(),VL(KL,this).getSourceData().forEach(((e,n)=>{e.checked=!1,t.push(Sp(e,n)[0])})),VL(KL,this).setSourceDataAtCell(t)}const iI="by_value";function sI(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}bE(iI,(function(e,t){let[n]=t;return n(e.value)}),{name:"By value",inputsCount:0,inputValuesDecorator(e){let[t]=e;return[DL(t)]},showOperators:!1});var aI,lI=new WeakSet;class uI extends pE{constructor(e,t){var n,r;super(e,{id:t.id,stateless:!1}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=lI),r.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.elements.push(new eI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",(e=>sI(lI,this,cI).call(this,e))).addLocalHook("listTabKeydown",(e=>this.runLocalHooks("listTabKeydown",e))),this.hot.addHook("modifyFiltersMultiSelectValue",((e,t)=>sI(lI,this,hI).call(this,e,t)))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===iI){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?yE:iI},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,n,r,o,i)=>{const[s]=_s(n,(e=>e.name===iI)),a={},l=this.hot.getTranslatedPhrase(Lm);if(s){const n=o(t,i),u=Ms(n,(e=>e.value)),c=new Map(n.map((e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)]))),d=OL(u);r&&(s.args[0]=r);const h=[],p=AL(d,s.args[0],l,(e=>{e.checked&&h.push(e.value),sI(lI,this,dI).call(this,e,c)})),f=e.editedConditionStack.column;a.locale=this.hot.getCellMeta(0,f).locale,a.args=[h],a.command=gE(iI),a.itemsSnapshot=p}else a.args=[],a.command=gE(yE);this.state.setValueAtIndex(t,a)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter((e=>e instanceof eI))[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,n,r,o,i)=>{Ai(t.parentNode,"htFiltersMenuValue");const s=this.hot.rootDocument.createElement("div");return Ai(s,"htFiltersMenuLabel"),s.textContent=i,t.appendChild(s),t.parentElement.hasAttribute("ghost-table")||xs(this.elements,(e=>t.appendChild(e.element))),t}}}reset(){const e=this.hot.getTranslatedPhrase(Lm),t=this._getColumnVisibleValues(),n=t.map((e=>e.value)),r=new Map(t.map((e=>[e.value,e.meta]))),o=OL(n),i=AL(o,o,e,(e=>{sI(lI,this,dI).call(this,e,r)}));this.getMultipleSelectElement().setItems(i),super.reset(),this.getMultipleSelectElement().setValue(o);const s=this.hot.getPlugin("filters").getSelectedColumn();null!==s&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,s.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:Ms(this.hot.getDataAtCol(e.visualIndex),((t,n)=>({value:HL(t),meta:this.hot.getCellMeta(n,e.visualIndex)})))}}function cI(e){Ma(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),xa(e))}function dI(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function hI(e,t){return"numeric"===t.type?US(e,t):e}var pI=new WeakSet;class fI extends pE{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){var n,r;super(e,{id:t.id,stateless:!0}),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=pI),r.add(n),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"name",""),this.name=t.name,this.elements.push(new KE(this.hot,{type:"button",value:Dm,className:"htUIButton htUIButtonOK",identifier:fI.BUTTON_OK})),this.elements.push(new KE(this.hot,{type:"button",value:Hm,className:"htUIButton htUIButtonCancel",identifier:fI.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){xs(this.elements,(e=>{e.addLocalHook("click",((e,t)=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(pI,this,mI).call(this,e,t)))}))}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>(Ai(t.parentNode,"htFiltersMenuActionBar"),xs(this.elements,(e=>t.appendChild(e.element))),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function mI(e,t){t.options.identifier===aI.BUTTON_OK?this.accept():this.cancel()}function gI(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}aI=fI;const bI="ConditionCollection.filteringStates";class yI{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];gI(this,"hot",void 0),gI(this,"isMapRegistrable",void 0),gI(this,"filteringStates",new jp),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(bI,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var n;const r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}isMatchInConditions(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wL;return!e.length||function(e){if(!bL[e])throw Error(`Operation with id "${e}" does not exist.`);const t=bL[e].func;return function(e,n){return t(e,n)}}(n)(e,t)}addCondition(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wL,r=arguments.length>3?arguments[3]:void 0;const o=this.hot.getCellMeta(0,e).locale,i=t.args.map((e=>"string"==typeof e?e.toLocaleLowerCase(o):e)),s=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const a=this.getOperation(e);if(a){if(a!==n)throw Error(Ts`The column of index ${e} has been already applied with a \`${a}\`\x20
- filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
- Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
- use it consequently for a particular column).`)}else if(Is(bL[n]))throw new Error(Ts`Unexpected operation named \`${n}\`. Possible ones are\x20
- \`disjunction\` and \`conjunction\`.`);const l=this.getConditions(e);0===l.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:s,args:i,func:mE(s,i)}]},r):l.push({name:s,args:i,func:mE(s,i)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map((e=>{let[t]=e;return t}))}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce(((e,t)=>{let[n,{operation:r,conditions:o}]=t;return e.push({column:n,operation:r,conditions:o.map((e=>{let{name:t,args:n}=e;return{name:t,args:[...n]}}))}),e}),[])}importAllConditions(e){this.clean(),e.forEach((e=>{e.conditions.forEach((t=>this.addCondition(e.column,t)))}))}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const n=this.getConditions(e);return t?n.some((e=>e.name===t)):n.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(bI),this.filteringStates=null,this.clearLocalHooks()}}Js(yI,kp);const wI=yI;function vI(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SI=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>[];vI(this,"conditionCollection",void 0),vI(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=t}filter(){let e=[];return xs(this.conditionCollection.getFilteredColumns(),((t,n)=>{let r=this.columnDataFactory(t);n&&(r=this._getIntersectData(r,e)),e=this.filterByColumn(t,r)})),e}filterByColumn(e){const t=[];return xs(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],(n=>{void 0!==n&&this.conditionCollection.isMatch(n,e)&&t.push(n)})),t}_getIntersectData(e,t){const n=[];return xs(t,(t=>{const r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}};function CI(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _I(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var MI=new WeakSet;class xI{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];var r,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,o=MI),o.add(r),CI(this,"hot",void 0),CI(this,"conditionCollection",void 0),CI(this,"columnDataFactory",void 0),CI(this,"changes",[]),CI(this,"grouping",!1),CI(this,"latestEditedColumnPosition",-1),CI(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=n,this.conditionCollection.addLocalHook("beforeRemove",(e=>_I(MI,this,kI).call(this,e))),this.conditionCollection.addLocalHook("afterRemove",(e=>this.updateStatesAtColumn(e))),this.conditionCollection.addLocalHook("afterAdd",(e=>this.updateStatesAtColumn(e))),this.conditionCollection.addLocalHook("beforeClean",(()=>_I(MI,this,RI).call(this))),this.conditionCollection.addLocalHook("afterClean",(()=>_I(MI,this,TI).call(this)))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,xs(this.changes,(e=>{this.updateStatesAtColumn(e)})),this.changes.length=0}updateStatesAtColumn(e,t){var n=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const r=this.conditionCollection.exportAllConditions();let o=this.conditionCollection.getColumnStackPosition(e);-1===o&&(o=this.latestEditedColumnPosition);const i=r.slice(0,o),s=r.slice(o);s.length&&s[0].column===e&&s.shift();const a=function(e){const t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];const a=r.concat(i);let l;return l=a.length>=t?e.apply(this,a):n(a),l}}([])}((function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const o=new wI(n.hot,!1),i=[].concat(e,r);o.importAllConditions(i);const s=n.columnDataFactory(t);let a;a=o.isEmpty()?s:new SI(o,(e=>n.columnDataFactory(e))).filter(),a=Ms(a,(e=>e.meta.visualRow));const l=DL(a);return o.destroy(),_s(s,(e=>l(e.meta.visualRow)))}))(i),l=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:l},dependentConditionStacks:s,filteredRowsFactory:a,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),ta(this,((e,t)=>{this[t]=null}))}}function kI(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function RI(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function TI(){xs(this.latestOrderStack,(e=>{this.updateStatesAtColumn(e)}))}Js(xI,kp);const EI=xI,LI="filters";function II(e,t,n){PI(e,t),t.set(e,n)}function PI(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function DI(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e,t,n){return e.set(AI(e,t),n),n}function OI(e,t){return e.get(AI(e,t))}function AI(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const NI="filters",jI=NI;var YI=new WeakMap,FI=new WeakMap,zI=new WeakMap,WI=new WeakSet;class VI extends MC{static get PLUGIN_KEY(){return NI}static get PLUGIN_PRIORITY(){return 250}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,n;super(e),t=this,PI(this,n=WI),n.add(this),DI(this,"dropdownMenuPlugin",null),DI(this,"conditionCollection",null),DI(this,"conditionUpdateObserver",null),DI(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),DI(this,"filtersRowsMap",null),II(this,YI,void 0),II(this,FI,new WeakSet),II(this,zI,[]),this.hot.addHook("afterGetColHeader",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AI(WI,t,QI).call(t,...n)}))}isEnabled(){return!!this.hot.getSettings()[NI]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new Yp),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,n=t&&t.uiContainer||this.hot.rootDocument.body,r=e=>(e.addLocalHook("accept",(()=>AI(WI,this,qI).call(this,"accept"))),e.addLocalHook("cancel",(()=>AI(WI,this,qI).call(this,"cancel"))),e.addLocalHook("change",(t=>AI(WI,this,XI).call(this,e,t))),e),o=()=>`${this.hot.getTranslatedPhrase(km)}:`;if(!this.components.get("filter_by_condition")){const e=new fL(this.hot,{id:"filter_by_condition",name:o,addSeparator:!1,menuContainer:n});e.addLocalHook("afterClose",(()=>AI(WI,this,JI).call(this))),this.components.set("filter_by_condition",r(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new LL(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new fL(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:n});e.addLocalHook("afterClose",(()=>AI(WI,this,JI).call(this))),this.components.set("filter_by_condition2",r(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",r(new uI(this.hot,{id:"filter_by_value",name:()=>`${this.hot.getTranslatedPhrase(Rm)}:`}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",r(new fI(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new wI(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new EI(this.hot,this.conditionCollection,(e=>this.getDataMapAtColumn(e))),this.conditionUpdateObserver.addLocalHook("update",(e=>AI(WI,this,ZI).call(this,e)))),this.components.forEach((e=>e.show())),this.addHook("afterDropdownMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AI(WI,e,KI).call(e,...n)})),this.addHook("beforeDropdownMenuShow",(()=>AI(WI,this,GI).call(this))),this.addHook("afterDropdownMenuShow",(()=>AI(WI,this,$I).call(this))),this.addHook("afterDropdownMenuHide",(()=>AI(WI,this,UI).call(this))),this.addHook("afterChange",(e=>AI(WI,this,BI).call(this,e))),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!OI(YI,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=OI(YI,this).getMenu(),t=e.getNavigator(),n=OI(YI,this).getLastMenuPage();e.focus(),n>0?t.setCurrentPage(n):t.toFirstItem()}},...Array.from(this.components).map((e=>{let[,t]=e;return t.getElements()})).flat()];HI(YI,this,function(e,t){let n,r=-1;const o=(i=t,jk({initialPage:0,size:()=>i.length,onItemSelect:(e,t)=>{const n=i[e];return n instanceof eI?t:!(n.element&&!$i(n.element))&&void n.focus()}}));var i;const s=e=>()=>{n.isOpened()&&n.getKeyboardShortcutsCtrl().listen(LI),o.setCurrentPage(t.indexOf(e))};function a(e){const i=n.getKeyboardShortcutsCtrl(),s=e.getKeyboardShortcutsCtrl();o.clear(),s.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],forwardToContext:i.getContext(LI),callback:()=>{e.isSubMenu()&&e.close(),i.listen(LI)}}]),e.isSubMenu()||i.addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{const t=n.getNavigator();t.getCurrentPage()>-1&&(r=t.getCurrentPage()),t.clear(),e.shiftKey?o.toPreviousItem():o.toNextItem()}},{keys:[["Escape"]],callback:()=>{n.close()}},{keys:[["Enter"],["Space"]],preventDefault:!1,callback:e=>{const n=t[o.getCurrentPage()];n instanceof aL&&(n.openOptions(),e.preventDefault()),n instanceof FL&&(n.activate(),e.preventDefault()),n instanceof WE||e.preventDefault()}}],LI)}function l(e){e.addLocalHook("afterSelectionChange",(e=>{e.key.startsWith("filter_")||o.clear()})),e.addLocalHook("afterSubmenuOpen",a),e.addLocalHook("afterOpen",a),n=e}return t.forEach((e=>{e instanceof WE&&(e.addLocalHook("click",s(e)),e.addLocalHook("focus",s(e)),e.addLocalHook("afterClose",s(e)))})),l(e),{...o,listen:function(){n.focus(),n.getKeyboardShortcutsCtrl().listen(LI)},setMenu:l,getMenu:function(){return n},getLastMenuPage:function(){return r}}}(this.dropdownMenuPlugin.menu,e));const t=e=>{OI(YI,this).listen(),e.preventDefault(),Ma(e.keyCode,"TAB")&&(e.shiftKey?OI(YI,this).toPreviousItem():OI(YI,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach(((e,t)=>{e.destroy(),this.components.set(t,null)})),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName)),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:jI})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(jI)}addCondition(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wL;const o=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(o,{command:{key:t},args:n},r)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),n=!this.conditionCollection.isEmpty();let r=[];const o=this.exportConditions(),i=this.hot.runHooks("beforeFilter",o,OI(zI,this));if(!1!==i&&n){const n=[];this.hot.batchExecution((()=>{this.filtersRowsMap.clear(),r=Ms(t.filter(),(e=>e.meta.visualRow));const e=DL(r);jl(this.hot.countSourceRows()-1,(t=>{e(t)||n.push(t)})),xs(n,(e=>{this.filtersRowsMap.setValueAtIndex(e,!0)}))}),!0),e||r.length||this.hot.deselectCell(),HI(zI,this,this.exportConditions())}else!1===i||n?this.importConditions(OI(zI,this)):(HI(zI,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeLast().highlight.col),!1!==i&&(this.hot.runHooks("afterFilter",o),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),n=[];return xs(this.hot.getSourceDataAtCol(t),((e,r)=>{var o;const{row:i,col:s,visualCol:a,visualRow:l,type:u,instance:c,dateFormat:d,locale:h}=this.hot.getCellMeta(r,t),p=null!==(o=this.hot.getDataAtCell(this.hot.toVisualRow(r),t))&&void 0!==o?o:e;n.push({meta:{row:i,col:s,visualCol:a,visualRow:l,type:u,instance:c,dateFormat:d,locale:h},value:HL(p)})})),n}updateValueComponentCondition(e){const t=OL(this.hot.getDataAtCol(e));this.conditionUpdateObserver.updateStatesAtColumn(e,t)}restoreComponents(e){var t;const n=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach((e=>{e.isHidden()||e.restoreState(n)})),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,n,r){let o=e;return o===vL&&t.command.key!==yE&&n.command.key!==yE&&r.command.key!==yE?o=SL:r.command.key!==yE&&(t.command.key!==yE&&n.command.key!==yE||(o=wL)),o}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),n=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...n):this.hideComponents(...n)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new SI(e,(e=>this.getDataMapAtColumn(e)))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xs(r,(n=>{xs(t.menuItems,((t,r)=>{t.key===n.getMenuItemDescriptor().key&&e.push(r)}))})),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,n=t.getPlugin("hiddenRows");for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const s=this.getIndexesOfComponents(...o);e?n.showRows(s):n.hideRows(s),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach(((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))})),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function BI(e){e&&xs(e,(e=>{const[,t]=e,n=this.hot.propToCol(t);this.conditionCollection.hasConditions(n)&&this.updateValueComponentCondition(n)}))}function $I(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function UI(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function GI(){const e=this.dropdownMenuPlugin.menu;OI(FI,this).has(e)||OI(YI,this).setMenu(e),OI(FI,this).add(e)}function KI(e){e.items.push({name:Mx}),this.components.forEach((t=>{e.items.push(t.getMenuItemDescriptor())}))}function qI(e){var t;if("accept"===e){const e=this.getSelectedColumn();var n;if(null===e)return void(null===(n=this.dropdownMenuPlugin)||void 0===n||n.close());const{physicalIndex:t}=e,r=this.components.get("filter_by_condition").getState(),o=this.components.get("filter_by_condition2").getState(),i=this.components.get("filter_by_value").getState(),s=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),r,o,i);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),r.command.key!==yE&&(this.conditionCollection.addCondition(t,r,s,a),o.command.key!==yE&&this.conditionCollection.addCondition(t,o,s,a)),i.command.key!==yE&&this.conditionCollection.addCondition(t,i,s,a),this.conditionUpdateObserver.flush(),this.components.forEach((e=>e.saveState(t))),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function XI(e,t){const n=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==fL||t.inputsCount||this.setListeningDropdownMenu(),n.updateMenuDimensions()}function JI(){this.setListeningDropdownMenu()}function QI(e,t,n){const r=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(r)&&n===this.hot.view.getColumnHeadersCount()-1?Ai(t,"htFiltersActive"):Ni(t,"htFiltersActive")}function ZI(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:n,column:r},conditionArgsChange:o}=e;Array.isArray(o)&&HI(zI,this,OI(zI,this).map((e=>(e.column===r&&n.length>0&&e.conditions.forEach((e=>{"by_value"===e.name&&(e.args=[[...o]])})),e))));const i=n.filter((e=>e.name===iI)),s=n.filter((e=>e.name!==iI));if(i.length>=2||s.length>=3)Ea(Ts`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
- The overall amount of conditions exceed the capability of the dropdown menu.\x20
- For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(r);this.components.get("filter_by_condition").updateState(s[0],r),this.components.get("filter_by_condition2").updateState(s[1],r),this.components.get("filter_operators").updateState(t,r),this.components.get("filter_by_value").updateState(e)}}const eP="internal-use-in-handsontable",tP={licenseKey:eP,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function nP(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[BP])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function rP(e){return Object.keys(e).reduce(((t,n)=>("hyperformula"!==n&&(t[n]=e[n]),t)),{})}function oP(){const e="engine_relationship",t=qa(BP);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function iP(){const e="shared_engine_usage",t=qa(BP);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function sP(e){var t;const n=oP(),r=0===n.size?[]:Array.from(null!==(t=n.get(e))&&void 0!==t?t:[]);return new Map(r.map((e=>[e.getPlugin("formulas").sheetId,e])))}function aP(e,t){if(e){const n=oP(),r=n.get(e),o=iP(),i=o.get(e);r&&r.includes(t)&&(r.splice(r.indexOf(t),1),0===r.length&&n.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(o.delete(e),e.destroy()))}}const lP="DD/MM/YYYY";function uP(e,t){return"string"==typeof e&&"date"===t}function cP(e,t){return ws(e,t,!0).isValid()}function dP(e,t){return ws(e,t,!0).format(lP)}function hP(e,t){const n=new Date(Date.UTC(0,0,e+-1));return ws(n).format(t)}function pP(e,t,n){const r=function(e,t){const n=[];return e.forEach((e=>{const r={from:e,to:t};n.forEach((e=>{const t=e.from>e.to,n=e.to<=r.from;e.from>r.from&&n&&t&&(r.from+=1)})),r.from>=t&&(t+=1),n.push(r)})),n}(e,function(e,t,n){const r=Array.from(Array(n).keys()).filter((t=>!1===e.includes(t)));var o;return 0===t?null!==(o=r[t])&&void 0!==o?o:0:r[t-1]+1}(e,t,n));return function(e){return e.forEach(((t,n)=>{e.slice(n+1).forEach((e=>{const n=e.from<e.to;e.from>t.from&&n&&(e.from-=1)}))})),e}(r)}function fP(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function mP(e,t){return e.get(bP(e,t))}function gP(e,t,n){return e.set(bP(e,t),n),n}function bP(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var yP=new WeakMap,wP=new WeakMap,vP=new WeakMap,SP=new WeakMap,CP=new WeakMap,_P=new WeakMap,MP=new WeakMap;const xP=class{constructor(e,t,n){fP(this,yP,void 0),fP(this,wP,void 0),fP(this,vP,void 0),fP(this,SP,[]),fP(this,CP,[]),fP(this,_P,void 0),fP(this,MP,[]),gP(yP,this,e),gP(wP,this,t),gP(vP,this,n)}setRemovedHfIndexes(e){return gP(MP,this,e.map((e=>{const t=mP(wP,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)}))),mP(MP,this)}getRemovedHfIndexes(){return mP(MP,this)}getHfIndexFromVisualIndex(e){const t=mP(wP,this).getIndexesSequence(),n=mP(wP,this).getNotTrimmedIndexes();return t.indexOf(n[e],e)}syncMoves(e){const t=`move${ui(mP(yP,this))}s`;mP(vP,this).getEngine().batch((()=>{e.forEach((e=>{const n=e.from!==e.to,r=e.from+1!==e.to;n&&r&&mP(vP,this).getEngine()[t](mP(vP,this).getSheetId(),e.from,1,e.to)}))}))}storeMovesInformation(e,t,n){!1!==n&&(gP(CP,this,e.map((e=>this.getHfIndexFromVisualIndex(e)))),gP(_P,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(mP(vP,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const n=pP(mP(CP,this),mP(_P,this),mP(wP,this).getNumberOfIndexes());null===mP(vP,this).getSheetId()?mP(vP,this).getPostponeAction((()=>this.syncMoves(n))):this.syncMoves(n)}getIndexesChangeSyncMethod(){const e=`set${ui(mP(yP,this))}Order`;return t=>{if(mP(vP,this).isPerformingUndoRedo())return;const n=mP(wP,this).getIndexesSequence();if("update"===t&&n.length>0){const t=mP(SP,this).map((e=>n.indexOf(e))),r=mP(vP,this).getEngine().getSheetDimensions(mP(vP,this).getSheetId());let o;o="row"===mP(yP,this)?r.height:r.width;for(let e=t.length;e<o;e+=1)t.push(e);mP(vP,this).getEngine()[e](mP(vP,this).getSheetId(),t)}gP(SP,this,n)}}init(){gP(SP,this,mP(wP,this).getIndexesSequence())}};function kP(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function RP(e,t){return e.get(EP(e,t))}function TP(e,t,n){return e.set(EP(e,t),n),n}function EP(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var LP=new WeakMap,IP=new WeakMap,PP=new WeakMap,DP=new WeakMap,HP=new WeakMap,OP=new WeakMap,AP=new WeakMap;const NP=class{constructor(e,t,n){kP(this,LP,void 0),kP(this,IP,void 0),kP(this,PP,void 0),kP(this,DP,!1),kP(this,HP,!1),kP(this,OP,null),kP(this,AP,null),TP(LP,this,new xP("row",e,this)),TP(IP,this,new xP("column",t,this)),TP(PP,this,n)}getForAxis(e){return RP("row"===e?LP:IP,this)}setPerformUndo(e){TP(DP,this,e)}setPerformRedo(e){TP(HP,this,e)}isPerformingUndoRedo(){return RP(DP,this)||RP(HP,this)}getSheetId(){return RP(AP,this)}getEngine(){return RP(OP,this)}getPostponeAction(){return RP(PP,this)}setupSyncEndpoint(e,t){TP(OP,this,e),TP(AP,this,t),RP(LP,this).init(),RP(IP,this).init()}};function jP(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YP(e,t,n){FP(e,t),t.set(e,n)}function FP(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zP(e,t,n){return e.set(VP(e,t),n),n}function WP(e,t){return e.get(VP(e,t))}function VP(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const BP="formulas",$P=["maxRows","maxColumns","language"];Ua.getSingleton().register("afterNamedExpressionAdded"),Ua.getSingleton().register("afterNamedExpressionRemoved"),Ua.getSingleton().register("afterSheetAdded"),Ua.getSingleton().register("afterSheetRemoved"),Ua.getSingleton().register("afterSheetRenamed"),Ua.getSingleton().register("afterFormulasValuesUpdate");const UP=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var GP=new WeakMap,KP=new WeakMap,qP=new WeakMap,XP=new WeakSet;class JP extends MC{constructor(){var e,t;super(...arguments),e=this,FP(this,t=XP),t.add(this),YP(this,GP,!1),YP(this,KP,!1),YP(this,qP,[["valuesUpdated",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,bD).call(e,...n)}],["namedExpressionAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,yD).call(e,...n)}],["namedExpressionRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,wD).call(e,...n)}],["sheetAdded",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,vD).call(e,...n)}],["sheetRenamed",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,SD).call(e,...n)}],["sheetRemoved",function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return VP(XP,e,CD).call(e,...n)}]]),jP(this,"staticRegister",qa("formulas")),jP(this,"engine",null),jP(this,"sheetId",null),jP(this,"sheetName",null),jP(this,"indexSyncer",null),jP(this,"rowAxisSyncer",null),jP(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return BP}static get PLUGIN_PRIORITY(){return 260}static get SETTING_KEYS(){return[BP,...$P]}isEnabled(){return!!this.hot.getSettings()[BP]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=function(e){const t=e.getSettings(),n=t[BP],r=null==n?void 0:n.engine;if(!0===n)return null;if(Is(r))return null;var o;if("function"==typeof r.hyperformula||"function"==typeof r)return function(e,t,n){const r=t[BP],o=function(e){var t;const n=e[BP],r=rP(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=nP(e);return{...tP,...r,...o}}(t),i=oP(),s=iP();(function(e,t){t&&t.forEach((t=>{const{name:n,plugin:r,translations:o}=t;try{e.registerFunction(n,r,o)}catch(e){Ea(e.message)}}))})(e,r.functions),function(e,t){if(t){const{langCode:n}=t;try{e.registerLanguage(n,t)}catch(e){Ea(e.message)}}}(e,r.language);const a=e.buildEmpty(o);return i.set(a,[n]),s.set(a,[n.guid]),function(e,t){t&&(e.suspendEvaluation(),t.forEach((t=>{const{name:n,expression:r,scope:o,options:i}=t;try{e.addNamedExpression(n,r,o,i)}catch(e){Ea(e.message)}})),e.resumeEvaluation())}(a,r.namedExpressions),a.on("sheetAdded",(()=>{a.rebuildAndRecalculate()})),a.on("sheetRemoved",(()=>{a.rebuildAndRecalculate()})),a}(null!==(o=r.hyperformula)&&void 0!==o?o:r,t,e);if("object"==typeof r&&Is(r.hyperformula)){const t=oP(),n=iP().get(r);return t.has(r)||t.set(r,[]),t.get(r).push(e),n&&n.push(e.guid),r.getConfig().licenseKey||r.updateConfig({licenseKey:eP}),r.getConfig().leapYear1900===tP.leapYear1900&&!1!==Qs(r.getConfig().nullDate,tP.nullDate)||Ea(Ts`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
- settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),r}return null}(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&VP(XP,this,QP).call(this,e)}this.addHook("beforeLoadData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,tD).call(t,...n)})),this.addHook("afterLoadData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,rD).call(t,...n)})),this.addHook("beforeUpdateData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,tD).call(t,...n)})),this.addHook("afterUpdateData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,rD).call(t,...n)})),this.addHook("modifyData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,oD).call(t,...n)})),this.addHook("modifySourceData",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,iD).call(t,...n)})),this.addHook("beforeValidate",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,ZP).call(t,...n)})),this.addHook("afterSetSourceDataAtCell",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,aD).call(t,...n)})),this.addHook("afterSetDataAtCell",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,sD).call(t,...n)})),this.addHook("afterSetDataAtRowProp",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,sD).call(t,...n)})),this.addHook("beforeCreateRow",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,lD).call(t,...n)})),this.addHook("beforeCreateCol",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,uD).call(t,...n)})),this.addHook("afterCreateRow",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,hD).call(t,...n)})),this.addHook("afterCreateCol",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,pD).call(t,...n)})),this.addHook("beforeRemoveRow",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,cD).call(t,...n)})),this.addHook("beforeRemoveCol",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,dD).call(t,...n)})),this.addHook("afterRemoveRow",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,fD).call(t,...n)})),this.addHook("afterRemoveCol",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,mD).call(t,...n)})),this.indexSyncer=new NP(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(e=>{this.hot.addHookOnce("init",(()=>{e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",((e,t,n,r)=>{this.rowAxisSyncer.storeMovesInformation(e,t,r)})),this.hot.addHook("beforeColumnMove",((e,t,n,r)=>{this.columnAxisSyncer.storeMovesInformation(e,t,r)})),this.hot.addHook("afterRowMove",((e,t,n,r,o)=>{this.rowAxisSyncer.calculateAndSyncMoves(r,o)})),this.hot.addHook("afterColumnMove",((e,t,n,r,o)=>{this.columnAxisSyncer.calculateAndSyncMoves(r,o)})),this.hot.addHook("beforeColumnFreeze",((e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)})),this.hot.addHook("afterColumnFreeze",((e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)})),this.hot.addHook("beforeColumnUnfreeze",((e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)})),this.hot.addHook("afterColumnUnfreeze",((e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)})),this.addHook("afterCellMetaReset",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,nD).call(t,...n)})),this.addHook("beforeUndo",(()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()})),this.addHook("beforeRedo",(()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()})),this.addHook("afterUndo",(()=>{this.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(()=>{this.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,gD).call(t,...n)})),this.addHook("beforeAutofill",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VP(XP,t,eD).call(t,...n)})),WP(qP,this).forEach((e=>{let[t,n]=e;return this.engine.on(t,n)})),super.enablePlugin()}else Ea("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){WP(qP,this).forEach((e=>{let[t,n]=e;return this.engine.off(t,n)})),aP(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=function(e){var t;const n=e[BP];return{...rP(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),...nP(e)}}(this.hot.getSettings());(function(e,t){return Object.keys(t).some((n=>void 0!==t[n]&&t[n]!==e[n]))})(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const n=this.hot.getSettings()[BP];if(Ls(n)&&Ls(n.sheetName)&&n.sheetName!==this.sheetName&&this.switchSheet(n.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[BP].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());VP(XP,this,QP).call(this,t)}}super.updatePlugin(e)}destroy(){WP(qP,this).forEach((e=>{var t;let[n,r]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(n,r)})),zP(qP,this,null),aP(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if(Ls(t)&&(n=t,!(Array.isArray(n)&&n.length&&n.every((e=>Array.isArray(e))))))return Ea("The provided data should be an array of arrays."),!1;var n;if(null!=e&&this.engine.doesSheetExist(e))return Ea("Sheet with the provided name already exists."),!1;try{const n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return Ea(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void La(`The sheet named \`${e}\` does not exist, switch aborted.`);VP(XP,this,QP).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${ui(BP)}.switchSheet`)}getCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=new Set;e.forEach((e=>{var t;const r=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==r&&(n.has(r)||n.add(r))})),sP(this.engine).forEach(((e,r)=>{var o;(t||r!==this.sheetId)&&n.has(r)&&(e.render(),null===(o=e.view)||void 0===o||o.adjustElementsSize())}))}validateDependentCells(e){const t=e=>{var t;const{row:n,col:r,sheet:o}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return Ls(o)?`${o}:${n}x${r}`:""},n=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((e=>t(e))));e.forEach((e=>{var r,o;const{row:i,col:s}=null!==(r=e.address)&&void 0!==r?r:{};if(!1===Ls(i)||!1===Ls(s)||i>=this.hot.countRows()||s>=this.hot.countCols())return;const a=null==e||null===(o=e.address)||void 0===o?void 0:o.sheet,l=t(e);if(void 0!==a&&!n.has(l)){const e=sP(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(i,s),e.getCellMeta(i,s),(()=>{}))}}))}syncChangeWithEngine(e,t,n){const r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(r))return void Ea(`Not possible to set cell data at ${JSON.stringify(r)}`);const o=this.hot.getCellMeta(e,t);var i;return uP(n,o.type)&&(cP(n,o.dateFormat)?n=dP(n,o.dateFormat):!1===("string"==typeof(i=n)&&i.startsWith("="))&&(n=`'${n}`)),this.engine.setCellContents(r,n)}}function QP(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function ZP(e,t,n){const r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},n=this.hot.getCellMeta(t,r);let o=this.engine.getCellValue(e);return"date"===n.type&&Nl(o)&&(o=hP(o,n.dateFormat)),"object"==typeof o&&null!==o?o.value:o}return e}function eD(e,t,n){const{row:r,col:o}=t.getTopStartCorner(),{row:i,col:s}=t.getBottomEndCorner(),{row:a,col:l}=n.getTopStartCorner(),{row:u,col:c}=n.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(r),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId}},h={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(u),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(h))return!1;const p=this.engine.getFillRangeData(d,h),{row:f,col:m}=d.start,{row:g,col:b}=d.end,y=g-f+1,w=b-m+1;for(let e=0;e<p.length;e+=1)for(let t=0;t<p[e].length;t+=1){const n=p[e][t],r=f+e%y,o=m+t%w,i=this.hot.getCellMeta(r,o);uP(n,i.type)&&(n.startsWith("'")?p[e][t]=n.slice(1):!1===this.isFormulaCellType(r,o,this.sheetId)&&(p[e][t]=(v=n,S=i.dateFormat,ws(v,lP,!0).format(S))))}var v,S;return p}function tD(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes(ui(BP))||zP(KP,this,Is(this.hot.getSettings().data))}function nD(){if(WP(KP,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach(((t,n)=>{t.forEach(((t,r)=>{const o=this.hot.getCellMeta(n,r,{skipMetaExtension:!0}),i=o.dateFormat;uP(t,o.type)&&(cP(t,i)?e[n][r]=dP(t,i):t.startsWith("=")||(e[n][r]=`'${t}`))}))})),zP(GP,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),zP(GP,this,!1)}function rD(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(n.includes(ui(BP)))return;const r=function(e,t){return!Is(t)&&e.doesSheetExist(t)||(t=e.addSheet(t)),t}(this.engine,this.hot.getSettings()[BP].sheetName);if(VP(XP,this,QP).call(this,r),"updateSettings"!==n)if(WP(KP,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){zP(GP,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),zP(GP,this,!1)}}}function oD(e,t,n,r){if("get"!==r||WP(GP,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const o=this.hot.toVisualRow(e);if(null===o||null===t)return;const i=this.getCellType(o,t);if("VALUE"===i||"EMPTY"===i)return void(n.value=(s=n.value,function(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}(s)?s.substr(1):s));var s;const a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let l=this.engine.getCellValue(a);const u=this.hot.getCellMeta(o,t,{skipMetaExtension:!0});"date"===u.type&&Nl(l)&&(l=hP(l,u.dateFormat)),n.value="object"==typeof l&&null!==l?l.value:l}function iD(e,t,n,r){if("get"!==r||WP(GP,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null===o||null===i)return;const s=this.getCellType(o,i);if("VALUE"===s||"EMPTY"===s)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(l)}function sD(e,t){if(UP(t))return;const n=[],r=[],o=this.engine.batch((()=>{e.forEach((e=>{let[t,o,,i]=e;const s=this.hot.propToCol(o),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(s),u={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,s,i):n.push([t,s,i]),r.push({address:u})}))}));n.length&&this.hot.addHookOnce("afterChange",(()=>{const e=this.engine.batch((()=>{n.forEach((e=>{let[t,n,r]=e;this.syncChangeWithEngine(t,n,r)}))}));this.renderDependentSheets(e,!0)})),this.renderDependentSheets(o),this.validateDependentCells(o,r)}function aD(e,t){if(UP(t))return;const n=[],r=[];e.forEach((e=>{let[t,o,,i]=e;const s=this.hot.propToCol(o);if(!Nl(s))return;const a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(a)?(r.push({address:a}),n.push(...this.engine.setCellContents(a,i))):Ea(`Not possible to set source cell data at ${JSON.stringify(a)}`)})),this.renderDependentSheets(n),this.validateDependentCells(n,r)}function lD(e,t){let n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}function uD(e,t){let n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}function cD(e,t,n){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1])))&&void 0}function dD(e,t,n){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1])))&&void 0}function hD(e,t,n){if(UP(n))return;const r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function pD(e,t,n){if(UP(n))return;const r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}function fD(e,t,n,r){if(UP(r))return;const o=this.rowAxisSyncer.getRemovedHfIndexes().sort(((e,t)=>t-e)),i=this.engine.batch((()=>{o.forEach((e=>{this.engine.removeRows(this.sheetId,[e,1])}))}));this.renderDependentSheets(i)}function mD(e,t,n,r){if(UP(r))return;const o=this.columnAxisSyncer.getRemovedHfIndexes().sort(((e,t)=>t-e)),i=this.engine.batch((()=>{o.forEach((e=>{this.engine.removeColumns(this.sheetId,[e,1])}))}));this.renderDependentSheets(i)}function gD(e,t,n){var r;zP(GP,this,!0);const o=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());zP(GP,this,!1),o.forEach(((e,t)=>{e.forEach(((e,r)=>{this.engine.setCellContents({col:r,row:n+t,sheet:this.sheetId},[[e]])}))}))}function bD(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function yD(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function wD(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function vD(e){this.hot.runHooks("afterSheetAdded",e)}function SD(e,t){VP(XP,this,QP).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function CD(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}function _D(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function MD(e,t){return e.get(kD(e,t))}function xD(e,t,n){return e.set(kD(e,t),n),n}function kD(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeHideColumns"),Ua.getSingleton().register("afterHideColumns"),Ua.getSingleton().register("beforeUnhideColumns"),Ua.getSingleton().register("afterUnhideColumns");const RD="hiddenColumns";var TD=new WeakMap,ED=new WeakSet;class LD extends MC{constructor(){var e;super(...arguments),_D(this,e=ED),e.add(this),function(e,t){_D(e,t),t.set(e,null)}(this,TD)}static get PLUGIN_KEY(){return RD}static get PLUGIN_PRIORITY(){return 310}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[RD]}enablePlugin(){var e=this;this.enabled||(xD(TD,this,new Np),MD(TD,this).addLocalHook("init",(()=>kD(ED,this,AD).call(this))),this.hot.columnIndexMapper.registerMap(this.pluginName,MD(TD,this)),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kD(ED,e,OD).call(e,...n)})),this.addHook("afterGetCellMeta",((e,t,n)=>kD(ED,this,PD).call(this,e,t,n))),this.addHook("modifyColWidth",((e,t)=>kD(ED,this,ID).call(this,e,t)),2),this.addHook("afterGetColHeader",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kD(ED,e,HD).call(e,...n)})),this.addHook("modifyCopyableRange",(e=>kD(ED,this,DD).call(this,e))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let r=t;const o=MD(TD,this).getValues().slice(),i=e.length>0;n&&i&&(xs(e.map((e=>this.hot.toPhysicalColumn(e))),(e=>{o[e]=!1})),r=Cs(o,((e,t,n)=>(t&&e.push(this.hot.toVisualColumn(n)),e)),[])),!1!==this.hot.runHooks("beforeUnhideColumns",t,r,n&&i)&&(n&&i&&MD(TD,this).setValues(o),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,r,n&&i,n&&r.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideColumns",t,r,n)&&(n&&this.hot.batchExecution((()=>{xs(e,(e=>{MD(TD,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)}))}),!0),this.hot.runHooks("afterHideColumns",t,r,n,n&&r.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideColumns(t)}getHiddenColumns(){return Ms(MD(TD,this).getHiddenIndexes(),(e=>this.hot.toVisualColumn(e)))}isHidden(e){return MD(TD,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}resetCellsMeta(){xs(this.hot.getCellsMeta(),(e=>{e.skipColumnOnPaste=!1}))}destroy(){xD(TD,this,null),super.destroy()}}function ID(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function PD(e,t,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(n.skipColumnOnPaste=!0),this.isHidden(t-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenColumn")&&(n.className+=" afterHiddenColumn");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function DD(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,r,o)=>{t.push({startRow:e,endRow:n,startCol:r,endCol:o})};return xs(e,(e=>{let t=!0,r=0;jl(e.startCol,e.endCol,(o=>{this.isHidden(o)?(t||n(e.startRow,e.endRow,r,o-1),t=!0):(t&&(r=o),o===e.endCol&&n(e.startRow,e.endRow,r,o),t=!1)}))})),t}function HD(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&n.push("beforeHiddenColumn"),Ai(t,n)}function OD(e){var t;e.items.push({name:Mx},(t=this,{key:"hidden_columns_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[,n,,r]=e;n-r!==0&&(t=1)}return this.getTranslatedPhrase(Zf,t)},callback(){const{from:e,to:n}=this.getSelectedRangeLast(),r=Math.max(Math.min(e.col,n.col),0),o=Math.max(e.col,n.col),i=[];for(let e=r;e<=o;e+=1)i.push(e);t.hideColumns(i);const s=i[i.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(s,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}),function(e){const t=[];return{key:"hidden_columns_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(em,e)},callback(){var n,r;if(0===t.length)return;let o=t[0],i=t[t.length-1];o=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize(),i-o+1===this.countCols()||this.selectColumns(o,i)},disabled:!1,hidden(){const n=Ms(e.getHiddenColumns(),(e=>this.toPhysicalColumn(e)));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||n.length<1)return!0;t.length=0;const r=this.getSelectedRangeLast(),o=r.getTopStartCorner().col,i=r.getBottomEndCorner().col,s=this.columnIndexMapper,a=s.getRenderableFromVisualIndex(o),l=s.getRenderableFromVisualIndex(i),u=s.getNotTrimmedIndexes(),c=[];if(o!==i){if(i-o+1>l-a+1){const e=u.slice(o,i+1);c.push(...e.filter((e=>n.includes(e))))}}else if(0===a&&a<o)c.push(...u.slice(0,o));else if(null===a)c.push(...u.slice(0,this.countCols()));else{const e=this.countCols()-1;l===s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,-1))&&e>i&&c.push(...u.slice(i+1))}return xs(c,(e=>{t.push(this.toVisualColumn(e))})),0===t.length}}}(this))}function AD(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}function ND(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jD(e,t){return e.get(FD(e,t))}function YD(e,t,n){return e.set(FD(e,t),n),n}function FD(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeHideRows"),Ua.getSingleton().register("afterHideRows"),Ua.getSingleton().register("beforeUnhideRows"),Ua.getSingleton().register("afterUnhideRows");const zD="hiddenRows";var WD=new WeakMap,VD=new WeakSet;class BD extends MC{constructor(){var e;super(...arguments),ND(this,e=VD),e.add(this),function(e,t){ND(e,t),t.set(e,null)}(this,WD)}static get PLUGIN_KEY(){return zD}static get PLUGIN_PRIORITY(){return 320}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[zD]}enablePlugin(){var e=this;this.enabled||(YD(WD,this,new Np),jD(WD,this).addLocalHook("init",(()=>FD(VD,this,XD).call(this))),this.hot.rowIndexMapper.registerMap(this.pluginName,jD(WD,this)),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FD(VD,e,qD).call(e,...n)})),this.addHook("afterGetCellMeta",((e,t,n)=>FD(VD,this,UD).call(this,e,t,n))),this.addHook("modifyRowHeight",((e,t)=>FD(VD,this,$D).call(this,e,t))),this.addHook("afterGetRowHeader",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return FD(VD,e,KD).call(e,...n)})),this.addHook("modifyCopyableRange",(e=>FD(VD,this,GD).call(this,e))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),n=this.isValidConfig(e);let r=t;const o=jD(WD,this).getValues().slice(),i=e.length>0;n&&i&&(xs(e.map((e=>this.hot.toPhysicalRow(e))),(e=>{o[e]=!1})),r=Cs(o,((e,t,n)=>(t&&e.push(this.hot.toVisualRow(n)),e)),[])),!1!==this.hot.runHooks("beforeUnhideRows",t,r,n&&i)&&(n&&i&&jD(WD,this).setValues(o),this.hot.runHooks("afterUnhideRows",t,r,n&&i,n&&r.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeHideRows",t,r,n)&&(n&&this.hot.batchExecution((()=>{xs(e,(e=>{jD(WD,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)}))}),!0),this.hot.runHooks("afterHideRows",t,r,n,n&&r.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.hideRows(t)}getHiddenRows(){return Ms(jD(WD,this).getHiddenIndexes(),(e=>this.hot.toVisualRow(e)))}isHidden(e){return jD(WD,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();return!!(Array.isArray(e)&&e.length>0)&&e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}resetCellsMeta(){xs(this.hot.getCellsMeta(),(e=>{e.skipRowOnPaste=!1}))}destroy(){YD(WD,this,null),super.destroy()}}function $D(e,t){return this.isHidden(t)?0:e}function UD(e,t,n){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(n.skipRowOnPaste=!0),this.isHidden(e-1))n.className=n.className||"",-1===n.className.indexOf("afterHiddenRow")&&(n.className+=" afterHiddenRow");else if(n.className){const e=n.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");t>-1&&e.splice(t,1),n.className=e.join(" ")}}}function GD(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],n=(e,n,r,o)=>{t.push({startRow:e,endRow:n,startCol:r,endCol:o})};return xs(e,(e=>{let t=!0,r=0;jl(e.startRow,e.endRow,(o=>{this.isHidden(o)?(t||n(r,o-1,e.startCol,e.endCol),t=!0):(t&&(r=o),o===e.endRow&&n(r,o,e.startCol,e.endCol),t=!1)}))})),t}function KD(e,t){if(!this.getSetting("indicators")||e<0)return;const n=[];e>=1&&this.isHidden(e-1)&&n.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&n.push("beforeHiddenRow"),Ai(t,n)}function qD(e){var t;e.items.push({name:Mx},(t=this,{key:"hidden_rows_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[n,,r]=e;n-r!==0&&(t=1)}return this.getTranslatedPhrase(tm,t)},callback(){const{from:e,to:n}=this.getSelectedRangeLast(),r=Math.max(Math.min(e.row,n.row),0),o=Math.max(e.row,n.row),i=[];for(let e=r;e<=o;e+=1)i.push(e);t.hideRows(i);const s=i[i.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(s,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}),function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(nm,e)},callback(){var n,r;if(0===t.length)return;let o=t[0],i=t[t.length-1];o=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(o-1,-1))&&void 0!==n?n:0,i=null!==(r=this.rowIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==r?r:this.countRows()-1,e.showRows(t),this.render(),this.view.adjustElementsSize(),i-o+1===this.countRows()||this.selectRows(o,i)},disabled:!1,hidden(){const n=Ms(e.getHiddenRows(),(e=>this.toPhysicalRow(e)));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||n.length<1)return!0;t.length=0;const r=this.getSelectedRangeLast(),o=r.getTopStartCorner().row,i=r.getBottomEndCorner().row,s=this.rowIndexMapper,a=s.getRenderableFromVisualIndex(o),l=s.getRenderableFromVisualIndex(i),u=s.getNotTrimmedIndexes(),c=[];if(o!==i){if(i-o+1>l-a+1){const e=u.slice(o,i+1);c.push(...e.filter((e=>n.includes(e))))}}else if(0===a&&a<o)c.push(...u.slice(0,o));else if(null===a)c.push(...u.slice(0,this.countRows()));else{const e=this.countRows()-1;l===s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,-1))&&e>i&&c.push(...u.slice(i+1))}return xs(c,(e=>{t.push(this.toVisualRow(e))})),0===t.length}}}(this))}function XD(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}function JD(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function QD(e,t){return e.get(eH(e,t))}function ZD(e,t,n){return e.set(eH(e,t),n),n}function eH(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeColumnFreeze"),Ua.getSingleton().register("afterColumnFreeze"),Ua.getSingleton().register("beforeColumnUnfreeze"),Ua.getSingleton().register("afterColumnUnfreeze");const tH="manualColumnFreeze";var nH=new WeakMap,rH=new WeakSet;class oH extends MC{constructor(){var e;super(...arguments),JD(this,e=rH),e.add(this),function(e,t){JD(e,t),t.set(e,!1)}(this,nH)}static get PLUGIN_KEY(){return tH}static get PLUGIN_PRIORITY(){return 110}isEnabled(){return!!this.hot.getSettings()[tH]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",(e=>eH(rH,this,iH).call(this,e))),this.addHook("beforeColumnMove",((e,t)=>eH(rH,this,sH).call(this,e,t))),super.enablePlugin())}disablePlugin(){ZD(nH,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;QD(nH,this)||ZD(nH,this,!0),!1!==this.hot.runHooks("beforeColumnFreeze",e,n)&&(n&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,n))}unfreezeColumn(e){const t=this.hot.getSettings(),n=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;QD(nH,this)||ZD(nH,this,!0),!1!==this.hot.runHooks("beforeColumnUnfreeze",e,n)&&(n&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,n))}}function iH(e){var t;e.items.push({name:"---------"},(t=this,{key:"freeze_column",name(){return this.getTranslatedPhrase(Ef)},callback(e,n){const[{start:{col:r}}]=n;t.freezeColumn(r),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col<=this.getSettings().fixedColumnsStart-1)&&(t=!0),t}}),function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(Lf)},callback(t,n){const[{start:{col:r}}]=n;e.unfreezeColumn(r),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}}(this))}function sH(e,t){if(QD(nH,this)){const n=this.hot.getSettings().fixedColumnsStart;if(t<n)return!1;if(e.some((e=>e<n)))return!1}}function aH(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lH="px",uH=class{constructor(e){aH(this,"hot",void 0),aH(this,"_element",null),aH(this,"state",0),aH(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){Nl(e)&&(this._element.style.top=e+lH),Nl(t)&&(this._element.style[this.inlineProperty]=t+lH)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){Nl(e)&&(this._element.style.width=e+lH),Nl(t)&&(this._element.style.height=t+lH)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){Nl(e)&&(this._element.style.marginTop=e+lH),Nl(t)&&(this._element.style[`margin${ui(this.inlineProperty)}`]=t+lH)}getOffset(){const e=this._element.style,t=`margin${ui(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}},cH=class extends uH{build(){super.build(),Ai(this._element,"ht__manualColumnMove--backlight")}},dH=class extends uH{build(){super.build(),Ai(this._element,"ht__manualColumnMove--guideline")}};function hH(e,t,n){pH(e,t),t.set(e,n)}function pH(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fH(e,t,n){return e.set(gH(e,t),n),n}function mH(e,t){return e.get(gH(e,t))}function gH(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeColumnMove"),Ua.getSingleton().register("afterColumnMove");const bH="manualColumnMove",yH="ht__manualColumnMove",wH="show-ui",vH="on-moving--columns",SH="after-selection--columns";var CH=new WeakMap,_H=new WeakMap,MH=new WeakMap,xH=new WeakMap,kH=new WeakMap,RH=new WeakMap,TH=new WeakMap,EH=new WeakMap,LH=new WeakMap,IH=new WeakMap,PH=new WeakMap,DH=new WeakSet;class HH extends MC{constructor(){var e;super(...arguments),pH(this,e=DH),e.add(this),hH(this,CH,new cH(this.hot)),hH(this,_H,new dH(this.hot)),hH(this,MH,[]),hH(this,xH,0),hH(this,kH,!1),hH(this,RH,{}),hH(this,TH,void 0),hH(this,EH,void 0),hH(this,LH,void 0),hH(this,IH,void 0),hH(this,PH,void 0)}static get PLUGIN_KEY(){return bH}static get PLUGIN_PRIORITY(){return 120}isEnabled(){return!!this.hot.getSettings()[bH]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gH(DH,e,OH).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gH(DH,e,NH).call(e,...n)})),this.addHook("afterScrollVertically",(()=>gH(DH,this,YH).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gH(DH,e,FH).call(e,...n)})),this.buildPluginUI(),this.registerEvents(),Ai(this.hot.rootElement,yH),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){Ni(this.hot.rootElement,yH),this.unregisterEvents(),mH(CH,this).destroy(),mH(_H,this).destroy(),super.disablePlugin()}moveColumn(e,t){return this.moveColumns([e],t)}moveColumns(e,t){const n=mH(TH,this),r=this.isMovePossible(e,t),o=this.hot.runHooks("beforeColumnMove",e,t,n,r);if(fH(TH,this,void 0),!1===o)return;r&&this.hot.columnIndexMapper.moveIndexes(e,t);const i=r&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,n,r,i),i}dragColumn(e,t){return this.dragColumns([e],t)}dragColumns(e,t){const n=this.countFinalIndex(e,t);return fH(TH,this,t),this.moveColumns(e,n)}isMovePossible(e,t){const n=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((e=>e<0)),s=e.some((e=>e>=n));return!(r||o||i||s)}isColumnOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}countFinalIndex(e,t){const n=Cs(e,((e,n)=>(n<t&&(e+=1),e)),0);return t-n}getColumnsWidth(e,t){const n=this.hot.columnIndexMapper;let r=0;for(let o=e;o<=t;o+=1){const e=n.getRenderableFromVisualIndex(o);o<0?r+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==e&&(r+=this.hot.view._wt.wtTable.getColumnWidth(e)||0)}return r}moveBySettingsOrLoad(){const e=this.hot.getSettings()[bH];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveColumns(e,0)}}isFixedColumnsStart(e){return e<this.hot.getSettings().fixedColumnsStart}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}prepareColumnsToMoving(e,t){const n=[];return jl(e,t,(e=>{n.push(e)})),n}refreshPositions(){const e=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(mH(EH,this))&&e>0&&this.hot.scrollViewportTo({col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(e-1,-1)});const t=this.hot.view._wt.wtTable,n=this.hot.view._wt.wtOverlays.scrollableElement,r="number"==typeof n.scrollX?n.scrollX:n.scrollLeft;let o=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,mH(EH,this)-1);const i=t.hider.offsetWidth,s=t.TBODY.offsetLeft,a=mH(CH,this).getOffset().start,l=mH(CH,this).getSize().width;let u=0,c=0;if(this.hot.isRtl()){const e=this.hot.rootWindow,t=es(this.hot.rootElement),o=e.innerWidth-mH(LH,this)-t;c=e.innerWidth-mH(RH,this).eventPageX-o-(void 0===n.scrollX?r:0)}else c=mH(RH,this).eventPageX-(mH(LH,this)-(void 0===n.scrollX?r:0));if(mH(IH,this)&&(u=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(mH(EH,this))&&(o+=r),o+=u,mH(EH,this)<0)mH(PH,this)>0?mH(RH,this).col=0:mH(RH,this).col=e>0?e-1:e;else if(mH(RH,this).TD.offsetWidth/2+o<=c){const e=mH(EH,this)>=mH(xH,this)?mH(xH,this)-1:mH(EH,this);mH(RH,this).col=e+1,o+=mH(RH,this).TD.offsetWidth}else mH(RH,this).col=mH(EH,this);let d=c,h=o;c+l+a>=i?d=i-l-a:c+a<s+u&&(d=s+u+Math.abs(a)),o>=i-1?h=i-1:0===h?h=1:void 0!==n.scrollX&&mH(EH,this)<mH(PH,this)&&(h-=mH(LH,this)<=n.scrollX?mH(LH,this):0),mH(CH,this).setPosition(null,d),mH(_H,this).setPosition(null,h)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",(e=>gH(DH,this,AH).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>gH(DH,this,jH).call(this)))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){mH(CH,this).build(),mH(_H,this).build()}destroy(){mH(CH,this).destroy(),mH(_H,this).destroy(),super.destroy()}}function OH(e,t,n,r){const o=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),s=this.hot.getSelectedRangeLast(),a=Oi(e.target,"sortAction");if(!s||!i||mH(kH,this)||0!==e.button||a)return fH(kH,this,!1),mH(MH,this).length=0,void Ni(this.hot.rootElement,[vH,wH]);const l=mH(_H,this).isBuilt()&&!mH(_H,this).isAppended(),u=mH(CH,this).isBuilt()&&!mH(CH,this).isAppended();l&&u&&(mH(_H,this).appendTo(o.hider),mH(CH,this).appendTo(o.hider));const{from:c,to:d}=s,h=Math.min(c.col,d.col),p=Math.max(c.col,d.col);if(t.row<0&&t.col>=h&&t.col<=p){r.column=!0,fH(kH,this,!0);const i=n.firstChild?function(e,t){const n={x:e.offsetX,y:e.offsetY};let r=e.target;if(!ys(t)||r!==t&&r.contains(t))return n;for(;r!==t;)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;return n}(e,n.firstChild).x:e.offsetX;mH(RH,this).eventPageX=e.pageX,fH(EH,this,t.col),mH(RH,this).TD=n,mH(RH,this).col=t.col,fH(MH,this,this.prepareColumnsToMoving(h,p)),fH(IH,this,!!this.hot.getSettings().rowHeaders),fH(xH,this,this.hot.countCols()),fH(PH,this,this.hot.getSettings().fixedColumnsStart),fH(LH,this,Ui(this.hot.rootElement).left);const s=mH(IH,this)?-1:0,a=o.holder.scrollTop+o.getColumnHeaderHeight(0)+1,l=t.col<mH(PH,this),u=this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(),c=Math.abs(i-(this.hot.isRtl()?n.offsetWidth:0)),d=this.getColumnsWidth(h,t.col-1)+c,f=this.getColumnsWidth(s,h-1)+(l?u:0)+d;mH(CH,this).setPosition(a,f),mH(CH,this).setSize(this.getColumnsWidth(h,p),o.hider.offsetHeight-a),mH(CH,this).setOffset(null,-d),Ai(this.hot.rootElement,vH)}else Ni(this.hot.rootElement,SH),fH(kH,this,!1),mH(MH,this).length=0}function AH(e){mH(kH,this)&&(mH(RH,this).eventPageX=e.pageX,this.refreshPositions())}function NH(e,t,n,r){this.hot.getSelectedRangeLast()&&mH(kH,this)&&(mH(MH,this).indexOf(t.col)>-1?Ni(this.hot.rootElement,wH):Ai(this.hot.rootElement,wH),r.row=!0,r.column=!0,r.cell=!0,fH(EH,this,t.col),mH(RH,this).TD=n)}function jH(){const e=mH(RH,this).col,t=mH(MH,this).length;if(fH(EH,this,void 0),fH(kH,this,!1),Ni(this.hot.rootElement,[vH,wH,SH]),this.hot.selection.isSelectedByColumnHeader()&&Ai(this.hot.rootElement,SH),t<1||void 0===e)return;const n=mH(MH,this)[0],r=this.hot.toPhysicalColumn(n),o=this.dragColumns(mH(MH,this),e);if(mH(MH,this).length=0,!0===o){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualColumn(r),n=e+t-1;this.hot.selectColumns(e,n)}}function YH(){const e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;mH(CH,this).setPosition(t),mH(CH,this).setSize(null,e.hider.offsetHeight-t)}function FH(){this.moveBySettingsOrLoad()}function zH(e,t,n){WH(e,t),t.set(e,n)}function WH(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function VH(e,t,n){return e.set($H(e,t),n),n}function BH(e,t){return e.get($H(e,t))}function $H(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const UH="manualColumnResize",GH="manualColumnWidths";var KH=new WeakMap,qH=new WeakMap,XH=new WeakMap,JH=new WeakMap,QH=new WeakMap,ZH=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,oO=new WeakMap,iO=new WeakMap,sO=new WeakMap,aO=new WeakMap,lO=new WeakMap,uO=new WeakMap,cO=new WeakSet;class dO extends MC{static get PLUGIN_KEY(){return UH}static get PLUGIN_PRIORITY(){return 130}constructor(e){var t;super(e),WH(this,t=cO),t.add(this),zH(this,KH,null),zH(this,qH,null),zH(this,XH,[]),zH(this,JH,null),zH(this,QH,null),zH(this,ZH,null),zH(this,eO,null),zH(this,tO,null),zH(this,nO,this.hot.rootDocument.createElement("DIV")),zH(this,rO,this.hot.rootDocument.createElement("DIV")),zH(this,oO,null),zH(this,iO,!1),zH(this,sO,0),zH(this,aO,null),zH(this,lO,void 0),zH(this,uO,void 0),Ai(BH(nO,this),"manualColumnResizer"),Ai(BH(rO,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[UH]}enablePlugin(){var e=this;this.enabled||(VH(lO,this,new Ap),BH(lO,this).addLocalHook("init",(()=>$H(cO,this,hO).call(this))),this.hot.columnIndexMapper.registerMap(this.pluginName,BH(lO,this)),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $H(cO,e,yO).call(e,...n)}),1),this.addHook("beforeStretchingColumnWidth",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $H(cO,e,wO).call(e,...n)}),1),this.addHook("beforeColumnResize",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $H(cO,e,vO).call(e,...n)})),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){VH(uO,this,BH(lO,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",GH,BH(lO,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",GH,e),e.value}setManualSize(e,t){const n=Math.max(t,20),r=this.hot.toPhysicalColumn(e);return BH(lO,this).setValueAtIndex(r,n),n}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);BH(lO,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode)return;VH(KH,this,e);const{_wt:t}=this.hot.view,n=t.wtTable.getCoords(BH(KH,this)),r=n.col;if(r<0)return;const o=ts(BH(KH,this)),i=BH(KH,this).getBoundingClientRect();let s;r<t.getSetting("fixedColumnsStart")&&(s=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(BH(KH,this),n.row,n.col)),s||(s=t.wtOverlays.topOverlay.getRelativeCellPosition(BH(KH,this),n.row,n.col)),VH(qH,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(r)),VH(XH,this,[]);const a=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();this.hot.selection.isSelected()&&a&&xs(this.hot.getSelectedRange(),(e=>{jl(e.getTopStartCorner().col,e.getBottomEndCorner().col,(e=>{BH(XH,this).includes(e)||BH(XH,this).push(e)}))})),BH(XH,this).includes(BH(qH,this))||VH(XH,this,[BH(qH,this)]),VH(tO,this,s.start-6),VH(eO,this,parseInt(i.width,10)),BH(nO,this).style.top=`${s.top}px`,BH(nO,this).style[this.inlineDir]=`${BH(tO,this)+BH(eO,this)}px`,BH(nO,this).style.height=`${o}px`,this.hot.rootElement.appendChild(BH(nO,this))}refreshHandlePosition(){BH(nO,this).style[this.inlineDir]=`${BH(tO,this)+BH(JH,this)}px`}setupGuidePosition(){const e=parseInt(ts(BH(nO,this)),10),t=parseInt(BH(nO,this).style.top,10)+e,n=this.hot.view.getTableHeight();Ai(BH(nO,this),"active"),Ai(BH(rO,this),"active"),BH(rO,this).style.top=`${t}px`,this.refreshGuidePosition(),BH(rO,this).style.height=n-e+"px",this.hot.rootElement.appendChild(BH(rO,this))}refreshGuidePosition(){BH(rO,this).style[this.inlineDir]=BH(nO,this).style[this.inlineDir]}hideHandleAndGuide(){Ni(BH(nO,this),"active"),Ni(BH(rO,this),"active")}checkIfColumnHeader(e){const t=Ei(e,["THEAD"],this.hot.rootElement),{topOverlay:n,topInlineStartCornerOverlay:r}=this.hot.view._wt.wtOverlays;return[n.clone.wtTable.THEAD,r.clone.wtTable.THEAD].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{const r=this.hot.runHooks("beforeColumnResize",BH(QH,this),t,!0);void 0!==r&&VH(QH,this,r),this.setManualSize(t,BH(QH,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",BH(QH,this),t,!0),n&&e()};BH(sO,this)>=2&&(BH(XH,this).length>1?(xs(BH(XH,this),(e=>{t(e)})),e()):xs(BH(XH,this),(e=>{t(e,!0)}))),VH(sO,this,0),VH(aO,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",(e=>$H(cO,this,pO).call(this,e))),this.eventManager.addEventListener(t,"mousedown",(e=>$H(cO,this,fO).call(this,e))),this.eventManager.addEventListener(e,"mousemove",(e=>$H(cO,this,mO).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>$H(cO,this,gO).call(this))),this.eventManager.addEventListener(BH(nO,this),"contextmenu",(()=>$H(cO,this,bO).call(this)))}destroy(){super.destroy()}}function hO(){const e=this.hot.getSettings()[UH],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution((()=>{t.forEach(((e,t)=>{BH(lO,this).setValueAtIndex(t,e)}))}),!0):Array.isArray(e)?(this.hot.batchExecution((()=>{e.forEach(((e,t)=>{BH(lO,this).setValueAtIndex(t,e)}))}),!0),VH(uO,this,e)):!0===e&&Array.isArray(BH(uO,this))&&this.hot.batchExecution((()=>{BH(uO,this).forEach(((e,t)=>{BH(lO,this).setValueAtIndex(t,e)}))}),!0)}function pO(e){if(!ms(e.target)&&!0!==BH(iO,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const n=t.getAttribute("colspan");!t||null!==n&&"1"!==n||BH(oO,this)||this.setupHandlePosition(t)}}function fO(e){e.target.parentNode===this.hot.rootElement&&Oi(e.target,"manualColumnResizer")&&(this.setupHandlePosition(BH(KH,this)),this.setupGuidePosition(),VH(oO,this,!0),null===BH(aO,this)&&(VH(aO,this,setTimeout((()=>this.afterMouseDownTimeout()),500)),this.hot._registerTimeout(BH(aO,this))),VH(sO,this,BH(sO,this)+1),this.startX=e.pageX,VH(QH,this,BH(eO,this)))}function mO(e){if(BH(oO,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();VH(JH,this,BH(eO,this)+t),xs(BH(XH,this),(e=>{VH(QH,this,this.setManualSize(e,BH(JH,this)))})),this.refreshHandlePosition(),this.refreshGuidePosition()}}function gO(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{this.hot.runHooks("beforeColumnResize",BH(QH,this),t,!1),n&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",BH(QH,this),t,!1)};BH(oO,this)&&(this.hideHandleAndGuide(),VH(oO,this,!1),BH(QH,this)!==BH(eO,this)&&(BH(XH,this).length>1?(xs(BH(XH,this),(e=>{t(e)})),e()):xs(BH(XH,this),(e=>{t(e,!0)}))),this.setupHandlePosition(BH(KH,this)))}function bO(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(BH(nO,this)),this.hot.rootElement.removeChild(BH(rO,this)),VH(oO,this,!1),VH(iO,this,!0),this.hot._registerImmediate((()=>{VH(iO,this,!1)}))}function yO(e,t){let n=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),r=BH(lO,this).getValueAtIndex(e);this.hot.getSettings()[UH]&&r&&(n=r)}return n}function wO(e,t){const n=BH(lO,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof n?n:e}function vO(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}function SO(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CO="px",_O=class{constructor(e){SO(this,"hot",void 0),SO(this,"_element",null),SO(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+CO),void 0!==t&&(this._element.style.left=t+CO)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+CO),t&&(this._element.style.height=t+CO)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+CO),t&&(this._element.style.marginLeft=t+CO)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}},MO=class extends _O{build(){super.build(),Ai(this._element,"ht__manualRowMove--backlight")}},xO=class extends _O{build(){super.build(),Ai(this._element,"ht__manualRowMove--guideline")}};function kO(e,t,n){RO(e,t),t.set(e,n)}function RO(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function TO(e,t,n){return e.set(LO(e,t),n),n}function EO(e,t){return e.get(LO(e,t))}function LO(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeRowMove"),Ua.getSingleton().register("afterRowMove");const IO="manualRowMove",PO="ht__manualRowMove",DO="show-ui",HO="on-moving--rows",OO="after-selection--rows";var AO=new WeakMap,NO=new WeakMap,jO=new WeakMap,YO=new WeakMap,FO=new WeakMap,zO=new WeakMap,WO=new WeakSet;class VO extends MC{constructor(){var e;super(...arguments),RO(this,e=WO),e.add(this),kO(this,AO,new MO(this.hot)),kO(this,NO,new xO(this.hot)),kO(this,jO,[]),kO(this,YO,void 0),kO(this,FO,{}),kO(this,zO,void 0)}static get PLUGIN_KEY(){return IO}static get PLUGIN_PRIORITY(){return 140}isEnabled(){return!!this.hot.getSettings()[IO]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LO(WO,e,BO).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LO(WO,e,UO).call(e,...n)})),this.addHook("afterScrollHorizontally",(()=>LO(WO,this,KO).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LO(WO,e,qO).call(e,...n)})),this.buildPluginUI(),this.registerEvents(),Ai(this.hot.rootElement,PO),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){Ni(this.hot.rootElement,PO),this.unregisterEvents(),EO(AO,this).destroy(),EO(NO,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const n=EO(zO,this),r=this.isMovePossible(e,t),o=this.hot.runHooks("beforeRowMove",e,t,n,r);if(TO(zO,this,void 0),!1===o)return;r&&this.hot.rowIndexMapper.moveIndexes(e,t);const i=r&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,n,r,i),i}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const n=this.countFinalIndex(e,t);return TO(zO,this,t),this.moveRows(e,n)}isMovePossible(e,t){const n=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),r=e.length+t>n,o=t<0,i=e.some((e=>e<0)),s=e.some((e=>e>=n));return!(r||o||i||s)}isRowOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}countFinalIndex(e,t){const n=Cs(e,((e,n)=>(n<t&&(e+=1),e)),0);return t-n}getRowsHeight(e,t){const n=this.hot.rowIndexMapper;let r=0;for(let o=e;o<=t;o++){const e=n.getRenderableFromVisualIndex(o);null!==e&&(r+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.view.getDefaultRowHeight())}return r}moveBySettingsOrLoad(){const e=this.hot.getSettings()[IO];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;const{from:n,to:r}=e;return jl(Math.min(n.row,r.row),Math.max(n.row,r.row),(e=>{t.push(e)})),t}refreshPositions(){const e=EO(FO,this).coords,t=this.hot.getFirstFullyVisibleRow(),n=this.hot.getLastFullyVisibleRow(),r=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&n<r&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(n+1,1),void 0,!0);const o=this.hot.view._wt.wtTable,i=EO(FO,this).TD,s=this.hot.rootElement,a=Ui(s),l=Qi(s),u=o.holder.scrollTop,c=this.hot.rootWindow!==l?l.scrollTop:0,d=a.top-c,h=EO(FO,this).eventPageY-d+u,p=o.hider.offsetHeight,f=o.TBODY.offsetTop,m=EO(AO,this).getOffset().top,g=EO(AO,this).getSize().height,b=i.offsetHeight/2,y=i.offsetHeight;let w=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const v=h>=w+b;this.isFixedRowTop(e.row)&&(w+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?EO(FO,this).row=t>0?t-1:t:v?(EO(FO,this).row=e.row+1,w+=0===e.row?y-1:y):EO(FO,this).row=e.row;let S=h,C=w;h+g+m>=p?S=p-g-m:h+m<f&&(S=f+Math.abs(m)),w>=p-1&&(C=p-1),EO(AO,this).setPosition(S),EO(NO,this).setPosition(C)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",(e=>LO(WO,this,$O).call(this,e))),this.eventManager.addEventListener(e,"mouseup",(()=>LO(WO,this,GO).call(this)))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){EO(AO,this).build(),EO(NO,this).build()}destroy(){EO(AO,this).destroy(),EO(NO,this).destroy(),super.destroy()}}function BO(e,t,n,r){const{wtTable:o,wtViewport:i}=this.hot.view._wt,s=this.hot.selection.isSelectedByRowHeader(),a=this.hot.getSelectedRangeLast();if(!a||!s||EO(YO,this)||0!==e.button)return TO(YO,this,!1),EO(jO,this).length=0,void Ni(this.hot.rootElement,[HO,DO]);const l=EO(NO,this).isBuilt()&&!EO(NO,this).isAppended(),u=EO(AO,this).isBuilt()&&!EO(AO,this).isAppended();l&&u&&(EO(NO,this).appendTo(o.hider),EO(AO,this).appendTo(o.hider));const{from:c,to:d}=a,h=Math.min(c.row,d.row),p=Math.max(c.row,d.row);if(t.col<0&&t.row>=h&&t.row<=p){r.row=!0,TO(YO,this,!0),EO(FO,this).eventPageY=e.pageY,EO(FO,this).coords=t,EO(FO,this).TD=n,TO(jO,this,this.prepareRowsToMoving());const s=o.holder.scrollLeft+i.getRowHeaderWidth(),a=this.getRowsHeight(h,t.row-1)+(e.clientY-n.getBoundingClientRect().top);EO(AO,this).setPosition(null,s),EO(AO,this).setSize(o.hider.offsetWidth-s,this.getRowsHeight(h,p)),EO(AO,this).setOffset(-a,null),Ai(this.hot.rootElement,HO),this.refreshPositions()}else Ni(this.hot.rootElement,OO),TO(YO,this,!1),EO(jO,this).length=0}function $O(e){EO(YO,this)&&(EO(FO,this).eventPageY=e.pageY,this.refreshPositions())}function UO(e,t,n,r){this.hot.getSelectedRangeLast()&&EO(YO,this)&&(EO(jO,this).indexOf(t.row)>-1?Ni(this.hot.rootElement,DO):Ai(this.hot.rootElement,DO),r.row=!0,r.column=!0,r.cell=!0,EO(FO,this).coords=t,EO(FO,this).TD=n)}function GO(){const e=EO(FO,this).row,t=EO(jO,this).length;if(TO(YO,this,!1),Ni(this.hot.rootElement,[HO,DO,OO]),this.hot.selection.isSelectedByRowHeader()&&Ai(this.hot.rootElement,OO),t<1||void 0===e)return;const n=EO(jO,this)[0],r=this.hot.toPhysicalRow(n),o=this.dragRows(EO(jO,this),e);if(EO(jO,this).length=0,!0===o){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualRow(r),n=e+t-1;this.hot.selectRows(e,n)}}function KO(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;EO(AO,this).setPosition(null,t),EO(AO,this).setSize(e.hider.offsetWidth-t)}function qO(){this.moveBySettingsOrLoad()}function XO(e,t,n){JO(e,t),t.set(e,n)}function JO(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function QO(e,t,n){return e.set(eA(e,t),n),n}function ZO(e,t){return e.get(eA(e,t))}function eA(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const tA="manualRowResize",nA="manualRowHeights";var rA=new WeakMap,oA=new WeakMap,iA=new WeakMap,sA=new WeakMap,aA=new WeakMap,lA=new WeakMap,uA=new WeakMap,cA=new WeakMap,dA=new WeakMap,hA=new WeakMap,pA=new WeakMap,fA=new WeakMap,mA=new WeakMap,gA=new WeakMap,bA=new WeakMap,yA=new WeakMap,wA=new WeakSet;class vA extends MC{static get PLUGIN_KEY(){return tA}static get PLUGIN_PRIORITY(){return 30}constructor(e){var t;super(e),JO(this,t=wA),t.add(this),XO(this,rA,null),XO(this,oA,null),XO(this,iA,[]),XO(this,sA,null),XO(this,aA,null),XO(this,lA,null),XO(this,uA,null),XO(this,cA,null),XO(this,dA,this.hot.rootDocument.createElement("DIV")),XO(this,hA,this.hot.rootDocument.createElement("DIV")),XO(this,pA,!1),XO(this,fA,!1),XO(this,mA,0),XO(this,gA,null),XO(this,bA,void 0),XO(this,yA,void 0),Ai(ZO(dA,this),"manualRowResizer"),Ai(ZO(hA,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[tA]}enablePlugin(){this.enabled||(QO(bA,this,new Ap),ZO(bA,this).addLocalHook("init",(()=>eA(wA,this,RA).call(this))),this.hot.rowIndexMapper.registerMap(this.pluginName,ZO(bA,this)),this.addHook("modifyRowHeight",((e,t)=>eA(wA,this,kA).call(this,e,t))),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){QO(yA,this,ZO(bA,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",nA,ZO(bA,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",nA,e),e.value}setManualSize(e,t){const n=this.hot.toPhysicalRow(e),r=Math.max(t,this.hot.view.getDefaultRowHeight());return ZO(bA,this).setValueAtIndex(n,r),r}getLastDesiredRowHeight(){return ZO(sA,this)}setupHandlePosition(e){QO(rA,this,e);const{view:t}=this.hot,{_wt:n}=t,r=n.wtTable.getCoords(ZO(rA,this)),o=r.row;if(o<0)return;const i=es(ZO(rA,this)),s=ZO(rA,this).getBoundingClientRect(),a=o<n.getSetting("fixedRowsTop"),l=o>=t.countNotHiddenRowIndexes(0,1)-n.getSetting("fixedRowsBottom");let u;a?u=n.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(ZO(rA,this),r.row,r.col):l&&(u=n.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(ZO(rA,this),r.row,r.col)),u||(u=n.wtOverlays.inlineStartOverlay.getRelativeCellPosition(ZO(rA,this),r.row,r.col)),QO(oA,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(o)),QO(iA,this,[]);const c=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();this.hot.selection.isSelected()&&c&&xs(this.hot.getSelectedRange(),(e=>{jl(e.getTopStartCorner().row,e.getBottomStartCorner().row,(e=>{ZO(iA,this).includes(e)||ZO(iA,this).push(e)}))})),ZO(iA,this).includes(ZO(oA,this))||QO(iA,this,[ZO(oA,this)]),QO(cA,this,u.top-6),QO(uA,this,parseInt(s.height,10)),ZO(dA,this).style.top=`${ZO(cA,this)+ZO(uA,this)}px`,ZO(dA,this).style[this.inlineDir]=`${u.start}px`,ZO(dA,this).style.width=`${i}px`,this.hot.rootElement.appendChild(ZO(dA,this))}refreshHandlePosition(){ZO(dA,this).style.top=`${ZO(cA,this)+ZO(sA,this)}px`}setupGuidePosition(){const e=parseInt(es(ZO(dA,this)),10),t=parseInt(ZO(dA,this).style[this.inlineDir],10)+e,n=this.hot.view.getTableWidth();Ai(ZO(dA,this),"active"),Ai(ZO(hA,this),"active"),ZO(hA,this).style.top=ZO(dA,this).style.top,ZO(hA,this).style[this.inlineDir]=`${t}px`,ZO(hA,this).style.width=n-e+"px",this.hot.rootElement.appendChild(ZO(hA,this))}refreshGuidePosition(){ZO(hA,this).style.top=ZO(dA,this).style.top}hideHandleAndGuide(){Ni(ZO(dA,this),"active"),Ni(ZO(hA,this),"active")}checkIfRowHeader(e){const t=Ei(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:n,topInlineStartCornerOverlay:r,bottomInlineStartCornerOverlay:o}=this.hot.view._wt.wtOverlays;return[n.clone.wtTable.TBODY,r.clone.wtTable.TBODY,o.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&ZO(aA,this)<t?t:ZO(aA,this)}afterMouseDownTimeout(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{const r=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==r&&QO(aA,this,r),this.setManualSize(t,ZO(aA,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),n&&e()};ZO(mA,this)>=2&&(ZO(iA,this).length>1?(xs(ZO(iA,this),(e=>{t(e)})),e()):xs(ZO(iA,this),(e=>{t(e,!0)}))),QO(mA,this,0),QO(gA,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",(e=>eA(wA,this,SA).call(this,e))),this.eventManager.addEventListener(e,"mousedown",(e=>eA(wA,this,CA).call(this,e))),this.eventManager.addEventListener(t,"mousemove",(e=>eA(wA,this,_A).call(this,e))),this.eventManager.addEventListener(t,"mouseup",(()=>eA(wA,this,MA).call(this))),this.eventManager.addEventListener(ZO(dA,this),"contextmenu",(()=>eA(wA,this,xA).call(this)))}destroy(){super.destroy()}}function SA(e){if(!ms(e.target)&&!0!==ZO(fA,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(ZO(pA,this)||this.setupHandlePosition(t))}}function CA(e){Oi(e.target,"manualRowResizer")&&(this.setupHandlePosition(ZO(rA,this)),this.setupGuidePosition(),QO(pA,this,!0),null===ZO(gA,this)&&(QO(gA,this,setTimeout((()=>this.afterMouseDownTimeout()),500)),this.hot._registerTimeout(ZO(gA,this))),QO(mA,this,ZO(mA,this)+1),QO(lA,this,e.pageY),QO(aA,this,ZO(uA,this)))}function _A(e){ZO(pA,this)&&(QO(sA,this,ZO(uA,this)+(e.pageY-ZO(lA,this))),xs(ZO(iA,this),(e=>{QO(aA,this,this.setManualSize(e,ZO(sA,this)))})),this.refreshHandlePosition(),this.refreshGuidePosition())}function MA(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},t=(t,n)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),n&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};ZO(pA,this)&&(this.hideHandleAndGuide(),QO(pA,this,!1),ZO(aA,this)!==ZO(uA,this)&&(ZO(iA,this).length>1?(xs(ZO(iA,this),(e=>{t(e)})),e()):xs(ZO(iA,this),(e=>{t(e,!0)}))),this.setupHandlePosition(ZO(rA,this)))}function xA(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(ZO(dA,this)),this.hot.rootElement.removeChild(ZO(hA,this)),QO(pA,this,!1),QO(fA,this,!0),this.hot._registerImmediate((()=>{QO(fA,this,!1)}))}function kA(e,t){let n=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),r=ZO(bA,this).getValueAtIndex(e);this.hot.getSettings()[tA]&&r&&(n=r)}return n}function RA(){const e=this.hot.getSettings()[tA],t=this.loadManualRowHeights();this.hot.batchExecution((()=>{void 0!==t?t.forEach(((e,t)=>{ZO(bA,this).setValueAtIndex(t,e)})):Array.isArray(e)?(e.forEach(((e,t)=>{ZO(bA,this).setValueAtIndex(t,e)})),QO(yA,this,e)):!0===e&&Array.isArray(ZO(yA,this))&&ZO(yA,this).forEach(((e,t)=>{ZO(bA,this).setValueAtIndex(t,e)}))}),!0)}function TA(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EA(e,t){return e.get(IA(e,t))}function LA(e,t,n){return e.set(IA(e,t),n),n}function IA(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}o(237),o(670);var PA=new WeakMap;const DA=class{constructor(e,t,n,r,o,i){var s,a,l;TA(this,"row",void 0),TA(this,"col",void 0),TA(this,"rowspan",void 0),TA(this,"colspan",void 0),TA(this,"removed",!1),TA(this,"cellCoordsFactory",void 0),TA(this,"cellRangeFactory",void 0),l=null,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,a=PA),a.set(s,l),this.row=e,this.col=t,this.rowspan=n,this.colspan=r,this.cellCoordsFactory=o,this.cellRangeFactory=i}static NEGATIVE_VALUES_WARNING(e){let{row:t,col:n,rowspan:r,colspan:o}=e;return Ts`The merged cell declared with {row: ${t}, col: ${n},\x20
- rowspan: ${r}, colspan: ${o}} contains negative values, which is\x20
- not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:n}=e;return Ts`The merged cell declared at [${t}, ${n}] is positioned\x20
- (or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){let{row:t,col:n}=e;return Ts`The merged cell declared at [${t}, ${n}] has both "rowspan"\x20
- and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){let{row:t,col:n}=e;return Ts`The merged cell declared at [${t}, ${n}] has "rowspan"\x20
- or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:n,rowspan:r,colspan:o}=e;return t<0||n<0||r<0||o<0}static isSingleCell(e){let{rowspan:t,colspan:n}=e;return 1===n&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:n}=e;return 0===n||0===t}static isOutOfBounds(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}normalize(e){const t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col),LA(PA,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",s=Math.min(t,r),a=Math.max(t,r),l=this[i],u=this[i]+this[o]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[o]+=n);else if(n<0){if(s<=l&&a>=u)return this.removed=!0,LA(PA,this,null),!1;if(l>=s&&l<=a){const e=a-l+1,t=Math.abs(n)-e;this[i]-=t+n,this[o]-=e}else if(l<=s&&u>=a)this[o]+=n;else if(l<=s&&u>=s&&u<a){const e=u-s+1;this[o]-=e}}return LA(PA,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return EA(PA,this)||LA(PA,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),EA(PA,this)}};function HA(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OA(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var AA=new WeakSet;class NA{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=AA),n.add(t),HA(this,"plugin",void 0),HA(this,"mergedCells",[]),HA(this,"mergedCellsMatrix",new Map),HA(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){let{row:t,col:n}=e;return Ts`The merged cell declared at [${t}, ${n}], overlaps\x20
- with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
- fix your setup.`}get(e,t){var n;return!!this.mergedCellsMatrix.has(e)&&null!==(n=this.mergedCellsMatrix.get(e).get(t))&&void 0!==n&&n}getByRange(e){const{row:t,col:n}=e.getTopStartCorner(),{row:r,col:o}=e.getBottomEndCorner(),i=this.mergedCells.length;let s=!1;for(let e=0;e<i;e++){const i=this.mergedCells[e],{row:a,col:l,rowspan:u,colspan:c}=i;if(a>=t&&a+u-1<=r&&l>=n&&l+c-1<=o){s=i;break}}return s}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach((e=>{const{row:n,col:r,colspan:o,rowspan:i}=e;for(let e=n;e<n+i;e++)for(let n=r;n<r+o;n++)t.add(`r${e},c${n}`)}));const n=e.filter((e=>{const{row:n,col:r,colspan:o,rowspan:i}=e,s=new Set;let a=!1;for(let l=n;l<n+i;l++){for(let n=r;n<r+o;n++){const r=`r${l},c${n}`;if(t.has(r)){Ea(NA.IS_OVERLAPPING_WARNING(e)),a=!0;break}s.add(r)}if(a)break}return a||t.add(...s),!a}));return n}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:n,col:r}=e.getTopStartCorner(),{row:o,col:i}=e.getBottomEndCorner(),s=[];for(let e=n;e<=o;e++)for(let n=r;n<=i;n++){const r=this.get(e,n);r&&(t||!t&&r.row===e&&r.col===n)&&s.push(r)}return s}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.row,r=e.col,o=e.rowspan,i=e.colspan,s=new DA(n,r,o,i,this.hot._createCellCoords,this.hot._createCellRange),a=this.get(n,r),l=!t&&this.isOverlapping(s);return a||l?(l&&Ea(NA.IS_OVERLAPPING_WARNING(s)),!1):(this.hot&&s.normalize(this.hot),this.mergedCells.push(s),OA(AA,this,YA).call(this,s),s)}remove(e,t){const n=this.get(e,t),r=n?this.mergedCells.indexOf(n):-1;return!(!n||-1===r)&&(this.mergedCells.splice(r,1),OA(AA,this,FA).call(this,n),n)}clear(){xs(this.mergedCells,(e=>{let{row:t,col:n,rowspan:r,colspan:o}=e;jl(t,t+r,(e=>{jl(n,n+o,(t=>{const n=this.hot.getCell(e,t);n&&(n.removeAttribute("rowspan"),n.removeAttribute("colspan"),n.style.display="")}))}))})),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++)if(this.mergedCells[e].getRange().overlaps(t))return!0;return!1}isFirstRenderableMergedCell(e,t){const n=this.get(e,t);if(!n)return!1;const{row:r,col:o,rowspan:i,colspan:s}=n,a=this.hot.view.getActiveOverlayName(),l=["top","top_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleRow(),u=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(a)?0:this.hot.getFirstRenderedVisibleColumn(),c=zl(l,r,r+i-1),d=zl(u,o,o+s-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(c,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const n=this.get(e,t);if(!n||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const r=this.hot.rowIndexMapper.getNearestNotHiddenIndex(n.row,1),o=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n.col,1);return this.hot._createCellCoords(r,o)}getStartMostColumnIndex(e,t){const n=OA(AA,this,jA).call(this,e,"col",-1);let r=t;for(let e=0;e<n.length;e++)if(n[e]<=t){r=n[e];break}return r}getEndMostColumnIndex(e,t){const n=OA(AA,this,jA).call(this,e,"col",1);let r=t;for(let e=0;e<n.length;e++)if(n[e]>=t){r=n[e];break}return r}getTopMostRowIndex(e,t){const n=OA(AA,this,jA).call(this,e,"row",-1);let r=t;for(let e=0;e<n.length;e++)if(n[e]<=t){r=n[e];break}return r}getBottomMostRowIndex(e,t){const n=OA(AA,this,jA).call(this,e,"row",1);let r=t;for(let e=0;e<n.length;e++)if(n[e]>=t){r=n[e];break}return r}shiftCollections(e,t,n){const r=[0,0];switch(e){case"right":r[0]+=n;break;case"left":r[0]-=n;break;case"down":r[1]+=n;break;case"up":r[1]-=n}const o=[];this.mergedCells.forEach((e=>{e.shift(r,t),e.removed&&o.push(e)})),o.forEach((e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)})),this.mergedCellsMatrix.clear(),this.mergedCells.forEach((e=>{OA(AA,this,YA).call(this,e)}))}}function jA(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=new Map,o=1===n?e.getTopStartCorner():e.getBottomEndCorner(),i=1===n?e.getBottomEndCorner():e.getTopStartCorner();for(let e=o.row;1===n?e<=i.row:e>=i.row;e+=n)for(let s=o.col;1===n?s<=i.col:s>=i.col;s+=n){const o="row"===t?e:s,i=this.get(e,s);let a=o;i&&(a=1===n?i[t]+i[`${t}span`]-1:i[t]),r.has(o)||r.set(o,new Set),r.get(o).add(a)}return Array.from(new Set(Array.from(r.entries()).filter((e=>{let[,t]=e;return 1===t.size})).flatMap((e=>{let[,t]=e;return Array.from(t)}))))}function YA(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let n=e.col;n<e.col+e.colspan;n++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(n,e)}function FA(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let n=e.col;n<e.col+e.colspan;n++)this.mergedCellsMatrix.get(t).delete(n)}const zA=NA;function WA(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VA=class{constructor(e){WA(this,"plugin",void 0),WA(this,"mergedCellsCollection",void 0),WA(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let n=null;return n=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",n}snapDragArea(e,t,n,r){const o=t.slice(0),i=this.getAutofillSize(e,t,n),[s,a,l,u]=e,c=["up","down"].indexOf(n)>-1?l-s+1:u-a+1,d=i-Math.floor(i/c)*c,h=this.getFarthestCollection(e,t,n,r);if(h)if("down"===n){const e=h.row+h.rowspan-s-d;o[2]+e>=this.plugin.hot.countRows()?o[2]-=d:o[2]+=d?e:0}else if("right"===n){const e=h.col+h.colspan-a-d;o[3]+e>=this.plugin.hot.countCols()?o[3]-=d:o[3]+=d?e:0}else if("up"===n){const e=l-d-h.row+1;o[0]+e<0?o[0]+=d:o[0]-=d?e:0}else if("left"===n){const e=u-d-h.col+1;o[1]+e<0?o[1]+=d:o[1]-=d?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:n,foundMergedCells:r,fillSize:i,dragArea:o,cycleLength:c}),o}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),Gs(this.currentFillData,e)}getAutofillSize(e,t,n){const[r,o,i,s]=e,[a,l,u,c]=t;switch(n){case"up":return r-a;case"down":return u-i;case"left":return o-l;case"right":return c-s;default:return null}}getDragArea(e,t,n){const[r,o,i,s]=e,[a,l,u,c]=t;switch(n){case"up":return[a,l,r-1,s];case"down":{const e=this.mergedCellsCollection.get(u,s);return[i+1,o,u+(e?e.rowspan-1:0),s]}case"left":return[a,l,i,o-1];case"right":{const e=this.mergedCellsCollection.get(u,s);return[r,s+(e?e.colspan-1:0),u,c]}default:return null}}getFarthestCollection(e,t,n,r){const[o,i,s,a]=e,l=["up","down"].indexOf(n)>-1,u=l?s:a,c=l?o:i,d=this.getAutofillSize(e,t,n),h=l?s-o+1:a-i+1,p=d-Math.floor(d/h)*h;let f=null,m=null,g=null;switch(n){case"up":f="includesVertically",g=u-p+1;break;case"left":f="includesHorizontally",g=u-p+1;break;case"down":f="includesVertically",g=c+p-1;break;case"right":f="includesHorizontally",g=c+p-1}return xs(r,(e=>{e[f](g)&&e.isFarther(m,n)&&(m=e)})),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),n=this.currentFillData.foundMergedCells,r=this.currentFillData.dragDirection,o=(e,n)=>{switch(r){case"up":return e.row-n>=t.from.row;case"down":return e.row+e.rowspan-1+n<=t.to.row;case"left":return e.col-n>=t.from.column;case"right":return e.col+e.colspan-1+n<=t.to.column;default:return null}};let i=0,s=null,a=1;do{for(let e=0;e<n.length;e+=1){if(s=n[e],i=a*this.currentFillData.cycleLength,o(s,i))switch(r){case"up":this.plugin.mergedCellsCollection.add({row:s.row-i,rowspan:s.rowspan,col:s.col,colspan:s.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:s.row+i,rowspan:s.rowspan,col:s.col,colspan:s.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:s.row,rowspan:s.rowspan,col:s.col-i,colspan:s.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:s.row,rowspan:s.rowspan,col:s.col+i,colspan:s.colspan},!0)}e===n.length-1&&(a+=1)}}while(o(s,i));this.currentFillData=null,this.plugin.hot.render(),n.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},n={min:null,max:null};return xs(e,(e=>{const r=e[0],o=this.plugin.hot.propToCol(e[1]);(null===t.min||r<t.min)&&(t.min=r),(null===t.max||r>t.max)&&(t.max=r),(null===n.min||o<n.min)&&(n.min=o),(null===n.max||o>n.max)&&(n.max=o)})),{from:{row:t.min,column:n.min},to:{row:t.max,column:n.max}}}dragAreaOverlapsCollections(e,t,n){const r=this.getDragArea(e,t,n),[o,i,s,a]=r,l=this.plugin.hot._createCellCoords(o,i),u=this.plugin.hot._createCellCoords(s,a),c=this.plugin.hot._createCellRange(l,l,u);if(0===this.mergedCellsCollection.getWithinRange(c,!0).length)return!1;const d=this.mergedCellsCollection.getWithinRange(c,!1);return 0===d.length||("up"===n||"down"===n?!d.every((e=>{let{colspan:t}=e;return t===c.getWidth()})):!d.every((e=>{let{rowspan:t}=e;return t===c.getHeight()})))}};function BA(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $A=class{constructor(e){BA(this,"plugin",void 0),BA(this,"hot",void 0),BA(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,n,r){const o=Math.min(n[0],n[2]),i=Math.min(n[1],n[3]),s=Math.max(n[0],n[2]),a=Math.max(n[1],n[3]);if(void 0===r)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const l=this.plugin.mergedCellsCollection.get(e,t);if(!l)return;const u=l.getLastRow(),c=l.getLastColumn();return o<=l.row&&i<=l.col&&s>=u&&a>=c?`${this.fullySelectedMergedCellClassName}-${r}`:this.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const n=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let r=0;r<e.colspan;r+=1)n.push(this.hot._createCellCoords(e.row+t,e.col+r));for(let e=0;e<n.length;e+=1){const r=[];for(let o=0;o<t.length;o+=1)r[o]=t[o].includes(n[e]);if(!r.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}};function UA(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class GA{constructor(e){UA(this,"data",void 0),UA(this,"next",null),UA(this,"prev",null),this.data=e}}const KA=class{constructor(){UA(this,"first",null),UA(this,"last",null)}push(e){const t=new GA(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new GA(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const n=e(t);if(t===this.last||!0===n)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,n,r=this.first;for(;r;){if(r.data===e)return t=r.next,n=r.prev,t&&(t.prev=n),n&&(n.next=t),r===this.first&&(this.first=t),r===this.last&&(this.last=n),!0;r=r.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,n){n&&(e(n,n.next),n.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,n=this.first;for(;t;)e=t.next,t.next=n,n.prev=t,n=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=n,this.last=e}};function qA(e,t,n){XA(e,t),t.set(e,n)}function XA(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function JA(e,t){return e.get(ZA(e,t))}function QA(e,t,n){return e.set(ZA(e,t),n),n}function ZA(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var eN=new WeakMap,tN=new WeakMap,nN=new WeakMap,rN=new WeakMap,oN=new WeakMap,iN=new WeakMap,sN=new WeakMap,aN=new WeakSet;class lN{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:n,columnIndexMapper:r}=e;var o;XA(this,o=aN),o.add(this),qA(this,eN,new KA),qA(this,tN,new KA),qA(this,nN,null),qA(this,rN,null),qA(this,oN,null),qA(this,iN,null),qA(this,sN,null),QA(oN,this,t),QA(iN,this,n),QA(sN,this,r)}getCurrentVerticalNode(){return JA(rN,this).data}getFirstVerticalNode(){return JA(tN,this).first.data}getNextVerticalNode(){return JA(rN,this).next.data}getPrevVerticalNode(){return JA(rN,this).prev.data}getCurrentHorizontalNode(){return JA(nN,this).data}getFirstHorizontalNode(){return JA(eN,this).first.data}getNextHorizontalNode(){return JA(nN,this).next.data}getPrevHorizontalNode(){return JA(nN,this).prev.data}setPrevNodeAsActive(){QA(rN,this,JA(rN,this).prev),QA(nN,this,JA(nN,this).prev)}setNextNodeAsActive(){QA(rN,this,JA(rN,this).next),QA(nN,this,JA(nN,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),n=e.getBottomEndCorner(),r=new WeakSet;QA(eN,this,new KA);for(let o=t.row;o<=n.row;o++)if(!JA(iN,this).isHidden(o))for(let i=t.col;i<=n.col;i++){if(JA(sN,this).isHidden(i))continue;const t=ZA(aN,this,uN).call(this,e,JA(eN,this),r,o,i);t&&QA(nN,this,t)}JA(eN,this).first&&(JA(eN,this).first.prev=JA(eN,this).last,JA(eN,this).last.next=JA(eN,this).first);const o=new WeakSet;QA(tN,this,new KA);for(let r=t.col;r<=n.col;r++)if(!JA(sN,this).isHidden(r))for(let i=t.row;i<=n.row;i++){if(JA(iN,this).isHidden(i))continue;const t=ZA(aN,this,uN).call(this,e,JA(tN,this),o,i,r);t&&QA(rN,this,t)}JA(tN,this).first&&(JA(tN,this).first.prev=JA(tN,this).last,JA(tN,this).last.next=JA(tN,this).first)}setActiveNode(e,t){return JA(eN,this).inorder((n=>{const{rowStart:r,rowEnd:o,colStart:i,colEnd:s}=n.data;if(e>=r&&e<=o&&t>=i&&t<=s)return QA(nN,this,n),!1})),JA(tN,this).inorder((n=>{const{rowStart:r,rowEnd:o,colStart:i,colEnd:s}=n.data;if(e>=r&&e<=o&&t>=i&&t<=s)return QA(rN,this,n),!1})),this}}function uN(e,t,n,r,o){const i=e.getTopStartCorner(),s=e.getBottomEndCorner(),a=e.highlight.clone().normalize(),l=JA(oN,this).call(this,r,o);if(l&&n.has(l))return null;const u={colStart:o,colEnd:o,rowStart:r,rowEnd:r};if(l){if(n.add(l),l.row<i.row||l.row+l.rowspan-1>s.row||l.col<i.col||l.col+l.colspan-1>s.col)return null;u.colStart=l.col,u.colEnd=l.col+l.colspan-1,u.rowStart=l.row,u.rowEnd=l.row+l.rowspan-1}const c=t.push(u);return r===a.row&&o===a.col||l&&a.row>=l.row&&a.row<=l.row+l.rowspan-1&&a.col>=l.col&&a.col<=l.col+l.colspan-1?c:null}function cN(e,t,n){const{view:r,rowIndexMapper:o}=e,i=r.getStylesHandler(),s=r.getDefaultRowHeight();let a=0;for(let r=t;r<t+n;r++){var l;o.isHidden(r)||(a+=null!==(l=e.getRowHeight(r))&&void 0!==l?l:s,0!==r||i.isClassicTheme()||(a+=1))}return a}function dN(e,t,n){hN(e,t),t.set(e,n)}function hN(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pN(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e,t,n){return e.set(gN(e,t),n),n}function mN(e,t){return e.get(gN(e,t))}function gN(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ua.getSingleton().register("beforeMergeCells"),Ua.getSingleton().register("afterMergeCells"),Ua.getSingleton().register("beforeUnmergeCells"),Ua.getSingleton().register("afterUnmergeCells");const bN="mergeCells",yN=bN;var wN=new WeakMap,vN=new WeakMap,SN=new WeakMap,CN=new WeakMap,_N=new WeakSet;class MN extends MC{constructor(){var e;super(...arguments),hN(this,e=_N),e.add(this),pN(this,"mergedCellsCollection",null),pN(this,"autofillCalculations",null),pN(this,"selectionCalculations",null),dN(this,wN,null),dN(this,vN,{row:0,col:0}),dN(this,SN,new lN({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),dN(this,CN,function(e){const{hot:t}=e,{rowIndexMapper:n,columnIndexMapper:r}=t,o=new Map;return{before:function(){},after:function(i,s,a){const l=e.mergedCellsCollection.get(s,a);if(!Zs(l))return i.removeAttribute("rowspan"),i.removeAttribute("colspan"),ma()&&o.has(s)&&!t.getSettings().rowHeaders&&(i.style.height=`${o.get(s)}px`,o.delete(s)),void(i.style.display="");const{row:u,col:c,colspan:d,rowspan:h}=l,[p,f]=e.translateMergedCellToRenderable(u,h,c,d),m=e.getSetting("virtualized");if(ma()&&0===c&&!t.getSettings().rowHeaders){const e=cN(t,u,h);o.set(s,e/h)}const g=p-n.getRenderableFromVisualIndex(s)+1,b=f-r.getRenderableFromVisualIndex(a)+1;let y=n.getNearestNotHiddenIndex(u,1),w=r.getNearestNotHiddenIndex(c,1);if(m){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(y=Math.max(y,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(w=Math.max(w,t.getFirstRenderedVisibleColumn()))}const v=Math.min(h,g),S=Math.min(d,b);y===s&&w===a?(i.setAttribute("rowspan",v),i.setAttribute("colspan",S)):(i.removeAttribute("rowspan"),i.removeAttribute("colspan"),i.style.display="none")}}}(this))}static get PLUGIN_KEY(){return bN}static get PLUGIN_PRIORITY(){return 150}static get DEFAULT_SETTINGS(){return{[wC]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[bN]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new zA(this),this.autofillCalculations=new VA(this),this.selectionCalculations=new $A(this),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,xN).call(e,...n)})),this.addHook("modifyTransformFocus",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,RN).call(e,...n)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,TN).call(e,...n)})),this.addHook("modifyTransformEnd",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,EN).call(e,...n)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,LN).call(e,...n)})),this.addHook("beforeSetRangeStart",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,DN).call(e,...n)})),this.addHook("beforeSetRangeStartOnly",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,DN).call(e,...n)})),this.addHook("beforeSelectionFocusSet",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,HN).call(e,...n)})),this.addHook("afterSelectionFocusSet",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,ON).call(e,...n)})),this.addHook("afterSelectionEnd",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,AN).call(e,...n)})),this.addHook("modifyGetCellCoords",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,IN).call(e,...n)})),this.addHook("modifyGetCoordsElement",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,IN).call(e,...n)})),this.addHook("afterIsMultipleSelection",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,kN).call(e,...n)})),this.addHook("afterRenderer",(function(){return mN(CN,e).after(...arguments)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,PN).call(e,...n)})),this.addHook("afterGetCellMeta",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,NN).call(e,...n)})),this.addHook("afterViewportRowCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,jN).call(e,...n)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,YN).call(e,...n)})),this.addHook("modifyAutofillRange",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,FN).call(e,...n)})),this.addHook("afterCreateCol",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,zN).call(e,...n)})),this.addHook("afterRemoveCol",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,WN).call(e,...n)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,VN).call(e,...n)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,BN).call(e,...n)})),this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,$N).call(e,...n)})),this.addHook("beforeDrawBorders",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,UN).call(e,...n)})),this.addHook("afterDrawSelection",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,GN).call(e,...n)})),this.addHook("beforeRemoveCellClassNames",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,KN).call(e,...n)})),this.addHook("beforeBeginEditing",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,qN).call(e,...n)})),this.addHook("modifyRowHeightByOverlayName",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gN(_N,e,XN).call(e,...n)})),this.addHook("beforeUndoStackChange",((e,t)=>{if("MergeCells"===t)return!1})),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!pa())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach((e=>{const{row:n,rowspan:r}=e;for(let e=n+1;e<n+r;e++)t.push(e)})),t=[...new Set(t)],t.forEach((t=>{const n=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map((e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable)).forEach((t=>{const r=t.getRow(n);r&&(r.style.background=Zi(r,"backgroundColor").replace(")",", 0.99)"),e.push(r))}))})),this.hot._registerTimeout((()=>{e.forEach((e=>{var t;e.style.background=null===(t=Zi(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")}))}),1)}validateSetting(e){return!(!e||(DA.containsNegativeValues(e)?(Ea(DA.NEGATIVE_VALUES_WARNING(e)),1):DA.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?(Ea(DA.IS_OUT_OF_BOUNDS_WARNING(e)),1):DA.isSingleCell(e)?(Ea(DA.IS_SINGLE_CELL(e)),1):DA.containsZeroSpan(e)&&(Ea(DA.ZERO_SPAN_WARNING(e)),1)))}generateFromSettings(){const e=this.getSetting("cells").filter((e=>this.validateSetting(e))),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),n=[];t.forEach((e=>{const{row:t,col:r,rowspan:o,colspan:i}=e,s=this.hot._createCellCoords(t,r),a=this.hot._createCellCoords(t+o-1,r+i-1),l=this.hot._createCellRange(s,s,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+o;e++)for(let o=r;o<r+i;o++)e===t&&o===r||n.push([e,o,null])})),0!==n.length&&this.hot.setDataAtCell(n,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:n}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeLast();if(!e)return;const{from:t,to:n}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,n.row,n.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.getTopStartCorner(),o=e.getBottomEndCorner(),i={row:r.row,col:r.col,rowspan:o.row-r.row+1,colspan:o.col-r.col+1},s=[];let a=null;return!!this.canMergeRange(i,t)&&(this.hot.runHooks("beforeMergeCells",e,t),jl(0,i.rowspan-1,(e=>{jl(0,i.colspan-1,(t=>{let n=null;s[e]||(s[e]=[]),0===e&&0===t?n=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(i.row),this.hot.toPhysicalColumn(i.col)):this.hot.setCellMeta(i.row+e,i.col+t,"hidden",!0),s[e][t]=n}))})),this.hot.setCellMeta(i.row,i.col,"spanned",!0),!this.mergedCellsCollection.add(i,t)||(n?a=[i.row,i.col,s]:this.hot.populateFromArray(i.row,i.col,s,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,i,t),a))}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.mergedCellsCollection.getWithinRange(e);0!==n.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),xs(n,(e=>{this.mergedCellsCollection.remove(e.row,e.col),jl(0,e.rowspan-1,(t=>{jl(0,e.colspan-1,(n=>{this.hot.removeCellMeta(e.row+t,e.col+n,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+n,"copyable")}))})),this.hot.removeCellMeta(e.row,e.col,"spanned")})),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:n}=e.clone().normalize(),r=this.mergedCellsCollection.get(t.row,t.col);r.row===t.row&&r.col===t.col&&r.row+r.rowspan-1===n.row&&r.col+r.colspan-1===n.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,n,r){const o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.mergeRange(this.hot._createCellRange(o,o,i))}unmerge(e,t,n,r){const o=this.hot._createCellCoords(e,t),i=this.hot._createCellCoords(n,r);this.unmergeRange(this.hot._createCellRange(o,o,i))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeLast();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:yN})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(yN)}modifyViewportRowStart(e,t){const n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.startRow);for(let o=0;o<t;o+=1){const i=this.mergedCellsCollection.get(r,o);if(Zs(i)){const r=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.row,1));if(r<e.startRow)return e.startRow=r,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const n=this.hot.rowIndexMapper,r=n.getVisualFromRenderableIndex(e.endRow);for(let o=0;o<t;o+=1){const i=this.mergedCellsCollection.get(r,o);if(Zs(i)){const r=i.row+i.rowspan-1,o=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r,-1));if(o>e.endRow)return e.endRow=o,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.startColumn);for(let o=0;o<t;o+=1){const i=this.mergedCellsCollection.get(o,r);if(Zs(i)){const r=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i.col,1));if(r<e.startColumn)return e.startColumn=r,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const n=this.hot.columnIndexMapper,r=n.getVisualFromRenderableIndex(e.endColumn);for(let o=0;o<t;o+=1){const i=this.mergedCellsCollection.get(o,r);if(Zs(i)){const r=i.col+i.colspan-1,o=n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(r,-1));if(o>e.endColumn)return e.endColumn=o,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,n,r){const{rowIndexMapper:o,columnIndexMapper:i}=this.hot;let s,a;return s=0===t?o.getNearestNotHiddenIndex(e,1):o.getNearestNotHiddenIndex(e+t-1,-1),a=0===r?i.getNearestNotHiddenIndex(n,1):i.getNearestNotHiddenIndex(n+r-1,-1),[e>=0?o.getRenderableFromVisualIndex(s):e,n>=0?i.getRenderableFromVisualIndex(a):n]}}function xN(){this.generateFromSettings(),this.hot.render()}function kN(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner(),r=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(n.row===e[t].row&&n.col===e[t].col&&r.row===e[t].row+e[t].rowspan-1&&r.col===e[t].col+e[t].colspan-1)return!1}return e}function RN(e){mN(vN,this).row=e.row,mN(vN,this).col=e.col}function TN(e){const t=this.hot.getSelectedRangeLast(),{highlight:n}=t,{columnIndexMapper:r,rowIndexMapper:o}=this.hot;mN(wN,this)&&(null!==o.getRenderableFromVisualIndex(mN(wN,this).row)&&(n.row=mN(wN,this).row),null!==r.getRenderableFromVisualIndex(mN(wN,this).col)&&(n.col=mN(wN,this).col),fN(wN,this,null));const i=this.mergedCellsCollection.get(n.row,n.col);if(!i)return;const s=i.col,a=i.col+i.colspan-1;if(e.col<0){const t=n.col>=s&&n.col<=a?s-1:a,o=r.getNearestNotHiddenIndex(t,-1);e.col=null===o?-this.hot.view.countRenderableColumnsInRange(0,n.col):-Math.max(this.hot.view.countRenderableColumnsInRange(o,n.col)-1,1)}else if(e.col>0){const t=n.col>=s&&n.col<=a?a+1:s,o=r.getNearestNotHiddenIndex(t,1);e.col=null===o?this.hot.view.countRenderableColumnsInRange(n.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(n.col,o)-1,1)}const l=i.row,u=i.row+i.rowspan-1;if(e.row<0){const t=n.row>=l&&n.row<=u?l-1:u,r=o.getNearestNotHiddenIndex(t,-1);e.row=null===r?-this.hot.view.countRenderableRowsInRange(0,n.row):-Math.max(this.hot.view.countRenderableRowsInRange(r,n.row)-1,1)}else if(e.row>0){const t=n.row>=l&&n.row<=u?u+1:l,r=o.getNearestNotHiddenIndex(t,1);e.row=null===r?this.hot.view.countRenderableRowsInRange(n.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(n.row,r)-1,1)}}function EN(e){const t=this.hot.getSelectedRangeLast(),n=t.clone(),{to:r}=t,{columnIndexMapper:o,rowIndexMapper:i}=this.hot,s=(e,t)=>{n.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)n.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let i=this.mergedCellsCollection.getStartMostColumnIndex(t,r.col)+e.col;s(r.row,i),"E-W"===t.getHorizontalDirection()&&"E-W"===n.getHorizontalDirection()&&(i=n.getTopStartCorner().col);const a=o.getNearestNotHiddenIndex(i,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,r.col)-1,1))}else if(e.col>0){let i=this.mergedCellsCollection.getEndMostColumnIndex(t,r.col)+e.col;s(r.row,i),"W-E"===t.getHorizontalDirection()&&"W-E"===n.getHorizontalDirection()&&(i=n.getBottomEndCorner().col);const a=o.getNearestNotHiddenIndex(i,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(r.col,a)-1,1))}if(e.row<0){let o=this.mergedCellsCollection.getTopMostRowIndex(t,r.row)+e.row;s(o,r.col),"S-N"===t.getVerticalDirection()&&"S-N"===n.getVerticalDirection()&&(o=n.getTopStartCorner().row);const a=i.getNearestNotHiddenIndex(o,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,r.row)-1,1))}else if(e.row>0){let o=this.mergedCellsCollection.getBottomMostRowIndex(t,r.row)+e.row;s(o,r.col),"N-S"===t.getVerticalDirection()&&"N-S"===n.getVerticalDirection()&&(o=n.getBottomStartCorner().row);const a=i.getNearestNotHiddenIndex(o,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(r.row,a)-1,1))}}function LN(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void fN(wN,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const n=this.mergedCellsCollection.get(t.row,t.col);fN(wN,this,t.clone()),n&&t.assign(n)}function IN(e,t,n,r){if(e<0||t<0)return;const o=this.mergedCellsCollection.get(e,t);if(!o)return;const{row:i,col:s,colspan:a,rowspan:l}=o,u=i,c=s,d=i+l-1,h=s+a-1;if("render"===r&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),n=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[zl(t,u,d),zl(n,c,h),zl(this.hot.getLastRenderedVisibleRow(),u,d),zl(this.hot.getLastRenderedVisibleColumn(),c,h)]}return[u,c,d,h]}function PN(e){var t;e.items.push({name:"---------"},(t=this,{key:"mergeCells",name(){const e=this.getSelectedLast();if(e){const n=t.mergedCellsCollection.get(e[0],e[1]);if(n.row===e[0]&&n.col===e[1]&&n.row+n.rowspan-1===e[2]&&n.col+n.colspan-1===e[3])return this.getTranslatedPhrase(Pf)}return this.getTranslatedPhrase(If)},callback(){const e=this.getSelectedRangeLast();if(!e)return;e.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:n,to:r}=e;t.toggleMerge(e),this.selectCell(n.row,n.col,r.row,r.col,!1)},disabled(){const e=this.getSelectedLast();return!e||DA.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}))}function DN(){fN(wN,this,null)}function HN(){if(mN(wN,this).isCell())return;const e=this.hot.getSelectedRangeLast(),t=e.getVerticalDirection(),n=e.getHorizontalDirection(),r=mN(wN,this).clone().normalize();mN(SN,this).setActiveNode(r.row,r.col),mN(vN,this).row>0||mN(vN,this).col>0?mN(SN,this).setPrevNodeAsActive():("E-W"===n&&mN(vN,this).col<0||"S-N"===t&&mN(vN,this).row<0)&&mN(SN,this).setNextNodeAsActive()}function ON(e,t){const n=this.hot.getSelectedRangeLast(),{columnIndexMapper:r,rowIndexMapper:o}=this.hot;let i=null,s=null;if(mN(vN,this).col<0){const{rowEnd:e,colEnd:t}=mN(SN,this).getPrevHorizontalNode();s=r.getNearestNotHiddenIndex(t,-1),i=o.getNearestNotHiddenIndex(e,-1)}else if(mN(vN,this).col>0){const{rowStart:e,colStart:t}=mN(SN,this).getNextHorizontalNode();s=r.getNearestNotHiddenIndex(t,1),i=o.getNearestNotHiddenIndex(e,1)}else if(mN(vN,this).row<0){const{rowEnd:e,colEnd:t}=mN(SN,this).getPrevVerticalNode();s=r.getNearestNotHiddenIndex(t,-1),i=o.getNearestNotHiddenIndex(e,-1)}else if(mN(vN,this).row>0){const{rowStart:e,colStart:t}=mN(SN,this).getNextVerticalNode();s=r.getNearestNotHiddenIndex(t,1),i=o.getNearestNotHiddenIndex(e,1)}if(null!==i||null!==s){const r=this.hot._createCellCoords(i,s),o=this.mergedCellsCollection.get(r.row,r.col),a=this.hot.selection.highlight.getFocus();e=r.row,t=r.col,o?n.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(o.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(o.col,1)}):n.highlight.assign(r),a.clear(),a.add(r).commit()}mN(SN,this).setActiveNode(e,t),fN(vN,this,{row:0,col:0})}function AN(){this.hot.getSelectedRangeLast().isHeader()||mN(SN,this).buildFocusOrder(this.hot.getSelectedRangeLast())}function NN(e,t,n){const r=this.mergedCellsCollection.get(e,t);r&&(r.row!==e||r.col!==t?n.copyable=!1:(n.rowspan=r.rowspan,n.colspan=r.colspan))}function jN(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function YN(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function FN(e,t){const n=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,n))return t;const r=this.hot._createCellCoords(t[0],t[1]),o=this.hot._createCellCoords(t[2],t[3]),i=this.hot._createCellRange(r,r,o),s=this.mergedCellsCollection.getWithinRange(i);return 0===s.length?e:this.autofillCalculations.snapDragArea(t,e,n,s)}function zN(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function WN(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function VN(e,t,n){"auto"!==n&&this.mergedCellsCollection.shiftCollections("down",e,t)}function BN(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function $N(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function UN(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeLast();xs(this.mergedCellsCollection.getWithinRange(t),(n=>{t.getBottomEndCorner().row===n.getLastRow()&&t.getBottomEndCorner().col===n.getLastColumn()&&(e[2]=n.row,e[3]=n.col)}))}}function GN(e,t,n,r){if(n)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,n,r)}function KN(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function qN(e,t,n,r){if(!(r instanceof MouseEvent))return;const o=this.hot.getSelectedRangeLast(),i=this.mergedCellsCollection.getByRange(o);if(!i)return;const s=this.hot._createCellCoords(i.row,i.col),a=this.hot._createCellCoords(i.row+i.rowspan-1,i.col+i.colspan-1);return 0===this.hot.selection.getLayerLevel()&&o.isEqual(this.hot._createCellRange(s,s,a))}function XN(e,t,n){if(this.hot.getSettings().rowHeaders||"bottom"===n||"bottom_inline_start_corner"===n)return e;let r,o;if("master"===n)r=this.hot.getFirstRenderedVisibleColumn(),o=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(n);r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),o=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,r))return e;const i=this.hot._createCellCoords(t,r),s=this.hot._createCellCoords(t,o),a=this.hot._createCellRange(i,i,s),l=this.mergedCellsCollection.getWithinRange(a,!0),u=l.reduce(((e,t)=>{let{rowspan:n}=t;return Math.max(e,n)}),1);let c=0;return l.length>1&&l[0].rowspan<u&&(c=u-l[0].rowspan),l.forEach((r=>{let{rowspan:o}=r,i=0;i="top"===n||"top_inline_start_corner"===n?Math.min(u,this.hot.view.countNotHiddenFixedRowsTop()-t):o-c,e=Math.max(null!=e?e:0,cN(this.hot,t,i))})),e}const JN="sort";const QN="multiColumnSorting",ZN=QN;cM(QN,(function(e,t){return function(n,r){const[,...o]=n,[,...i]=r;return function n(r){const s=e[r],a=t[r],l=o[r],u=i[r],c=a.multiColumnSorting,d=(c.compareFunctionFactory?c.compareFunctionFactory:hM(a.type))(s,a,c)(l,u);if(d===pM){const e=r+1;if(void 0!==t[e])return n(e)}return d}(0)}}));class ej extends OM{constructor(){super(...arguments),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"pluginKey",QN)}static get PLUGIN_KEY(){return QN}static get PLUGIN_PRIORITY(){return 170}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,IM)),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&n.isHeader()},relativeToGroup:Fb,position:"before",group:ZN})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(ZN)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];super.updateHeaderClasses(e,...n),Ni(e,function(e){const t=e.className.split(" "),n=new RegExp(`^${JN}-[0-9]{1,2}$`);return t.filter((e=>n.test(e)))}(e)),!1!==this.enabled&&Ai(e,function(e,t,n){const r=[];return!1===n||e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&r.push(`${JN}-${e.getIndexOfColumnInSortQueue(t)+1}`),r}(...n))}onAfterOnCellMouseDown(e,t){!1!==CM(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,IM))):this.sort(this.getColumnNextConfig(t.col)))}}function tj(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class nj extends MC{constructor(){super(...arguments),tj(this,"dragged",[]),tj(this,"lastSetCell",null)}static get PLUGIN_KEY(){return"multipleSelectionHandles"}static get PLUGIN_PRIORITY(){return 160}isEnabled(){return ga()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function n(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const n=e.dragged.indexOf(t);if(-1===n)return!1;0===n?e.dragged=e.dragged.slice(0,1):1===n&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",(t=>{let n;return Oi(t.target,"topSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):Oi(t.target,"bottomSelectionHandle-HitArea")?(n=e.hot.getSelectedRangeLast(),e.dragged.push("bottom"),e.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},t.preventDefault(),!1):void 0})),this.eventManager.addEventListener(t,"touchend",(t=>Oi(t.target,"topSelectionHandle-HitArea")?(n.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):Oi(t.target,"bottomSelectionHandle-HitArea")?(n.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0)),this.eventManager.addEventListener(t,"touchmove",(t=>{const{rootDocument:n}=this.hot;let r,o,i,s,a,l;if(0===e.dragged.length)return;const u=n.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);u&&u!==e.lastSetCell&&("TD"!==u.nodeName&&"TH"!==u.nodeName||(r=e.hot.getCoords(u),-1===r.col&&(r.col=0),o=e.hot.getSelectedRangeLast(),i=o.getWidth(),s=o.getHeight(),a=o.getDirection(),1===i&&1===s&&e.hot.selection.setRangeEnd(r),l=e.getCurrentRangeCoords(o,r,e.touchStartRange.direction,a,e.dragged[0]),null!==l.start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=u),t.preventDefault())}))}getCurrentRangeCoords(e,t,n,r,o){const i=e.getTopStartCorner(),s=e.getBottomEndCorner(),a=e.getBottomStartCorner(),l=e.getTopEndCorner();let u={start:null,end:null};switch(n){case"NE-SW":switch(r){case"NE-SW":case"NW-SE":u="top"===o?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SE-NW":"bottom"===o&&(u={start:this.hot._createCellCoords(s.row,t.col),end:this.hot._createCellCoords(t.row,i.col)})}break;case"NW-SE":switch(r){case"NE-SW":"top"===o?u={start:t,end:a}:u.end=t;break;case"NW-SE":"top"===o?u={start:t,end:s}:u.end=t;break;case"SE-NW":"top"===o?u={start:t,end:i}:u.end=t;break;case"SW-NE":"top"===o?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(r){case"NW-SE":u="bottom"===o?{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,s.col)};break;case"SW-NE":u="top"===o?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,s.col)}:{start:this.hot._createCellCoords(t.row,i.col),end:this.hot._createCellCoords(i.row,t.col)};break;case"SE-NW":"bottom"===o?u={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(i.row,t.col)}:"top"===o&&(u={start:a,end:t})}break;case"SE-NW":switch(r){case"NW-SE":case"NE-SW":case"SW-NE":"top"===o&&(u.end=t);break;case"SE-NW":"top"===o?u.end=t:u={start:t,end:i}}}return u}isDragged(){return this.dragged.length>0}}function rj(){let{label:e="",colspan:t=1,origColspan:n=1,collapsible:r=!1,crossHiddenColumns:o=[],isCollapsed:i=!1,isHidden:s=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:u=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:n,collapsible:r,isCollapsed:i,crossHiddenColumns:o,isHidden:s,isRoot:a,isPlaceholder:l,headerClassNames:u}}function oj(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function ij(e,t){return e.get(aj(e,t))}function sj(e,t,n){return e.set(aj(e,t),n),n}function aj(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const lj=["label","collapsible"];var uj=new WeakMap,cj=new WeakMap,dj=new WeakMap;class hj{constructor(){oj(this,uj,[]),oj(this,cj,0),oj(this,dj,1/0)}setColumnsLimit(e){sj(dj,this,e)}setData(){sj(uj,this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const n=[];if(0===t)return n;xs(e,(e=>{const r=[];let o=0;n.push(r),xs(e,(e=>{const n=rj();if(Zs(e)){const{label:t,colspan:r,headerClassName:o}=e;n.label=Es(t),"number"==typeof r&&r>1&&(n.colspan=r,n.origColspan=r),"string"==typeof o&&(n.headerClassNames=[...o.split(" ")])}else n.label=Es(e);o+=n.origColspan;let i=!1;if(o>=t&&(n.colspan=n.origColspan-(o-t),n.origColspan=n.colspan,i=!0),r.push(n),n.colspan>1)for(let e=0;e<n.colspan-1;e++)r.push({label:"",isPlaceholder:!0});return!i}))}));const r=Math.max(...Ms(n,(e=>e.length)));return xs(n,(e=>{if(e.length<r){const t=Ms(new Array(r-e.length),(()=>rj()));e.splice(e.length,0,...t)}})),n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ij(dj,this))),sj(cj,this,ij(uj,this).length)}getData(){return ij(uj,this)}mergeWith(e){xs(e,(e=>{let{row:t,col:n,...r}=e;const o=this.getHeaderSettings(t,n);null!==o&&Gs(o,r,lj)}))}map(e){xs(ij(uj,this),(t=>{xs(t,(t=>{const n=e({...t});Zs(n)&&Gs(t,n,lj)}))}))}getHeaderSettings(e,t){var n;if(e>=ij(cj,this)||e<0)return null;const r=ij(uj,this)[e];return!1===Array.isArray(r)||t>=r.length?null:null!==(n=r[t])&&void 0!==n?n:null}getHeadersSettings(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r=[];if(e>=ij(cj,this)||e<0)return r;const o=ij(uj,this)[e];let i=0;for(let e=t;e<o.length;e++){const t=o[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=t.colspan,r.push(t),t.colspan>1&&(e+=t.colspan-1),i===n)break;if(i>n)throw new Error("The last column settings cannot overlap the other header layers")}return r}getLayersCount(){return ij(cj,this)}getColumnsCount(){return ij(cj,this)>0?ij(uj,this)[0].length:0}clear(){sj(uj,this,[]),sj(cj,this,0)}}function pj(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fj="DF-pre-order",mj=new Map([[fj,function e(t,n){let r=t.call(n,this);for(let o=0;o<this.childs.length;o++){if(!1===r)return!1;r=e.call(this.childs[o],t,n)}return r}],["DF-post-order",function e(t,n){for(let r=0;r<this.childs.length;r++)if(!1===e.call(this.childs[r],t,n))return!1;return t.call(n,this)}],["BF",function(e,t){const n=[this];!function r(){if(0===n.length)return;const o=n.shift();n.push(...o.childs),!1!==e.call(t,o)&&r()}()}]]);class gj{constructor(e){pj(this,"data",{}),pj(this,"parent",null),pj(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new gj({...e.data});for(let n=0;n<e.childs.length;n++)t.addChild(this.cloneTree(e.childs[n]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BF";if(!mj.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);mj.get(t).call(this,e,this)}walkUp(e){const t=this,n=r=>{!1!==e.call(t,r)&&null!==r.parent&&n(r.parent)};n(this)}}function bj(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function yj(e,t){return e.get(wj(e,t))}function wj(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var vj=new WeakMap,Sj=new WeakMap,Cj=new WeakMap;class _j{constructor(e){bj(this,vj,new Map),bj(this,Sj,new Map),bj(this,Cj,null),function(e,t,n){e.set(wj(e,t),n)}(Cj,this,e)}getRoots(){return Array.from(yj(vj,this).values())}getRootByColumn(e){let t;return yj(Sj,this).has(e)&&(t=yj(vj,this).get(yj(Sj,this).get(e))),t}getNode(e,t){const n=this.getRootByColumn(t);if(!n)return;const r=t-yj(Sj,this).get(t);let o,i=0;return n.walkDown((n=>{const{data:{origColspan:s,headerLevel:a}}=n;if(e===a){if(r>=i&&r<=i+s-1)return o=n,o.data.isRoot=t===o.data.columnIndex,!1;i+=s}})),o}rebuildTreeIndex(){let e=0;yj(Sj,this).clear(),xs(yj(vj,this),(t=>{let[,{data:{colspan:n}}]=t;for(let t=e;t<e+n;t++)yj(Sj,this).set(t,e);e+=n}))}buildTree(){this.clear();const e=yj(Cj,this).getColumnsCount();let t=0;for(;t<e;){const e=yj(Cj,this).getHeaderSettings(0,t),n=new gj;yj(vj,this).set(t,n),this.buildLeaves(n,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const o=yj(Cj,this).getHeadersSettings(n,t,r);n+=1,xs(o,(r=>{const o={...r,headerLevel:n-1,columnIndex:t};let i;1===n?(e.data=o,i=e):(i=new gj(o),e.addChild(i)),n<yj(Cj,this).getLayersCount()&&this.buildLeaves(i,t,n,r.origColspan),t+=r.origColspan}))}clear(){yj(vj,this).clear(),yj(Sj,this).clear()}}function Mj(e,t){e.walkDown((e=>{let{data:n,childs:r}=e;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(let e=1;e<n.colspan;e++)t(n.columnIndex+e)}))}function xj(e,t){let{childs:n}=e;if(0!==n.length)return n[0].data[t]}function kj(e){return xj(e,"origColspan")===e.data.origColspan}function Rj(e){const{data:t,childs:n}=e;if(!t.isCollapsed||t.isHidden||t.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if(kj(e))return Rj(n[0]);t.isCollapsed=!1;const r=n.slice(1),o=new Set;let i=0;if(r.length>0)xs(r,(e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;i+=t.colspan,Mj(e,(e=>{o.add(e)}))}));else{const{colspan:e,origColspan:n,columnIndex:r}=t;i=n-e;for(let e=1;e<n;e++)o.add(r+e)}return e.walkUp((e=>{const{data:t}=e;t.colspan+=i,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):kj(e)&&(t.isCollapsed=xj(e,"isCollapsed"))})),{rollbackModification:()=>Tj(e),affectedColumns:Array.from(o),colspanCompensation:i}}function Tj(e){var t;const{data:n,childs:r}=e;if(n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if(kj(e))return Tj(r[0]);n.isCollapsed=!0;const o=r.slice(1),i=new Set;if(o.length>0)xs(o,(e=>{Mj(e,(e=>{i.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((e=>{let{data:t}=e;t.isHidden=!0}))}));else{const{origColspan:e,columnIndex:t}=n;for(let n=1;n<e;n++){const e=t+n;i.add(e)}}const s=n.colspan-(null!==(t=xj(e,"colspan"))&&void 0!==t?t:1);return e.walkUp((e=>{const{data:t}=e;t.colspan-=s,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):kj(e)&&(t.isCollapsed=xj(e,"isCollapsed"))})),{rollbackModification:()=>Rj(e),affectedColumns:Array.from(i),colspanCompensation:s}}const Ej=new Map([["collapse",Tj],["expand",Rj],["hide-column",function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(Ts`The passed node is not the last node on the tree. Only for\x20
- the last node, the hide column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(n.includes(t))return;let r=!1;e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return r=!0,!1})),r||e.walkUp((e=>{const{data:n}=e;n.crossHiddenColumns.push(t),n.colspan>1?n.colspan-=1:n.isHidden=!0}))}],["show-column",function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(Ts`The passed node is not the last node on the tree. Only for\x20
- the last node, the show column modification can be applied.`);const{crossHiddenColumns:n}=e.data;if(!n.includes(t))return;let r=!1;e.walkUp((e=>{const{data:{collapsible:t}}=e;if(t)return r=!0,!1})),r||e.walkUp((e=>{const{data:n}=e;n.crossHiddenColumns.splice(n.crossHiddenColumns.indexOf(t),1),!n.isHidden&&n.colspan<n.origColspan&&(n.colspan+=1),n.isHidden=!1}))}]]);function Lj(e){const t=[];return xs(e,(e=>{e.walkDown((e=>{const n=e.data,{origColspan:r,columnIndex:o,headerLevel:i,crossHiddenColumns:s}=n,a=function(e,t){let n;return Array.isArray(e[t])?n=e[t]:(n=[],e[t]=n),n}(t,i);let l=!1;for(let e=o;e<o+r;e++)if(s.includes(e)||l)a.push({label:"",isPlaceholder:!0});else{const e=Ij(n);e.isRoot=!0,a.push(e),l=!0}}))})),t}function Ij(e){const{crossHiddenColumns:t,...n}=rj(e);return n}function Pj(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function Dj(e,t,n){return e.set(Oj(e,t),n),n}function Hj(e,t){return e.get(Oj(e,t))}function Oj(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Aj=new WeakMap,Nj=new WeakMap,jj=new WeakMap;class Yj{constructor(){Pj(this,Aj,new hj),Pj(this,Nj,new _j(Hj(Aj,this))),Pj(this,jj,[[]])}setState(e){Hj(Aj,this).setData(e);let t=!1;try{Hj(Nj,this).buildTree()}catch(e){Hj(Nj,this).clear(),Hj(Aj,this).clear(),t=!0}return Dj(jj,this,Lj(Hj(Nj,this).getRoots())),t}setColumnsLimit(e){Hj(Aj,this).setColumnsLimit(e)}mergeStateWith(e){const t=Ms(e,(e=>{let{row:t,...n}=e;return{row:t<0?this.rowCoordsToLevel(t):t,...n}}));Hj(Aj,this).mergeWith(t),Hj(Nj,this).buildTree(),Dj(jj,this,Lj(Hj(Nj,this).getRoots()))}mapState(e){Hj(Aj,this).map(e),Hj(Nj,this).buildTree(),Dj(jj,this,Lj(Hj(Nj,this).getRoots()))}mapNodes(e){return Cs(Hj(Nj,this).getRoots(),((t,n)=>(n.walkDown((n=>{const r=e(n.data);void 0!==r&&t.push(r)})),t)),[])}triggerNodeModification(e,t,n){t<0&&(t=this.rowCoordsToLevel(t));const r=Hj(Nj,this).getNode(t,n);let o;return r&&(o=function(e,t,n){if(!Ej.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return Ej.get(e)(t,n)}(e,r,n),Dj(jj,this,Lj(Hj(Nj,this).getRoots()))),o}triggerColumnModification(e,t){return this.triggerNodeModification(e,-1,t)}rowCoordsToLevel(e){if(e>=0)return null;const t=e+Math.max(this.getLayersCount(),1);return t<0?null:t}levelToRowCoords(e){if(e<0)return null;const t=e-Math.max(this.getLayersCount(),1);return t>=0?null:t}getHeaderSettings(e,t){var n,r;return e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount()?null:null!==(n=null===(r=Hj(jj,this)[e])||void 0===r?void 0:r[t])&&void 0!==n?n:null}getHeaderTreeNodeData(e,t){const n=this.getHeaderTreeNode(e,t);return n?{...n.data}:null}getHeaderTreeNode(e,t){if(e<0&&(e=this.rowCoordsToLevel(e)),null===e||e>=this.getLayersCount())return null;return Hj(Nj,this).getNode(e,t)||null}findTopMostEntireHeaderLevel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=t-e+1;let r=!1,o=null;for(let i=e;i<=t;i++){const s=Hj(Nj,this).getRootByColumn(i);if(!s)break;r=!0,s.walkDown((r=>{const{columnIndex:i,headerLevel:s,origColspan:a,isHidden:l}=r.data;l||a<=n&&i>=e&&i+a-1<=t&&(null===o||s<o)&&(o=s)}),fj)}return r&&null===o?-1:this.levelToRowCoords(null!=o?o:0)}findLeftMostColumnIndex(e,t){var n;const{isRoot:r}=null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0};if(r)return t;let o=t-1;for(;o>=0;){var i;const{isRoot:t}=null!==(i=this.getHeaderSettings(e,o))&&void 0!==i?i:{isRoot:!0};if(t)break;o-=1}return o}findRightMostColumnIndex(e,t){var n;const{isRoot:r,origColspan:o}=null!==(n=this.getHeaderSettings(e,t))&&void 0!==n?n:{isRoot:!0,origColspan:1};if(r)return t+o-1;let i=t+1;for(;i<this.getColumnsCount();){var s;const{isRoot:t}=null!==(s=this.getHeaderSettings(e,i))&&void 0!==s?s:{isRoot:!0};if(t)break;i+=1}return i-1}getLayersCount(){return Hj(Aj,this).getLayersCount()}getColumnsCount(){return Hj(Aj,this).getColumnsCount()}clear(){Dj(jj,this,[]),Hj(Aj,this).clear(),Hj(Nj,this).clear()}}function Fj(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zj=class{constructor(e,t){Fj(this,"hot",void 0),Fj(this,"nestedHeaderSettingsGetter",void 0),Fj(this,"layersCount",0),Fj(this,"container",void 0),Fj(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),n=t.length;this.widthsMap.clear();for(let e=0;e<n;e++){const n=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),r=this.hot.toPhysicalColumn(n);this.widthsMap.setValueAtIndex(r,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:n}=this.hot,r=t.createDocumentFragment(),o=t.createElement("table"),i=!!this.hot.getSettings().dropdownMenu,s=n.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const r=t.createElement("tr");for(let o=0;o<s;o++){let s=n.getVisualFromRenderableIndex(o);null===s&&(s=o);const a=t.createElement("th"),l=this.nestedHeaderSettingsGetter(e,s);if(l&&(!l.isPlaceholder||l.isHidden)){let e=l.label;i&&(e+='<button class="changeType"></button>'),Vi(a,e),a.colSpan=l.colspan,r.appendChild(a)}}o.appendChild(r)}r.appendChild(o),e.appendChild(r)}clear(){this.widthsMap.clear(),this.container=null}};function Wj(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vj(e,t,n){Bj(e,t),t.set(e,n)}function Bj(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $j(e,t,n){return e.set(Gj(e,t),n),n}function Uj(e,t){return e.get(Gj(e,t))}function Gj(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Kj="nestedHeaders";var qj=new WeakMap,Xj=new WeakMap,Jj=new WeakMap,Qj=new WeakMap,Zj=new WeakMap,eY=new WeakSet;class tY extends MC{constructor(){var e;super(...arguments),Bj(this,e=eY),e.add(this),Vj(this,qj,new Yj),Vj(this,Xj,null),Vj(this,Jj,null),Vj(this,Qj,!1),Vj(this,Zj,null),Wj(this,"ghostTable",new zj(this.hot,((e,t)=>this.getHeaderSettings(e,t)))),Wj(this,"detectedOverlappedHeaders",!1)}static get PLUGIN_KEY(){return Kj}static get PLUGIN_PRIORITY(){return 280}isEnabled(){return!!this.hot.getSettings()[Kj]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||Ea(Ts`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
- passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",(()=>Gj(eY,this,yY).call(this))),this.addHook("afterLoadData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,wY).call(e,...n)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,sY).call(e,...n)})),this.addHook("afterOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,aY).call(e,...n)})),this.addHook("beforeOnCellMouseOver",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,lY).call(e,...n)})),this.addHook("beforeOnCellMouseUp",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,uY).call(e,...n)})),this.addHook("beforeSelectionHighlightSet",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,cY).call(e,...n)})),this.addHook("modifyTransformStart",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,dY).call(e,...n)})),this.addHook("afterSelection",(()=>Gj(eY,this,nY).call(this))),this.addHook("afterSelectionFocusSet",(()=>Gj(eY,this,nY).call(this))),this.addHook("beforeViewportScrollHorizontally",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,rY).call(e,...n)})),this.addHook("afterGetColumnHeaderRenderers",(e=>Gj(eY,this,pY).call(this,e))),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,mY).call(e,...n)})),this.addHook("modifyColumnHeaderValue",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,gY).call(e,...n)})),this.addHook("beforeHighlightingColumnHeader",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,oY).call(e,...n)})),this.addHook("beforeCopy",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,iY).call(e,...n)})),this.addHook("beforeSelectColumns",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,hY).call(e,...n)})),this.addHook("afterViewportColumnCalculatorOverride",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,fY).call(e,...n)})),this.addHook("modifyFocusedElement",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Gj(eY,e,bY).call(e,...n)})),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",(()=>Gj(eY,this,nY).call(this))),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",(()=>Gj(eY,this,nY).call(this))),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();Uj(qj,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=Uj(qj,this).setState(e)),this.detectedOverlappedHeaders&&Ea(Ts`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
- is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach(((e,t)=>{const n=!0===e?"hide-column":"show-column";Uj(qj,this).triggerColumnModification(n,t)})),!Uj(Xj,this)&&this.enabled&&$j(Xj,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((e=>{e.forEach((e=>{let{op:t,index:n,newValue:r}=e;if("replace"===t){const e=!0===r?"hide-column":"show-column";Uj(qj,this).triggerColumnModification(e,n)}})),this.ghostTable.buildWidthsMap()}))),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),Uj(qj,this).clear(),Uj(Xj,this).unsubscribe(),$j(Xj,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return Uj(qj,this)}getLayersCount(){return Uj(qj,this).getLayersCount()}getHeaderSettings(e,t){return Uj(qj,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,n=e.wtTable.THEAD,r=e.wtOverlays.topOverlay.clone.wtTable.THEAD,o=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=n.childNodes[e];if(!t)break;const i=r.childNodes[e],s=o?o.childNodes[e]:null;for(let e=0,n=t.childNodes.length;e<n;e++)t.childNodes[e].removeAttribute("colspan"),Ni(t.childNodes[e],"hiddenHeader"),i&&i.childNodes[e]&&(i.childNodes[e].removeAttribute("colspan"),Ni(i.childNodes[e],"hiddenHeader")),o&&s&&s.childNodes[e]&&(s.childNodes[e].removeAttribute("colspan"),Ni(s.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const n=this.hot.view._wt.getSetting("fixedColumnsStart");return(r,o)=>{var i;const{columnIndexMapper:s,view:a}=this.hot;let l=s.getVisualFromRenderableIndex(r);null===l&&(l=r),o.removeAttribute("colspan"),Ni(o,"hiddenHeader"),Ni(o,"hiddenHeaderText");const{colspan:u,isHidden:c,isPlaceholder:d,headerClassNames:h}=null!==(i=Uj(qj,this).getHeaderSettings(e,l))&&void 0!==i?i:{label:""};if(d||c)Ai(o,"hiddenHeader");else if(u>1){var p,f,m;const{wtOverlays:e}=a._wt,t=null===(p=e.topInlineStartCornerOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(o),i=null===(f=e.inlineStartOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(o);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(o))&&l<n&&Ai(o,"hiddenHeaderText");const s=t||i?Math.min(u,n-r):u;s>1&&o.setAttribute("colspan",s)}if(this.hot.view.appendColHeader(l,o,(function(){return t.getColumnHeaderValue(...arguments)}),e),!d&&!c){const e=o.querySelector("div.relative");e&&h&&h.length>0&&(Ni(e,this.hot.getColumnMeta(l).headerClassName),Ai(e,h))}}}getColumnHeaderValue(e,t){var n;const{isHidden:r,isPlaceholder:o}=null!==(n=Uj(qj,this).getHeaderSettings(t,e))&&void 0!==n?n:{};return o||r?"":this.hot.getColHeader(e,t)}destroy(){$j(qj,this,null),null!==Uj(Xj,this)&&(Uj(Xj,this).unsubscribe(),$j(Xj,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return Uj(qj,this).getHeaderTreeNodeData(e.row,e.col)}}function nY(){var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeLast();if(!t)return;const{highlight:n}=t;if(n.isHeader()&&n.col>=0){const e=Uj(qj,this).findLeftMostColumnIndex(n.row,n.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}}function rY(e,t){var n;const r=this.hot.getSelectedRangeLast();if(!r)return e;const{highlight:o}=r,{navigableHeaders:i}=this.hot.getSettings(),s=this.hot.selection.isSelectedByColumnHeader(),a=i?o.row:null===(n=Uj(Zj,this))||void 0===n?void 0:n.row,l=s?e:o.col,u=a<0&&l>=0;if($j(Zj,this,null),!u)return e;const c=this.hot.getFirstFullyVisibleColumn(),d=this.hot.getLastFullyVisibleColumn(),h=d-c+1,p=Uj(qj,this).findLeftMostColumnIndex(a,l),f=Uj(qj,this).findRightMostColumnIndex(a,l),m=f-p+1;if(p<c&&f>d)return p;if(s){let e=null;return p>=c&&f>d?m>h?(t.value="start",e=p):(t.value="end",e=f):p<c&&f<=d&&(m>h?(t.value="end",e=f):(t.value="start",e=p)),e}return p<=c?p:f}function oY(e,t,n){const r=Uj(qj,this).getHeaderTreeNodeData(t,e);if(!r)return e;const{columnCursor:o,selectionType:i,selectionWidth:s}=n,{isRoot:a,colspan:l}=Uj(qj,this).getHeaderSettings(t,e);if(i===Zm){if(!a)return r.columnIndex}else if(i===Qm&&(l>s-o||!a))return null;return e}function iY(e,t,n){let{columnHeadersCount:r}=n;if(0!==r)for(let n=0;n<t.length;n++){const{startRow:r,startCol:i,endRow:s,endCol:a}=t[n],l=s-r+1;if(r>=0||1==i-a+1)break;for(let t=i;t<=a;t++)for(let n=r;n<=s;n++){var o;const r=l+n,s=t-i;0!==s&&(!1===(null===(o=Uj(qj,this).getHeaderTreeNodeData(n,t))||void 0===o?void 0:o.isRoot)&&(e[r][s]=""))}}}function sY(e,t,n,r){this._getHeaderTreeNodeDataByCoords(t)&&(r.column=!0)}function aY(e,t){const n=this._getHeaderTreeNodeDataByCoords(t);if(!n)return;$j(Jj,this,t.clone()),$j(Qj,this,!0);const{selection:r}=this.hot,o=r.isSelected()?r.getSelectedRange().current():null,i=[],{columnIndex:s,origColspan:a}=n,l=!r.inInSelection(t);e.shiftKey&&o?t.col<o.from.col?i.push(o.getTopEndCorner().col,s,t.row):t.col>o.from.col?i.push(o.getTopStartCorner().col,s+a-1,t.row):i.push(s,s+a-1,t.row):(Ta(e)||Ra(e)&&l||function(e){return e instanceof TouchEvent}(e))&&i.push(s,s+a-1,t.row),r.selectColumns(...i)}function lY(e,t,n,r){if(!this.hot.view.isMouseDown()||r.column)return;const o=this._getHeaderTreeNodeDataByCoords(t);if(!o)return;const{columnIndex:i,origColspan:s}=o,a=this.hot.getSelectedRangeLast(),l=a.getTopStartCorner(),u=a.getBottomEndCorner(),{from:c}=a;r.column=!0,r.cell=!0;const d=[],h=zl(t.row,-1/0,-1);t.col<c.col?d.push(u.col,i,h):t.col>c.col?d.push(l.col,i+s-1,h):d.push(i,i+s-1,h),this.hot.selection.selectColumns(...d)}function uY(){$j(Qj,this,!1)}function cY(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!Uj(Qj,this)||!e)return;const t=this.hot.getSelectedRangeLast(),n=t.getTopStartCorner().col,r=t.getBottomEndCorner().col,{columnIndex:o,origColspan:i}=Uj(qj,this).getHeaderTreeNodeData(Uj(Jj,this).row,Uj(Jj,this).col);if(t.setHighlight(Uj(Jj,this)),i>t.getWidth()||o<n||o+i-1>r){const e=Uj(qj,this).findTopMostEntireHeaderLevel(zl(n,o,o+i-1),zl(r,o,o+i-1));t.highlight.row=e,t.highlight.col=t.from.col}}function dY(e){const{highlight:t}=this.hot.getSelectedRangeLast(),n=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(n.isHeader()&&n.col>=0))return;const r=Uj(qj,this).findLeftMostColumnIndex(n.row,n.col),o=Uj(qj,this).findRightMostColumnIndex(n.row,n.col);if(e.col<0){const n=t.col>=r&&t.col<=o?r-1:o,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,t.col)-1,1)}else if(e.col>0){const n=t.col>=r&&t.col<=o?o+1:r,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(n,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,i)-1,1)}}function hY(e,t,n){const r=e.row,o=this._getHeaderTreeNodeDataByCoords({row:r,col:e.col}),i=this._getHeaderTreeNodeDataByCoords({row:r,col:t.col});$j(Zj,this,n.clone()),t.col<e.col?(o&&(e.col=o.columnIndex+o.origColspan-1),i&&(t.col=i.columnIndex)):t.col>=e.col&&(o&&(e.col=o.columnIndex),i&&(t.col=i.columnIndex+i.origColspan-1))}function pY(e){if(Uj(qj,this).getLayersCount()>0){e.length=0;for(let t=0;t<Uj(qj,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function fY(e){const t=Uj(qj,this).getLayersCount();let n=e.startColumn,r=!!t;for(let o=0;o<t;o++){const t=Uj(qj,this).findLeftMostColumnIndex(o,e.startColumn),i=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(r=!1),Nl(i)&&i<e.startColumn){n=i;break}}e.startColumn=r?Uj(qj,this).getHeaderTreeNodeData(0,n).columnIndex:n}function mY(e,t){const n=this.ghostTable.getWidth(t);return e>n?e:n}function gY(e,t,n){var r;const{label:o}=null!==(r=Uj(qj,this).getHeaderTreeNodeData(n,t))&&void 0!==r?r:{label:""};return o}function bY(e,t){if(e<0)return this.hot.getCell(e,Uj(qj,this).findLeftMostColumnIndex(e,t),!0)}function yY(){this.updatePlugin()}function wY(e,t){t||this.updatePlugin()}function vY(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SY=class{constructor(e,t){vY(this,"hot",void 0),vY(this,"data",null),vY(this,"plugin",void 0),vY(this,"parentReference",new WeakMap),vY(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},jl(0,this.data.length-1,(e=>{this.cacheNode(this.data[e],0,null)}))}cacheNode(e,t,n){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:n,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&xs(e.__children,(n=>{this.cacheNode(n,t+1,e)}))}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,n,r){let o=!1,i=t;if(isNaN(i)&&i.end)return i;let s=e;return s||(s={__children:this.data},o=!0,i-=1),null!=n&&i===n?{result:s,end:!0}:null!=r&&s===r?{result:i,end:!0}:(i+=1,s.__children&&xs(s.__children,(e=>{if(this.parentReference.set(e,o?null:s),i=this.readTreeNodes(e,i,n,r),isNaN(i)&&i.end)return!1})),i)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return ta(this.data[0],((t,n)=>{e[n]=null})),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const n=this.getRowParent(e);return null==n?this.data.indexOf(t):n.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&n.__children?(xs(n.__children,(e=>{t+=1,e.__children&&(t+=this.countChildren(e))})),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var n;return(null===(n=e.__children)||void 0===n?void 0:n[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let n=e;return isNaN(n)||(n=this.getDataObject(n)),n&&!!n.__children&&0!==(null===(t=n.__children)||void 0===t?void 0:t.length)}addChild(e,t){let n=t;this.hot.runHooks("beforeAddChild",e,n);let r=null;e&&(r=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",r+this.countChildren(e)+1,1);let o=e;e||(o=this.mockParent()),o.__children||(o.__children=[]),n||(n=this.mockNode()),o.__children.push(n),this.rewriteCache();const i=this.getRowIndex(n);this.hot.rowIndexMapper.insertIndexes(i,1),this.hot.runHooks("afterCreateRow",i,1),this.hot.runHooks("afterAddChild",e,n)}addChildAtIndex(e,t,n){let r,o=n;if(o||(o=this.mockNode()),this.hot.runHooks("beforeAddChild",e,o,t),e){const n=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",n,1),e.__children.splice(t,null,o),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(n,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",n,1),r=n}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),r=this.getRowIndex(this.data[t]);o=this.getDataObject(r),this.hot.runHooks("afterAddChild",e,o,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const n=this.translateTrimmedRow(e),r=this.getRowParent(n),o=this.getRowIndexWithinParent(n);switch(t){case"below":this.addChildAtIndex(r,o+1,null);break;case"above":this.addChildAtIndex(r,o,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;const r=[];Array.isArray(e)?(jl(e[0],e[2],(e=>{const t=this.translateTrimmedRow(e);r.push(this.getDataObject(t))})),jl(0,r.length-2,(e=>{this.detachFromParent(r[e],!1)})),n=r[r.length-1]):n=e;const o=this.getRowIndex(n),i=this.countChildren(n),s=this.getRowIndexWithinParent(n),a=this.getRowParent(n),l=this.getRowParent(a),u=this.getRowIndex(l);let c=null;if(this.hot.runHooks("beforeDetachChild",a,n),null!=s){const e=Array.from(new Array(o+i+1).keys()).splice(-1*(i+1));if(this.hot.runHooks("beforeRemoveRow",o,i+1,e,this.plugin.pluginName),a.__children.splice(s,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",o,i+1,e,this.plugin.pluginName),l){c=u+this.countChildren(l);const e=this.getChild(l,this.countChildren(l)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,i+1,this.plugin.pluginName),l.__children.push(n)}else c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c-2,i+1,this.plugin.pluginName),this.data.push(n)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",c-2,i+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",a,n,this.getRowIndex(n)),t&&this.hot.render()}filterData(e,t,n){const r=[];xs(n,(e=>{r.push(this.getDataObject(e))})),xs(r,(e=>{const t=this.getRowIndexWithinParent(e),n=this.getRowParent(e);null===n?this.data.splice(t,1):n.__children.splice(t,1)})),this.rewriteCache()}spliceData(e,t,n){const r=this.getDataObject(e-1);let o=null,i=e;r&&r.__children&&0===r.__children.length?(o=r,i=0):e<this.countAllRows()&&(o=this.getRowParent(e),i=this.getRowIndexWithinParent(e)),o?n?o.__children.splice(i,t,...n):o.__children.splice(i,t):n?this.data.splice(i,t,...n):this.data.splice(i,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,n=t;do{n=this.getRowParent(n),null!==n&&(t=n)}while(null!==n);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,n,r){const o=t===this.hot.countRows(),i=this.getRowParent(e),s=this.getRowIndexWithinParent(e),a=i.__children.slice(s,s+1),l=e>t;let u=o?this.getRowParent(t-1):this.getRowParent(t);null==u&&(u=this.getRowParent(t-1)),null==u&&(u=this.getDataObject(t-1)),u?u.__children||(u.__children=[]):(u=this.getDataObject(t),u.__children=[]);const c=o||n||r?u.__children.length:this.getRowIndexWithinParent(t),d=i===u;u.__children.splice(c,0,a[0]),i.__children.splice(s+(l&&d?1:0),1),this.syncRowWithRawSource(i),d||this.syncRowWithRawSource(u)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}};function CY(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _Y=class{constructor(e,t){CY(this,"hot",void 0),CY(this,"plugin",void 0),this.hot=t,this.plugin=e}};class MY extends _Y{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const n=this.hot.toPhysicalRow(e),r=this.dataManager.getRowLevel(n),o=this.dataManager.getDataObject(n),i=t.getElementsByTagName("DIV")[0],s=i.querySelector("span.rowHeader"),a=i.querySelectorAll('[class^="ht_nesting"]'),l=this.hot.getSettings().ariaTags;if(xs(a,(e=>{e&&i.removeChild(e)})),Ai(t,MY.CSS_CLASSES.indicatorContainer),r){const{rootDocument:e}=this.hot,t=s.cloneNode(!0);i.innerHTML="",jl(0,r-1,(()=>{const t=e.createElement("SPAN");Ai(t,MY.CSS_CLASSES.emptyIndicator),i.appendChild(t)})),i.appendChild(t)}if(this.dataManager.hasChildren(o)){const e=this.hot.rootDocument.createElement("DIV");l&&ji(e,[["aria-hidden","true"]]),Ai(t,MY.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(n)?(Ai(e,`${MY.CSS_CLASSES.button} ${MY.CSS_CLASSES.expandButton}`),l&&ji(t,[Ci(!1)])):(Ai(e,`${MY.CSS_CLASSES.button} ${MY.CSS_CLASSES.collapseButton}`),l&&ji(t,[Ci(!0)])),i.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);const n=this.hot.view.getStylesHandler();let r=11;n.isClassicTheme()||(r=2*n.getCSSVariableValue("cell-horizontal-padding")),this.rowHeaderWidthCache=Math.max(50,r+10*t+25),this.hot.render()}}const xY=MY,kY=class extends _Y{constructor(e,t){var n;super(e,t),n=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.lastCollapsedRows=n.collapsedRows.slice(0),n.expandMultipleChildren(n.lastCollapsedRows,e)},shiftStash:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),xs(n.lastCollapsedRows,((o,i)=>{o>=e&&o<t&&(n.lastCollapsedRows[i]=o+r)}))},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.collapseMultipleChildren(n.lastCollapsedRows,e),n.lastCollapsedRows=void 0},trimStash:(e,t)=>{jl(e,e+t-1,(e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)}))}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[];let o=null,i=null,s=null;return isNaN(e)?(o=e,i=this.dataManager.getRowIndex(o)):(o=this.dataManager.getDataObject(e),i=e),this.dataManager.hasChildren(o)&&xs(o.__children,(e=>{r.push(this.dataManager.getRowIndex(e))})),s=this.collapseRows(r,!0,!1),n&&this.trimRows(s),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(i)&&this.collapsedRows.push(i),s}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[];xs(e,(e=>{r.push(...this.collapseChildren(e,!1,!1))})),n&&this.trimRows(r),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[];return xs(e,(e=>{r.push(e),t&&this.collapseChildRows(e,r)})),n&&this.trimRows(r),r}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.dataManager.hasChildren(e)&&xs(this.dataManager.getDataObject(e).__children,(e=>{const n=this.dataManager.getRowIndex(e);t.push(n),this.collapseChildRows(n,t)})),n&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[];return xs(e,(e=>{r.push(e),t&&this.expandChildRows(e,r)})),n&&this.untrimRows(r),r}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.dataManager.hasChildren(e)&&xs(this.dataManager.getDataObject(e).__children,(e=>{if(!this.isAnyParentCollapsed(e)){const n=this.dataManager.getRowIndex(e);t.push(n),this.expandChildRows(n,t)}})),n&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[];let o=null,i=null,s=null;return isNaN(e)?(o=e,i=this.dataManager.getRowIndex(e)):(o=this.dataManager.getDataObject(e),i=e),this.collapsedRows.splice(this.collapsedRows.indexOf(i),1),this.dataManager.hasChildren(o)&&xs(o.__children,(e=>{const t=this.dataManager.getRowIndex(e);r.push(t)})),s=this.expandRows(r,!0,!1),n&&this.untrimRows(s),t&&this.renderAndAdjust(),s}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=[];xs(e,(e=>{r.push(...this.expandChildren(e,!1,!1))})),n&&this.untrimRows(r),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];xs(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];xs(e,(e=>{this.dataManager.hasChildren(e)&&t.push(e)})),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution((()=>{xs(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)}))}),!0)}untrimRows(e){this.hot.batchExecution((()=>{xs(e,(e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)}))}),!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),n=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&xs(t.__children,(e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return n=!1,!1})),n}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const n=this.translateTrimmedRow(t.row);Oi(e.target,xY.CSS_CLASSES.button)&&(this.areChildrenCollapsed(n)?this.expandChildren(n):this.collapseChildren(n),xa(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.render(),this.hot.view.adjustElementsSize()}};var RY=new WeakMap;const TY=class extends _Y{constructor(){var e,t,n;super(...arguments),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"dataManager",this.plugin.dataManager),n={row_above:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"above")},row_below:(e,t)=>{const n=t[t.length-1];this.dataManager.addSibling(n.start.row,"below")}},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=RY),t.set(e,n)}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(Jf)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedLast()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedLast();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(Qf)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedLast())},disabled:()=>{const e=this.hot.getSelectedLast(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return jl(0,e.items.length-1,(n=>{if(0===n)return xs(t,((t,r)=>{e.items.splice(n+r,0,t)})),!1})),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return jl(0,e.items.length-1,(t=>{const n=(r=RY,o=this,r.get(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(r,o)))[e.items[t].key];var r,o;null!=n&&(e.items[t].callback=n)})),e}};function EY(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class LY{constructor(e){EY(this,"plugin",void 0),EY(this,"hot",void 0),EY(this,"dataManager",void 0),EY(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,n,r){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:n,movePossible:r}))return!1;this.movedToCollapsed=!1;const o=n===this.hot.countRows(),i=o?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(n);let s=!0;const a=e.map((e=>{if(!s)return!1;const t=this.dataManager.translateTrimmedRow(e);return s=this.shouldAllowMoving(t,i),t})),l=-1===a.indexOf(i);if(!s||!l)return!1;const u=this.getBaseParent(a),c=this.getTargetParent(o,i),d=u===c;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(c),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(a,i,d),this.moveRows(a,i,c),this.dataManager.rewriteCache(),this.moveCellsMeta(a,i),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,n,r,r&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,n),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:n,dropIndex:r,movePossible:o}=e;let i=!1;return Is(r)&&(Ea(Ts`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
- when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,n,r,o,!1),i=!0),i}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let n=this.dataManager.getRowParent(e?t-1:t);return null==n&&(n=this.dataManager.getRowParent(t-1)),n}shiftCollapsibleParentsLocations(e,t,n){n||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,n){const r=t===this.dataManager.getRowIndex(n)+this.dataManager.countChildren(n)+1;this.hot.batchRender((()=>{e.forEach((e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,r)}))}))}moveCellsMeta(e,t){const n=[],r=Math.max(...e)<t;e.forEach((e=>{n.push(this.hot.getCellMetaAtRow(e))})),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(r?n.length:0),0,...n)}selectCells(e,t){const n=e.length;let r=0,o=0;if(this.movedToCollapsed){let i=null;i=e[n-1]<t?this.dataManager.translateTrimmedRow(t-n):this.dataManager.translateTrimmedRow(t);const s=this.dataManager.getRowParent(null===i?this.hot.countSourceRows()-1:i-1),a=this.dataManager.getRowIndex(s);r=this.dataManager.untranslateTrimmedRow(a),o=r}else e[n-1]<t?(o=t-1,r=o-n+1):(r=t,o=r+n-1);this.hot.selectCells([[r,0,o,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some(((e,n)=>e-n!==t))}}function IY(e,t,n){PY(e,t),t.set(e,n)}function PY(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function DY(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HY(e,t){return e.get(AY(e,t))}function OY(e,t,n){return e.set(AY(e,t),n),n}function AY(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const NY="nestedRows",jY=NY;var YY=new WeakMap,FY=new WeakMap,zY=new WeakSet;class WY extends MC{constructor(){var e;super(...arguments),PY(this,e=zY),e.add(this),DY(this,"dataManager",null),DY(this,"headersUI",null),DY(this,"collapsedRowsMap",null),IY(this,YY,!1),IY(this,FY,!1)}static get PLUGIN_KEY(){return NY}static get PLUGIN_PRIORITY(){return 300}isEnabled(){return!!this.hot.getSettings()[NY]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new Yp),this.dataManager=new SY(this,this.hot),this.collapsingUI=new kY(this,this.hot),this.headersUI=new xY(this,this.hot),this.contextMenuUI=new TY(this,this.hot),this.rowMoveController=new LY(this),this.addHook("afterInit",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,nF).call(e,...n)})),this.addHook("beforeViewRender",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,rF).call(e,...n)})),this.addHook("modifyRowData",(function(){return e.onModifyRowData(...arguments)})),this.addHook("modifySourceLength",(function(){return e.onModifySourceLength(...arguments)})),this.addHook("beforeDataSplice",(function(){return e.onBeforeDataSplice(...arguments)})),this.addHook("filterData",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,$Y).call(e,...n)})),this.addHook("afterContextMenuDefaultOptions",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,UY).call(e,...n)})),this.addHook("afterGetRowHeader",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,GY).call(e,...n)})),this.addHook("beforeOnCellMouseDown",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,BY).call(e,...n)})),this.addHook("beforeRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,XY).call(e,...n)})),this.addHook("afterRemoveRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,qY).call(e,...n)})),this.addHook("beforeAddChild",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,JY).call(e,...n)})),this.addHook("afterAddChild",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,QY).call(e,...n)})),this.addHook("beforeDetachChild",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,ZY).call(e,...n)})),this.addHook("afterDetachChild",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,eF).call(e,...n)})),this.addHook("modifyRowHeaderWidth",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,KY).call(e,...n)})),this.addHook("afterCreateRow",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,tF).call(e,...n)})),this.addHook("beforeRowMove",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return AY(zY,e,VY).call(e,...n)})),this.addHook("beforeLoadData",(e=>AY(zY,this,oF).call(this,e))),this.addHook("beforeUpdateData",(e=>AY(zY,this,oF).call(this,e))),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const n=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return n&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(n)&&-1===n.col&&n.row>=0},group:jY,relativeToGroup:Fb,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(jY)}disableCoreAPIModifiers(){OY(FY,this,!0)}enableCoreAPIModifiers(){OY(FY,this,!1)}onModifyRowData(e){if(!HY(FY,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!HY(FY,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,n){return!(!HY(FY,this)&&!this.dataManager.isRowHighestLevel(e)&&(this.dataManager.spliceData(e,t,n),1))}destroy(){super.destroy()}}function VY(e,t,n,r){return this.rowMoveController.onBeforeRowMove(e,t,n,r)}function BY(e,t,n){this.collapsingUI.toggleState(e,t,n)}function $Y(e,t,n){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(n[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(n[0],null,-1*t),this.dataManager.filterData(e,t,n),OY(YY,this,!0),this.dataManager.getData().slice()}function UY(e){return this.contextMenuUI.appendOptions(e)}function GY(e,t){this.headersUI.appendLevelIndicators(e,t)}function KY(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function qY(e,t,n,r){r!==this.pluginName&&this.hot._registerTimeout((()=>{OY(YY,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()}))}function XY(e,t,n){const r=Array.from(n.reduce(((e,t)=>{if(this.dataManager.isParent(t)){const n=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(n)&&n.forEach((t=>e.add(this.dataManager.getRowIndex(t)))),e}return e.add(t)}),new Set));n.length=0,n.push(...r)}function JY(){this.collapsingUI.collapsedRowsStash.stash()}function QY(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function ZY(){this.collapsingUI.collapsedRowsStash.stash()}function eF(e,t,n){this.collapsingUI.collapsedRowsStash.shiftStash(n,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function tF(){this.dataManager.rewriteCache()}function nF(){this.headersUI.updateRowHeaderWidth()}function rF(e,t){HY(YY,this)&&(t.skipRender=!0)}function oF(e){if(!function(e){return!!(Array.isArray(e)&&e.length&&e.every((e=>"object"==typeof e&&!Array.isArray(e)&&null!==e)))}(e))return La("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[NY]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}function iF(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sF=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;iF(this,"rootWindow",void 0),iF(this,"prefix",void 0),iF(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const n=void 0===e?t:e,r=this.rootWindow.localStorage.getItem(`${this.prefix}_${n}`);return null===r?void 0:JSON.parse(r)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){xs(this.savedKeys,((e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)})),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}};Ua.getSingleton().register("persistentStateSave"),Ua.getSingleton().register("persistentStateLoad"),Ua.getSingleton().register("persistentStateReset");const aF="persistentState";class lF extends MC{constructor(){super(...arguments),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"storage",void 0)}static get PLUGIN_KEY(){return aF}static get PLUGIN_PRIORITY(){return 0}isEnabled(){return!!this.hot.getSettings()[aF]}enablePlugin(){this.enabled||(this.storage||(this.storage=new sF(this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",((e,t)=>this.saveValue(e,t))),this.addHook("persistentStateLoad",((e,t)=>this.loadValue(e,t))),this.addHook("persistentStateReset",(()=>this.resetValue())),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}function uF(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cF(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const dF="search",hF=function(e,t,n,r,o){e.getCellMeta(t,n).isSearchResult=o},pF=function(e,t,n){return!(Is(e)||null===e||!e.toLocaleLowerCase||0===e.length||Is(t)||null===t||-1===t.toString().toLocaleLowerCase(n.locale).indexOf(e.toLocaleLowerCase(n.locale)))};var fF=new WeakSet;class mF extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=fF),t.add(e),uF(this,"callback",hF),uF(this,"queryMethod",pF),uF(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return dF}static get PLUGIN_PRIORITY(){return 190}isEnabled(){return this.hot.getSettings()[dF]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[dF];this.updatePluginSettings(t),this.addHook("beforeRenderer",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cF(fF,e,gF).call(e,...n)})),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cF(fF,e,gF).call(e,...n)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",(()=>{this.hot.removeHook("beforeRenderer",t)})),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const r=this.hot.countRows(),o=this.hot.countCols(),i=[],s=this.hot;return jl(0,r-1,(r=>{jl(0,o-1,(o=>{const a=this.hot.getDataAtCell(r,o),l=this.hot.getCellMeta(r,o),u=l.search.callback||t,c=(l.search.queryMethod||n)(e,a,l);if(c){const e={row:r,col:o,data:a};i.push(e)}u&&u(s,r,o,a,c)}))})),i}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){Zs(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function gF(e,t,n,r,o,i){const s=i.className||[];let a=[];"string"==typeof s?a=s.split(" "):a.push(...s),this.isEnabled()&&i.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),i.className=a.join(" ")}function bF(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class yF{constructor(e){bF(this,"viewportWidth",void 0),bF(this,"overwriteColumnWidthFn",void 0),bF(this,"baseWidths",new Map),bF(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}class wF extends yF{calculate(){const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,n]=t;return e+n}),0);if(this.viewportWidth-e<0)return void this.stretchedWidths.clear();const t=this.viewportWidth/e,n=[],r=[];let o=this.viewportWidth,i=0;if(this.baseWidths.forEach(((e,s)=>{const a=Math.round(e*t),l=this.overwriteColumnWidthFn(a,s);a===l&&a>=Jd?(n.push([s,l]),i+=l):a!==l&&(n.push([s,l]),r.push(s),o-=l)})),o<=Jd)return void this.stretchedWidths.clear();const s=o/i;let a=-1,l=0;n.forEach(((e,t)=>{let[o,i]=e,u=i;r.includes(o)||(u=Math.round(i*s)),this.stretchedWidths.set(o,u),a=o,t<n.length-1&&(l+=u)})),this.stretchedWidths.size>1&&this.stretchedWidths.set(a,Math.round(this.viewportWidth-l))}}function vF(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function SF(e,t){return e.get(_F(e,t))}function CF(e,t,n){return e.set(_F(e,t),n),n}function _F(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var MF=new WeakMap,xF=new WeakMap;class kF extends yF{constructor(){super(...arguments),vF(this,MF,0),vF(this,xF,-1)}prepare(e){super.prepare(e),CF(MF,this,0),CF(xF,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),CF(xF,this,e),CF(MF,this,t)}calculate(){if(-1===SF(xF,this))return;const e=Array.from(this.baseWidths).reduce(((e,t)=>{let[,n]=t;return e+n}),0),t=Math.max(this.viewportWidth-e+SF(MF,this),0);this.stretchedWidths.set(SF(xF,this),t)}}function RF(e,t,n){TF(e,t),t.set(e,n)}function TF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function EF(e,t){return e.get(IF(e,t))}function LF(e,t,n){return e.set(IF(e,t),n),n}function IF(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var PF=new WeakMap,DF=new WeakMap,HF=new WeakMap,OF=new WeakMap,AF=new WeakSet;class NF{constructor(e){var t;TF(this,t=AF),t.add(this),RF(this,PF,void 0),RF(this,DF,void 0),RF(this,HF,new Map([["all",new wF(IF(AF,this,FF).bind(this))],["last",new kF(IF(AF,this,FF).bind(this))]])),RF(this,OF,"none"),LF(PF,this,e),LF(DF,this,EF(PF,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){LF(OF,this,EF(HF,this).has(e)?e:"none")}refreshStretching(){"none"!==EF(OF,this)?EF(PF,this).batchExecution((()=>{EF(DF,this).clear();const e=EF(HF,this).get(EF(OF,this));let t=EF(PF,this).view.getViewportWidth();IF(AF,this,jF).call(this)&&(t-=ls(EF(PF,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<EF(PF,this).countCols();t++)EF(PF,this).columnIndexMapper.isHidden(EF(PF,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,IF(AF,this,YF).call(this,t));e.calculate(),e.getWidths().forEach((e=>{let[t,n]=e;EF(DF,this).setValueAtIndex(EF(PF,this).toPhysicalColumn(t),n)}))}),!0):EF(DF,this).clear()}getStretchedWidth(e){return EF(DF,this).getValueAtIndex(EF(PF,this).toPhysicalColumn(e))}}function jF(){const{view:e}=EF(PF,this);if(e.isVerticallyScrollableByWindow())return!1;const t=e.getViewportHeight(),n=EF(PF,this).countRows(),r=e.getStylesHandler().getDefaultRowHeight();let o=0,i=!1;for(let e=0;e<n;e++){var s;if(o+=(null!==(s=EF(PF,this).getRowHeight(e))&&void 0!==s?s:r)+(0===e?1:0),o>t){i=!0;break}}return i}function YF(e){var t;return null!==(t=EF(PF,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:Jd}function FF(e,t){return EF(PF,this).runHooks("beforeStretchingColumnWidth",e,t)}function zF(e,t,n){WF(e,t),t.set(e,n)}function WF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function VF(e,t,n){return e.set($F(e,t),n),n}function BF(e,t){return e.get($F(e,t))}function $F(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var UF=new WeakMap,GF=new WeakMap,KF=new WeakMap,qF=new WeakSet;class XF extends MC{constructor(){var e;super(...arguments),WF(this,e=qF),e.add(this),zF(this,UF,new NF(this.hot)),zF(this,GF,null),zF(this,KF,new ResizeObserver((e=>{requestAnimationFrame((()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach((e=>{let{contentRect:t}=e;null!==BF(GF,this)&&BF(GF,this)!==t.width&&(this.hot.refreshDimensions(),this.hot.view.adjustElementsSize()),VF(GF,this,t.width)}))}))})))}static get PLUGIN_KEY(){return"stretchColumns"}static get PLUGIN_PRIORITY(){return 155}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(BF(UF,this).useStrategy(this.hot.getSettings().stretchH),BF(KF,this).observe(this.hot.rootElement),this.addHook("beforeRender",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $F(qF,e,QF).call(e,...n)})),this.addHook("modifyColWidth",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $F(qF,e,JF).call(e,...n)}),10),super.enablePlugin())}updatePlugin(){BF(UF,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),BF(KF,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return BF(UF,this).getStretchedWidth(e)}destroy(){BF(KF,this).disconnect(),VF(KF,this,null),VF(UF,this,null),super.destroy()}}function JF(e,t,n){if(n===this.pluginName)return;const r=this.getColumnWidth(t);return"number"==typeof r?r:e}function QF(e){e&&BF(UF,this).refreshStretching()}function ZF(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var tz=new WeakSet;class nz extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=tz),t.add(e),ZF(this,"scrollbars",[]),ZF(this,"clones",[]),ZF(this,"lockedCollection",!1),ZF(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return"touchScroll"}static get PLUGIN_PRIORITY(){return 200}static get SETTING_KEYS(){return!0}isEnabled(){return la()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",(()=>ez(tz,this,rz).call(this))),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",(()=>ez(tz,this,oz).call(this))),this.addHook("afterMomentumScroll",(()=>ez(tz,this,iz).call(this)))}}function rz(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:n,topInlineStartCornerOverlay:r,bottomInlineStartCornerOverlay:o}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(n),r&&this.scrollbars.push(r),o&&o.clone&&this.scrollbars.push(o),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),n.needFullRender&&this.clones.push(n.clone.wtTable.holder.parentNode),r&&this.clones.push(r.clone.wtTable.holder.parentNode),o&&o.clone&&this.clones.push(o.clone.wtTable.holder.parentNode)}function oz(){this.freezeOverlays=!0,xs(this.clones,(e=>{Ai(e,"hide-tween")}))}function iz(){this.freezeOverlays=!1,xs(this.clones,(e=>{Ni(e,"hide-tween"),Ai(e,"show-tween")})),this.hot._registerTimeout((()=>{xs(this.clones,(e=>{Ni(e,"show-tween")}))}),400),xs(this.scrollbars,(e=>{e.refresh(),e.resetFixedPosition()})),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}const sz="trimRows";var az=new WeakSet;class lz extends MC{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=az),t.add(e),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return sz}static get PLUGIN_PRIORITY(){return 330}isEnabled(){return!!this.hot.getSettings()[sz]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new Yp),this.trimmedRowsMap.addLocalHook("init",(()=>function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(az,this,uz).call(this))),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[sz];Array.isArray(e)&&this.hot.batchExecution((()=>{this.trimmedRowsMap.clear(),xs(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),n=this.isValidConfig(e);let r=t;n&&(r=Array.from(new Set(t.concat(e)))),!1!==this.hot.runHooks("beforeTrimRow",t,r,n)&&(n&&this.hot.batchExecution((()=>{xs(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0),this.hot.runHooks("afterTrimRow",t,r,n,n&&r.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),n=this.isValidConfig(e);let r=t;const o=this.trimmedRowsMap.getValues().slice(),i=e.length>0;n&&i&&(xs(e,(e=>{o[e]=!1})),r=Cs(o,((e,t,n)=>(t&&e.push(n),e)),[])),!1!==this.hot.runHooks("beforeUntrimRow",t,r,n&&i)&&(n&&i&&this.trimmedRowsMap.setValues(o),this.hot.runHooks("afterUntrimRow",t,r,n&&i,n&&r.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every((e=>Number.isInteger(e)&&e>=0&&e<t))}destroy(){super.destroy()}}function uz(){const e=this.hot.getSettings()[sz];Array.isArray(e)&&this.hot.batchExecution((()=>{xs(e,(e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)}))}),!0)}class cz{constructor(e){(function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}function dz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class hz extends cz{constructor(e){let{stateBefore:t,range:n,type:r,alignment:o}=e;super("cell_alignment"),dz(this,"stateBefore",void 0),dz(this,"range",void 0),dz(this,"type",void 0),dz(this,"alignment",void 0),this.stateBefore=t,this.range=n,this.type=r,this.alignment=o}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",((e,n,r,o)=>{t.done((()=>new hz({stateBefore:e,range:n,type:r,alignment:o})))}))}undo(e,t){xs(this.range,(t=>{t.forAll(((t,n)=>{t>=0&&n>=0&&e.setCellMeta(t,n,"className",this.stateBefore[t][n]||" htLeft")}))})),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){kx(this.range,this.type,this.alignment,((t,n)=>e.getCellMeta(t,n)),((t,n,r,o)=>e.setCellMeta(t,n,r,o))),e.addHookOnce("afterViewRender",t),e.render()}}function pz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class fz extends cz{constructor(e){let{columns:t,finalIndex:n}=e;super("col_move"),pz(this,"columns",void 0),pz(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",((e,n)=>{!1!==e&&t.done((()=>new fz({columns:e,finalIndex:n})))}))}undo(e,t){const n=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),pP(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:r}=e;t<r&&(r-=1),n.moveColumn(r,t)})),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const n=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),n.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}function mz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class gz extends cz{constructor(e){let{currentSortState:t,newSortState:n}=e;super("col_sort"),mz(this,"previousSortState",void 0),mz(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=n}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",((e,n,r)=>{r&&t.done((()=>new gz({currentSortState:e,newSortState:n})))}))}undo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting"),o=r.isEnabled()?r:n;this.previousSortState.length?o.sort(this.previousSortState):o.clearSort(),t()}redo(e,t){const n=e.getPlugin("columnSorting"),r=e.getPlugin("multiColumnSorting");(r.isEnabled()?r:n).sort(this.nextSortState),t()}}function bz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class yz extends cz{constructor(e){let{index:t,amount:n}=e;super("insert_col"),bz(this,"index",void 0),bz(this,"amount",void 0),this.index=t,this.amount=n}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",((e,n,r)=>{t.done((()=>new yz({index:e,amount:n})),r)}))}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}function wz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class vz extends cz{constructor(e){let{index:t,amount:n}=e;super("insert_row"),wz(this,"index",void 0),wz(this,"amount",void 0),this.index=t,this.amount=n}static startRegisteringEvents(e,t){e.addHook("afterCreateRow",((e,n,r)=>{t.done((()=>new vz({index:e,amount:n})),r)}))}undo(e,t){const n=e.countRows(),r=e.getSettings().minSpareRows;this.index>=n&&this.index-r<n&&(this.index-=r),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row_above",this.index,this.amount,"UndoRedo.redo")}}function Sz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Cz extends cz{constructor(e){let{changes:t,selected:n,countCols:r,countRows:o}=e;super("change"),Sz(this,"changes",void 0),Sz(this,"selected",void 0),Sz(this,"countCols",void 0),Sz(this,"countRows",void 0),this.changes=t,this.selected=n,this.countCols=r,this.countRows=o}static startRegisteringEvents(e,t){e.addHook("beforeChange",(function(n,r){const o=n&&n.length;o&&n.find((e=>{const[,,t,n]=e;return t!==n}))&&t.done((()=>{const t=n.reduce(((e,t)=>(e.push([...t]),e)),[]);t.forEach((t=>{t[1]=e.propToCol(t[1])}));const r=o>1?this.getSelected():[[t[0][0],t[0][1]]];return new Cz({changes:t,selected:r,countCols:e.countCols(),countRows:e.countRows()})}),r)}))}undo(e,t){const n=qs(this.changes);for(let e=0,t=n.length;e<t;e++)n[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.undo");const r=e.countRows()-this.countRows;r>0&&e.alter("remove_row",null,r,"UndoRedo.undo");const o=e.countCols()-this.countCols;o>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,o,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const n=qs(this.changes);for(let e=0,t=n.length;e<t;e++)n[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(n,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}function _z(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Mz extends cz{constructor(e){let{conditionsStack:t,previousConditionsStack:n}=e;super("filter"),_z(this,"conditionsStack",void 0),_z(this,"previousConditionsStack",void 0),this.conditionsStack=t,this.previousConditionsStack=n}static startRegisteringEvents(e,t){e.addHook("beforeFilter",((e,n)=>{t.done((()=>new Mz({conditionsStack:e,previousConditionsStack:n})))}))}undo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.previousConditionsStack),n.filter()}redo(e,t){const n=e.getPlugin("filters");e.addHookOnce("afterViewRender",t),n.importConditions(this.conditionsStack),n.filter()}}class xz extends cz{constructor(e){let{data:t,cellRange:n}=e;super("merge_cells"),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"cellRange",void 0),this.cellRange=n,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",((n,r)=>{if(r)return;const o=n.getTopStartCorner(),i=n.getBottomEndCorner(),s=e.getData(o.row,o.col,i.row,i.col);t.done((()=>new xz({data:s,cellRange:n})))}))}undo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0);const r=this.cellRange.getTopStartCorner();e.populateFromArray(r.row,r.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange)}}function kz(e,t,n,r,o){const i=["visualRow","visualCol","row","col","prop"],s=i.length,a=[];return jl(r,o,(r=>{jl(t,n,(t=>{const n=e.getCellMeta(t,r);if(Object.keys(n).length!==s){const e=Object.fromEntries(Object.entries(n).filter((e=>{let[t]=e;return!1===i.includes(t)})));a.push([n.visualRow,n.visualCol,e])}}))})),a}function Rz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Tz extends cz{constructor(e){let{index:t,indexes:n,data:r,amount:o,headers:i,columnPositions:s,rowPositions:a,fixedColumnsStart:l,removedCellMetas:u}=e;super("remove_col"),Rz(this,"index",void 0),Rz(this,"indexes",void 0),Rz(this,"data",void 0),Rz(this,"amount",void 0),Rz(this,"headers",void 0),Rz(this,"columnPositions",void 0),Rz(this,"rowPositions",void 0),Rz(this,"fixedColumnsStart",void 0),Rz(this,"removedCellMetas",void 0),this.index=t,this.indexes=n,this.data=r,this.amount=o,this.headers=i,this.columnPositions=s.slice(0),this.rowPositions=a.slice(0),this.fixedColumnsStart=l,this.removedCellMetas=u}static startRegisteringEvents(e,t){e.addHook("beforeRemoveCol",((n,r,o,i)=>{t.done((()=>{const t=e.getSourceDataArray(),o=(e.countCols()+n)%e.countCols(),i=o+r-1,s=[],a=[],l=[];return jl(t.length-1,(n=>{const r=[],a=t[n];jl(o,i,(t=>{r.push(a[e.toPhysicalColumn(t)])})),s.push(r)})),jl(r-1,(t=>{l.push(e.toPhysicalColumn(o+t))})),Array.isArray(e.getSettings().colHeaders)&&jl(r-1,(t=>{a.push(e.getSettings().colHeaders[e.toPhysicalColumn(o+t)]||null)})),new Tz({index:o,indexes:l,data:s,amount:r,headers:a,columnPositions:e.columnIndexMapper.getIndexesSequence(),rowPositions:e.rowIndexMapper.getIndexesSequence(),fixedColumnsStart:e.getSettings().fixedColumnsStart,removedCellMetas:kz(e,0,e.countRows(),o,i)})}),i)}))}undo(e,t){e.getSettings().fixedColumnsStart=this.fixedColumnsStart;const n=this.indexes.slice(0).sort(),r=(e,t,r)=>r[this.indexes.indexOf(n[t])],o=this.data.length,i=[];for(let e=0;e<o;e++)i.push(Ms(this.data[e],r));const s=Ms(this.headers,r),a=[];e.columnIndexMapper.setIndexesSequence(this.columnPositions),e.alter("insert_col_start",e.toVisualColumn(this.indexes[0]),this.indexes.length,"UndoRedo.undo"),e.batchExecution((()=>{e.rowIndexMapper.setIndexesSequence(this.rowPositions),e.columnIndexMapper.setIndexesSequence(this.columnPositions)}),!0),xs(e.getSourceDataArray(),((e,t)=>{xs(n,((n,r)=>{e[n]=i[t][r],a.push([t,n,e[n]])}))})),void 0!==this.headers&&xs(s,((t,r)=>{e.getSettings().colHeaders[n[r]]=t})),this.removedCellMetas.forEach((t=>{let[n,r,o]=t;e.setCellMetaObject(n,r,o)})),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(a,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.redo")}}function Ez(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Lz extends cz{constructor(e){let{index:t,data:n,fixedRowsBottom:r,fixedRowsTop:o,rowIndexesSequence:i,removedCellMetas:s}=e;super("remove_row"),Ez(this,"index",void 0),Ez(this,"data",void 0),Ez(this,"fixedRowsBottom",void 0),Ez(this,"fixedRowsTop",void 0),Ez(this,"rowIndexesSequence",void 0),Ez(this,"removedCellMetas",void 0),this.index=t,this.data=n,this.fixedRowsBottom=r,this.fixedRowsTop=o,this.rowIndexesSequence=i,this.removedCellMetas=s}static startRegisteringEvents(e,t){e.addHook("beforeRemoveRow",((n,r,o,i)=>{t.done((()=>{const t=e.toPhysicalRow(n),o=t+r-1,i=qs(e.getSourceData(t,0,t+r-1,e.countSourceCols()-1));return new Lz({index:t,data:i,fixedRowsBottom:e.getSettings().fixedRowsBottom,fixedRowsTop:e.getSettings().fixedRowsTop,rowIndexesSequence:e.rowIndexMapper.getIndexesSequence(),removedCellMetas:kz(e,t,o,0,e.countCols()-1)})}),i)}))}undo(e,t){const n=e.getSettings(),r=[];n.fixedRowsBottom=this.fixedRowsBottom,n.fixedRowsTop=this.fixedRowsTop,this.data.forEach(((e,t)=>{Object.keys(e).forEach((n=>{const o=parseInt(n,10);r.push([this.index+t,isNaN(o)?n:o,e[n]])}))})),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),e.alter("insert_row_above",e.toVisualRow(this.index),this.data.length,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),this.removedCellMetas.forEach((t=>{let[n,r,o]=t;e.setCellMetaObject(n,r,o)})),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",e.toVisualRow(this.index),this.data.length,"UndoRedo.redo")}}function Iz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Pz extends cz{constructor(e){let{rows:t,finalIndex:n}=e;super("row_move"),Iz(this,"rows",void 0),Iz(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=n}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",((e,n)=>{!1!==e&&t.done((()=>new Pz({rows:e,finalIndex:n})))}))}undo(e,t){const n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),pP(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach((e=>{let{from:t,to:r}=e;t<r&&(r-=1),n.moveRow(r,t)})),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const n=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),n.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}class Dz extends cz{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),function(e,t,n){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",((e,n)=>{n||t.done((()=>new Dz({cellRange:e})))}))}undo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.mergeRange(this.cellRange,!0)}redo(e,t){const n=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),n.unmergeRange(this.cellRange,!0),e.render()}}function Hz(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oz(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const Az="undoRedo";Ua.getSingleton().register("beforeUndo"),Ua.getSingleton().register("afterUndo"),Ua.getSingleton().register("beforeRedo"),Ua.getSingleton().register("afterRedo");const Nz=new Set;var jz=new WeakSet;class Yz extends MC{static get PLUGIN_KEY(){return"undoRedo"}static get PLUGIN_PRIORITY(){return 1e3}static get SETTING_KEYS(){return!0}constructor(e){var t,n,r,o;super(e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=jz),o.add(r),Hz(this,"doneActions",[]),Hz(this,"undoneActions",[]),Hz(this,"ignoreNewActions",!1),t=e,n=this,[hz,fz,gz,yz,vz,Cz,Mz,xz,Tz,Lz,Pz,Dz].forEach((e=>e.startRegisteringEvents(t,n)))}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Oz(jz,e,Fz).call(e,...n)})),this.registerShortcuts(),Oz(jz,this,zz).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),Oz(jz,this,Wz).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:Az};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(Az)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const n=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",n,t))return;const r=e(),o=this.undoneActions.slice();this.doneActions.push(r),this.hot.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",o),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",o,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const n=qs(t);if(!1===this.hot.runHooks("beforeUndo",n))return;this.ignoreNewActions=!0;const r=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",r),t.undo(this.hot,(()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)})),this.hot.runHooks("afterRedoStackChange",r,this.undoneActions.slice()),this.hot.runHooks("afterUndo",n)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const n=qs(t);if(!1===this.hot.runHooks("beforeRedo",n))return;this.ignoreNewActions=!0;const r=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",r),t.redo(this.hot,(()=>{this.ignoreNewActions=!1,this.doneActions.push(t)})),this.hot.runHooks("afterUndoStackChange",r,this.doneActions.slice()),this.hot.runHooks("afterRedo",n)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function Fz(e,t){"loadData"===t&&this.clear()}function zz(){const e=e=>{Nz.has(e)||(Ea(Ts`The "${e}" method is deprecated and it will be removed\x20
- from the Core API in the future. Please use the method from the UndoRedo plugin\x20
- (e.g. \`hotInstance.getPlugin("undoRedo").${e}()\`).`),Nz.add(e))};this.hot.undo=()=>{e("undo"),this.undo()},this.hot.redo=()=>{e("redo"),this.redo()},this.hot.isUndoAvailable=()=>(e("isUndoAvailable"),this.isUndoAvailable()),this.hot.isRedoAvailable=()=>(e("isRedoAvailable"),this.isRedoAvailable()),this.hot.clearUndo=()=>{e("clear"),this.clear()},this.hot.undoRedo=this}function Wz(){delete this.hot.undo,delete this.hot.redo,delete this.hot.isUndoAvailable,delete this.hot.isRedoAvailable,delete this.hot.clearUndo,delete this.hot.undoRedo}function Vz(){il(iy),il(rv),il(iv),il(Av),il(jv),il(Kw),il(Yv),il(Fv),il(Vv),il(lw),il(Bv),lu(Uv),lu(uw),lu(Zv),lu(Gv),lu(tS),lu($v),lu(GS),lu(KS),lu(qS),lu(cw),lu(XS),fu(JS),fu(eC),fu(ZS),fu(tC),fu(rC),ab(oC),ab(iC),ab(aC),ab(lC),ab(uC),ab(cC),ab(dC),ab(hC),ab(dw),ab(pC),tu(WC),tu(o_),tu(v_),tu(N_),tu(J_),tu(OM),tu(UM),tu(qx),tu(sR),tu(GR),tu(yT),tu(xT),tu(AT),tu(dE),tu(VI),tu(JP),tu(LD),tu(BD),tu(oH),tu(HH),tu(dO),tu(VO),tu(vA),tu(MN),tu(ej),tu(nj),tu(tY),tu(WY),tu(lF),tu(mF),tu(XF),tu(nz),tu(lz),tu(Yz)}function Bz(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function $z(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(s+=(!0===a?"":" ")+t(r),a=!1,n&&n[r]&&(s+=" "+n[r]))}r[o]=s}return r}function Uz(e){const{variants:t,...n}=e,r={variants:t,style:Ve(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=Ve(e.style))})),r}const Gz=nn();function Kz(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function qz(e){return e?(t,n)=>n[e]:null}function Xz(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>Xz(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return Jz(e,n.variants,[t])}return n?.isProcessed?n.style:n}function Jz(e,t,n=[]){let r;e:for(let o=0;o<t.length;o+=1){const i=t[o];if("function"==typeof i.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(r))continue}else for(const t in i.props)if(e[t]!==i.props[t]&&e.ownerState?.[t]!==i.props[t])continue e;"function"==typeof i.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(r))):n.push(i.style)}return n}function Qz(e={}){const{themeId:t,defaultTheme:n=Gz,rootShouldForwardProp:r=Kz,slotShouldForwardProp:o=Kz}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter((e=>e!==Xt)))(e.__emotion_styles))}(e);const{name:n,slot:s,skipVariantsResolver:a,skipSx:l,overridesResolver:u=qz(Zz(s)),...c}=t,d=void 0!==a?a:s&&"Root"!==s&&"root"!==s||!1,h=l||!1;let p=Kz;"Root"===s||"root"===s?p=r:s?p=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const f=ze(e,{shouldForwardProp:p,label:void 0,...c}),m=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return Xz(t,e)};if(Ge(e)){const t=Uz(e);return t.variants?function(e){return Xz(e,t)}:t.style}return e},g=(...t)=>{const r=[],o=t.map(m),s=[];if(r.push(i),n&&u&&s.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=Xz(e,r[t]);return u(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Jz(e,r):null})),h||s.push(Xt),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(s.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const a=[...r,...o,...s],l=f(...a);return e.muiName&&(l.muiName=e.muiName),l};return f.withConfig&&(g.withConfig=f.withConfig),g}}function Zz(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const eW=jr(),tW=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},nW=e=>tW(e)&&"classes"!==e,rW=Qz({themeId:Yr,defaultTheme:eW,rootShouldForwardProp:nW}),oW={theme:void 0},iW=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(oW.theme=r.theme,o=Uz(e(oW)),t=o,n=r.theme),o}};function sW(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],i=t[o];if(i)if(r){n[o]={...i};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=sW(r[t],i[t])}}else n[o]=i;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}const aW=t.createContext(void 0);function lW(e){return function({props:e,name:n}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?sW(o.defaultProps,r):o.styleOverrides||o.variants?r:sW(o,r)}({props:e,name:n,theme:{components:t.useContext(aW)}})}(e)}function uW(...e){const n=t.useRef(void 0),r=t.useCallback((t=>{const n=e.map((e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}));return()=>{n.forEach((e=>e?.()))}}),e);return t.useMemo((()=>e.every((e=>null==e))?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))}),e)}const cW=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},dW=function(e,t,n){return"function"==typeof e?e(t,n):e},hW=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n},pW=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},fW=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const e=i(n?.className,s,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=hW({...o,...r}),l=pW(r),u=pW(o),c=t(a),d=i(c?.className,n?.className,s,o?.className,r?.className),h={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...u,...l};return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}};function mW(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...h}=i,p=c[e]||r,f=dW(d[e],o),{props:{component:m,...g},internalRef:b}=fW({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),y=uW(b,f?.ref,t.ref),w="root"===e?m||u:m;return[p,cW(p,{..."root"===e&&!u&&!c[e]&&s,..."root"!==e&&!c[e]&&s,...g,...w&&!a&&{as:w},...w&&a&&{component:w},ref:y},o)]}const gW=$e;function bW(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function yW(){const e=on(eW);return e[Yr]||e}function wW(e){return zr("MuiPaper",e)}Wr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const vW=rW("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(iW((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),SW=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiPaper"}),r=yW(),{className:o,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...c}=n,d={...n,component:s,elevation:a,square:l,variant:u},h=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return $z({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},wW,o)})(d);return(0,sn.jsx)(vW,{as:s,ownerState:d,className:i(h.root,o),ref:t,...c,style:{..."elevation"===u&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${mn("#fff",xr(a))}, ${mn("#fff",xr(a))})`}},...c.style}})})),CW=SW;function _W(e){return zr("MuiAlert",e)}const MW=Wr("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);let xW=0;const kW={...n}.useId;function RW(e){if(void 0!==kW){const t=kW();return e??t}return function(e){const[n,r]=t.useState(e),o=e||n;return t.useEffect((()=>{null==n&&(xW+=1,r(`mui-${xW}`))}),[n]),o}(e)}const TW=RW;function EW(e){try{return e.matches(":focus-visible")}catch(e){}return!1}const LW=uW,IW="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,PW=function(e){const n=t.useRef(e);return IW((()=>{n.current=e})),t.useRef(((...e)=>(0,n.current)(...e))).current},DW=PW,HW={};function OW(e,n){const r=t.useRef(HW);return r.current===HW&&(r.current=e(n)),r}class AW{static create(){return new AW}static use(){const e=OW(AW.create).current,[n,r]=t.useState(!1);return e.shouldMount=n,e.setShouldMount=r,t.useEffect(e.mountEffect,[n]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}function NW(e,t){return NW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NW(e,t)}function jW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,NW(e,t)}const YW=t.createContext(null);function FW(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function zW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function WW(e,n,r){var o=FW(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];a[o[l][r]]=n(u)}a[l]=n(l)}for(r=0;r<i.length;r++)a[i[r]]=n(i[r]);return a}(n,o);return Object.keys(i).forEach((function(s){var a=i[s];if((0,t.isValidElement)(a)){var l=s in n,u=s in o,c=n[s],d=(0,t.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,t.isValidElement)(c)&&(i[s]=(0,t.cloneElement)(a,{onExited:r.bind(null,a),in:c.props.in,exit:zW(a,"exit",e),enter:zW(a,"enter",e)})):i[s]=(0,t.cloneElement)(a,{in:!1}):i[s]=(0,t.cloneElement)(a,{onExited:r.bind(null,a),in:!0,exit:zW(a,"exit",e),enter:zW(a,"enter",e)})}})),i}var VW=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},BW=function(e){function n(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}jW(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,o,i=n.children,s=n.handleExited;return{children:n.firstRender?(r=e,o=s,FW(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:zW(e,"appear",r),enter:zW(e,"enter",r),exit:zW(e,"exit",r)})}))):WW(e,i,s),firstRender:!1}},r.handleExited=function(e,t){var n=FW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=s({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=Bz(e,["component","childFactory"]),i=this.state.contextValue,s=VW(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t.createElement(YW.Provider,{value:i},s):t.createElement(YW.Provider,{value:i},t.createElement(n,o,s))},n}(t.Component);BW.propTypes={},BW.defaultProps={component:"div",childFactory:function(e){return e}};const $W=BW,UW=[];function GW(e){t.useEffect(e,UW)}class KW{static create(){return new KW}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function qW(){const e=OW(KW.create).current;return GW(e.disposeEffect),e}o(4146);var XW,JW,QW=function(e,n){var r=arguments;if(null==n||!Ee.call(n,"css"))return t.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=De,i[1]=function(e,t){var n={};for(var r in t)Ee.call(t,r)&&(n[r]=t[r]);return n[Le]=e,n}(e,n);for(var s=2;s<o;s++)i[s]=r[s];return t.createElement.apply(null,i)};XW=QW||(QW={}),JW||(JW=XW.JSX||(XW.JSX={}));var ZW=Re((function(e,n){var r=Ce([e.styles],void 0,t.useContext(Te)),o=t.useRef();return xe((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,s=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==s&&(i=!0,s.setAttribute("data-emotion",e),t.hydrate([s])),o.current=[t,i],function(){t.flush()}}),[n]),xe((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ce(n,r.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function eV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ce(t)}function tV(){var e=eV.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const nV=Wr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rV=tV`
- 0% {
- transform: scale(0);
- opacity: 0.1;
- }
- 100% {
- transform: scale(1);
- opacity: 0.3;
- }
- `,oV=tV`
- 0% {
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- `,iV=tV`
- 0% {
- transform: scale(1);
- }
- 50% {
- transform: scale(0.92);
- }
- 100% {
- transform: scale(1);
- }
- `,sV=rW("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),aV=rW((function(e){const{className:n,classes:r,pulsate:o=!1,rippleX:s,rippleY:a,rippleSize:l,in:u,onExited:c,timeout:d}=e,[h,p]=t.useState(!1),f=i(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+s},g=i(r.child,h&&r.childLeaving,o&&r.childPulsate);return u||h||p(!0),t.useEffect((()=>{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,u,d]),(0,sn.jsx)("span",{className:f,style:m,children:(0,sn.jsx)("span",{className:g})})}),{name:"MuiTouchRipple",slot:"Ripple"})`
- opacity: 0;
- position: absolute;
- &.${nV.rippleVisible} {
- opacity: 0.3;
- transform: scale(1);
- animation-name: ${rV};
- animation-duration: ${550}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
- &.${nV.ripplePulsate} {
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
- }
- & .${nV.child} {
- opacity: 1;
- display: block;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background-color: currentColor;
- }
- & .${nV.childLeaving} {
- opacity: 0;
- animation-name: ${oV};
- animation-duration: ${550}ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- }
- & .${nV.childPulsate} {
- position: absolute;
- /* @noflip */
- left: 0px;
- top: 0;
- animation-name: ${iV};
- animation-duration: 2500ms;
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
- animation-iteration-count: infinite;
- animation-delay: 200ms;
- }
- `,lV=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...l}=r,[u,c]=t.useState([]),d=t.useRef(0),h=t.useRef(null);t.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[u]);const p=t.useRef(!1),f=qW(),m=t.useRef(null),g=t.useRef(null),b=t.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,(0,sn.jsx)(aV,{classes:{ripple:i(s.ripple,nV.ripple),rippleVisible:i(s.rippleVisible,nV.rippleVisible),ripplePulsate:i(s.ripplePulsate,nV.ripplePulsate),child:i(s.child,nV.child),childLeaving:i(s.childLeaving,nV.childLeaving),childPulsate:i(s.childPulsate,nV.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},d.current)])),d.current+=1,h.current=a}),[s]),y=t.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const a=s?null:g.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{b({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):b({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})}),[o,b,f]),w=t.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{v(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),h.current=t}),[f]);return t.useImperativeHandle(n,(()=>({pulsate:w,start:y,stop:v})),[w,y,v]),(0,sn.jsx)(sV,{className:i(nV.root,s.root,a),ref:g,...l,children:(0,sn.jsx)($W,{component:null,exit:!0,children:u})})})),uV=lV;function cV(e){return zr("MuiButtonBase",e)}const dV=Wr("MuiButtonBase",["root","disabled","focusVisible"]),hV=rW("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dV.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pV=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:l,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,focusVisibleClassName:f,LinkComponent:m="a",onBlur:g,onClick:b,onContextMenu:y,onDragLeave:w,onFocus:v,onFocusVisible:S,onKeyDown:C,onKeyUp:_,onMouseDown:M,onMouseLeave:x,onMouseUp:k,onTouchEnd:R,onTouchMove:T,onTouchStart:E,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:P,type:D,...H}=r,O=t.useRef(null),A=AW.use(),N=LW(A.ref,P),[j,Y]=t.useState(!1);c&&j&&Y(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{Y(!0),O.current.focus()}})),[]);const F=A.shouldMount&&!d&&!c;t.useEffect((()=>{j&&p&&!d&&A.pulsate()}),[d,p,j,A]);const z=fV(A,"start",M,h),W=fV(A,"stop",y,h),V=fV(A,"stop",w,h),B=fV(A,"stop",k,h),$=fV(A,"stop",(e=>{j&&e.preventDefault(),x&&x(e)}),h),U=fV(A,"start",E,h),G=fV(A,"stop",R,h),K=fV(A,"stop",T,h),q=fV(A,"stop",(e=>{EW(e.target)||Y(!1),g&&g(e)}),!1),X=DW((e=>{O.current||(O.current=e.currentTarget),EW(e.target)&&(Y(!0),S&&S(e)),v&&v(e)})),J=()=>{const e=O.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},Q=DW((e=>{p&&!e.repeat&&j&&" "===e.key&&A.stop(e,(()=>{A.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),b&&b(e))})),Z=DW((e=>{p&&" "===e.key&&j&&!e.defaultPrevented&&A.stop(e,(()=>{A.pulsate(e)})),_&&_(e),b&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&b(e)}));let ee=u;"button"===ee&&(H.href||H.to)&&(ee=m);const te={};"button"===ee?(te.type=void 0===D?"button":D,te.disabled=c):(H.href||H.to||(te.role="button"),c&&(te["aria-disabled"]=c));const ne=LW(n,O),re={...r,centerRipple:s,component:u,disabled:c,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:L,focusVisible:j},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=$z({root:["root",t&&"disabled",n&&"focusVisible"]},cV,o);return n&&r&&(i.root+=` ${r}`),i})(re);return(0,sn.jsxs)(hV,{as:ee,className:i(oe.root,l),ownerState:re,onBlur:q,onClick:b,onContextMenu:W,onFocus:X,onKeyDown:Q,onKeyUp:Z,onMouseDown:z,onMouseLeave:$,onMouseUp:B,onDragLeave:V,onTouchEnd:G,onTouchMove:K,onTouchStart:U,ref:ne,tabIndex:c?-1:L,type:D,...te,...H,children:[a,F?(0,sn.jsx)(uV,{ref:N,center:s,...I}):null]})}));function fV(e,t,n,r=!1){return DW((o=>(n&&n(o),r||e[t](o),!0)))}const mV=pV;function gV(e){return zr("MuiCircularProgress",e)}Wr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bV=tV`
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- `,yV=tV`
- 0% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: 0;
- }
- 50% {
- stroke-dasharray: 100px, 200px;
- stroke-dashoffset: -15px;
- }
- 100% {
- stroke-dasharray: 1px, 200px;
- stroke-dashoffset: -126px;
- }
- `,wV="string"!=typeof bV?eV`
- animation: ${bV} 1.4s linear infinite;
- `:null,vV="string"!=typeof yV?eV`
- animation: ${yV} 1.4s ease-in-out infinite;
- `:null,SV=rW("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${gW(n.color)}`]]}})(iW((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:wV||{animation:`${bV} 1.4s linear infinite`}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),CV=rW("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),_V=rW("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${gW(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(iW((({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:vV||{animation:`${yV} 1.4s ease-in-out infinite`}}]})))),MV=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate",...h}=n,p={...n,color:o,disableShrink:s,size:a,thickness:u,value:c,variant:d},f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return $z({root:["root",n,`color${gW(r)}`],svg:["svg"],circle:["circle",`circle${gW(n)}`,o&&"circleDisableShrink"]},gV,t)})(p),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((44-u)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,sn.jsx)(SV,{className:i(f.root,r),style:{width:a,height:a,...g,...l},ownerState:p,ref:t,role:"progressbar",...b,...h,children:(0,sn.jsx)(CV,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,sn.jsx)(_V,{className:f.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-u)/2,fill:"none",strokeWidth:u})})})})),xV=MV;function kV(e){return zr("MuiIconButton",e)}const RV=Wr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),TV=rW(mV,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${gW(n.color)}`],n.edge&&t[`edge${gW(n.edge)}`],t[`size${gW(n.size)}`]]}})(iW((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),iW((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${RV.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${RV.loading}`]:{color:"transparent"}})))),EV=rW("span",{name:"MuiIconButton",slot:"LoadingIndicator"})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}))),LV=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium",id:d,loading:h=null,loadingIndicator:p,...f}=n,m=TW(d),g=p??(0,sn.jsx)(xV,{"aria-labelledby":m,color:"inherit",size:16}),b={...n,edge:r,color:a,disabled:l,disableFocusRipple:u,loading:h,loadingIndicator:g,size:c},y=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:s}=e;return $z({root:["root",s&&"loading",n&&"disabled","default"!==r&&`color${gW(r)}`,o&&`edge${gW(o)}`,`size${gW(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},kV,t)})(b);return(0,sn.jsxs)(TV,{id:h?m:d,className:i(y.root,s),centerRipple:!0,focusRipple:!u,disabled:l||h,ref:t,...f,ownerState:b,children:["boolean"==typeof h&&(0,sn.jsx)("span",{className:y.loadingWrapper,style:{display:"contents"},children:(0,sn.jsx)(EV,{className:y.loadingIndicator,ownerState:b,children:h&&g})}),o]})})),IV=LV;function PV(e){return zr("MuiSvgIcon",e)}Wr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DV=rW("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${gW(n.color)}`],t[`fontSize${gW(n.fontSize)}`]]}})(iW((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),HV=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24",...f}=r,m=t.isValidElement(o)&&"svg"===o.type,g={...r,color:a,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m},b={};d||(b.viewBox=p);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return $z({root:["root","inherit"!==t&&`color${gW(t)}`,`fontSize${gW(n)}`]},PV,r)})(g);return(0,sn.jsxs)(DV,{as:l,className:i(y.root,s),focusable:"false",color:c,"aria-hidden":!h||void 0,role:h?"img":void 0,ref:n,...b,...f,...m&&o.props,ownerState:g,children:[m?o.props.children:o,h?(0,sn.jsx)("title",{children:h}):null]})}));HV.muiName="SvgIcon";const OV=HV;function AV(e,n){function r(t,n){return(0,sn.jsx)(OV,{"data-testid":void 0,ref:n,...t,children:e})}return r.muiName=OV.muiName,t.memo(t.forwardRef(r))}const NV=AV((0,sn.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),jV=AV((0,sn.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),YV=AV((0,sn.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),FV=AV((0,sn.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),zV=AV((0,sn.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),WV=rW(CW,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gW(n.color||n.severity)}`]]}})(iW((({theme:e})=>{const t="light"===e.palette.mode?bn:wn,n="light"===e.palette.mode?wn:bn;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(bW(["light"])).map((([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${MW.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter(bW(["light"])).map((([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${MW.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}}))),...Object.entries(e.palette).filter(bW(["dark"])).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}})))]}}))),VV=rW("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),BV=rW("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),$V=rW("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),UV={success:(0,sn.jsx)(NV,{fontSize:"inherit"}),warning:(0,sn.jsx)(jV,{fontSize:"inherit"}),error:(0,sn.jsx)(YV,{fontSize:"inherit"}),info:(0,sn.jsx)(FV,{fontSize:"inherit"})},GV=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiAlert"}),{action:r,children:o,className:s,closeText:a="Close",color:l,components:u={},componentsProps:c={},icon:d,iconMapping:h=UV,onClose:p,role:f="alert",severity:m="success",slotProps:g={},slots:b={},variant:y="standard",...w}=n,v={...n,color:l,severity:m,variant:y,colorSeverity:l||m},S=(e=>{const{variant:t,color:n,severity:r,classes:o}=e;return $z({root:["root",`color${gW(n||r)}`,`${t}${gW(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},_W,o)})(v),C={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...b},slotProps:{...c,...g}},[_,M]=mW("root",{ref:t,shouldForwardComponentProp:!0,className:i(S.root,s),elementType:WV,externalForwardedProps:{...C,...w},ownerState:v,additionalProps:{role:f,elevation:0}}),[x,k]=mW("icon",{className:S.icon,elementType:VV,externalForwardedProps:C,ownerState:v}),[R,T]=mW("message",{className:S.message,elementType:BV,externalForwardedProps:C,ownerState:v}),[E,L]=mW("action",{className:S.action,elementType:$V,externalForwardedProps:C,ownerState:v}),[I,P]=mW("closeButton",{elementType:IV,externalForwardedProps:C,ownerState:v}),[D,H]=mW("closeIcon",{elementType:zV,externalForwardedProps:C,ownerState:v});return(0,sn.jsxs)(_,{...M,children:[!1!==d?(0,sn.jsx)(x,{...k,children:d||h[m]||UV[m]}):null,(0,sn.jsx)(R,{...T,children:o}),null!=r?(0,sn.jsx)(E,{...L,children:r}):null,null==r&&p?(0,sn.jsx)(E,{...L,children:(0,sn.jsx)(I,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...P,children:(0,sn.jsx)(D,{fontSize:"small",...H})})}):null]})})),KV=GV;function qV(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,sn.jsx)(ZW,{styles:r})}const XV=function({styles:e,themeId:t,defaultTheme:n={}}){const r=on(n),o="function"==typeof e?e(t&&r[t]||r):e;return(0,sn.jsx)(qV,{styles:o})},JV=function(e){return(0,sn.jsx)(XV,{...e,defaultTheme:eW,themeId:Yr})};function QV(e){return zr("MuiTypography",e)}const ZV=Wr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),eB={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},tB=Jt,nB=rW("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${gW(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(iW((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${gW(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),rB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oB=t.forwardRef((function(e,t){const{color:n,...r}=lW({props:e,name:"MuiTypography"}),o=tB({...r,...!eB[n]&&{color:n}}),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:h="body1",variantMapping:p=rB,...f}=o,m={...o,align:s,color:n,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:h,variantMapping:p},g=l||(d?"p":p[h]||rB[h])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e;return $z({root:["root",i,"inherit"!==e.align&&`align${gW(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},QV,s)})(m);return(0,sn.jsx)(nB,{as:g,ref:t,className:i(b.root,a),...f,ownerState:m,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...f.style}})})),iB=oB,sB=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:dW(n,r),{props:a,internalRef:l}=fW({...i,externalSlotProps:s}),u=uW(l,s?.ref,e.additionalProps?.ref);return cW(t,{...a,ref:u},r)};function aB(e){return zr("MuiRichTreeView",e)}function lB(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?sW(t.components[n].defaultProps,r):r}function uB({props:e,name:t,defaultTheme:n,themeId:r}){let o=on(n);return r&&(o=o[r]||o),lB({theme:o,name:t,props:e})}function cB({props:e,name:t}){return uB({props:e,name:t,defaultTheme:eW,themeId:Yr})}function dB(e){return cB}Wr("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);class hB{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,(function r(...o){n.removeListener(e,r),t.apply(n,o)}))}}const pB=()=>{const[e]=t.useState((()=>new hB));return{instance:{$$publishEvent:t.useCallback(((...t)=>{const[n,r,o={}]=t;o.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(o)&&o.isPropagationStopped()||e.emit(n,r,o)}),[e]),$$subscribeEvent:t.useCallback(((t,n)=>(e.on(t,n),()=>{e.removeListener(t,n)})),[e])}}};pB.params={};const fB=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};fB.params={};var mB=o(8418);const gB=Object.is,bB=(e,t,n=void 0,r=gB)=>(0,mB.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,(e=>t(e,n)),r);var yB=Symbol("NOT_FOUND");var wB=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var vB=(e,t)=>e===t;function SB(e,t){const n="object"==typeof t?t:{equalityCheck:t},{equalityCheck:r=vB,maxSize:o=1,resultEqualityCheck:i}=n,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(r);let a=0;const l=o<=1?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:yB,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(s):function(e,t){let n=[];function r(e){const r=n.findIndex((n=>t(e,n.key)));if(r>-1){const e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return yB}return{get:r,put:function(t,o){r(t)===yB&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(o,s);function u(){let t=l.get(arguments);if(t===yB){if(t=e.apply(null,arguments),a++,i){const e=l.getEntries().find((e=>i(e.value,t)));e&&(t=e.value,0!==a&&a--)}l.put(arguments,t)}return t}return u.clearCache=()=>{l.clear(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}var CB="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function _B(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function s(){let t=n;const{length:s}=arguments;for(let e=0,n=s;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}}const a=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--),o="object"==typeof l&&null!==l||"function"==typeof l?new CB(l):l}return a.s=1,a.v=l,l}return s.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function MB(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},s=e.pop();"object"==typeof s&&(i=s,s=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...n,...i},{memoize:l,memoizeOptions:u=[],argsMemoize:c=_B,argsMemoizeOptions:d=[],devModeChecks:h={}}=a,p=wB(u),f=wB(d),m=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),g=l((function(){return r++,s.apply(null,arguments)}),...p),b=c((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(m,arguments);return t=g.apply(null,e),t}),...f);return Object.assign(b,{resultFunc:s,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var xB=MB(_B),kB=Object.assign(((e,t=xB)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>kB});const RB=MB({memoize:SB,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),TB=new WeakMap,EB=(...e)=>(t,n)=>{const r=t.cacheKey;let o=TB.get(r);o||(o=new Map,TB.set(r,o));const i=o.get(e);if(i)return i(t,n);const s=RB(...e);return o.set(e,s),s(t,n)},LB=EB((e=>e.id),(e=>e.treeId));let IB=0;const PB=({id:e,treeId:t="",itemId:n})=>null!=e?e:`${t}-${n}`,DB=({params:e,store:n})=>{t.useEffect((()=>{n.update((t=>e.id===t.id.providedTreeId&&void 0!==t.id.treeId?t:s({},t,{id:s({},t.id,{treeId:e.id??(IB+=1,`mui-tree-view-${IB}`)})})))}),[n,e.id]);const r=bB(n,LB);return{getRootProps:()=>({id:r})}};DB.params={id:!0},DB.getInitialState=({id:e})=>({id:{treeId:void 0,providedTreeId:e}});const HB=[pB,fB,DB],OB=["apiRef"];class AB{constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{const t=e(this.value);t!==this.value&&(this.value=t,this.listeners.forEach((e=>e(t))))},this.value=e,this.listeners=new Set}}let NB=0;const jB=t.createContext(null),YB=()=>{const e=t.useContext(jB);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e},FB=t.createContext({classes:{},slots:{},slotProps:{}}),zB=()=>t.useContext(FB),WB={};function VB(e){const{contextValue:n,classes:r=WB,slots:o=WB,slotProps:i=WB,children:s}=e,a=t.useMemo((()=>({classes:r,slots:{collapseIcon:o.collapseIcon,expandIcon:o.expandIcon,endIcon:o.endIcon},slotProps:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon}})),[r,o.collapseIcon,o.expandIcon,o.endIcon,i.collapseIcon,i.expandIcon,i.endIcon]);return(0,sn.jsx)(jB.Provider,{value:n,children:(0,sn.jsx)(FB.Provider,{value:a,children:n.wrapRoot({children:s})})})}const BB=(e,t,n)=>{e.$$publishEvent(t,n)},$B="__TREE_VIEW_ROOT_PARENT_ID__",UB=(e,t)=>{if(null==t)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;null!=n.parentId;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1},GB=t.createContext((()=>-1)),KB=e=>e.items,qB=EB(KB,(e=>e.loading)),XB=EB(KB,(e=>e.error)),JB=EB(KB,(e=>e.itemMetaLookup)),QB=[],ZB=EB([KB,(e,t)=>t],((e,t)=>e.itemOrderedChildrenIdsLookup[t??$B]??QB)),e$=EB([KB,(e,t)=>t],((e,t)=>e.itemModelLookup[t])),t$=EB([JB,(e,t)=>t],((e,t)=>e[t??$B]??null)),n$=EB([JB,(e,t)=>t],UB),r$=EB([KB,t$],((e,t)=>null==t?-1:e.itemChildrenIndexesLookup[t.parentId??$B][t.id])),o$=EB([t$],(e=>e?.parentId??null)),i$=EB([t$],(e=>e?.depth??0)),s$=EB([KB],(e=>e.disabledItemsFocusable)),a$=EB([s$,n$],((e,t)=>!!e||!t)),l$=({disabledItemsFocusable:e,items:t,isItemDisabled:n,getItemLabel:r,getItemChildren:o,getItemId:i,initialDepth:s=0,initialParentId:a=null,getChildrenCount:l,ignoreChildren:u=!1})=>{const c={},d={},h={[$B]:[]},p=(e,t,s)=>{const a=i?i(e):e.id;((e,t,n)=>{if(null==e)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(t)].join("\n"));if(null!=n[e])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e}"`].join("\n"))})(a,e,c);const f=r?r(e):e.label;if(null==f)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));const m=o?o(e):e.children;c[a]={id:a,label:f,parentId:s,idAttribute:void 0,expandable:l?l(e)>0:!!m?.length,disabled:!!n&&n(e),depth:t},d[a]=e;const g=s??$B;h[g]||(h[g]=[]),h[g].push(a),u||m?.forEach((e=>p(e,t+1,a)))};t?.forEach((e=>p(e,s,a)));const f={};return Object.keys(h).forEach((e=>{f[e]=(e=>{const t={};return e.forEach(((e,n)=>{t[e]=n})),t})(h[e])})),{disabledItemsFocusable:e,itemMetaLookup:c,itemModelLookup:d,itemOrderedChildrenIdsLookup:h,itemChildrenIndexesLookup:f}},u$=({instance:e,params:n,store:r})=>{const o=t.useCallback((e=>e$(r.value,e)),[r]),i=t.useCallback((e=>{const t=t$(r.value,e);return t?.parentId||null}),[r]),a=PW((e=>{r.update((t=>s({},t,{items:s({},t.items,{loading:e})})))})),l=PW((e=>{r.update((t=>s({},t,{items:s({},t.items,{error:e})})))})),u=PW((({itemId:e,shouldBeDisabled:t})=>{r.update((n=>{if(!n.items.itemMetaLookup[e])return n;const r=s({},n.items.itemMetaLookup);return r[e]=s({},r[e],{disabled:t??!r[e].disabled}),s({},n,{items:s({},n.items,{itemMetaLookup:r})})}))})),c=t.useCallback((()=>{const e=t=>{const n=e$(r.value,t),o=ZB(r.value,t);return o.length>0?n.children=o.map(e):delete n.children,n};return ZB(r.value,null).map(e)}),[r]),d=t.useCallback((e=>ZB(r.value,e)),[r]),h=e=>{const t=t$(r.value,e);if(null==t)return null;const n=PB({treeId:LB(r.value),itemId:e,id:t.idAttribute});return document.getElementById(n)},p=t.useRef(!1),f=t.useCallback((()=>{p.current=!0}),[]),m=t.useCallback((()=>p.current),[]);return t.useEffect((()=>{e.areItemUpdatesPrevented()||r.update((t=>{const r=l$({disabledItemsFocusable:n.disabledItemsFocusable,items:n.items,isItemDisabled:n.isItemDisabled,getItemId:n.getItemId,getItemLabel:n.getItemLabel,getItemChildren:n.getItemChildren});return Object.values(t.items.itemMetaLookup).forEach((t=>{r.itemMetaLookup[t.id]||BB(e,"removeItem",{id:t.id})})),s({},t,{items:s({},t.items,r)})}))}),[e,r,n.items,n.disabledItemsFocusable,n.isItemDisabled,n.getItemId,n.getItemLabel,n.getItemChildren]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":"number"==typeof n.itemChildrenIndentation?`${n.itemChildrenIndentation}px`:n.itemChildrenIndentation}}),publicAPI:{getItem:o,getItemDOMElement:h,getItemTree:c,getItemOrderedChildrenIds:d,setIsItemDisabled:u,getParentId:i},instance:{getItemDOMElement:h,preventItemUpdates:f,areItemUpdatesPrevented:m,addItems:({items:t,parentId:o,depth:i,getChildrenCount:a})=>{if(t){const l=l$({disabledItemsFocusable:n.disabledItemsFocusable,items:t,isItemDisabled:n.isItemDisabled,getItemId:n.getItemId,getItemLabel:n.getItemLabel,getItemChildren:n.getItemChildren,getChildrenCount:a,initialDepth:i,initialParentId:o,ignoreChildren:!0});r.update((t=>{let n;return n=o?{itemModelLookup:s({},t.items.itemModelLookup,l.itemModelLookup),itemMetaLookup:s({},t.items.itemMetaLookup,l.itemMetaLookup),itemOrderedChildrenIdsLookup:s({},l.itemOrderedChildrenIdsLookup,t.items.itemOrderedChildrenIdsLookup),itemChildrenIndexesLookup:s({},l.itemChildrenIndexesLookup,t.items.itemChildrenIndexesLookup)}:{itemModelLookup:l.itemModelLookup,itemMetaLookup:l.itemMetaLookup,itemOrderedChildrenIdsLookup:l.itemOrderedChildrenIdsLookup,itemChildrenIndexesLookup:l.itemChildrenIndexesLookup},Object.values(t.items.itemMetaLookup).forEach((t=>{l.itemMetaLookup[t.id]||BB(e,"removeItem",{id:t.id})})),s({},t,{items:s({},t.items,n)})}))}},setTreeViewLoading:a,setTreeViewError:l,removeChildren:t=>{r.update((n=>{if(!t)return s({},n,{items:s({},n.items,{itemMetaLookup:{},itemOrderedChildrenIdsLookup:{},itemChildrenIndexesLookup:{}})});const r=Object.keys(n.items.itemMetaLookup).reduce(((r,o)=>{const i=n.items.itemMetaLookup[o];return i.parentId===t?(BB(e,"removeItem",{id:i.id}),r):s({},r,{[i.id]:i})}),{}),o=n.items.itemOrderedChildrenIdsLookup,i=n.items.itemChildrenIndexesLookup;return delete i[t],delete o[t],s({},n,{items:s({},n.items,{itemMetaLookup:r,itemOrderedChildrenIdsLookup:o,itemChildrenIndexesLookup:i})})}))},handleItemClick:PW(((e,t)=>{n.onItemClick&&n.onItemClick(e,t)}))}}};u$.getInitialState=e=>({items:s({},l$({disabledItemsFocusable:e.disabledItemsFocusable,items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel,getItemChildren:e.getItemChildren}),{loading:!1,error:null})}),u$.applyDefaultValuesToParams=({params:e})=>s({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"}),u$.wrapRoot=({children:e})=>(0,sn.jsx)(GB.Provider,{value:i$,children:e}),u$.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemChildren:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const c$=e=>e.expansion,d$=EB([c$],(e=>e.expandedItems)),h$=EB([d$],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),p$=EB([h$,(e,t)=>t],((e,t)=>e.has(t))),f$=EB([t$],(e=>e?.expandable??!1)),m$=EB([c$],(e=>e.expansionTrigger)),g$=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content"),b$=({instance:e,store:t,params:n})=>{n.expandedItems,n.defaultExpandedItems,IW((()=>{t.update((e=>{const t=g$({isItemEditable:n.isItemEditable,expansionTrigger:n.expansionTrigger});return e.expansion.expansionTrigger===t?e:s({},e,{expansion:s({},e.expansion,{expansionTrigger:t})})}))}),[t,n.isItemEditable,n.expansionTrigger]);const r=(e,r)=>{void 0===n.expandedItems&&t.update((e=>s({},e,{expansion:s({},e.expansion,{expandedItems:r})}))),n.onExpandedItemsChange?.(e,r)},o=PW((({itemId:e,event:o,shouldBeExpanded:i})=>{const s=d$(t.value);let a;a=i?[e].concat(s):s.filter((t=>t!==e)),n.onItemExpansionToggle&&n.onItemExpansionToggle(o,e,i),r(o,a)})),i=PW((({itemId:n,event:r=null,shouldBeExpanded:o})=>{const i=p$(t.value,n),s=o??!i;if(i===s)return;const a={isExpansionPrevented:!1,shouldBeExpanded:s,event:r,itemId:n};BB(e,"beforeItemToggleExpansion",a),a.isExpansionPrevented||e.applyItemExpansion({itemId:n,event:r,shouldBeExpanded:s})}));return IW((()=>{const e=n.expandedItems;void 0!==e&&t.update((t=>s({},t,{expansion:s({},t.expansion,{expandedItems:e})})))}),[t,n.expandedItems]),{publicAPI:{setItemExpansion:i},instance:{setItemExpansion:i,applyItemExpansion:o,expandAllSiblings:(e,o)=>{const i=t$(t.value,o);if(null==i)return;const s=ZB(t.value,i.parentId).filter((e=>f$(t.value,e)&&!p$(t.value,e))),a=d$(t.value).concat(s);s.length>0&&(n.onItemExpansionToggle&&s.forEach((t=>{n.onItemExpansionToggle(e,t,!0)})),r(e,a))}}}},y$=[];b$.applyDefaultValuesToParams=({params:e})=>s({},e,{defaultExpandedItems:e.defaultExpandedItems??y$}),b$.getInitialState=e=>({expansion:{expandedItems:void 0===e.expandedItems?e.defaultExpandedItems:e.expandedItems,expansionTrigger:g$(e)}}),b$.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const w$=(e,t)=>{let n=t.length-1;for(;n>=0&&!a$(e,t[n]);)n-=1;if(-1!==n)return t[n]},v$=(e,t)=>{const n=t$(e,t);if(!n)return null;const r=ZB(e,n.parentId),o=r$(e,t);if(0===o)return n.parentId;let i=o-1;for(;!a$(e,r[i])&&i>=0;)i-=1;if(-1===i)return null==n.parentId?null:v$(e,n.parentId);let s=r[i],a=w$(e,ZB(e,s));for(;p$(e,s)&&null!=a;)s=a,a=w$(e,ZB(e,s));return s},S$=(e,t)=>{if(p$(e,t)){const n=ZB(e,t).find((t=>a$(e,t)));if(null!=n)return n}let n=t$(e,t);for(;null!=n;){const t=ZB(e,n.parentId),r=r$(e,n.id);if(r<t.length-1){let n=r+1;for(;!a$(e,t[n])&&n<t.length-1;)n+=1;if(a$(e,t[n]))return t[n]}n=t$(e,n.parentId)}return null},C$=e=>{let t=null;for(;null==t||p$(e,t);){const n=ZB(e,t),r=w$(e,n);if(null==r)return t;t=r}return t},_$=e=>ZB(e,null).find((t=>a$(e,t))),M$=(e,t,n)=>{if(t===n)return[t,n];const r=t$(e,t),o=t$(e,n);if(!r||!o)return[t,n];if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const i=[r.id],s=[o.id];let a=r.parentId,l=o.parentId,u=-1!==s.indexOf(a),c=-1!==i.indexOf(l),d=!0,h=!0;for(;!c&&!u;)d&&(i.push(a),u=-1!==s.indexOf(a),d=null!==a,!u&&d&&(a=o$(e,a))),h&&!u&&(s.push(l),c=-1!==i.indexOf(l),h=null!==l,!c&&h&&(l=o$(e,l)));const p=u?a:l,f=ZB(e,p),m=i[i.indexOf(p)-1],g=s[s.indexOf(p)-1];return f.indexOf(m)<f.indexOf(g)?[t,n]:[n,t]},x$=(e,t)=>t!==e.closest('*[role="treeitem"]'),k$=e=>e.selection,R$=EB([k$],(e=>e.selectedItems)),T$=EB([R$],(e=>Array.isArray(e)?e:null!=e?[e]:[])),E$=EB([T$],(e=>{const t=new Map;return e.forEach((e=>{t.set(e,!0)})),t})),L$=EB([E$,(e,t)=>t],((e,t)=>e.has(t))),I$=EB([k$],(e=>e.isEnabled&&e.isMultiSelectEnabled)),P$=EB([k$],(e=>e.isEnabled)),D$=EB([k$],(e=>e.isCheckboxSelectionEnabled)),H$=EB([n$,P$],((e,t)=>t&&!e)),O$=EB([k$],(e=>e.selectionPropagation)),A$=e=>{const t={};return e.forEach((e=>{t[e]=!0})),t},N$=({store:e,oldModel:t,newModel:n})=>{const r=new Map;return n.forEach((e=>{r.set(e,!0)})),{added:n.filter((t=>!L$(e.value,t))),removed:t.filter((e=>!r.has(e)))}},j$=Object.is;function Y$(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!j$(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r}function F$(e,t){const n=D$(e),r=H$(e,t);if(L$(e,t))return{disabled:!r,visible:n,indeterminate:!1,checked:!0};if(0===ZB(e,t).length)return{disabled:!r,visible:n,indeterminate:!1,checked:!1};let o=!1,i=!1;const s=n=>{n!==t&&(L$(e,n)?o=!0:i=!0),ZB(e,n).forEach(s)};return s(t),{disabled:!r,visible:n,indeterminate:o&&i,checked:!!O$(e).parents&&o&&!i}}const z$=({store:e,params:n})=>{n.selectedItems,n.defaultSelectedItems;const r=t.useRef(null),o=t.useRef({}),i=(t,r,o)=>{const i=R$(e.value);let a;const l=I$(e.value);if(a=l&&(n.selectionPropagation.descendants||n.selectionPropagation.parents)?(({store:e,selectionPropagation:t,newModel:n,oldModel:r,additionalItemsToPropagate:o})=>{if(!t.descendants&&!t.parents)return n;let i=!1;const s=A$(n),a=N$({store:e,newModel:n,oldModel:r});return o?.forEach((e=>{s[e]?a.added.includes(e)||a.added.push(e):a.removed.includes(e)||a.removed.push(e)})),a.added.forEach((n=>{if(t.descendants){const t=r=>{r!==n&&(i=!0,s[r]=!0),ZB(e.value,r).forEach(t)};t(n)}if(t.parents){const t=n=>!!s[n]&&ZB(e.value,n).every(t),r=n=>{const o=o$(e.value,n);null!=o&&ZB(e.value,o).every(t)&&(i=!0,s[o]=!0,r(o))};r(n)}})),a.removed.forEach((n=>{if(t.parents){let t=o$(e.value,n);for(;null!=t;)s[t]&&(i=!0,delete s[t]),t=o$(e.value,t)}if(t.descendants){const t=r=>{r!==n&&(i=!0,delete s[r]),ZB(e.value,r).forEach(t)};t(n)}})),i?Object.keys(s):n})({store:e,selectionPropagation:n.selectionPropagation,newModel:r,oldModel:i,additionalItemsToPropagate:o}):r,n.onItemSelectionToggle)if(l){const r=N$({store:e,newModel:a,oldModel:i});n.onItemSelectionToggle&&(r.added.forEach((e=>{n.onItemSelectionToggle(t,e,!0)})),r.removed.forEach((e=>{n.onItemSelectionToggle(t,e,!1)})))}else n.onItemSelectionToggle&&a!==i&&(null!=i&&n.onItemSelectionToggle(t,i,!1),null!=a&&n.onItemSelectionToggle(t,a,!0));void 0===n.selectedItems&&e.update((e=>s({},e,{selection:s({},e.selection,{selectedItems:a})}))),n.onSelectedItemsChange?.(t,a)},a=({itemId:t,event:n=null,keepExistingSelection:s=!1,shouldBeSelected:a})=>{if(!P$(e.value))return;let l;const u=I$(e.value);if(s){const n=T$(e.value),r=L$(e.value,t);l=!r||!1!==a&&null!=a?r||!0!==a&&null!=a?n:[t].concat(n):n.filter((e=>e!==t))}else l=!1===a||null==a&&L$(e.value,t)?u?[]:null:u?[t]:t;i(n,l,[t]),r.current=t,o.current={}},l=(t,[n,r])=>{if(!I$(e.value))return;let s=T$(e.value).slice();Object.keys(o.current).length>0&&(s=s.filter((e=>!o.current[e])));const a=A$(s),l=((e,t,n)=>{const r=t=>{if(f$(e,t)&&p$(e,t))return ZB(e,t)[0];let n=t$(e,t);for(;null!=n;){const t=ZB(e,n.parentId),r=r$(e,n.id);if(r<t.length-1)return t[r+1];n=n.parentId?t$(e,n.parentId):null}throw new Error("Invalid range")},[o,i]=M$(e,t,n),s=[o];let a=o;for(;a!==i;)a=r(a),n$(e,a)||s.push(a);return s})(e.value,n,r),u=l.filter((e=>!a[e]));s=s.concat(u),i(t,s),o.current=A$(l)};return IW((()=>{e.update((e=>s({},e,{selection:{selectedItems:void 0===n.selectedItems?e.selection.selectedItems:n.selectedItems,isEnabled:!n.disableSelection,isMultiSelectEnabled:n.multiSelect,isCheckboxSelectionEnabled:n.checkboxSelection,selectionPropagation:{descendants:n.selectionPropagation.descendants,parents:n.selectionPropagation.parents}}})))}),[e,n.selectedItems,n.multiSelect,n.checkboxSelection,n.disableSelection,n.selectionPropagation.descendants,n.selectionPropagation.parents]),{getRootProps:()=>({"aria-multiselectable":n.multiSelect}),publicAPI:{setItemSelection:a},instance:{setItemSelection:a,selectAllNavigableItems:t=>{if(!I$(e.value))return;const n=(e=>{let t=_$(e);const n=[];for(;null!=t;)n.push(t),t=S$(e,t);return n})(e.value);i(t,n),o.current=A$(n)},expandSelectionRange:(t,n)=>{if(null!=r.current){const[o,i]=M$(e.value,n,r.current);l(t,[o,i])}},selectRangeFromStartToItem:(t,n)=>{l(t,[_$(e.value),n])},selectRangeFromItemToEnd:(t,n)=>{l(t,[n,C$(e.value)])},selectItemFromArrowNavigation:(t,n,r)=>{if(!I$(e.value))return;let s=T$(e.value).slice();0===Object.keys(o.current).length?(s.push(r),o.current={[n]:!0,[r]:!0}):(o.current[n]||(o.current={}),o.current[r]?(s=s.filter((e=>e!==n)),delete o.current[n]):(s.push(r),o.current[r]=!0)),i(t,s)}}}};z$.itemPlugin=({props:e})=>{const{itemId:t}=e,{store:n}=YB(),r=bB(n,F$,t,Y$);return{propsEnhancers:{checkbox:({externalEventHandlers:e,interactions:o})=>s({tabIndex:-1,onChange:r=>{e.onChange?.(r),r.defaultMuiPrevented||H$(n.value,t)&&o.handleCheckboxSelection(r)}},r)}}};const W$=[],V$={};z$.applyDefaultValuesToParams=({params:e})=>s({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?W$:null),selectionPropagation:e.selectionPropagation??V$}),z$.getInitialState=e=>({selection:{selectedItems:void 0===e.selectedItems?e.defaultSelectedItems:e.selectedItems,isEnabled:!e.disableSelection,isMultiSelectEnabled:e.multiSelect,isCheckboxSelectionEnabled:e.checkboxSelection,selectionPropagation:e.selectionPropagation}}),z$.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0,selectionPropagation:!0};class B${constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class $${constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class U${}const G$=function(e){let n=0;return function(r,o,i){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new $$:new B$);const[s]=t.useState(new U$),a=t.useRef(null),l=t.useRef(void 0);l.current=i;const u=t.useRef(null);if(!a.current&&l.current){const t=(e,t)=>{t.defaultMuiPrevented||l.current?.(e,t)};a.current=r.$$subscribeEvent(o,t),n+=1,u.current={cleanupToken:n},e.registry.register(s,(()=>{a.current?.(),a.current=null,u.current=null}),u.current)}else!l.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));t.useEffect((()=>{if(!a.current&&l.current){const e=(e,t)=>{t.defaultMuiPrevented||l.current?.(e,t)};a.current=r.$$subscribeEvent(o,e)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{a.current?.(),a.current=null}}),[r,o])}}({registry:null}),K$=EB([T$,h$,JB,s$,e=>ZB(e,null)],((e,t,n,r,o)=>{const i=e.find((e=>{if(!r&&UB(n,e))return!1;const o=n[e];return o&&(null==o.parentId||t.has(o.parentId))}));if(null!=i)return i;const s=o.find((e=>r||!UB(n,e)));return null!=s?s:null})),q$=EB([K$,(e,t)=>t],((e,t)=>e===t)),X$=EB((e=>e.focus),(e=>e.focusedItemId)),J$=EB([X$,(e,t)=>t],((e,t)=>e===t)),Q$=({instance:e,params:t,store:n})=>{const r=PW((e=>{n.update((t=>X$(t)===e?t:s({},t,{focus:s({},t.focus,{focusedItemId:e})})))})),o=(n,o)=>{const i=e.getItemDOMElement(o);i&&i.focus(),r(o),t.onItemFocus&&t.onItemFocus(n,o)},i=PW(((e,t)=>{(e=>{const t=t$(n.value,e);return t&&(null==t.parentId||p$(n.value,t.parentId))})(t)&&o(e,t)})),a=PW((()=>{const t=X$(n.value);if(null!=t){if(t$(n.value,t)){const n=e.getItemDOMElement(t);n&&n.blur()}r(null)}}));G$(e,"removeItem",(({id:e})=>{const t=X$(n.value),r=K$(n.value);t===e&&null!=r&&o(null,r)}));const l=e=>t=>{if(e.onFocus?.(t),t.defaultMuiPrevented)return;const r=K$(n.value);t.target===t.currentTarget&&null!=r&&o(t,r)},u=e=>t=>{e.onBlur?.(t),t.defaultMuiPrevented||r(null)};return{getRootProps:e=>({onFocus:l(e),onBlur:u(e)}),publicAPI:{focusItem:i},instance:{focusItem:i,removeFocusedItem:a}}};Q$.getInitialState=()=>({focus:{focusedItemId:null}}),Q$.params={onItemFocus:!0};const Z$=t.createContext(),eU=()=>t.useContext(Z$)??!1,tU=(e,t)=>e.getAvailablePlugins().has(t),nU=e=>e.label,rU=EB([nU,(e,t)=>e$(e,t)],((e,t)=>!(!t||!e)&&("boolean"==typeof e.isItemEditable?e.isItemEditable:e.isItemEditable(t)))),oU=EB([nU,(e,t)=>t],((e,t)=>!!t&&e?.editedItemId===t)),iU=(EB(nU,(e=>!!e?.editedItemId)),({store:e,params:t})=>{const n=t=>{(null===t||rU(e.value,t))&&e.update((e=>s({},e,{label:s({},e.label,{editedItemId:t})})))},r=(n,r)=>{if(!r)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",n].join("\n"));e.update((e=>{const t=e.items.itemMetaLookup[n];return t.label!==r?s({},e,{items:s({},e.items,{itemMetaLookup:s({},e.items.itemMetaLookup,{[n]:s({},t,{label:r})})})}):e})),t.onItemLabelChange&&t.onItemLabelChange(n,r)};return IW((()=>{e.update((e=>s({},e,{label:s({},e.label,{isItemEditable:t.isItemEditable})})))}),[e,t.isItemEditable]),{instance:{setEditedItem:n,updateItemLabel:r},publicAPI:{setEditedItem:n,updateItemLabel:r}}});iU.itemPlugin=({props:e})=>{const{store:n}=YB(),{label:r,itemId:o}=e,[i,s]=t.useState(r),a=bB(n,rU,o),l=bB(n,oU,o);return t.useEffect((()=>{l||s(r)}),[l,r]),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:e,interactions:t})=>a?{value:i??"","data-element":"labelInput",onChange:t=>{e.onChange?.(t),s(t.target.value)},onKeyDown:n=>{if(e.onKeyDown?.(n),n.defaultMuiPrevented)return;const r=n.target;"Enter"===n.key&&r.value?t.handleSaveItemLabel(n,r.value):"Escape"===n.key&&t.handleCancelItemLabelEditing(n)},onBlur:n=>{e.onBlur?.(n),n.defaultMuiPrevented||n.target.value&&t.handleSaveItemLabel(n,n.target.value)},autoFocus:!0,type:"text"}:{}}}},iU.applyDefaultValuesToParams=({params:e})=>s({},e,{isItemEditable:e.isItemEditable??!1}),iU.getInitialState=e=>({label:{isItemEditable:e.isItemEditable,editedItemId:null}}),iU.params={onItemLabelChange:!0,isItemEditable:!0};const sU=({instance:e,store:n,params:r})=>{const o=eU(),i=t.useRef({}),s=PW((e=>{i.current=e(i.current)})),a=bB(n,JB);t.useEffect((()=>{if(e.areItemUpdatesPrevented())return;const t={};Object.values(a).forEach((e=>{t[e.id]=e.label.substring(0,1).toLowerCase()})),i.current=t}),[a,r.getItemId,e]);const l=e=>P$(n.value)&&!n$(n.value,e),u=e=>!n$(n.value,e)&&f$(n.value,e);return{instance:{updateFirstCharMap:s,handleItemKeyDown:async(t,r)=>{if(t.defaultMuiPrevented)return;if(t.altKey||x$(t.target,t.currentTarget))return;const s=t.ctrlKey||t.metaKey,a=t.key,c=I$(n.value);switch(!0){case" "===a&&l(r):t.preventDefault(),c&&t.shiftKey?e.expandSelectionRange(t,r):e.setItemSelection({event:t,itemId:r,keepExistingSelection:c,shouldBeSelected:void 0});break;case"Enter"===a:tU(e,iU)&&rU(n.value,r)&&!oU(n.value,r)?e.setEditedItem(r):u(r)?(e.setItemExpansion({event:t,itemId:r}),t.preventDefault()):l(r)&&(c?(t.preventDefault(),e.setItemSelection({event:t,itemId:r,keepExistingSelection:!0})):L$(n.value,r)||(e.setItemSelection({event:t,itemId:r}),t.preventDefault()));break;case"ArrowDown"===a:{const o=S$(n.value,r);o&&(t.preventDefault(),e.focusItem(t,o),c&&t.shiftKey&&l(o)&&e.selectItemFromArrowNavigation(t,r,o));break}case"ArrowUp"===a:{const o=v$(n.value,r);o&&(t.preventDefault(),e.focusItem(t,o),c&&t.shiftKey&&l(o)&&e.selectItemFromArrowNavigation(t,r,o));break}case"ArrowRight"===a&&!o||"ArrowLeft"===a&&o:if(s)return;if(p$(n.value,r)){const o=S$(n.value,r);o&&(e.focusItem(t,o),t.preventDefault())}else u(r)&&(e.setItemExpansion({event:t,itemId:r}),t.preventDefault());break;case"ArrowLeft"===a&&!o||"ArrowRight"===a&&o:if(s)return;if(u(r)&&p$(n.value,r))e.setItemExpansion({event:t,itemId:r}),t.preventDefault();else{const o=o$(n.value,r);o&&(e.focusItem(t,o),t.preventDefault())}break;case"Home"===a:l(r)&&c&&s&&t.shiftKey?e.selectRangeFromStartToItem(t,r):e.focusItem(t,_$(n.value)),t.preventDefault();break;case"End"===a:l(r)&&c&&s&&t.shiftKey?e.selectRangeFromItemToEnd(t,r):e.focusItem(t,C$(n.value)),t.preventDefault();break;case"*"===a:e.expandAllSiblings(t,r),t.preventDefault();break;case"A"===String.fromCharCode(t.keyCode)&&s&&c&&P$(n.value):e.selectAllNavigableItems(t),t.preventDefault();break;case!(s||t.shiftKey||(d=a,!d||1!==d.length||!d.match(/\S/))):{const o=((e,t)=>{const r=t.toLowerCase(),o=e=>{const t=S$(n.value,e);return null===t?_$(n.value):t};let s=null,a=o(e);const l={};for(;null==s&&!l[a];)i.current[a]===r?s=a:(l[a]=!0,a=o(a));return s})(r,a);null!=o&&(e.focusItem(t,o),t.preventDefault());break}}var d}}}};sU.params={};const aU=[u$,b$,z$,Q$,sU,iU];var lU="unmounted",uU="exited",cU="entering",dU="entered",hU="exiting",pU=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=uU,r.appearStatus=cU):o=dU:o=t.unmountOnExit||t.mountOnEnter?lU:uU,r.state={status:o},r.nextCallback=null,r}jW(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===lU?{status:uU}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==cU&&n!==dU&&(t=cU):n!==cU&&n!==dU||(t=hU)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===cU){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ao.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uU&&this.setState({status:lU})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ao.findDOMNode(this),r],i=o[0],s=o[1],a=this.getTimeouts(),l=r?a.appear:a.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:cU},(function(){t.props.onEntering(i,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:dU},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:dU},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ao.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:hU},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:uU},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:uU},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ao.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===lU)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Bz(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(YW.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function fU(){}pU.contextType=YW,pU.propTypes={},pU.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fU,onEntering:fU,onEntered:fU,onExit:fU,onExiting:fU,onExited:fU},pU.UNMOUNTED=lU,pU.EXITED=uU,pU.ENTERING=cU,pU.ENTERED=dU,pU.EXITING=hU;const mU=pU,gU=e=>e.scrollTop;function bU(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function yU(e){return zr("MuiCollapse",e)}Wr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wU=rW("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(iW((({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]})))),vU=rW("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),SU=rW("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),CU=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:a,collapsedSize:l="0px",component:u,easing:c,in:d,onEnter:h,onEntered:p,onEntering:f,onExit:m,onExited:g,onExiting:b,orientation:y="vertical",style:w,timeout:v=yr.standard,TransitionComponent:S=mU,...C}=r,_={...r,orientation:y,collapsedSize:l},M=(e=>{const{orientation:t,classes:n}=e;return $z({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},yU,n)})(_),x=yW(),k=qW(),R=t.useRef(null),T=t.useRef(),E="number"==typeof l?`${l}px`:l,L="horizontal"===y,I=L?"width":"height",P=t.useRef(null),D=LW(n,P),H=e=>t=>{if(e){const n=P.current;void 0===t?e(n):e(n,t)}},O=()=>R.current?R.current[L?"clientWidth":"clientHeight"]:0,A=H(((e,t)=>{R.current&&L&&(R.current.style.position="absolute"),e.style[I]=E,h&&h(e,t)})),N=H(((e,t)=>{const n=O();R.current&&L&&(R.current.style.position="");const{duration:r,easing:o}=bU({style:w,timeout:v,easing:c},{mode:"enter"});if("auto"===v){const t=x.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,T.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[I]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)})),j=H(((e,t)=>{e.style[I]="auto",p&&p(e,t)})),Y=H((e=>{e.style[I]=`${O()}px`,m&&m(e)})),F=H(g),z=H((e=>{const t=O(),{duration:n,easing:r}=bU({style:w,timeout:v,easing:c},{mode:"exit"});if("auto"===v){const n=x.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,T.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[I]=E,e.style.transitionTimingFunction=r,b&&b(e)}));return(0,sn.jsx)(S,{in:d,onEnter:A,onEntered:j,onEntering:N,onExit:Y,onExited:F,onExiting:z,addEndListener:e=>{"auto"===v&&k.start(T.current||0,e),o&&o(P.current,e)},nodeRef:P,timeout:"auto"===v?null:v,...C,children:(e,{ownerState:t,...n})=>(0,sn.jsx)(wU,{as:u,className:i(M.root,a,{entered:M.entered,exited:!d&&"0px"===E&&M.hidden}[e]),style:{[L?"minWidth":"minHeight"]:E,...w},ref:D,ownerState:{..._,state:e},...n,children:(0,sn.jsx)(vU,{ownerState:{..._,state:e},className:M.wrapper,ref:R,children:(0,sn.jsx)(SU,{ownerState:{..._,state:e},className:M.wrapperInner,children:s})})})})}));CU&&(CU.muiSupportAuto=!0);const _U=CU;function MU(e){const{controlled:n,default:r,name:o,state:i="value"}=e,{current:s}=t.useRef(void 0!==n),[a,l]=t.useState(r);return[s?n:a,t.useCallback((e=>{s||l(e)}),[])]}const xU=MU,kU=t.createContext(void 0);function RU(){return t.useContext(kU)}function TU(e){return zr("PrivateSwitchBase",e)}Wr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const EU=rW(mV)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),LU=rW("input",{shouldForwardProp:nW})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),IU=t.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:s,disableFocusRipple:a=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:h,name:p,onBlur:f,onChange:m,onFocus:g,readOnly:b,required:y=!1,tabIndex:w,type:v,value:S,slots:C={},slotProps:_={},...M}=e,[x,k]=xU({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=RU();let T=s;R&&void 0===T&&(T=R.disabled);const E="checkbox"===v||"radio"===v,L={...e,checked:x,disabled:T,disableFocusRipple:a,edge:l},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return $z({root:["root",n&&"checked",r&&"disabled",o&&`edge${gW(o)}`],input:["input"]},TU,t)})(L),P={slots:C,slotProps:{input:d,..._}},[D,H]=mW("root",{ref:t,elementType:EU,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...P,component:"span",...M},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),R&&R.onFocus&&R.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{f&&f(e),R&&R.onBlur&&R.onBlur(e)})(t)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!a,disabled:T,role:void 0,tabIndex:null}}),[O,A]=mW("input",{ref:h,elementType:LU,className:I.input,externalForwardedProps:P,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),m&&m(e,t)})(t)}}),ownerState:L,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:T,id:E?c:void 0,name:p,readOnly:b,required:y,tabIndex:w,type:v,..."checkbox"===v&&void 0===S?{}:{value:S}}});return(0,sn.jsxs)(D,{...H,children:[(0,sn.jsx)(O,{...A}),x?o:u]})})),PU=IU,DU=AV((0,sn.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),HU=AV((0,sn.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),OU=AV((0,sn.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function AU(e){return zr("MuiCheckbox",e)}const NU=Wr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function jU(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach((r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})})),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,s="function"==typeof e?e({...r,...o}):e,a=i(r?.className,o?.className,s?.className),l=n(s,o);return{...o,...s,...l,...!!a&&{className:a},...o?.style&&s?.style&&{style:{...o.style,...s.style}},...o?.sx&&s?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const r=t,o=n(e,r),s=i(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const YU=rW(PU,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${gW(n.size)}`],"default"!==n.color&&t[`color${gW(n.color)}`]]}})(iW((({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette[t].main,e.palette.action.hoverOpacity)}}}))),...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{[`&.${NU.checked}, &.${NU.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${NU.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}))),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})))),FU=(0,sn.jsx)(HU,{}),zU=(0,sn.jsx)(DU,{}),WU=(0,sn.jsx)(OU,{}),VU=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiCheckbox"}),{checkedIcon:o=FU,color:s="primary",icon:a=zU,indeterminate:l=!1,indeterminateIcon:u=WU,inputProps:c,size:d="medium",disableRipple:h=!1,className:p,slots:f={},slotProps:m={},...g}=r,b=l?u:a,y=l?u:o,w={...r,disableRipple:h,color:s,indeterminate:l,size:d},v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=$z({root:["root",n&&"indeterminate",`color${gW(r)}`,`size${gW(o)}`]},AU,t);return{...t,...i}})(w),S=m.input??c,[C,_]=mW("root",{ref:n,elementType:YU,className:i(v.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:m,...g},ownerState:w,additionalProps:{type:"checkbox",icon:t.cloneElement(b,{fontSize:b.props.fontSize??d}),checkedIcon:t.cloneElement(y,{fontSize:y.props.fontSize??d}),disableRipple:h,slots:f,slotProps:{input:jU("function"==typeof S?S(w):S,{"data-indeterminate":l})}}});return(0,sn.jsx)(C,{..._,classes:v})})),BU=VU,$U=EB([e=>e.lazyLoading],(e=>e.dataSource)),UU=EB([e=>e.lazyLoading],(e=>!!e?.enabled)),GU=EB([$U,(e,t)=>t],((e,t)=>e.loading[t]||!1)),KU=EB([$U,(e,t)=>t],((e,t)=>e.errors[t]||null)),qU=e=>Array.isArray(e)?e.length>0&&e.some(qU):Boolean(e);function XU(e){return zr("MuiTreeItem",e)}Wr("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"]);const JU=AV((0,sn.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),QU=AV((0,sn.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function ZU(e){const{slots:t,slotProps:n,status:r}=e,{slots:o,slotProps:i}=zB(),a={collapseIcon:t?.collapseIcon??o.collapseIcon??QU,expandIcon:t?.expandIcon??o.expandIcon??JU,endIcon:t?.endIcon??o.endIcon,icon:t?.icon};let l;l=a?.icon?"icon":r.expandable?r.expanded?"collapseIcon":"expandIcon":"endIcon";const u=a[l],c=sB({elementType:u,externalSlotProps:e=>s({},dW(i[l],e),dW(n?.[l],e)),ownerState:{}});return u?(0,sn.jsx)(u,s({},c)):null}const eG=rW("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>Kz(e)&&"action"!==e})((({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:mn(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]})));function tG(e){return null==e.action?null:(0,sn.jsx)(eG,s({},e))}function nG(e){const{children:n,itemId:r,id:o}=e,{wrapItem:i,instance:s,store:a}=YB(),l=bB(a,LB),u=PB({itemId:r,treeId:l,id:o});return(0,sn.jsx)(t.Fragment,{children:i({children:n,itemId:r,instance:s,idAttribute:u})})}const rG=rW("input",{name:"MuiTreeItem",slot:"LabelInput"})((({theme:e})=>s({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}}))),oG=["visible"],iG=["id","itemId","label","disabled","children","slots","slotProps","classes"],sG=dB(),aG=rW("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),lG=rW("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>Kz(e)&&"status"!==e})((({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}))),uG=rW("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>Kz(e)&&"editable"!==e})((({theme:e})=>s({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:e})=>e,style:{paddingLeft:"2px"}}]}))),cG=rW("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative","& svg":{fontSize:18}}),dG=rW(_U,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),hG=rW("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),pG=rW(xV,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),fG=rW(t.forwardRef(((e,t)=>{const{visible:n}=e,r=Bz(e,oG);return n?(0,sn.jsx)(BU,s({},r,{ref:t})):null})),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0}),mG=t.forwardRef((function(e,n){const r=sG({props:e,name:"MuiTreeItem"}),{id:o,itemId:a,label:l,disabled:u,children:c,slots:d={},slotProps:h={},classes:p}=r,f=Bz(r,iG),{getContextProviderProps:m,getRootProps:g,getContentProps:b,getIconContainerProps:y,getCheckboxProps:w,getLabelProps:v,getGroupTransitionProps:S,getLabelInputProps:C,getDragAndDropOverlayProps:_,getErrorContainerProps:M,getLoadingContainerProps:x,status:k}=(e=>{const{runItemPlugins:n,instance:r,publicAPI:o,store:i}=YB(),a=t.useContext(GB),l=bB(i,((...e)=>"function"==typeof a?a(...e):a),e.itemId),{id:u,itemId:c,label:d,children:h,rootRef:p}=e,{rootRef:f,contentRef:m,propsEnhancers:g}=n(e),{interactions:b,status:y}=(({itemId:e,children:t})=>{const{instance:n,store:r,publicAPI:o}=YB(),i=bB(r,f$,e),s=bB(r,UU),a=bB(r,I$),l=bB(r,(t=>!!s&&GU(t,e))),u=bB(r,(t=>!!s&&Boolean(KU(t,e)))),c=qU(t)||i,d=bB(r,p$,e),h=bB(r,J$,e),p=bB(r,L$,e),f=bB(r,n$,e),m=bB(r,oU,e),g=bB(r,rU,e),b={expandable:c,expanded:d,focused:h,selected:p,disabled:f,editing:m,editable:g,loading:l,error:u},y=()=>{tU(n,iU)&&(m?n.setEditedItem(null):n.setEditedItem(e))};return{interactions:{handleExpansion:t=>{if(b.disabled)return;b.focused||n.focusItem(t,e);const o=a&&(t.shiftKey||t.ctrlKey||t.metaKey);!b.expandable||o&&p$(r.value,e)||n.setItemExpansion({event:t,itemId:e})},handleSelection:t=>{b.disabled||(b.focused||b.editing||n.focusItem(t,e),a&&(t.shiftKey||t.ctrlKey||t.metaKey)?t.shiftKey?n.expandSelectionRange(t,e):n.setItemSelection({event:t,itemId:e,keepExistingSelection:!0}):n.setItemSelection({event:t,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:t=>{const r=t.nativeEvent.shiftKey;a&&r?n.expandSelectionRange(t,e):n.setItemSelection({event:t,itemId:e,keepExistingSelection:a,shouldBeSelected:t.target.checked})},toggleItemEditing:y,handleSaveItemLabel:(t,o)=>{tU(n,iU)&&oU(r.value,e)&&(n.updateItemLabel(e,o),y(),n.focusItem(t,e))},handleCancelItemLabelEditing:t=>{tU(n,iU)&&oU(r.value,e)&&(y(),n.focusItem(t,e))}},status:b,publicAPI:o}})({itemId:c,children:h}),w=t.useRef(null),v=t.useRef(null),S=uW(p,f,w),C=uW(m,v),_=t.useRef(null),M=bB(i,LB),x=bB(i,H$,c),k=bB(i,D$),R=PB({itemId:c,treeId:M,id:u}),T=bB(i,q$,c),E={rootRefObject:w,contentRefObject:v,interactions:b},L=e=>t=>{if(e.onBlur?.(t),t.defaultMuiPrevented)return;const n=r.getItemDOMElement(c);y.editing||t.relatedTarget&&x$(t.relatedTarget,n)&&(t.target&&"labelInput"===t.target?.dataset?.element&&x$(t.target,n)||"labelInput"===t.relatedTarget?.dataset?.element)||r.removeFocusedItem()},I=e=>t=>{e.onKeyDown?.(t),t.defaultMuiPrevented||"labelInput"===t.target?.dataset?.element||r.handleItemKeyDown(t,c)},P=e=>t=>{e.onMouseDown?.(t),t.defaultMuiPrevented||(t.shiftKey||t.ctrlKey||t.metaKey||y.disabled)&&t.preventDefault()};return{getContextProviderProps:()=>({itemId:c,id:u}),getRootProps:(t={})=>{const n=s({},hW(e),hW(t));let o;o=!!y.selected||!x&&void 0;const a=s({},n,{ref:S,role:"treeitem",tabIndex:T?0:-1,id:R,"aria-expanded":y.expandable?y.expanded:void 0,"aria-selected":o,"aria-disabled":y.disabled||void 0},t,{style:s({},t.style??{},{"--TreeView-itemDepth":l}),onFocus:(u=n,e=>{u.onFocus?.(e),e.defaultMuiPrevented||!y.focused&&a$(i.value,c)&&e.currentTarget===e.target&&r.focusItem(e,c)}),onBlur:L(n),onKeyDown:I(n)});var u;const d=g.root?.(s({},E,{externalEventHandlers:n}))??{};return s({},a,d)},getContentProps:(e={})=>{const t=hW(e),n=s({},t,e,{ref:C,onClick:(o=t,e=>{o.onClick?.(e),r.handleItemClick(e,c),e.defaultMuiPrevented||_.current?.contains(e.target)||("content"===m$(i.value)&&b.handleExpansion(e),k||b.handleSelection(e))}),onMouseDown:P(t),status:y});var o;["expanded","selected","focused","disabled","editing","editable"].forEach((e=>{y[e]&&(n[`data-${e}`]="")}));const a=g.content?.(s({},E,{externalEventHandlers:t}))??{};return s({},n,a)},getGroupTransitionProps:(e={})=>s({},hW(e),{unmountOnExit:!0,component:"ul",role:"group",in:y.expanded,children:h},e),getIconContainerProps:(e={})=>{const t=hW(e);return s({},t,e,{onClick:(n=t,e=>{n.onClick?.(e),e.defaultMuiPrevented||"iconContainer"===m$(i.value)&&b.handleExpansion(e)})});var n},getCheckboxProps:(e={})=>{const t=hW(e),n=s({},t,{ref:_},e),r=g.checkbox?.(s({},E,{externalEventHandlers:t}))??{};return s({},n,r)},getLabelProps:(e={})=>{const t=s({},hW(e)),n=s({},t,{children:d},e,{onDoubleClick:(r=t,e=>{r.onDoubleClick?.(e),e.defaultMuiPrevented||b.toggleItemEditing()})});var r;const o=g.label?.(s({},E,{externalEventHandlers:t}))??{};return s({},o,n)},getLabelInputProps:(e={})=>{const t=hW(e),n=g.labelInput?.(s({},E,{externalEventHandlers:t}))??{};return s({},e,n)},getDragAndDropOverlayProps:(e={})=>{const t=hW(e),n=g.dragAndDropOverlay?.(s({},E,{externalEventHandlers:t}))??{};return s({},e,n)},getErrorContainerProps:(e={})=>s({},hW(e),e),getLoadingContainerProps:(e={})=>s({size:"12px",thickness:6},hW(e),e),rootRef:S,status:y,publicAPI:o}})({id:o,itemId:a,children:c,label:l,disabled:u}),R=(e=>{const{classes:t}=zB();return $z({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"],expanded:["expanded"],editing:["editing"],editable:["editable"],selected:["selected"],focused:["focused"],disabled:["disabled"]},XU,s({},e,{root:i(e?.root,t.root),content:i(e?.content,t.itemContent),iconContainer:i(e?.iconContainer,t.itemIconContainer),checkbox:i(e?.checkbox,t.itemCheckbox),label:i(e?.label,t.itemLabel),groupTransition:i(e?.groupTransition,t.itemGroupTransition),labelInput:i(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:i(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:i(e?.errorIcon,t.itemErrorIcon),loadingIcon:i(e?.loadingIcon,t.itemLoadingIcon)}))})(p),T=d.root??aG,E=sB({elementType:T,getSlotProps:g,externalForwardedProps:f,externalSlotProps:h.root,additionalProps:{ref:n},ownerState:{},className:R.root}),L=d.content??lG,I=sB({elementType:L,getSlotProps:b,externalSlotProps:h.content,ownerState:{},className:i(R.content,k.expanded&&R.expanded,k.selected&&R.selected,k.focused&&R.focused,k.disabled&&R.disabled,k.editing&&R.editing,k.editable&&R.editable)}),P=d.iconContainer??cG,D=sB({elementType:P,getSlotProps:y,externalSlotProps:h.iconContainer,ownerState:{},className:R.iconContainer}),H=d.label??uG,O=sB({elementType:H,getSlotProps:v,externalSlotProps:h.label,ownerState:{},className:R.label}),A=d.checkbox??fG,N=sB({elementType:A,getSlotProps:w,externalSlotProps:h.checkbox,ownerState:{},className:R.checkbox}),j=d.groupTransition??void 0,Y=sB({elementType:j,getSlotProps:S,externalSlotProps:h.groupTransition,ownerState:{},className:R.groupTransition}),F=d.labelInput??rG,z=sB({elementType:F,getSlotProps:C,externalSlotProps:h.labelInput,ownerState:{},className:R.labelInput}),W=d.dragAndDropOverlay??tG,V=sB({elementType:W,getSlotProps:_,externalSlotProps:h.dragAndDropOverlay,ownerState:{},className:R.dragAndDropOverlay}),B=d.errorIcon??hG,$=sB({elementType:B,getSlotProps:M,externalSlotProps:h.errorIcon,ownerState:{},className:R.errorIcon}),U=d.loadingIcon??pG,G=sB({elementType:U,getSlotProps:x,externalSlotProps:h.loadingIcon,ownerState:{},className:R.loadingIcon});return(0,sn.jsx)(nG,s({},m(),{children:(0,sn.jsxs)(T,s({},E,{children:[(0,sn.jsxs)(L,s({},I,{children:[(0,sn.jsxs)(P,s({},D,{children:[k.error&&(0,sn.jsx)(B,s({},$)),k.loading?(0,sn.jsx)(U,s({},G)):(0,sn.jsx)(ZU,{status:k,slots:d,slotProps:h})]})),(0,sn.jsx)(A,s({},N)),k.editing?(0,sn.jsx)(F,s({},z)):(0,sn.jsx)(H,s({},O)),(0,sn.jsx)(W,s({},V))]})),c&&(0,sn.jsx)(dG,s({as:j},Y))]}))}))})),gG=["ownerState"],bG=t.createContext(null),yG=t.memo((function({itemSlot:e,itemSlotProps:n,itemId:r}){const o=t.useContext(bG),{store:i}=YB(),a=bB(i,t$,r),l=bB(i,ZB,r),u=e??mG,c=Bz(sB({elementType:u,externalSlotProps:n,additionalProps:{label:a?.label,id:a?.idAttribute,itemId:r},ownerState:{itemId:r,label:a?.label}}),gG);return(0,sn.jsx)(u,s({},c,{children:l?.map(o)}))}),Y$);function wG(e){const{slots:n,slotProps:r}=e,{store:o}=YB(),i=n?.item,s=r?.item,a=bB(o,ZB,null),l=t.useCallback((e=>(0,sn.jsx)(yG,{itemSlot:i,itemSlotProps:s,itemId:e},e)),[i,s]);return(0,sn.jsx)(bG.Provider,{value:l,children:a.map(l)})}const vG=["slots","slotProps"],SG=dB(),CG=rW("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),_G=t.forwardRef((function(e,n){const r=SG({props:e,name:"MuiRichTreeView"}),{slots:o,slotProps:i}=r,a=Bz(r,vG),{getRootProps:l,contextValue:u}=(({plugins:e,rootRef:n,props:r})=>{const o=t.useMemo((()=>[...HB,...e]),[e]),{pluginParams:i,forwardedProps:a,apiRef:l}=(e=>{let{props:{apiRef:n},plugins:r}=e,o=Bz(e.props,OB);const i=t.useMemo((()=>{const e={};return r.forEach((t=>{Object.assign(e,t.params)})),e}),[r]),{forwardedProps:s,pluginParams:a}=t.useMemo((()=>{const e={},t={};Object.keys(o).forEach((n=>{const r=o[n];i[n]?e[n]=r:t[n]=r}));const n=r.reduce(((e,t)=>t.applyDefaultValuesToParams?t.applyDefaultValuesToParams({params:e}):e),e);return{forwardedProps:t,pluginParams:n}}),[r,o,i]);return{forwardedProps:s,pluginParams:a,apiRef:n}})({plugins:o,props:r}),u=t.useRef({}).current,c=function(e){const n=t.useRef({});return e?function(e){return null==e.current&&(e.current={}),e}(e):n}(l),d=t.useRef(null),h=uW(d,n),p=t.useRef(null);if(null==p.current){NB+=1;const e={cacheKey:{id:NB}};o.forEach((t=>{t.getInitialState&&Object.assign(e,t.getInitialState(i))})),p.current=new AB(e)}const f=(e=>{const{plugins:n,instance:r,publicAPI:o,store:i,rootRef:s}=e,a=t.useCallback((e=>{let t=null,r=null;const o=[],i={};n.forEach((n=>{if(!n.itemPlugin)return;const s=n.itemPlugin({props:e,rootRef:t,contentRef:r});s?.rootRef&&(t=s.rootRef),s?.contentRef&&(r=s.contentRef),s?.propsEnhancers&&(o.push(s.propsEnhancers),Object.keys(s.propsEnhancers).forEach((e=>{i[e]=!0})))}));const s=Object.fromEntries(Object.keys(i).map((e=>{return[e,(t=e,e=>{const n={};return o.forEach((r=>{const o=r[t];null!=o&&Object.assign(n,o(e))})),n})];var t})));return{contentRef:r,rootRef:t,propsEnhancers:s}}),[n]),l=t.useCallback((({itemId:e,children:t,idAttribute:o})=>{let i=t;for(let t=n.length-1;t>=0;t-=1){const s=n[t];s.wrapItem&&(i=s.wrapItem({instance:r,itemId:e,children:i,idAttribute:o}))}return i}),[n,r]),u=t.useCallback((({children:e})=>{let t=e;for(let e=n.length-1;e>=0;e-=1){const r=n[e];r.wrapRoot&&(t=r.wrapRoot({children:t}))}return t}),[n]);return t.useMemo((()=>({runItemPlugins:a,wrapItem:l,wrapRoot:u,instance:r,publicAPI:o,store:i,rootRef:s})),[a,l,u,r,o,i,s])})({plugins:o,instance:u,publicAPI:c.current,store:p.current,rootRef:d}),m=[];return o.forEach((e=>{const t=e({instance:u,params:i,rootRef:d,plugins:o,store:p.current});t.getRootProps&&m.push(t.getRootProps),t.publicAPI&&Object.assign(c.current,t.publicAPI),t.instance&&Object.assign(u,t.instance)})),{getRootProps:(e={})=>{const t=s({role:"tree"},a,e,{ref:h});return m.forEach((n=>{Object.assign(t,n(e))})),t},rootRef:h,contextValue:f}})({plugins:aU,rootRef:n,props:a}),c=bB(u.store,qB),d=bB(u.store,XB),h=(e=>{const{classes:n}=e;return t.useMemo((()=>$z({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},aB,n)),[n])})(r),p=o?.root??CG,f=sB({elementType:p,externalSlotProps:i?.root,className:h.root,getSlotProps:l,ownerState:r});return c?(0,sn.jsx)(iB,{children:"Loading..."}):d?(0,sn.jsx)(KV,{severity:"error",children:d.message}):(0,sn.jsx)(VB,{contextValue:u,classes:h,slots:o,slotProps:i,children:(0,sn.jsx)(p,s({},f,{children:(0,sn.jsx)(wG,{slots:o,slotProps:i})}))})}));function MG(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}const xG=Qz(),kG=(e,t,n)=>{const r=e.keys[0];var o,i;Array.isArray(t)?t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)})):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}})):"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)};function RG(e){return`--Grid-${e}Spacing`}function TG(e){return`--Grid-parent-${e}Spacing`}const EG="--Grid-columns",LG="--Grid-parent-columns",IG=({theme:e,ownerState:t})=>{const n={};return kG(e.breakpoints,t.size,((e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${LG}) - (var(${LG}) - ${t}) * (var(${TG("column")}) / var(${LG})))`}),e(n,r)})),n},PG=({theme:e,ownerState:t})=>{const n={};return kG(e.breakpoints,t.offset,((e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${LG}) + var(${TG("column")}) * ${t} / var(${LG}))`}),e(n,r)})),n},DG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[EG]:12};return kG(e.breakpoints,t.columns,((e,t)=>{const r=t??12;e(n,{[EG]:r,"> *":{[LG]:r}})})),n},HG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return kG(e.breakpoints,t.rowSpacing,((t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[RG("row")]:o,"> *":{[TG("row")]:o}})})),n},OG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return kG(e.breakpoints,t.columnSpacing,((t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[RG("column")]:o,"> *":{[TG("column")]:o}})})),n},AG=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return kG(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},NG=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${RG("row")}) var(${RG("column")})`}}),jG=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},YG=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},FG=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map((([e,t])=>`direction-${e}-${t}`)):[`direction-xs-${String(e)}`],zG=nn(),WG=xG("div",{name:"MuiGrid",slot:"Root"});function VG(e){return uB({props:e,name:"MuiGrid",defaultTheme:zG})}const BG=function(e={}){const{createStyledComponent:n=WG,useThemeProps:r=VG,useTheme:o=on,componentName:s="MuiGrid"}=e;function a(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach(((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)})):"object"==typeof e?Object.keys(e).forEach((t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)})):r[t.keys[0]]=e),r}const l=n(DG,OG,HG,IG,AG,NG,PG),u=t.forwardRef((function(e,n){const u=o(),c=Jt(r(e));!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach((t=>{void 0!==e[t]&&(n.push(t),delete e[t])}))}(c,u.breakpoints);const{className:d,children:h,columns:p=12,container:f=!1,component:m="div",direction:g="row",wrap:b="wrap",size:y={},offset:w={},spacing:v=0,rowSpacing:S=v,columnSpacing:C=v,unstable_level:_=0,...M}=c,x=a(y,u.breakpoints,(e=>!1!==e)),k=a(w,u.breakpoints),R=e.columns??(_?void 0:p),T=e.spacing??(_?void 0:v),E=e.rowSpacing??e.spacing??(_?void 0:S),L=e.columnSpacing??e.spacing??(_?void 0:C),I={...c,level:_,columns:R,container:f,direction:g,wrap:b,spacing:T,rowSpacing:E,columnSpacing:L,size:x,offset:k},P=((e,t)=>{const{container:n,direction:r,spacing:o,wrap:i,size:a}=e;return $z({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...FG(r),...jG(a),...n?YG(o,t.breakpoints.keys[0]):[]]},(e=>zr(s,e)),{})})(I,u);return(0,sn.jsx)(l,{ref:n,as:m,ownerState:I,className:i(P.root,d),...M,children:t.Children.map(h,(e=>t.isValidElement(e)&&MG(e,["Grid"])&&f&&e.props.container?t.cloneElement(e,{unstable_level:e.props?.unstable_level??_+1}):e))})}));return u.muiName="Grid",u}({createStyledComponent:rW("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>lW({props:e,name:"MuiGrid"}),useTheme:yW}),$G=BG;function UG(e){return zr("MuiTab",e)}const GG=Wr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),KG=rW(mV,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${gW(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${GG.iconWrapper}`]:t.iconWrapper},{[`& .${GG.icon}`]:t.icon}]}})(iW((({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${GG.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${GG.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${GG.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${GG.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${GG.selected}`]:{opacity:1},[`&.${GG.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${GG.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${GG.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${GG.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${GG.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]})))),qG=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:u,iconPosition:c="top",indicator:d,label:h,onChange:p,onClick:f,onFocus:m,selected:g,selectionFollowsFocus:b,textColor:y="inherit",value:w,wrapped:v=!1,...S}=r,C={...r,disabled:s,disableFocusRipple:a,selected:g,icon:!!u,iconPosition:c,label:!!h,fullWidth:l,textColor:y,wrapped:v},_=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:l}=e;return $z({root:["root",i&&s&&"labelIcon",`textColor${gW(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},UG,t)})(C),M=u&&h&&t.isValidElement(u)?t.cloneElement(u,{className:i(_.icon,u.props.className)}):u;return(0,sn.jsxs)(KG,{focusRipple:!a,className:i(_.root,o),ref:n,role:"tab","aria-selected":g,disabled:s,onClick:e=>{!g&&p&&p(e,w),f&&f(e)},onFocus:e=>{b&&!g&&p&&p(e,w),m&&m(e)},ownerState:C,tabIndex:g?0:-1,...S,children:["top"===c||"start"===c?(0,sn.jsxs)(t.Fragment,{children:[M,h]}):(0,sn.jsxs)(t.Fragment,{children:[h,M]}),d]})})),XG=qG,JG=t.createContext(null);function QG(e){const{children:n,value:r}=e,o=function(){const[e,n]=t.useState(null);return t.useEffect((()=>{n(`mui-p-${Math.round(1e5*Math.random())}`)}),[]),e}(),i=t.useMemo((()=>({idPrefix:o,value:r})),[o,r]);return(0,sn.jsx)(JG.Provider,{value:i,children:n})}function ZG(){return t.useContext(JG)}function eK(e,t){const{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-P-${t}`}function tK(e,t){const{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-T-${t}`}function nK(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}const rK=nK;function oK(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const iK=IW;function sK(e){return e&&e.ownerDocument||document}function aK(e){return sK(e).defaultView||window}const lK=aK,uK={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},cK=AV((0,sn.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),dK=AV((0,sn.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function hK(e){return zr("MuiTabScrollButton",e)}const pK=Wr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),fK=rW(mV,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${pK.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),mK=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:s={},direction:a,orientation:l,disabled:u,...c}=n,d=eU(),h={isRtl:d,...n},p=(e=>{const{classes:t,orientation:n,disabled:r}=e;return $z({root:["root",n,r&&"disabled"]},hK,t)})(h),f=o.StartScrollButtonIcon??cK,m=o.EndScrollButtonIcon??dK,g=sB({elementType:f,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),b=sB({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,sn.jsx)(fK,{component:"div",className:i(p.root,r),ref:t,role:null,ownerState:h,tabIndex:null,...c,style:{...c.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===a?(0,sn.jsx)(f,{...g}):(0,sn.jsx)(m,{...b})})})),gK=mK;function bK(e){return zr("MuiTabs",e)}const yK=Wr("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),wK=sK,vK=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,SK=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,CK=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},_K=rW("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yK.scrollButtons}`]:t.scrollButtons},{[`& .${yK.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(iW((({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${yK.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]})))),MK=rW("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),xK=rW("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),kK=rW("span",{name:"MuiTabs",slot:"Indicator"})(iW((({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]})))),RK=rW((function(e){const{onChange:n,...r}=e,o=t.useRef(),i=t.useRef(null),s=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return iK((()=>{const e=rK((()=>{const e=o.current;s(),e!==o.current&&n(o.current)})),t=lK(i.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[n]),t.useEffect((()=>{s(),n(o.current)}),[n]),(0,sn.jsx)("div",{style:uK,...r,ref:i})}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),TK={},EK=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTabs"}),o=yW(),s=eU(),{"aria-label":a,"aria-labelledby":l,action:u,centered:c=!1,children:d,className:h,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:y,scrollButtons:w="auto",selectionFollowsFocus:v,slots:S={},slotProps:C={},TabIndicatorProps:_={},TabScrollButtonProps:M={},textColor:x="primary",value:k,variant:R="standard",visibleScrollbar:T=!1,...E}=r,L="scrollable"===R,I="vertical"===b,P=I?"scrollTop":"scrollLeft",D=I?"top":"left",H=I?"bottom":"right",O=I?"clientHeight":"clientWidth",A=I?"height":"width",N={...r,component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:b,vertical:I,scrollButtons:w,textColor:x,variant:R,visibleScrollbar:T,fixed:!L,hideScrollbar:L&&!T,scrollableX:L&&!I,scrollableY:L&&I,centered:c&&!L,scrollButtonsHideMobile:!f},j=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return $z({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},bK,l)})(N),Y=sB({elementType:S.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:N}),F=sB({elementType:S.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:N}),[z,W]=t.useState(!1),[V,B]=t.useState(TK),[$,U]=t.useState(!1),[G,K]=t.useState(!1),[q,X]=t.useState(!1),[J,Q]=t.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,ee=t.useRef(null),te=t.useRef(null),ne={slots:S,slotProps:{indicator:_,scrollButton:M,...C}},re=()=>{const e=ee.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==k){const e=te.current.children;if(e.length>0){const t=e[Z.get(k)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=DW((()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;I?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=s?"right":"left",t&&e&&(r=(s?-1:1)*(t[n]-e[n]+e.scrollLeft)));const o={[n]:r,[A]:t?t[A]:0};if("number"!=typeof V[n]||"number"!=typeof V[A])B(o);else{const e=Math.abs(V[n]-o[n]),t=Math.abs(V[A]-o[A]);(e>=1||t>=1)&&B(o)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=oK,duration:s=300}=r;let a=null;const l=t[e];let u=!1;const c=r=>{if(u)return void o(new Error("Animation cancelled"));null===a&&(a=r);const d=Math.min(1,(r-a)/s);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(c)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(c)}(P,ee.current,e,{duration:o.transitions.duration.standard}):ee.current[P]=e},se=e=>{let t=ee.current[P];t+=I?e:e*(s?-1:1),ie(t)},ae=()=>{const e=ee.current[O];let t=0;const n=Array.from(te.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[O]>e){0===r&&(t=e);break}t+=o[O]}return t},le=()=>{se(-1*ae())},ue=()=>{se(ae())},[ce,{onChange:de,...he}]=mW("scrollbar",{className:i(j.scrollableX,j.hideScrollbar),elementType:RK,shouldForwardComponentProp:!0,externalForwardedProps:ne,ownerState:N}),pe=t.useCallback((e=>{de?.(e),Q({overflow:null,scrollbarWidth:e})}),[de]),[fe,me]=mW("scrollButtons",{className:i(j.scrollButtons,M.className),elementType:gK,externalForwardedProps:ne,ownerState:N,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:S.startScrollButtonIcon||S.StartScrollButtonIcon,EndScrollButtonIcon:S.endScrollButtonIcon||S.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:Y,endScrollButtonIcon:F}}}),ge=DW((e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[D]<t[D]){const r=t[P]+(n[D]-t[D]);ie(r,{animation:e})}else if(n[H]>t[H]){const r=t[P]+(n[H]-t[H]);ie(r,{animation:e})}})),be=DW((()=>{L&&!1!==w&&X(!q)}));t.useEffect((()=>{const e=rK((()=>{ee.current&&oe()}));let t;const n=lK(ee.current);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(te.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(r=new MutationObserver((n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{t?.unobserve(e)})),e.addedNodes.forEach((e=>{t?.observe(e)}))})),e(),be()})),r.observe(te.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),r?.disconnect(),t?.disconnect()}}),[oe,be]),t.useEffect((()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==w){const n=e[0],r=e[t-1],o={root:ee.current,threshold:.99},i=e=>{U(!e[0].isIntersecting)},s=new IntersectionObserver(i,o);s.observe(n);const a=e=>{K(!e[0].isIntersecting)},l=new IntersectionObserver(a,o);return l.observe(r),()=>{s.disconnect(),l.disconnect()}}}),[L,w,q,d?.length]),t.useEffect((()=>{W(!0)}),[]),t.useEffect((()=>{oe()})),t.useEffect((()=>{ge(TK!==V)}),[ge,V]),t.useImperativeHandle(u,(()=>({updateIndicator:oe,updateScrollButtons:be})),[oe,be]);const[ye,we]=mW("indicator",{className:i(j.indicator,_.className),elementType:kK,externalForwardedProps:ne,ownerState:N,additionalProps:{style:V}}),ve=(0,sn.jsx)(ye,{...we});let Se=0;const Ce=t.Children.map(d,(e=>{if(!t.isValidElement(e))return null;const n=void 0===e.props.value?Se:e.props.value;Z.set(n,Se);const r=n===k;return Se+=1,t.cloneElement(e,{fullWidth:"fullWidth"===R,indicator:r&&!z&&ve,selected:r,selectionFollowsFocus:v,onChange:g,textColor:x,value:n,...1!==Se||!1!==k||e.props.tabIndex?{}:{tabIndex:0}})})),_e=(()=>{const e={};e.scrollbarSizeListener=L?(0,sn.jsx)(ce,{...he,onChange:pe}):null;const t=L&&("auto"===w&&($||G)||!0===w);return e.scrollButtonStart=t?(0,sn.jsx)(fe,{direction:s?"right":"left",onClick:le,disabled:!$,...me}):null,e.scrollButtonEnd=t?(0,sn.jsx)(fe,{direction:s?"left":"right",onClick:ue,disabled:!G,...me}):null,e})(),[Me,xe]=mW("root",{ref:n,className:i(j.root,h),elementType:_K,externalForwardedProps:{...ne,...E,component:p},ownerState:N}),[ke,Re]=mW("scroller",{ref:ee,className:j.scroller,elementType:MK,externalForwardedProps:ne,ownerState:N,additionalProps:{style:{overflow:J.overflow,[I?"margin"+(s?"Left":"Right"):"marginBottom"]:T?void 0:-J.scrollbarWidth}}}),[Te,Ee]=mW("list",{ref:te,className:i(j.list,j.flexContainer),elementType:xK,externalForwardedProps:ne,ownerState:N,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=te.current,n=wK(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===b?"ArrowLeft":"ArrowUp",o="horizontal"===b?"ArrowRight":"ArrowDown";switch("horizontal"===b&&s&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),CK(t,n,SK);break;case o:e.preventDefault(),CK(t,n,vK);break;case"Home":e.preventDefault(),CK(t,null,vK);break;case"End":e.preventDefault(),CK(t,null,SK)}})(t),e.onKeyDown?.(t)}})});return(0,sn.jsxs)(Me,{...xe,children:[_e.scrollButtonStart,_e.scrollbarSizeListener,(0,sn.jsxs)(ke,{...Re,children:[(0,sn.jsx)(Te,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===b?"vertical":null,role:"tablist",...Ee,children:Ce}),z&&ve]}),_e.scrollButtonEnd]})})),LK=EK,IK=t.forwardRef((function(e,n){const{children:r,...o}=e,i=ZG();if(null===i)throw new TypeError("No TabContext provided");const s=t.Children.map(r,(e=>t.isValidElement(e)?t.cloneElement(e,{"aria-controls":eK(i,e.props.value),id:tK(i,e.props.value)}):null));return(0,sn.jsx)(LK,{...o,ref:n,value:i.value,children:s})}));function PK(e){return zr("MuiTabPanel",e)}Wr("MuiTabPanel",["root","hidden"]);const DK=rW("div",{name:"MuiTabPanel",slot:"Root"})((({theme:e})=>({padding:e.spacing(3)}))),HK=t.forwardRef((function(e,t){const n=cB({props:e,name:"MuiTabPanel"}),{children:r,className:o,value:s,keepMounted:a=!1,...l}=n,u={...n},c=(e=>{const{classes:t,hidden:n}=e;return $z({root:["root",n&&"hidden"]},PK,t)})(u),d=ZG();if(null===d)throw new TypeError("No TabContext provided");const h=eK(d,s),p=tK(d,s);return(0,sn.jsx)(DK,{"aria-labelledby":p,className:i(c.root,o),hidden:s!==d.value,id:h,ref:t,role:"tabpanel",ownerState:u,...l,children:(a||s===d.value)&&r})})),OK=HK,AK=nn(),NK=xG("div",{name:"MuiStack",slot:"Root"});function jK(e){return uB({props:e,name:"MuiStack",defaultTheme:AK})}function YK(e,n){const r=t.Children.toArray(e).filter(Boolean);return r.reduce(((e,o,i)=>(e.push(o),i<r.length-1&&e.push(t.cloneElement(n,{key:`separator-${i}`})),e)),[])}const FK=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...et({theme:t},rt({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const r=mt(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=rt({values:e.direction,base:o}),s=rt({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}})),n=qe(n,et({theme:t},s,((t,n)=>{return e.useFlexGap?{gap:gt(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:gt(r,t)}};var o})))}return n=function(e,...t){const n=tt(e),r=[n,...t].reduce(((e,t)=>qe(e,t)),{});return nt(Object.keys(n),r)}(t.breakpoints,n),n},zK=function(e={}){const{createStyledComponent:n=NK,useThemeProps:r=jK,componentName:o="MuiStack"}=e,s=n(FK),a=t.forwardRef((function(e,t){const n=Jt(r(e)),{component:a="div",direction:l="column",spacing:u=0,divider:c,children:d,className:h,useFlexGap:p=!1,...f}=n,m={direction:l,spacing:u,useFlexGap:p},g=$z({root:["root"]},(e=>zr(o,e)),{});return(0,sn.jsx)(s,{as:a,ownerState:m,ref:t,className:i(g.root,h),...f,children:c?YK(d,c):d})}));return a}({createStyledComponent:rW("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>lW({props:e,name:"MuiStack"})}),WK=zK;function VK(e){return VK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VK(e)}function BK(){BK=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(t,n,r,o){var i=n&&n.prototype instanceof h?n:h,s=Object.create(i.prototype);return l(s,"_invoke",function(t,n,r){var o=1;return function(i,s){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var u=c(t,n,r);if("normal"===u.type){if(o=r.done?4:2,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=4,r.method="throw",r.arg=u.arg)}}}(t,r,new M(o||[])),!0),s}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d={};function h(){}function p(){}function f(){}var m={};l(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(x([])));b&&b!==n&&r.call(b,i)&&(m=b);var y=f.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){function n(o,i,s,a){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==VK(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function S(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=c(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var s=i.arg;return s?s.done?(n[t.r]=s.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function C(e){this.tryEntries.push(e)}function _(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function M(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}function x(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(VK(t)+" is not iterable")}return p.prototype=f,l(y,"constructor",f),l(f,"constructor",p),p.displayName=l(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},w(v.prototype),l(v.prototype,s,(function(){return this})),t.AsyncIterator=v,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new v(u(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},w(y),l(y,a,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=x,M.prototype={constructor:M,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){s.type="throw",s.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i[4],a=this.prev,l=i[1],u=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=a){if(a<l)return this.method="next",this.arg=e,r(l),!0;if(a<u)return r(u),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),_(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;_(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:x(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function $K(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function UK(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){$K(i,r,o,s,a,"next",e)}function a(e){$K(i,r,o,s,a,"throw",e)}s(void 0)}))}}function GK(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,KK(r.key),r)}}function KK(e){var t=function(e){if("object"!=VK(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=VK(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==VK(t)?t:t+""}var qK=function(){return function(e,t){return t&&GK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}),[{key:"ip",value:function(){return"http://127.0.0.1"}},{key:"generateOutline",value:(S=UK(BK().mark((function e(t){var n,r;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/outline"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return r=e.sent,e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"generateDetail",value:(v=UK(BK().mark((function e(t){var n,r;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/detail"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return r=e.sent,e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"generateBaojiahuizong",value:(w=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/baojiahuizong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"generateGuifeishuijin",value:(y=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/guifeishuijin/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"generateQitaxiangmu",value:(b=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/qitaxiangmu/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"generateZongchengbaofuwufei",value:(g=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/zongchengbaofuwufei/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"generateFabaorengongyingcailiao",value:(m=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/fabaorengongyingcailiao/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"generateRencaijihuizong",value:(f=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/rencaijihuizong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"generateJirigong",value:(p=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/jirigong/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"generateZanliejine",value:(h=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/zanliejine/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"generateQingdanxiangmu",value:(d=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/qingdanxiangmu/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"generateQingdanmingxi",value:(c=UK(BK().mark((function e(t,n,r){var o,i;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/qingdanmingxi/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:n,bt:r,name:t})});case 2:if((o=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,o.json();case 9:return i=e.sent,e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"generateQingdanrcj",value:(u=UK(BK().mark((function e(t,n,r,o){var i,s;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/qingdanrcj/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:n,bt:r,bm:o,name:t})});case 2:if((i=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,i.json();case 9:return s=e.sent,e.abrupt("return",s);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return u.apply(this,arguments)})},{key:"generateDingercj",value:(l=UK(BK().mark((function e(t,n,r,o,i){var s,a;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/dingercj/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:n,bt:r,qdbm:o,debm:i,name:t})});case 2:if((s=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,s.json();case 9:return a=e.sent,e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o){return l.apply(this,arguments)})},{key:"generateZjcs",value:(a=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/zjcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:n,name:t})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"generateDjcs",value:(s=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/djcs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({bh:n,name:t})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"generateFiles",value:(i=UK(BK().mark((function e(){var t,n;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/files/"),{method:"POST",headers:{"Content-type":"application/json"}});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"generatePeibiXilie",value:(o=UK(BK().mark((function e(t){var n,r;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/pbxl/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({name:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return r=e.sent,e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"generatePeibishu",value:(r=UK(BK().mark((function e(){var t,n;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/pbs/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:1})});case 2:if((t=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,t.json();case 9:return n=e.sent,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"generateDingeshu",value:(n=UK(BK().mark((function e(t){var n,r;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/des/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:t})});case 2:if((n=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,n.json();case 9:return r=e.sent,e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"generateDingeXilie",value:(t=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/dexilie/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({value:t,id:n})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"generateSingleDingeXilie",value:(e=UK(BK().mark((function e(t,n){var r,o;return BK().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.ip().concat(":8000/singledexilie/"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({debh:n,zhuanye:t})});case 2:if((r=e.sent).ok){e.next=7;break}console.error("error"),e.next=11;break;case 7:return e.next=9,r.json();case 9:return o=e.sent,e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})}]);var e,t,n,r,o,i,s,a,l,u,c,d,h,p,f,m,g,b,y,w,v,S}();const XK=new qK;function JK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return QK(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QK(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZK(e){var n=e.name,r=e.bh,o=e.bt,i=e.rgde,s=e.jxde,a=e.clde,l=e.beizhu,u=e.clickCallback;lu("customStylesRenderer",(function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];cw.apply(void 0,[e,t].concat(r)),t.style.fontWeight="bold",t.style.color="green",t.style.background="#d7f1e1"}));var c=JK(t.useState([{序号:null,清单编码:null,名称:null,项目特征:null,计算规则:null,单位:null,数量:null,综合单价:null,合价:null,人工费:null,主材费:null,设备费:null,辅材费:null,材料费:null,机械费:null,管理费:null,利润:null,暂估价:null,综合人工工日:null,备注:null}]),2),d=c[0],h=c[1],p=JK(t.useState("1"),2),f=p[0],m=p[1],g=JK(t.useState([]),2),b=g[0],y=g[1],w=JK(t.useState([]),2),v=w[0],S=w[1],C=JK(t.useState([]),2),_=C[0],M=C[1],x=JK(t.useState([]),2),k=x[0],R=x[1],T=t.useRef(-1),E=t.useRef(null),L=t.useRef(null),I=t.useRef(null),P=t.useRef(null),D=t.useRef(!1);return t.useEffect((function(){XK.generateQingdanmingxi(n,r,o).then((function(e){h(e),y([]),T.current=-1}))}),[r,o]),t.useEffect((function(){var e=[["序号","编号","说明"]];if(null!=l){for(var t=Object.keys(l.BZBH),n=0;n<t.length;n++){var r=t[n];e.push([n+1,l.BZBH[r],l.SM[r]])}M(e)}}),[l]),t.useEffect((function(){if(L.current=i,I.current=s,P.current=a,D.current)R([]);else{for(var e=[],t=1;t<b.length;t++){var n=b[t],r=n[1],o=n[8];if(Number(o)==Number(1)&&i)for(var l=0;l<i.length;l++)i[l].CLBH==r&&(Number(n[5])!=i[l].YSJG&&e.push({row:t,col:5,renderer:"customStylesRenderer"}),Number(n[10])!=i[l].gr&&e.push({row:t,col:10,renderer:"customStylesRenderer"}));if(Number(o)==Number(3)&&s)for(var u=0;u<s.length;u++)s[u].jxbh==r&&(Number(n[5])!=s[u].tbdj&&e.push({row:t,col:5,renderer:"customStylesRenderer"}),Number(n[10])!=s[u].sl&&e.push({row:t,col:10,renderer:"customStylesRenderer"}));if(Number(o)==Number(2)&&a)for(var c=0;c<a.length;c++)a[c].CLBH==r&&(Number(n[5])!=a[c].YSJG&&e.push({row:t,col:5,renderer:"customStylesRenderer"}),Number(n[10])!=a[c].SL&&e.push({row:t,col:10,renderer:"customStylesRenderer"}))}R(e)}var d=[["人材机编码","名称","单位","单价","合价","含量"]];if(i)for(var h=0;h<i.length;h++)d.push([i[h].CLBH,i[h].CLMC,i[h].JLDW,i[h].YSJG,i[h].gf,i[h].gr]);if(a)for(var p=0;p<a.length;p++)d.push([a[p].CLBH,a[p].CLMC,a[p].JLDW,a[p].YSJG,a[p].HJ,a[p].SL]);if(s)for(var f=0;f<s.length;f++)d.push([s[f].jxbh,s[f].jxmc,s[f].DW,s[f].tbdj,s[f].hj,s[f].sl]);S(d)}),[i,s,a]),(0,sn.jsxs)(WK,{spacing:2,children:[(0,sn.jsx)(Ur,{children:(0,sn.jsx)(Uw,{nestedRows:!0,data:d,afterSelection:function(e,t){var i,s=null===(i=E.current)||void 0===i||null===(i=i.hotInstance)||void 0===i?void 0:i.getData()[e];if(null!=s[0])XK.generateQingdanrcj(n,r,o,s[1]).then((function(e){y(e),D.current=!0,R([])}));else{for(var a=null,l=e-1;l>-1;l-=1){var c,d=null===(c=E.current)||void 0===c||null===(c=c.hotInstance)||void 0===c?void 0:c.getData()[l];if(null!=d[0]){a=d[1];break}}u(s[1]),XK.generateDingercj(n,r,o,a,s[1]).then((function(e){console.log(e),y(e),D.current=!1;for(var t=[],n=1;n<e.length;n++){var r=e[n],o=r[1],i=r[8];if(1==Number(i)&&L.current)for(var s=0;s<L.current.length;s++)L.current[s].CLBH==o&&(Number(r[5])!=L.current[s].YSJG&&t.push({row:n,col:5,renderer:"customStylesRenderer"}),Number(r[10])!=L.current[s].gr&&t.push({row:n,col:10,renderer:"customStylesRenderer"}));if(3==Number(i)&&I.current)for(var a=0;a<I.current.length;a++)I.current[a].jxbh==o&&(Number(r[5])!=I.current[a].tbdj&&t.push({row:n,col:5,renderer:"customStylesRenderer"}),Number(r[10])!=I.current[a].sl&&t.push({row:n,col:10,renderer:"customStylesRenderer"}));if(2==Number(i)&&P.current)for(var l=0;l<P.current.length;l++)P.current[l].CLBH==o&&(Number(r[5])!=P.current[l].YSJG&&t.push({row:n,col:5,renderer:"customStylesRenderer"}),Number(r[10])!=P.current[l].SL&&t.push({row:n,col:10,renderer:"customStylesRenderer"}))}R(t)}))}},ref:E,readOnly:!0,contextMenu:!0,bindRowsWithHeaders:!0,fixedRowsTop:0,fixedColumnsStart:2,manualColumnResize:!0,rowHeaders:!0,colHeaders:["序号","清单编码","名称","项目特征","计算规则","单位","数量","综合单价","合价","人工费","主材费","设备费","辅材费","材料费","机械费","管理费","利润","暂估价","综合人工工日","备注"],height:"400",selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}),(0,sn.jsx)(Ur,{children:(0,sn.jsxs)(QG,{value:f,children:[(0,sn.jsx)(Ur,{sx:{borderBottom:1,borderColor:"divider"},children:(0,sn.jsxs)(IK,{onChange:function(e,t){m(t)},"aria-label":"lab API tabs example",children:[(0,sn.jsx)(XG,{label:"人材机含量",value:"1"}),(0,sn.jsx)(XG,{label:"标准定额人材机含量",value:"2"}),(0,sn.jsx)(XG,{label:"定额附注",value:"3"})]})}),(0,sn.jsx)(OK,{value:"1",children:(0,sn.jsx)(Uw,{nestedRows:!1,data:b,cell:k,manualColumnResize:!0,rowHeaders:!0,colHeaders:!0,height:"300",readOnly:!0,fixedRowsTop:1,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}),(0,sn.jsx)(OK,{value:"2",children:(0,sn.jsx)(Uw,{nestedRows:!1,data:v,manualColumnResize:!0,rowHeaders:!0,colHeaders:!0,height:"300",readOnly:!0,fixedRowsTop:1,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}),(0,sn.jsx)(OK,{value:"3",children:(0,sn.jsx)(Uw,{nestedRows:!1,data:_,manualColumnResize:!0,rowHeaders:!0,colHeaders:!0,height:"300",readOnly:!0,fixedRowsTop:1,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})})]})})]})}function eq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tq(e){var n=e.name,r=e.bh,o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eq(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.useState([{序号:null,清单编码:null,名称:null,计算基数:null,计算基础:null,费率:null,金额:null,项目类别:null}]),2),i=o[0],s=o[1],a=t.useRef(null);return t.useEffect((function(){XK.generateZjcs(n,r).then((function(e){s(e)}))}),[r]),(0,sn.jsx)(Uw,{nestedRows:!0,data:i,ref:a,contextMenu:!0,bindRowsWithHeaders:!0,fixedRowsTop:0,fixedColumnsStart:2,manualColumnResize:!0,rowHeaders:!0,colHeaders:["序号","清单编码","名称","计算基数","计算基础","费率","金额","项目类别"],height:"600",readOnly:!0,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}function nq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rq(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oq(e){var n=e.name,r=e.bh,o=e.rgde,i=e.jxde,s=e.clde,a=e.beizhu,l=e.clickCallback;lu("customStylesRenderer",(function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];cw.apply(void 0,[e,t].concat(r)),t.style.fontWeight="bold",t.style.color="green",t.style.background="#d7f1e1"}));var u=nq(t.useState([{序号:null,清单编码:null,名称:null,项目特征:null,计算规则:null,单位:null,数量:null,综合单价:null,合价:null,人工费:null,主材费:null,设备费:null,辅材费:null,材料费:null,机械费:null,管理费:null,利润:null,暂估价:null,综合人工工日:null}]),2),c=u[0],d=u[1],h=t.useRef(null),p=nq(t.useState("1"),2),f=p[0],m=p[1],g=nq(t.useState([]),2),b=g[0],y=g[1],w=nq(t.useState([]),2),v=w[0],S=w[1],C=nq(t.useState([]),2),_=C[0],M=C[1],x=t.useRef(null),k=t.useRef(null),R=t.useRef(null),T=t.useRef(!1);return t.useEffect((function(){XK.generateDjcs(n,r).then((function(e){d(e)}))}),[r]),t.useEffect((function(){console.log(a);var e=[["序号","编号","说明"]];if(null!=a){for(var t=Object.keys(a.BZBH),n=0;n<t.length;n++){var r=t[n];e.push([n+1,a.BZBH[r],a.SM[r]])}S(e)}}),[a]),t.useEffect((function(){if(console.log("rgde changed"),console.log(o),x.current=o,k.current=i,R.current=s,T.current)M([]);else{for(var e=[],t=1;t<b.length;t++){var n=b[t],r=n[1],a=n[8];if(Number(a)==Number(1)&&o)for(var l=0;l<o.length;l++)o[l].CLBH==r&&(Number(n[5])!=o[l].YSJG&&(console.log("[".concat(t,",5]danjia bu yizhi")),e.push({row:t,col:5,renderer:"customStylesRenderer"})),Number(n[10])!=o[l].gr&&(console.log("[".concat(t,", 10]hanliang bu yizhi")),e.push({row:t,col:10,renderer:"customStylesRenderer"})));if(Number(a)==Number(3)&&i)for(var u=0;u<i.length;u++)i[u].jxbh==r&&(Number(n[5])!=i[u].tbdj&&(console.log("[".concat(t,",5]danjia bu yizhi")),e.push({row:t,col:5,renderer:"customStylesRenderer"})),Number(n[10])!=i[u].sl&&(console.log("[".concat(t,", 10]hanliang bu yizhi")),e.push({row:t,col:10,renderer:"customStylesRenderer"})));if(Number(a)==Number(2)&&s)for(var c=0;c<s.length;c++)s[c].CLBH==r&&(Number(n[5])!=s[c].YSJG&&(console.log("[".concat(t,",5]danjia bu yizhi")),e.push({row:t,col:5,renderer:"customStylesRenderer"})),Number(n[10])!=s[c].SL&&(console.log("[".concat(t,", 10]hanliang bu yizhi")),e.push({row:t,col:10,renderer:"customStylesRenderer"})))}console.log(e),M(e)}}),[o,i,s]),(0,sn.jsxs)(WK,{spacing:2,children:[(0,sn.jsx)(Ur,{children:(0,sn.jsx)(Uw,{nestedRows:!0,data:c,afterSelection:function(e,t){var o;console.log(e);var i="Djcs",s=null===(o=h.current)||void 0===o||null===(o=o.hotInstance)||void 0===o?void 0:o.getData()[e];if(null!=s[0])XK.generateQingdanrcj(n,r,i,s[1]).then((function(e){y(e),T.current=!0,M([])}));else{for(var a=null,u=e-1;u>-1;u-=1){var c,d=null===(c=h.current)||void 0===c||null===(c=c.hotInstance)||void 0===c?void 0:c.getData()[u];if(null!=d[0]){a=d[1];break}}l(s[1]),XK.generateDingercj(n,r,i,a,s[1]).then((function(e){y(e),T.current=!1;for(var t=[],n=1;n<e.length;n++){var r=e[n],o=r[1],i=r[8];if(1==Number(i)&&x.current)for(var s=0;s<x.current.length;s++)x.current[s].CLBH==o&&(Number(r[5])!=x.current[s].YSJG&&(console.log("[".concat(n,",5]danjia bu yizhi")),t.push({row:n,col:5,renderer:"customStylesRenderer"})),Number(r[10])!=x.current[s].gr&&(console.log("[".concat(n,", 10]hanliang bu yizhi")),t.push({row:n,col:10,renderer:"customStylesRenderer"})));if(3==Number(i)&&k.current)for(var a=0;a<k.current.length;a++)k.current[a].jxbh==o&&(Number(r[5])!=k.current[a].tbdj&&(console.log("[".concat(n,",5]danjia bu yizhi")),t.push({row:n,col:5,renderer:"customStylesRenderer"})),Number(r[10])!=k.current[a].sl&&(console.log("[".concat(n,", 10]hanliang bu yizhi")),t.push({row:n,col:10,renderer:"customStylesRenderer"})));if(2==Number(i)&&R.current)for(var l=0;l<R.current.length;l++)R.current[l].CLBH==o&&(Number(r[5])!=R.current[l].YSJG&&(console.log("[".concat(n,",5]danjia bu yizhi")),t.push({row:n,col:5,renderer:"customStylesRenderer"})),Number(r[10])!=R.current[l].SL&&(console.log("[".concat(n,", 10]hanliang bu yizhi")),t.push({row:n,col:10,renderer:"customStylesRenderer"})))}M(t)}))}},ref:h,contextMenu:!0,bindRowsWithHeaders:!0,fixedRowsTop:0,fixedColumnsStart:2,manualColumnResize:!0,rowHeaders:!0,colHeaders:["序号","清单编码","名称","项目特征","计算规则","单位","数量","综合单价","合价","人工费","主材费","设备费","辅材费","材料费","机械费","管理费","利润","暂估价","综合人工工日"],height:"400",selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,readOnly:!0,licenseKey:"non-commercial-and-evaluation"})}),(0,sn.jsx)(Ur,{children:(0,sn.jsxs)(QG,{value:f,children:[(0,sn.jsx)(Ur,{sx:{borderBottom:1,borderColor:"divider"},children:(0,sn.jsxs)(IK,{onChange:function(e,t){m(t)},"aria-label":"lab API tabs example",children:[(0,sn.jsx)(XG,{label:"人材机含量",value:"1"}),(0,sn.jsx)(XG,{label:"定额附注",value:"2"})]})}),(0,sn.jsx)(OK,{value:"1",children:(0,sn.jsx)(Uw,{nestedRows:!1,data:b,cell:_,manualColumnResize:!0,rowHeaders:!0,colHeaders:!0,height:"300",readOnly:!0,fixedRowsTop:1,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}),(0,sn.jsx)(OK,{value:"2",children:(0,sn.jsx)(Uw,{nestedRows:!1,data:v,manualColumnResize:!0,rowHeaders:!0,colHeaders:!0,height:"300",readOnly:!0,fixedRowsTop:1,selectionMode:"single",autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})})]})})]})}o(6069);var iq="popstate";function sq(e={}){return function(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a="POP",l=null,u=c();function c(){return(s.state||{idx:null}).idx}function d(){a="POP";let e=c(),t=null==e?null:e-u;u=e,l&&l({action:a,location:p.location,delta:t})}function h(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),aq(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:dq(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,s.replaceState({...s.state,idx:u},""));let p={get action(){return a},get location(){return e(o,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(iq,d),l=e,()=>{o.removeEventListener(iq,d),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a="PUSH";let r=cq(p.location,e,t);n&&n(r,e),u=c()+1;let d=uq(r,u),h=p.createHref(r);try{s.pushState(d,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}i&&l&&l({action:a,location:p.location,delta:1})},replace:function(e,t){a="REPLACE";let r=cq(p.location,e,t);n&&n(r,e),u=c();let o=uq(r,u),d=p.createHref(r);s.replaceState(o,"",d),i&&l&&l({action:a,location:p.location,delta:0})},go:e=>s.go(e)};return p}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return cq("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:dq(t)}),null,e)}function aq(e,t){if(!1===e||null==e)throw new Error(t)}function lq(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function uq(e,t){return{usr:e.state,key:e.key,idx:t}}function cq(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?hq(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function dq({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function hq(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function pq(e,t,n="/"){return function(e,t,n,r){let o=Rq(("string"==typeof t?hq(t):t).pathname||"/",n);if(null==o)return null;let i=fq(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let s=null;for(let e=0;null==s&&e<i.length;++e){let t=kq(o);s=Mq(i[e],t,r)}return s}(e,t,n,!1)}function fq(e,t=[],n=[],r=""){let o=(e,o,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(aq(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length));let a=Iq([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(aq(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${a}".`),fq(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:_q(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of mq(e.path))o(e,t,n);else o(e,t)})),t}function mq(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let s=mq(r.join("/")),a=[];return a.push(...s.map((e=>""===e?i:[i,e].join("/")))),o&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}new WeakMap;var gq=/^:[\w-]+$/,bq=3,yq=2,wq=1,vq=10,Sq=-2,Cq=e=>"*"===e;function _q(e,t){let n=e.split("/"),r=n.length;return n.some(Cq)&&(r+=Sq),t&&(r+=yq),n.filter((e=>!Cq(e))).reduce(((e,t)=>e+(gq.test(t)?bq:""===t?wq:vq)),r)}function Mq(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=xq({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u),d=a.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=xq({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:Iq([i,c.pathname]),pathnameBase:Pq(Iq([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=Iq([i,c.pathnameBase]))}return s}function xq(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){lq("*"===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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=a[r]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=a[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function kq(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return lq(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Rq(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 Tq(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 Eq(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function Lq(e,t,n,r=!1){let o;"string"==typeof e?o=hq(e):(o={...e},aq(!o.pathname||!o.pathname.includes("?"),Tq("?","pathname","search",o)),aq(!o.pathname||!o.pathname.includes("#"),Tq("#","pathname","hash",o)),aq(!o.search||!o.search.includes("#"),Tq("#","search","hash",o)));let i,s=""===e||""===o.pathname,a=s?"/":o.pathname;if(null==a)i=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:n,search:r="",hash:o=""}="string"==typeof e?hq(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Dq(r),hash:Hq(o)}}(o,i),u=a&&"/"!==a&&a.endsWith("/"),c=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!c||(l.pathname+="/"),l}var Iq=e=>e.join("/").replace(/\/\/+/g,"/"),Pq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dq=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Hq=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Oq(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var Aq=["POST","PUT","PATCH","DELETE"],Nq=(new Set(Aq),["GET",...Aq]);new Set(Nq),Symbol("ResetLoaderData");var jq=t.createContext(null);jq.displayName="DataRouter";var Yq=t.createContext(null);Yq.displayName="DataRouterState";var Fq=t.createContext({isTransitioning:!1});Fq.displayName="ViewTransition",t.createContext(new Map).displayName="Fetchers",t.createContext(null).displayName="Await";var zq=t.createContext(null);zq.displayName="Navigation";var Wq=t.createContext(null);Wq.displayName="Location";var Vq=t.createContext({outlet:null,matches:[],isDataRoute:!1});Vq.displayName="Route";var Bq=t.createContext(null);function $q(){return null!=t.useContext(Wq)}function Uq(){return aq($q(),"useLocation() may be used only in the context of a <Router> component."),t.useContext(Wq).location}Bq.displayName="RouteError";var Gq="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kq(e){t.useContext(zq).static||t.useLayoutEffect(e)}function qq(){let{isDataRoute:e}=t.useContext(Vq);return e?function(){let{router:e}=function(e){let n=t.useContext(jq);return aq(n,nX(e)),n}("useNavigate"),n=rX("useNavigate"),r=t.useRef(!1);Kq((()=>{r.current=!0}));let o=t.useCallback((async(t,o={})=>{lq(r.current,Gq),r.current&&("number"==typeof t?e.navigate(t):await e.navigate(t,{fromRouteId:n,...o}))}),[e,n]);return o}():function(){aq($q(),"useNavigate() may be used only in the context of a <Router> component.");let e=t.useContext(jq),{basename:n,navigator:r}=t.useContext(zq),{matches:o}=t.useContext(Vq),{pathname:i}=Uq(),s=JSON.stringify(Eq(o)),a=t.useRef(!1);Kq((()=>{a.current=!0}));let l=t.useCallback(((t,o={})=>{if(lq(a.current,Gq),!a.current)return;if("number"==typeof t)return void r.go(t);let l=Lq(t,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==n&&(l.pathname="/"===l.pathname?n:Iq([n,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[n,r,s,i,e]);return l}()}function Xq(e,{relative:n}={}){let{matches:r}=t.useContext(Vq),{pathname:o}=Uq(),i=JSON.stringify(Eq(r));return t.useMemo((()=>Lq(e,JSON.parse(i),o,"path"===n)),[e,i,o,n])}function Jq(e,n,r,o){aq($q(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=t.useContext(zq),{matches:s}=t.useContext(Vq),a=s[s.length-1],l=a?a.params:{},u=a?a.pathname:"/",c=a?a.pathnameBase:"/",d=a&&a.route;{let e=d&&d.path||"";iX(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=Uq();if(n){let e="string"==typeof n?hq(n):n;aq("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let f=h.pathname||"/",m=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=pq(e,{pathname:m});lq(d||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),lq(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=function(e,n=[],r=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==n.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,i=r?.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==i?.[e.route.id]));aq(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,a=-1;if(r)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(a=e),t.route.id){let{loaderData:e,errors:n}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||i){s=!0,o=a>=0?o.slice(0,a+1):[o[0]];break}}}return o.reduceRight(((e,l,u)=>{let c,d=!1,h=null,p=null;r&&(c=i&&l.route.id?i[l.route.id]:void 0,h=l.route.errorElement||Zq,s&&(a<0&&0===u?(iX("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):a===u&&(d=!0,p=l.route.hydrateFallbackElement||null)));let f=n.concat(o.slice(0,u+1)),m=()=>{let n;return n=c?h:d?p:l.route.Component?t.createElement(l.route.Component,null):l.route.element?l.route.element:e,t.createElement(tX,{match:l,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:n})};return r&&(l.route.ErrorBoundary||l.route.errorElement||0===u)?t.createElement(eX,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Iq([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Iq([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,r,o);return n&&b?t.createElement(Wq.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},b):b}function Qq(){let e=function(){let e=t.useContext(Bq),n=function(e){let n=t.useContext(Yq);return aq(n,nX(e)),n}("useRouteError"),r=rX("useRouteError");return void 0!==e?e:n.errors?.[r]}(),n=Oq(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},s={padding:"2px 4px",backgroundColor:o},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=t.createElement(t.Fragment,null,t.createElement("p",null,"💿 Hey developer 👋"),t.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",t.createElement("code",{style:s},"ErrorBoundary")," or"," ",t.createElement("code",{style:s},"errorElement")," prop on your route.")),t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:i},r):null,a)}t.createContext(null);var Zq=t.createElement(Qq,null),eX=class extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(Vq.Provider,{value:this.props.routeContext},t.createElement(Bq.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tX({routeContext:e,match:n,children:r}){let o=t.useContext(jq);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(Vq.Provider,{value:e},r)}function nX(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rX(e){let n=function(e){let n=t.useContext(Vq);return aq(n,nX(e)),n}(e),r=n.matches[n.matches.length-1];return aq(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}var oX={};function iX(e,t,n){t||oX[e]||(oX[e]=!0,lq(!1,n))}function sX(e){aq(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function aX({basename:e="/",children:n=null,location:r,navigationType:o="POP",navigator:i,static:s=!1}){aq(!$q(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=t.useMemo((()=>({basename:a,navigator:i,static:s,future:{}})),[a,i,s]);"string"==typeof r&&(r=hq(r));let{pathname:u="/",search:c="",hash:d="",state:h=null,key:p="default"}=r,f=t.useMemo((()=>{let e=Rq(u,a);return null==e?null:{location:{pathname:e,search:c,hash:d,state:h,key:p},navigationType:o}}),[a,u,c,d,h,p,o]);return lq(null!=f,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==f?null:t.createElement(zq.Provider,{value:l},t.createElement(Wq.Provider,{children:n,value:f}))}function lX({children:e,location:t}){return Jq(uX(e),t)}function uX(e,n=[]){let r=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let i=[...n,o];if(e.type===t.Fragment)return void r.push.apply(r,uX(e.props.children,i));aq(e.type===sX,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),aq(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=uX(e.props.children,i)),r.push(s)})),r}t.memo((function({routes:e,future:t,state:n}){return Jq(e,void 0,n,t)})),t.Component;var cX="get",dX="application/x-www-form-urlencoded";function hX(e){return null!=e&&"string"==typeof e.tagName}var pX=null,fX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mX(e){return null==e||fX.has(e)?e:(lq(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dX}"`),null)}function gX(e,t){if(!1===e||null==e)throw new Error(t)}function bX(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function yX(e,t,n,r,o,i){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,a=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>s(e,t)||a(e,t))):"data"===i?t.filter(((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,i)||a(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function wX(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");function vX(){let e=t.useContext(jq);return gX(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function SX(){let e=t.useContext(Yq);return gX(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}t.Component;var CX=t.createContext(void 0);function _X(){let e=t.useContext(CX);return gX(e,"You must render this element inside a <HydratedRouter> element"),e}function MX(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xX({page:e,...n}){let{router:r}=vX(),o=t.useMemo((()=>pq(r.routes,e,r.basename)),[r.routes,e,r.basename]);return o?t.createElement(RX,{page:e,matches:o,...n}):null}function kX(e){let{manifest:n,routeModules:r}=_X(),[o,i]=t.useState([]);return t.useEffect((()=>{let t=!1;return async function(e,t,n){return function(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&(null==(i=o)||"string"!=typeof i.page)&&"script"===o.as&&o.href&&r.has(o.href))return e;var i;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(s)||(n.add(s),e.push({key:s,link:o})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(bX).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,n,r).then((e=>{t||i(e)})),()=>{t=!0}}),[e,n,r]),o}function RX({page:e,matches:n,...r}){let o=Uq(),{manifest:i,routeModules:s}=_X(),{basename:a}=vX(),{loaderData:l,matches:u}=SX(),c=t.useMemo((()=>yX(e,n,u,i,o,"data")),[e,n,u,i,o]),d=t.useMemo((()=>yX(e,n,u,i,o,"assets")),[e,n,u,i,o]),h=t.useMemo((()=>{if(e===o.pathname+o.search+o.hash)return[];let t=new Set,r=!1;if(n.forEach((e=>{let n=i.routes[e.route.id];n&&n.hasLoader&&(!c.some((t=>t.route.id===e.route.id))&&e.route.id in l&&s[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))})),0===t.size)return[];let u=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===Rq(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,a);return r&&t.size>0&&u.searchParams.set("_routes",n.filter((e=>t.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[a,l,o,i,c,n,e,s]),p=t.useMemo((()=>wX(d,i)),[d,i]),f=kX(d);return t.createElement(t.Fragment,null,h.map((e=>t.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r}))),p.map((e=>t.createElement("link",{key:e,rel:"modulepreload",href:e,...r}))),f.map((({key:e,link:n})=>t.createElement("link",{key:e,...n}))))}CX.displayName="FrameworkContext";function TX(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var EX="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{EX&&(window.__reactRouterVersion="7.6.1")}catch(e){}function LX({basename:e,children:n,window:r}){let o=t.useRef();null==o.current&&(o.current=sq({window:r,v5Compat:!0}));let i=o.current,[s,a]=t.useState({action:i.action,location:i.location}),l=t.useCallback((e=>{t.startTransition((()=>a(e)))}),[a]);return t.useLayoutEffect((()=>i.listen(l)),[i,l]),t.createElement(aX,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:i})}var IX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,PX=t.forwardRef((function({onClick:e,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d,...h},p){let f,{basename:m}=t.useContext(zq),g="string"==typeof u&&IX.test(u),b=!1;if("string"==typeof u&&g&&(f=u,EX))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=Rq(t.pathname,m);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:b=!0}catch(e){lq(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=function(e,{relative:n}={}){aq($q(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=t.useContext(zq),{hash:i,pathname:s,search:a}=Xq(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Iq([r,s])),o.createHref({pathname:l,search:a,hash:i})}(u,{relative:o}),[w,v,S]=function(e,n){let r=t.useContext(CX),[o,i]=t.useState(!1),[s,a]=t.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:h}=n,p=t.useRef(null);t.useEffect((()=>{if("render"===e&&a(!0),"viewport"===e){let e=e=>{e.forEach((e=>{a(e.isIntersecting)}))},t=new IntersectionObserver(e,{threshold:.5});return p.current&&t.observe(p.current),()=>{t.disconnect()}}}),[e]),t.useEffect((()=>{if(o){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[o]);let f=()=>{i(!0)},m=()=>{i(!1),a(!1)};return r?"intent"!==e?[s,p,{}]:[s,p,{onFocus:MX(l,f),onBlur:MX(u,m),onMouseEnter:MX(c,f),onMouseLeave:MX(d,m),onTouchStart:MX(h,f)}]:[!1,p,{}]}(r,h),C=function(e,{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}={}){let l=qq(),u=Uq(),c=Xq(e,{relative:s});return t.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:dq(u)===dq(c);l(e,{replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:a})}}),[u,l,c,r,o,n,e,i,s,a])}(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d}),_=t.createElement("a",{...h,...S,href:f||y,onClick:b||i?e:function(t){e&&e(t),t.defaultPrevented||C(t)},ref:TX(p,v),target:l,"data-discover":g||"render"!==n?void 0:"true"});return w&&!g?t.createElement(t.Fragment,null,_,t.createElement(xX,{page:y})):_}));PX.displayName="Link";var DX=t.forwardRef((function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:a,children:l,...u},c){let d=Xq(s,{relative:u.relative}),h=Uq(),p=t.useContext(Yq),{navigator:f,basename:m}=t.useContext(zq),g=null!=p&&function(e,n={}){let r=t.useContext(Fq);aq(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=OX("useViewTransitionState"),i=Xq(e,{relative:n.relative});if(!r.isTransitioning)return!1;let s=Rq(r.currentLocation.pathname,o)||r.currentLocation.pathname,a=Rq(r.nextLocation.pathname,o)||r.nextLocation.pathname;return null!=xq(i.pathname,a)||null!=xq(i.pathname,s)}(d)&&!0===a,b=f.encodeLocation?f.encodeLocation(d).pathname:d.pathname,y=h.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&m&&(w=Rq(w,m)||w);const v="/"!==b&&b.endsWith("/")?b.length-1:b.length;let S,C=y===b||!o&&y.startsWith(b)&&"/"===y.charAt(v),_=null!=w&&(w===b||!o&&w.startsWith(b)&&"/"===w.charAt(b.length)),M={isActive:C,isPending:_,isTransitioning:g},x=C?e:void 0;S="function"==typeof r?r(M):[r,C?"active":null,_?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let k="function"==typeof i?i(M):i;return t.createElement(PX,{...u,"aria-current":x,className:S,ref:c,style:k,to:s,viewTransition:a},"function"==typeof l?l(M):l)}));DX.displayName="NavLink";var HX=t.forwardRef((({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:a=cX,action:l,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h,...p},f)=>{let m=function(){let{router:e}=OX("useSubmit"),{basename:n}=t.useContext(zq),r=rX("useRouteId");return t.useCallback((async(t,o={})=>{let{action:i,method:s,encType:a,formData:l,body:u}=function(e,t){let n,r,o,i,s;if(hX(a=e)&&"form"===a.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?Rq(s,t):null,n=e.getAttribute("method")||cX,o=mX(e.getAttribute("enctype"))||dX,i=new FormData(e)}else if(function(e){return hX(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return hX(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Rq(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||cX,o=mX(e.getAttribute("formenctype"))||mX(s.getAttribute("enctype"))||dX,i=new FormData(s,e),!function(){if(null===pX)try{new FormData(document.createElement("form"),0),pX=!1}catch(e){pX=!0}return pX}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(hX(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cX,r=null,o=dX,s=e}var a;return i&&"text/plain"===o&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}(t,n);if(!1===o.navigate){let t=o.fetcherKey||NX();await e.fetch(t,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||a,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||s,formEncType:o.encType||a,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,n,r])}(),g=function(e,{relative:n}={}){let{basename:r}=t.useContext(zq),o=t.useContext(Vq);aq(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),s={...Xq(e||".",{relative:n})},a=Uq();if(null==e){s.search=a.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?`?${n}`:""}}return e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(s.pathname="/"===s.pathname?r:Iq([r,s.pathname])),dq(s)}(l,{relative:c}),b="get"===a.toLowerCase()?"get":"post",y="string"==typeof l&&IX.test(l);return t.createElement("form",{ref:f,method:b,action:g,onSubmit:o?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,o=t?.getAttribute("formmethod")||a;m(t||e.currentTarget,{fetcherKey:n,method:o,navigate:r,replace:i,state:s,relative:c,preventScrollReset:d,viewTransition:h})},...p,"data-discover":y||"render"!==e?void 0:"true"})}));function OX(e){let n=t.useContext(jq);return aq(n,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),n}HX.displayName="Form";var AX=0,NX=()=>`__${String(++AX)}__`;const jX=AV((0,sn.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function YX({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}function FX(e){return zr("MuiFormLabel",e)}const zX=Wr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),WX=rW("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(iW((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{[`&.${zX.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${zX.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${zX.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),VX=rW("span",{name:"MuiFormLabel",slot:"Asterisk"})(iW((({theme:e})=>({[`&.${zX.error}`]:{color:(e.vars||e).palette.error.main}})))),BX=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:s,component:a="label",disabled:l,error:u,filled:c,focused:d,required:h,...p}=n,f=YX({props:n,muiFormControl:RU(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},g=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e;return $z({root:["root",`color${gW(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]},FX,t)})(m);return(0,sn.jsxs)(WX,{as:a,ownerState:m,className:i(g.root,o),ref:t,...p,children:[r,f.required&&(0,sn.jsxs)(VX,{ownerState:m,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})})),$X=BX;function UX(e){return zr("MuiInputLabel",e)}Wr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const GX=rW($X,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zX.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(iW((({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]})))),KX=t.forwardRef((function(e,t){const n=lW({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:s,variant:a,className:l,...u}=n,c=RU();let d=s;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const h=YX({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:c,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l=$z({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"medium"!==r&&`size${gW(r)}`,s],asterisk:[a&&"asterisk"]},UX,t);return{...t,...l}})(p);return(0,sn.jsx)(GX,{"data-shrink":d,ref:t,className:i(f.root,l),...u,ownerState:p,classes:f})})),qX=KX,XX=t.createContext({});function JX(e){return zr("MuiDivider",e)}const QX=Wr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function ZX(e){return zr("MuiListItemIcon",e)}const eJ=Wr("MuiListItemIcon",["root","alignItemsFlexStart"]);function tJ(e){return zr("MuiListItemText",e)}const nJ=Wr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function rJ(e){return zr("MuiMenuItem",e)}const oJ=Wr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),iJ=rW(mV,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(iW((({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${oJ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${oJ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${oJ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${oJ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${oJ.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${QX.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${QX.inset}`]:{marginLeft:52},[`& .${nJ.root}`]:{marginTop:0,marginBottom:0},[`& .${nJ.inset}`]:{paddingLeft:36},[`& .${eJ.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${eJ.root} svg`]:{fontSize:"1.25rem"}}}]})))),sJ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:p,...f}=r,m=t.useContext(XX),g=t.useMemo((()=>({dense:a||m.dense||!1,disableGutters:u})),[m.dense,a,u]),b=t.useRef(null);iK((()=>{o&&b.current&&b.current.focus()}),[o]);const y={...r,dense:g.dense,divider:l,disableGutters:u},w=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,a=$z({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},rJ,s);return{...s,...a}})(r),v=LW(b,n);let S;return r.disabled||(S=void 0!==h?h:-1),(0,sn.jsx)(XX.Provider,{value:g,children:(0,sn.jsx)(iJ,{ref:v,role:d,tabIndex:S,component:s,focusVisibleClassName:i(w.focusVisible,c),className:i(w.root,p),...f,ownerState:y,classes:w})})})),aJ=sJ;function lJ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function uJ(e,t=!1){return e&&(lJ(e.value)&&""!==e.value||t&&lJ(e.defaultValue)&&""!==e.defaultValue)}const cJ=MG;function dJ(e){return zr("MuiFormControl",e)}Wr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const hJ=rW("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${gW(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),pJ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:u=!1,error:c=!1,focused:d,fullWidth:h=!1,hiddenLabel:p=!1,margin:f="none",required:m=!1,size:g="medium",variant:b="outlined",...y}=r,w={...r,color:a,component:l,disabled:u,error:c,fullWidth:h,hiddenLabel:p,margin:f,required:m,size:g,variant:b},v=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return $z({root:["root","none"!==n&&`margin${gW(n)}`,r&&"fullWidth"]},dJ,t)})(w),[S,C]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{if(!cJ(t,["Input","Select"]))return;const n=cJ(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[_,M]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{cJ(t,["Input","Select"])&&(uJ(t.props,!0)||uJ(t.props.inputProps,!0))&&(e=!0)})),e})),[x,k]=t.useState(!1);u&&x&&k(!1);const R=void 0===d||u?x:d;let T;t.useRef(!1);const E=t.useCallback((()=>{M(!0)}),[]),L=t.useCallback((()=>{M(!1)}),[]),I=t.useMemo((()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:u,error:c,filled:_,focused:R,fullWidth:h,hiddenLabel:p,size:g,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:L,onFilled:E,registerEffect:T,required:m,variant:b})),[S,a,u,c,_,R,h,p,T,L,E,m,g,b]);return(0,sn.jsx)(kU.Provider,{value:I,children:(0,sn.jsx)(hJ,{as:l,ownerState:w,className:i(v.root,s),ref:n,...y,children:o})})})),fJ=pJ;function mJ(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function gJ(e){return zr("MuiList",e)}Wr("MuiList",["root","padding","dense","subheader"]);const bJ=rW("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),yJ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:u=!1,subheader:c,...d}=r,h=t.useMemo((()=>({dense:l})),[l]),p={...r,component:a,dense:l,disablePadding:u},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return $z({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},gJ,t)})(p);return(0,sn.jsx)(XX.Provider,{value:h,children:(0,sn.jsxs)(bJ,{as:a,className:i(f.root,s),ref:n,ownerState:p,...d,children:[c,o]})})})),wJ=yJ;function vJ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const SJ=vJ;function CJ(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _J(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function MJ(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function xJ(e,t,n,r,o,i){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!r&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&MJ(a,i)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const kJ=t.forwardRef((function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...h}=e,p=t.useRef(null),f=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iK((()=>{o&&p.current.focus()}),[o]),t.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${SJ(lK(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=LW(p,n);let g=-1;t.Children.forEach(s,((e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=n),g===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))):g===n&&(g+=1,g>=s.length&&(g=-1))}));const b=t.Children.map(s,((e,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),t.cloneElement(e,n)}return e}));return(0,sn.jsx)(wJ,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=wK(t).activeElement;if("ArrowDown"===n)e.preventDefault(),xJ(t,r,u,l,CJ);else if("ArrowUp"===n)e.preventDefault(),xJ(t,r,u,l,_J);else if("Home"===n)e.preventDefault(),xJ(t,null,u,l,CJ);else if("End"===n)e.preventDefault(),xJ(t,null,u,l,_J);else if(1===n.length){const o=f.current,i=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const a=r&&!o.repeating&&MJ(r,o);o.previousKeyMatched&&(a||xJ(t,r,!1,l,CJ,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1,...h,children:b})})),RJ=function(e){return"string"==typeof e};function TJ(e){return`scale(${e}, ${e**2})`}const EJ={entering:{opacity:1,transform:TJ(1)},entered:{opacity:1,transform:"none"}},LJ="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IJ=t.forwardRef((function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:h,onExiting:p,style:f,timeout:m="auto",TransitionComponent:g=mU,...b}=e,y=qW(),w=t.useRef(),v=yW(),S=t.useRef(null),C=LW(S,mJ(i),n),_=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},M=_(c),x=_(((e,t)=>{gU(e);const{duration:n,delay:r,easing:o}=bU({style:f,timeout:m,easing:s},{mode:"enter"});let i;"auto"===m?(i=v.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=n,e.style.transition=[v.transitions.create("opacity",{duration:i,delay:r}),v.transitions.create("transform",{duration:LJ?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=_(u),R=_(p),T=_((e=>{const{duration:t,delay:n,easing:r}=bU({style:f,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=v.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:LJ?o:.666*o,delay:LJ?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=TJ(.75),d&&d(e)})),E=_(h);return(0,sn.jsx)(g,{appear:o,in:a,nodeRef:S,onEnter:x,onEntered:k,onEntering:M,onExit:T,onExited:E,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(w.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m,...b,children:(e,{ownerState:n,...r})=>t.cloneElement(i,{style:{opacity:0,transform:TJ(.75),visibility:"exited"!==e||a?void 0:"hidden",...EJ[e],...f,...i.props.style},ref:C,...r})})}));IJ&&(IJ.muiSupportAuto=!0);const PJ=IJ,DJ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function HJ(e){const t=[],n=[];return Array.from(e.querySelectorAll(DJ)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function OJ(){return!0}const AJ=function(e){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:s=HJ,isEnabled:a=OJ,open:l}=e,u=t.useRef(!1),c=t.useRef(null),d=t.useRef(null),h=t.useRef(null),p=t.useRef(null),f=t.useRef(!1),m=t.useRef(null),g=uW(mJ(n),m),b=t.useRef(null);t.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),t.useEffect((()=>{if(!l||!m.current)return;const e=sK(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{i||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}}),[l]),t.useEffect((()=>{if(!l||!m.current)return;const e=sK(m.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=s(m.current)),n.length>0){const e=Boolean(b.current?.shiftKey&&"Tab"===b.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,i,a,l,s]);const y=e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0};return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:g,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),f.current=!0,p.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,sn.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})};function NJ(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const jJ=t.forwardRef((function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[s,a]=t.useState(null),l=uW(t.isValidElement(r)?mJ(r):null,n);if(IW((()=>{i||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),IW((()=>{if(s&&!i)return NJ(n,s),()=>{NJ(n,null)}}),[n,s,i]),i){if(t.isValidElement(r)){const e={ref:l};return t.cloneElement(r,e)}return r}return s?ao.createPortal(r,s):s})),YJ=jJ,FJ={entering:{opacity:1},entered:{opacity:1}},zJ=t.forwardRef((function(e,n){const r=yW(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:p,onExited:f,onExiting:m,style:g,timeout:b=o,TransitionComponent:y=mU,...w}=e,v=t.useRef(null),S=LW(v,mJ(a),n),C=e=>t=>{if(e){const n=v.current;void 0===t?e(n):e(n,t)}},_=C(h),M=C(((e,t)=>{gU(e);const n=bU({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),x=C(d),k=C(m),R=C((e=>{const t=bU({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),T=C(f);return(0,sn.jsx)(y,{appear:s,in:u,nodeRef:v,onEnter:M,onEntered:x,onEntering:_,onExit:R,onExited:T,onExiting:k,addEndListener:e=>{i&&i(v.current,e)},timeout:b,...w,children:(e,{ownerState:n,...r})=>t.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||u?void 0:"hidden",...FJ[e],...g,...a.props.style},ref:S,...r})})})),WJ=zJ;function VJ(e){return zr("MuiBackdrop",e)}Wr("MuiBackdrop",["root","invisible"]);const BJ=rW("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),$J=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:c={},slotProps:d={},slots:h={},TransitionComponent:p,transitionDuration:f,...m}=n,g={...n,component:s,invisible:a},b=(e=>{const{classes:t,invisible:n}=e;return $z({root:["root",n&&"invisible"]},VJ,t)})(g),y={slots:{transition:p,root:u.Root,...h},slotProps:{...c,...d}},[w,v]=mW("root",{elementType:BJ,externalForwardedProps:y,className:i(b.root,o),ownerState:g}),[S,C]=mW("transition",{elementType:WJ,externalForwardedProps:y,ownerState:g});return(0,sn.jsx)(S,{in:l,timeout:f,...m,...C,children:(0,sn.jsx)(w,{"aria-hidden":!0,...v,classes:b,ref:t,children:r})})})),UJ=$J;function GJ(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function KJ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qJ(e){return parseInt(aK(e).getComputedStyle(e).paddingRight,10)||0}function XJ(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&KJ(e,o)}))}function JJ(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}const QJ=()=>{},ZJ=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&KJ(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);XJ(t,e.mount,e.modalRef,r,!0);const o=JJ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=JJ(this.containers,(t=>t.modals.includes(e))),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=sK(e);return t.body===e?aK(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=vJ(aK(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${qJ(r)+e}px`;const t=sK(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${qJ(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=sK(r).body;else{const t=r.parentElement,n=aK(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=JJ(this.containers,(t=>t.modals.includes(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&KJ(e.modalRef,t),XJ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&KJ(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function eQ(e){return zr("MuiModal",e)}Wr("MuiModal",["root","hidden","backdrop"]);const tQ=rW("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(iW((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),nQ=rW(UJ,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),rQ=t.forwardRef((function(e,n){const r=lW({name:"MuiModal",props:e}),{BackdropComponent:o=nQ,BackdropProps:s,classes:a,className:l,closeAfterTransition:u=!1,children:c,container:d,component:h,components:p={},componentsProps:f={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:C=!1,onClose:_,onTransitionEnter:M,onTransitionExited:x,open:k,slotProps:R={},slots:T={},theme:E,...L}=r,I={...r,closeAfterTransition:u,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:y,disableRestoreFocus:w,disableScrollLock:v,hideBackdrop:S,keepMounted:C},{getRootProps:P,getBackdropProps:D,getTransitionProps:H,portalRef:O,isTopModal:A,exited:N,hasTransition:j}=function(e){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:u,open:c,rootRef:d}=e,h=t.useRef({}),p=t.useRef(null),f=t.useRef(null),m=uW(f,d),[g,b]=t.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const v=()=>(h.current.modalRef=f.current,h.current.mount=p.current,h.current),S=()=>{ZJ.mount(v(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},C=PW((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||sK(p.current).body;ZJ.add(v(),e),f.current&&S()})),_=()=>ZJ.isTopModal(v()),M=PW((e=>{p.current=e,e&&(c&&_()?S():f.current&&KJ(f.current,w))})),x=t.useCallback((()=>{ZJ.remove(v(),w)}),[w]);t.useEffect((()=>()=>{x()}),[x]),t.useEffect((()=>{c?C():y&&i||x()}),[c,x,y,i,C]);const k=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&_()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hW(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:k(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:c}},getTransitionProps:()=>({onEnter:GJ((()=>{b(!1),s&&s()}),l?.props.onEnter??QJ),onExited:GJ((()=>{b(!0),a&&a(),i&&x()}),l?.props.onExited??QJ)}),rootRef:m,portalRef:M,isTopModal:_,exited:g,hasTransition:y}}({...I,rootRef:n}),Y={...I,exited:N},F=(e=>{const{open:t,exited:n,classes:r}=e;return $z({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},eQ,r)})(Y),z={};if(void 0===c.props.tabIndex&&(z.tabIndex="-1"),j){const{onEnter:e,onExited:t}=H();z.onEnter=e,z.onExited=t}const W={slots:{root:p.Root,backdrop:p.Backdrop,...T},slotProps:{...f,...R}},[V,B]=mW("root",{ref:n,elementType:tQ,externalForwardedProps:{...W,...L,component:h},getSlotProps:P,ownerState:Y,className:i(l,F?.root,!Y.open&&Y.exited&&F?.hidden)}),[$,U]=mW("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:i(s?.className,F?.backdrop),ownerState:Y});return C||k||j&&!N?(0,sn.jsx)(YJ,{ref:O,container:d,disablePortal:y,children:(0,sn.jsxs)(V,{...B,children:[!S&&o?(0,sn.jsx)($,{...U}):null,(0,sn.jsx)(AJ,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:A,open:k,children:t.cloneElement(c,z)})]})}):null})),oQ=rQ;function iQ(e){return zr("MuiPopover",e)}function sQ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function aQ(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function lQ(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function uQ(e){return"function"==typeof e?e():e}Wr("MuiPopover",["root","paper"]);const cQ=rW(oQ,{name:"MuiPopover",slot:"Root"})({}),dQ=rW(CW,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),hQ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:c,className:d,container:h,elevation:p=8,marginThreshold:f=16,open:m,PaperProps:g={},slots:b={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:S="auto",TransitionProps:C={},disableScrollLock:_=!1,...M}=r,x=t.useRef(),k={...r,anchorOrigin:a,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:v,transitionDuration:S,TransitionProps:C},R=(e=>{const{classes:t}=e;return $z({root:["root"],paper:["paper"]},iQ,t)})(k),T=t.useCallback((()=>{if("anchorPosition"===u)return l;const e=uQ(s),t=(e&&1===e.nodeType?e:wK(x.current).body).getBoundingClientRect();return{top:t.top+sQ(t,a.vertical),left:t.left+aQ(t,a.horizontal)}}),[s,a.horizontal,a.vertical,l,u]),E=t.useCallback((e=>({vertical:sQ(e,w.vertical),horizontal:aQ(e,w.horizontal)})),[w.horizontal,w.vertical]),L=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===u)return{top:null,left:null,transformOrigin:lQ(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=lK(uQ(s)),d=c.innerHeight-f,h=c.innerWidth-f;if(null!==f&&o<f){const e=o-f;o-=e,n.vertical+=e}else if(null!==f&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==f&&i<f){const e=i-f;i-=e,n.horizontal+=e}else if(l>h){const e=l-h;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:lQ(n)}}),[s,u,T,E,f]),[I,P]=t.useState(m),D=t.useCallback((()=>{const e=x.current;if(!e)return;const t=L(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[L]);t.useEffect((()=>(_&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[s,_,D]),t.useEffect((()=>{m&&D()})),t.useImperativeHandle(o,(()=>m?{updatePosition:()=>{D()}}:null),[m,D]),t.useEffect((()=>{if(!m)return;const e=rK((()=>{D()})),t=lK(uQ(s));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,m,D]);let H=S;const O={slots:{transition:v,...b},slotProps:{transition:C,paper:g,...y}},[A,N]=mW("transition",{elementType:PJ,externalForwardedProps:O,ownerState:k,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),D()},onExited:t=>{e.onExited?.(t),P(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==S||A.muiSupportAuto||(H=void 0);const j=h||(s?wK(uQ(s)).body:void 0),[Y,{slots:F,slotProps:z,...W}]=mW("root",{ref:n,elementType:cQ,externalForwardedProps:{...O,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:jU("function"==typeof y.backdrop?y.backdrop(k):y.backdrop,{invisible:!0})},container:j,open:m},ownerState:k,className:i(R.root,d)}),[V,B]=mW("paper",{ref:x,className:R.paper,elementType:dQ,externalForwardedProps:O,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:I?void 0:{opacity:0}},ownerState:k});return(0,sn.jsx)(Y,{...W,...!RJ(Y)&&{slots:F,slotProps:z,disableScrollLock:_},children:(0,sn.jsx)(A,{...N,timeout:H,children:(0,sn.jsx)(V,{...B,children:c})})})})),pQ=hQ;function fQ(e){return zr("MuiMenu",e)}Wr("MuiMenu",["root","paper","list"]);const mQ={vertical:"top",horizontal:"right"},gQ={vertical:"top",horizontal:"left"},bQ=rW(pQ,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),yQ=rW(dQ,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wQ=rW(kJ,{name:"MuiMenu",slot:"List"})({outline:0}),vQ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:m,...g}={},variant:b="selectedMenu",slots:y={},slotProps:w={},...v}=r,S=eU(),C={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:h,transitionDuration:f,TransitionProps:g,variant:b},_=(e=>{const{classes:t}=e;return $z({root:["root"],paper:["paper"],list:["list"]},fQ,t)})(C),M=o&&!l&&d,x=t.useRef(null);let k=-1;t.Children.map(s,((e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===k)&&(k=n))}));const R={slots:y,slotProps:{list:u,transition:g,paper:h,...w}},T=sB({elementType:y.root,externalSlotProps:w.root,ownerState:C,className:[_.root,a]}),[E,L]=mW("paper",{className:_.paper,elementType:yQ,externalForwardedProps:R,shouldForwardComponentProp:!0,ownerState:C}),[I,P]=mW("list",{className:i(_.list,u.className),elementType:wQ,shouldForwardComponentProp:!0,externalForwardedProps:R,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:C}),D="function"==typeof R.slotProps.transition?R.slotProps.transition(C):R.slotProps.transition;return(0,sn.jsx)(bQ,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?mQ:gQ,slots:{root:y.root,paper:E,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:T,paper:L,backdrop:"function"==typeof w.backdrop?w.backdrop(C):w.backdrop,transition:{...D,onEntering:(...e)=>{((e,t)=>{x.current&&x.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)})(...e),D?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:f,ownerState:C,...v,classes:p,children:(0,sn.jsx)(I,{actions:x,autoFocus:o&&(-1===k||l),autoFocusItem:M,variant:b,...P,children:s})})})),SQ=vQ;function CQ(e){return zr("MuiNativeSelect",e)}const _Q=Wr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),MQ=rW("select")((({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${_Q.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]}))),xQ=rW(MQ,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nW,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_Q.multiple}`]:t.multiple}]}})({}),kQ=rW("svg")((({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${_Q.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}))),RQ=rW(kQ,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gW(n.variant)}`],n.open&&t.iconOpen]}})({}),TQ=t.forwardRef((function(e,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:u="standard",...c}=e,d={...e,disabled:o,variant:u,error:s},h=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e;return $z({select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${gW(n)}`,i&&"iconOpen",r&&"disabled"]},CQ,t)})(d);return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(xQ,{ownerState:d,className:i(h.select,r),disabled:o,ref:l||n,...c}),e.multiple?null:(0,sn.jsx)(RQ,{as:a,ownerState:d,className:h.icon})]})})),EQ=TQ;function LQ(e){return zr("MuiSelect",e)}const IQ=Wr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var PQ;const DQ=rW(MQ,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${IQ.select}`]:t.select},{[`&.${IQ.select}`]:t[n.variant]},{[`&.${IQ.error}`]:t.error},{[`&.${IQ.multiple}`]:t.multiple}]}})({[`&.${IQ.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),HQ=rW(kQ,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${gW(n.variant)}`],n.open&&t.iconOpen]}})({}),OQ=rW("input",{shouldForwardProp:e=>tW(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function AQ(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function NQ(e){return null==e||"string"==typeof e&&!e.trim()}const jQ=t.forwardRef((function(e,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:h,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:g,labelId:b,MenuProps:y={},multiple:w,name:v,onBlur:S,onChange:C,onClose:_,onFocus:M,onOpen:x,open:k,readOnly:R,renderValue:T,required:E,SelectDisplayProps:L={},tabIndex:I,type:P,value:D,variant:H="standard",...O}=e,[A,N]=xU({controlled:D,default:d,name:"Select"}),[j,Y]=xU({controlled:k,default:c,name:"Select"}),F=t.useRef(null),z=t.useRef(null),[W,V]=t.useState(null),{current:B}=t.useRef(null!=k),[$,U]=t.useState(),G=LW(n,g),K=t.useCallback((e=>{z.current=e,e&&V(e)}),[]),q=W?.parentNode;t.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:A})),[A]),t.useEffect((()=>{c&&j&&W&&!B&&(U(a?null:q.clientWidth),z.current.focus())}),[W,a]),t.useEffect((()=>{s&&z.current.focus()}),[s]),t.useEffect((()=>{if(!b)return;const e=wK(z.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const X=(e,t)=>{e?x&&x(t):_&&_(t),B||(U(a?null:q.clientWidth),Y(e))},J=t.Children.toArray(l),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(w){n=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==n&&(N(n),C)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:v}}),C(o,e)}w||X(!1,t)}},Z=null!==W&&j;let ee,te;delete O["aria-invalid"];const ne=[];let re=!1,oe=!1;(uJ({value:A})||p)&&(T?ee=T(A):re=!0);const ie=J.map((e=>{if(!t.isValidElement(e))return null;let n;if(w){if(!Array.isArray(A))throw new Error(Be(2));n=A.some((t=>AQ(t,e.props.value))),n&&re&&ne.push(e.props.children)}else n=AQ(A,e.props.value),n&&re&&(te=e.props.children);return n&&(oe=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})}));re&&(ee=w?0===ne.length?null:ne.reduce(((e,t,n)=>(e.push(t),n<ne.length-1&&e.push(", "),e)),[]):te);let se,ae=$;!a&&B&&W&&(ae=q.clientWidth),se=void 0!==I?I:h?null:0;const le=L.id||(v?`mui-component-select-${v}`:void 0),ue={...e,variant:H,value:A,open:Z,error:f},ce=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e;return $z({select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${gW(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},LQ,t)})(ue),de={...y.PaperProps,...y.slotProps?.paper},he=RW();return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(DQ,{as:"div",ref:K,tabIndex:se,role:"combobox","aria-controls":Z?he:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,le].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":E?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),X(!0,e))},onMouseDown:h||R?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),X(!0,e))},onBlur:e=>{!Z&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:v}}),S(e))},onFocus:M,...L,ownerState:ue,className:i(L.className,ce.select,u),id:le,children:NQ(ee)?PQ||(PQ=(0,sn.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):ee}),(0,sn.jsx)(OQ,{"aria-invalid":f,value:Array.isArray(A)?A.join(","):A,name:v,ref:F,"aria-hidden":!0,onChange:e=>{const t=J.find((t=>t.props.value===e.target.value));void 0!==t&&(N(t.props.value),C&&C(e,t))},tabIndex:-1,disabled:h,className:ce.nativeInput,autoFocus:s,required:E,...O,ownerState:ue}),(0,sn.jsx)(HQ,{as:m,className:ce.icon,ownerState:ue}),(0,sn.jsx)(SQ,{id:`menu-${v||""}`,anchorEl:q,open:Z,onClose:e=>{X(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:he,...y.MenuListProps},paper:{...de,style:{minWidth:ae,...null!=de?de.style:null}}},children:ie})]})})),YQ=jQ,FQ=AV((0,sn.jsx)("path",{d:"M7 10l5 5 5-5z"}));function zQ(e){return parseInt(e,10)||0}const WQ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function VQ(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const BQ=t.forwardRef((function(e,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=e,{current:u}=t.useRef(null!=a),c=t.useRef(null),d=uW(n,c),h=t.useRef(null),p=t.useRef(null),f=t.useCallback((()=>{const t=c.current,n=p.current;if(!t||!n)return;const r=aK(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const s=r.boxSizing,a=zQ(r.paddingBottom)+zQ(r.paddingTop),l=zQ(r.borderBottomWidth)+zQ(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let h=u;return i&&(h=Math.max(Number(i)*d,h)),o&&(h=Math.min(Number(o)*d,h)),h=Math.max(h,d),{outerHeightStyle:h+("border-box"===s?a+l:0),overflowing:Math.abs(h-u)<=1}}),[o,i,e.placeholder]),m=PW((()=>{const e=c.current,t=f();if(!e||!t||VQ(t))return!1;const n=t.outerHeightStyle;return null!=h.current&&h.current!==n})),g=t.useCallback((()=>{const e=c.current,t=f();if(!e||!t||VQ(t))return;const n=t.outerHeightStyle;h.current!==n&&(h.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),b=t.useRef(-1);return IW((()=>{const e=nK(g),t=c?.current;if(!t)return;const n=aK(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{m()&&(r.unobserve(t),cancelAnimationFrame(b.current),g(),b.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,g,m]),IW((()=>{g()})),(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)("textarea",{value:a,onChange:e=>{u||g();const t=e.target,n=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===n;o&&i&&t.setSelectionRange(n,n),r&&r(e)},ref:d,rows:i,style:s,...l}),(0,sn.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...WQ,...s,paddingTop:0,paddingBottom:0}})]})})),$Q=BQ;function UQ(e){return zr("MuiInputBase",e)}const GQ=Wr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var KQ;const qQ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${gW(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},XQ=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},JQ=rW("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qQ})(iW((({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${GQ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]})))),QQ=rW("input",{name:"MuiInputBase",slot:"Input",overridesResolver:XQ})(iW((({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${GQ.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${GQ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),ZQ=function(e){return function(t){return(0,sn.jsx)(JV,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),eZ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,color:u,components:c={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,error:g,fullWidth:b=!1,id:y,inputComponent:w="input",inputProps:v={},inputRef:S,margin:C,maxRows:_,minRows:M,multiline:x=!1,name:k,onBlur:R,onChange:T,onClick:E,onFocus:L,onKeyDown:I,onKeyUp:P,placeholder:D,readOnly:H,renderSuffix:O,rows:A,size:N,slotProps:j={},slots:Y={},startAdornment:F,type:z="text",value:W,...V}=r,B=null!=v.value?v.value:W,{current:$}=t.useRef(null!=B),U=t.useRef(),G=t.useCallback((e=>{}),[]),K=LW(U,S,v.ref,G),[q,X]=t.useState(!1),J=RU(),Q=YX({props:r,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=J?J.focused:q,t.useEffect((()=>{!J&&p&&q&&(X(!1),R&&R())}),[J,p,q,R]);const Z=J&&J.onFilled,ee=J&&J.onEmpty,te=t.useCallback((e=>{uJ(e)?Z&&Z():ee&&ee()}),[Z,ee]);iK((()=>{$&&te({value:B})}),[B,te,$]),t.useEffect((()=>{te(U.current)}),[]);let ne=w,re=v;x&&"input"===ne&&(re=A?{type:void 0,minRows:A,maxRows:A,...re}:{type:void 0,maxRows:_,minRows:M,...re},ne=$Q),t.useEffect((()=>{J&&J.setAdornedStart(Boolean(F))}),[J,F]);const oe={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:m,error:Q.error,focused:Q.focused,formControl:J,fullWidth:b,hiddenLabel:Q.hiddenLabel,multiline:x,size:Q.size,startAdornment:F,type:z},ie=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:p,type:f}=e;return $z({root:["root",`color${gW(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",h&&"medium"!==h&&`size${gW(h)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",c&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},UQ,t)})(oe),se=Y.root||c.Root||JQ,ae=j.root||d.root||{},le=Y.input||c.Input||QQ;return re={...re,...j.input??d.input},(0,sn.jsxs)(t.Fragment,{children:[!f&&"function"==typeof ZQ&&(KQ||(KQ=(0,sn.jsx)(ZQ,{}))),(0,sn.jsxs)(se,{...ae,ref:n,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),E&&E(e)},...V,...!RJ(se)&&{ownerState:{...oe,...ae.ownerState}},className:i(ie.root,ae.className,l,H&&"MuiInputBase-readOnly"),children:[F,(0,sn.jsx)(kU.Provider,{value:null,children:(0,sn.jsx)(le,{"aria-invalid":Q.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:Q.disabled,id:y,onAnimationStart:e=>{te("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:k,placeholder:D,readOnly:H,required:Q.required,rows:A,value:B,onKeyDown:I,onKeyUp:P,type:z,...re,...!RJ(le)&&{as:ne,ownerState:{...oe,...re.ownerState}},ref:K,className:i(ie.input,re.className,H&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),v.onBlur&&v.onBlur(e),J&&J.onBlur?J.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||U.current;if(null==t)throw new Error(Be(1));te({value:t.value})}v.onChange&&v.onChange(e,...t),T&&T(e,...t)},onFocus:e=>{L&&L(e),v.onFocus&&v.onFocus(e),J&&J.onFocus?J.onFocus(e):X(!0)}})}),m,O?O({...Q,startAdornment:F}):null]})]})})),tZ=eZ;function nZ(e){return zr("MuiInput",e)}const rZ={...GQ,...Wr("MuiInput",["root","underline","input"])},oZ=rW(JQ,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qQ(e,t),!n.disableUnderline&&t.underline]}})(iW((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rZ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rZ.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rZ.disabled}, .${rZ.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${rZ.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),iZ=rW(QQ,{name:"MuiInput",slot:"Input",overridesResolver:XQ})({}),sZ=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...h}=n,p=(e=>{const{classes:t,disableUnderline:n}=e,r=$z({root:["root",!n&&"underline"],input:["input"]},nZ,t);return{...t,...r}})(n),f={root:{ownerState:{disableUnderline:r}}},m=u??i?qe(u??i,f):f,g=c.root??o.Root??oZ,b=c.input??o.Input??iZ;return(0,sn.jsx)(tZ,{slots:{root:g,input:b},slotProps:m,fullWidth:s,inputComponent:a,multiline:l,ref:t,type:d,...h,classes:p})}));sZ.muiName="Input";const aZ=sZ;function lZ(e){return zr("MuiFilledInput",e)}const uZ={...GQ,...Wr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},cZ=rW(JQ,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qQ(e,t),!n.disableUnderline&&t.underline]}})(iW((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${uZ.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${uZ.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${uZ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uZ.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uZ.disabled}, .${uZ.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uZ.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}}))),dZ=rW(QQ,{name:"MuiFilledInput",slot:"Input",overridesResolver:XQ})(iW((({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]})))),hZ=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:s=!1,hiddenLabel:a,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:h="text",...p}=n,f={...n,disableUnderline:r,fullWidth:s,inputComponent:l,multiline:u,type:h},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=e,l=$z({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===i&&`size${gW(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},lZ,t);return{...t,...l}})(n),g={root:{ownerState:f},input:{ownerState:f}},b=c??i?qe(g,c??i):g,y=d.root??o.Root??cZ,w=d.input??o.Input??dZ;return(0,sn.jsx)(tZ,{slots:{root:y,input:w},slotProps:b,fullWidth:s,inputComponent:l,multiline:u,ref:t,type:h,...p,classes:m})}));hZ.muiName="Input";const pZ=hZ;var fZ;const mZ=rW("fieldset",{shouldForwardProp:nW})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gZ=rW("legend",{shouldForwardProp:nW})(iW((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))));function bZ(e){return zr("MuiOutlinedInput",e)}const yZ={...GQ,...Wr("MuiOutlinedInput",["root","notchedOutline","input"])},wZ=rW(JQ,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qQ})(iW((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yZ.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yZ.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yZ.focused} .${yZ.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{[`&.${yZ.focused} .${yZ.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${yZ.error} .${yZ.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yZ.disabled} .${yZ.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}}))),vZ=rW((function(e){const{children:t,classes:n,className:r,label:o,notched:i,...s}=e,a=null!=o&&""!==o,l={...e,notched:i,withLabel:a};return(0,sn.jsx)(mZ,{"aria-hidden":!0,className:r,ownerState:l,...s,children:(0,sn.jsx)(gZ,{ownerState:l,children:a?(0,sn.jsx)("span",{children:o}):fZ||(fZ=(0,sn.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline"})(iW((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),SZ=rW(QQ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:XQ})(iW((({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]})))),CZ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:u,slots:c={},slotProps:d={},type:h="text",...p}=r,f=(e=>{const{classes:t}=e,n=$z({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bZ,t);return{...t,...n}})(r),m=RU(),g=YX({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:h},y=c.root??o.Root??wZ,w=c.input??o.Input??SZ,[v,S]=mW("notchedOutline",{elementType:vZ,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:null!=a&&""!==a&&g.required?(0,sn.jsxs)(t.Fragment,{children:[a," ","*"]}):a}});return(0,sn.jsx)(tZ,{slots:{root:y,input:w},slotProps:d,renderSuffix:e=>(0,sn.jsx)(v,{...S,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:i,inputComponent:s,multiline:l,ref:n,type:h,...p,classes:{...f,notchedOutline:null}})}));CZ.muiName="Input";const _Z=CZ,MZ={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>nW(e)&&"variant"!==e},xZ=rW(aZ,MZ)(""),kZ=rW(_Z,MZ)(""),RZ=rW(pZ,MZ)(""),TZ=t.forwardRef((function(e,n){const r=lW({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:u=!1,displayEmpty:c=!1,IconComponent:d=FQ,id:h,input:p,inputProps:f,label:m,labelId:g,MenuProps:b,multiple:y=!1,native:w=!1,onClose:v,onOpen:S,open:C,renderValue:_,SelectDisplayProps:M,variant:x="outlined",...k}=r,R=w?EQ:YQ,T=YX({props:r,muiFormControl:RU(),states:["variant","error"]}),E=T.variant||x,L={...r,variant:E,classes:a},I=(e=>{const{classes:t}=e,n=$z({root:["root"]},LQ,t);return{...t,...n}})(L),{root:P,...D}=I,H=p||{standard:(0,sn.jsx)(xZ,{ownerState:L}),outlined:(0,sn.jsx)(kZ,{label:m,ownerState:L}),filled:(0,sn.jsx)(RZ,{ownerState:L})}[E],O=LW(n,mJ(H));return(0,sn.jsx)(t.Fragment,{children:t.cloneElement(H,{inputComponent:R,inputProps:{children:s,error:T.error,IconComponent:d,variant:E,type:void 0,multiple:y,...w?{id:h}:{autoWidth:o,defaultOpen:u,displayEmpty:c,labelId:g,MenuProps:b,onClose:v,onOpen:S,open:C,renderValue:_,SelectDisplayProps:{id:h,...M}},...f,classes:f?qe(D,f.classes):D,...p?p.props.inputProps:{}},...(y&&w||c)&&"outlined"===E?{notched:!0}:{},ref:O,className:i(H.props.className,l,I.root),...!p&&{variant:E},...k})})}));TZ.muiName="Select";const EZ=TZ,LZ=t.createContext({});function IZ(e){return zr("MuiAccordion",e)}const PZ=Wr("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),DZ=rW(CW,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PZ.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(iW((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${PZ.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${PZ.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}})),iW((({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${PZ.expanded}`]:{margin:"16px 0"}}}]})))),HZ=rW("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),OZ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiAccordion"}),{children:o,className:s,defaultExpanded:a=!1,disabled:l=!1,disableGutters:u=!1,expanded:c,onChange:d,square:h=!1,slots:p={},slotProps:f={},TransitionComponent:m,TransitionProps:g,...b}=r,[y,w]=xU({controlled:c,default:a,name:"Accordion",state:"expanded"}),v=t.useCallback((e=>{w(!y),d&&d(e,!y)}),[y,d,w]),[S,...C]=t.Children.toArray(o),_=t.useMemo((()=>({expanded:y,disabled:l,disableGutters:u,toggle:v})),[y,l,u,v]),M={...r,square:h,disabled:l,disableGutters:u,expanded:y},x=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return $z({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],heading:["heading"],region:["region"]},IZ,t)})(M),k={slots:{transition:m,...p},slotProps:{transition:g,...f}},[R,T]=mW("root",{elementType:DZ,externalForwardedProps:{...k,...b},className:i(x.root,s),shouldForwardComponentProp:!0,ownerState:M,ref:n,additionalProps:{square:h}}),[E,L]=mW("heading",{elementType:HZ,externalForwardedProps:k,className:x.heading,ownerState:M}),[I,P]=mW("transition",{elementType:_U,externalForwardedProps:k,ownerState:M});return(0,sn.jsxs)(R,{...T,children:[(0,sn.jsx)(E,{...L,children:(0,sn.jsx)(LZ.Provider,{value:_,children:S})}),(0,sn.jsx)(I,{in:y,timeout:"auto",...P,children:(0,sn.jsx)("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:x.region,children:C})})]})})),AZ=OZ;function NZ(e){return zr("MuiAccordionSummary",e)}const jZ=Wr("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),YZ=rW(mV,{name:"MuiAccordionSummary",slot:"Root"})(iW((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${jZ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jZ.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${jZ.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${jZ.expanded}`]:{minHeight:64}}}]}}))),FZ=rW("span",{name:"MuiAccordionSummary",slot:"Content"})(iW((({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${jZ.expanded}`]:{margin:"20px 0"}}}]})))),zZ=rW("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(iW((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${jZ.expanded}`]:{transform:"rotate(180deg)"}})))),WZ=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiAccordionSummary"}),{children:o,className:s,expandIcon:a,focusVisibleClassName:l,onClick:u,slots:c,slotProps:d,...h}=r,{disabled:p=!1,disableGutters:f,expanded:m,toggle:g}=t.useContext(LZ),b={...r,expanded:m,disabled:p,disableGutters:f},y=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return $z({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},NZ,t)})(b),w={slots:c,slotProps:d},[v,S]=mW("root",{ref:n,shouldForwardComponentProp:!0,className:i(y.root,s),elementType:YZ,externalForwardedProps:{...w,...h},ownerState:b,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:p,"aria-expanded":m,focusVisibleClassName:i(y.focusVisible,l)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{g&&g(e),u&&u(e)})(t)}})}),[C,_]=mW("content",{className:y.content,elementType:FZ,externalForwardedProps:w,ownerState:b}),[M,x]=mW("expandIconWrapper",{className:y.expandIconWrapper,elementType:zZ,externalForwardedProps:w,ownerState:b});return(0,sn.jsxs)(v,{...S,children:[(0,sn.jsx)(C,{..._,children:o}),a&&(0,sn.jsx)(M,{...x,children:a})]})})),VZ=WZ;function BZ(e){return zr("MuiAccordionDetails",e)}Wr("MuiAccordionDetails",["root"]);const $Z=rW("div",{name:"MuiAccordionDetails",slot:"Root"})(iW((({theme:e})=>({padding:e.spacing(1,2,2)})))),UZ=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiAccordionDetails"}),{className:r,...o}=n,s=n,a=(e=>{const{classes:t}=e;return $z({root:["root"]},BZ,t)})(s);return(0,sn.jsx)($Z,{className:i(a.root,r),ref:t,ownerState:s,...o})})),GZ=UZ;var KZ=o(5556);const qZ=parseInt(t.version,10),XZ=e=>{if(qZ>=19){const t=t=>e(t,t.ref??null);return t.displayName=e.displayName??e.name,t}return t.forwardRef(e)},JZ=Object.is;function QZ(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!JZ(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r}function ZZ(e){return t.memo(e,QZ)}function e0(e){return zr("MuiDataGrid",e)}const t0=Wr("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]),n0={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=n0.values;return`@media (min-width:${"number"==typeof t[e]?t[e]:e}px)`}},r0={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},o0=function e(t){if("string"==typeof t)return`var(${t})`;const n={};for(const r in t)Object.hasOwn(t,r)&&(n[r]=e(t[r]));return n}(r0),i0=s({breakpoints:n0,spacing:function(e,t,n,r){return void 0===e?s0(1):void 0===t?s0(e):void 0===n?s0(e)+" "+s0(t):void 0===r?s0(e)+" "+s0(t)+" "+s0(n):s0(e)+" "+s0(t)+" "+s0(n)+" "+s0(r)},transition:function(e,t){const{duration:n=i0.transitions.duration.base,easing:r=i0.transitions.easing.easeInOut,delay:o=0}=t??{};return e.map((e=>`${e} ${n} ${r} ${o}ms`)).join(", ")},keys:r0},o0);function s0(e){return 0===e?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}var a0=o(9888);const l0=Object.is,u0=QZ,c0=(e,t)=>e===t||e.length===t.length&&e.every(((e,n)=>e===t[n])),d0=(e,t)=>{let n=Object.is;return t instanceof Array?n=c0:t instanceof Object&&(n=u0),n(e,t)},h0=()=>({state:null,equals:null,selector:null,args:void 0}),p0=[],f0=()=>null,m0=(e,n,r=void 0,o=l0)=>{const i=OW(h0),s=null!==i.current.selector,[a,l]=t.useState(s?null:n(e,r));i.current.state=a,i.current.equals=o,i.current.selector=n;const u=i.current.args;if(i.current.args=r,s&&!d0(u,r)){const t=i.current.selector(e,i.current.args);i.current.equals(i.current.state,t)||(i.current.state=t,l(t))}const c=t.useCallback((()=>(i.current.subscription||(i.current.subscription=e.current.store.subscribe((()=>{const t=i.current.selector(e,i.current.args);i.current.equals(i.current.state,t)||(i.current.state=t,l(t))}))),null)),p0),d=t.useCallback((()=>()=>{i.current.subscription&&(i.current.subscription(),i.current.subscription=void 0)}),p0);return(0,a0.useSyncExternalStore)(d,c,f0),a},g0=t.createContext(void 0);function b0(){const e=t.useContext(g0);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}const y0={width:3,rx:1.5,x:10.5},w0=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||0===e.current.state.dimensions.scrollbarSize),v0=rW("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${t0.autoHeight}`]:t.autoHeight},{[`&.${t0.autosizing}`]:t.autosizing},{[`&.${t0["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${t0["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${t0["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${t0["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${t0["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${t0.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${t0.actionsCell}`]:t.actionsCell},{[`& .${t0.booleanCell}`]:t.booleanCell},{[`& .${t0.cell}`]:t.cell},{[`& .${t0["cell--editable"]}`]:t["cell--editable"]},{[`& .${t0["cell--editing"]}`]:t["cell--editing"]},{[`& .${t0["cell--flex"]}`]:t["cell--flex"]},{[`& .${t0["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${t0["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${t0["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${t0["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${t0["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${t0["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${t0["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${t0["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${t0["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${t0["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${t0["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${t0["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${t0.cellCheckbox}`]:t.cellCheckbox},{[`& .${t0.cellEmpty}`]:t.cellEmpty},{[`& .${t0.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${t0.cellSkeleton}`]:t.cellSkeleton},{[`& .${t0.checkboxInput}`]:t.checkboxInput},{[`& .${t0.columnHeader}`]:t.columnHeader},{[`& .${t0["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${t0["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${t0["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${t0["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${t0["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${t0["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${t0["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${t0["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${t0["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${t0["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${t0["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${t0["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${t0["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${t0["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${t0["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${t0["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${t0["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${t0["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${t0.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${t0.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${t0.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${t0.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${t0.columnSeparator}`]:t.columnSeparator},{[`& .${t0["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${t0["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${t0["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${t0["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${t0["container--bottom"]}`]:t["container--bottom"]},{[`& .${t0["container--top"]}`]:t["container--top"]},{[`& .${t0.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${t0["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${t0.editBooleanCell}`]:t.editBooleanCell},{[`& .${t0.filterIcon}`]:t.filterIcon},{[`& .${t0["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${t0["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${t0["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${t0.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${t0.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${t0.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${t0.headerFilterRow}`]:t.headerFilterRow},{[`& .${t0.iconSeparator}`]:t.iconSeparator},{[`& .${t0.menuIcon}`]:t.menuIcon},{[`& .${t0.menuIconButton}`]:t.menuIconButton},{[`& .${t0.menuList}`]:t.menuList},{[`& .${t0.menuOpen}`]:t.menuOpen},{[`& .${t0.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${t0.pinnedRows}`]:t.pinnedRows},{[`& .${t0["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${t0["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${t0.row}`]:t.row},{[`& .${t0["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${t0["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${t0["row--dragging"]}`]:t["row--dragging"]},{[`& .${t0["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${t0["row--editable"]}`]:t["row--editable"]},{[`& .${t0["row--editing"]}`]:t["row--editing"]},{[`& .${t0["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${t0["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${t0.rowReorderCell}`]:t.rowReorderCell},{[`& .${t0["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${t0.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${t0.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${t0.rowSkeleton}`]:t.rowSkeleton},{[`& .${t0.scrollbar}`]:t.scrollbar},{[`& .${t0["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${t0["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${t0.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${t0["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${t0["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${t0["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${t0["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${t0.sortIcon}`]:t.sortIcon},{[`& .${t0.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${t0.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${t0.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${t0.withBorderColor}`]:t.withBorderColor}]})((()=>{const e=b0(),t=m0(e,w0),n=i0.colors.background.base,r=i0.header.background.base,o=i0.cell.background.pinned,i=S0(i0.colors.interactive.hover,1),s=i0.colors.interactive.hoverOpacity,a=i0.colors.interactive.selected,l=i0.colors.interactive.selectedOpacity,u=a,c=`calc(${l} + ${s})`,d=C0(n,i,s),h=C0(n,a,l),p=C0(n,u,c),f=C0(o,i,s),m=C0(o,a,l),g=C0(o,u,c),b=e=>({[`& .${t0["cell--pinnedLeft"]}, & .${t0["cell--pinnedRight"]}`]:{backgroundColor:e,"&.Mui-selected":{backgroundColor:C0(e,h,l),"&:hover":{backgroundColor:C0(e,p,c)}}}}),y=b(f),w=b(m),v=b(g),S={backgroundColor:h,"&:hover":{backgroundColor:p,"@media (hover: none)":{backgroundColor:h}}};return{"--unstable_DataGrid-radius":i0.radius.base,"--unstable_DataGrid-headWeight":i0.typography.fontWeight.medium,"--DataGrid-rowBorderColor":i0.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:i0.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:i0.colors.background.base,color:i0.colors.foreground.base,font:i0.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${t0.main} > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${t0.autoHeight}`]:{height:"auto"},[`&.${t0.autosizing}`]:{[`& .${t0.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${t0.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${t0.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${t0.groupingCriteriaCell}`]:{width:"unset"},[`& .${t0.treeDataGroupingCell}`]:{width:"unset"}},[`&.${t0.withSidePanel}`]:{flexDirection:"row"},[`& .${t0.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${t0.columnHeader}, & .${t0.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${t0.columnHeader}:focus-within, & .${t0.cell}:focus-within`]:{outline:`solid ${S0(i0.colors.interactive.focus,.5)} 1px`,outlineOffset:-1},[`& .${t0.columnHeader}:focus, & .${t0.cell}:focus`]:{outline:`solid ${i0.colors.interactive.focus} 1px`,outlineOffset:-1},[`& .${t0.columnHeader}:focus,\n & .${t0["columnHeader--withLeftBorder"]},\n & .${t0["columnHeader--withRightBorder"]},\n & .${t0["columnHeader--siblingFocused"]},\n & .${t0["virtualScroller--hasScrollX"]} .${t0["columnHeader--lastUnpinned"]},\n & .${t0["virtualScroller--hasScrollX"]} .${t0["columnHeader--last"]}\n `]:{[`& .${t0.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${t0["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${t0["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${t0["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${t0["root--noToolbar"]} [aria-rowindex="1"] .${t0["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${t0.columnHeaderCheckbox}, & .${t0.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${t0.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${t0["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${t0["virtualScroller--hasScrollX"]} .${t0["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${t0["pivotPanelField--sorted"]} .${t0.iconButtonContainer},\n & .${t0["columnHeader--sorted"]} .${t0.iconButtonContainer},\n & .${t0["columnHeader--filtered"]} .${t0.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${t0.pivotPanelField}:not(.${t0["pivotPanelField--sorted"]}) .${t0.sortButton},\n & .${t0.columnHeader}:not(.${t0["columnHeader--sorted"]}) .${t0.sortButton}`]:{opacity:0,transition:i0.transition(["opacity"],{duration:i0.transitions.duration.short})},[`& .${t0.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:i0.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${t0.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${t0["columnHeader--filledGroup"]} .${t0.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${t0.sortIcon}, & .${t0.filterIcon}`]:{fontSize:"inherit"},[`& .${t0["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${t0["columnHeader--alignCenter"]} .${t0.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${t0["columnHeader--alignRight"]} .${t0.columnHeaderDraggableContainer}, & .${t0["columnHeader--alignRight"]} .${t0.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${t0["columnHeader--alignCenter"]} .${t0.menuIcon}`]:{marginLeft:"auto"},[`& .${t0["columnHeader--alignRight"]} .${t0.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${t0["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${t0["columnHeader--pinnedLeft"]}, & .${t0["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:i0.header.background.base},[`& .${t0.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:10,color:i0.colors.border.base},[`& .${t0.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${t0.columnHeader}:hover`]:{[`& .${t0.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${t0.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${t0.columnHeader}:not(.${t0["columnHeader--sorted"]}):hover .${t0.sortButton},\n & .${t0.pivotPanelField}:not(.${t0["pivotPanelField--sorted"]}):hover .${t0.sortButton},\n & .${t0.pivotPanelField}:not(.${t0["pivotPanelField--sorted"]}) .${t0.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${t0.columnHeader} .${t0.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${t0.columnHeader}:focus,\n & .${t0["columnHeader--siblingFocused"]}`]:{[`.${t0["columnSeparator--resizable"]}`]:{color:i0.colors.foreground.accent}},[`& .${t0.pivotPanelField}:not(.${t0["pivotPanelField--sorted"]}) .${t0.sortButton}`]:{opacity:.5}},[`& .${t0["columnSeparator--sideLeft"]}`]:{left:-5},[`& .${t0["columnSeparator--sideRight"]}`]:{right:-5},[`& .${t0["columnHeader--withRightBorder"]} .${t0["columnSeparator--sideLeft"]}`]:{left:-5.5},[`& .${t0["columnHeader--withRightBorder"]} .${t0["columnSeparator--sideRight"]}`]:{right:-5.5},[`& .${t0["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${t0["columnSeparator--resizing"]}`]:{color:i0.colors.foreground.accent},"@media (hover: none)":{[`& .${t0.iconSeparator} rect`]:y0},"@media (hover: hover)":{"&:hover":{color:i0.colors.foreground.accent,[`& .${t0.iconSeparator} rect`]:y0}},"& svg":{pointerEvents:"none"}},[`& .${t0.iconSeparator}`]:{color:"inherit",transition:i0.transition(["color","width"],{duration:i0.transitions.duration.short})},[`& .${t0.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${t0.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${t0.headerFilterRow}`]:{[`& .${t0.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${t0["row--borderBottom"]} .${t0.columnHeader},\n & .${t0["row--borderBottom"]} .${t0.filler},\n & .${t0["row--borderBottom"]} .${t0.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${t0["row--borderBottom"]} .${t0.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${t0.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${t0["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${t0.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":S},[`& .${t0["container--top"]}, & .${t0["container--bottom"]}`]:{"[role=row]":{background:i0.colors.background.base}},[`& .${t0.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":S},[`& .${t0["virtualScrollerContent--overflowed"]} .${t0["row--lastVisible"]} .${t0.cell}`]:{borderTopColor:"transparent"},[`& .${t0.pinnedRows} .${t0.row}, .${t0.aggregationRowOverlayWrapper} .${t0.row}`]:{backgroundColor:o,"&:hover":{backgroundColor:f}},[`& .${t0["pinnedRows--top"]} :first-of-type`]:{[`& .${t0.cell}, .${t0.scrollbarFiller}`]:{borderTop:"none"}},[`&.${t0["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${t0["row--dynamicHeight"]} > .${t0.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${t0.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${t0.cell}.${t0["cell--selectionMode"]}`]:{cursor:"default"},[`& .${t0.cell}.${t0["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:i0.shadows.base,backgroundColor:i0.colors.background.overlay,"&:focus-within":{outline:`1px solid ${i0.colors.interactive.focus}`,outlineOffset:-1}},[`& .${t0["row--editing"]}`]:{boxShadow:i0.shadows.base},[`& .${t0["row--editing"]} .${t0.cell}`]:{boxShadow:"none",backgroundColor:i0.colors.background.overlay},[`& .${t0.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${t0.booleanCell}[data-value="true"]`]:{color:i0.colors.foreground.muted},[`& .${t0.booleanCell}[data-value="false"]`]:{color:i0.colors.foreground.disabled},[`& .${t0.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:i0.spacing(1)},[`& .${t0.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:i0.colors.interactive.disabledOpacity},[`& .${t0["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${t0.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${t0.withBorderColor}`]:{borderColor:i0.colors.border.base},[`& .${t0["cell--withLeftBorder"]}, & .${t0["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${t0["cell--withRightBorder"]}, & .${t0["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${t0["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${t0["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${t0["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${t0["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${t0["cell--pinnedLeft"]}, & .${t0["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:i0.cell.background.pinned,"&.Mui-selected":{backgroundColor:m}},[`& .${t0.row}`]:{"&:hover":y,"&.Mui-selected":w,"&.Mui-selected:hover":v},[`& .${t0.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${t0.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${t0.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${t0.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${t0["columnHeader--dragging"]}, & .${t0["row--dragging"]}`]:{background:i0.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:i0.colors.interactive.disabledOpacity},[`& .${t0["row--dragging"]}`]:{background:i0.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:i0.colors.interactive.disabledOpacity,[`& .${t0.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${t0.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${t0.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:i0.spacing(2)},[`& .${t0.treeDataGroupingCellLoadingContainer}, .${t0.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${t0.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${t0.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:i0.spacing(2)},[`& .${t0.columnHeaders} .${t0.scrollbarFiller}`]:{backgroundColor:r},[`.${t0.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${t0["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${t0["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${t0["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:i0.cell.background.pinned,position:"sticky",right:0}},[`& .${t0.filler}`]:{flex:"1 0 auto"},[`& .${t0["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${t0.columnHeaders} .${t0.filler}`]:{backgroundColor:r},[`& .${t0["main--hiddenContent"]}`]:{[`& .${t0.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${t0["scrollbar--vertical"]}, & .${t0.pinnedRows}, & .${t0.virtualScroller} > .${t0.filler}`]:{display:"none"}}}}));function S0(e,t){return`rgba(from ${e} r g b / ${t})`}function C0(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const _0=t.createContext(void 0),M0=()=>{const e=t.useContext(_0);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},x0=t.createContext(void 0),k0=()=>{const e=t.useContext(x0);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e},R0=t.createContext({className:"unset",tag:(0,sn.jsx)("style",{href:"/unset"})});function T0(){return t.useContext(R0).className}function E0(e){const n=k0(),r=M0(),o=n.hooks.useCSSVariables(),i=t.useMemo((()=>{const e=`MuiDataGridVariables-${o.id}`,t=`.${e}{${function(e){let t="";for(const n in e)Object.hasOwn(e,n)&&void 0!==e[n]&&(t+=`${n}:${e[n]};`);return t}(o.variables)}}`;return{className:e,tag:(0,sn.jsx)("style",{href:`/${e}`,nonce:r.nonce,children:t})}}),[r.nonce,o]);return(0,sn.jsx)(R0.Provider,{value:i,children:e.children})}class L0{constructor(e){this.value=e}deref(){return this.value}}const I0=(()=>"undefined"==typeof WeakRef?L0:WeakRef)(),P0=MB({memoize:SB,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:function(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function s(){let t=n;const{length:s}=arguments;for(let e=0,n=s;e<n;e+=1){let n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){"current"in n&&"instanceId"in n.current&&(n=n.current.state);let e=t.o;null===e&&(e=new WeakMap,t.o=e);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}else{let e=t.p;null===e&&(e=new Map,t.p=e);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}}const a=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),i+=1,r){const e=function(e){return e instanceof I0?e.deref():e}(o);null!=e&&r(e,l)&&(l=e,0!==i&&(i-=1)),o="object"==typeof l&&null!==l||"function"==typeof l?new I0(l):l}return a.s=1,a.v=l,l}return s.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}}),D0=new WeakMap,H0=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(s,a)=>{const l=e(s,a),u=t(s,a),c=n(s,a),d=r(s,a),h=o(s,a);return i(l,u,c,d,h,a)};else if(e&&t&&n&&r&&o)a=(i,s)=>{const a=e(i,s),l=t(i,s),u=n(i,s),c=r(i,s);return o(a,l,u,c,s)};else if(e&&t&&n&&r)a=(o,i)=>{const s=e(o,i),a=t(o,i),l=n(o,i);return r(s,a,l,i)};else if(e&&t&&n)a=(r,o)=>{const i=e(r,o),s=t(r,o);return n(i,s,o)};else{if(!e||!t)throw new Error("Missing arguments");a=(n,r)=>{const o=e(n,r);return t(o,r)}}return a},O0=e=>(t,n)=>e(t.current.state,n),A0=(...e)=>(t,n)=>{const r=t.current.instanceId,o=D0.get(r),i=o??new Map,s=i.get(e);if(i&&s){if(!d0(s.selectorArgs,n)){const r=void 0!==n?[...e.slice(0,e.length-1),()=>n,e[e.length-1]]:e,o=P0(...r);return o.selectorArgs=n,i.set(e,o),o(t,n)}return s(t,n)}const a=void 0!==n?[...e.slice(0,e.length-1),()=>n,e[e.length-1]]:e,l=P0(...a);return l.selectorArgs=n,o||D0.set(r,i),i.set(e,l),l(t,n)},N0={compact:.7,comfortable:1.3,standard:1},j0=O0((e=>e.density)),Y0=H0(j0,(e=>N0[e])),F0=()=>()=>{},z0=()=>!1,W0=()=>!0;let V0=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const B0={left:[],right:[]},$0=O0((e=>e.isRtl)),U0=O0((e=>e.columns)),G0=H0(U0,(e=>e.orderedFields)),K0=H0(U0,(e=>e.lookup)),q0=A0(G0,K0,((e,t)=>e.map((e=>t[e])))),X0=H0(U0,(e=>e.columnVisibilityModel)),J0=H0(U0,(e=>e.initialColumnVisibilityModel)),Q0=A0(q0,X0,((e,t)=>e.filter((e=>!1!==t[e.field])))),Z0=A0(Q0,(e=>e.map((e=>e.field)))),e1=O0((e=>e.pinnedColumns)),t1=(A0(e1,G0,$0,((e,t,n)=>n1(e,t,n))),A0(U0,e1,Z0,$0,((e,t,n,r)=>{const o=n1(t,n,r);return{left:o.left.map((t=>e.lookup[t])),right:o.right.map((t=>e.lookup[t]))}})));function n1(e,t,n){if(!Array.isArray(e.left)&&!Array.isArray(e.right))return B0;if(0===e.left?.length&&0===e.right?.length)return B0;const r=(e,t)=>Array.isArray(e)?e.filter((e=>t.includes(e))):[],o=r(e.left,t),i=t.filter((e=>!o.includes(e))),s=r(e.right,i);return n?{left:s,right:o}:{left:o,right:s}}const r1=A0(Q0,(e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t})),o1=A0(q0,(e=>e.filter((e=>e.filterable)))),i1=A0(q0,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),s1=A0(q0,(e=>e.some((e=>void 0!==e.colSpan)))),a1=O0((e=>e.preferencePanel)),l1=H0(a1,((e,t)=>!(!e.open||e.labelId!==t)));var u1=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(u1||{});const c1=t.createContext(void 0);function d1(){const e=t.useContext(c1);if(void 0===e)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join("\n"));return e}const h1=t.createContext(void 0);function p1(){const e=t.useContext(h1);if(void 0===e)throw new Error("MUI X: Missing context.");return e}function f1({children:e}){const n=t.useRef(null),r=t.useRef(null),o=t.useRef(null),i=t.useMemo((()=>({columnsPanelTriggerRef:n,filterPanelTriggerRef:r,aiAssistantPanelTriggerRef:o})),[]);return(0,sn.jsx)(h1.Provider,{value:i,children:e})}function m1(){const e=d1(),t=m0(e,q0),n=M0(),r=m0(e,a1),{columnsPanelTriggerRef:o,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=p1(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??u1.filters);let u=null;switch(r.openedPanelValue){case u1.filters:u=i.current;break;case u1.columns:u=o.current;break;case u1.aiAssistant:u=a.current}return(0,sn.jsx)(n.slots.panel,s({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:u,onClose:()=>e.current.hidePreferences()},n.slotProps?.panel,{children:l}))}function g1(){const e=M0();return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(m1,{}),e.showToolbar&&(0,sn.jsx)(e.slots.toolbar,s({},e.slotProps?.toolbar))]})}const b1=O0((e=>e.dimensions)),y1=H0(b1,(e=>e.columnsTotalWidth)),w1=H0(b1,(e=>e.rowHeight)),v1=H0(b1,(e=>e.contentSize.height)),S1=H0(b1,(e=>e.hasScrollX)),C1=H0(b1,(e=>e.hasScrollY)),_1=H0(b1,(e=>e.columnsTotalWidth<e.viewportOuterSize.width)),M1=H0(b1,(e=>e.headerHeight)),x1=H0(b1,(e=>e.groupHeaderHeight)),k1=(H0(b1,(e=>e.headerFilterHeight)),H0(b1,(e=>e.hasScrollX?e.scrollbarSize:0))),R1=H0(b1,(e=>e.hasScrollY?e.scrollbarSize:0)),T1=H0(b1,k1,((e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(0===t&&!n)}));class E1{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout((()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach(((e,t)=>{this.unregister({cleanupToken:t})})),this.timeouts=void 0)}}class L1{constructor(){this.registry=new FinalizationRegistry((e=>{"function"==typeof e&&e()}))}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class I1{static create(){return new I1}}const P1={current:"undefined"!=typeof FinalizationRegistry?new L1:new E1};let D1=0;function H1(e,n,r,o){const i=t.useState(I1.create)[0],s=t.useRef(null),a=t.useRef(null);a.current=r;const l=t.useRef(null);if(!s.current&&a.current){const t=(e,t,n)=>{t.defaultMuiPrevented||a.current?.(e,t,n)};s.current=e.current.subscribeEvent(n,t,o),D1+=1,l.current={cleanupToken:D1},P1.current.register(i,(()=>{s.current?.(),s.current=null,l.current=null}),l.current)}else!a.current&&s.current&&(s.current(),s.current=null,l.current&&(P1.current.unregister(l.current),l.current=null));t.useEffect((()=>{if(!s.current&&a.current){const t=(e,t,n)=>{t.defaultMuiPrevented||a.current?.(e,t,n)};s.current=e.current.subscribeEvent(n,t,o)}return l.current&&P1.current&&(P1.current.unregister(l.current),l.current=null),()=>{s.current?.(),s.current=null}}),[e,n,o])}const O1={isFirst:!0};function A1(e,t,n){H1(e,t,n,O1)}function N1(e){throw new Error("Failed assertion: should not be rendered")}const j1=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],Y1=rW(N1,{name:"MuiDataGrid",slot:"EditInputCell"})({font:i0.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),F1=XZ(((e,n)=>{const r=M0(),{id:o,value:i,field:a,colDef:l,hasFocus:u,debounceMs:c=200,isProcessingProps:d,onValueChange:h,slotProps:p}=e,f=Bz(e,j1),m=d1(),g=t.useRef(null),[b,y]=t.useState(i),w=(e=>{const{classes:t}=e;return $z({root:["editInputCell"]},e0,t)})(r),v=t.useCallback((async e=>{const t=e.target.value,n=m.current.getColumn(a);let r=t;n.valueParser&&(r=n.valueParser(t,m.current.getRow(o),n,m)),y(r),m.current.setEditCellValue({id:o,field:a,value:r,debounceMs:c,unstable_skipValueParser:!0},e),h&&await h(e,t)}),[m,c,a,o,h]),S=m.current.unstable_getEditCellMeta(o,a);return t.useEffect((()=>{"debouncedSetEditCellValue"!==S?.changeReason&&y(i)}),[S,i]),IW((()=>{u&&g.current.focus()}),[u]),(0,sn.jsx)(Y1,s({as:r.slots.baseInput,inputRef:g,className:w.root,ownerState:r,fullWidth:!0,type:"number"===l.type?l.type:"text",value:b??"",onChange:v,endAdornment:d?(0,sn.jsx)(r.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},f,p?.root,{ref:n}))})),z1=O0((e=>e.rows)),W1=H0(z1,(e=>e.totalRowCount)),V1=H0(z1,(e=>e.loading)),B1=H0(z1,(e=>e.totalTopLevelRowCount)),$1=H0(z1,(e=>e.dataRowIdToModelLookup)),U1=(H0($1,((e,t)=>e[t])),H0(z1,(e=>e.tree))),G1=H0(U1,((e,t)=>e[t])),K1=H0(z1,(e=>e.groupsToFetch)),q1=H0(z1,(e=>e.groupingName)),X1=H0(z1,(e=>e.treeDepths)),J1=A0(z1,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:(t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]??0)+1})),Q1=H0(z1,(e=>e.dataRowIds)),Z1=A0(Q1,$1,((e,t)=>e.reduce(((e,n)=>t[n]?(e.push(t[n]),e):e),[]))),e2=A0(H0(z1,(e=>e?.additionalRowGroups)),(e=>{const t=e?.pinnedRows;return{bottom:t?.bottom?.map((e=>({id:e.id,model:e.model??{}})))??[],top:t?.top?.map((e=>({id:e.id,model:e.model??{}})))??[]}})),t2=H0(e2,(e=>(e?.top?.length||0)+(e?.bottom?.length||0))),n2=(e,t)=>t&&e.length>1?[e[0]]:e,r2=(e,t)=>n=>s({},n,{sorting:s({},n.sorting,{sortModel:n2(e,t)})}),o2=(e,t)=>{const n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},i2=(e,t)=>null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null,s2=new Intl.Collator,a2=(e,t)=>{const n=i2(e,t);return null!==n?n:Number(e)-Number(t)},l2=(e,t)=>{const n=i2(e,t);return null!==n?n:e>t?1:e<t?-1:0},u2=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function c2(e){const{item:n,applyValue:r,type:o,apiRef:i,focusElementRef:a,tabIndex:l,disabled:u,slotProps:c,clearButton:d,headerFilterMenu:h}=e,p=Bz(e,u2),f=c?.root,m=qW(),[g,b]=t.useState(d2(n.value)),[y,w]=t.useState(!1),v=RW(),S=M0(),C=t.useCallback((e=>{const t=d2(e.target.value);b(t),w(!0),m.start(S.filterDebounceMs,(()=>{const e=s({},n,{value:"number"!==o||Number.isNaN(Number(t))?t:Number(t),fromInput:v});r(e),w(!1)}))}),[m,S.filterDebounceMs,n,o,v,r]);return t.useEffect((()=>{n.fromInput===v&&null!=n.value||b(d2(n.value))}),[v,n]),(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(S.slots.baseTextField,s({id:v,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g??"",onChange:C,type:o||"text",disabled:u,slotProps:s({},f?.slotProps,{input:s({endAdornment:y?(0,sn.jsx)(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},f?.slotProps?.input),htmlInput:s({tabIndex:l},f?.slotProps?.htmlInput)}),inputRef:a},S.slotProps?.baseTextField,p,f)),h,d]})}function d2(e){if(null!=e&&""!==e)return String(e)}function h2(e){return"object"==typeof e&&null!==e}function p2(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const f2=(e,t,n)=>Math.max(t,Math.min(n,e));function m2(e,t){return Array.from({length:t-e}).map(((t,n)=>e+n))}function g2(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}const b2=(e,t)=>n=>{e&&t(n)};function y2(e){const{item:n,applyValue:r,type:o,apiRef:i,focusElementRef:a,slotProps:l}=e,u=RW(),[c,d]=t.useState([]),[h,p]=t.useState(n.value||[]),f=M0();t.useEffect((()=>{const e=n.value??[];p(e.map(String))}),[n.value]);const m=t.useCallback(((e,t)=>{p(t.map(String)),r(s({},n,{value:[...t.map((e=>"number"===o?Number(e):e))]}))}),[r,n,o]),g=t.useCallback(((e,t)=>{d(""===t?[]:[t])}),[d]),b=f.slots.baseAutocomplete;return(0,sn.jsx)(b,s({multiple:!0,freeSolo:!0,options:c,id:u,value:h,onChange:m,onInputChange:g,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:a}}},l?.root))}var w2=function(e){return e.And="and",e.Or="or",e}(w2||{});const v2={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},S2=()=>({items:[],logicOperator:w2.And,quickFilterValues:[],quickFilterLogicOperator:w2.And});function C2(e){return{current:e.current.getPublicApi()}}let _2;const M2=(e,t)=>{const n=s({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operator){const e=K0(t)[n.field];n.operator=e&&e.filterOperators[0].value}return n},x2=(e,t,n)=>{const r=e.items.length>1;let o;o=r&&t?[e.items[0]]:e.items;const i=r&&o.some((e=>null==e.id));return o.some((e=>null==e.operator))||i?s({},e,{items:o.map((e=>M2(e,n)))}):e.items!==o?s({},e,{items:o}):e},k2=(e,t,n)=>r=>s({},r,{filterModel:x2(e,t,n)}),R2=e=>"string"==typeof e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,T2=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const o=n.valueParser;r=Array.isArray(e.value)?e.value?.map((e=>o(e,void 0,n,t))):o(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=R2(r));const i=s({},e,{value:r}),a=n.filterOperators;if(!a?.length)throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const l=a.find((e=>e.value===i.operator));if(!l)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const u=C2(t),c=l.getApplyFilterFn(i,n);return"function"!=typeof c?null:{item:i,fn:e=>{let r=t.current.getRowValue(e,n);return o&&(r=R2(r)),c(r,e,n,u)}}};let E2=1;const L2=e=>e.quickFilterExcludeHiddenColumns??!0,I2=(e,t,n)=>{const r=((e,t,n)=>{const{items:r}=e,o=r.map((e=>T2(e,t))).filter((e=>!!e));if(0===o.length)return null;if(n||!function(){if(void 0!==_2)return _2;try{_2=new Function("return true")()}catch(e){_2=!1}return _2}())return(e,t)=>{const n={};for(let r=0;r<o.length;r+=1){const i=o[r];t&&!t(i.item.field)||(n[i.item.id]=i.fn(e))}return n};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";\n${o.map(((e,t)=>`const shouldApply${t} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(e.item.field)});`)).join("\n")}\n\nconst result$$ = {\n${o.map(((e,t)=>` ${JSON.stringify(String(e.item.id))}: !shouldApply${t} ? false : appliers[${t}].fn(row),`)).join("\n")}\n};\n\nreturn result$$;`.replaceAll("$$",String(E2)));return E2+=1,(e,t)=>i(o,e,t)})(e,t,n),o=((e,t)=>{const n=e.quickFilterValues?.filter(Boolean)??[];if(0===n.length)return null;const r=L2(e)?Z0(t):G0(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,s=C2(t);return r.forEach((e=>{const r=t.current.getColumn(e),a=r?.getApplyQuickFilterFn;a&&o.push({column:r,appliers:n.map((e=>{const t=i?R2(e):e;return{fn:a(t,r,s)}}))})})),function(e,r){const a={};e:for(let l=0;l<n.length;l+=1){const u=n[l];for(let n=0;n<o.length;n+=1){const{column:c,appliers:d}=o[n],{field:h}=c;if(r&&!r(h))continue;const p=d[l];let f=t.current.getRowValue(e,c);if(null!==p.fn&&(i&&(f=R2(f)),p.fn(f,e,c,s))){a[u]=!0;continue e}}a[u]=!1}return a}})(e,t);return function(e,t,n){n.passingFilterItems=r?.(e,t)??null,n.passingQuickFilterValues=o?.(e,t)??null}},P2=e=>null!=e,D2=(e,t,n,r,o)=>{const i=((e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter((e=>null!==T2(e,t)))),e.cleanedFilterItems))(o,r,n.items),s=e.filter(P2),a=t.filter(P2);if(s.length>0){const e=e=>s.some((t=>t[e.id]));if((n.logicOperator??S2().logicOperator)===w2.And){if(!i.every(e))return!1}else if(!i.some(e))return!1}if(a.length>0&&null!=n.quickFilterValues){const e=e=>a.some((t=>t[e]));if((n.quickFilterLogicOperator??S2().quickFilterLogicOperator)===w2.And){if(!n.quickFilterValues.every(e))return!1}else if(!n.quickFilterValues.some(e))return!1}return!0},H2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(p2(r),"i");return e=>{if(null==e)return t;const n=o.test(String(e));return t?!n:n}},O2=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>{if(null==e)return t;const n=0===o.compare(r,e.toString());return t?!n:n}},A2=e=>()=>t=>{const n=""===t||null==t;return e?!n:n},N2={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:(e,t)=>{const n=i2(e,t);return null!==n?n:"string"==typeof e?s2.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:((e=!1)=>[{value:"contains",getApplyFilterFn:H2(e,!1),InputComponent:c2},{value:"doesNotContain",getApplyFilterFn:H2(e,!0),InputComponent:c2},{value:"equals",getApplyFilterFn:O2(e,!1),InputComponent:c2},{value:"doesNotEqual",getApplyFilterFn:O2(e,!0),InputComponent:c2},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${p2(n)}.*$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:c2},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${p2(n)}$`,"i");return e=>null!=e&&r.test(e.toString())},InputComponent:c2},{value:"isEmpty",getApplyFilterFn:A2(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:A2(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||0===t.value.length)return null;const n=e?t.value:t.value.map((e=>e.trim())),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return e=>null!=e&&n.some((t=>0===r.compare(t,e.toString()||"")))},InputComponent:y2}])(),renderEditCell:e=>(0,sn.jsx)(F1,s({},e)),getApplyQuickFilterFn:e=>{if(!e)return null;const t=new RegExp(p2(e),"i");return(e,n,r,o)=>{let i=o.current.getRowFormattedValue(n,r);return o.current.ignoreDiacritics&&(i=R2(i)),null!=i&&t.test(i.toString())}}},j2=e=>null==e?null:Number(e),Y2=s({},N2,{type:"number",align:"right",headerAlign:"right",sortComparator:a2,valueParser:e=>""===e?null:Number(e),valueFormatter:e=>function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)?e.toLocaleString():e||"",filterOperators:[{value:"=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>j2(t)===e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>j2(t)!==e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&j2(t)>e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&j2(t)>=e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&j2(t)<e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>null==e.value||Number.isNaN(e.value)?null:t=>null!=t&&j2(t)<=e.value,InputComponent:c2,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>Array.isArray(e.value)&&0!==e.value.length?t=>null!=t&&e.value.includes(Number(t)):null,InputComponent:y2,InputComponentProps:{type:"number"}}],getApplyQuickFilterFn:e=>null==e||Number.isNaN(e)||""===e?null:t=>j2(t)===j2(e)}),F2=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function z2(e,t){if(null==e)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":"date"===t?n.toISOString().substring(0,10):"datetime-local"===t?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function W2(e){const{item:n,applyValue:r,type:o,apiRef:i,focusElementRef:a,slotProps:l,headerFilterMenu:u,clearButton:c,tabIndex:d,disabled:h}=e,p=Bz(e,F2),f=l?.root.slotProps,m=qW(),[g,b]=t.useState((()=>z2(n.value,o))),[y,w]=t.useState(!1),v=RW(),S=M0(),C=t.useCallback((e=>{m.clear();const t=e.target.value;b(t),w(!0),m.start(S.filterDebounceMs,(()=>{const e=new Date(t);r(s({},n,{value:Number.isNaN(e.getTime())?void 0:e})),w(!1)}))}),[r,n,S.filterDebounceMs,m]);return t.useEffect((()=>{const e=z2(n.value,o);b(e)}),[n.value,o]),(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(S.slots.baseTextField,s({fullWidth:!0,id:v,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:C,type:o||"text",disabled:h,inputRef:a,slotProps:s({},f,{input:s({endAdornment:y?(0,sn.jsx)(S.slots.loadIcon,{fontSize:"small",color:"action"}):null},f?.input),htmlInput:s({max:"datetime-local"===o?"9999-12-31T23:59":"9999-12-31",tabIndex:d},f?.htmlInput)})},S.slotProps?.baseTextField,p,l?.root)),u,c]})}function V2(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return e=>{if(!e)return!1;if(r)return t(e.getTime(),i);const o=new Date(e);return n?o.setSeconds(0,0):o.setHours(0,0,0,0),t(o.getTime(),i)}}const B2=e=>[{value:"is",getApplyFilterFn:t=>V2(t,((e,t)=>e===t),e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>V2(t,((e,t)=>e!==t),e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>V2(t,((e,t)=>e>t),e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>V2(t,((e,t)=>e>=t),e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>V2(t,((e,t)=>e<t),e,!e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>V2(t,((e,t)=>e<=t),e),InputComponent:W2,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>e=>null==e,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>null!=e,requiresFilterValue:!1}],$2=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],U2=rW(N1)({fontSize:"inherit"});function G2(e){const{id:n,value:r,field:o,colDef:i,hasFocus:a,onValueChange:l,slotProps:u}=e,c=Bz(e,$2),d="dateTime"===i.type,h=d1(),p=t.useRef(null),f=t.useMemo((()=>{let e,t;return e=null==r?null:r instanceof Date?r:new Date((r??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,d?16:10),{parsed:e,formatted:t}}),[r,d]),[m,g]=t.useState(f),b=M0(),y=(e=>{const{classes:t}=e;return $z({root:["editInputCell"]},e0,t)})({classes:b.classes}),w=t.useCallback((e=>{if(""===e)return null;const[t,n]=e.split("T"),[r,o,i]=t.split("-"),s=new Date;if(s.setFullYear(Number(r),Number(o)-1,Number(i)),s.setHours(0,0,0,0),n){const[e,t]=n.split(":");s.setHours(Number(e),Number(t),0,0)}return s}),[]),v=t.useCallback((async e=>{const t=e.target.value,r=w(t);l&&await l(e,r),g({parsed:r,formatted:t}),h.current.setEditCellValue({id:n,field:o,value:r},e)}),[h,o,n,l,w]);return t.useEffect((()=>{g((e=>f.parsed!==e.parsed&&f.parsed?.getTime()!==e.parsed?.getTime()?f:e))}),[f]),IW((()=>{a&&p.current.focus()}),[a]),(0,sn.jsx)(U2,s({as:b.slots.baseInput,inputRef:p,fullWidth:!0,className:y.root,type:d?"datetime-local":"date",value:m.formatted,onChange:v},c,u?.root,{slotProps:{htmlInput:s({max:d?"9999-12-31T23:59":"9999-12-31"},u?.root?.slotProps?.htmlInput)}}))}const K2=e=>(0,sn.jsx)(G2,s({},e)),q2="auto-generated-group-node-root",X2=Symbol("mui.id_autogenerated"),J2=(e,t,n)=>{const r=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},Q2=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={};for(let n=0;n<e.length;n+=1){const r=e[n],s=J2(r,t);i[s]=r,o.rows.push(s)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToModelLookup:i}},Z2=({tree:e,rowCountProp:t=0})=>{const n=e[q2];return Math.max(t,n.children.length+(null==n.footerId?0:1))},e5=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:l,treeDepths:u,dataRowIds:c,groupingName:d,groupsToFetch:h=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:u,dataRowIds:c,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},s({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:Z2({tree:p.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:h})},t5=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,n5=(e,t,n)=>{const r=e[t];if("group"!==r.type)return[];const o=[];for(let t=0;t<r.children.length;t+=1){const i=r.children[t];n&&t5(e[i])||o.push(i);const s=n5(e,i,n);for(let e=0;e<s.length;e+=1)o.push(s[e])}return n||null==r.footerId||o.push(r.footerId),o},r5=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if("full"===e.updates.type)throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach((e=>{const n=J2(e,t,"A row was provided without id when calling updateRows():");o.has(n)?o.set(n,s({},o.get(n),e)):o.set(n,e)}));const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:s({},e.updates.idToActionLookup),groupKeys:r},a=s({},e.dataRowIdToModelLookup),l={insert:{},modify:{},remove:{}};o.forEach(((e,t)=>{const n=i.idToActionLookup[t];if("delete"===e._action){if("remove"===n||!a[t])return;return null!=n&&(l[n][t]=!0),i.actions.remove.push(t),void delete a[t]}const r=a[t];if(r)return"remove"===n?(l.remove[t]=!0,i.actions.modify.push(t)):null==n&&i.actions.modify.push(t),void(a[t]=s({},r,e));"remove"===n?(l.remove[t]=!0,i.actions.insert.push(t)):null==n&&i.actions.insert.push(t),a[t]=e}));const u=Object.keys(l);for(let e=0;e<u.length;e+=1){const t=u[e],n=l[t];Object.keys(n).length>0&&(i.actions[t]=i.actions[t].filter((e=>!n[e])))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},o5="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function i5(e,t,n){const r=[];return t.forEach((t=>{const o=J2(t,n,"A row was provided without id when calling updateRows():"),i=G1(e,o);if("pinnedRow"===i?.type){const n=e.current.caches.pinnedRows,r=n.idLookup[o];r&&(n.idLookup[o]=s({},r,t))}else r.push(t)})),r}const s5=(e,t,n)=>"number"==typeof e&&e>0?e:t,a5=(["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join("\n"),["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join("\n"),O0(((e,t)=>X2 in t?t[X2]:e.props.getRowId?e.props.getRowId(t):t.id)));function l5({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join("\n"))}const u5=s({},N2,{type:"date",sortComparator:l2,valueFormatter:(e,t,n,r)=>e?(l5({value:e,columnType:"date",rowId:a5(r,t),field:n.field}),e.toLocaleDateString()):"",filterOperators:B2(),renderEditCell:K2,pastedValueParser:e=>new Date(e)}),c5=s({},N2,{type:"dateTime",sortComparator:l2,valueFormatter:(e,t,n,r)=>e?(l5({value:e,columnType:"dateTime",rowId:a5(r,t),field:n.field}),e.toLocaleString()):"",filterOperators:B2(!0),renderEditCell:K2,pastedValueParser:e=>new Date(e)}),d5="__row_group_by_columns_group__",h5="__detail_panel_toggle__";let p5=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const f5=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"];function m5(e){const{value:n,rowNode:r}=e,o=Bz(e,f5),i=d1(),a=M0(),l=(e=>{const{classes:t}=e;return $z({root:["booleanCell"]},e0,t)})({classes:a.classes}),u=m0(i,J1)>0&&"group"===r.type&&!1===a.treeData,c=t.useMemo((()=>n?a.slots.booleanCellTrueIcon:a.slots.booleanCellFalseIcon),[a.slots.booleanCellFalseIcon,a.slots.booleanCellTrueIcon,n]);return u&&void 0===n?null:(0,sn.jsx)(c,s({fontSize:"small",className:l.root,titleAccess:i.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(n)},o))}const g5=t.memo(m5),b5=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function y5(e){const{id:n,value:r,field:o,className:a,hasFocus:l,onValueChange:u}=e,c=Bz(e,b5),d=d1(),h=t.useRef(null),p=RW(),[f,m]=t.useState(r),g=M0(),b=(e=>{const{classes:t}=e;return $z({root:["editBooleanCell"]},e0,t)})({classes:g.classes}),y=t.useCallback((async e=>{const t=e.target.checked;u&&await u(e,t),m(t),await d.current.setEditCellValue({id:n,field:o,value:t},e)}),[d,o,n,u]);return t.useEffect((()=>{m(r)}),[r]),IW((()=>{l&&h.current.focus()}),[l]),(0,sn.jsx)("label",s({htmlFor:p,className:i(b.root,a)},c,{children:(0,sn.jsx)(g.slots.baseCheckbox,s({id:p,inputRef:h,checked:Boolean(f),onChange:y,size:"small"},g.slotProps?.baseCheckbox))}))}const w5=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function v5(e){return"true"===String(e).toLowerCase()||"false"!==String(e).toLowerCase()&&void 0}const S5=s({},N2,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:e=>e.field!==d5&&t5(e.rowNode)?"":(0,sn.jsx)(g5,s({},e)),renderEditCell:e=>(0,sn.jsx)(y5,s({},e)),sortComparator:a2,valueFormatter:(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),filterOperators:[{value:"is",getApplyFilterFn:e=>{const t=v5(e.value);return void 0===t?null:e=>Boolean(e)===t},InputComponent:function(e){const{item:n,applyValue:r,apiRef:o,focusElementRef:i,headerFilterMenu:a,clearButton:l,tabIndex:u,slotProps:c}=e,d=Bz(e,w5),[h,p]=t.useState(v5(n.value)),f=M0(),m=RW(),g=RW(),b=f.slotProps?.baseSelect||{},y=b.native??!1,w=f.slotProps?.baseSelectOption||{},v=t.useCallback((e=>{const t=v5(e.target.value);p(t),r(s({},n,{value:t}))}),[r,n]);t.useEffect((()=>{p(v5(n.value))}),[n.value]);const S=c?.root.label??o.current.getLocaleText("filterPanelInputLabel"),C=c?.root.slotProps;return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsxs)(f.slots.baseSelect,s({fullWidth:!0,labelId:m,id:g,label:S,value:void 0===h?"":String(h),onChange:v,native:y,slotProps:{htmlInput:s({ref:i,tabIndex:u},C?.htmlInput)}},b,d,c?.root,{children:[(0,sn.jsx)(f.slots.baseSelectOption,s({},w,{native:y,value:"",children:o.current.getLocaleText("filterValueAny")})),(0,sn.jsx)(f.slots.baseSelectOption,s({},w,{native:y,value:"true",children:o.current.getLocaleText("filterValueTrue")})),(0,sn.jsx)(f.slots.baseSelectOption,s({},w,{native:y,value:"false",children:o.current.getLocaleText("filterValueFalse")}))]})),a,l]})}}],getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>(e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}})(e)});var C5=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(C5||{}),_5=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(_5||{}),M5=function(e){return e.Cell="cell",e.Row="row",e}(M5||{}),x5=function(e){return e.Edit="edit",e.View="view",e}(x5||{}),k5=function(e){return e.Edit="edit",e.View="view",e}(k5||{});function R5(e){return"singleSelect"===e?.type}function T5(e,t){if(e)return"function"==typeof e.valueOptions?e.valueOptions(s({field:e.field},t)):e.valueOptions}function E5(e,t,n){if(void 0===t)return;const r=t.find((t=>{const r=n(t);return String(r)===String(e)}));return n(r)}const L5=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function I5(e){const n=M0(),{id:r,value:o,field:i,row:a,colDef:l,hasFocus:u,error:c,onValueChange:d,initialOpen:h=n.editMode===M5.Cell,slotProps:p}=e,f=Bz(e,L5),m=d1(),g=t.useRef(null),b=t.useRef(null),[y,w]=t.useState(h),v=(n.slotProps?.baseSelect||{}).native??!1;if(IW((()=>{u&&b.current?.focus()}),[u]),!R5(l))return null;const S=T5(l,{id:r,row:a});if(!S)return null;const C=l.getOptionValue,_=l.getOptionLabel;return S&&l?(0,sn.jsx)(n.slots.baseSelect,s({ref:g,value:o,onChange:async e=>{if(!R5(l)||!S)return;w(!1);const t=E5(e.target.value,S,C);d&&await d(e,t),await m.current.setEditCellValue({id:r,field:i,value:t},e)},open:y,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||w(!0)},onClose:(e,t)=>{if(n.editMode!==M5.Row){if("backdropClick"===t||"Escape"===e.key){const t=m.current.getCellParams(r,i);m.current.publishEvent("cellEditStop",s({},t,{reason:"Escape"===e.key?_5.escapeKeyDown:_5.cellFocusOut}))}}else w(!1)},error:c,native:v,fullWidth:!0,slotProps:{htmlInput:{ref:b}}},f,p?.root,n.slotProps?.baseSelect,{children:S.map((e=>{const r=C(e);return(0,t.createElement)(n.slots.baseSelectOption,s({},n.slotProps?.baseSelectOption||{},{native:v,key:r,value:r}),_(e))}))})):null}const P5=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],D5=({column:e,OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:a})=>["",...T5(e)||[]].map((e=>{const l=o(e);let u=r(e);return""===u&&(u=" "),(0,t.createElement)(n,s({},a,{native:i,key:l,value:l}),u)}));function H5(e){const{item:n,applyValue:r,type:o,apiRef:i,focusElementRef:a,tabIndex:l,clearButton:u,headerFilterMenu:c,slotProps:d}=e,h=Bz(e,P5),p=n.value??"",f=RW(),m=RW(),g=M0(),b=g.slotProps?.baseSelect?.native??!1;let y=null;if(n.field){const e=i.current.getColumn(n.field);R5(e)&&(y=e)}const w=y?.getOptionValue,v=y?.getOptionLabel,S=t.useMemo((()=>T5(y)),[y]),C=t.useCallback((e=>{let t=e.target.value;t=E5(t,S,w),r(s({},n,{value:t}))}),[S,w,r,n]);if(!R5(y))return null;const _=d?.root.label??i.current.getLocaleText("filterPanelInputLabel");return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(g.slots.baseSelect,s({fullWidth:!0,id:f,label:_,labelId:m,value:p,onChange:C,slotProps:{htmlInput:s({tabIndex:l,ref:a,type:o||"text",placeholder:d?.root.placeholder??i.current.getLocaleText("filterPanelInputPlaceholder")},d?.root.slotProps?.htmlInput)},native:b},g.slotProps?.baseSelect,h,d?.root,{children:D5({column:y,OptionComponent:g.slots.baseSelectOption,getOptionLabel:v,getOptionValue:w,isSelectNative:b,baseSelectOptionProps:g.slotProps?.baseSelectOption})})),c,u]})}const O5=["item","applyValue","type","apiRef","focusElementRef","slotProps"];const A5=e=>null!=e&&h2(e)?e.value:e,N5=s({},N2,{type:"singleSelect",getOptionLabel:e=>h2(e)?e.label:String(e),getOptionValue:e=>h2(e)?e.value:e,valueFormatter(e,t,n,r){const o=a5(r,t);if(!R5(n))return"";const i=T5(n,{id:o,row:t});if(null==e)return"";if(!i)return e;if(!(e=>"object"==typeof e[0])(i))return n.getOptionLabel(e);const s=i.find((t=>n.getOptionValue(t)===e));return s?n.getOptionLabel(s):""},renderEditCell:e=>(0,sn.jsx)(I5,s({},e)),filterOperators:[{value:"is",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>A5(t)===A5(e.value),InputComponent:H5},{value:"not",getApplyFilterFn:e=>null==e.value||""===e.value?null:t=>A5(t)!==A5(e.value),InputComponent:H5},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||0===e.value.length)return null;const t=e.value.map(A5);return e=>t.includes(A5(e))},InputComponent:function(e){const{item:n,applyValue:r,type:o,apiRef:i,focusElementRef:a,slotProps:l}=e,u=Bz(e,O5),c=RW(),d=M0();let h=null;if(n.field){const e=i.current.getColumn(n.field);R5(e)&&(h=e)}const p=h?.getOptionValue,f=h?.getOptionLabel,m=t.useCallback(((e,t)=>p(e)===p(t)),[p]),g=t.useMemo((()=>T5(h)||[]),[h]),b=t.useMemo((()=>Array.isArray(n.value)?n.value.reduce(((e,t)=>{const n=g.find((e=>p(e)===t));return null!=n&&e.push(n),e}),[]):[]),[p,n.value,g]),y=t.useCallback(((e,t)=>{r(s({},n,{value:t.map(p)}))}),[r,n,p]),w=d.slots.baseAutocomplete;return(0,sn.jsx)(w,s({multiple:!0,options:g,isOptionEqualToValue:m,id:c,value:b,onChange:y,getOptionLabel:f,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:a}}},u,l?.root))}}],pastedValueParser:(e,t,n)=>{const r=n,o=T5(r)||[],i=r.getOptionValue;if(o.find((t=>i(t)===e)))return e}}),j5=["open","target","onClose","children","position","className","onExited"],Y5=rW(N1,{name:"MuiDataGrid",slot:"Menu"})({zIndex:i0.zIndex.menu,[`& .${t0.menuList}`]:{outline:0}});function F5(e){const{open:n,target:r,onClose:o,children:a,position:l,className:u,onExited:c}=e,d=Bz(e,j5),h=d1(),p=M0(),f=(e=>{const{classes:t}=e;return $z({root:["menu"]},e0,t)})(p),m=T0(),g=t.useRef(null);return IW((()=>{n?g.current=document.activeElement instanceof HTMLElement?document.activeElement:null:(g.current?.focus?.(),g.current=null)}),[n]),t.useEffect((()=>{const e=n?"menuOpen":"menuClose";h.current.publishEvent(e,{target:r})}),[h,n,r]),(0,sn.jsx)(Y5,s({as:p.slots.basePopper,className:i(f.root,u,m),ownerState:p,open:n,target:r,transition:!0,placement:l,onClickAway:e=>{e.target&&(r===e.target||r?.contains(e.target))||o(e)},onExited:c,clickAwayMouseEvent:"onMouseDown"},d,p.slotProps?.basePopper,{children:a}))}const z5=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function W5(e){const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:a="bottom-end",focusElementRef:l}=e,u=Bz(e,z5),[c,d]=t.useState(-1),[h,p]=t.useState(!1),f=d1(),m=t.useRef(null),g=t.useRef(null),b=t.useRef(!1),y=t.useRef({}),w=eU(),v=RW(),S=RW(),C=M0();if(!(e=>"function"==typeof e.getActions)(n))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const _=n.getActions(f.current.getRowParams(r)),M=_.filter((e=>!e.props.showInMenu)),x=_.filter((e=>e.props.showInMenu)),k=M.length+(x.length?1:0);t.useLayoutEffect((()=>{o||Object.entries(y.current).forEach((([e,t])=>{t?.stop({},(()=>{delete y.current[e]}))}))}),[o]),t.useEffect((()=>{c<0||!m.current||c>=m.current.children.length||m.current.children[c].focus({preventScroll:!0})}),[c]),t.useEffect((()=>{o||(d(-1),b.current=!1)}),[o]),t.useImperativeHandle(l,(()=>({focus(){if(!b.current){const e=_.findIndex((e=>!e.props.disabled));d(e)}}})),[_]),t.useEffect((()=>{c>=k&&d(k-1)}),[c,k]);const R=()=>{p(!1)},T=e=>t=>{y.current[e]=t},E=(e,t)=>n=>{d(e),b.current=!0,t&&t(n)};return(0,sn.jsxs)("div",s({role:"menu",ref:m,tabIndex:-1,className:t0.actionsCell,onKeyDown:e=>{if(k<=1)return;const t=(e,n)=>{if(e<0||e>_.length)return e;const r=("left"===n?-1:1)*(w?-1:1);return _[e+r]?.props.disabled?t(e+r,n):e+r};let n=c;"ArrowRight"===e.key?n=t(c,"right"):"ArrowLeft"===e.key&&(n=t(c,"left")),n<0||n>=k||n!==c&&(e.preventDefault(),e.stopPropagation(),d(n))}},u,{children:[M.map(((e,n)=>t.cloneElement(e,{key:n,touchRippleRef:T(n),onClick:E(n,e.props.onClick),tabIndex:c===n?i:-1}))),x.length>0&&S&&(0,sn.jsx)(C.slots.baseIconButton,s({ref:g,id:S,"aria-label":f.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?v:void 0,role:"menuitem",size:"small",onClick:e=>{e.stopPropagation(),e.preventDefault(),h?R():(p(!0),d(k-1),b.current=!0)},touchRippleRef:T(S),tabIndex:c===M.length?i:-1},C.slotProps?.baseIconButton,{children:(0,sn.jsx)(C.slots.moreActionsIcon,{fontSize:"small"})})),x.length>0&&(0,sn.jsx)(F5,{open:h,target:g.current,position:a,onClose:R,children:(0,sn.jsx)(C.slots.baseMenuList,{id:v,className:t0.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Escape"].includes(e.key)&&R()},"aria-labelledby":S,autoFocusItem:!0,children:x.map(((e,n)=>t.cloneElement(e,{key:n,closeMenu:R})))})})]}))}const V5="actions",B5=s({},N2,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:e=>(0,sn.jsx)(W5,s({},e)),getApplyQuickFilterFn:()=>null}),$5=O0((e=>e.headerFiltering)),U5=H0($5,(e=>e?.enabled??!1)),G5=H0($5,(e=>e.editing)),K5=H0($5,(e=>e.menuOpen)),q5=O0((e=>e.columnGrouping)),X5=A0(q5,(e=>e?.unwrappedGroupingModel??{})),J5=A0(q5,(e=>e?.lookup??{})),Q5=A0(q5,(e=>e?.headerStructure??[])),Z5=H0(q5,(e=>e?.maxDepth??0)),e3=["maxWidth","minWidth","width","flex"],t3={string:N2,number:Y2,date:u5,dateTime:c5,boolean:S5,singleSelect:N5,[V5]:B5,custom:N2},n3=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach((t=>{let a=e.lookup[t],l=0,u=!1;!1!==e.columnVisibilityModel[t]&&(a.flex&&a.flex>0?(r+=a.flex,u=!0):l=f2(a.width||N2.width,a.minWidth||N2.minWidth,a.maxWidth||N2.maxWidth),o+=l),a.computedWidth!==l&&(a=s({},a,{computedWidth:l})),u&&i.push(a),n[t]=a}));const a=void 0===t?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),l=Math.max(a-o,0);if(r>0&&a>0){const e=function({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map((e=>e.field))),o={all:{},frozenFields:[],freeze:e=>{const t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function i(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let a=e,l=t,u=0;o.frozenFields.forEach((e=>{a-=o.all[e].computedWidth,l-=o.all[e].flex}));for(let e=0;e<n.length;e+=1){const t=n[e];if(o.all[t.field]&&!0===o.all[t.field].frozen)continue;let r=a/l*t.flex;r<t.minWidth?(u+=t.minWidth-r,r=t.minWidth,s.min[t.field]=!0):r>t.maxWidth&&(u+=t.maxWidth-r,r=t.maxWidth,s.max[t.field]=!0),o.all[t.field]={frozen:!1,computedWidth:r,flex:t.flex}}u<0?Object.keys(s.max).forEach((e=>{o.freeze(e)})):u>0?Object.keys(s.min).forEach((e=>{o.freeze(e)})):n.forEach((({field:e})=>{o.freeze(e)})),i()}(),o.all}({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(e).forEach((t=>{n[t].computedWidth=e[t].computedWidth}))}return s({},e,{lookup:n})};function r3(e){let t=t3.string;return e&&t3[e]&&(t=t3[e]),t}const o3=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=X0(e),keepOnlyColumnsToUpsert:o=!1,updateInitialVisibilityModel:i=!1})=>{const a=!e.current.state.columns;let l;if(a)l={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const t=U0(e);l={orderedFields:o?[]:[...t.orderedFields],lookup:s({},t.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:t.initialColumnVisibilityModel}}let u={};o&&!a&&(u=Object.keys(l.lookup).reduce(((e,t)=>s({},e,{[t]:!1})),{}));const c={};t.forEach((e=>{const{field:t}=e;c[t]=!0,u[t]=!0;let n=l.lookup[t];null==n?(n=s({},r3(e.type),{field:t,hasBeenResized:!1}),l.orderedFields.push(t)):o&&l.orderedFields.push(t),n&&n.type!==e.type&&(n=s({},r3(e.type),{field:t}));let r=n.hasBeenResized;e3.forEach((t=>{void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),l.lookup[t]=sW(n,s({},r3(e.type),e,{hasBeenResized:r}))})),o&&!a&&Object.keys(l.lookup).forEach((e=>{u[e]||delete l.lookup[e]}));const d=((e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(0===o.length&&0===n.length)return e;const i={},a=[];for(let t=0;t<n.length;t+=1){const r=n[t];e.lookup[r]&&(i[r]=!0,a.push(r))}const l=0===a.length?e.orderedFields:[...a,...e.orderedFields.filter((e=>!i[e]))],u=s({},e.lookup);for(let e=0;e<o.length;e+=1){const t=o[e],n=s({},u[t],{hasBeenResized:!0});Object.entries(r[t]).forEach((([e,t])=>{n[e]=-1===t?1/0:t})),u[t]=n}return s({},e,{orderedFields:l,lookup:u})})(e.current.unstable_applyPipeProcessors("hydrateColumns",l),n);return n3(d,e.current.getRootDimensions?.()??void 0)};function i3(e,t){if(t.listView)return 0;const n=Y0(e),r=Z5(e),o=U5(e);return Math.floor(t.columnHeaderHeight*n)+Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n)*r+(o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0)}const s3=xG("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${t0["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${t0["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})((()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${t0["scrollArea--left"]}`]:{left:0},[`&.${t0["scrollArea--right"]}`]:{right:0}}))),a3=H0(b1,((e,t)=>"left"===t?e.leftPinnedWidth:"right"===t?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0));function l3(e){const{scrollDirection:n,scrollPosition:r}=e,o=t.useRef(null),i=d1(),a=qW(),l=m0(i,Y0),u=m0(i,y1),c=m0(i,a3,n),d=()=>{const e=b1(i);if("left"===n)return r.current.left>0;if("right"===n){const t=u-e.viewportInnerSize.width;return r.current.left<t}return!1},[h,p]=t.useState(d),f=M0(),m=s({},f,{scrollDirection:n}),g=(e=>{const{scrollDirection:t,classes:n}=e;return $z({root:["scrollArea",`scrollArea--${t}`]},e0,n)})(m),b=i3(i,f),y=Math.floor(f.columnHeaderHeight*l),w={height:y,top:b-y};"left"===n?w.left=c:"right"===n&&(w.right=c);const v=PW((e=>{let t;if(e.preventDefault(),"left"===n)t=e.clientX-o.current.getBoundingClientRect().right;else{if("right"!==n)throw new Error("MUI X: Wrong drag direction");t=Math.max(1,e.clientX-o.current.getBoundingClientRect().left)}t=1.5*(t-1)+1,a.start(0,(()=>{i.current.scroll({left:r.current.left+t,top:r.current.top})}))}));return H1(i,"scrollPositionChange",(()=>{p(d)})),h?(0,sn.jsx)(s3,{ref:o,className:g.root,ownerState:m,onDragOver:v,style:w}):null}const u3=ZZ((function(e){const n=d1(),[r,o]=t.useState(!1);return H1(n,"columnHeaderDragStart",(()=>o(!0))),H1(n,"columnHeaderDragEnd",(()=>o(!1))),r?(0,sn.jsx)(l3,s({},e)):null})),c3=()=>{};function d3(e){for(const t in e)return!1;return!0}const h3=O0((e=>e.sorting)),p3=H0(h3,(e=>e.sortedRows)),f3=A0(p3,$1,U1,((e,t,n)=>e.reduce(((e,r)=>{const o=t[r];if(o)e.push({id:r,model:o});else{const t=n[r];t&&t5(t)&&e.push({id:r,model:{[X2]:r}})}return e}),[]))),m3=H0(h3,(e=>e.sortModel)),g3=A0(m3,(e=>e.reduce(((t,n,r)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t)),{}))),b3=(A0(p3,(e=>e.reduce(((e,t,n)=>(e[t]=n,e)),Object.create(null)))),O0((e=>e.filter))),y3=H0(b3,(e=>e.filterModel)),w3=H0(y3,(e=>e.quickFilterValues)),v3=O0((e=>e.visibleRowsLookup)),S3=H0(b3,(e=>e.filteredRowsLookup)),C3=(H0(b3,(e=>e.filteredChildrenCountLookup)),H0(b3,(e=>e.filteredDescendantCountLookup)),A0(v3,f3,((e,t)=>d3(e)?t:t.filter((t=>!1!==e[t.id]))))),_3=A0(C3,(e=>e.map((e=>e.id)))),M3=A0(S3,f3,((e,t)=>d3(e)?t:t.filter((t=>!1!==e[t.id])))),x3=A0(M3,(e=>e.map((e=>e.id)))),k3=(A0(_3,U1,((e,t)=>{const n={};let r=0;return e.reduce(((e,o)=>{const i=t[o];return n[i.depth]||(n[i.depth]=0),i.depth>r&&(n[i.depth]=0),r=i.depth,n[i.depth]+=1,e[o]=n[i.depth],e}),{})})),A0(C3,U1,J1,((e,t,n)=>n<2?e:e.filter((e=>0===t[e.id]?.depth))))),R3=H0(C3,(e=>e.length)),T3=H0(k3,(e=>e.length)),E3=H0(M3,(e=>e.length)),L3=(H0(E3,T3,((e,t)=>e-t)),A0(y3,K0,((e,t)=>e.items?.filter((e=>{if(!e.field)return!1;const n=t[e.field];if(!n?.filterOperators||0===n?.filterOperators?.length)return!1;const r=n.filterOperators.find((t=>t.value===e.operator));return!!r&&(!r.InputComponent||null!=e.value&&""!==e.value?.toString())}))))),I3=A0(L3,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{})));let P3=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const D3=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):-1===e?n+2:0,H3=e=>({page:0,pageSize:e?0:100}),O3=(e,t)=>{if(t===P3.DataGrid&&e>100)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"))},A3=O0((e=>e.pagination)),N3=H0(A3,(e=>e.enabled&&"client"===e.paginationMode)),j3=H0(A3,(e=>e.paginationModel)),Y3=H0(A3,(e=>e.rowCount)),F3=H0(A3,(e=>e.meta)),z3=H0(j3,(e=>e.page)),W3=H0(j3,(e=>e.pageSize)),V3=H0(j3,Y3,((e,t)=>D3(t,e.pageSize,e.page))),B3=A0(N3,j3,U1,J1,C3,k3,((e,t,n,r,o,i)=>{if(!e)return null;const s=i.length,a=Math.min(t.pageSize*t.page,s-1),l=-1===t.pageSize?s-1:Math.min(a+t.pageSize-1,s-1);if(-1===a||-1===l)return null;if(r<2)return{firstRowIndex:a,lastRowIndex:l};const u=i[a],c=l-a+1,d=o.findIndex((e=>e.id===u.id));let h=d,p=0;for(;h<o.length&&p<=c;){const e=o[h],t=n[e.id]?.depth;void 0===t?h+=1:((p<c||t>0)&&(h+=1),0===t&&(p+=1))}return{firstRowIndex:d,lastRowIndex:h-1}})),$3=A0(C3,B3,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),U3=A0(_3,B3,((e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[])),G3=A0(N3,B3,$3,C3,((e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce(((e,t,n)=>(e.set(t.id,n),e)),new Map)}:{rows:r,range:0===r.length?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce(((e,t,n)=>(e.set(t.id,n),e)),new Map)})),K3=(e,t)=>G3(e),q3=(e,t)=>m0(e,G3),X3=("undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"empty").includes("firefox"),J3=O0((e=>e.rowsMeta)),Q3=O0((e=>e.virtualization)),Z3=(H0(Q3,(e=>e.enabled)),H0(Q3,(e=>e.enabledForColumns))),e4=H0(Q3,(e=>e.enabledForRows)),t4=H0(Q3,(e=>e.renderContext)),n4=A0((e=>e.current.state.virtualization.renderContext.firstColumnIndex),(e=>e.current.state.virtualization.renderContext.lastColumnIndex),((e,t)=>({firstColumnIndex:e,lastColumnIndex:t})));function r4(e,n,r){const o=t.useRef(!0);IW((()=>{o.current=!1,e.current.register(r,n)}),[e,r,n]),o.current&&e.current.register(r,n)}const o4={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},i4=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return s({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:o4}})},s4=O0((e=>e.rowSpanning)),a4=H0(s4,(e=>e.hiddenCells)),l4=H0(s4,(e=>e.spannedCells)),u4=H0(s4,(e=>e.hiddenCellOriginMap)),c4=O0((e=>e.listViewColumn)),d4=O0((e=>e.focus)),h4=H0(d4,(e=>e.cell)),p4=H0(d4,(e=>e.columnHeader)),f4=(H0(d4,(e=>e.columnHeaderFilter)),H0(d4,(e=>e.columnGroupHeader))),m4=O0((e=>e.tabIndex)),g4=H0(m4,(e=>e.cell)),b4=H0(m4,(e=>e.columnHeader)),y4=(H0(m4,(e=>e.columnHeaderFilter)),H0(m4,(e=>e.columnGroupHeader))),w4=H0(h4,t4,G3,Q0,((e,t,n,r)=>{if(!e)return!1;const o=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex((t=>t.field===e.field));return!(void 0!==o&&-1!==i&&o>=t.firstRowIndex&&o<=t.lastRowIndex)})),v4=A0(w4,Q0,G3,h4,((e,t,n,r)=>{if(!e)return null;const o=n.rowIdToIndexMap.get(r.id);if(void 0===o)return null;const i=t.findIndex((e=>e.field===r.field));return-1===i?null:s({},r,{rowIndex:o,columnIndex:i})}));function S4(e,t){return Math.round(e*10**t)/10**t}const C4="undefined"!=typeof window&&/jsdom|HappyDOM/.test(window.navigator.userAgent);class _4{constructor(e){this.data=void 0,this.data=e.ids}has(e){return this.data.has(e)}select(e){this.data.add(e)}unselect(e){this.data.delete(e)}}class M4{constructor(e){this.data=void 0,this.data=e.ids}has(e){return!this.data.has(e)}select(e){this.data.delete(e)}unselect(e){this.data.add(e)}}const x4=e=>"include"===e.type?new _4(e):new M4(e),k4=O0((e=>e.rowSelection)),R4=A0(k4,x4),T4=H0(k4,E3,((e,t)=>"include"===e.type?e.ids.size:t-e.ids.size)),E4=A0(k4,$1,Q1,((e,t,n)=>{const r=new Map;if("include"===e.type)for(const n of e.ids)r.set(n,t[n]);else for(let o=0;o<n.length;o+=1){const i=n[o];e.ids.has(i)||r.set(i,t[i])}return r}));var L4=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(L4||{});const I4={top:0,left:0},P4=Object.freeze(new Map),D4=()=>{const e=b0(),n=M0(),{listView:r}=n,o=m0(e,(()=>r?[c4(e)]:Q0(e))),i=m0(e,e4)&&!C4,a=m0(e,Z3)&&!C4,l=m0(e,e2),u=t1(e),c=r?B0:u,d=l.bottom.length>0,[h,p]=t.useState(P4),f=eU(),m=m0(e,R4),g=q3(e),b=e.current.mainElementRef,y=e.current.virtualScrollerRef,w=e.current.virtualScrollbarVerticalRef,v=e.current.virtualScrollbarHorizontalRef,S=m0(e,s1),C=t.useRef(!1),_=m0(e,w1),M=m0(e,v1),x=m0(e,y1),k=m0(e,H4),R=m0(e,R1),T=m0(e,_1),E=t.useRef(null),L=t.useCallback((t=>{if(b.current=t,!t)return;const n=t.getBoundingClientRect();let r={width:S4(n.width,1),height:S4(n.height,1)};if((!E.current||r.width!==E.current.width&&r.height!==E.current.height)&&(E.current=r,e.current.publishEvent("resize",r)),"undefined"==typeof ResizeObserver)return;const o=new ResizeObserver((t=>{const n=t[0];if(!n)return;const o={width:S4(n.contentRect.width,1),height:S4(n.contentRect.height,1)};o.width===r.width&&o.height===r.height||(e.current.publishEvent("resize",o),r=o)}));return o.observe(t),qZ>=19?()=>{b.current=null,o.disconnect()}:void 0}),[e,b]),I=t.useRef(n.initialState?.scroll??I4),P=t.useRef(!1),D=t.useRef(I4),H=t.useRef(o4),O=m0(e,t4),A=m0(e,v4),N=qW(),j=t.useRef(void 0),Y=OW((()=>((e,t,n,r)=>({direction:L4.NONE,buffer:W4(e,L4.NONE,t,n,r,300)}))(f,n.rowBufferPx,n.columnBufferPx,15*_))).current,F=t.useCallback((t=>{if(F4(t,e.current.state.virtualization.renderContext))return;const n=t.firstRowIndex!==H.current.firstRowIndex||t.lastRowIndex!==H.current.lastRowIndex;e.current.setState((e=>s({},e,{virtualization:s({},e.virtualization,{renderContext:t})}))),b1(e).isReady&&n&&(H.current=t,e.current.publishEvent("renderedRowsIntervalChange",t)),D.current=I.current}),[e]),z=PW((()=>{const t=y.current;if(!t)return;const r=b1(e),o=Math.ceil(r.minimumSize.height-r.viewportOuterSize.height),s=Math.ceil(r.minimumSize.width-r.viewportInnerSize.width),l={top:f2(t.scrollTop,0,o),left:f?f2(t.scrollLeft,-s,0):f2(t.scrollLeft,0,s)},u=l.left-I.current.left,c=l.top-I.current.top,d=0!==u||0!==c;I.current=l;const h=d?function(e,t){return 0===e&&0===t?L4.NONE:Math.abs(t)>=Math.abs(e)?t>0?L4.DOWN:L4.UP:e>0?L4.RIGHT:L4.LEFT}(u,c):L4.NONE,p=Math.abs(I.current.top-D.current.top),m=Math.abs(I.current.left-D.current.left),g=p>=_||m>=50,b=Y.direction!==h;if(!g&&!b)return O;if(b)switch(h){case L4.NONE:case L4.LEFT:case L4.RIGHT:j.current=void 0;break;default:j.current=O}Y.direction=h,Y.buffer=W4(f,h,n.rowBufferPx,n.columnBufferPx,15*_,300);const w=A4(O4(e,n,i,a),I.current,Y);return F4(w,O)||(ao.flushSync((()=>{F(w)})),N.start(1e3,z)),w})),W=()=>{if(!b1(e).isReady&&(i||a))return;const t=A4(O4(e,n,i,a),I.current,Y);j.current=void 0,F(t)},V=PW((()=>{if(P.current)return void(P.current=!1);const t=z();e.current.publishEvent("scrollPositionChange",{top:I.current.top,left:I.current.left,renderContext:t})})),B=PW((t=>{e.current.publishEvent("virtualScrollerWheel",{},t)})),$=PW((t=>{e.current.publishEvent("virtualScrollerTouchMove",{},t)})),U=t.useMemo((()=>({overflowX:!k||r?"hidden":void 0,overflowY:n.autoHeight?"hidden":void 0})),[k,n.autoHeight,r]),G=t.useMemo((()=>{const e={width:k?x:"auto",flexBasis:M,flexShrink:0};return 0===e.flexBasis&&(e.flexBasis=o5),e}),[x,M,k]),K=t.useCallback((t=>{t&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:x,contentHeight:M})}),[e,x,M]);return IW((()=>{C.current&&e.current.updateRenderContext?.()}),[e,a,i]),IW((()=>{r&&(y.current.scrollLeft=0)}),[r,y]),(r=>{const o=t.useRef(!1);IW((()=>o.current||!r?c3:(o.current=!0,(()=>{if(e.current.publishEvent("scrollPositionChange",{top:I.current.top,left:I.current.left,renderContext:O}),C.current=!0,n.initialState?.scroll&&y.current){const t=y.current,{top:r,left:o}=n.initialState.scroll,i={top:!(r>0),left:!(o>0)};if(!i.left&&x&&(t.scrollLeft=o,P.current=!0,i.left=!0),!i.top&&M&&(t.scrollTop=r,P.current=!0,i.top=!0),!i.top||!i.left){const n=e.current.subscribeEvent("virtualScrollerContentSizeChange",(e=>{!i.left&&e.columnsTotalWidth&&(t.scrollLeft=o,P.current=!0,i.left=!0),!i.top&&e.contentHeight&&(t.scrollTop=r,P.current=!0,i.top=!0),i.left&&i.top&&n()}));return n}}})())),[o.current||r])})(O!==o4),e.current.register("private",{updateRenderContext:W}),A1(e,"sortedRowsSet",W),A1(e,"paginationModelChange",W),A1(e,"columnsChange",W),{renderContext:O,setPanels:p,getRows:(t={})=>{if(!t.rows&&!g.range)return[];const r=U1(e);let i=O;t.renderContext&&(i=t.renderContext,i.firstColumnIndex=O.firstColumnIndex,i.lastColumnIndex=O.lastColumnIndex);const a=!d&&void 0===t.position||d&&"bottom"===t.position,u=void 0!==t.position;let p;switch(t.position){case"top":p=0;break;case"bottom":p=l.top.length+g.rows.length;break;case void 0:p=l.top.length}const f=t.rows??g.rows,b=i.firstRowIndex,y=Math.min(i.lastRowIndex,f.length),w=t.rows?m2(0,t.rows.length):m2(b,y);let v=-1;!u&&A&&(A.rowIndex<b&&(w.unshift(A.rowIndex),v=A.rowIndex),A.rowIndex>y&&(w.push(A.rowIndex),v=A.rowIndex));const C=[],_=n.slotProps?.row,M=r1(e);return w.forEach((l=>{const{id:d,model:b}=f[l];if(!r[d])return;const y=(g?.range?.firstRowIndex||0)+p+l;if(S){const t=c.left.length,n=o.length-c.right.length;e.current.calculateColSpan({rowId:d,minFirstColumn:t,maxLastColumn:n,columns:o}),c.left.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:0,maxLastColumn:c.left.length,columns:o}),c.right.length>0&&e.current.calculateColSpan({rowId:d,minFirstColumn:o.length-c.right.length,maxLastColumn:o.length,columns:o})}const w=e.current.rowHasAutoHeight(d)?"auto":e.current.unstable_getRowHeight(d),k=m.has(d)&&e.current.isRowSelectable(d);let E=!1;void 0===t.position&&(E=0===l);let L=!1;const I=l===f.length-1;a&&(u?L=I:l===g.rows.length-1&&(L=!0));let P=i;j.current&&l>=j.current.firstRowIndex&&l<j.current.lastRowIndex&&(P=j.current);const D=l===v,H=A?.rowIndex===y,O=z4(M,P,c.left.length),N=I&&"top"===t.position,Y=P.firstColumnIndex,F=P.lastColumnIndex;if(C.push((0,sn.jsx)(n.slots.row,s({row:b,rowId:d,index:y,selected:k,offsetLeft:O,columnsTotalWidth:x,rowHeight:w,pinnedColumns:c,visibleColumns:o,firstColumnIndex:Y,lastColumnIndex:F,focusedColumnIndex:H?A.columnIndex:void 0,isFirstVisible:E,isLastVisible:L,isNotVisible:D,showBottomBorder:N,scrollbarWidth:R,gridHasFiller:T},_),d)),D)return;const z=h.get(d);z&&C.push(z),void 0===t.position&&I&&C.push(e.current.getInfiniteLoadingTriggerElement?.({lastRowId:d}))})),C},getContainerProps:()=>({ref:L}),getScrollerProps:()=>({ref:y,onScroll:V,onWheel:B,onTouchMove:$,style:U,role:"presentation",tabIndex:X3?-1:void 0}),getContentProps:()=>({style:G,role:"presentation",ref:K}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:w,scrollPosition:I}),getScrollbarHorizontalProps:()=>({ref:v,scrollPosition:I}),getScrollAreaProps:()=>({scrollPosition:I})}};function H4(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function O4(e,t,n,r){const o=b1(e),i=K3(e),s=t.listView?[c4(e)]:Q0(e),a=u4(e),l=e.current.state.rows.dataRowIds.at(-1),u=s.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:void 0!==l?e.current.unstable_getRowHeight(l):0,lastColumnWidth:u?.computedWidth??0,rowsMeta:J3(e),columnPositions:r1(e),rows:i.rows,range:i.range,pinnedColumns:t1(e),visibleColumns:s,hiddenCellsOriginMap:a,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function A4(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let t=Math.min(N4(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const n=e.hiddenCellsOriginMap[t];if(n){const e=Math.min(...Object.values(n));t=Math.min(t,e)}const i=e.autoHeight?t+e.rows.length:N4(e,o+e.viewportInnerHeight);r.firstRowIndex=t,r.lastRowIndex=i}if(e.listView)return s({},r,{lastColumnIndex:1});if(e.enabledForColumns){let t=0,o=e.columnPositions.length,i=!1;const[s,l]=Y4({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let t=s;t<l&&!i;t+=1){const n=e.rows[t];i=e.apiRef.current.rowHasAutoHeight(n.id)}i&&!e.virtualizeColumnsWithAutoRowHeight||(t=j4(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),o=j4(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=t,r.lastColumnIndex=o}const l=function(e,t,n){const[r,o]=Y4({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,s]=Y4({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=function({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e,s=!1;for(;!s&&i>=0;){s=!0;for(let e=n;e<r;e+=1)if(o[e]){const n=o[e].id,r=t.current.unstable_getCellColSpanInfo(n,i);if(r&&r.spannedByColSpan&&r.leftVisibleCellIndex<i){i=r.leftVisibleCellIndex,s=!1;break}}}return i}({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:s}}(e,r,n);return l}function N4(e,t,n){const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;e.range?.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=f2(r-(e.range?.firstRowIndex||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?j4(t,e.rowsMeta.positions,n):function(e,t,n,r){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return j4(e,t,r,Math.floor(n/2),Math.min(n,t.length))}(t,e.rowsMeta.positions,i,n)}function j4(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),s=t[i];let a;return a=n?.atStart?e-((i===t.length-1?n.lastPosition:t[i+1])-s)<s:e<=s,a?j4(e,t,n,r,i):j4(e,t,n,i+1,o)}function Y4({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:s,lastSize:a}){const l=s[e]-n,u=s[t]+r,c=j4(l,s,{atStart:!0,lastPosition:s[s.length-1]+a}),d=j4(u,s);return[f2(c,o,i),f2(d,o,i)]}function F4(e,t){return e===t||e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function z4(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function W4(e,t,n,r,o,i){if(e)switch(t){case L4.LEFT:t=L4.RIGHT;break;case L4.RIGHT:t=L4.LEFT}switch(t){case L4.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case L4.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case L4.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case L4.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case L4.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const V4=xG("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e&&"right"!==e})((({overlayType:e,loadingOverlayVariant:t,right:n})=>"skeleton"!==t?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:"loadingOverlay"===e?5:4}:{})),B4=xG("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>"overlayType"!==e&&"loadingOverlayVariant"!==e})({});function $4(e){const t=d1(),n=M0(),r=m0(t,b1);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);0===o&&(o=o5);const i=(e=>{const{classes:t}=e;return $z({root:["overlayWrapper"],inner:["overlayWrapperInner"]},e0,t)})(s({},e,{classes:n.classes}));return(0,sn.jsx)(V4,s({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:(0,sn.jsx)(B4,s({className:i.inner,style:{height:o,width:r.viewportOuterSize.width}},e))}))}const U4=O0((e=>e.pivoting)),G4=H0(U4,(e=>e?.active)),K4=new Map,q4=H0(U4,(e=>e?.initialColumns||K4)),X4=(H0(U4,(e=>e?.panelOpen)),O0((e=>e.columnMenu))),J4=ZZ((function(){const e=b0(),t=M0(),n=m0(e,Q0),r=m0(e,I3),o=m0(e,g3),i=m0(e,b4),a=m0(e,(()=>null===g4(e))),l=m0(e,y4),u=m0(e,p4),c=m0(e,f4),d=m0(e,Z5),h=m0(e,X4),p=m0(e,X0),f=m0(e,Q5),m=!(null===l&&null===i&&a),g=e.current.columnHeadersContainerRef;return(0,sn.jsx)(t.slots.columnHeaders,s({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:p,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:m},t.slotProps?.columnHeaders))})),Q4=xG("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),Z4=xG("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:o}=e,i="skeleton"===r||"noColumnsOverlay"===o;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),e9=XZ(((e,t)=>{const{ownerState:n}=e,r=M0(),o=k0().hooks.useGridAriaAttributes();return(0,sn.jsxs)(Z4,s({ownerState:n,className:e.className,tabIndex:-1},o,r.slotProps?.main,{ref:t,children:[(0,sn.jsx)(Q4,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))})),t9=xG("div")({position:"sticky",zIndex:40,top:0});function n9(e){const t=$z({root:["topContainer"]},e0,{});return(0,sn.jsx)(t9,s({},e,{className:i(t.root,t0["container--top"]),role:"presentation"}))}const r9=xG("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),o9=XZ((function(e,t){const n=M0(),r=!n.autoHeight&&"auto"===e.style?.minHeight,o=((e,t)=>{const{classes:n}=e;return $z({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},e0,n)})(n,r),a={classes:n.classes,overflowedContent:r};return(0,sn.jsx)(r9,s({},e,{ownerState:a,className:i(o.root,e.className),ref:t}))})),i9=xG("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),s9=xG("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:i0.cell.background.pinned}),a9=xG(s9)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),l9=xG(s9)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),u9=xG("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"}),c9=ZZ((function({rowsLength:e}){const t=d1(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:s,leftPinnedWidth:a,rightPinnedWidth:l}=m0(t,b1),u=o?s:0,c=n.height-r.height>0;return 0!==u||c?(0,sn.jsxs)(i9,{className:t0.filler,role:"presentation",style:{height:u,"--rowBorderColor":0===e?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&(0,sn.jsx)(a9,{className:t0["filler--pinnedLeft"],style:{width:a}}),(0,sn.jsx)(u9,{}),l>0&&(0,sn.jsx)(l9,{className:t0["filler--pinnedRight"],style:{width:l+(i?s:0)}})]}):null})),d9=["className"],h9=xG("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),p9=XZ((function(e,t){const{className:n}=e,r=Bz(e,d9),o=d1(),a=M0(),l=(e=>{const{classes:t}=e;return $z({root:["virtualScrollerRenderZone"]},e0,t)})(a),u=m0(o,(()=>{const e=t4(o);return J3(o).positions[e.firstRowIndex]??0}));return(0,sn.jsx)(h9,s({className:i(l.root,n),ownerState:a,style:{transform:`translate3d(0, ${u}px, 0)`}},r,{ref:t}))})),f9=xG("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),m9=xG(f9)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),g9=xG(f9)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),b9=XZ((function(e,n){const r=b0(),o=M0(),i=t.useRef(!1),s=t.useRef(0),a=t.useRef(null),l=t.useRef(null),u=((e,t)=>{const{classes:n}=e;return $z({root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]},e0,n)})(o,e.position),c=m0(r,b1),d="vertical"===e.position?"height":"width",h="vertical"===e.position?"scrollTop":"scrollLeft",p="vertical"===e.position?"top":"left",f="vertical"===e.position?c.hasScrollX:c.hasScrollY,m=c.minimumSize[d]+(f?c.scrollbarSize:0),g=("vertical"===e.position?c.viewportInnerSize.height:c.viewportOuterSize.width)*(m/c.viewportOuterSize[d]),b=PW((()=>{const t=a.current,n=e.scrollPosition.current;if(!t)return;if(n[p]===s.current)return;if(s.current=n[p],i.current)return void(i.current=!1);i.current=!0;const r=n[p]/m;t[h]=r*g})),y=PW((()=>{const e=r.current.virtualScrollerRef.current,t=a.current;if(!t)return;if(i.current)return void(i.current=!1);i.current=!0;const n=t[h]/g;e[h]=n*m}));GW((()=>{const e=r.current.virtualScrollerRef.current,t=a.current,n={passive:!0};return e.addEventListener("scroll",b,n),t.addEventListener("scroll",y,n),()=>{e.removeEventListener("scroll",b,n),t.removeEventListener("scroll",y,n)}})),t.useEffect((()=>{l.current.style.setProperty(d,`${g}px`)}),[g,d]);const w="vertical"===e.position?m9:g9;return(0,sn.jsx)(w,{ref:uW(n,a),className:u.root,style:"vertical"===e.position&&o.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:e=>{e.target.blur()},children:(0,sn.jsx)("div",{ref:l,className:u.content})})})),y9=xG("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),w9=e=>e.current.state.dimensions.rightPinnedWidth>0;function v9(e){const t=d1(),n=M0(),r=m0(t,C1),o=m0(t,S1),i=m0(t,w9),a=m0(t,T1),{getOverlay:l,overlaysProps:u}=(()=>{const e=d1(),t=M0(),n=m0(e,W1),r=m0(e,R3),o=m0(e,t2),i=m0(e,Q0),a=0===n&&0===o,l=m0(e,V1),u=m0(e,G4),c=!l&&a,d=!l&&n>0&&0===r,h=!l&&0===i.length;let p=null,f=null;c&&(p="noRowsOverlay"),h&&(p="noColumnsOverlay"),c&&u&&(p="emptyPivotOverlay"),d&&(p="noResultsOverlay"),l&&(p="loadingOverlay",f=t.slotProps?.loadingOverlay?.[a?"noRowsVariant":"variant"]??(a?"skeleton":"linear-progress"));const m={overlayType:p,loadingOverlayVariant:f};return{getOverlay:()=>{if(!p)return null;const e=t.slots?.[p],n=t.slotProps?.[p];return(0,sn.jsx)($4,s({},m,{children:(0,sn.jsx)(e,s({},n))}))},overlaysProps:m}})(),c=s({classes:n.classes,hasScrollX:o,hasPinnedRight:i},u),d=(e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o,overlayType:i}=e;return $z({root:["main",r&&"main--hasPinnedRight",("skeleton"===o||"noColumnsOverlay"===i)&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},e0,t)})(c),h=D4(),{getContainerProps:p,getScrollerProps:f,getContentProps:m,getRenderZoneProps:g,getScrollbarVerticalProps:b,getScrollbarHorizontalProps:y,getRows:w,getScrollAreaProps:v}=h,S=w();return(0,sn.jsxs)(e9,s({className:d.root},p(),{ownerState:c,children:[(0,sn.jsx)(u3,s({scrollDirection:"left"},v())),(0,sn.jsx)(u3,s({scrollDirection:"right"},v())),(0,sn.jsxs)(y9,s({className:d.scroller},f(),{ownerState:c,children:[(0,sn.jsxs)(n9,{children:[!n.listView&&(0,sn.jsx)(J4,{}),(0,sn.jsx)(n.slots.pinnedRows,{position:"top",virtualScroller:h})]}),l(),(0,sn.jsx)(o9,s({},m(),{children:(0,sn.jsxs)(p9,s({},g(),{children:[S,(0,sn.jsx)(n.slots.detailPanels,{virtualScroller:h})]}))})),a&&(0,sn.jsx)(c9,{rowsLength:S.length}),(0,sn.jsx)(n.slots.bottomContainer,{children:(0,sn.jsx)(n.slots.pinnedRows,{position:"bottom",virtualScroller:h})})]})),o&&!n.listView&&(0,sn.jsx)(b9,s({position:"horizontal"},y())),r&&(0,sn.jsx)(b9,s({position:"vertical"},b())),e.children]}))}function S9(){const e=M0();return e.hideFooter?null:(0,sn.jsx)(e.slots.footer,s({},e.slotProps?.footer))}const C9=["className","children","sidePanel"],_9=XZ((function(e,n){const r=M0(),{className:o,children:a,sidePanel:l}=e,u=Bz(e,C9),c=b0(),d=m0(c,j0),h=c.current.rootElementRef,p=t.useCallback((e=>{null!==e&&c.current.publishEvent("rootMount",e)}),[c]),f=uW(h,n,p),m=r,g=((e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e;return $z({root:["root",n&&"autoHeight",`root--density${$e(t)}`,null===e.slots.toolbar&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]},e0,r)})(m,d),b=t.useContext(R0);return(0,a0.useSyncExternalStore)(F0,z0,W0)?null:(0,sn.jsxs)(v0,s({className:i(g.root,o,b.className,l&&t0.withSidePanel),ownerState:m},u,{ref:f,children:[(0,sn.jsxs)("div",{className:t0.mainContent,role:"presentation",children:[(0,sn.jsx)(g1,{}),(0,sn.jsx)(v9,{children:a}),(0,sn.jsx)(S9,{})]}),l,b.tag]}))})),M9=ZZ(_9);function x9(e,t){const n=U1(e),r=p3(e),o=S3(e),i=n[t];if(!i||"group"!==i.type)return[];const s=[];for(let a=r.findIndex((e=>e===t))+1;a<r.length&&n[r[a]]?.depth>i.depth;a+=1){const t=r[a];!1!==o[t]&&e.current.isRowSelectable(t)&&s.push(t)}return s}const k9=H0(U1,S3,R4,((e,t,n,{groupId:r,autoSelectParents:o})=>{const i=e[r];if(!i||"group"!==i.type||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let s=!1,a=!1;const l=r=>{if(!1===t[r]||s&&a)return;const o=e[r];"group"===o?.type&&o.children.forEach(l),n.has(r)?s=!0:a=!0};return l(r),{isIndeterminate:s&&a,isChecked:!!o&&s&&!a}}));function R9(e){return e.signature===P3.DataGrid?e.checkboxSelection&&!0!==e.disableMultipleRowSelection:!e.disableMultipleRowSelection}const T9=(e,t,n,r,o,i,s=R4(e))=>{const a=S3(e),l=new Set([]);if((r||o)&&!1!==a[n]){if(r){const r=t[n];"group"===r?.type&&x9(e,n).forEach((e=>{i(e),l.add(e)}))}if(o){const r=e=>{if(!s.has(e)&&!l.has(e))return!1;const n=t[e];return!!n&&("group"!==n.type||n.children.every(r))},o=n=>{const s=((e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return null==o?[]:e[o].children.filter((e=>e!==n&&!1!==t[e]))})(t,a,n);if(0===s.length||s.every(r)){const r=t[n],s=r?.parent;null!=s&&s!==q2&&e.current.isRowSelectable(s)&&(i(s),l.add(s),o(s))}};o(n)}}},E9=(e,t,n,r,o,i)=>{const s=R4(e);if(o||r){if(o){const e=((e,t)=>{const n=[];let r=t;for(;null!=r&&r!==q2;){const t=e[r];if(!t)return n;n.push(r),r=t.parent}return n})(t,n);e.forEach((e=>{s.has(e)&&i(e)}))}if(r){const r=t[n];"group"===r?.type&&x9(e,n).forEach((e=>{i(e)}))}}};function L9({privateApiRef:e,configuration:n,props:r,children:o}){const i=t.useRef(e.current.getPublicApi());return(0,sn.jsx)(x0.Provider,{value:n,children:(0,sn.jsx)(_0.Provider,{value:r,children:(0,sn.jsx)(g0.Provider,{value:e,children:(0,sn.jsx)(c1.Provider,{value:i,children:(0,sn.jsx)(f1,{children:(0,sn.jsx)(E0,{children:o})})})})})})}const I9=function(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),P9=()=>{},D9={debug:P9,info:P9,warn:P9,error:P9},H9=["debug","info","warn","error"];function O9(e,t,n=console){const r=H9.indexOf(t);if(-1===r)throw new Error(`MUI X: Log level ${t} not recognized.`);return H9.reduce(((t,o,i)=>(t[o]=i>=r?(...t)=>{const[r,...i]=t;n[o](`MUI X: ${e} - ${r}`,...i)}:P9,t)),{})}function A9(e){return A9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A9(e)}function N9(e){var t=function(e){if("object"!=A9(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A9(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A9(t)?t:t+""}let j9=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const Y9="none",F9={dataSourceRowsUpdate:j9.DataSource,rowTreeCreation:j9.RowTree,filtering:j9.RowTree,sorting:j9.RowTree,visibleRowsLookupCreation:j9.RowTree},z9=(e,t)=>s({},e,{props:{getRowId:t.getRowId}}),W9=(e,n,r)=>{const o=t.useRef(!1);o.current||(n.current.state=e(n.current.state,r,n),o.current=!0)};function V9(e,n){const r=t.useRef(null);if(r.current)return r.current;const o=e.current.getLogger(n);return r.current=o,o}const B9=(e,t,n,r,o)=>{const i=V9(e,"useNativeEventListener");A1(e,"rootMount",(()=>{const e=t();if(e&&n)return i.debug(`Binding native ${n} event`),e.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),e.removeEventListener(n,r,o)}}))},$9=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],U9=XZ((function(e,n){const{field:r,id:o,rowNode:i,tabIndex:a}=e,l=Bz(e,$9),u=d1(),c=M0(),d=(e=>{const{classes:t}=e;return $z({root:["checkboxInput"]},e0,t)})({classes:c.classes});t.useLayoutEffect((()=>{if(0===a){const e=u.current.getCellElement(o,r);e&&(e.tabIndex=-1)}}),[u,a,o,r]);const h=t.useCallback((e=>{" "===e.key&&e.stopPropagation()}),[]),p=u.current.isRowSelectable(o),{isIndeterminate:f,isChecked:m}=m0(u,k9,{groupId:o,autoSelectParents:c.rowSelectionPropagation?.parents??!1});if("footer"===i.type||"pinnedRow"===i.type)return null;const g=u.current.getLocaleText(m&&!f?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,sn.jsx)(c.slots.baseCheckbox,s({tabIndex:a,checked:m&&!f,onChange:e=>{const t={value:e.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:d.root,slotProps:{htmlInput:{"aria-label":g,name:"select_row"}},onKeyDown:h,indeterminate:f,disabled:!p},c.slotProps?.baseCheckbox,l,{ref:n}))})),G9=U9,K9=["field","colDef"],q9=XZ((function(e,n){const r=Bz(e,K9),[,o]=t.useState(!1),i=d1(),a=M0(),l=(e=>{const{classes:t}=e;return $z({root:["checkboxInput"]},e0,t)})({classes:a.classes}),u=m0(i,b4),c=m0(i,k4),d=m0(i,_3),h=m0(i,U3),p=t.useMemo((()=>{const e=a.isRowSelectable;if("function"!=typeof e)return c;if("exclude"===c.type)return c;const t={type:"include",ids:new Set};for(const n of c.ids)a.keepNonExistentRowsSelected&&t.ids.add(n),i.current.getRow(n)&&e(i.current.getRowParams(n))&&t.ids.add(n);return t}),[i,a.isRowSelectable,a.keepNonExistentRowsSelected,c]),f=t.useMemo((()=>{const e=a.pagination&&a.checkboxSelectionVisibleOnly&&"server"!==a.paginationMode?h:d,t=new Set;for(let n=0;n<e.length;n+=1){const r=e[n];i.current.getRow(r)&&i.current.isRowSelectable(r)&&t.add(r)}return t}),[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,h,d]),m=t.useMemo((()=>{const e=x4(p);let t=0;for(const n of f)e.has(n)&&(t+=1);return t}),[p,f]),g=t.useMemo((()=>{if(0===p.ids.size)return!1;const e=x4(p);for(const t of f)if(!e.has(t))return!0;return!1}),[p,f]),b=m>0,y=null!==u&&u.field===e.field?0:-1;t.useLayoutEffect((()=>{const t=i.current.getColumnHeaderElement(e.field);0===y&&t&&(t.tabIndex=-1)}),[y,i,e.field]);const w=t.useCallback((e=>{" "===e.key&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})}),[i,b]),v=t.useCallback((()=>{o((e=>!e))}),[]);t.useEffect((()=>i.current.subscribeEvent("rowSelectionChange",v)),[i,v]);const S=i.current.getLocaleText(b&&!g?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,sn.jsx)(a.slots.baseCheckbox,s({indeterminate:g,checked:b&&!g,onChange:e=>{const t={value:e.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",t)},className:l.root,slotProps:{htmlInput:{"aria-label":S,name:"select_all_rows"}},tabIndex:y,onKeyDown:w,disabled:!R9(a)},a.slotProps?.baseCheckbox,r,{ref:n}))})),X9="__check__",J9=s({},S5,{type:"custom",field:X9,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const o=a5(r,t);return r.current.isRowSelected(o)},renderHeader:e=>(0,sn.jsx)(q9,s({},e)),renderCell:e=>(0,sn.jsx)(G9,s({},e))});function Q9(e,t){if(null==e)return"";const n="string"==typeof e?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const e=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","\t","\r"].includes(e[0])?`"'${e}"`:[t.delimiter,"\n","\r",'"'].some((e=>n.includes(e)))?`"${e}"`:e}return n}const Z9=(e,t)=>{const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const t=e.colDef.type;o="number"===t?String(e.value):"date"===t||"dateTime"===t?e.value?.toISOString():"function"==typeof e.value?.toString?e.value.toString():e.value}else o=e.formattedValue;return Q9(o,n)};class e6{constructor(e){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=e}addValue(e){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),"function"==typeof this.options.sanitizeCellValue?this.rowString+=this.options.sanitizeCellValue(e,this.options.csvOptions):this.rowString+=e,this.isEmpty=!1}getRowString(){return this.rowString}}function t6(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const n6=e=>0===e.indexOf("Arrow")||0===e.indexOf("Page")||" "===e||"Home"===e||"End"===e,r6=e=>"Tab"===e||"Escape"===e;function o6(e){return(e.ctrlKey||e.metaKey)&&"V"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}function i6(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}const s6=e=>s({},e,{columnMenu:{open:!1}}),a6=e=>{const n=t.useRef(!0);n.current&&(n.current=!1,e())},l6=(e,n,r,o=!0)=>{const i=t.useRef(null),s=t.useRef(`mui-${Math.round(1e9*Math.random())}`),a=t.useCallback((()=>{i.current=e.current.registerPipeProcessor(n,s.current,r)}),[e,r,n]);a6((()=>{o&&a()}));const l=t.useRef(!0);t.useEffect((()=>(l.current?l.current=!1:o&&a(),()=>{i.current&&(i.current(),i.current=null)})),[a,o])},u6=(e,n,r)=>{const o=t.useRef(null),i=t.useRef(`mui-${Math.round(1e9*Math.random())}`),s=t.useCallback((()=>{o.current=e.current.registerPipeApplier(n,i.current,r)}),[e,r,n]);a6((()=>{s()}));const a=t.useRef(!0);t.useEffect((()=>(a.current?a.current=!1:s(),()=>{o.current&&(o.current(),o.current=null)})),[s])},c6=(e,t,n)=>s({},e,{columns:o3({apiRef:n,columnsToUpsert:t.columns,initialState:t.initialState?.columns,columnVisibilityModel:t.columnVisibilityModel??t.initialState?.columns?.columnVisibilityModel??{},keepOnlyColumnsToUpsert:!0}),pinnedColumns:e.pinnedColumns??B0});function d6(e){return t=>s({},t,{columns:e})}const h6=(e,t)=>s({},e,{density:t.initialState?.density??t.density??"standard"}),p6=({apiRef:e,options:t})=>{const n=q0(e);return t.fields?t.fields.reduce(((e,t)=>{const r=n.find((e=>e.field===t));return r&&e.push(r),e}),[]):(t.allColumns?n:Q0(e)).filter((e=>!e.disableExport))},f6=({apiRef:e})=>{const t=x3(e),n=U1(e),r=T4(e),o=t.filter((e=>"footer"!==n[e].type)),i=e2(e),s=i?.top?.map((e=>e.id))||[],a=i?.bottom?.map((e=>e.id))||[];if(o.unshift(...s),o.push(...a),r>0){const t=E4(e);return o.filter((e=>t.has(e)))}return o},m6=XZ((function(e,n){const{children:r,slotProps:o={}}=e,i=o.button||{},a=o.tooltip||{},l=d1(),u=M0(),c=RW(),d=RW(),[h,p]=t.useState(!1),f=t.useRef(null),m=uW(n,f),g=()=>p(!1);return null==r?null:(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(u.slots.baseTooltip,s({title:l.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,a,{children:(0,sn.jsx)(u.slots.baseButton,s({size:"small",startIcon:(0,sn.jsx)(u.slots.exportIcon,{}),"aria-expanded":h,"aria-label":l.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":h?d:void 0,id:c},u.slotProps?.baseButton,i,{onClick:e=>{p((e=>!e)),i.onClick?.(e)},ref:m,children:l.current.getLocaleText("toolbarExport")}))})),(0,sn.jsx)(F5,{open:h,target:f.current,onClose:g,position:"bottom-end",children:(0,sn.jsx)(u.slots.baseMenuList,{id:d,className:t0.menuList,"aria-labelledby":c,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),r6(e.key)&&g()},autoFocusItem:h,children:t.Children.map(r,(e=>t.isValidElement(e)?t.cloneElement(e,{hideMenu:g}):e))})})]})})),g6=["hideMenu","options"],b6=["hideMenu","options"],y6=["csvOptions","printOptions","excelOptions"];function w6(e){const t=d1(),n=M0(),{hideMenu:r,options:o}=e,i=Bz(e,g6);return(0,sn.jsx)(n.slots.baseMenuItem,s({onClick:()=>{t.current.exportDataAsCsv(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function v6(e){const t=d1(),n=M0(),{hideMenu:r,options:o}=e,i=Bz(e,b6);return(0,sn.jsx)(n.slots.baseMenuItem,s({onClick:()=>{t.current.exportDataAsPrint(o),r?.()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}XZ((function(e,n){const r=e,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,l=Bz(r,y6),u=d1().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort(((e,t)=>e.componentName>t.componentName?1:-1));return 0===u.length?null:(0,sn.jsx)(m6,s({},l,{ref:n,children:u.map(((e,n)=>t.cloneElement(e.component,{key:n})))}))}));const S6=(e,n)=>{const r=V9(e,"useGridCsvExport"),o=n.ignoreValueFormatterDuringExport,i=("object"==typeof o?o?.csvExport:o)||!1,s=t.useCallback(((t={})=>(r.debug("Get data as CSV"),function(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,s=n.reduce(((e,n)=>`${e}${(({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new e6({csvOptions:r});return t.forEach((t=>{const s=n(e,t.field);i.addValue(Z9(s,{ignoreValueFormatter:o,csvOptions:r}))})),i.getRowString()})({id:n,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r\n`),"").trim();if(!r.includeHeaders)return s;const a=t.filter((e=>e.field!==J9.field)),l=[];if(r.includeColumnGroupsHeaders){const e=i.current.getAllGroupDetails();let t=0;const n=a.reduce(((e,n)=>{const r=i.current.getColumnGroupPath(n.field);return e[n.field]=r,t=Math.max(t,r.length),e}),{});for(let o=0;o<t;o+=1){const t=new e6({csvOptions:r,sanitizeCellValue:Q9});l.push(t),a.forEach((r=>{const i=(n[r.field]||[])[o],s=e[i];t.addValue(s?s.headerName||s.groupId:"")}))}}const u=new e6({csvOptions:r,sanitizeCellValue:Q9});a.forEach((e=>{u.addValue(e.headerName||e.field)})),l.push(u);const c=`${l.map((e=>e.getRowString())).join("\r\n")}\r\n`;return`${c}${s}`.trim()}({columns:p6({apiRef:e,options:t}),rowIds:(t.getRowsToExport??f6)({apiRef:e}),csvOptions:{delimiter:t.delimiter||",",shouldAppendQuotes:t.shouldAppendQuotes??!0,includeHeaders:t.includeHeaders??!0,includeColumnGroupsHeaders:t.includeColumnGroupsHeaders??!0,escapeFormulas:t.escapeFormulas??!0},ignoreValueFormatter:i,apiRef:e}))),[r,e,i]),a=t.useCallback((e=>{r.debug("Export data as CSV");const t=s(e);!function(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const t=URL.createObjectURL(e),n=document.createElement("a");return n.href=t,n.download=r,n.click(),void setTimeout((()=>{URL.revokeObjectURL(t)}))}throw new Error("MUI X: exportAs not supported.")}(new Blob([e?.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",e?.fileName)}),[r,s]);r4(e,{getDataAsCsv:s,exportDataAsCsv:a},"public");const l=t.useCallback(((e,t)=>t.csvOptions?.disableToolbarButton?e:[...e,{component:(0,sn.jsx)(w6,{options:t.csvOptions}),componentName:"csvExport"}]),[]);l6(e,"exportMenu",l)};function C6(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(!C6(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;for(let e=0;e<n.length;e+=1){const r=n[e];if(!C6(r[1],t.get(r[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const n=Array.from(e.entries());for(let e=0;e<n.length;e+=1)if(!t.has(n[e][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let e=0;e<r;e+=1)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=0;o<r;o+=1){const r=n[o];if(!C6(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}const _6=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=n?.pageSize??r.pageSize,a=n?.page??r.page,l=D3(o,i,a);!n||n?.page===r.page&&n?.pageSize===r.pageSize||(r=n);const u=-1===i?0:((e,t=0)=>0===t?e:Math.max(Math.min(e,t-1),0))(r.page,l);return u!==r.page&&(r=s({},r,{page:u})),O3(r.pageSize,t),r},M6=(e,n,r,o)=>{const i=t.useCallback((()=>{e.current.registerStrategyProcessor(n,r,o)}),[e,o,r,n]);a6((()=>{i()}));const s=t.useRef(!0);t.useEffect((()=>{s.current?s.current=!1:i()}),[i])},x6=(e,t,n)=>{const r=t.filterModel??t.initialState?.filter?.filterModel??S2();return s({},e,{filter:s({filterModel:x2(r,t.disableMultipleColumnsFiltering,n)},v2),visibleRowsLookup:{}})},k6=e=>e.filteredRowsLookup;function R6(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function T6(){return SB(Object.values)}const E6=e=>s({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}});function L6(e,t){return e.closest(`.${t}`)}function I6(e){return e.replace(/["\\]/g,"\\$&")}function P6(e){return`.${t0.row}[data-id="${I6(String(e))}"]`}function D6(e){return 1===e.target.nodeType&&!e.currentTarget.contains(e.target)}function H6(e,t){return e.rootElementRef.current.querySelector(`.${t0[t]}`)}const O6=({api:e,colIndex:t,position:n,filterFn:r})=>{if(null===t)return[];const o=[];return N6(e).forEach((e=>{e.getAttribute("data-id")&&e.querySelectorAll(`.${t0["left"===n?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach((e=>{const t=j6(e);null!==t&&r(t)&&o.push(e)}))})),o},A6=({api:e,colIndex:t,position:n,filterFn:r})=>{if(!e.columnHeadersContainerRef?.current)return[];if(null===t)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${t0["left"===n?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach((e=>{const t=j6(e);null!==t&&r(t,e)&&o.push(e)})),o};function N6(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${t0.row}`)}function j6(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const Y6=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},F6=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null},z6=A0(G3,e2,((e,t)=>(t.top||[]).concat(e.rows,t.bottom||[]))),W6=(e,t)=>{const n=s({},H3(t.autoPageSize),t.paginationModel??t.initialState?.pagination?.paginationModel);O3(n.pageSize,t.signature);const r=t.rowCount??t.initialState?.pagination?.rowCount??("client"===t.paginationMode?e.rows?.totalRowCount:void 0),o=t.paginationMeta??t.initialState?.pagination?.meta??{};return s({},e,{pagination:s({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:!0===t.pagination,paginationMode:t.paginationMode})})},V6=(e,t)=>s({},e,{preferencePanel:t.initialState?.preferencePanel??{open:!1}}),B6=O0((e=>e.editRows)),$6=H0(B6,((e,{rowId:t,editMode:n})=>n===M5.Row&&Boolean(e[t]))),U6=H0(B6,((e,{rowId:t,field:n})=>e[t]?.[n]??null)),G6=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;default:return""}},K6=["id","field"],q6=["id","field"];var X6=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(X6||{}),J6=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(J6||{});const Q6=["id"],Z6=["id"],e7=e=>s({},e,{editRows:{}}),t7=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=Q2({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),s({},e,{rows:e5({apiRef:n,rowCountProp:t.rowCount,loadingProp:!!r||t.loading,previousTree:null,previousTreeDepths:null})})},n7=e=>"full"===e.updates.type?(e=>{const t={[q2]:s({},{type:"group",id:q2,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null},{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:q2,type:"leaf",groupingKey:null}}return{groupingName:Y9,tree:t,treeDepths:{0:e.length},dataRowIds:e}})(e.updates.rows):(({previousTree:e,actions:t})=>{const n=s({},e),r={};for(let e=0;e<t.remove.length;e+=1){const o=t.remove[e];r[o]=!0,delete n[o]}for(let e=0;e<t.insert.length;e+=1){const r=t.insert[e];n[r]={id:r,depth:0,parent:q2,type:"leaf",groupingKey:null}}const o=n[q2];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter((e=>!r[e]))),n[q2]=s({},o,{children:i}),{groupingName:Y9,tree:n,treeDepths:{0:i.length},dataRowIds:i}})({previousTree:e.previousTree,actions:e.updates.actions});class r7 extends Error{}const o7={type:"include",ids:new Set},i7=(e,t)=>s({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??o7:o7}),s7=(e,t)=>{const n=t.sortModel??t.initialState?.sorting?.sortModel??[];return s({},e,{sorting:{sortModel:n2(n,t.disableMultipleColumnsSorting),sortedRows:[]}})};function a7(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;return r>t?o:i-t>n?i-t:o<n?o:void 0}const l7={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:"\t",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:M5.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1},u7={width:0,height:0},c7={isReady:!1,root:u7,viewportOuterSize:u7,viewportInnerSize:u7,contentSize:u7,minimumSize:u7,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},d7=(e,t,n)=>s({},e,{dimensions:s({},c7,f7(t,n,Y0(n),t1(n)))}),h7=H0(Q0,r1,((e,t)=>{const n=e.length;return 0===n?0:S4(t[n-1]+e[n-1].computedWidth,1)}));function p7(e,t){const n=(t,n)=>e.style.setProperty(t,n);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function f7(e,t,n,r){const o=s5(e.rowHeight,l7.rowHeight);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:h7(t),headersTotalHeight:i3(t,e),leftPinnedWidth:r.left.reduce(((e,t)=>e+t.computedWidth),0),rightPinnedWidth:r.right.reduce(((e,t)=>e+t.computedWidth),0)}}const m7=new WeakMap,g7=void 0!==globalThis.ResizeObserver?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},b7=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=w1(n),o=W1(n),i=A3(n),a=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return s({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},((e,t)=>t*r)),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})};function y7(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:s,columns:a}=e,l=a.length,u=a[r],c=t.current.getRow(o),d=t.current.getRowValue(c,u),h="function"==typeof u.colSpan?u.colSpan(d,c,u,t):u.colSpan;if(!h||1===h)return w7(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let p=u.computedWidth;for(let e=1;e<h;e+=1){const t=r+e;t>=i&&t<s&&(p+=a[t].computedWidth,w7(n,o,r+e,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+h,l-1),leftVisibleCellIndex:r})),w7(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:h,width:p}})}return{colSpan:h}}function w7(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}function v7(e){return void 0!==e.field}const S7=(e,t,n)=>{if(v7(e)){if(void 0!==n[e.field])throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join("\n"));return void(n[e.field]=t)}const{groupId:r,children:o}=e;o.forEach((e=>{S7(e,[...t,r],n)}))},C7=e=>{if(!e)return{};const t={};return e.forEach((e=>{S7(e,[],t)})),t},_7=(e,t,n)=>{const r=e=>t[e]??[],o=[],i=Math.max(...e.map((e=>r(e).length))),s=(e,t,n)=>C6(r(e).slice(0,n+1),r(t).slice(0,n+1));for(let t=0;t<i;t+=1){const i=e.reduce(((e,o)=>{const i=r(o)[t]??null;if(0===e.length)return[{columnFields:[o],groupId:i}];const a=e[e.length-1],l=a.columnFields[a.columnFields.length-1];return a.groupId!==i||!s(l,o,t)||(u=l,c=o,n?.left&&n.left.includes(u)&&!n.left.includes(c)||n?.right&&!n.right.includes(u)&&n.right.includes(c))?[...e,{columnFields:[o],groupId:i}]:[...e.slice(0,e.length-1),{columnFields:[...a.columnFields,o],groupId:i}];var u,c}),[]);o.push(i)}return o},M7=["groupId","children"],x7=e=>{let t={};return e.forEach((e=>{if(v7(e))return;const{groupId:n,children:r}=e,o=Bz(e,M7);if(!n)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=s({},o,{groupId:n}),a=x7(r);if(void 0!==a[n]||void 0!==t[n])throw new Error(`MUI X: The groupId ${n} is used multiple times in the columnGroupingModel.`);t=s({},t,a,{[n]:i})})),s({},t)},k7=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=G0(n),o=Z0(n),i=x7(t.columnGroupingModel??[]),a=C7(t.columnGroupingModel??[]),l=_7(r,a,n.current.state.pinnedColumns??{}),u=0===o.length?0:Math.max(...o.map((e=>a[e]?.length??0)));return s({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:u}})},R7={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0};function T7(e,t){if(void 0!==t&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function E7(e,t,n,r){let o=e;return o+="Right"===r?t-n.left:n.right-t,o}function L7(e){e.preventDefault(),e.stopImmediatePropagation()}const I7=e=>s({},e,{columnResize:{resizingColumnField:""}});function P7(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const D7=(e,n)=>{const r=eU(),o=V9(e,"useGridColumnResize"),i=OW(P7).current,a=t.useRef(null),l=t.useRef(null),u=qW(),c=t.useRef(void 0),d=t=>{o.debug(`Updating width to ${t} for col ${i.colDef.field}`);const n=i.columnHeaderElement.offsetWidth,r=t-n,s=t-i.initialColWidth;if(s>0){const t=i.initialTotalWidth+s;e.current.rootElementRef?.current?.style.setProperty("--DataGrid-rowWidth",`${t}px`)}i.colDef.computedWidth=t,i.colDef.width=t,i.colDef.flex=0,i.columnHeaderElement.style.width=`${t}px`;const a=i.headerFilterElement;a&&(a.style.width=`${t}px`),i.groupHeaderElements.forEach((e=>{const n=e;let o;o="1"===n.getAttribute("aria-colspan")?`${t}px`:`${n.offsetWidth+r}px`,n.style.width=o})),i.cellElements.forEach((e=>{const n=e;let o;o="1"===n.getAttribute("aria-colspan")?`${t}px`:`${n.offsetWidth+r}px`,n.style.setProperty("--width",o)}));const l=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);l===V0.LEFT&&(H7(i.fillerLeft,"width",r),i.leftPinnedCellsAfter.forEach((e=>{H7(e,"left",r)})),i.leftPinnedHeadersAfter.forEach((e=>{H7(e,"left",r)}))),l===V0.RIGHT&&(H7(i.fillerRight,"width",r),i.rightPinnedCellsBefore.forEach((e=>{H7(e,"right",r)})),i.rightPinnedHeadersBefore.forEach((e=>{H7(e,"right",r)})))},h=t=>{if(w(),i.previousMouseClickEvent){const n=i.previousMouseClickEvent,r=n.timeStamp,o=n.clientX,s=n.clientY;if(t.timeStamp-r<300&&t.clientX===o&&t.clientY===s)return i.previousMouseClickEvent=void 0,void e.current.publishEvent("columnResizeStop",null,t)}if(i.colDef){e.current.setColumnWidth(i.colDef.field,i.colDef.width),o.debug(`Updating col ${i.colDef.field} with new width: ${i.colDef.width}`);const t=U0(e);i.groupHeaderElements.forEach((e=>{const n=e,r=`${e.getAttribute("data-fields").slice(2,-2).split("-|-").reduce(((e,n)=>!1!==t.columnVisibilityModel[n]?e+t.lookup[n].computedWidth:e),0)}px`;n.style.width=r}))}u.start(0,(()=>{e.current.publishEvent("columnResizeStop",null,t)}))},p=(t,n,o)=>{const s=e.current.rootElementRef.current;var u,c;i.initialColWidth=t.computedWidth,i.initialTotalWidth=e.current.getRootDimensions().rowWidth,i.colDef=t,i.columnHeaderElement=(u=e.current.columnHeadersContainerRef.current,c=t.field,u.querySelector(`[data-field="${I6(c)}"]`));const d=s.querySelector(`.${t0.headerFilterRow} [data-field="${I6(t.field)}"]`);d&&(i.headerFilterElement=d),i.groupHeaderElements=function(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${I6(t)}-|"]`)??[])}(e.current.columnHeadersContainerRef?.current,t.field),i.cellElements=function(e,t){if(!L6(e,t0.root))throw new Error("MUI X: The root element is not found.");const n=e.getAttribute("aria-colindex");if(!n)return[];const r=Number(n)-1,o=[];return t.virtualScrollerRef?.current?(N6(t).forEach((e=>{const n=e.getAttribute("data-id");if(!n)return;let i=r;const s=t.unstable_getCellColSpanInfo(n,r);s&&s.spannedByColSpan&&(i=s.leftVisibleCellIndex);const a=e.querySelector(`[data-colindex="${i}"]`);a&&o.push(a)})),o):[]}(i.columnHeaderElement,e.current),i.fillerLeft=H6(e.current,r?"filler--pinnedRight":"filler--pinnedLeft"),i.fillerRight=H6(e.current,r?"filler--pinnedLeft":"filler--pinnedRight");const h=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,i.colDef.field);i.leftPinnedCellsAfter=h!==V0.LEFT?[]:function(e,t,n){const r=j6(t);return O6({api:e,colIndex:r,position:n?"right":"left",filterFn:e=>n?e<r:e>r})}(e.current,i.columnHeaderElement,r),i.rightPinnedCellsBefore=h!==V0.RIGHT?[]:function(e,t,n){const r=j6(t);return O6({api:e,colIndex:r,position:n?"left":"right",filterFn:e=>n?e>r:e<r})}(e.current,i.columnHeaderElement,r),i.leftPinnedHeadersAfter=h!==V0.LEFT?[]:function(e,t,n){const r=j6(t);return A6({api:e,position:n?"right":"left",colIndex:r,filterFn:e=>n?e<r:e>r})}(e.current,i.columnHeaderElement,r),i.rightPinnedHeadersBefore=h!==V0.RIGHT?[]:function(e,t,n){const r=j6(t);return A6({api:e,position:n?"left":"right",colIndex:r,filterFn:(e,t)=>!t.classList.contains(t0["columnHeader--last"])&&(n?e>r:e<r)})}(e.current,i.columnHeaderElement,r),l.current=function(e,t){const n=e.classList.contains(t0["columnSeparator--sideRight"])?"Right":"Left";return t?function(e){return"Right"===e?"Left":"Right"}(n):n}(n,r),a.current=function(e,t,n){return"Left"===n?e-t.left:t.right-e}(o,i.columnHeaderElement.getBoundingClientRect(),l.current)},f=PW(h),m=PW((t=>{if(0===t.buttons)return void f(t);let n=E7(a.current,t.clientX,i.columnHeaderElement.getBoundingClientRect(),l.current);n=f2(n,i.colDef.minWidth,i.colDef.maxWidth),d(n);const r={element:i.columnHeaderElement,colDef:i.colDef,width:n};e.current.publishEvent("columnResize",r,t)})),g=PW((e=>{T7(e,c.current)&&h(e)})),b=PW((t=>{const n=T7(t,c.current);if(!n)return;if("mousemove"===t.type&&0===t.buttons)return void g(t);let r=E7(a.current,n.x,i.columnHeaderElement.getBoundingClientRect(),l.current);r=f2(r,i.colDef.minWidth,i.colDef.maxWidth),d(r);const o={element:i.columnHeaderElement,colDef:i.colDef,width:r};e.current.publishEvent("columnResize",o,t)})),y=PW((t=>{const n=L6(t.target,t0["columnSeparator--resizable"]);if(!n)return;const r=t.changedTouches[0];null!=r&&(c.current=r.identifier);const i=L6(t.target,t0.columnHeader).getAttribute("data-field"),s=e.current.getColumn(i);o.debug(`Start Resize on col ${s.field}`),e.current.publishEvent("columnResizeStart",{field:i},t),p(s,n,r.clientX);const a=sK(t.currentTarget);a.addEventListener("touchmove",b),a.addEventListener("touchend",g)})),w=t.useCallback((()=>{const t=sK(e.current.rootElementRef.current);t.body.style.removeProperty("cursor"),t.removeEventListener("mousemove",m),t.removeEventListener("mouseup",f),t.removeEventListener("touchmove",b),t.removeEventListener("touchend",g),setTimeout((()=>{t.removeEventListener("click",L7,!0)}),100),i.columnHeaderElement&&(i.columnHeaderElement.style.pointerEvents="unset")}),[e,i,m,f,b,g]),v=t.useCallback((({field:t})=>{e.current.setState((e=>s({},e,{columnResize:s({},e.columnResize,{resizingColumnField:t})})))}),[e]),S=t.useCallback((()=>{e.current.setState((e=>s({},e,{columnResize:s({},e.columnResize,{resizingColumnField:""})})))}),[e]),C=PW((({colDef:t},n)=>{if(0!==n.button)return;if(!n.currentTarget.classList.contains(t0["columnSeparator--resizable"]))return;n.preventDefault(),o.debug(`Start Resize on col ${t.field}`),e.current.publishEvent("columnResizeStart",{field:t.field},n),p(t,n.currentTarget,n.clientX);const r=sK(e.current.rootElementRef.current);r.body.style.cursor="col-resize",i.previousMouseClickEvent=n.nativeEvent,r.addEventListener("mousemove",m),r.addEventListener("mouseup",f),r.addEventListener("click",L7,!0)})),_=PW(((t,r)=>{if(n.disableAutosize)return;if(0!==r.button)return;const o=e.current.state.columns.lookup[t.field];!1!==o.resizable&&e.current.autosizeColumns(s({},n.autosizeOptions,{disableColumnVirtualization:!1,columns:[o.field]}))})),M=function(e){const n=t.useRef(void 0),r=()=>Z3(e),o=m0(e,r);return t.useEffect((()=>{n.current&&!1===o&&(n.current.resolve(),n.current=void 0)})),()=>{if(!n.current){if(!1===r())return Promise.resolve();n.current=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}()}return n.current}}(e),x=t.useRef(!1),k=t.useCallback((async t=>{const r=e.current.rootElementRef?.current;if(!r)return;if(x.current)return;x.current=!0;const o=U0(e),i=s({},R7,t,{columns:t?.columns??o.orderedFields});i.columns=i.columns.filter((e=>!1!==o.columnVisibilityModel[e]));const a=i.columns.map((t=>e.current.state.columns.lookup[t]));try{!n.disableVirtualization&&i.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await M());const t=function(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(t0.autosizing),n.forEach((n=>{const o=function(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${I6(t)}"][role="gridcell"]`))}(e.current,n.field),i=o.map((e=>e.getBoundingClientRect().width??0)),s=t.includeOutliers?i:function(e,t){if(e.length<4)return e;const n=e.slice();n.sort(((e,t)=>e-t));const r=n[Math.floor(.25*n.length)],o=n[Math.floor(.75*n.length)-1],i=o-r,s=i<5?5:i*t;return n.filter((e=>e>r-s&&e<o+s))}(i,t.outliersFactor);if(t.includeHeaders){const t=(a=e.current,l=n.field,a.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${I6(l)}"][role="columnheader"]`));if(t){const e=t.querySelector(`.${t0.columnHeaderTitle}`),n=t.querySelector(`.${t0.columnHeaderTitleContainerContent}`),r=t.querySelector(`.${t0.iconButtonContainer}`),o=t.querySelector(`.${t0.menuIcon}`),i=e??n,a=window.getComputedStyle(t,null),l=parseInt(a.paddingLeft,10)+parseInt(a.paddingRight,10),u=i.scrollWidth+1+l+(r?.clientWidth??0)+(o?.clientWidth??0);s.push(u)}}var a,l;const u=n.minWidth!==-1/0&&void 0!==n.minWidth,c=n.maxWidth!==1/0&&void 0!==n.maxWidth,d=u?n.minWidth:0,h=c?n.maxWidth:1/0,p=0===s.length?0:Math.max(...s);r[n.field]=f2(p,d,h)})),o.classList.remove(t0.autosizing),r}(e,i,a),r=a.map((e=>s({},e,{width:t[e.field],computedWidth:t[e.field],flex:0})));if(i.expand){const n=o.orderedFields.map((e=>o.lookup[e])).filter((e=>!1!==o.columnVisibilityModel[e.field])).reduce(((e,n)=>e+(t[n.field]??n.computedWidth??n.width)),0),i=e.current.getRootDimensions().viewportInnerSize.width-n;if(i>0){const e=i/(r.length||1);r.forEach((t=>{t.width+=e,t.computedWidth+=e}))}}e.current.updateColumns(r),r.forEach(((t,n)=>{if(t.width!==a[n].width){const n=t.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t.field),colDef:t,width:n})}}))}finally{n.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),x.current=!1}}),[e,M,n.disableVirtualization]);t.useEffect((()=>w),[w]),GW((()=>{n.autosizeOnMount&&Promise.resolve().then((()=>{e.current.autosizeColumns(n.autosizeOptions)}))})),B9(e,(()=>e.current.columnHeadersContainerRef?.current),"touchstart",y,{passive:!0}),r4(e,{autosizeColumns:k},"public"),H1(e,"columnResizeStop",S),H1(e,"columnResizeStart",v),H1(e,"columnSeparatorMouseDown",C),H1(e,"columnSeparatorDoubleClick",_),A1(e,"columnResize",n.onColumnResize),A1(e,"columnWidthChange",n.onColumnWidthChange)};function H7(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function O7(e){return 0!==e.firstRowIndex||0!==e.lastRowIndex}const A7=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},N7={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},j7={firstRowIndex:0,lastRowIndex:0},Y7=new Set([X9,"__reorder__",h5]),F7=(e,t,n,r,o,i,a)=>{const l=i?{}:s({},e.current.state.rowSpanning.spannedCells),u=i?{}:s({},e.current.state.rowSpanning.hiddenCells),c=i?{}:s({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=j7),t.forEach((t=>{if(!Y7.has(t.field)){for(let i=o.firstRowIndex;i<o.lastRowIndex;i+=1){const s=n[i];if(u[s.id]?.[t.field])continue;const a=A7(s.model,t,e);if(null==a)continue;let d=s.id,h=i,p=0;const f=[];if(i===o.firstRowIndex){let o=i-1,s=n[o];for(;o>=r.firstRowIndex&&s&&A7(s.model,t,e)===a;){const e=n[o+1];u[e.id]?u[e.id][t.field]=!0:u[e.id]={[t.field]:!0},f.push(i),p+=1,d=s.id,h=o,o-=1,s=n[o]}}f.forEach((e=>{c[e]?c[e][t.field]=h:c[e]={[t.field]:h}}));let m=i+1;for(;m<=r.lastRowIndex&&n[m]&&A7(n[m].model,t,e)===a;){const e=n[m];u[e.id]?u[e.id][t.field]=!0:u[e.id]={[t.field]:!0},c[m]?c[m][t.field]=h:c[m]={[t.field]:h},m+=1,p+=1}p>0&&(l[d]?l[d][t.field]=p+1:l[d]={[t.field]:p+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}})),{spannedCells:l,hiddenCells:u,hiddenCellOriginMap:c,processedRange:a}},z7=(e,t)=>{const n=Q1(t).length;if(e.pagination){const e=W3(t);let r=20;return e>0&&(r=e-1),{firstRowIndex:0,lastRowIndex:Math.min(r,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(20,n)}},W7=(e,t,n)=>{if(!t.rowSpanning)return s({},e,{rowSpanning:N7});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=Boolean(e.filter.filterModel.items.length)||Boolean(e.filter.filterModel.quickFilterValues?.length);if(!r.length||!o.length||!i||!a||l)return s({},e,{rowSpanning:N7});const u=z7(t,n),c=r.map((e=>({id:e,model:i[e]}))),d=o.map((e=>a[e])),{spannedCells:h,hiddenCells:p,hiddenCellOriginMap:f}=F7(n,d,c,u,u,!0,j7);return s({},e,{rowSpanning:{spannedCells:h,hiddenCells:p,hiddenCellOriginMap:f}})};new Set;const V7=(e,t,n)=>s({},e,{listViewColumn:t.listViewColumn?s({},t.listViewColumn,{computedWidth:B7(n)}):void 0});function B7(e){return b1(e).viewportInnerSize.width}const $7=H0(y3,m3,j3,((e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1})));let U7=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class G7{constructor(e){this.chunkSize=void 0,this.getCacheKeys=e=>{if(this.chunkSize<1||"number"!=typeof e.start)return[e];const t=[];for(let n=e.start;n<e.end;n+=this.chunkSize){const r=Math.min(n+this.chunkSize-1,e.end);t.push(s({},e,{start:n,end:r}))}return t},this.splitResponse=(e,t)=>{const n=this.getCacheKeys(e),r=new Map;return n.forEach((n=>{const o=n.end===e.end,i=s({},t,{pageInfo:s({},t.pageInfo,{hasNextPage:void 0!==t.pageInfo?.hasNextPage&&!o||t.pageInfo?.hasNextPage,nextCursor:void 0===t.pageInfo?.nextCursor||o?t.pageInfo?.nextCursor:t.rows[n.end+1].id}),rows:"number"!=typeof n.start||"number"!=typeof e.start?t.rows:t.rows.slice(n.start-e.start,n.end-e.start+1)});r.set(n,i)})),r},this.chunkSize=e}}function K7(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}G7.mergeResponses=e=>1===e.length?e[0]:e.reduce(((e,t)=>({rows:[...e.rows,...t.rows],rowCount:t.rowCount,pageInfo:t.pageInfo})),{rows:[],rowCount:0,pageInfo:{}});class q7{constructor({ttl:e=3e5,getKey:t=K7}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=e,this.getKey=t}set(e,t){const n=this.getKey(e),r=Date.now()+this.ttl;this.cache[n]={value:t,expiry:r}}get(e){const t=this.getKey(e),n=this.cache[t];if(n){if(!(Date.now()>n.expiry))return n.value;delete this.cache[t]}}clear(){this.cache={}}}class X7 extends Error{constructor(e){super(e.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=e.params,this.cause=e.cause}}class J7 extends Error{constructor(e){super(e.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=e.params,this.cause=e.cause}}const Q7={clear:()=>{},get:()=>{},set:()=>{}};function Z7(e,t={}){return null===e?Q7:e??new q7(t)}const e8=(e,n)=>{((e,n)=>{(e=>{const n=t.useRef(null),r=t.useRef(null),o=t.useRef(null),i=t.useRef(null),s=t.useRef(null),a=t.useRef(null);e.current.register("public",{rootElementRef:n}),e.current.register("private",{mainElementRef:r,virtualScrollerRef:o,virtualScrollbarVerticalRef:i,virtualScrollbarHorizontalRef:s,columnHeadersContainerRef:a})})(e),((e,n)=>{t.useEffect((()=>{e.current.setState((e=>s({},e,{props:{getRowId:n.getRowId}})))}),[e,n.getRowId])})(e,n),(e=>{const n=eU();void 0===e.current.state.isRtl&&(e.current.state.isRtl=n);const r=t.useRef(!0);t.useEffect((()=>{r.current?r.current=!1:e.current.setState((e=>s({},e,{isRtl:n})))}),[e,n])})(e),((e,n)=>{r4(e,{getLogger:t.useCallback((e=>I9?O9(e,"debug",n.logger):n.logLevel?O9(e,n.logLevel.toString(),n.logger):D9),[n.logLevel,n.logger])},"private")})(e,n),(e=>{const n=t.useRef({}),r=t.useCallback((e=>{n.current[e.stateId]=e}),[]),o=t.useCallback(((t,r)=>{let o;if(o="function"==typeof t?t(e.current.state):t,e.current.state===o)return!1;const i={current:{state:o}};let s=!1;const a=[];if(Object.keys(n.current).forEach((t=>{const r=n.current[t],o=r.stateSelector(e),l=r.stateSelector(i);l!==o&&(a.push({stateId:r.stateId,hasPropChanged:l!==r.propModel}),void 0!==r.propModel&&l!==r.propModel&&(s=!0))})),a.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${a[0].stateId}, therefore, you're not allowed to update ${a.map((e=>e.stateId)).join(", ")} in the same transaction.`);if(s||(e.current.state=o,e.current.publishEvent("stateChange",o),e.current.store.update(o)),1===a.length){const{stateId:t,hasPropChanged:o}=a[0],l=n.current[t],u=l.stateSelector(i);l.propOnChange&&o&&l.propOnChange(u,{reason:r,api:e.current}),s||e.current.publishEvent(l.changeEvent,u,{reason:r})}return!s}),[e]),i={updateControlState:t.useCallback(((t,n,r)=>e.current.setState((e=>s({},e,{[t]:n(e[t])})),r)),[e]),registerControlState:r};r4(e,{setState:o},"public"),r4(e,i,"private")})(e),(e=>{const n=t.useRef({}),r=t.useRef(!1),o=t.useCallback((e=>{!r.current&&e&&(r.current=!0,Object.values(e.appliers).forEach((e=>{e()})),r.current=!1)}),[]),i=t.useCallback(((e,t,r)=>{n.current[e]||(n.current[e]={processors:new Map,processorsAsArray:[],appliers:{}});const i=n.current[e];return i.processors.get(t)!==r&&(i.processors.set(t,r),i.processorsAsArray=Array.from(n.current[e].processors.values()).filter((e=>null!==e)),o(i)),()=>{n.current[e].processors.set(t,null),n.current[e].processorsAsArray=Array.from(n.current[e].processors.values()).filter((e=>null!==e))}}),[o]),s=t.useCallback(((e,t,r)=>(n.current[e]||(n.current[e]={processors:new Map,processorsAsArray:[],appliers:{}}),n.current[e].appliers[t]=r,()=>{const r=Bz(n.current[e].appliers,[t].map(N9));n.current[e].appliers=r})),[]),a=t.useCallback((e=>{o(n.current[e])}),[o]),l={unstable_applyPipeProcessors:t.useCallback(((...e)=>{const[t,r,o]=e;if(!n.current[t])return r;const i=n.current[t].processorsAsArray;let s=r;for(let e=0;e<i.length;e+=1)s=i[e](s,o);return s}),[])};r4(e,{registerPipeProcessor:i,registerPipeApplier:s,requestPipeProcessorsApplication:a},"private"),r4(e,l,"public")})(e),(e=>{const n=t.useRef(new Map),r=t.useRef({}),o=t.useCallback(((t,n,o)=>{const i=()=>{const e=Bz(r.current[n],[t].map(N9));r.current[n]=e};r.current[n]||(r.current[n]={});const s=r.current[n],a=s[t];return s[t]=o,a&&a!==o?(t===e.current.getActiveStrategy(F9[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[e]),i=t.useCallback(((t,n)=>{const o=e.current.getActiveStrategy(F9[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");const i=r.current[t];if(!i||!i[o])throw new Error(`No processor found for processor "${t}" on strategy "${o}"`);return(0,i[o])(n)}),[e]),s=t.useCallback((e=>{const t=Array.from(n.current.entries()).find((([,t])=>t.group===e&&t.isAvailable()));return t?.[0]??Y9}),[]),a=t.useCallback(((t,r,o)=>{n.current.set(r,{group:t,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);r4(e,{registerStrategyProcessor:o,applyStrategyProcessor:i,getActiveStrategy:s,setStrategyAvailability:a},"private")})(e),((e,n)=>{const r=t.useCallback((e=>{if(null==n.localeText[e])throw new Error(`Missing translation for key ${e}.`);return n.localeText[e]}),[n.localeText]);e.current.register("public",{getLocaleText:r})})(e,n),e.current.register("private",{rootProps:n})})(e,n),((e,n)=>{const r=(e=>{const{classes:n}=e;return t.useMemo((()=>$z({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},e0,n)),[n])})({classes:n.classes}),o=t.useCallback((t=>{const o=s({},J9,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=n.checkboxSelection,a=null!=t.lookup[X9];return i&&!a?(t.lookup[X9]=o,t.orderedFields=[X9,...t.orderedFields]):!i&&a?(delete t.lookup[X9],t.orderedFields=t.orderedFields.filter((e=>e!==X9))):i&&a&&(t.lookup[X9]=s({},o,t.lookup[X9]),n.columns.some((e=>e.field===X9))||(t.orderedFields=[X9,...t.orderedFields.filter((e=>e!==X9))])),t}),[e,r,n.columns,n.checkboxSelection]);l6(e,"hydrateColumns",o)})(e,n),(e=>{M6(e,Y9,"rowTreeCreation",n7)})(e),W9(z9,e,n),W9(i7,e,n),W9(c6,e,n),W9(t7,e,n),W9(W6,e,n),W9(e7,e,n),W9(E6,e,n),W9(s7,e,n),W9(V6,e,n),W9(x6,e,n),W9(W7,e,n),W9(h6,e,n),W9(I7,e,n),W9(s6,e,n),W9(k7,e,n),W9(i4,e,n),W9(d7,e,n),W9(b7,e,n),W9(V7,e,n),((e,n)=>{const r=V9(e,"useGridKeyboardNavigation"),o=eU(),i=n.listView,s=t.useCallback((()=>z6(e)),[e]),a="DataGrid"!==n.signature&&n.headerFilters,l=t.useCallback(((t,n,o="left",s="up")=>{const a=C3(e),l=e.current.unstable_getCellColSpanInfo(n,t);l&&l.spannedByColSpan&&("left"===o?t=l.leftVisibleCellIndex:"right"===o&&(t=l.rightVisibleCellIndex));const u=i?c4(e).field:Z0(e)[t],c=function(e,t,n,r){const o=a4(e);if(!o[t]?.[n])return t;const i=x3(e);let s=i.indexOf(t)+("down"===r?1:-1);for(;s>=0&&s<i.length;){const e=i[s];if(!o[e]?.[n])return e;s+="down"===r?1:-1}return t}(e,n,u,s),d=a.findIndex((e=>e.id===c));r.debug(`Navigating to cell row ${d}, col ${t}`),e.current.scrollToIndexes({colIndex:t,rowIndex:d}),e.current.setCellFocus(c,u)}),[e,r,i]),u=t.useCallback(((t,n)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),c=t.useCallback(((t,n)=>{r.debug(`Navigating to header filter col ${t}`),e.current.scrollToIndexes({colIndex:t});const o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFilterFocus(o,n)}),[e,r]),d=t.useCallback(((t,n,o)=>{r.debug(`Navigating to header col ${t}`),e.current.scrollToIndexes({colIndex:t});const{field:i}=e.current.getVisibleColumns()[t];e.current.setColumnGroupHeaderFocus(i,n,o)}),[e,r]),h=t.useCallback((e=>s()[e]?.id),[s]),p=t.useCallback(((t,n)=>{const r=n.currentTarget.querySelector(`.${t0.columnHeaderTitleContainerContent}`);if(r&&r.contains(n.target)&&t.field!==J9.field)return;const i=s(),p=e.current.getViewportPageSize(),f=t.field?e.current.getColumnIndex(t.field):0,m=i.length>0?0:null,g=i.length-1,b=Q0(e).length-1,y=Z5(e);let w=!0;switch(n.key){case"ArrowDown":a?c(f,n):null!==m&&l(f,h(m));break;case"ArrowRight":{const e=F6({currentColIndex:f,firstColIndex:0,lastColIndex:b,isRtl:o});null!==e&&u(e,n);break}case"ArrowLeft":{const e=Y6({currentColIndex:f,firstColIndex:0,lastColIndex:b,isRtl:o});null!==e&&u(e,n);break}case"ArrowUp":y>0&&d(f,y-1,n);break;case"PageDown":null!==m&&null!==g&&l(f,h(Math.min(m+p,g)));break;case"Home":u(0,n);break;case"End":u(b,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:w=!1}w&&n.preventDefault()}),[e,s,a,c,l,h,o,u,d]),f=t.useCallback(((t,n)=>{const r=G5(e)===t.field,i=K5(e)===t.field;if(r||i||!n6(n.key))return;const a=s(),d=e.current.getViewportPageSize(),p=t.field?e.current.getColumnIndex(t.field):0,f=a.length-1,m=Q0(e).length-1;let g=!0;switch(n.key){case"ArrowDown":{const e=h(0);null!=e&&l(p,e);break}case"ArrowRight":{const e=F6({currentColIndex:p,firstColIndex:0,lastColIndex:m,isRtl:o});null!==e&&c(e,n);break}case"ArrowLeft":{const r=Y6({currentColIndex:p,firstColIndex:0,lastColIndex:m,isRtl:o});null!==r?c(r,n):e.current.setColumnHeaderFilterFocus(t.field,n);break}case"ArrowUp":u(p,n);break;case"PageDown":null!==f&&l(p,h(Math.min(0+d,f)));break;case"Home":c(0,n);break;case"End":c(m,n);break;case" ":break;default:g=!1}g&&n.preventDefault()}),[e,s,c,o,u,l,h]),m=t.useCallback(((t,n)=>{const r=f4(e);if(null===r)return;const{field:o,depth:i}=r,{fields:a,depth:c,maxDepth:p}=t,f=s(),m=e.current.getViewportPageSize(),g=e.current.getColumnIndex(o),b=o?e.current.getColumnIndex(o):0,y=f.length-1,w=Q0(e).length-1;let v=!0;switch(n.key){case"ArrowDown":c===p-1?u(g,n):d(g,i+1,n);break;case"ArrowUp":c>0&&d(g,i-1,n);break;case"ArrowRight":{const e=a.length-a.indexOf(o)-1;g+e+1<=w&&d(g+e+1,i,n);break}case"ArrowLeft":{const e=a.indexOf(o);g-e-1>=0&&d(g-e-1,i,n);break}case"PageDown":null!==y&&l(b,h(Math.min(0+m,y)));break;case"Home":d(0,i,n);break;case"End":d(w,i,n);break;case" ":break;default:v=!1}v&&n.preventDefault()}),[e,s,u,d,l,h]),g=t.useCallback(((t,n)=>{if(D6(n))return;const r=e.current.getCellParams(t.id,t.field);if(r.cellMode===x5.Edit||!n6(n.key))return;if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:n,cell:r}))return;const d=s();if(0===d.length)return;const p=e.current.getViewportPageSize(),f=i?()=>0:e.current.getColumnIndex,m=t.field?f(t.field):0,g=d.findIndex((e=>e.id===t.id)),b=d.length-1,y=(i?[c4(e)]:Q0(e)).length-1;let w=!0;switch(n.key){case"ArrowDown":g<b&&l(m,h(g+1),o?"right":"left","down");break;case"ArrowUp":g>0?l(m,h(g-1)):a?c(m,n):u(m,n);break;case"ArrowRight":{const e=F6({currentColIndex:m,firstColIndex:0,lastColIndex:y,isRtl:o});null!==e&&l(e,h(g),o?"left":"right");break}case"ArrowLeft":{const e=Y6({currentColIndex:m,firstColIndex:0,lastColIndex:y,isRtl:o});null!==e&&l(e,h(g),o?"right":"left");break}case"Tab":n.shiftKey&&m>0?l(m-1,h(g),"left"):!n.shiftKey&&m<y&&l(m+1,h(g),"right");break;case" ":{if(t.field===h5)break;const e=t.colDef;if(e&&("__tree_data_group__"===e.field||(v=e.field)===d5||null!==(e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null})(v)))break;!n.shiftKey&&g<b&&l(m,h(Math.min(g+p,b)));break}case"PageDown":g<b&&l(m,h(Math.min(g+p,b)));break;case"PageUp":{const e=Math.max(g-p,0);e!==g&&e>=0?l(m,h(e)):u(m,n);break}case"Home":n.ctrlKey||n.metaKey||n.shiftKey?l(0,h(0)):l(0,h(g));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?l(y,h(b)):l(y,h(g));break;default:w=!1}var v;w&&n.preventDefault()}),[e,s,o,l,h,a,c,u,i]),b=t.useCallback(((e,{event:t})=>" "!==t.key&&e),[]);l6(e,"canStartEditing",b),H1(e,"columnHeaderKeyDown",p),H1(e,"headerFilterKeyDown",f),H1(e,"columnGroupHeaderKeyDown",m),H1(e,"cellKeyDown",g)})(e,n),((e,n)=>{const r=V9(e,"useGridSelection"),o=t.useCallback((e=>(...t)=>{n.rowSelection&&e(...t)}),[n.rowSelection]),i=n.signature!==P3.DataGrid&&(n.rowSelectionPropagation?.parents||n.rowSelectionPropagation?.descendants),a=t.useMemo((()=>n.rowSelectionModel),[n.rowSelectionModel]),l=t.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:a,propOnChange:n.onRowSelectionModelChange,stateSelector:k4,changeEvent:"rowSelectionChange"});const{checkboxSelection:u,disableRowSelectionOnClick:c,isRowSelectable:d}=n,h=R9(n),p=m0(e,U1),f=m0(e,J1)>1,m=t.useCallback((t=>{let n=t;const r=l.current??t,o=e.current.isRowSelected(t);if(o){const t=_3(e),o=t.findIndex((e=>e===r)),i=t.findIndex((e=>e===n));if(o===i)return;n=o>i?t[i+1]:t[i-1]}l.current=t,e.current.selectRowRange({startId:r,endId:n},!o)}),[e]),g=PW((()=>n.pagination&&n.checkboxSelectionVisibleOnly&&"client"===n.paginationMode?U3(e):_3(e))),b=t.useCallback(((t,o)=>{if(n.signature===P3.DataGrid&&!h&&("include"!==t.type||t.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join("\n"));k4(e)!==t&&(r.debug("Setting selection model"),e.current.setState((e=>s({},e,{rowSelection:n.rowSelection?t:o7})),o))}),[e,r,n.rowSelection,n.signature,h]),y=t.useCallback((t=>R4(e).has(t)),[e]),w=t.useCallback((t=>{if(!1===n.rowSelection)return!1;if(d&&!d(e.current.getRowParams(t)))return!1;const r=G1(e,t);return"footer"!==r?.type&&"pinnedRow"!==r?.type}),[e,n.rowSelection,d]),v=t.useCallback((()=>E4(e)),[e]),S=t.useCallback(((t,o=!0,s=!1)=>{if(e.current.isRowSelectable(t))if(l.current=t,s){r.debug(`Setting selection for row ${t}`);const s={type:"include",ids:new Set},a=e=>{s.ids.add(e)};o&&(a(t),i&&T9(e,p,t,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,a)),e.current.setRowSelectionModel(s,"singleRowSelection")}else{r.debug(`Toggling selection for row ${t}`);const s=k4(e),a={type:s.type,ids:new Set(s.ids)},l=x4(a);l.unselect(t);const u=e=>{l.select(e)},c=e=>{l.unselect(e)};o?(u(t),i&&T9(e,p,t,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,u)):i&&E9(e,p,t,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,c),("include"===a.type&&a.ids.size<2||h)&&e.current.setRowSelectionModel(a,"singleRowSelection")}}),[e,r,i,p,n.rowSelectionPropagation?.descendants,n.rowSelectionPropagation?.parents,h]),C=t.useCallback(((t,o=!0,s=!1)=>{if(r.debug("Setting selection for several rows"),!1===n.rowSelection)return;const a=new Set;for(let n=0;n<t.length;n+=1){const r=t[n];e.current.isRowSelectable(r)&&a.add(r)}const l=k4(e);let u;if(s){if(u={type:"include",ids:a},o){const t=x4(u);if(i){const r=e=>{t.select(e)};for(const t of a)T9(e,p,t,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,r)}}else u.ids=new Set;if(l.type===u.type&&u.ids.size===l.ids.size&&Array.from(u.ids).every((e=>l.ids.has(e))))return}else{u={type:l.type,ids:new Set(l.ids)};const t=x4(u),r=e=>{t.select(e)},s=e=>{t.unselect(e)};for(const l of a)o?(t.select(l),i&&T9(e,p,l,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,r)):(s(l),i&&E9(e,p,l,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,s))}("include"===u.type&&u.ids.size<2||h)&&e.current.setRowSelectionModel(u,"multipleRowsSelection")}),[r,i,h,e,p,n.rowSelectionPropagation?.descendants,n.rowSelectionPropagation?.parents,n.rowSelection]),_=t.useCallback((t=>{if(!f||!i||0===t.ids.size&&"include"===t.type)return t;const r={type:t.type,ids:new Set(t.ids)},o=x4(r),s=e=>{o.select(e)};for(const r of t.ids)T9(e,p,r,n.rowSelectionPropagation?.descendants??!1,n.rowSelectionPropagation?.parents??!1,s,o);return r}),[e,p,n.rowSelectionPropagation?.descendants,n.rowSelectionPropagation?.parents,f,i]),M=t.useCallback((({startId:t,endId:n},o=!0,i=!1)=>{if(!e.current.getRow(t)||!e.current.getRow(n))return;r.debug(`Expanding selection from row ${t} to row ${n}`);const s=_3(e),a=s.indexOf(t),l=s.indexOf(n),[u,c]=a>l?[l,a]:[a,l],d=s.slice(u,c+1);e.current.selectRows(d,o,i)}),[e,r]),x={selectRows:C,selectRowRange:M,getPropagatedRowSelectionModel:_};r4(e,{selectRow:S,setRowSelectionModel:b,getSelectedRows:v,isRowSelected:y,isRowSelectable:w},"public"),r4(e,x,n.signature===P3.DataGrid?"private":"public");const k=t.useRef(!0),R=t.useCallback(((t=!1)=>{if(k.current)return;const r=k4(e),o=$1(e),i=S3(e),s=e=>"server"===n.filterMode?!o[e]:!o[e]||!1===i[e],a={type:r.type,ids:new Set(r.ids)},l=x4(a);let u=!1;for(const e of r.ids){if(s(e)){if(n.keepNonExistentRowsSelected)continue;l.unselect(e),u=!0;continue}if(!n.rowSelectionPropagation?.parents)continue;const t=p[e];if("group"===t?.type){if(t.isAutoGenerated){l.unselect(e),u=!0;continue}t.children.every((e=>!1===i[e]))||(l.unselect(e),u=!0)}}const c=f&&n.rowSelectionPropagation?.parents&&(a.ids.size>0||"exclude"===a.type);if(u||c&&!t)if(c)if("exclude"===a.type){const t=g(),r=[];for(let e=0;e<t.length;e+=1){const o=t[e];!n.keepNonExistentRowsSelected&&s(o)||!l.has(o)||r.push(o)}e.current.selectRows(r,!0,!0)}else e.current.selectRows(Array.from(a.ids),!0,!0);else e.current.setRowSelectionModel(a,"multipleRowsSelection")}),[e,f,n.rowSelectionPropagation?.parents,n.keepNonExistentRowsSelected,n.filterMode,p,g]),T=t.useCallback(((t,n)=>{const r=n.metaKey||n.ctrlKey,o=!u&&!r&&!(e=>!!e.key)(n),i=!h||o,s=e.current.isRowSelected(t),a=T4(e)>1&&i||!s;e.current.selectRow(t,a,i)}),[e,h,u]),E=t.useCallback(((t,n)=>{if(c)return;const r=n.target.closest(`.${t0.cell}`)?.getAttribute("data-field");if(r!==J9.field&&r!==h5){if(r){const t=e.current.getColumn(r);if(t?.type===V5)return}"pinnedRow"!==G1(e,t.id).type&&(n.shiftKey&&h?m(t.id):T(t.id,n))}}),[c,h,e,m,T]),L=t.useCallback(((e,t)=>{h&&t.shiftKey&&window.getSelection()?.removeAllRanges()}),[h]),I=t.useCallback(((t,n)=>{h&&n.nativeEvent.shiftKey?m(t.id):e.current.selectRow(t.id,t.value,!h)}),[e,m,h]),P=t.useCallback((t=>{const r=y3(e),o=w3(e),s=r.items.length>0||o?.some((e=>e.length));n.isRowSelectable||n.checkboxSelectionVisibleOnly||!i||s?e.current.selectRows(g(),t):e.current.setRowSelectionModel({type:t?"exclude":"include",ids:new Set})}),[e,i,g,n.checkboxSelectionVisibleOnly,n.isRowSelectable]),D=t.useCallback((e=>{P(e.value)}),[P]),H=t.useCallback(((t,n)=>{if(e.current.getCellMode(t.id,t.field)!==x5.Edit&&!D6(n)){if(n6(n.key)&&n.shiftKey){const r=h4(e);if(r&&r.id!==t.id){n.preventDefault();const o=e.current.isRowSelected(r.id);if(!h)return void e.current.selectRow(r.id,!o,!0);const i=e.current.getRowIndexRelativeToVisibleRows(r.id),s=e.current.getRowIndexRelativeToVisibleRows(t.id);let a,l;i>s?o?(a=s,l=i-1):(a=s,l=i):o?(a=i+1,l=s):(a=i,l=s);const u=K3(e),c=[];for(let e=a;e<=l;e+=1)c.push(u.rows[e].id);return void e.current.selectRows(c,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void T(t.id,n);"A"===String.fromCharCode(n.keyCode)&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),P(!0))}}),[e,h,T,P]),O=PW((()=>{if(!n.rowSelection)return void e.current.setRowSelectionModel(o7);if(void 0===a)return;if(!i||!f||"include"===a.type&&0===a.ids.size)return void e.current.setRowSelectionModel(a);const t=e.current.getPropagatedRowSelectionModel(a);t.type===a.type&&t.ids.size===a.ids.size&&Array.from(a.ids).every((e=>t.ids.has(e)))?e.current.setRowSelectionModel(a):e.current.setRowSelectionModel(t)}));H1(e,"sortedRowsSet",o((()=>R(!0)))),H1(e,"filteredRowsSet",o((()=>R()))),H1(e,"rowClick",o(E)),H1(e,"rowSelectionCheckboxChange",o(I)),H1(e,"headerSelectionCheckboxChange",D),H1(e,"cellMouseDown",o(L)),H1(e,"cellKeyDown",o(H)),t.useEffect((()=>{O()}),[e,a,n.rowSelection,O]);const A=null!=a;t.useEffect((()=>{if(A||!n.rowSelection||"function"!=typeof w)return;const t=k4(e);if("include"!==t.type)return;const r=new Set;for(const e of t.ids)w(e)&&r.add(e);r.size<t.ids.size&&e.current.setRowSelectionModel({type:t.type,ids:r})}),[e,w,A,n.rowSelection]),t.useEffect((()=>{if(!n.rowSelection||A)return;const t=k4(e);!h&&("include"===t.type&&t.ids.size>1||"exclude"===t.type)&&e.current.setRowSelectionModel(o7)}),[e,h,u,A,n.rowSelection]),t.useEffect((()=>{o(R)}),[R,o]),t.useEffect((()=>{k.current&&(k.current=!1)}),[])})(e,n),function(e,n){const r=V9(e,"useGridColumns"),o=t.useRef(n.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:X0,changeEvent:"columnVisibilityModelChange"});const i=t.useCallback((t=>{r.debug("Updating columns state."),e.current.setState(d6(t)),e.current.publishEvent("columnsChange",t.orderedFields)}),[r,e]),a=t.useCallback((t=>K0(e)[t]),[e]),l=t.useCallback((()=>q0(e)),[e]),u=t.useCallback((()=>Q0(e)),[e]),c=t.useCallback(((t,n=!0)=>(n?Q0(e):q0(e)).findIndex((e=>e.field===t))),[e]),d=t.useCallback((t=>{const n=c(t);return r1(e)[n]}),[e,c]),h=t.useCallback((t=>{X0(e)!==t&&(e.current.setState((n=>s({},n,{columns:o3({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})}))),e.current.updateRenderContext?.())}),[e]),p=t.useCallback((t=>{if(G4(e))return void e.current.updateNonPivotColumns(t);const n=o3({apiRef:e,columnsToUpsert:t,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});i(n)}),[e,i]),f=t.useCallback(((t,n)=>{const r=X0(e);if(n!==(r[t]??!0)){const o=s({},r,{[t]:n});e.current.setColumnVisibilityModel(o)}}),[e]),m=t.useCallback((t=>G0(e).findIndex((e=>e===t))),[e]),g=t.useCallback(((t,n)=>{const o=G0(e),a=m(t);if(a===n)return;r.debug(`Moving column ${t} to index ${n}`);const l=[...o],u=l.splice(a,1)[0];l.splice(n,0,u),i(s({},U0(e),{orderedFields:l}));const c={column:e.current.getColumn(t),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(t),oldIndex:a};e.current.publishEvent("columnIndexChange",c)}),[e,r,i,m]),b=t.useCallback(((t,n)=>{r.debug(`Updating column ${t} width to ${n}`);const o=U0(e),a=s({},o.lookup[t],{width:n,hasBeenResized:!0});i(n3(s({},o,{lookup:s({},o.lookup,{[t]:a})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:a,width:n})}),[e,r,i]),y={setColumnIndex:g};r4(e,{getColumn:a,getAllColumns:l,getColumnIndex:c,getColumnPosition:d,getVisibleColumns:u,getColumnIndexRelativeToVisibleColumns:m,updateColumns:p,setColumnVisibilityModel:h,setColumnVisibility:f,setColumnWidth:b},"public"),r4(e,y,n.signature===P3.DataGrid?"private":"public");const w=t.useCallback(((t,r)=>{const o={},i=X0(e);(!r.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(n.initialState?.columns?.columnVisibilityModel??{}).length>0||Object.keys(i).length>0)&&(o.columnVisibilityModel=i),o.orderedFields=G0(e);const a=q0(e),l={};return a.forEach((e=>{if(e.hasBeenResized){const t={};e3.forEach((n=>{let r=e[n];r===1/0&&(r=-1),t[n]=r})),l[e.field]=t}})),Object.keys(l).length>0&&(o.dimensions=l),s({},t,{columns:o})}),[e,n.columnVisibilityModel,n.initialState?.columns]),v=t.useCallback(((t,n)=>{const r=n.stateToRestore.columns?.columnVisibilityModel,o=n.stateToRestore.columns;if(null==r&&null==o)return t;const i=o3({apiRef:e,columnsToUpsert:[],initialState:o,columnVisibilityModel:r,keepOnlyColumnsToUpsert:!1});return e.current.setState(d6(i)),null!=o&&e.current.publishEvent("columnsChange",i.orderedFields),t}),[e]),S=t.useCallback(((e,t)=>{if(t===u1.columns){const e=n.slots.columnsPanel;return(0,sn.jsx)(e,s({},n.slotProps?.columnsPanel))}return e}),[n.slots.columnsPanel,n.slotProps?.columnsPanel]),C=t.useCallback((t=>{const r=G4(e);return n.disableColumnSelector||r?t:[...t,"columnMenuColumnsItem"]}),[n.disableColumnSelector,e]);l6(e,"columnMenu",C),l6(e,"exportState",w),l6(e,"restoreState",v),l6(e,"preferencePanel",S);const _=t.useRef(null);H1(e,"viewportInnerSizeChange",(t=>{if(_.current!==t.width){if(_.current=t.width,!Q0(e).some((e=>e.flex&&e.flex>0)))return;i(n3(U0(e),e.current.getRootDimensions()))}}));const M=t.useCallback((()=>{r.info("Columns pipe processing have changed, regenerating the columns");const t=o3({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});i(t)}),[e,r,i]);u6(e,"hydrateColumns",M);const x=t.useRef(!0);t.useEffect((()=>{if(x.current)return void(x.current=!1);if(r.info(`GridColumns have changed, new length ${n.columns.length}`),o.current===n.columns)return;const t=o3({apiRef:e,initialState:void 0,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});o.current=n.columns,i(t)}),[r,e,i,n.columns]),t.useEffect((()=>{void 0!==n.columnVisibilityModel&&e.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[e,r,n.columnVisibilityModel])}(e,n),((e,n)=>{const r=V9(e,"useGridRows"),o=t.useRef(Date.now()),i=t.useRef(n.rowCount),a=qW(),l=t.useCallback((t=>{const n=$1(e)[t];if(n)return n;const r=G1(e,t);return r&&t5(r)?{[X2]:t}:null}),[e]),u=t.useCallback((t=>a5(e,t)),[e]),c=t.useCallback((({cache:t,throttle:r})=>{const i=()=>{o.current=Date.now(),e.current.setState((t=>s({},t,{rows:e5({apiRef:e,rowCountProp:n.rowCount,loadingProp:n.loading,previousTree:U1(e),previousTreeDepths:X1(e),previousGroupsToFetch:K1(e)})}))),e.current.publishEvent("rowsSet")};if(a.clear(),e.current.caches.rows=t,!r)return void i();const l=n.throttleRowsMs-(Date.now()-o.current);l>0?a.start(l,i):i()}),[n.throttleRowsMs,n.rowCount,n.loading,e,a]),d=t.useCallback((t=>{if(r.debug(`Updating all rows, new length ${t.length}`),G4(e))return void e.current.updateNonPivotRows(t,!1);const o=Q2({rows:t,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),i=e.current.caches.rows;o.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,c({cache:o,throttle:!0})}),[r,n.getRowId,n.loading,n.rowCount,c,e]),h=t.useCallback((t=>{if(n.signature===P3.DataGrid&&t.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(G4(e))return void e.current.updateNonPivotRows(t);const r=i5(e,t,n.getRowId),o=r5({updates:r,getRowId:n.getRowId,previousCache:e.current.caches.rows});c({cache:o,throttle:!0})}),[n.signature,n.getRowId,c,e]),p=t.useCallback(((t,r)=>{const o=i5(e,t,n.getRowId),i=r5({updates:o,getRowId:n.getRowId,previousCache:e.current.caches.rows,groupKeys:r??[]});c({cache:i,throttle:!1})}),[n.getRowId,c,e]),f=t.useCallback((t=>{r.debug(`Setting loading to ${t}`),e.current.setState((e=>s({},e,{rows:s({},e.rows,{loading:t})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=t}),[e,r]),m=t.useCallback((()=>{const t=Q1(e),n=$1(e);return new Map(t.map((e=>[e,n[e]??{}])))}),[e]),g=t.useCallback((()=>W1(e)),[e]),b=t.useCallback((()=>Q1(e)),[e]),y=t.useCallback((t=>{const{rowIdToIndexMap:n}=K3(e);return n.get(t)}),[e]),w=t.useCallback(((t,n)=>{const r=G1(e,t);if(!r)throw new Error(`MUI X: No row with id #${t} found.`);if("group"!==r.type)throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const o=s({},r,{childrenExpanded:n});e.current.setState((e=>s({},e,{rows:s({},e.rows,{tree:s({},e.rows.tree,{[t]:o})})}))),e.current.publishEvent("rowExpansionChange",o)}),[e]),v=t.useCallback((t=>G1(e,t)??null),[e]),S=t.useCallback((({skipAutoGeneratedRows:t=!0,groupId:n,applySorting:r,applyFiltering:o})=>{const i=U1(e);let s;if(r){const r=i[n];if(!r)return[];const o=p3(e);s=[];for(let e=o.findIndex((e=>e===n))+1;e<o.length&&i[o[e]].depth>r.depth;e+=1){const n=o[e];t&&t5(i[n])||s.push(n)}}else s=n5(i,n,t);if(o){const t=S3(e);s=d3(t)?s:s.filter((e=>!1!==t[e]))}return s}),[e]),C=t.useCallback(((t,n)=>{const o=G1(e,t);if(!o)throw new Error(`MUI X: No row with id #${t} found.`);if(o.parent!==q2)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if("leaf"!==o.type)throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState((o=>{const i=U1(e)[q2],a=i.children,l=a.findIndex((e=>e===t));if(-1===l||l===n)return o;r.debug(`Moving row ${t} to index ${n}`);const u=[...a];return u.splice(n,0,u.splice(l,1)[0]),s({},o,{rows:s({},o.rows,{tree:s({},o.rows.tree,{[q2]:s({},i,{children:u})})})})})),e.current.publishEvent("rowsSet")}),[e,r]),_={getRow:l,setLoading:f,getRowId:u,getRowModels:m,getRowsCount:g,getAllRowIds:b,setRows:d,updateRows:h,getRowNode:v,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:t.useCallback(((t,r)=>{if(n.signature===P3.DataGrid&&r.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0===r.length)return;if(J1(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const o=s({},U1(e)),i=s({},$1(e)),a=o[q2],l=[...a.children],u=new Set;for(let e=0;e<r.length;e+=1){const s=r[e],a=J2(s,n.getRowId,"A row was provided without id when calling replaceRows()."),[c]=l.splice(t+e,1,a);u.has(c)||(delete i[c],delete o[c]);const d={id:a,depth:0,parent:q2,type:"leaf",groupingKey:null};i[a]=s,o[a]=d,u.add(a)}o[q2]=s({},a,{children:l});const c=l.filter((e=>"leaf"===o[e]?.type));e.current.caches.rows.dataRowIdToModelLookup=i,e.current.setState((e=>s({},e,{rows:s({},e.rows,{loading:n.loading,totalRowCount:Math.max(n.rowCount||0,l.length),dataRowIdToModelLookup:i,dataRowIds:c,tree:o})}))),e.current.publishEvent("rowsSet")}),[e,n.signature,n.getRowId,n.loading,n.rowCount])},M={setRowIndex:C,setRowChildrenExpansion:w,getRowGroupChildren:S},x={updateNestedRows:p},k=t.useCallback((()=>{let t;r.info("Row grouping pre-processing have changed, regenerating the row tree"),t=e.current.caches.rows.rowsBeforePartialUpdates===n.rows?s({},e.current.caches.rows,{updates:{type:"full",rows:Q1(e)}}):Q2({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),c({cache:t,throttle:!1})}),[r,e,n.rows,n.getRowId,n.loading,n.rowCount,c]),R=OW((()=>n.dataSource)),T=t.useCallback((e=>{n.dataSource&&n.dataSource!==R.current?R.current=n.dataSource:"rowTreeCreation"===e&&k()}),[k,R,n.dataSource]),E=t.useCallback((()=>{e.current.getActiveStrategy(j9.RowTree)!==q1(e)&&k()}),[e,k]);H1(e,"activeStrategyProcessorChange",T),H1(e,"strategyAvailabilityChange",E);const L=t.useCallback((()=>{e.current.setState((t=>{const r=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:U1(e),treeDepths:X1(e),dataRowIds:Q1(e),dataRowIdToModelLookup:$1(e)});return s({},t,{rows:s({},t.rows,r,{totalTopLevelRowCount:Z2({tree:r.tree,rowCountProp:n.rowCount})})})})),e.current.publishEvent("rowsSet")}),[e,n.rowCount]);u6(e,"hydrateRows",L),r4(e,_,"public"),r4(e,M,n.signature===P3.DataGrid?"private":"public"),r4(e,x,"private");const I=t.useRef(!0);t.useEffect((()=>{if(I.current)return void(I.current=!1);let t=!1;n.rowCount!==i.current&&(t=!0,i.current=n.rowCount);const o=n.dataSource?Z1(e):n.rows,a=e.current.caches.rows.rowsBeforePartialUpdates===o,l=e.current.caches.rows.loadingPropBeforePartialUpdates===n.loading,u=e.current.caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;a&&(l||(e.current.setState((e=>s({},e,{rows:s({},e.rows,{loading:n.loading})}))),e.current.caches.rows.loadingPropBeforePartialUpdates=n.loading),u||(e.current.setState((e=>s({},e,{rows:s({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})}))),e.current.caches.rows.rowCountPropBeforePartialUpdates=n.rowCount),!t)||(r.debug(`Updating all rows, new length ${o?.length}`),c({cache:Q2({rows:o,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),throttle:!1}))}),[n.rows,n.rowCount,n.getRowId,n.loading,n.dataSource,r,c,e])})(e,n),((e,n)=>{const r=OW((()=>e.current.state.rowSpanning!==N7?z7(n,e):j7)),o=t.useCallback(((t,o=!1)=>{const{range:i,rows:a}=K3(e,(n.pagination,n.paginationMode));if(null===i||!O7(t))return;o&&(r.current=j7);const l=function(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}({firstRowIndex:t.firstRowIndex,lastRowIndex:Math.min(t.lastRowIndex,i.lastRowIndex+1)},r.current);if(null===l)return;const u=Q0(e),{spannedCells:c,hiddenCells:d,hiddenCellOriginMap:h,processedRange:p}=F7(e,u,a,i,l,o,r.current);r.current=p;const f=Object.keys(c).length,m=Object.keys(d).length,g=Object.keys(e.current.state.rowSpanning.spannedCells).length,b=Object.keys(e.current.state.rowSpanning.hiddenCells).length;(o||f!==g||m!==b)&&(0!==f||0!==g)&&e.current.setState((e=>s({},e,{rowSpanning:{spannedCells:c,hiddenCells:d,hiddenCellOriginMap:h}})))}),[e,r,n.pagination,n.paginationMode]),i=t.useCallback((()=>{const t=t4(e);O7(t)&&o(t,!0)}),[e,o]);H1(e,"renderedRowsIntervalChange",b2(n.rowSpanning,o)),H1(e,"sortedRowsSet",b2(n.rowSpanning,i)),H1(e,"paginationModelChange",b2(n.rowSpanning,i)),H1(e,"filteredRowsSet",b2(n.rowSpanning,i)),H1(e,"columnsChange",b2(n.rowSpanning,i)),t.useEffect((()=>{n.rowSpanning?e.current.state.rowSpanning===N7&&i():e.current.state.rowSpanning!==N7&&e.current.setState((e=>s({},e,{rowSpanning:N7})))}),[e,i,n.rowSpanning])})(e,n),function(e,n){const r=t.useCallback((t=>({field:t,colDef:e.current.getColumn(t)})),[e]),o=t.useCallback((t=>{const n=e.current.getRow(t);if(!n)throw new r7(`No row with id #${t} found`);return{id:t,columns:e.current.getAllColumns(),row:n}}),[e]),i=t.useCallback(((t,n,r,{cellMode:o,colDef:i,hasFocus:s,rowNode:a,tabIndex:l})=>{const u=r[n],c=i?.valueGetter?i.valueGetter(u,r,i,e):u,d={id:t,field:n,row:r,rowNode:a,colDef:i,cellMode:o,hasFocus:s,tabIndex:l,value:c,formattedValue:c,isEditable:!1,api:e.current};return i&&i.valueFormatter&&(d.formattedValue=i.valueFormatter(c,r,i,e)),d.isEditable=i&&e.current.isCellEditable(d),d}),[e]),s=t.useCallback(((t,r)=>{const o=e.current.getRow(t),i=G1(e,t);if(!o||!i)throw new r7(`No row with id #${t} found`);const s=h4(e),a=g4(e),l=e.current.getCellMode(t,r);return e.current.getCellParamsForRow(t,r,o,{colDef:n.listView&&n.listViewColumn?.field===r?c4(e):e.current.getColumn(r),rowNode:i,hasFocus:null!==s&&s.field===r&&s.id===t,tabIndex:a&&a.field===r&&a.id===t?0:-1,cellMode:l})}),[e,n.listView,n.listViewColumn?.field]),a=t.useCallback(((t,n)=>{const r=e.current.getColumn(n),o=e.current.getRow(t);if(!o)throw new r7(`No row with id #${t} found`);return r&&r.valueGetter?r.valueGetter(o[r.field],o,r,e):o[n]}),[e]),l=t.useCallback(((t,n)=>((e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const o=e[t.field];return t.valueGetter(o,e,t,n)})(t,n,e)),[e]),u=t.useCallback(((t,n)=>{const r=l(t,n);return n&&n.valueFormatter?n.valueFormatter(r,t,n,e):r}),[e,l]),c=t.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${I6(t)}"]`)}(e.current.rootElementRef.current,t):null),[e]),d=t.useCallback((t=>e.current.rootElementRef.current?function(e,t){return e.querySelector(P6(t))}(e.current.rootElementRef.current,t):null),[e]),h=t.useCallback(((t,n)=>e.current.rootElementRef.current?function(e,{id:t,field:n}){const r=`${P6(t)} .${t0.cell}[data-field="${I6(n)}"]`;return e.querySelector(r)}(e.current.rootElementRef.current,{id:t,field:n}):null),[e]),p={getCellParamsForRow:i};r4(e,{getCellValue:a,getCellParams:s,getCellElement:h,getRowValue:l,getRowFormattedValue:u,getRowParams:o,getRowElement:d,getColumnHeaderParams:r,getColumnHeaderElement:c},"public"),r4(e,p,"private")}(e,n),(e=>{const n=t.useRef({}),r=()=>{n.current={}},o={resetColSpan:r,calculateColSpan:t.useCallback((({rowId:t,minFirstColumn:r,maxLastColumn:o,columns:i})=>{for(let s=r;s<o;s+=1){const a=y7({apiRef:e,lookup:n.current,columnIndex:s,rowId:t,minFirstColumnIndex:r,maxLastColumnIndex:o,columns:i});a.colSpan>1&&(s+=a.colSpan-1)}}),[e])};r4(e,{unstable_getCellColSpanInfo:(e,t)=>n.current[e]?.[t]},"public"),r4(e,o,"private"),H1(e,"columnOrderChange",r)})(e),((e,n)=>{const r=t.useCallback((t=>X5(e)[t]??[]),[e]),o=t.useCallback((()=>J5(e)),[e]);r4(e,{getColumnGroupPath:r,getAllGroupDetails:o},"public");const i=t.useCallback((()=>{const t=C7(n.columnGroupingModel??[]);e.current.setState((e=>{const n=e.columns?.orderedFields??[],r=e.pinnedColumns??{},o=_7(n,t,r);return s({},e,{columnGrouping:s({},e.columnGrouping,{headerStructure:o})})}))}),[e,n.columnGroupingModel]),a=t.useCallback((t=>{const n=e.current.getPinnedColumns?.()??{},r=G0(e),o=Z0(e),i=x7(t??[]),a=C7(t??[]),l=_7(r,a,n),u=0===o.length?0:Math.max(...o.map((e=>a[e]?.length??0)));e.current.setState((e=>s({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:u}})))}),[e]);H1(e,"columnIndexChange",i),H1(e,"columnsChange",(()=>{a(n.columnGroupingModel)})),H1(e,"columnVisibilityModelChange",(()=>{a(n.columnGroupingModel)})),t.useEffect((()=>{a(n.columnGroupingModel)}),[a,n.columnGroupingModel])})(e,n),((e,n)=>{((e,n)=>{const[r,o]=t.useState({}),i=t.useRef(r),a=t.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:u,cellModesModel:c,onCellModesModelChange:d}=n,h=e=>(...t)=>{n.editMode===M5.Cell&&e(...t)},p=t.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI X: The cell with id=${t} and field=${n} is not editable.`)}),[e]),f=t.useCallback(((t,n,r)=>{if(e.current.getCellMode(t,n)!==r)throw new Error(`MUI X: The cell with id=${t} and field=${n} is not in ${r} mode.`)}),[e]),m=t.useCallback(((t,n)=>{if(!t.isEditable)return;if(t.cellMode===x5.Edit)return;const r=s({},t,{reason:C5.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}),[e]),g=t.useCallback(((t,n)=>{if(t.cellMode===x5.View)return;if(e.current.getCellMode(t.id,t.field)===x5.View)return;const r=s({},t,{reason:_5.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}),[e]),b=t.useCallback(((t,n)=>{if(t.cellMode===x5.Edit){if(229===n.which)return;let r;if("Escape"===n.key?r=_5.escapeKeyDown:"Enter"===n.key?r=_5.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?_5.shiftTabKeyDown:_5.tabKeyDown,n.preventDefault()),r){const o=s({},t,{reason:r});e.current.publishEvent("cellEditStop",o,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"cell"}))return;if(t6(n)?r=C5.printableKeyDown:o6(n)?r=C5.pasteKeyDown:"Enter"===n.key?r=C5.enterKeyDown:"Backspace"!==n.key&&"Delete"!==n.key||(r=C5.deleteKeyDown),r){const o=s({},t,{reason:r,key:n.key});e.current.publishEvent("cellEditStart",o,n)}}}),[e]),y=t.useCallback((t=>{const{id:n,field:r,reason:o}=t,i={id:n,field:r};o!==C5.printableKeyDown&&o!==C5.deleteKeyDown&&o!==C5.pasteKeyDown||(i.deleteValue=!0),e.current.startCellEditMode(i)}),[e]),w=t.useCallback((t=>{const{id:n,field:r,reason:o}=t;let i;e.current.runPendingEditCellValueMutation(n,r),o===_5.enterKeyDown?i="below":o===_5.tabKeyDown?i="right":o===_5.shiftTabKeyDown&&(i="left");const s="escapeKeyDown"===o;e.current.stopCellEditMode({id:n,field:r,ignoreModifications:s,cellToFocusAfter:i})}),[e]);var v;H1(e,"cellDoubleClick",h(m)),H1(e,"cellFocusOut",h(g)),H1(e,"cellKeyDown",h(b)),H1(e,"cellEditStart",h(y)),H1(e,"cellEditStop",h(w)),A1(e,"cellEditStart",n.onCellEditStart),A1(e,"cellEditStop",(v=n.onCellEditStop,async(...t)=>{if(v){const{id:n,field:r}=t[0],o=e.current.state.editRows,i=o[n][r]?.error;i||v(...t)}}));const S=t.useCallback(((t,n)=>{const r=B6(e);return r[t]&&r[t][n]?x5.Edit:x5.View}),[e]),C=PW((t=>{const r=t!==n.cellModesModel;d&&r&&d(t,{api:e.current}),n.cellModesModel&&r||(o(t),i.current=t,e.current.publishEvent("cellModesModelChange",t))})),_=t.useCallback(((e,t,n)=>{const r=s({},i.current);if(null!==n)r[e]=s({},r[e],{[t]:s({},n)});else{const n=Bz(r[e],[t].map(N9));r[e]=n,0===Object.keys(r[e]).length&&delete r[e]}C(r)}),[C]),M=t.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=s({},e.editRows);return null!==r?o[t]=s({},o[t],{[n]:s({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),s({},e,{editRows:o})}))}),[e]),x=t.useCallback((e=>{const{id:t,field:n}=e,r=Bz(e,K6);p(t,n),f(t,n,x5.View),_(t,n,s({mode:x5.Edit},r))}),[p,f,_]),k=PW((async t=>{const{id:n,field:r,deleteValue:o,initialValue:i}=t,a=e.current.getCellValue(n,r);let l=a;o?l=G6(e.current.getColumn(r)):i&&(l=i);const u=e.current.getColumn(r),c=!!u.preProcessEditCellProps&&o;let d={value:l,error:!1,isProcessingProps:c};if(M(n,r,d),e.current.setCellFocus(n,r),c&&(d=await Promise.resolve(u.preProcessEditCellProps({id:n,row:e.current.getRow(n),props:d,hasChanged:l!==a})),e.current.getCellMode(n,r)===x5.Edit)){const t=B6(e);M(n,r,s({},d,{value:t[n][r].value,isProcessingProps:!1}))}})),R=t.useCallback((e=>{const{id:t,field:n}=e,r=Bz(e,q6);f(t,n,x5.Edit),_(t,n,s({mode:x5.View},r))}),[f,_]),T=PW((async t=>{const{id:r,field:o,ignoreModifications:i,cellToFocusAfter:s="none"}=t;f(r,o,x5.Edit),e.current.runPendingEditCellValueMutation(r,o);const c=()=>{M(r,o,null),_(r,o,null),"none"!==s&&e.current.moveFocusToRelativeCell(r,o,s)};if(i)return void c();const d=B6(e),{error:h,isProcessingProps:p}=d[r][o],m=e.current.getRow(r);if(h||p)return a.current[r][o].mode=x5.Edit,void _(r,o,{mode:x5.Edit});const g=e.current.getRowWithUpdatedValuesFromCellEditing(r,o);if(n.dataSource?.updateRow){if(C6(m,g))return void c();const t=()=>{a.current[r][o].mode=x5.Edit,_(r,o,{mode:x5.Edit})},n={rowId:r,updatedRow:g,previousRow:m};try{await e.current.dataSource.editRow(n),c()}catch{t()}}else if(l){const t=e=>{a.current[r][o].mode=x5.Edit,_(r,o,{mode:x5.Edit}),u&&u(e)};try{Promise.resolve(l(g,m,{rowId:r})).then((t=>{e.current.updateRows([t]),c()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([g]),c()})),E=t.useCallback((async t=>{const{id:n,field:r,value:o,debounceMs:i,unstable_skipValueParser:a}=t;p(n,r),f(n,r,x5.Edit);const l=e.current.getColumn(r),u=e.current.getRow(n);let c=o;l.valueParser&&!a&&(c=l.valueParser(o,u,l,e));let d=B6(e),h=s({},d[n][r],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});if(l.preProcessEditCellProps){const e=o!==d[n][r].value;h=s({},h,{isProcessingProps:!0}),M(n,r,h),h=await Promise.resolve(l.preProcessEditCellProps({id:n,row:u,props:h,hasChanged:e}))}return e.current.getCellMode(n,r)!==x5.View&&(d=B6(e),h=s({},h,{isProcessingProps:!1}),h.value=l.preProcessEditCellProps?d[n][r].value:c,M(n,r,h),d=B6(e),!d[n]?.[r]?.error)}),[e,p,f,M]),L=t.useCallback(((t,n)=>{const r=e.current.getColumn(n),o=B6(e),i=e.current.getRow(t);if(!o[t]||!o[t][n])return e.current.getRow(t);const{value:a}=o[t][n];return r.valueSetter?r.valueSetter(a,i,r,e):s({},i,{[n]:a})}),[e]),I={setCellEditingEditCellValue:E,getRowWithUpdatedValuesFromCellEditing:L};r4(e,{getCellMode:S,startCellEditMode:x,stopCellEditMode:R},"public"),r4(e,I,"private"),t.useEffect((()=>{c&&C(c)}),[c,C]),IW((()=>{const t=$1(e),n=a.current;a.current=g2(r),Object.entries(r).forEach((([r,o])=>{Object.entries(o).forEach((([o,i])=>{const a=n[r]?.[o]?.mode||x5.View,l=t[r]?e.current.getRowId(t[r]):r;i.mode===x5.Edit&&a===x5.View?k(s({id:l,field:o},i)):i.mode===x5.View&&a===x5.Edit&&T(s({id:l,field:o},i))}))}))}),[e,r,k,T])})(e,n),((e,n)=>{const[r,o]=t.useState({}),i=t.useRef(r),a=t.useRef({}),l=t.useRef({}),u=t.useRef(void 0),c=t.useRef(null),{processRowUpdate:d,onProcessRowUpdateError:h,rowModesModel:p,onRowModesModelChange:f}=n,m=e=>(...t)=>{n.editMode===M5.Row&&e(...t)},g=t.useCallback(((t,n)=>{const r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error(`MUI X: The cell with id=${t} and field=${n} is not editable.`)}),[e]),b=t.useCallback(((t,n)=>{if(e.current.getRowMode(t)!==n)throw new Error(`MUI X: The row with id=${t} is not in ${n} mode.`)}),[e]),y=t.useCallback((t=>{const n=B6(e);return Object.values(n[t]).some((e=>e.error))}),[e]),w=t.useCallback(((t,n)=>{if(!t.isEditable)return;if(e.current.getRowMode(t.id)===k5.Edit)return;const r=s({},e.current.getRowParams(t.id),{field:t.field,reason:X6.cellDoubleClick});e.current.publishEvent("rowEditStart",r,n)}),[e]),v=t.useCallback((e=>{c.current=e}),[]),S=t.useCallback(((t,n)=>{t.isEditable&&e.current.getRowMode(t.id)!==k5.View&&(c.current=null,u.current=setTimeout((()=>{if(c.current?.id!==t.id){if(!e.current.getRow(t.id))return;if(e.current.getRowMode(t.id)===k5.View)return;if(y(t.id))return;const r=s({},e.current.getRowParams(t.id),{field:t.field,reason:J6.rowFocusOut});e.current.publishEvent("rowEditStop",r,n)}})))}),[e,y]);t.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const C=t.useCallback(((t,n)=>{if(t.cellMode===k5.Edit){if(229===n.which)return;let r;if("Escape"===n.key)r=J6.escapeKeyDown;else if("Enter"===n.key)r=J6.enterKeyDown;else if("Tab"===n.key){const o=Z0(e).filter((n=>e.current.getColumn(n).type===V5||e.current.isCellEditable(e.current.getCellParams(t.id,n))));if(n.shiftKey?t.field===o[0]&&(r=J6.shiftTabKeyDown):t.field===o[o.length-1]&&(r=J6.tabKeyDown),n.preventDefault(),!r){const r=o.findIndex((e=>e===t.field)),i=o[n.shiftKey?r-1:r+1];e.current.setCellFocus(t.id,i)}}if(r){if(r!==J6.escapeKeyDown&&y(t.id))return;const o=s({},e.current.getRowParams(t.id),{reason:r,field:t.field});e.current.publishEvent("rowEditStop",o,n)}}else if(t.isEditable){let r;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:n,cellParams:t,editMode:"row"}))return;if(t6(n)||o6(n)?r=X6.printableKeyDown:"Enter"===n.key?r=X6.enterKeyDown:"Backspace"!==n.key&&"Delete"!==n.key||(r=X6.deleteKeyDown),r){const o=s({},e.current.getRowParams(t.id),{field:t.field,reason:r});e.current.publishEvent("rowEditStart",o,n)}}}),[e,y]),_=t.useCallback((t=>{const{id:n,field:r,reason:o}=t,i={id:n,fieldToFocus:r};o!==X6.printableKeyDown&&o!==X6.deleteKeyDown||(i.deleteValue=!!r),e.current.startRowEditMode(i)}),[e]),M=t.useCallback((t=>{const{id:n,reason:r,field:o}=t;let i;e.current.runPendingEditCellValueMutation(n),r===J6.enterKeyDown?i="below":r===J6.tabKeyDown?i="right":r===J6.shiftTabKeyDown&&(i="left");const s="escapeKeyDown"===r;e.current.stopRowEditMode({id:n,ignoreModifications:s,field:o,cellToFocusAfter:i})}),[e]);H1(e,"cellDoubleClick",m(w)),H1(e,"cellFocusIn",m(v)),H1(e,"cellFocusOut",m(S)),H1(e,"cellKeyDown",m(C)),H1(e,"rowEditStart",m(_)),H1(e,"rowEditStop",m(M)),A1(e,"rowEditStart",n.onRowEditStart),A1(e,"rowEditStop",n.onRowEditStop);const x=t.useCallback((t=>$6(e,{rowId:t,editMode:n.editMode})?k5.Edit:k5.View),[e,n.editMode]),k=PW((t=>{const r=t!==n.rowModesModel;f&&r&&f(t,{api:e.current}),n.rowModesModel&&r||(o(t),i.current=t,e.current.publishEvent("rowModesModelChange",t))})),R=t.useCallback(((e,t)=>{const n=s({},i.current);null!==t?n[e]=s({},t):delete n[e],k(n)}),[k]),T=t.useCallback(((t,n)=>{e.current.setState((e=>{const r=s({},e.editRows);return null!==n?r[t]=n:delete r[t],s({},e,{editRows:r})}))}),[e]),E=t.useCallback(((t,n,r)=>{e.current.setState((e=>{const o=s({},e.editRows);return null!==r?o[t]=s({},o[t],{[n]:s({},r)}):(delete o[t][n],0===Object.keys(o[t]).length&&delete o[t]),s({},e,{editRows:o})}))}),[e]),L=t.useCallback((e=>{const{id:t}=e,n=Bz(e,Q6);b(t,k5.View),R(t,s({mode:k5.Edit},n))}),[b,R]),I=PW((t=>{const{id:n,fieldToFocus:r,deleteValue:o,initialValue:i}=t,a=e.current.getRow(n),u=q0(e),c=u.reduce(((t,s)=>{const a=s.field;if(!e.current.getCellParams(n,a).isEditable)return t;const l=e.current.getColumn(a);let u=e.current.getCellValue(n,a);return r===a&&(o||i)&&(o?u=G6(l):i&&(u=i)),t[a]={value:u,error:!1,isProcessingProps:l.editable&&!!l.preProcessEditCellProps&&o},t}),{});l.current[n]=a,T(n,c),r&&e.current.setCellFocus(n,r),u.filter((e=>e.editable&&!!e.preProcessEditCellProps&&o)).forEach((t=>{const r=t.field,l=e.current.getCellValue(n,r),u=o?G6(t):i??l;Promise.resolve(t.preProcessEditCellProps({id:n,row:a,props:c[r],hasChanged:u!==l})).then((t=>{if(e.current.getRowMode(n)===k5.Edit){const o=B6(e);E(n,r,s({},t,{value:o[n][r].value,isProcessingProps:!1}))}}))}))})),P=t.useCallback((e=>{const{id:t}=e,n=Bz(e,Z6);b(t,k5.Edit),R(t,s({mode:k5.View},n))}),[b,R]),D=PW((async t=>{const{id:r,ignoreModifications:o,field:i,cellToFocusAfter:s="none"}=t;e.current.runPendingEditCellValueMutation(r);const u=()=>{"none"!==s&&i&&e.current.moveFocusToRelativeCell(r,i,s),T(r,null),R(r,null),delete l.current[r]};if(o)return void u();const c=B6(e),p=l.current[r];if(Object.values(c[r]).some((e=>e.isProcessingProps)))return void(a.current[r].mode=k5.Edit);if(y(r))return a.current[r].mode=k5.Edit,void R(r,{mode:k5.Edit});const f=e.current.getRowWithUpdatedValuesFromRowEditing(r);if(n.dataSource?.updateRow){if(C6(p,f))return void u();const t=()=>{a.current[r].mode=k5.Edit,R(r,{mode:k5.Edit})},n={rowId:r,updatedRow:f,previousRow:p};try{await e.current.dataSource.editRow(n),u()}catch{t()}}else if(d){const t=e=>{a.current[r]&&(a.current[r].mode=k5.Edit,R(r,{mode:k5.Edit})),h&&h(e)};try{Promise.resolve(d(f,p,{rowId:r})).then((t=>{e.current.updateRows([t]),u()})).catch(t)}catch(e){t(e)}}else e.current.updateRows([f]),u()})),H=t.useCallback((t=>{const{id:n,field:r,value:o,debounceMs:i,unstable_skipValueParser:a}=t;g(n,r);const l=e.current.getColumn(r),u=e.current.getRow(n);let c=o;l.valueParser&&!a&&(c=l.valueParser(o,u,l,e));let d=B6(e),h=s({},d[n][r],{value:c,changeReason:i?"debouncedSetEditCellValue":"setEditCellValue"});return l.preProcessEditCellProps||E(n,r,h),new Promise((t=>{const o=[];if(l.preProcessEditCellProps){const i=h.value!==d[n][r].value;h=s({},h,{isProcessingProps:!0}),E(n,r,h);const a=Bz(d[n],[r].map(N9)),p=Promise.resolve(l.preProcessEditCellProps({id:n,row:u,props:h,hasChanged:i,otherFieldsProps:a})).then((o=>{e.current.getRowMode(n)!==k5.View?(d=B6(e),(o=s({},o,{isProcessingProps:!1})).value=l.preProcessEditCellProps?d[n][r].value:c,E(n,r,o)):t(!1)}));o.push(p)}Object.entries(d[n]).forEach((([i,a])=>{if(i===r)return;const l=e.current.getColumn(i);if(!l.preProcessEditCellProps)return;a=s({},a,{isProcessingProps:!0}),E(n,i,a),d=B6(e);const c=Bz(d[n],[i].map(N9)),h=Promise.resolve(l.preProcessEditCellProps({id:n,row:u,props:a,hasChanged:!1,otherFieldsProps:c})).then((r=>{e.current.getRowMode(n)!==k5.View?(r=s({},r,{isProcessingProps:!1}),E(n,i,r)):t(!1)}));o.push(h)})),Promise.all(o).then((()=>{e.current.getRowMode(n)===k5.Edit?(d=B6(e),t(!d[n][r].error)):t(!1)}))}))}),[e,g,E]),O=t.useCallback((t=>{const n=B6(e),r=e.current.getRow(t);if(!n[t])return e.current.getRow(t);let o=s({},l.current[t],r);return Object.entries(n[t]).forEach((([t,n])=>{const r=e.current.getColumn(t);r?.valueSetter?o=r.valueSetter(n.value,o,r,e):o[t]=n.value})),o}),[e]),A={setRowEditingEditCellValue:H,getRowWithUpdatedValuesFromRowEditing:O};r4(e,{getRowMode:x,startRowEditMode:L,stopRowEditMode:P},"public"),r4(e,A,"private"),t.useEffect((()=>{p&&k(p)}),[p,k]),IW((()=>{const t=$1(e),n=a.current;a.current=g2(r);const o=new Set([...Object.keys(r),...Object.keys(n)]);Array.from(o).forEach((o=>{const i=r[o]??{mode:k5.View},a=n[o]?.mode||k5.View,l=t[o]?e.current.getRowId(t[o]):o;i.mode===k5.Edit&&a===k5.View?I(s({id:l},i)):i.mode===k5.View&&a===k5.Edit&&D(s({id:l},i))}))}),[e,r,I,D])})(e,n);const r=t.useRef({}),{isCellEditable:o}=n,i=t.useCallback((e=>!t5(e.rowNode)&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!o||o(e))),[o]);t.useEffect((()=>{const e=r.current;return()=>{Object.entries(e).forEach((([t,n])=>{Object.keys(n).forEach((n=>{const[r]=e[t][n];clearTimeout(r),delete e[t][n]}))}))}}),[]);const a=t.useCallback(((e,t)=>{if(r.current[e])if(t){if(r.current[e][t]){const[,n]=r.current[e][t];n()}}else Object.keys(r.current[e]).forEach((t=>{const[,n]=r.current[e][t];n()}))}),[]),l=t.useCallback((t=>{const{id:o,field:i,debounceMs:s}=t;return new Promise((a=>{((e,t,n,o)=>{if(!n)return void o();if(r.current[e]||(r.current[e]={}),r.current[e][t]){const[n]=r.current[e][t];clearTimeout(n)}const i=setTimeout((()=>{o(),delete r.current[e][t]}),n);r.current[e][t]=[i,()=>{const[n]=r.current[e][t];clearTimeout(n),o(),delete r.current[e][t]}]})(o,i,s,(async()=>{const r=n.editMode===M5.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(o,i)===x5.Edit){const e=await r(t);a(e)}}))}))}),[e,n.editMode]),u=t.useCallback(((t,r)=>n.editMode===M5.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(t,r):e.current.getRowWithUpdatedValuesFromRowEditing(t)),[e,n.editMode]),c=t.useCallback(((t,n)=>{const r=B6(e);return r[t]?.[n]??null}),[e]),d={runPendingEditCellValueMutation:a};r4(e,{isCellEditable:i,setEditCellValue:l,getRowWithUpdatedValues:u,unstable_getEditCellMeta:c},"public"),r4(e,d,"private")})(e,n),((e,n)=>{const r=V9(e,"useGridFocus"),o=t.useRef(null),i=null!==e.current.rootElementRef.current,a=t.useCallback(((t,n)=>{t&&e.current.getRow(t.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(t.id,t.field),n)}),[e]),l=t.useCallback(((t,n)=>{const o=h4(e);o?.id===t&&o?.field===n||(e.current.setState((e=>(r.debug(`Focusing on cell with id=${t} and field=${n}`),s({},e,{tabIndex:{cell:{id:t,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:t,field:n},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))),e.current.getRow(t)&&(o&&a(o,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,n))))}),[e,r,a]),u=t.useCallback(((t,n={})=>{const o=h4(e);a(o,n),e.current.setState((e=>(r.debug(`Focusing on column header with colIndex=${t}`),s({},e,{tabIndex:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:t},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))))}),[e,r,a]),c=t.useCallback(((t,n={})=>{const o=h4(e);a(o,n),e.current.setState((e=>(r.debug(`Focusing on column header filter with colIndex=${t}`),s({},e,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:t},cell:null,columnGroupHeader:null}}))))}),[e,r,a]),d=t.useCallback(((t,n,r={})=>{const o=h4(e);o&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(o.id,o.field),r),e.current.setState((e=>s({},e,{tabIndex:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:t,depth:n},columnHeader:null,columnHeaderFilter:null,cell:null}})))}),[e]),h=t.useCallback((()=>f4(e)),[e]),p=t.useCallback(((t,r,o)=>{let i=e.current.getColumnIndex(r);const s=Q0(e),a=K3(e,(n.pagination,n.paginationMode)),l=e2(e),u=[].concat(l.top||[],a.rows,l.bottom||[]);let c=u.findIndex((e=>e.id===t));"right"===o?i+=1:"left"===o?i-=1:c+=1,i>=s.length?(c+=1,c<u.length&&(i=0)):i<0&&(c-=1,c>=0&&(i=s.length-1)),c=f2(c,0,u.length-1);const d=u[c];if(!d)return;const h=e.current.unstable_getCellColSpanInfo(d.id,i);h&&h.spannedByColSpan&&("left"===o||"below"===o?i=h.leftVisibleCellIndex:"right"===o&&(i=h.rightVisibleCellIndex)),i=f2(i,0,s.length-1);const p=s[i];e.current.setCellFocus(d.id,p.field)}),[e,n.pagination,n.paginationMode]),f=t.useCallback((({id:t,field:n})=>{e.current.setCellFocus(t,n)}),[e]),m=t.useCallback(((t,n)=>{"Enter"===n.key||"Tab"===n.key||"Shift"===n.key||n6(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),g=t.useCallback((({field:t},n)=>{n.target===n.currentTarget&&e.current.setColumnHeaderFocus(t,n)}),[e]),b=t.useCallback((({fields:t,depth:n},r)=>{if(r.target!==r.currentTarget)return;const o=f4(e);null!==o&&o.depth===n&&t.includes(o.field)||e.current.setColumnGroupHeaderFocus(t[0],n,r)}),[e]),y=t.useCallback(((t,n)=>{n.relatedTarget?.getAttribute("class")?.includes(t0.columnHeader)||(r.debug("Clearing focus"),e.current.setState((e=>s({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))))}),[r,e]),w=t.useCallback((e=>{o.current=e}),[]),v=t.useCallback((t=>{const n=o.current;o.current=null;const r=h4(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:t,cell:n}))return;if(!r)return void(n&&e.current.setCellFocus(n.id,n.field));if(n?.id===r.id&&n?.field===r.field)return;const i=e.current.getCellElement(r.id,r.field);i?.contains(t.target)||(n?e.current.setCellFocus(n.id,n.field):(e.current.setState((e=>s({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),a(r,t)))}),[e,a]),S=t.useCallback((t=>{if("view"===t.cellMode)return;const n=h4(e);n?.id===t.id&&n?.field===t.field||e.current.setCellFocus(t.id,t.field)}),[e]),C=t.useCallback((()=>{const t=h4(e);if(t&&!e.current.getRow(t.id)){const r=t.id;let o=null;if(void 0!==r){const t=e.current.getRowElement(r),i=t?.dataset.rowindex?Number(t?.dataset.rowindex):0,s=K3(e,(n.pagination,n.paginationMode)),a=s.rows[f2(i,0,s.rows.length-1)];o=a?.id??null}e.current.setState((e=>s({},e,{focus:{cell:null===o?null:{id:o,field:t.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))}}),[e,n.pagination,n.paginationMode]),_=PW((()=>{const t=h4(e);if(!t)return;const r=K3(e,(n.pagination,n.paginationMode)),o=r.rows.find((e=>e.id===t.id));if(o)return;const i=Q0(e);e.current.setState((e=>s({},e,{tabIndex:{cell:{id:r.rows[0].id,field:i[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}})))})),M={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:d,getColumnGroupHeaderFocus:h};r4(e,{setCellFocus:l,setColumnHeaderFocus:u,setColumnHeaderFilterFocus:c},"public"),r4(e,M,"private"),t.useEffect((()=>{const t=sK(e.current.rootElementRef.current);return t.addEventListener("mouseup",v),()=>{t.removeEventListener("mouseup",v)}}),[e,i,v]),H1(e,"columnHeaderBlur",y),H1(e,"cellDoubleClick",f),H1(e,"cellMouseDown",w),H1(e,"cellKeyDown",m),H1(e,"cellModeChange",S),H1(e,"columnHeaderFocus",g),H1(e,"columnGroupHeaderFocus",b),H1(e,"rowsSet",C),H1(e,"paginationModelChange",_)})(e,n),((e,n)=>{const r=V9(e,"useGridPreferencesPanel"),o=t.useCallback((()=>{e.current.setState((t=>{if(!t.preferencePanel.open)return t;r.debug("Hiding Preferences Panel");const n=a1(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:n.openedPanelValue}),s({},t,{preferencePanel:{open:!1}})}))}),[e,r]),i=t.useCallback(((t,n,o)=>{r.debug("Opening Preferences Panel"),e.current.setState((e=>s({},e,{preferencePanel:s({},e.preferencePanel,{open:!0,openedPanelValue:t,panelId:n,labelId:o})}))),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t})}),[r,e]);r4(e,{showPreferences:i,hidePreferences:o},"public");const a=t.useCallback(((t,r)=>{const o=a1(e);return!r.exportOnlyDirtyModels||null!=n.initialState?.preferencePanel||o.open?s({},t,{preferencePanel:o}):t}),[e,n.initialState?.preferencePanel]),l=t.useCallback(((t,n)=>{const r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((e=>s({},e,{preferencePanel:r}))),t}),[e]);l6(e,"exportState",a),l6(e,"restoreState",l)})(e,n),((e,n)=>{const r=V9(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:y3,changeEvent:"filterModelChange"});const o=t.useCallback((()=>{e.current.setState((t=>{const n=y3(e),r=e.current.getFilterState(n),o=s({},t,{filter:s({},t.filter,r)});return s({},o,{visibleRowsLookup:R6(e,o)})})),e.current.publishEvent("filteredRowsSet")}),[e]),i=t.useCallback(((e,t)=>null==t||!1===t.filterable||n.disableColumnFilter?e:[...e,"columnMenuFilterItem"]),[n.disableColumnFilter]),a=t.useCallback((t=>{const n=y3(e),r=[...n.items],o=r.findIndex((e=>e.id===t.id));-1===o?r.push(t):r[o]=t,e.current.setFilterModel(s({},n,{items:r}),"upsertFilterItem")}),[e]),l=t.useCallback((t=>{const n=y3(e),r=[...n.items];t.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));-1===t?r.push(e):r[t]=e})),e.current.setFilterModel(s({},n,{items:r}),"upsertFilterItems")}),[e]),u=t.useCallback((t=>{const n=y3(e),r=n.items.filter((e=>e.id!==t.id));r.length!==n.items.length&&e.current.setFilterModel(s({},n,{items:r}),"deleteFilterItem")}),[e]),c=t.useCallback(((t,o,i)=>{if(r.debug("Displaying filter panel"),t){const r=y3(e),o=r.items.filter((t=>{if(void 0!==t.value)return!Array.isArray(t.value)||0!==t.value.length;const n=e.current.getColumn(t.field),r=n.filterOperators?.find((e=>e.value===t.operator));return!(void 0===r?.requiresFilterValue||r?.requiresFilterValue)}));let i;const a=o.find((e=>e.field===t)),l=e.current.getColumn(t);i=a?o:n.disableMultipleColumnsFiltering?[M2({field:t,operator:l.filterOperators[0].value},e)]:[...o,M2({field:t,operator:l.filterOperators[0].value},e)],e.current.setFilterModel(s({},r,{items:i}))}e.current.showPreferences(u1.filters,o,i)}),[e,r,n.disableMultipleColumnsFiltering]),d=t.useCallback((()=>{r.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,r]),h=t.useCallback((t=>{const n=y3(e);n.logicOperator!==t&&e.current.setFilterModel(s({},n,{logicOperator:t}),"changeLogicOperator")}),[e]),p=t.useCallback((t=>{const n=y3(e);C6(n.quickFilterValues,t)||e.current.setFilterModel(s({},n,{quickFilterValues:[...t]}))}),[e]),f=t.useCallback(((t,o)=>{y3(e)!==t&&(r.debug("Setting filter model"),e.current.updateControlState("filter",k2(t,n.disableMultipleColumnsFiltering,e),o),e.current.unstable_applyFilters())}),[e,r,n.disableMultipleColumnsFiltering]),m=t.useCallback((t=>{const r=x2(t,n.disableMultipleColumnsFiltering,e),o="client"===n.filterMode?I2(r,e,n.disableEval):null;return s({},e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:o,filterModel:r??S2()}),{filterModel:r})}),[n.disableMultipleColumnsFiltering,n.filterMode,n.disableEval,e]),g={setFilterLogicOperator:h,unstable_applyFilters:o,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:l,setFilterModel:f,showFilterPanel:c,hideFilterPanel:d,setQuickFilterValues:p,ignoreDiacritics:n.ignoreDiacritics,getFilterState:m};r4(e,g,"public");const b=t.useCallback(((t,r)=>{const o=y3(e);return o.items.forEach((e=>{delete e.fromInput})),r.exportOnlyDirtyModels&&null==n.filterModel&&null==n.initialState?.filter?.filterModel&&C6(o,S2())?t:s({},t,{filter:{filterModel:o}})}),[e,n.filterModel,n.initialState?.filter?.filterModel]),y=t.useCallback(((t,r)=>{const o=r.stateToRestore.filter?.filterModel;return null==o?t:(e.current.updateControlState("filter",k2(o,n.disableMultipleColumnsFiltering,e),"restoreState"),s({},t,{callbacks:[...t.callbacks,e.current.unstable_applyFilters]}))}),[e,n.disableMultipleColumnsFiltering]),w=t.useCallback(((e,t)=>{if(t===u1.filters){const e=n.slots.filterPanel;return(0,sn.jsx)(e,s({},n.slotProps?.filterPanel))}return e}),[n.slots.filterPanel,n.slotProps?.filterPanel]),{getRowId:v}=n,S=OW(T6),C=t.useCallback((t=>{if("client"!==n.filterMode||!t.isRowMatchingFilters||!t.filterModel.items.length&&!t.filterModel.quickFilterValues?.length)return v2;const r=$1(e),o={},{isRowMatchingFilters:i}=t,s={},a={passingFilterItems:null,passingQuickFilterValues:null},l=S.current(e.current.state.rows.dataRowIdToModelLookup);for(let n=0;n<l.length;n+=1){const r=l[n],u=v?v(r):r.id;i(r,void 0,a);const c=D2([a.passingFilterItems],[a.passingQuickFilterValues],t.filterModel,e,s);c||(o[u]=c)}const u="auto-generated-group-footer-root";return r[u]&&(o[u]=!0),{filteredRowsLookup:o,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}}),[e,n.filterMode,v,S]);l6(e,"columnMenu",i),l6(e,"exportState",b),l6(e,"restoreState",y),l6(e,"preferencePanel",w),M6(e,Y9,"filtering",C),M6(e,Y9,"visibleRowsLookupCreation",k6);const _=t.useCallback((()=>{r.debug("onColUpdated - GridColumns changed, applying filters");const t=y3(e),n=K0(e),o=t.items.filter((e=>e.field&&n[e.field]));o.length<t.items.length&&e.current.setFilterModel(s({},t,{items:o}))}),[e,r]),M=t.useCallback((t=>{"filtering"===t&&e.current.unstable_applyFilters()}),[e]),x=t.useCallback((()=>{e.current.setState((t=>s({},t,{visibleRowsLookup:R6(e,t)})))}),[e]);H1(e,"rowsSet",o),H1(e,"columnsChange",_),H1(e,"activeStrategyProcessorChange",M),H1(e,"rowExpansionChange",x),H1(e,"columnVisibilityModelChange",(()=>{const t=y3(e);t.quickFilterValues&&L2(t)&&e.current.unstable_applyFilters()})),a6((()=>{e.current.unstable_applyFilters()})),IW((()=>{void 0!==n.filterModel&&e.current.setFilterModel(n.filterModel)}),[e,r,n.filterModel])})(e,n),((e,n)=>{const r=V9(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:m3,changeEvent:"sortModelChange"});const o=t.useCallback(((t,n)=>{const r=m3(e),o=r.findIndex((e=>e.field===t));let i=[...r];return o>-1?null==n?.sort?i.splice(o,1):i.splice(o,1,n):i=[...r,n],i}),[e]),i=t.useCallback(((t,r)=>{const o=m3(e).find((e=>e.field===t.field));if(o){const e=void 0===r?o2(t.sortingOrder??n.sortingOrder,o.sort):r;return void 0===e?void 0:s({},o,{sort:e})}return{field:t.field,sort:void 0===r?o2(t.sortingOrder??n.sortingOrder):r}}),[e,n.sortingOrder]),a=t.useCallback(((e,t)=>null==t||!1===t.sortable||n.disableColumnSorting?e:(t.sortingOrder||n.sortingOrder).some((e=>!!e))?[...e,"columnMenuSortItem"]:e),[n.sortingOrder,n.disableColumnSorting]),l=t.useCallback((()=>{e.current.setState((t=>{if("server"===n.sortingMode)return r.debug("Skipping sorting rows as sortingMode = server"),s({},t,{sorting:s({},t.sorting,{sortedRows:n5(U1(e),q2,!1)})});const o=((e,t)=>{const n=e.map((e=>((e,t)=>{const n=t.current.getColumn(e.field);if(!n||null===e.sort)return null;let r;return r=n.getSortComparator?n.getSortComparator(e.sort):"desc"===e.sort?(...e)=>-1*n.sortComparator(...e):n.sortComparator,r?{getSortCellParams:e=>({id:e,field:n.field,rowNode:G1(t,e),value:t.current.getCellValue(e,n.field),api:t.current}),comparator:r}:null})(e,t))).filter((e=>!!e));return 0===n.length?null:e=>e.map((e=>({node:e,params:n.map((t=>t.getSortCellParams(e.id)))}))).sort(((e,t)=>{return r=e,o=t,n.reduce(((e,t,n)=>{if(0!==e)return e;const i=r.params[n],s=o.params[n];return t.comparator(i.value,s.value,i,s)}),0);var r,o})).map((e=>e.node.id))})(m3(e),e),i=e.current.applyStrategyProcessor("sorting",{sortRowList:o});return s({},t,{sorting:s({},t.sorting,{sortedRows:i})})})),e.current.publishEvent("sortedRowsSet")}),[e,r,n.sortingMode]),u=t.useCallback((t=>{m3(e)!==t&&(r.debug("Setting sort model"),e.current.setState(r2(t,n.disableMultipleColumnsSorting)),e.current.applySorting())}),[e,r,n.disableMultipleColumnsSorting]),c=t.useCallback(((t,r,s)=>{const a=e.current.getColumn(t),l=i(a,r);let u;u=!s||n.disableMultipleColumnsSorting?null==l?.sort?[]:[l]:o(a.field,l),e.current.setSortModel(u)}),[e,o,i,n.disableMultipleColumnsSorting]),d=t.useCallback((()=>m3(e)),[e]),h=t.useCallback((()=>f3(e).map((e=>e.model))),[e]),p=t.useCallback((()=>p3(e)),[e]),f=t.useCallback((t=>e.current.getSortedRowIds()[t]),[e]);r4(e,{getSortModel:d,getSortedRows:h,getSortedRowIds:p,getRowIdFromRowIndex:f,setSortModel:u,sortColumn:c,applySorting:l},"public");const m=t.useCallback(((t,r)=>{const o=m3(e);return!r.exportOnlyDirtyModels||null!=n.sortModel||null!=n.initialState?.sorting?.sortModel||o.length>0?s({},t,{sorting:{sortModel:o}}):t}),[e,n.sortModel,n.initialState?.sorting?.sortModel]),g=t.useCallback(((t,r)=>{const o=r.stateToRestore.sorting?.sortModel;return null==o?t:(e.current.setState(r2(o,n.disableMultipleColumnsSorting)),s({},t,{callbacks:[...t.callbacks,e.current.applySorting]}))}),[e,n.disableMultipleColumnsSorting]),b=t.useCallback((t=>{const n=U1(e),r=n[q2],o=t.sortRowList?t.sortRowList(r.children.map((e=>n[e]))):[...r.children];return null!=r.footerId&&o.push(r.footerId),o}),[e]);l6(e,"exportState",m),l6(e,"restoreState",g),M6(e,Y9,"sorting",b);const y=t.useCallback((({field:e,colDef:t},r)=>{if(!t.sortable||n.disableColumnSorting)return;const o="always"===n.multipleColumnsSortingMode||r.shiftKey||r.metaKey||r.ctrlKey;c(e,void 0,o)}),[c,n.disableColumnSorting,n.multipleColumnsSortingMode]),w=t.useCallback((({field:e,colDef:t},r)=>{t.sortable&&!n.disableColumnSorting&&("Enter"!==r.key||r.ctrlKey||r.metaKey||c(e,void 0,"always"===n.multipleColumnsSortingMode||r.shiftKey))}),[c,n.disableColumnSorting,n.multipleColumnsSortingMode]),v=t.useCallback((()=>{const t=m3(e),n=K0(e);if(t.length>0){const r=t.filter((e=>n[e.field]));r.length<t.length&&e.current.setSortModel(r)}}),[e]),S=t.useCallback((t=>{"sorting"===t&&e.current.applySorting()}),[e]);l6(e,"columnMenu",a),H1(e,"columnHeaderClick",y),H1(e,"columnHeaderKeyDown",w),H1(e,"rowsSet",e.current.applySorting),H1(e,"columnsChange",v),H1(e,"activeStrategyProcessorChange",S),a6((()=>{e.current.applySorting()})),IW((()=>{void 0!==n.sortModel&&e.current.setSortModel(n.sortModel)}),[e,n.sortModel])})(e,n),((e,n)=>{const r=V9(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:n.density,propOnChange:n.onDensityChange,stateSelector:j0,changeEvent:"densityChange"});const o=PW((t=>{j0(e)!==t&&(r.debug(`Set grid density to ${t}`),e.current.setState((e=>s({},e,{density:t}))))}));r4(e,{setDensity:o},"public");const i=t.useCallback(((t,r)=>{const o=j0(e);return r.exportOnlyDirtyModels&&null==n.density&&null==n.initialState?.density?t:s({},t,{density:o})}),[e,n.density,n.initialState?.density]),a=t.useCallback(((t,n)=>{const r=n.stateToRestore?.density?n.stateToRestore.density:j0(e);return e.current.setState((e=>s({},e,{density:r}))),t}),[e]);l6(e,"exportState",i),l6(e,"restoreState",a),t.useEffect((()=>{n.density&&e.current.setDensity(n.density)}),[e,n.density])})(e,n),D7(e,n),((e,n)=>{((e,n)=>{const r=V9(e,"useGridPaginationMeta"),o=m0(e,F3);e.current.registerControlState({stateId:"paginationMeta",propModel:n.paginationMeta,propOnChange:n.onPaginationMetaChange,stateSelector:F3,changeEvent:"paginationMetaChange"});const i=t.useCallback((t=>{o!==t&&(r.debug("Setting 'paginationMeta' to",t),e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{meta:t})}))))}),[e,r,o]);r4(e,{setPaginationMeta:i},"public");const a=t.useCallback(((t,r)=>{const o=F3(e);return r.exportOnlyDirtyModels&&null==n.paginationMeta&&null==n.initialState?.pagination?.meta?t:s({},t,{pagination:s({},t.pagination,{meta:o})})}),[e,n.paginationMeta,n.initialState?.pagination?.meta]),l=t.useCallback(((t,n)=>{const r=n.stateToRestore.pagination?.meta?n.stateToRestore.pagination.meta:F3(e);return e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{meta:r})}))),t}),[e]);l6(e,"exportState",a),l6(e,"restoreState",l),t.useEffect((()=>{n.paginationMeta&&e.current.setPaginationMeta(n.paginationMeta)}),[e,n.paginationMeta])})(e,n),((e,n)=>{const r=V9(e,"useGridPaginationModel"),o=m0(e,Y0),i=t.useRef(y3(e)),a=Math.floor(n.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:n.paginationModel,propOnChange:n.onPaginationModelChange,stateSelector:j3,changeEvent:"paginationModelChange"});const l=t.useCallback((t=>{const n=j3(e);t!==n.page&&(r.debug(`Setting page to ${t}`),e.current.setPaginationModel({page:t,pageSize:n.pageSize}))}),[e,r]),u=t.useCallback((t=>{const n=j3(e);t!==n.pageSize&&(r.debug(`Setting page size to ${t}`),e.current.setPaginationModel({pageSize:t,page:n.page}))}),[e,r]),c=t.useCallback((t=>{const o=j3(e);t!==o&&(r.debug("Setting 'paginationModel' to",t),e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{paginationModel:_6(e.pagination,n.signature,t)})})),"setPaginationModel"))}),[e,r,n.signature]);r4(e,{setPage:l,setPageSize:u,setPaginationModel:c},"public");const d=t.useCallback(((t,r)=>{const o=j3(e);return!r.exportOnlyDirtyModels||null!=n.paginationModel||null!=n.initialState?.pagination?.paginationModel||0!==o.page&&o.pageSize!==(n.autoPageSize?0:100)?s({},t,{pagination:s({},t.pagination,{paginationModel:o})}):t}),[e,n.paginationModel,n.initialState?.pagination?.paginationModel,n.autoPageSize]),h=t.useCallback(((t,r)=>{const o=r.stateToRestore.pagination?.paginationModel?s({},H3(n.autoPageSize),r.stateToRestore.pagination?.paginationModel):j3(e);return e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{paginationModel:_6(e.pagination,n.signature,o)})})),"stateRestorePreProcessing"),t}),[e,n.autoPageSize,n.signature]);l6(e,"exportState",d),l6(e,"restoreState",h);const p=t.useCallback((()=>{if(!n.autoPageSize)return;const t=e.current.getRootDimensions(),r=Math.max(1,Math.floor(t.viewportInnerSize.height/a));e.current.setPageSize(r)}),[e,n.autoPageSize,a]),f=t.useCallback((t=>{if(null==t)return;const n=j3(e);if(0===n.page)return;const r=V3(e);n.page>r-1&&e.current.setPage(Math.max(0,r-1))}),[e]),m=t.useCallback((()=>{0!==j3(e).page&&e.current.setPage(0),0!==e.current.getScrollPosition().top&&e.current.scroll({top:0})}),[e]),g=t.useCallback((t=>{const n=s({},t,{items:L3(e)});C6(n,i.current)||(i.current=n,m())}),[e,m]);H1(e,"viewportInnerSizeChange",p),H1(e,"paginationModelChange",(()=>{const t=j3(e);e.current.virtualScrollerRef?.current&&e.current.scrollToIndexes({rowIndex:t.page*t.pageSize})})),H1(e,"rowCountChange",f),H1(e,"sortModelChange",m),H1(e,"filterModelChange",g);const b=t.useRef(!0);t.useEffect((()=>{b.current?b.current=!1:n.pagination&&e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{paginationModel:_6(e.pagination,n.signature,n.paginationModel)})})))}),[e,n.paginationModel,n.signature,n.pagination]),t.useEffect((()=>{e.current.setState((e=>{const t=!0===n.pagination;return e.pagination.paginationMode===n.paginationMode||e.pagination.enabled===t?e:s({},e,{pagination:s({},e.pagination,{paginationMode:n.paginationMode,enabled:!0===n.pagination})})}))}),[e,n.paginationMode,n.pagination]),t.useEffect(p,[p])})(e,n),((e,n)=>{const r=V9(e,"useGridRowCount"),o=m0(e,T3),i=m0(e,Y3),a=m0(e,F3),l=m0(e,j3),u=OW((()=>j3(e).pageSize));e.current.registerControlState({stateId:"paginationRowCount",propModel:n.rowCount,propOnChange:n.onRowCountChange,stateSelector:Y3,changeEvent:"rowCountChange"});const c=t.useCallback((t=>{i!==t&&(r.debug("Setting 'rowCount' to",t),e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{rowCount:t})}))))}),[e,r,i]);r4(e,{setRowCount:c},"public");const d=t.useCallback(((t,r)=>{const o=Y3(e);return r.exportOnlyDirtyModels&&null==n.rowCount&&null==n.initialState?.pagination?.rowCount?t:s({},t,{pagination:s({},t.pagination,{rowCount:o})})}),[e,n.rowCount,n.initialState?.pagination?.rowCount]),h=t.useCallback(((t,n)=>{const r=n.stateToRestore.pagination?.rowCount?n.stateToRestore.pagination.rowCount:Y3(e);return e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{rowCount:r})}))),t}),[e]);l6(e,"exportState",d),l6(e,"restoreState",h);const p=t.useCallback((t=>{"client"!==n.paginationMode&&u.current&&t.pageSize!==u.current&&(u.current=t.pageSize,-1===i&&e.current.setPage(0))}),[n.paginationMode,u,i,e]);H1(e,"paginationModelChange",p),t.useEffect((()=>{"client"===n.paginationMode?e.current.setRowCount(o):null!=n.rowCount&&e.current.setRowCount(n.rowCount)}),[e,n.paginationMode,o,n.rowCount]);const f=!1===a.hasNextPage;t.useEffect((()=>{f&&-1===i&&e.current.setRowCount(l.pageSize*l.page+o)}),[e,o,f,i,l])})(e,n)})(e,n),((e,n)=>{const{getRowHeight:r,getRowSpacing:o,getEstimatedRowHeight:i}=n,a=e.current.caches.rowsMeta.heights,l=t.useRef(-1),u=t.useRef(!1),c=t.useRef(!1),d=m0(e,Y0),h=q3(e),p=m0(e,e2),f=m0(e,w1),m=t.useCallback((t=>{const n=b1(e).rowHeight,a=e.current.getRowHeightEntry(t.id);if(r){const e=r(s({},t,{densityFactor:d}));if("auto"===e){if(a.needsFirstMeasurement){const e=i?i(s({},t,{densityFactor:d})):n;a.content=e??n}u.current=!0,a.autoHeight=!0}else a.content=s5(e,n),a.needsFirstMeasurement=!1,a.autoHeight=!1}else a.content=n,a.needsFirstMeasurement=!1;if(o){const n=e.current.getRowIndexRelativeToVisibleRows(t.id),r=o(s({},t,{isFirstVisible:0===n,isLastVisible:n===h.rows.length-1,indexRelativeToCurrentPage:n}));a.spacingTop=r.top??0,a.spacingBottom=r.bottom??0}else a.spacingTop=0,a.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",a,t),a}),[e,h.rows,r,i,f,o,d]),g=t.useCallback((()=>{u.current=!1;const t=p.top.reduce(((e,t)=>{const n=m(t);return e+n.content+n.spacingTop+n.spacingBottom+n.detail}),0),n=p.bottom.reduce(((e,t)=>{const n=m(t);return e+n.content+n.spacingTop+n.spacingBottom+n.detail}),0),r=[],o=h.rows.reduce(((e,t)=>{r.push(e);const n=m(t);return e+(n.content+n.spacingTop+n.spacingBottom+n.detail)}),0);u.current||(l.current=1/0);const i=t!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||n!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||o!==e.current.state.rowsMeta.currentPageTotalHeight,a={currentPageTotalHeight:o,positions:r,pinnedTopRowsTotalHeight:t,pinnedBottomRowsTotalHeight:n};e.current.setState((e=>s({},e,{rowsMeta:a}))),i&&e.current.updateDimensions(),c.current=!0}),[e,p,h.rows,m]),b=OW((()=>new g7((t=>{for(let n=0;n<t.length;n+=1){const r=t[n],o=r.borderBoxSize&&r.borderBoxSize.length>0?r.borderBoxSize[0].blockSize:r.contentRect.height,i=r.target.__mui_id,s=v4(e)?.id;if(s===i&&0===o)return;e.current.unstable_storeRowHeightMeasurement(i,o)}c.current||requestAnimationFrame((()=>{e.current.requestPipeProcessorsApplication("rowHeight")}))})))).current;u6(e,"rowHeight",g),IW((()=>{g()}),[g]);const y={unstable_getRowHeight:e=>a.get(e)?.content??f,unstable_setLastMeasuredRowIndex:e=>{u.current&&e>l.current&&(l.current=e)},unstable_storeRowHeightMeasurement:(t,n)=>{const r=e.current.getRowHeightEntry(t),o=r.content!==n;r.needsFirstMeasurement=!1,r.content=n,c.current&&=!o},resetRowHeights:()=>{a.clear(),g()}},w={hydrateRowsMeta:g,observeRowHeight:(e,t)=>(e.__mui_id=t,b.observe(e),()=>b.unobserve(e)),rowHasAutoHeight:e=>a.get(e)?.autoHeight??!1,getRowHeightEntry:e=>{let t=a.get(e);return void 0===t&&(t={content:f,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},a.set(e,t)),t},getLastMeasuredRowIndex:()=>l.current};r4(e,y,"public"),r4(e,w,"private")})(e,n),((e,n)=>{const r=eU(),o=V9(e,"useGridScroll"),i=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,a=m0(e,C3),l=t.useCallback((t=>{const r=b1(e),i=W1(e),l=n.listView?[c4(e)]:Q0(e);if(null!=t.rowIndex&&0===i||0===l.length)return!1;o.debug(`Scrolling to cell at row ${t.rowIndex}, col: ${t.colIndex} `);let u={};if(void 0!==t.colIndex){const n=r1(e);let o;if(void 0!==t.rowIndex){const n=a[t.rowIndex]?.id,r=e.current.unstable_getCellColSpanInfo(n,t.colIndex);r&&!r.spannedByColSpan&&(o=r.cellProps.width)}void 0===o&&(o=l[t.colIndex].computedWidth),u.left=a7({containerSize:r.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:o,elementOffset:n[t.colIndex]})}if(void 0!==t.rowIndex){const o=J3(e),i=z3(e),a=W3(e),l=n.pagination?t.rowIndex-i*a:t.rowIndex,c=o.positions[l+1]?o.positions[l+1]-o.positions[l]:o.currentPageTotalHeight-o.positions[l];u.top=a7({containerSize:r.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:c,elementOffset:o.positions[l]})}return u=e.current.unstable_applyPipeProcessors("scrollToIndexes",u,t),(void 0!==typeof u.left||void 0!==typeof u.top)&&(e.current.scroll(u),!0)}),[o,e,s,n.pagination,a,n.listView]),u=t.useCallback((e=>{if(s.current&&void 0!==e.left&&i.current){const t=r?-1:1;i.current.scrollLeft=e.left,s.current.scrollLeft=t*e.left,o.debug(`Scrolling left: ${e.left}`)}s.current&&void 0!==e.top&&(s.current.scrollTop=e.top,o.debug(`Scrolling top: ${e.top}`)),o.debug("Scrolling, updating container, and viewport")}),[s,r,i,o]),c=t.useCallback((()=>s?.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0}),[s]);r4(e,{scroll:u,scrollToIndexes:l,getScrollPosition:c},"public")})(e,n),(e=>{const n=V9(e,"useGridColumnMenu"),r=t.useCallback((t=>{const r=X4(e),o=t;(!0!==r.open||o!==r.field)&&(e.current.setState((e=>e.columnMenu.open&&e.columnMenu.field===t?e:(n.debug("Opening Column Menu"),s({},e,{columnMenu:{open:!0,field:t}})))),e.current.hidePreferences())}),[e,n]),o=t.useCallback((()=>{const t=X4(e);if(t.field){const n=K0(e),r=X0(e),o=G0(e);let i=t.field;if(n[i]||(i=o[0]),!1===r[i]){const e=o.filter((e=>e===i||!1!==r[e])),t=e.indexOf(i);i=e[t+1]||e[t-1]}e.current.setColumnHeaderFocus(i)}const r={open:!1,field:void 0};(r.open!==t.open||r.field!==t.field)&&e.current.setState((e=>(n.debug("Hiding Column Menu"),s({},e,{columnMenu:r}))))}),[e,n]),i=t.useCallback((t=>{n.debug("Toggle Column Menu");const i=X4(e);i.open&&i.field===t?o():r(t)}),[e,n,r,o]);r4(e,{showColumnMenu:r,hideColumnMenu:o,toggleColumnMenu:i},"public"),H1(e,"columnResizeStart",o),H1(e,"virtualScrollerWheel",e.current.hideColumnMenu),H1(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)})(e),S6(e,n),((e,n)=>{const r=null!==e.current.rootElementRef.current,o=V9(e,"useGridPrintExport"),i=t.useRef(null),a=t.useRef(null),l=t.useRef({}),u=t.useRef([]),c=t.useRef(null);t.useEffect((()=>{i.current=sK(e.current.rootElementRef.current)}),[e,r]);const d=t.useCallback(((t,n,r)=>new Promise((o=>{const i=p6({apiRef:e,options:{fields:t,allColumns:n}}).map((e=>e.field)),s=q0(e),a={};s.forEach((e=>{a[e.field]=i.includes(e.field)})),r&&(a[J9.field]=!0),e.current.setColumnVisibilityModel(a),o()}))),[e]),h=t.useCallback((t=>{const n=t({apiRef:e}).reduce(((t,n)=>{const r=e.current.getRow(n);return r[X2]||t.push(r),t}),[]);e.current.setRows(n)}),[e]),p=t.useCallback(((t,r)=>{const o=s({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},r),a=t.contentDocument;if(!a)return;const l=J3(e),u=e.current.rootElementRef.current,c=u.cloneNode(!0);c.querySelector(`.${t0.main}`).style.overflow="visible",c.style.contain="size";let d=u.querySelector(`.${t0.toolbarContainer}`)?.offsetHeight||0,h=u.querySelector(`.${t0.footerContainer}`)?.offsetHeight||0;const p=c.querySelector(`.${t0.footerContainer}`);o.hideToolbar&&(c.querySelector(`.${t0.toolbarContainer}`)?.remove(),d=0),o.hideFooter&&p&&(p.remove(),h=0);const f=l.currentPageTotalHeight+i3(e,n)+d+h;c.style.height=`${f}px`,c.style.boxSizing="content-box",!o.hideFooter&&p&&(p.style.position="absolute",p.style.width="100%",p.style.top=f-h+"px");const m=document.createElement("div");m.appendChild(c),a.body.style.marginTop="0px",a.body.innerHTML=m.innerHTML;const g="function"==typeof o.pageStyle?o.pageStyle():o.pageStyle;if("string"==typeof g){const e=a.createElement("style");e.appendChild(a.createTextNode(g)),a.head.appendChild(e)}o.bodyClassName&&a.body.classList.add(...o.bodyClassName.split(" "));let b=[];if(o.copyStyles){const e=u.getRootNode();b=function(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let t=0;t<r.length;t+=1){const o=r[t];if("STYLE"===o.tagName){const t=e.createElement(o.tagName),n=o.sheet;if(n){let r="";for(let e=0;e<n.cssRules.length;e+=1)"string"==typeof n.cssRules[e].cssText&&(r+=`${n.cssRules[e].cssText}\r\n`);t.appendChild(e.createTextNode(r)),e.head.appendChild(t)}}else if(o.getAttribute("href")){const t=e.createElement(o.tagName);for(let e=0;e<o.attributes.length;e+=1){const n=o.attributes[e];n&&t.setAttribute(n.nodeName,n.nodeValue||"")}n.push(new Promise((e=>{t.addEventListener("load",(()=>e()))}))),e.head.appendChild(t)}}return n}(a,"ShadowRoot"===e.constructor.name?e:i.current)}Promise.all(b).then((()=>{t.contentWindow.print()}))}),[e,i,n]),f=t.useCallback((t=>{i.current.body.removeChild(t),e.current.restoreState(a.current||{}),a.current?.columns?.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.setState((e=>s({},e,{virtualization:c.current}))),e.current.setRows(u.current),a.current=null,l.current={},u.current=[]}),[e]),m=t.useCallback((async t=>{if(o.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(a.current=e.current.exportState(),l.current=X0(e),u.current=e.current.getSortedRows().filter((e=>!e[X2])),n.pagination){const t={page:0,pageSize:R3(e)};e.current.setState((e=>s({},e,{pagination:s({},e.pagination,{paginationModel:_6(e.pagination,"DataGridPro",t)})})))}c.current=e.current.state.virtualization,e.current.setState((e=>s({},e,{virtualization:s({},e.virtualization,{enabled:!1,enabledForColumns:!1})}))),await d(t?.fields,t?.allColumns,t?.includeCheckboxes),h(t?.getRowsToExport??f6),await new Promise((e=>{requestAnimationFrame((()=>{e()}))}));const r=function(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}(t?.fileName);r.onload=()=>{p(r,t),r.contentWindow.matchMedia("print").addEventListener("change",(e=>{!1===e.matches&&f(r)}))},i.current.body.appendChild(r)}),[n,o,e,p,f,d,h]);r4(e,{exportDataAsPrint:m},"public");const g=t.useCallback(((e,t)=>t.printOptions?.disableToolbarButton?e:[...e,{component:(0,sn.jsx)(v6,{options:t.printOptions}),componentName:"printExport"}]),[]);l6(e,"exportMenu",g)})(e,n),((e,n)=>{const r=n.ignoreValueFormatterDuringExport,o=("object"==typeof r?r?.clipboardExport:r)||!1,i=n.clipboardCopyCellDelimiter,s=t.useCallback((t=>{if(!function(e){return(e.ctrlKey||e.metaKey)&&"C"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey}(t))return;if(n=t.target,window.getSelection()?.toString()||n&&(n.selectionEnd||0)-(n.selectionStart||0)>0)return;var n;let r="";if(T4(e)>0)r=e.current.getDataAsCsv({includeHeaders:!1,delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1});else{const t=h4(e);if(t){const n=e.current.getCellParams(t.id,t.field);r=Z9(n,{csvOptions:{delimiter:i,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:o})}}var s;r=e.current.unstable_applyPipeProcessors("clipboardCopy",r),r&&(s=r,navigator.clipboard?navigator.clipboard.writeText(s).catch((()=>{i6(s)})):i6(s),e.current.publishEvent("clipboardCopy",r))}),[e,o,i]);B9(e,(()=>e.current.rootElementRef.current),"keydown",s),A1(e,"clipboardCopy",n.onClipboardCopy)})(e,n),function(e,n){const r=V9(e,"useResizeContainer"),o=t.useRef(!1),i=t.useRef(u7),a=m0(e,t1),l=m0(e,Y0),u=m0(e,h7),c=t.useRef(!0),{rowHeight:d,headerHeight:h,groupHeaderHeight:p,headerFilterHeight:f,headersTotalHeight:m,leftPinnedWidth:g,rightPinnedWidth:b}=f7(n,e,l,a),y=t.useCallback((()=>b1(e)),[e]),w=t.useCallback((t=>{e.current.setState((e=>s({},e,{dimensions:t}))),e.current.rootElementRef.current&&p7(e.current.rootElementRef.current,b1(e))}),[e]),v=t.useCallback((()=>{const t=b1(e);if(!t.isReady)return 0;const r=K3(e);if(n.getRowHeight){const t=t4(e),n=t.lastRowIndex-t.firstRowIndex;return Math.min(n-1,r.rows.length)}const o=Math.floor(t.viewportInnerSize.height/d);return Math.min(o,r.rows.length)}),[e,n.getRowHeight,d]),S=t.useCallback((()=>{if(c.current)return;const t=function(e,t){if(void 0!==t)return t;if(null===e)return 0;const n=m7.get(e);if(void 0!==n)return n;const r=sK(e).createElement("div");r.style.width="99px",r.style.height="99px",r.style.position="absolute",r.style.overflow="scroll",r.className="scrollDiv",e.appendChild(r);const o=r.offsetWidth-r.clientWidth;return e.removeChild(r),m7.set(e,o),o}(e.current.mainElementRef.current,n.scrollbarSize),r=J3(e),o=m+r.pinnedTopRowsTotalHeight,s=r.pinnedBottomRowsTotalHeight,a={width:u,height:S4(r.currentPageTotalHeight,1)};let l,y,v=!1,S=!1;if(n.autoHeight)S=!1,v=Math.round(u)>Math.round(i.current.width),l={width:i.current.width,height:o+s+a.height},y={width:Math.max(0,l.width-(S?t:0)),height:Math.max(0,l.height-(v?t:0))};else{l={width:i.current.width,height:i.current.height},y={width:Math.max(0,l.width),height:Math.max(0,l.height-o-s)};const e=a,n=y,r=e.width>n.width,u=e.height>n.height;(r||u)&&(S=u,v=e.width+(S?t:0)>n.width,v&&(S=e.height+t>n.height)),S&&(y.width-=t),v&&(y.height-=t)}const C=Math.max(l.width,u+(S?t:0)),_={width:u,height:o+a.height+s},M={isReady:!0,root:i.current,viewportOuterSize:l,viewportInnerSize:y,contentSize:a,minimumSize:_,hasScrollX:v,hasScrollY:S,scrollbarSize:t,headerHeight:h,groupHeaderHeight:p,headerFilterHeight:f,rowWidth:C,rowHeight:d,columnsTotalWidth:u,leftPinnedWidth:g,rightPinnedWidth:b,headersTotalHeight:m,topContainerHeight:o,bottomContainerHeight:s},x=e.current.state.dimensions;var k,R;C6(x,M)||(w(M),k=M.viewportInnerSize,R=x.viewportInnerSize,(k.width!==R.width||k.height!==R.height)&&e.current.publishEvent("viewportInnerSizeChange",M.viewportInnerSize),e.current.updateRenderContext?.())}),[e,w,n.scrollbarSize,n.autoHeight,d,h,p,f,u,m,g,b]),C=PW(S),_=t.useMemo((()=>n.resizeThrottleMs>0?function(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...e){r=e,void 0===n&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}((()=>{C(),e.current.publishEvent("debouncedResize",i.current)}),n.resizeThrottleMs):void 0),[e,n.resizeThrottleMs,C]);t.useEffect((()=>_?.clear),[_]);const M={getRootDimensions:y},x={updateDimensions:S,getViewportPageSize:v};IW(S,[S]),r4(e,M,"public"),r4(e,x,"private");const k=t.useCallback((t=>{p7(t,b1(e))}),[e]),R=t.useCallback((e=>{if(i.current=e,0!==e.height||o.current||n.autoHeight||C4||(r.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||C4||(r.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),c.current||!_)return c.current=!1,void S();_()}),[S,n.autoHeight,_,r]);A1(e,"rootMount",k),A1(e,"resize",R),A1(e,"debouncedResize",n.onResize)}(e,n),function(e,t){A1(e,"columnHeaderClick",t.onColumnHeaderClick),A1(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),A1(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),A1(e,"columnHeaderOver",t.onColumnHeaderOver),A1(e,"columnHeaderOut",t.onColumnHeaderOut),A1(e,"columnHeaderEnter",t.onColumnHeaderEnter),A1(e,"columnHeaderLeave",t.onColumnHeaderLeave),A1(e,"cellClick",t.onCellClick),A1(e,"cellDoubleClick",t.onCellDoubleClick),A1(e,"cellKeyDown",t.onCellKeyDown),A1(e,"preferencePanelClose",t.onPreferencePanelClose),A1(e,"preferencePanelOpen",t.onPreferencePanelOpen),A1(e,"menuOpen",t.onMenuOpen),A1(e,"menuClose",t.onMenuClose),A1(e,"rowDoubleClick",t.onRowDoubleClick),A1(e,"rowClick",t.onRowClick),A1(e,"stateChange",t.onStateChange)}(e,n),(e=>{const n=t.useCallback(((t={})=>e.current.unstable_applyPipeProcessors("exportState",{},t)),[e]),r=t.useCallback((t=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((e=>{e()}))}),[e]);r4(e,{exportState:n,restoreState:r},"public")})(e),function(e,n){const r=t=>{e.current.setState((e=>s({},e,{virtualization:s({},e.virtualization,{enabled:t,enabledForColumns:t,enabledForRows:t&&!n.autoHeight})})))},o={unstable_setVirtualization:r,unstable_setColumnVirtualization:t=>{e.current.setState((e=>s({},e,{virtualization:s({},e.virtualization,{enabledForColumns:t})})))}};r4(e,o,"public"),t.useEffect((()=>{r(!n.disableVirtualization)}),[n.disableVirtualization,n.autoHeight])}(e,n),function(e,n){const r=()=>{e.current.setState((t=>t.listViewColumn?s({},t,{listViewColumn:s({},t.listViewColumn,{computedWidth:B7(e)})}):t))},o=t.useRef(null);H1(e,"viewportInnerSizeChange",(e=>{o.current!==e.width&&(o.current=e.width,r())})),H1(e,"columnVisibilityModelChange",r),IW((()=>{const t=n.listViewColumn;t&&e.current.setState((n=>s({},n,{listViewColumn:s({},t,{computedWidth:B7(e)})})))}),[e,n.listViewColumn]),t.useEffect((()=>{n.listView&&n.listViewColumn}),[n.listView,n.listViewColumn])}(e,n),((e,n)=>{const{api:r,strategyProcessor:o,events:i,setStrategyAvailability:a}=((e,n,r={})=>{const o=t.useCallback((()=>{e.current.setStrategyAvailability(j9.DataSource,U7.Default,n.dataSource?()=>!0:()=>!1)}),[e,n.dataSource]),[i,a]=t.useState(!1),l=m0(e,j3),u=t.useRef(0),c=n.onDataSourceError,d=OW((()=>{const e=n.pageSizeOptions.map((e=>"number"==typeof e?e:e.value)).sort(((e,t)=>e-t)),t=Math.min(l.pageSize,e[0]);return new G7(t)})).current,[h,p]=t.useState((()=>Z7(n.dataSourceCache,r.cacheOptions))),f=t.useCallback((async(t,o)=>{const a=n.dataSource?.getRows;if(!a)return;if(t&&t!==q2&&"DataGrid"!==n.signature)return void r.fetchRowChildren?.([t]);r.clearDataSourceState?.();const l=s({},$7(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),o),p=d.getCacheKeys(l).map((e=>h.get(e)));if(p.every((e=>void 0!==e)))return void e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:G7.mergeResponses(p),fetchParams:l});(i||0===e.current.getRowsCount())&&e.current.setLoading(!0);const f=u.current+1;u.current=f;try{const t=await a(l);d.splitResponse(l,t).forEach(((e,t)=>h.set(t,e))),u.current===f&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:t,fetchParams:l})}catch(t){u.current===f&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:t,fetchParams:l}),"function"==typeof c&&c(new X7({message:t?.message,params:l,cause:t})))}finally{i&&u.current===f&&e.current.setLoading(!1)}}),[d,h,e,i,n.dataSource?.getRows,c,r,n.signature]),m=t.useCallback((()=>{a(e.current.getActiveStrategy(j9.DataSource)===U7.Default)}),[e]),g=t.useCallback((t=>{if("error"in t)return void e.current.setRows([]);const{response:n}=t;void 0!==n.rowCount&&e.current.setRowCount(n.rowCount),e.current.setRows(n.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:t.fetchParams,response:n},!0)}),[e]),b=n.dataSource?.updateRow,y=r.handleEditRow,w=t.useCallback((async t=>{if(b)try{const n=await b(t);return"function"==typeof y?(y(t,n),n):(e.current.updateNestedRows([n],[]),n&&!C6(n,t.previousRow)&&e.current.dataSource.cache.clear(),n)}catch(e){throw"function"==typeof c&&c(new J7({message:e?.message,params:t,cause:e})),e}}),[e,b,c,y]),v={dataSource:{fetchRows:f,cache:h,editRow:w}},S=t.useMemo((()=>nK(f,0)),[f]),C=t.useRef(!0);return t.useEffect((()=>{if(C.current)return void(C.current=!1);if(void 0===n.dataSourceCache)return;const e=Z7(n.dataSourceCache,r.cacheOptions);p((t=>t!==e?e:t))}),[n.dataSourceCache,r.cacheOptions]),t.useEffect((()=>{n.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())}),[e,n.dataSource]),{api:{public:v},debouncedFetchRows:S,strategyProcessor:{strategyName:U7.Default,group:"dataSourceRowsUpdate",processor:g},setStrategyAvailability:o,cacheChunkManager:d,cache:h,events:{strategyAvailabilityChange:m,sortModelChange:b2(i,(()=>S())),filterModelChange:b2(i,(()=>S())),paginationModelChange:b2(i,(()=>S()))}}})(e,n);r4(e,r.public,"public"),M6(e,o.strategyName,o.group,o.processor),Object.entries(i).forEach((([t,n])=>{H1(e,t,n)})),t.useEffect((()=>{a()}),[a])})(e,n)},t8={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>1!==e?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>1!==e?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${-1!==n?n:r&&r>t?`around ${r}`:`more than ${t}`}`:`${e}–${t} of ${-1!==n?n:`more than ${t}`}`,paginationItemAriaLabel:e=>"first"===e?"Go to first page":"last"===e?"Go to last page":"next"===e?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>"is any of"===t?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>"is any of"===t?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`},n8=["field","type","align","width","height","empty","style","className"],r8="1.3em",o8=[40,80],i8={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},s8=function(){const e=(t=12345,()=>{let e=t+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296});var t;return(t,n)=>t+(n-t)*e()}(),a8=ZZ((function(e){const{field:n,type:r,align:o,width:a,height:l,empty:u=!1,style:c,className:d}=e,h=Bz(e,n8),p=M0(),f=(e=>{const{align:t,classes:n,empty:r}=e;return $z({root:["cell","cellSkeleton",`cell--text${t?$e(t):"Left"}`,r&&"cellEmpty"]},e0,n)})({classes:p.classes,align:o,empty:u}),m=t.useMemo((()=>{if("boolean"===r||"actions"===r)return{variant:"circular",width:r8,height:r8};const[e,t]=r?i8[r]??o8:o8;return{variant:"text",width:`${Math.round(s8(e,t))}%`,height:"1.2em"}}),[r]);return(0,sn.jsx)("div",s({"data-field":n,className:i(f.root,d),style:s({height:l,maxWidth:a,minWidth:a},c)},h,{children:!u&&(0,sn.jsx)(p.slots.baseSkeleton,s({},m))}))})),l8=["className"],u8=xG("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})((()=>({display:"flex",visibility:"hidden",width:0}))),c8=XZ((function(e,t){const{className:n}=e,r=Bz(e,l8),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["iconButtonContainer"]},e0,t)})(o);return(0,sn.jsx)(u8,s({className:i(a.root,n),ownerState:o},r,{ref:t}))}));function d8(e){const{counter:n,field:r,onClick:o}=e,i=d1(),a=M0(),l=(e=>{const{classes:t}=e;return $z({icon:["filterIcon"]},e0,t)})(s({},e,{classes:a.classes})),u=RW(),c=m0(i,l1,u),d=RW(),h=t.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=a1(i);t&&n===u1.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,d,u),o&&o(i.current.getColumnHeaderParams(r),e)}),[i,r,o,d,u]);if(!n)return null;const p=(0,sn.jsx)(a.slots.baseIconButton,s({id:u,onClick:h,"aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?d:void 0},a.slotProps?.baseIconButton,{children:(0,sn.jsx)(a.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return(0,sn.jsx)(a.slots.baseTooltip,s({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},a.slotProps?.baseTooltip,{children:(0,sn.jsxs)(c8,{children:[n>1&&(0,sn.jsx)(a.slots.baseBadge,{badgeContent:n,color:"default",children:p}),1===n&&p]})}))}const h8=["sortingOrder"],p8=t.memo((function(e){const{sortingOrder:t}=e,n=Bz(e,h8),r=M0(),[o]=t,i="asc"===o?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return i?(0,sn.jsx)(i,s({},n)):null})),f8=["direction","index","sortingOrder","disabled","className"],m8=xG(N1,{name:"MuiDataGrid",slot:"SortButton"})({transition:i0.transition(["opacity"],{duration:i0.transitions.duration.short,easing:i0.transitions.easing.easeInOut})});function g8(e){const{direction:n,index:r,sortingOrder:o,disabled:a,className:l}=e,u=Bz(e,f8),c=d1(),d=M0(),h=s({},e,{classes:d.classes}),p=(e=>{const{classes:t}=e;return $z({root:["sortButton"],icon:["sortIcon"]},e0,t)})(h),f=function(e,t,n,r){let o;const i={};return"asc"===t?o=e.columnSortedAscendingIcon:"desc"===t?o=e.columnSortedDescendingIcon:(o=p8,i.sortingOrder=r),o?(0,sn.jsx)(o,s({fontSize:"small",className:n},i)):null}(d.slots,n,p.icon,o);if(!f)return null;const m=(0,sn.jsx)(m8,s({as:d.slots.baseIconButton,ownerState:h,"aria-label":c.current.getLocaleText("columnHeaderSortIconLabel"),title:c.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:a,className:i(p.root,l)},d.slotProps?.baseIconButton,u,{children:f}));return(0,sn.jsxs)(t.Fragment,{children:[null!=r&&(0,sn.jsx)(d.slots.baseBadge,{badgeContent:r,color:"default",overlap:"circular",children:m}),null==r&&m]})}function b8(e){return(0,sn.jsx)(c8,{children:(0,sn.jsx)(g8,s({},e,{tabIndex:-1}))})}const y8=t.memo(b8),w8=["className","selectedRowCount"],v8=xG("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:i0.spacing(0,2),visibility:"hidden",width:0,height:0,[i0.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),S8=XZ((function(e,t){const{className:n,selectedRowCount:r}=e,o=Bz(e,w8),a=d1(),l=M0(),u=(e=>{const{classes:t}=e;return $z({root:["selectedRowCount"]},e0,t)})(l),c=a.current.getLocaleText("footerRowSelected")(r);return(0,sn.jsx)(v8,s({className:i(u.root,n),ownerState:l},o,{ref:t,children:c}))})),C8=["className"],_8=xG("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),M8=XZ((function(e,t){const{className:n}=e,r=Bz(e,C8),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["footerContainer","withBorderColor"]},e0,t)})(o);return(0,sn.jsx)(_8,s({className:i(a.root,n),ownerState:o},r,{ref:t}))})),x8=XZ((function(e,t){const n=d1(),r=M0(),o=m0(n,B1),i=m0(n,T4),a=m0(n,T3),l=!r.hideFooterSelectedRowCount&&i>0?(0,sn.jsx)(S8,{selectedRowCount:i}):(0,sn.jsx)("div",{}),u=r.hideFooterRowCount||r.pagination?null:(0,sn.jsx)(r.slots.footerRowCount,s({},r.slotProps?.footerRowCount,{rowCount:o,visibleRowCount:a})),c=r.pagination&&!r.hideFooterPagination&&r.slots.pagination&&(0,sn.jsx)(r.slots.pagination,{});return(0,sn.jsxs)(M8,s({},e,{ref:t,children:[l,u,c]}))})),k8=["className","rowCount","visibleRowCount"],R8=xG("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:i0.spacing(0,2)}),T8=XZ((function(e,t){const{className:n,rowCount:r,visibleRowCount:o}=e,a=Bz(e,k8),l=d1(),u=M0(),c=(e=>{const{classes:t}=e;return $z({root:["rowCount"]},e0,t)})(u);if(0===r)return null;const d=o<r?l.current.getLocaleText("footerTotalVisibleRows")(o,r):r.toLocaleString();return(0,sn.jsxs)(R8,s({className:i(c.root,n),ownerState:u},a,{ref:t,children:[l.current.getLocaleText("footerTotalRows")," ",d]}))})),E8=["className"],L8=xG("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:i0.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:i0.colors.background.backdrop}),I8=XZ((function(e,t){const{className:n}=e,r=Bz(e,E8),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["overlay"]},e0,t)})(o);return(0,sn.jsx)(L8,s({className:i(a.root,n),ownerState:o},r,{ref:t}))})),P8=(e,t,n,r,o,i)=>{let s;switch(e){case p5.LEFT:s=r[n];break;case p5.RIGHT:s=o-r[n]-t+i;break;default:s=void 0}return s},D8=(e,t,n,r,o)=>{const i=t===n-1;return!(e!==p5.LEFT||!i)||!!r&&(e===p5.LEFT||(e===p5.RIGHT?!i:!i||o))},H8=(e,t)=>e===p5.RIGHT&&0===t,O8={root:t0.scrollbarFiller,header:t0["scrollbarFiller--header"],borderTop:t0["scrollbarFiller--borderTop"],borderBottom:t0["scrollbarFiller--borderBottom"],pinnedRight:t0["scrollbarFiller--pinnedRight"]};function A8({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return(0,sn.jsx)("div",{role:"presentation",className:i(O8.root,e&&O8.header,t&&O8.borderTop,n&&O8.borderBottom,r&&O8.pinnedRight)})}const N8=(e,t)=>{if(e)if(t){if(e===p5.LEFT)return"right";if(e===p5.RIGHT)return"left"}else{if(e===p5.LEFT)return"left";if(e===p5.RIGHT)return"right"}};function j8(e,t,n,r){const o=N8(n,t);return o&&void 0!==r?(e[o]=r,e):e}const Y8=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],F8=xG("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),z8=e=>parseInt(e.getAttribute("data-colindex"),10),W8=XZ((function(e,n){const r=M0(),{slots:o}=r,a=eU(),l=(e=>{const{classes:t}=e;return $z({root:["skeletonLoadingOverlay"]},e0,t)})({classes:r.classes}),u=t.useRef(null),c=uW(u,n),d=d1(),h=m0(d,b1),p=m0(d,y1),f=m0(d,r1),m=t.useMemo((()=>f.filter((e=>e<=p)).length),[p,f]),{skeletonRowsCount:g,visibleColumns:b,showFirstRowBorder:y}=e,w=Bz(e,Y8),v=m0(d,Q0),S=t.useMemo((()=>v.slice(0,m)),[v,m]),C=m0(d,t1),_=t.useCallback((e=>-1!==C.left.findIndex((t=>t.field===e))?p5.LEFT:-1!==C.right.findIndex((t=>t.field===e))?p5.RIGHT:void 0),[C.left,C.right]),M=t.useMemo((()=>{const e=[];for(let t=0;t<g;t+=1){const n=[];for(let e=0;e<S.length;e+=1){const l=S[e],u=_(l.field),c=u===p5.LEFT,d=u===p5.RIGHT,p=N8(u,a),m=p?C[p].length:S.length-C.left.length-C.right.length,g=p?C[p].findIndex((e=>e.field===l.field)):e-C.left.length,y=h.hasScrollY?h.scrollbarSize:0,w=j8({},a,u,P8(u,l.computedWidth,e,f,h.columnsTotalWidth,y)),v=h.columnsTotalWidth<h.viewportOuterSize.width,M=D8(u,g,m,r.showCellVerticalBorder,v),x=H8(u,g),k=e===S.length-1,R=d&&0===g,T=R&&v,E=k&&!R&&v,L=h.viewportOuterSize.width-h.columnsTotalWidth,I=Math.max(0,L),P=(0,sn.jsx)(o.skeletonCell,{width:I,empty:!0},`skeleton-filler-column-${t}`),D=k&&0!==y;T&&n.push(P),n.push((0,sn.jsx)(o.skeletonCell,{field:l.field,type:l.type,align:l.align,width:"var(--width)",height:h.rowHeight,"data-colindex":e,empty:b&&!b.has(l.field),className:i(c&&t0["cell--pinnedLeft"],d&&t0["cell--pinnedRight"],M&&t0["cell--withRightBorder"],x&&t0["cell--withLeftBorder"]),style:s({"--width":`${l.computedWidth}px`},w)},`skeleton-column-${t}-${l.field}`)),E&&n.push(P),D&&n.push((0,sn.jsx)(A8,{pinnedRight:C.right.length>0},`skeleton-scrollbar-filler-${t}`))}e.push((0,sn.jsx)("div",{className:i(t0.row,t0.rowSkeleton,0===t&&!y&&t0["row--firstVisible"]),children:n},`skeleton-row-${t}`))}return e}),[g,S,_,a,C,h.hasScrollY,h.scrollbarSize,h.columnsTotalWidth,h.viewportOuterSize.width,h.rowHeight,f,r.showCellVerticalBorder,o,b,y]);return H1(d,"columnResize",(e=>{const{colDef:t,width:n}=e,r=u.current?.querySelectorAll(`[data-field="${I6(t.field)}"]`);if(!r)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=S.findIndex((e=>e.field===t.field)),i=_(t.field),s=i===p5.LEFT,a=i===p5.RIGHT,l=getComputedStyle(r[0]).getPropertyValue("--width"),c=parseInt(l,10)-n;if(r&&r.forEach((e=>{e.style.setProperty("--width",`${n}px`)})),s){const e=u.current?.querySelectorAll(`.${t0["cell--pinnedLeft"]}`);e?.forEach((e=>{z8(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-c+"px")}))}if(a){const e=u.current?.querySelectorAll(`.${t0["cell--pinnedRight"]}`);e?.forEach((e=>{z8(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+c}px`)}))}})),(0,sn.jsx)(F8,s({className:l.root},w,{ref:c,children:M}))})),V8=XZ((function(e,t){const n=d1(),r=m0(n,b1),o=r?.viewportInnerSize.height??0,i=Math.ceil(o/r.rowHeight);return(0,sn.jsx)(W8,s({},e,{skeletonRowsCount:i,ref:t}))})),B8=["variant","noRowsVariant","style"],$8={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>V8,style:{display:"block"}}},U8=XZ((function(e,t){const{variant:n="linear-progress",noRowsVariant:r="skeleton",style:o}=e,i=Bz(e,B8),a=d1(),l=M0(),u=m0(a,W1),c=$8[0===u?r:n],d=c.component(l);return(0,sn.jsx)(I8,s({style:s({},c.style,o)},i,{ref:t,children:(0,sn.jsx)(d,{})}))})),G8=XZ((function(e,t){const n=d1().current.getLocaleText("noRowsLabel");return(0,sn.jsx)(I8,s({},e,{ref:t,children:n}))})),K8=XZ((function(e,t){const n=M0(),r=d1(),o=m0(r,G0),i=!n.disableColumnSelector&&o.length>0;return(0,sn.jsxs)(I8,s({},e,{ref:t,children:[r.current.getLocaleText("noColumnsOverlayLabel"),i&&(0,sn.jsx)(n.slots.baseButton,s({size:"small"},n.slotProps?.baseButton,{onClick:()=>{r.current.showPreferences(u1.columns)},children:r.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))})),q8=rW(N1)({maxHeight:"calc(100% + 1px)",flexGrow:1}),X8=["className"],J8=xG("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:i0.spacing(2.5,1.5,2,1),gap:i0.spacing(2.5)});function Q8(e){const{className:t}=e,n=Bz(e,X8),r=M0(),o=(e=>{const{classes:t}=e;return $z({root:["panelContent"]},e0,t)})(r);return(0,sn.jsx)(J8,s({className:i(o.root,t),ownerState:r},n))}const Z8=["className"],eee=rW("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:i0.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${i0.colors.border.base}`});function tee(e){const{className:t}=e,n=Bz(e,Z8),r=M0(),o=(e=>{const{classes:t}=e;return $z({root:["panelFooter"]},e0,t)})(r);return(0,sn.jsx)(eee,s({className:i(o.root,t),ownerState:r},n))}const nee=["className"],ree=rW("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),oee=XZ((function(e,t){const{className:n}=e,r=Bz(e,nee),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["panelWrapper"]},e0,t)})(o);return(0,sn.jsx)(ree,s({tabIndex:-1,className:i(a.root,n),ownerState:o},r,{ref:t}))})),iee=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],see=["InputComponentProps"],aee=rW("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:i0.spacing(1.5)}),lee=rW("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),uee=rW("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),cee=rW("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),dee=rW("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),hee=rW("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),pee=e=>e.headerName||e.field,fee=new Intl.Collator,mee=XZ((function(e,n){const{item:r,hasMultipleFilters:o,deleteFilter:a,applyFilterChanges:l,showMultiFilterOperators:u,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:d,focusElementRef:h,logicOperators:p=[w2.And,w2.Or],columnsSort:f,filterColumns:m,deleteIconProps:g={},logicOperatorInputProps:b={},operatorInputProps:y={},columnInputProps:w={},valueInputProps:v={},readOnly:S}=e,C=Bz(e,iee),_=d1(),M=m0(_,K0),x=m0(_,o1),k=m0(_,y3),R=RW(),T=RW(),E=RW(),L=RW(),I=M0(),P=(e=>{const{classes:t}=e;return $z({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},e0,t)})(I),D=t.useRef(null),H=t.useRef(null),O=k.logicOperator??w2.And,A=o&&p.length>0,N=(I.slotProps?.baseSelect||{}).native??!1,j=I.slotProps?.baseSelectOption||{},{InputComponentProps:Y}=v,F=Bz(v,see),z=m0(_,G4),W=m0(_,q4),{filteredColumns:V,selectedField:B}=t.useMemo((()=>{let e=r.field;const t=!1===M[r.field].filterable?M[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(z)return{filteredColumns:x.filter((e=>void 0!==W.get(e.field))),selectedField:e};if(void 0===m||"function"!=typeof m)return{filteredColumns:x,selectedField:e};const n=m({field:r.field,columns:x,currentFilters:k?.items||[]});return{filteredColumns:x.filter((t=>{const o=n.includes(t.field);return t.field!==r.field||o||(e=void 0),o})),selectedField:e}}),[r.field,M,z,m,x,k?.items,W]),$=t.useMemo((()=>{switch(f){case"asc":return V.sort(((e,t)=>fee.compare(pee(e),pee(t))));case"desc":return V.sort(((e,t)=>-fee.compare(pee(e),pee(t))));default:return V}}),[V,f]),U=r.field?_.current.getColumn(r.field):null,G=t.useMemo((()=>r.operator&&U?U.filterOperators?.find((e=>e.value===r.operator)):null),[r,U]),K=t.useCallback((e=>{const t=e.target.value,n=_.current.getColumn(t);if(n.field===U.field)return;const o=n.filterOperators.find((e=>e.value===r.operator))||n.filterOperators[0];let i=o.InputComponent&&o.InputComponent===G?.InputComponent&&n.type===U.type?r.value:void 0;if("singleSelect"===n.type&&void 0!==i){const e=n,t=T5(e);Array.isArray(i)?i=i.filter((n=>void 0!==E5(n,t,e?.getOptionValue))):void 0===E5(r.value,t,e?.getOptionValue)&&(i=void 0)}l(s({},r,{field:t,operator:o.value,value:i}))}),[_,l,r,U,G]),q=t.useCallback((e=>{const t=e.target.value,n=U?.filterOperators.find((e=>e.value===t));l(s({},r,{operator:t,value:n?.InputComponent&&n?.InputComponent===G?.InputComponent?r.value:void 0}))}),[l,r,U,G]),X=t.useCallback((e=>{const t=e.target.value===w2.And.toString()?w2.And:w2.Or;d(t)}),[d]);return t.useImperativeHandle(h,(()=>({focus:()=>{G?.InputComponent?D?.current?.focus():H.current.focus()}})),[G]),(0,sn.jsxs)(aee,s({className:P.root,"data-id":r.id,ownerState:I},C,{ref:n,children:[(0,sn.jsx)(lee,s({},g,{className:i(P.deleteIcon,g.className),ownerState:I,children:(0,sn.jsx)(I.slots.baseIconButton,s({"aria-label":_.current.getLocaleText("filterPanelDeleteIconLabel"),title:_.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{a(r)},size:"small",disabled:S},I.slotProps?.baseIconButton,{children:(0,sn.jsx)(I.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,sn.jsx)(uee,s({as:I.slots.baseSelect,sx:[A?{display:"flex"}:{display:"none"},u?{visibility:"visible"}:{visibility:"hidden"},b.sx],className:i(P.logicOperatorInput,b.className),ownerState:I},b,{size:"small",slotProps:{htmlInput:{"aria-label":_.current.getLocaleText("filterPanelLogicOperator")}},value:O??"",onChange:X,disabled:!!c||1===p.length,native:N},I.slotProps?.baseSelect,{children:p.map((e=>(0,t.createElement)(I.slots.baseSelectOption,s({},j,{native:N,key:e.toString(),value:e.toString()}),_.current.getLocaleText((e=>{switch(e){case w2.And:return"filterPanelOperatorAnd";case w2.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(e)))))})),(0,sn.jsx)(cee,s({as:I.slots.baseSelect},w,{className:i(P.columnInput,w.className),ownerState:I,size:"small",labelId:T,id:R,label:_.current.getLocaleText("filterPanelColumns"),value:B??"",onChange:K,native:N,disabled:S},I.slotProps?.baseSelect,{children:$.map((e=>(0,t.createElement)(I.slots.baseSelectOption,s({},j,{native:N,key:e.field,value:e.field}),pee(e))))})),(0,sn.jsx)(dee,s({as:I.slots.baseSelect,size:"small"},y,{className:i(P.operatorInput,y.className),ownerState:I,labelId:L,label:_.current.getLocaleText("filterPanelOperator"),id:E,value:r.operator,onChange:q,native:N,inputRef:H,disabled:S},I.slotProps?.baseSelect,{children:U?.filterOperators?.map((e=>(0,t.createElement)(I.slots.baseSelectOption,s({},j,{native:N,key:e.value,value:e.value}),e.label||_.current.getLocaleText(`filterOperator${$e(e.value)}`))))})),(0,sn.jsx)(hee,s({},F,{className:i(P.valueInput,F.className),ownerState:I,children:G?.InputComponent?(0,sn.jsx)(G.InputComponent,s({apiRef:_,item:r,applyValue:l,focusElementRef:D,disabled:S,slotProps:{root:{size:"small"}}},G.InputComponentProps,Y),r.field):null}))]}))})),gee=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],bee=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),yee=XZ((function(e,n){const r=d1(),o=M0(),i=m0(r,y3),a=m0(r,o1),l=m0(r,i1),u=t.useRef(null),c=t.useRef(null),{logicOperators:d=[w2.And,w2.Or],columnsSort:h,filterFormProps:p,getColumnForNewFilter:f,disableAddFilterButton:m=!1,disableRemoveAllButton:g=!1}=e,b=Bz(e,gee),y=r.current.upsertFilterItem,w=t.useCallback((e=>{r.current.setFilterLogicOperator(e)}),[r]),v=t.useCallback((()=>{let e;if(f&&"function"==typeof f){const t=f({currentFilters:i?.items||[],columns:a});if(null===t)return null;e=a.find((({field:e})=>e===t))}else e=a.find((e=>e.filterOperators?.length));return e?bee(e):null}),[i?.items,a,f]),S=t.useCallback((()=>{if(void 0===f||"function"!=typeof f)return v();const e=i.items.length?i.items:[v()].filter(Boolean),t=f({currentFilters:e,columns:a});if(null===t)return null;const n=a.find((({field:e})=>e===t));return n?bee(n):null}),[i.items,a,f,v]),C=t.useMemo((()=>i.items.length?i.items:(c.current||(c.current=v()),c.current?[c.current]:[])),[i.items,v]),_=C.length>1,{readOnlyFilters:M,validFilters:x}=t.useMemo((()=>C.reduce(((e,t)=>(l[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[C,l]),k=t.useCallback((()=>{const e=S();e&&r.current.upsertFilterItems([...C,e])}),[r,S,C]),R=t.useCallback((e=>{const t=1===x.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,x.length]),T=t.useCallback((()=>1===x.length&&void 0===x[0].value?(r.current.deleteFilterItem(x[0]),r.current.hideFilterPanel()):r.current.setFilterModel(s({},i,{items:M}),"removeAllFilterItems")),[r,M,i,x]);return t.useEffect((()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&w(d[0])}),[d,w,i.logicOperator]),t.useEffect((()=>{x.length>0&&u.current.focus()}),[x.length]),(0,sn.jsxs)(oee,s({},b,{ref:n,children:[(0,sn.jsxs)(Q8,{children:[M.map(((e,t)=>(0,sn.jsx)(mee,s({item:e,applyFilterChanges:y,deleteFilter:R,hasMultipleFilters:_,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:w,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:h},p),null==e.id?t:e.id))),x.map(((e,t)=>(0,sn.jsx)(mee,s({item:e,applyFilterChanges:y,deleteFilter:R,hasMultipleFilters:_,showMultiFilterOperators:M.length+t>0,disableMultiFilterOperator:M.length+t!==1,applyMultiFilterOperatorChanges:w,focusElementRef:t===x.length-1?u:null,logicOperators:d,columnsSort:h},p),null==e.id?t+M.length:e.id)))]}),o.disableMultipleColumnsFiltering||m&&g?null:(0,sn.jsxs)(tee,{children:[m?(0,sn.jsx)("span",{}):(0,sn.jsx)(o.slots.baseButton,s({onClick:k,startIcon:(0,sn.jsx)(o.slots.filterPanelAddIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!g&&x.length>0?(0,sn.jsx)(o.slots.baseButton,s({onClick:T,startIcon:(0,sn.jsx)(o.slots.filterPanelRemoveAllIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))})),wee=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,vee=["children"],See=tV({from:{opacity:0},to:{opacity:1}}),Cee=tV({"from, to":{"--scrollable":'" "'}}),_ee=xG("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
- flex: 1;
- display: flex;
- flex-direction: column;
- animation: ${Cee};
- animation-timeline: --scroll-timeline;
- animation-fill-mode: none;
- box-sizing: border-box;
- overflow: auto;
- scrollbar-width: thin;
- scroll-timeline: --scroll-timeline block;
- &::before,
- &::after {
- content: '';
- flex-shrink: 0;
- display: block;
- position: sticky;
- left: 0;
- width: 100%;
- height: 4px;
- animation: ${See} linear both;
- animation-timeline: --scroll-timeline;
- // Custom property toggle trick:
- // - Detects if the element is scrollable
- // - https://css-tricks.com/the-css-custom-property-toggle-trick/
- --visibility-scrollable: var(--scrollable) visible;
- --visibility-not-scrollable: hidden;
- visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
- }
- &::before {
- top: 0;
- background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
- animation-range: 0 4px;
- }
- &::after {
- bottom: 0;
- background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
- animation-direction: reverse;
- animation-range: calc(100% - 4px) 100%;
- }
- `,Mee=XZ((function(e,t){const{children:n}=e,r=Bz(e,vee);return(0,sn.jsx)(_ee,s({},r,{ref:t,children:n}))})),xee=new Intl.Collator,kee=rW("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:i0.spacing(.5,1.5)}),Ree=rW(Mee,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),Tee=rW("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:i0.spacing(1.5,2),borderBottom:`1px solid ${i0.colors.border.base}`}),Eee=rW(N1,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${GQ.input}::-webkit-search-decoration,\n & .${GQ.input}::-webkit-search-cancel-button,\n & .${GQ.input}::-webkit-search-results-button,\n & .${GQ.input}::-webkit-search-results-decoration`]:{display:"none"}}),Lee=rW("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:i0.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${i0.colors.border.base}`}),Iee=rW("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:i0.spacing(1,0),alignSelf:"center",font:i0.typography.font.body}),Pee=["children","className","classes","onClose"],Dee=Wr("MuiDataGrid",["panel","paper"]),Hee=rW(N1,{name:"MuiDataGrid",slot:"panel"})({zIndex:i0.zIndex.panel}),Oee=rW("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:i0.colors.background.overlay,borderRadius:i0.radius.base,boxShadow:i0.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${i0.spacing(2)})`,overflow:"auto"}),Aee=XZ(((e,n)=>{const{children:r,className:o,onClose:a}=e,l=Bz(e,Pee),u=d1(),c=M0(),d=Dee,[h,p]=t.useState(!1),f=T0(),m=PW((()=>p(!0))),g=PW((()=>p(!1))),b=PW((()=>{a?.()})),y=PW((e=>{"Escape"===e.key&&a?.()})),[w,v]=t.useState(null);return t.useEffect((()=>{const e=u.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&v(e)}),[u]),w?(0,sn.jsx)(Hee,s({as:c.slots.basePopper,ownerState:c,placement:"bottom-end",className:i(d.panel,o,f),flip:!0,onDidShow:m,onDidHide:g,onClickAway:b,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},l,c.slotProps?.basePopper,{target:e.target??w,ref:n,children:(0,sn.jsx)(Oee,{className:d.paper,ownerState:c,onKeyDown:y,children:h&&r})})):null})),Nee=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],jee=H0(B6,((e,t)=>!!t&&!!d3(e))),Yee=XZ((function(e,n){const{selected:r,rowId:o,row:a,index:l,style:u,rowHeight:c,className:d,visibleColumns:h,pinnedColumns:p,offsetLeft:f,columnsTotalWidth:m,firstColumnIndex:g,lastColumnIndex:b,focusedColumnIndex:y,isFirstVisible:w,isLastVisible:v,isNotVisible:S,showBottomBorder:C,scrollbarWidth:_,gridHasFiller:M,onClick:x,onDoubleClick:k,onMouseEnter:R,onMouseLeave:T,onMouseOut:E,onMouseOver:L}=e,I=Bz(e,Nee),P=b0(),D=k0(),H=t.useRef(null),O=M0(),A=q3(P),N=m0(P,m3),j=m0(P,J1),Y=m0(P,r1),F=O.rowReordering,z=m0(P,jee,F),W=uW(H,n),V=G1(P,o),B=m0(P,$6,{rowId:o,editMode:O.editMode}),$=O.editMode===M5.Row,U=void 0!==y,G=U&&y>=p.left.length&&y<g,K=U&&y<h.length-p.right.length&&y>=b,q=function(e,t){return $z(t,e0,e)}(O.classes,{root:["row",r&&"selected",$&&"row--editable",B&&"row--editing",w&&"row--firstVisible",v&&"row--lastVisible",C&&"row--borderBottom","auto"===c&&"row--dynamicHeight"]}),X=D.hooks.useGridRowAriaAttributes();t.useLayoutEffect((()=>{if(A.range){const e=P.current.getRowIndexRelativeToVisibleRows(o);void 0!==e&&P.current.unstable_setLastMeasuredRowIndex(e)}if(H.current&&"auto"===c)return P.current.observeRowHeight(H.current,o)}),[P,A.range,c,o]);const J=t.useCallback(((e,t)=>n=>{D6(n)||P.current.getRow(o)&&(P.current.publishEvent(e,P.current.getRowParams(o),n),t&&t(n))}),[P,o]),Q=t.useCallback((e=>{const t=L6(e.target,t0.cell),n=t?.getAttribute("data-field");if(n){if(n===J9.field)return;if(n===h5)return;if("__reorder__"===n)return;if(P.current.getCellMode(o,n)===x5.Edit)return;const e=P.current.getColumn(n);if(e?.type===V5)return}J("rowClick",x)(e)}),[P,x,J,o]),{slots:Z,slotProps:ee,disableColumnReorder:te}=O,ne=m0(P,(()=>s({},P.current.getRowHeightEntry(o))),void 0,u0),re=t.useMemo((()=>{if(S)return{opacity:0,width:0,height:0};const e=s({},u,{maxHeight:"auto"===c?"none":c,minHeight:c,"--height":"number"==typeof c?`${c}px`:c});if(ne.spacingTop&&(e["border"===O.rowSpacingType?"borderTopWidth":"marginTop"]=ne.spacingTop),ne.spacingBottom){const t="border"===O.rowSpacingType?"borderBottomWidth":"marginBottom";let n=e[t];"number"!=typeof n&&(n=parseInt(n||"0",10)),n+=ne.spacingBottom,e[t]=n}return e}),[S,c,u,ne,O.rowSpacingType]),oe=P.current.unstable_applyPipeProcessors("rowClassName",[],o),ie=X(V,l);if("function"==typeof O.getRowClassName){const e=l-(A.range?.firstRowIndex||0),t=s({},P.current.getRowParams(o),{isFirstVisible:0===e,isLastVisible:e===A.rows.length-1,indexRelativeToCurrentPage:e});oe.push(O.getRowClassName(t))}const se=(e,t,n,r,i=p5.NONE)=>{const l=P.current.unstable_getCellColSpanInfo(o,n);if(l?.spannedByColSpan)return null;const u=l?.cellProps.width??e.computedWidth,d=l?.cellProps.colSpan??1,h=P8(i,e.computedWidth,n,Y,m,_);if("skeletonRow"===V.type)return(0,sn.jsx)(Z.skeletonCell,{type:e.type,width:u,height:c,field:e.field,align:e.align},e.field);const p="__reorder__"===e.field,f=!(te||e.disableReorder),g=z&&!N.length&&j<=1,b=!(f||p&&g),y=i===p5.VIRTUAL,w=H8(i,t),v=D8(i,t,r,O.showCellVerticalBorder,M);return(0,sn.jsx)(Z.cell,s({column:e,width:u,rowId:o,align:e.align||"left",colIndex:n,colSpan:d,disableDragEvents:b,isNotVisible:y,pinnedOffset:h,pinnedPosition:i,showLeftBorder:w,showRightBorder:v,row:a,rowNode:V},ee?.cell),e.field)},ae=p.left.map(((e,t)=>se(e,t,t,p.left.length,p5.LEFT))),le=p.right.map(((e,t)=>{const n=h.length-p.right.length+t;return se(e,t,n,p.right.length,p5.RIGHT)})),ue=h.length-p.left.length-p.right.length,ce=[];G&&ce.push(se(h[y],y-p.left.length,y,ue,p5.VIRTUAL));for(let e=g;e<b;e+=1){const t=h[e],n=e-p.left.length;t&&ce.push(se(t,n,e,ue))}K&&ce.push(se(h[y],y-p.left.length,y,ue,p5.VIRTUAL));const de=a?{onClick:Q,onDoubleClick:J("rowDoubleClick",k),onMouseEnter:J("rowMouseEnter",R),onMouseLeave:J("rowMouseLeave",T),onMouseOut:J("rowMouseOut",E),onMouseOver:J("rowMouseOver",L)}:null;return(0,sn.jsxs)("div",s({"data-id":o,"data-rowindex":l,role:"row",className:i(...oe,q.root,d),style:re},ie,de,I,{ref:W,children:[ae,(0,sn.jsx)("div",{role:"presentation",className:t0.cellOffsetLeft,style:{width:f}}),ce,(0,sn.jsx)("div",{role:"presentation",className:i(t0.cell,t0.cellEmpty)}),le,0!==_&&(0,sn.jsx)(A8,{pinnedRight:p.right.length>0,borderTop:!w})]}))})),Fee=ZZ(Yee);let zee;const Wee=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Vee=["changeReason","unstable_updateValueOnRender"];p5.LEFT,V0.LEFT,p5.RIGHT,V0.RIGHT,p5.NONE,p5.VIRTUAL;const Bee=XZ((function(e,n){const{column:r,row:o,rowId:a,rowNode:l,align:u,colIndex:c,width:d,className:h,style:p,colSpan:f,disableDragEvents:m,isNotVisible:g,pinnedOffset:b,pinnedPosition:y,showRightBorder:w,showLeftBorder:v,onClick:S,onDoubleClick:C,onMouseDown:_,onMouseUp:M,onMouseOver:x,onKeyDown:k,onKeyUp:R,onDragEnter:T,onDragOver:E}=e,L=Bz(e,Wee),I=b0(),P=M0(),D=eU(),H=r.field,O=m0(I,U6,{rowId:a,field:H}),A=k0().hooks.useCellAggregationResult(a,H),N=O?x5.Edit:x5.View,j=I.current.getCellParamsForRow(a,H,o,{colDef:r,cellMode:N,rowNode:l,tabIndex:m0(I,(()=>{const e=g4(I);return e&&e.field===H&&e.id===a?0:-1})),hasFocus:m0(I,(()=>{const e=h4(I);return e?.id===a&&e.field===H}))});j.api=I.current,A&&(j.value=A.value,j.formattedValue=r.valueFormatter?r.valueFormatter(j.value,o,r,I):j.value);const Y=m0(I,(()=>I.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:a,field:H}))),F=m0(I,a4),z=m0(I,l4),{hasFocus:W,isEditable:V=!1,value:B}=j,$="actions"===r.type&&r.getActions?.(I.current.getRowParams(a)).some((e=>!e.props.disabled)),U="view"!==N&&V||$?-1:j.tabIndex,{classes:G,getCellClassName:K}=P,q=[m0(I,(()=>I.current.unstable_applyPipeProcessors("cellClassName",[],{id:a,field:H}).filter(Boolean).join(" ")))];r.cellClassName&&q.push("function"==typeof r.cellClassName?r.cellClassName(j):r.cellClassName),"flex"===r.display&&q.push(t0["cell--flex"]),K&&q.push(K(j));const X=j.formattedValue??B,J=t.useRef(null),Q=uW(n,J),Z=t.useRef(null),ee=P.cellSelection??!1,te=(e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:s,isSelectionMode:a,classes:l}=e;return $z({root:["cell",`cell--text${$e(t)}`,s&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===p5.LEFT&&"cell--pinnedLeft",o===p5.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]},e0,l)})({align:u,showLeftBorder:v,showRightBorder:w,isEditable:V,classes:P.classes,pinnedPosition:y,isSelected:Y,isSelectionMode:ee}),ne=t.useCallback((e=>t=>{const n=I.current.getCellParams(a,H||"");I.current.publishEvent(e,n,t),M&&M(t)}),[I,H,M,a]),re=t.useCallback((e=>t=>{const n=I.current.getCellParams(a,H||"");I.current.publishEvent(e,n,t),_&&_(t)}),[I,H,_,a]),oe=t.useCallback(((e,t)=>n=>{if(!I.current.getRow(a))return;const r=I.current.getCellParams(a,H||"");I.current.publishEvent(e,r,n),t&&t(n)}),[I,H,a]),ie=F[a]?.[H]??!1,se=z[a]?.[H]??1,ae=t.useMemo((()=>{if(g)return{padding:0,opacity:0,width:0,height:0,border:0};const e=j8(s({"--width":`${d}px`},p),D,y,b),t=y===p5.LEFT,n=y===p5.RIGHT;return se>1&&(e.height=`calc(var(--height) * ${se})`,e.zIndex=10,(t||n)&&(e.zIndex=40)),e}),[d,g,p,b,y,D,se]);if(t.useEffect((()=>{if(!W||N===x5.Edit)return;const e=sK(I.current.rootElementRef.current);if(J.current&&!J.current.contains(e.activeElement)){const e=J.current.querySelector('[tabindex="0"]'),t=Z.current||e||J.current;if(void 0===zee&&document.createElement("div").focus({get preventScroll(){return zee=!0,!1}}),zee)t.focus({preventScroll:!0});else{const e=I.current.getScrollPosition();t.focus(),I.current.scroll(e)}}}),[W,N,I]),ie)return(0,sn.jsx)("div",{"data-colindex":c,role:"presentation",style:s({width:"var(--width)"},ae)});let le,ue,ce=L.onFocus;if(null===O&&r.renderCell&&(le=r.renderCell(j)),null!==O&&r.renderEditCell){const e=I.current.getRowWithUpdatedValues(a,r.field),t=Bz(O,Vee),n=s({},j,{row:e,formattedValue:r.valueFormatter?r.valueFormatter(O.value,e,r,I):j.formattedValue},t);le=r.renderEditCell(n),q.push(t0["cell--editing"]),q.push(G?.["cell--editing"])}if(void 0===le){const e=X?.toString();le=e,ue=e}t.isValidElement(le)&&$&&(le=t.cloneElement(le,{focusElementRef:Z}));const de=m?null:{onDragEnter:oe("cellDragEnter",T),onDragOver:oe("cellDragOver",E)};return(0,sn.jsx)("div",s({className:i(te.root,q,h),role:"gridcell","data-field":H,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":f,"aria-rowspan":se,style:ae,title:ue,tabIndex:U,onClick:oe("cellClick",S),onDoubleClick:oe("cellDoubleClick",C),onMouseOver:oe("cellMouseOver",x),onMouseDown:re("cellMouseDown"),onMouseUp:ne("cellMouseUp"),onKeyDown:oe("cellKeyDown",k),onKeyUp:oe("cellKeyUp",R)},de,L,{onFocus:ce,ref:Q,children:le}))})),$ee=ZZ(Bee),Uee=t.memo((e=>{const{colDef:n,open:r,columnMenuId:o,columnMenuButtonId:i,iconButtonRef:a}=e,l=d1(),u=M0(),c=(e=>{const{classes:t,open:n}=e;return $z({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},e0,t)})(s({},e,{classes:u.classes})),d=t.useCallback((e=>{e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(n.field)}),[l,n.field]),h=n.headerName??n.field;return(0,sn.jsx)("div",{className:c.root,children:(0,sn.jsx)(u.slots.baseTooltip,s({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},u.slotProps?.baseTooltip,{children:(0,sn.jsx)(u.slots.baseIconButton,s({ref:a,tabIndex:-1,className:c.button,"aria-label":l.current.getLocaleText("columnMenuAriaLabel")(h),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?o:void 0,id:i},u.slotProps?.baseIconButton,{children:(0,sn.jsx)(u.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));function Gee({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:l}){const u=d1(),c=u.current.getColumn(o),d=PW((e=>{e&&(e.stopPropagation(),a?.contains(e.target))||u.current.hideColumnMenu()}));return a&&c?(0,sn.jsx)(F5,{position:"bottom-"+("right"===c.align?"start":"end"),open:i,target:a,onClose:d,onExited:l,children:(0,sn.jsx)(n,s({colDef:c,hideMenu:d,open:i,id:e,labelledby:t},r))}):null}const Kee=["className","aria-label"],qee=xG("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),Xee=XZ((function(e,t){const{className:n}=e,r=Bz(e,Kee),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["columnHeaderTitle"]},e0,t)})(o);return(0,sn.jsx)(qee,s({className:i(a.root,n),ownerState:o},r,{ref:t}))}));function Jee(e){const{label:n,description:r}=e,o=M0(),i=t.useRef(null),[a,l]=t.useState(""),u=t.useCallback((()=>{if(!r&&i?.current){const t=(e=i.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;l(t?n:"")}var e}),[r,n]);return(0,sn.jsx)(o.slots.baseTooltip,s({title:r||a},o.slotProps?.baseTooltip,{children:(0,sn.jsx)(Xee,{onMouseOver:u,ref:i,children:n})}))}const Qee=["resizable","resizing","height","side"];var Zee=function(e){return e.Left="left",e.Right="right",e}(Zee||{});function ete(e){const{height:n,side:r=Zee.Right}=e,o=Bz(e,Qee),i=M0(),a=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e;return $z({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${$e(o)}`],icon:["iconSeparator"]},e0,r)})(s({},e,{side:r,classes:i.classes})),l=t.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,sn.jsx)("div",s({className:a.root,style:{minHeight:n}},o,{onClick:l,children:(0,sn.jsx)(i.slots.columnResizeIcon,{className:a.icon})}))}const tte=t.memo(ete),nte=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],rte=XZ((function(e,n){const{classes:r,colIndex:o,height:a,isResizing:l,sortDirection:u,hasFocus:c,tabIndex:d,separatorSide:h,isDraggable:p,headerComponent:f,description:m,width:g,columnMenuIconButton:b=null,columnMenu:y=null,columnTitleIconButtons:w=null,headerClassName:v,label:S,resizable:C,draggableContainerProps:_,columnHeaderSeparatorProps:M,style:x}=e,k=Bz(e,nte),R=b0(),T=M0(),E=t.useRef(null),L=uW(E,n);let I="none";return null!=u&&(I="asc"===u?"ascending":"descending"),t.useLayoutEffect((()=>{const e=R.current.state.columnMenu;if(c&&!e.open){const e=E.current.querySelector('[tabindex="0"]')||E.current;e?.focus(),R.current.columnHeadersContainerRef?.current&&(R.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[R,c]),(0,sn.jsxs)("div",s({className:i(r.root,v),style:s({},x,{width:g}),role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":I},k,{ref:L,children:[(0,sn.jsxs)("div",s({className:r.draggableContainer,draggable:p,role:"presentation"},_,{children:[(0,sn.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,sn.jsx)("div",{className:r.titleContainerContent,children:void 0!==f?f:(0,sn.jsx)(Jee,{label:S,description:m,columnWidth:g})}),w]}),b]})),(0,sn.jsx)(tte,s({resizable:!T.disableColumnResize&&!!C,resizing:l,height:a,side:h},M)),y]}))})),ote=ZZ((function(e){const{colDef:n,columnMenuOpen:r,colIndex:o,headerHeight:a,isResizing:l,isLast:u,sortDirection:c,sortIndex:d,filterItemsCounter:h,hasFocus:p,tabIndex:f,disableReorder:m,separatorSide:g,showLeftBorder:b,showRightBorder:y,pinnedPosition:w,pinnedOffset:v}=e,S=b0(),C=M0(),_=eU(),M=t.useRef(null),x=RW(),k=RW(),R=t.useRef(null),[T,E]=t.useState(r),L=t.useMemo((()=>!C.disableColumnReorder&&!m&&!n.disableReorder),[C.disableColumnReorder,m,n.disableReorder]);let I;n.renderHeader&&(I=n.renderHeader(S.current.getColumnHeaderParams(n.field)));const P=(e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:s,filterItemsCounter:a,pinnedPosition:l,isLastUnpinned:u,isSiblingFocused:c}=e,d=null!=o,h=null!=a&&a>0,p="number"===t.type;return $z({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",h&&"columnHeader--filtered",p&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder",l===p5.LEFT&&"columnHeader--pinnedLeft",l===p5.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",c&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},e0,n)})(s({},e,{classes:C.classes,showRightBorder:y,showLeftBorder:b})),D=t.useCallback((e=>t=>{D6(t)||S.current.publishEvent(e,S.current.getColumnHeaderParams(n.field),t)}),[S,n.field]),H=t.useMemo((()=>({onClick:D("columnHeaderClick"),onContextMenu:D("columnHeaderContextMenu"),onDoubleClick:D("columnHeaderDoubleClick"),onMouseOver:D("columnHeaderOver"),onMouseOut:D("columnHeaderOut"),onMouseEnter:D("columnHeaderEnter"),onMouseLeave:D("columnHeaderLeave"),onKeyDown:D("columnHeaderKeyDown"),onFocus:D("columnHeaderFocus"),onBlur:D("columnHeaderBlur")})),[D]),O=t.useMemo((()=>L?{onDragStart:D("columnHeaderDragStart"),onDragEnter:D("columnHeaderDragEnter"),onDragOver:D("columnHeaderDragOver"),onDragEndCapture:D("columnHeaderDragEnd")}:{}),[L,D]),A=t.useMemo((()=>({onMouseDown:D("columnSeparatorMouseDown"),onDoubleClick:D("columnSeparatorDoubleClick")})),[D]);t.useEffect((()=>{T||E(r)}),[T,r]);const N=t.useCallback((()=>{E(!1)}),[]),j=!C.disableColumnMenu&&!n.disableColumnMenu&&(0,sn.jsx)(Uee,{colDef:n,columnMenuId:x,columnMenuButtonId:k,open:T,iconButtonRef:R}),Y=(0,sn.jsx)(Gee,{columnMenuId:x,columnMenuButtonId:k,field:n.field,open:r,target:R.current,ContentComponent:C.slots.columnMenu,contentComponentProps:C.slotProps?.columnMenu,onExited:N}),F=n.sortingOrder??C.sortingOrder,z=(n.sortable||null!=c)&&!n.hideSortIcons&&!C.disableColumnSorting,W=(0,sn.jsxs)(t.Fragment,{children:[!C.disableColumnFilter&&(0,sn.jsx)(C.slots.columnHeaderFilterIconButton,s({field:n.field,counter:h},C.slotProps?.columnHeaderFilterIconButton)),z&&(0,sn.jsx)(C.slots.columnHeaderSortIcon,s({field:n.field,direction:c,index:d,sortingOrder:F,disabled:!n.sortable},C.slotProps?.columnHeaderSortIcon))]});t.useLayoutEffect((()=>{const e=S.current.state.columnMenu;if(p&&!e.open){const e=M.current.querySelector('[tabindex="0"]')||M.current;e?.focus(),S.current.columnHeadersContainerRef?.current&&(S.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[S,p]);const V="function"==typeof n.headerClassName?n.headerClassName({field:n.field,colDef:n}):n.headerClassName,B=n.headerName??n.field,$=t.useMemo((()=>j8(s({},e.style),_,w,v)),[w,v,e.style,_]);return(0,sn.jsx)(rte,s({ref:M,classes:P,columnMenuOpen:r,colIndex:o,height:a,isResizing:l,sortDirection:c,hasFocus:p,tabIndex:f,separatorSide:g,isDraggable:L,headerComponent:I,description:n.description,elementId:n.field,width:n.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:W,headerClassName:i(V,u&&t0["columnHeader--last"]),label:B,resizable:!C.disableColumnResize&&!!n.resizable,"data-field":n.field,columnMenu:Y,draggableContainerProps:O,columnHeaderSeparatorProps:A,style:$},H))}));function ite(e){const{groupId:n,width:r,depth:o,maxDepth:i,fields:a,height:l,colIndex:u,hasFocus:c,tabIndex:d,isLastColumn:h,pinnedPosition:p,pinnedOffset:f}=e,m=M0(),g=eU(),b=t.useRef(null),y=d1(),w=m0(y,J5),v=n?w[n]:{},{headerName:S=n??"",description:C="",headerAlign:_}=v;let M;const x=n&&w[n]?.renderHeaderGroup,k=t.useMemo((()=>({groupId:n,headerName:S,description:C,depth:o,maxDepth:i,fields:a,colIndex:u,isLastColumn:h})),[n,S,C,o,i,a,u,h]);n&&x&&(M=x(k));const R=s({},e,{classes:m.classes,headerAlign:_,depth:o,isDragging:!1}),T=S??n,E=RW(),L=null===n?`empty-group-cell-${E}`:n,I=(e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:s,groupId:a,pinnedPosition:l}=e;return $z({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",s&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",null===a?"columnHeader--emptyGroup":"columnHeader--filledGroup",l===p5.LEFT&&"columnHeader--pinnedLeft",l===p5.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},e0,t)})(R);t.useLayoutEffect((()=>{if(c){const e=b.current.querySelector('[tabindex="0"]')||b.current;e?.focus()}}),[y,c]);const P=t.useCallback((e=>t=>{D6(t)||y.current.publishEvent(e,k,t)}),[y,k]),D=t.useMemo((()=>({onKeyDown:P("columnGroupHeaderKeyDown"),onFocus:P("columnGroupHeaderFocus"),onBlur:P("columnGroupHeaderBlur")})),[P]),H="function"==typeof v.headerClassName?v.headerClassName(k):v.headerClassName,O=t.useMemo((()=>j8(s({},e.style),g,p,f)),[p,f,e.style,g]);return(0,sn.jsx)(rte,s({ref:b,classes:I,columnMenuOpen:!1,colIndex:u,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:M,headerClassName:H,description:C,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:T,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,style:O},D))}const ste=rW("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),ate=["className"],lte=xG("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),ute=XZ((function(e,t){const{className:n}=e,r=Bz(e,ate),o=M0(),a=(e=>{const{classes:t}=e;return $z({root:["columnHeaders"]},e0,t)})(o);return(0,sn.jsx)(lte,s({className:i(a.root,n),ownerState:o},r,{role:"presentation",ref:t}))})),cte=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],dte=XZ((function(e,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:a,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:h,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,b=Bz(e,cte),{getInnerProps:y,getColumnHeadersRow:w,getColumnGroupHeadersRows:v}=(e=>{const{visibleColumns:n,sortColumnLookup:r,filterColumnLookup:o,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:p,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:m}=e,[g,b]=t.useState(""),[y,w]=t.useState(""),v=b0(),S=M0(),C=m0(v,X5),_=m0(v,r1),M=m0(v,n4),x=m0(v,t1),k=m0(v,K0),R=z4(_,M,x.left.length),T=m0(v,y1),E=m0(v,_1),L=m0(v,M1),I=m0(v,x1),P=m0(v,R1),D=t.useCallback((e=>w(e.field)),[]),H=t.useCallback((()=>w("")),[]),O=t.useCallback((e=>b(e.field)),[]),A=t.useCallback((()=>b("")),[]),N=t.useMemo((()=>x.left.length?{firstColumnIndex:0,lastColumnIndex:x.left.length}:null),[x.left.length]),j=t.useMemo((()=>x.right.length?{firstColumnIndex:n.length-x.right.length,lastColumnIndex:n.length}:null),[x.right.length,n.length]);H1(v,"columnResizeStart",D),H1(v,"columnResizeStop",H),H1(v,"columnHeaderDragStart",O),H1(v,"columnHeaderDragEndNative",A);const Y=e=>{const{renderContext:t=M}=e||{},r=t.firstColumnIndex,o=t.lastColumnIndex;return{renderedColumns:n.slice(r,o),firstColumnToRender:r,lastColumnToRender:o}},F=(e,n,r,o=!1)=>{const s=e?.position===p5.RIGHT,a=void 0===e?.position,l=x.right.length>0&&s||0===x.right.length&&a,u=R-r;return(0,sn.jsxs)(t.Fragment,{children:[a&&(0,sn.jsx)("div",{role:"presentation",style:{width:u}}),n,a&&(0,sn.jsx)("div",{role:"presentation",className:i(t0.filler,o&&t0["filler--borderBottom"])}),l&&(0,sn.jsx)(A8,{header:!0,pinnedRight:s,borderBottom:o,borderTop:!1})]})},z=(e,t={})=>{const{renderedColumns:n,firstColumnToRender:i}=Y(e),l=[];for(let c=0;c<n.length;c+=1){const d=n[c],p=i+c,f=0===p,b=null!==a&&a.field===d.field||f&&!m?0:-1,w=null!==u&&u.field===d.field,v=h.open&&h.field===d.field,C=e?.position,M=P8(C,d.computedWidth,p,_,T,P),k=C===p5.RIGHT?n[c-1]:n[c+1],R=!!k&&null!==u&&u.field===k.field,I=p+1===_.length-x.right.length,D=c,H=n.length,O=H8(C,D),A=D8(C,D,H,S.showColumnVerticalBorder,E);l.push((0,sn.jsx)(ote,s({},r[d.field],{columnMenuOpen:v,filterItemsCounter:o[d.field]&&o[d.field].length,headerHeight:L,isDragging:d.field===g,colDef:d,colIndex:p,isResizing:y===d.field,isLast:p===_.length-1,hasFocus:w,tabIndex:b,pinnedPosition:C,pinnedOffset:M,isLastUnpinned:I,isSiblingFocused:R,showLeftBorder:O,showRightBorder:A},t),d.field))}return F(e,l,0)},W=({depth:e,params:t})=>{const r=Y(t);if(0===r.renderedColumns.length)return null;const{firstColumnToRender:o,lastColumnToRender:i}=r,a=f[e],u=n[o].field,h=C[u]?.[e]??null,m=a.findIndex((({groupId:e,columnFields:t})=>e===h&&t.includes(u))),g=n[i-1].field,b=C[g]?.[e]??null,y=a.findIndex((({groupId:e,columnFields:t})=>e===b&&t.includes(g))),w=a.slice(m,y+1).map((e=>s({},e,{columnFields:e.columnFields.filter((e=>!1!==p[e]))}))).filter((e=>e.columnFields.length>0)),v=w[0].columnFields.indexOf(u),M=w[0].columnFields.slice(0,v).reduce(((e,t)=>e+(k[t].computedWidth??0)),0);let x=o;const R=w.map((({groupId:n,columnFields:r},o)=>{const i=null!==c&&c.depth===e&&r.includes(c.field),s=null!==l&&l.depth===e&&r.includes(l.field)?0:-1,a={groupId:n,width:r.reduce(((e,t)=>e+k[t].computedWidth),0),fields:r,colIndex:x,hasFocus:i,tabIndex:s},u=t.position,h=P8(u,a.width,x,_,T,P);x+=r.length;let p=o;return u===p5.LEFT&&(p=x-1),(0,sn.jsx)(ite,{groupId:n,width:a.width,fields:a.fields,colIndex:a.colIndex,depth:e,isLastColumn:o===w.length-1,maxDepth:d,height:I,hasFocus:i,tabIndex:s,pinnedPosition:u,pinnedOffset:h,showLeftBorder:H8(u,p),showRightBorder:D8(u,p,w.length,S.showColumnVerticalBorder,E)},o)}));return F(t,R,M)};return{renderContext:M,leftRenderContext:N,rightRenderContext:j,pinnedColumns:x,visibleColumns:n,columnPositions:_,getFillers:F,getColumnHeadersRow:()=>(0,sn.jsxs)(ste,{role:"row","aria-rowindex":d+1,ownerState:S,className:t0["row--borderBottom"],style:{height:L},children:[N&&z({position:p5.LEFT,renderContext:N},{disableReorder:!0}),z({renderContext:M}),j&&z({position:p5.RIGHT,renderContext:j},{disableReorder:!0,separatorSide:Zee.Left})]}),getColumnsToRender:Y,getColumnGroupHeadersRows:()=>{if(0===d)return null;const e=[];for(let t=0;t<d;t+=1)e.push((0,sn.jsxs)(ste,{role:"row","aria-rowindex":t+1,ownerState:S,style:{height:I},children:[N&&W({depth:t,params:{position:p5.LEFT,renderContext:N,maxLastColumn:N.lastColumnIndex}}),W({depth:t,params:{renderContext:M}}),j&&W({depth:t,params:{position:p5.RIGHT,renderContext:j,maxLastColumn:j.lastColumnIndex}})]},t));return e},getPinnedCellOffset:P8,isDragging:!!g,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:a,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:u,columnHeaderFocus:c,columnGroupHeaderFocus:d,headerGroupingMaxDepth:h,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g});return(0,sn.jsxs)(ute,s({},b,y(),{ref:n,children:[v(),w()]}))})),hte=ZZ(dte),pte=["displayOrder"],fte=["hideMenu","colDef","id","labelledby","className","children","open"],mte=rW(N1)((()=>({minWidth:248}))),gte=XZ((function(e,n){const{hideMenu:r,id:o,labelledby:a,className:l,children:u,open:c}=e,d=Bz(e,fte),h=M0(),p=t.useCallback((e=>{"Tab"===e.key&&e.preventDefault(),r6(e.key)&&r(e)}),[r]);return(0,sn.jsx)(mte,s({as:h.slots.baseMenuList,id:o,className:i(t0.menuList,l),"aria-labelledby":a,onKeyDown:p,autoFocus:c},d,{ref:n,children:u}))}));function bte(e){const{colDef:n,onClick:r}=e,o=d1(),i=M0(),s=1===Q0(o).filter((e=>!0!==e.disableColumnMenu)).length,a=t.useCallback((e=>{s||(o.current.setColumnVisibility(n.field,!1),r(e))}),[o,n.field,r,s]);return i.disableColumnSelector||!1===n.hideable?null:(0,sn.jsx)(i.slots.baseMenuItem,{onClick:a,disabled:s,iconStart:(0,sn.jsx)(i.slots.columnMenuHideIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuHideColumn")})}function yte(e){const{onClick:n}=e,r=d1(),o=M0(),i=t.useCallback((e=>{n(e),r.current.showPreferences(u1.columns)}),[r,n]);return o.disableColumnSelector?null:(0,sn.jsx)(o.slots.baseMenuItem,{onClick:i,iconStart:(0,sn.jsx)(o.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuManageColumns")})}const wte=["defaultSlots","defaultSlotProps","slots","slotProps"],vte={columnMenuSortItem:function(e){const{colDef:n,onClick:r}=e,o=d1(),i=m0(o,m3),s=M0(),a=t.useMemo((()=>{if(!n)return null;const e=i.find((e=>e.field===n.field));return e?.sort}),[n,i]),l=n.sortingOrder??s.sortingOrder,u=t.useCallback((e=>{r(e);const t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n.field,t===a?null:t)}),[o,n,r,a]);if(s.disableColumnSorting||!n||!n.sortable||!l.some((e=>!!e)))return null;const c=e=>{const t=o.current.getLocaleText(e);return"function"==typeof t?t(n):t};return(0,sn.jsxs)(t.Fragment,{children:[l.includes("asc")&&"asc"!==a?(0,sn.jsx)(s.slots.baseMenuItem,{onClick:u,"data-value":"asc",iconStart:(0,sn.jsx)(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:c("columnMenuSortAsc")}):null,l.includes("desc")&&"desc"!==a?(0,sn.jsx)(s.slots.baseMenuItem,{onClick:u,"data-value":"desc",iconStart:(0,sn.jsx)(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:c("columnMenuSortDesc")}):null,l.includes(null)&&null!=a?(0,sn.jsx)(s.slots.baseMenuItem,{onClick:u,iconStart:s.slots.columnMenuUnsortIcon?(0,sn.jsx)(s.slots.columnMenuUnsortIcon,{fontSize:"small"}):(0,sn.jsx)("span",{}),children:o.current.getLocaleText("columnMenuUnsort")}):null]})},columnMenuFilterItem:function(e){const{colDef:n,onClick:r}=e,o=d1(),i=M0(),s=t.useCallback((e=>{r(e),o.current.showFilterPanel(n.field)}),[o,n.field,r]);return i.disableColumnFilter||!n.filterable?null:(0,sn.jsx)(i.slots.baseMenuItem,{onClick:s,iconStart:(0,sn.jsx)(i.slots.columnMenuFilterIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuFilter")})},columnMenuColumnsItem:function(e){return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(bte,s({},e)),(0,sn.jsx)(yte,s({},e))]})}},Ste={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Cte=XZ((function(e,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=e,l=Bz(e,wte),u=(e=>{const n=b0(),r=M0(),{defaultSlots:o,defaultSlotProps:i,slots:a={},slotProps:l={},hideMenu:u,colDef:c,addDividers:d=!0}=e,h=t.useMemo((()=>s({},o,a)),[o,a]),p=t.useMemo((()=>{if(!l||0===Object.keys(l).length)return i;const e=s({},l);return Object.entries(i).forEach((([t,n])=>{e[t]=s({},n,l[t]||{})})),e}),[i,l]),f=n.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=t.useMemo((()=>{const e=Object.keys(o);return Object.keys(a).filter((t=>!e.includes(t)))}),[a,o]);return t.useMemo((()=>{const e=Array.from(new Set([...f,...m])).filter((e=>null!=h[e])).sort(((e,t)=>{const n=p[e],r=p[t];return(Number.isFinite(n?.displayOrder)?n.displayOrder:100)-(Number.isFinite(r?.displayOrder)?r.displayOrder:100)}));return e.reduce(((t,n,o)=>{let i={colDef:c,onClick:u};const a=p[n];return a&&(i=s({},i,Bz(a,pte))),d&&o!==e.length-1?[...t,[h[n],i],[r.slots.baseDivider,{}]]:[...t,[h[n],i]]}),[])}),[d,c,f,u,h,p,m,r.slots.baseDivider])})(s({},l,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return(0,sn.jsx)(gte,s({},l,{ref:n,children:u.map((([e,t],n)=>(0,sn.jsx)(e,s({},t),n)))}))})),_te=XZ((function(e,t){return(0,sn.jsx)(Cte,s({},e,{ref:t,defaultSlots:vte,defaultSlotProps:Ste}))})),Mte=XZ((function(e,t){const n=d1().current.getLocaleText("noResultsOverlayLabel");return(0,sn.jsx)(I8,s({},e,{ref:t,children:n}))})),xte=e=>{const n=t.useRef({});return t.useEffect((()=>{n.current=e})),n.current};function kte(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Rte=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(e,{inputValue:a,getOptionLabel:l})=>{let u=s?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=kte(u));const c=u?e.filter((e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=kte(r)),"start"===o?r.startsWith(u):r.includes(u)})):e;return"number"==typeof r?c.slice(0,r):c}}(),Tte=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),Ete=[];function Lte(e,t,n,r){if(t||null==e||r)return"";const o=n(e);return"string"==typeof o?o:""}function Ite(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pte(e){return e instanceof Ite(e).Element||e instanceof Element}function Dte(e){return e instanceof Ite(e).HTMLElement||e instanceof HTMLElement}function Hte(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ite(e).ShadowRoot||e instanceof ShadowRoot)}var Ote=Math.max,Ate=Math.min,Nte=Math.round;function jte(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Yte(){return!/^((?!chrome|android).)*safari/i.test(jte())}function Fte(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Dte(e)&&(o=e.offsetWidth>0&&Nte(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nte(r.height)/e.offsetHeight||1);var s=(Pte(e)?Ite(e):window).visualViewport,a=!Yte()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,u=(r.top+(a&&s?s.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function zte(e){var t=Ite(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wte(e){return e?(e.nodeName||"").toLowerCase():null}function Vte(e){return((Pte(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bte(e){return Fte(Vte(e)).left+zte(e).scrollLeft}function $te(e){return Ite(e).getComputedStyle(e)}function Ute(e){var t=$te(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gte(e,t,n){void 0===n&&(n=!1);var r=Dte(t),o=Dte(t)&&function(e){var t=e.getBoundingClientRect(),n=Nte(t.width)/e.offsetWidth||1,r=Nte(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Vte(t),s=Fte(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Wte(t)||Ute(i))&&(a=function(e){return e!==Ite(e)&&Dte(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:zte(e);var t}(t)),Dte(t)?((l=Fte(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Bte(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Kte(e){var t=Fte(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qte(e){return"html"===Wte(e)?e:e.assignedSlot||e.parentNode||(Hte(e)?e.host:null)||Vte(e)}function Xte(e){return["html","body","#document"].indexOf(Wte(e))>=0?e.ownerDocument.body:Dte(e)&&Ute(e)?e:Xte(qte(e))}function Jte(e,t){var n;void 0===t&&(t=[]);var r=Xte(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ite(r),s=o?[i].concat(i.visualViewport||[],Ute(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Jte(qte(s)))}function Qte(e){return["table","td","th"].indexOf(Wte(e))>=0}function Zte(e){return Dte(e)&&"fixed"!==$te(e).position?e.offsetParent:null}function ene(e){for(var t=Ite(e),n=Zte(e);n&&Qte(n)&&"static"===$te(n).position;)n=Zte(n);return n&&("html"===Wte(n)||"body"===Wte(n)&&"static"===$te(n).position)?t:n||function(e){var t=/firefox/i.test(jte());if(/Trident/i.test(jte())&&Dte(e)&&"fixed"===$te(e).position)return null;var n=qte(e);for(Hte(n)&&(n=n.host);Dte(n)&&["html","body"].indexOf(Wte(n))<0;){var r=$te(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var tne="top",nne="bottom",rne="right",one="left",ine="auto",sne=[tne,nne,rne,one],ane="start",lne="end",une="viewport",cne="popper",dne=sne.reduce((function(e,t){return e.concat([t+"-"+ane,t+"-"+lne])}),[]),hne=[].concat(sne,[ine]).reduce((function(e,t){return e.concat([t,t+"-"+ane,t+"-"+lne])}),[]),pne=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fne(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var mne={placement:"bottom",modifiers:[],strategy:"absolute"};function gne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function bne(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?mne:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},mne,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Pte(e)?Jte(e):e.contextElement?Jte(e.contextElement):[],popper:Jte(t)};var s,u,h=function(e){var t=fne(e);return pne.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,a.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:c,options:r});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,n=e.popper;if(gne(t,n)){a.rects={reference:Gte(t,ene(n),"fixed"===a.options.strategy),popper:Kte(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,l=void 0===s?{}:s,d=o.name;"function"==typeof i&&(a=i({state:a,options:l,name:d,instance:c})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){d(),u=!0}};if(!gne(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var yne={passive:!0};const wne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=Ite(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,yne)})),a&&l.addEventListener("resize",n.update,yne),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,yne)})),a&&l.removeEventListener("resize",n.update,yne)}},data:{}};function vne(e){return e.split("-")[0]}function Sne(e){return e.split("-")[1]}function Cne(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _ne(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?vne(o):null,s=o?Sne(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case tne:t={x:a,y:n.y-r.height};break;case nne:t={x:a,y:n.y+n.height};break;case rne:t={x:n.x+n.width,y:l};break;case one:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?Cne(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case ane:t[u]=t[u]-(n[c]/2-r[c]/2);break;case lne:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Mne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xne(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,m=void 0===f?0:f,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),w=one,v=tne,S=window;if(u){var C=ene(n),_="clientHeight",M="clientWidth";C===Ite(n)&&"static"!==$te(C=Vte(n)).position&&"absolute"===a&&(_="scrollHeight",M="scrollWidth"),(o===tne||(o===one||o===rne)&&i===lne)&&(v=nne,m-=(d&&C===S&&S.visualViewport?S.visualViewport.height:C[_])-r.height,m*=l?1:-1),o!==one&&(o!==tne&&o!==nne||i!==lne)||(w=rne,p-=(d&&C===S&&S.visualViewport?S.visualViewport.width:C[M])-r.width,p*=l?1:-1)}var x,k=Object.assign({position:a},u&&Mne),R=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Nte(n*o)/o||0,y:Nte(r*o)/o||0}}({x:p,y:m},Ite(n)):{x:p,y:m};return p=R.x,m=R.y,l?Object.assign({},k,((x={})[v]=y?"0":"",x[w]=b?"0":"",x.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[v]=y?m+"px":"",t[w]=b?p+"px":"",t.transform="",t))}const kne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,u={placement:vne(t.placement),variation:Sne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xne(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xne(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Rne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=hne.reduce((function(e,n){return e[n]=function(e,t,n){var r=vne(e),o=[one,tne].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[one,rne].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}};var Tne={left:"right",right:"left",bottom:"top",top:"bottom"};function Ene(e){return e.replace(/left|right|bottom|top/g,(function(e){return Tne[e]}))}var Lne={start:"end",end:"start"};function Ine(e){return e.replace(/start|end/g,(function(e){return Lne[e]}))}function Pne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Hte(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Dne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hne(e,t,n){return t===une?Dne(function(e,t){var n=Ite(e),r=Vte(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Yte();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Bte(e),y:l}}(e,n)):Pte(t)?function(e,t){var n=Fte(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Dne(function(e){var t,n=Vte(e),r=zte(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ote(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ote(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Bte(e),l=-r.scrollTop;return"rtl"===$te(o||n).direction&&(a+=Ote(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Vte(e)))}function One(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ane(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Nne(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?une:u,d=n.elementContext,h=void 0===d?cne:d,p=n.altBoundary,f=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,b=One("number"!=typeof g?g:Ane(g,sne)),y=h===cne?"reference":cne,w=e.rects.popper,v=e.elements[f?y:h],S=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Jte(qte(e)),n=["absolute","fixed"].indexOf($te(e).position)>=0&&Dte(e)?ene(e):e;return Pte(n)?t.filter((function(e){return Pte(e)&&Pne(e,n)&&"body"!==Wte(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=Hne(e,n,r);return t.top=Ote(o.top,t.top),t.right=Ate(o.right,t.right),t.bottom=Ate(o.bottom,t.bottom),t.left=Ote(o.left,t.left),t}),Hne(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Pte(v)?v:v.contextElement||Vte(e.elements.popper),l,c,s),C=Fte(e.elements.reference),_=_ne({reference:C,element:w,strategy:"absolute",placement:o}),M=Dne(Object.assign({},w,_)),x=h===cne?M:C,k={top:S.top-x.top+b.top,bottom:x.bottom-S.bottom+b.bottom,left:S.left-x.left+b.left,right:x.right-S.right+b.right},R=e.modifiersData.offset;if(h===cne&&R){var T=R[o];Object.keys(k).forEach((function(e){var t=[rne,nne].indexOf(e)>=0?1:-1,n=[tne,nne].indexOf(e)>=0?"y":"x";k[e]+=T[n]*t}))}return k}const jne={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,b=vne(g),y=l||(b!==g&&f?function(e){if(vne(e)===ine)return[];var t=Ene(e);return[Ine(e),t,Ine(t)]}(g):[Ene(g)]),w=[g].concat(y).reduce((function(e,n){return e.concat(vne(n)===ine?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?hne:l,c=Sne(r),d=c?a?dne:dne.filter((function(e){return Sne(e)===c})):sne,h=d.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=Nne(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[vne(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),v=t.rects.reference,S=t.rects.popper,C=new Map,_=!0,M=w[0],x=0;x<w.length;x++){var k=w[x],R=vne(k),T=Sne(k)===ane,E=[tne,nne].indexOf(R)>=0,L=E?"width":"height",I=Nne(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),P=E?T?rne:one:T?nne:tne;v[L]>S[L]&&(P=Ene(P));var D=Ene(P),H=[];if(i&&H.push(I[R]<=0),a&&H.push(I[P]<=0,I[D]<=0),H.every((function(e){return e}))){M=k,_=!1;break}C.set(k,H)}if(_)for(var O=function(e){var t=w.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},A=f?3:1;A>0&&"break"!==O(A);A--);t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yne(e,t,n){return Ote(e,Ate(t,n))}const Fne={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=Nne(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=vne(t.placement),y=Sne(t.placement),w=!y,v=Cne(b),S="x"===v?"y":"x",C=t.modifiersData.popperOffsets,_=t.rects.reference,M=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var E,L="y"===v?tne:one,I="y"===v?nne:rne,P="y"===v?"height":"width",D=C[v],H=D+g[L],O=D-g[I],A=p?-M[P]/2:0,N=y===ane?_[P]:M[P],j=y===ane?-M[P]:-_[P],Y=t.elements.arrow,F=p&&Y?Kte(Y):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[L],V=z[I],B=Yne(0,_[P],F[P]),$=w?_[P]/2-A-B-W-k.mainAxis:N-B-W-k.mainAxis,U=w?-_[P]/2+A+B+V+k.mainAxis:j+B+V+k.mainAxis,G=t.elements.arrow&&ene(t.elements.arrow),K=G?"y"===v?G.clientTop||0:G.clientLeft||0:0,q=null!=(E=null==R?void 0:R[v])?E:0,X=D+U-q,J=Yne(p?Ate(H,D+$-q-K):H,D,p?Ote(O,X):O);C[v]=J,T[v]=J-D}if(a){var Q,Z="x"===v?tne:one,ee="x"===v?nne:rne,te=C[S],ne="y"===S?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[tne,one].indexOf(b),se=null!=(Q=null==R?void 0:R[S])?Q:0,ae=ie?re:te-_[ne]-M[ne]-se+k.altAxis,le=ie?te+_[ne]+M[ne]-se-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Yne(e,t,n);return r>n?n:r}(ae,te,le):Yne(p?ae:re,te,p?le:oe);C[S]=ue,T[S]=ue-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]},zne={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=vne(n.placement),l=Cne(a),u=[one,rne].indexOf(a)>=0?"height":"width";if(i&&s){var c=function(e,t){return One("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ane(e,sne))}(o.padding,n),d=Kte(i),h="y"===l?tne:one,p="y"===l?nne:rne,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=ene(i),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,w=c[h],v=b-d[u]-c[p],S=b/2-d[u]/2+y,C=Yne(w,S,v),_=l;n.modifiersData[r]=((t={})[_]=C,t.centerOffset=C-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wne(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vne(e){return[tne,rne,nne,one].some((function(t){return e[t]>=0}))}var Bne=bne({defaultModifiers:[wne,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_ne({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},kne,{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Dte(o)&&Wte(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dte(r)&&Wte(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},Rne,jne,Fne,zne,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Nne(t,{elementContext:"reference"}),a=Nne(t,{altBoundary:!0}),l=Wne(s,r),u=Wne(a,o,i),c=Vne(l),d=Vne(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function $ne(e){return zr("MuiPopper",e)}function Une(e){return"function"==typeof e?e():e}Wr("MuiPopper",["root"]);const Gne={},Kne=t.forwardRef((function(e,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:h={},slots:p={},TransitionProps:f,ownerState:m,...g}=e,b=t.useRef(null),y=uW(b,n),w=t.useRef(null),v=uW(w,d),S=t.useRef(v);IW((()=>{S.current=v}),[v]),t.useImperativeHandle(d,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[_,M]=t.useState(C),[x,k]=t.useState(Une(r));t.useEffect((()=>{w.current&&w.current.forceUpdate()})),t.useEffect((()=>{r&&k(Une(r))}),[r]),IW((()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{M(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=Bne(x,b.current,{placement:C,...c,modifiers:e});return S.current(t),()=>{t.destroy(),S.current(null)}}),[x,s,a,l,c,C]);const R={placement:_};null!==f&&(R.TransitionProps=f);const T=(e=>{const{classes:t}=e;return $z({root:["root"]},$ne,t)})(e),E=p.root??"div",L=sB({elementType:E,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:T.root});return(0,sn.jsx)(E,{...L,children:"function"==typeof o?o(R):o})})),qne=t.forwardRef((function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:h=Gne,popperRef:p,style:f,transition:m=!1,slotProps:g={},slots:b={},...y}=e,[w,v]=t.useState(!0);if(!l&&!c&&(!m||w))return null;let S;if(i)S=i;else if(r){const e=Une(r);S=e&&void 0!==e.nodeType?sK(e).body:sK(null).body}const C=c||!l||m&&!w?void 0:"none",_=m?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return(0,sn.jsx)(YJ,{disablePortal:a,container:S,children:(0,sn.jsx)(Kne,{anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:m?!w:c,placement:d,popperOptions:h,popperRef:p,slotProps:g,slots:b,...y,style:{position:"fixed",top:0,left:0,display:C,...f},TransitionProps:_,children:o})})})),Xne=rW(qne,{name:"MuiPopper",slot:"Root"})({}),Jne=t.forwardRef((function(e,t){const n=eU(),r=lW({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:a,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:p,popperOptions:f,popperRef:m,transition:g,slots:b,slotProps:y,...w}=r,v=b?.root??s?.Root,S={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:h,placement:p,popperOptions:f,popperRef:m,transition:g,...w};return(0,sn.jsx)(Xne,{as:i,direction:n?"rtl":"ltr",slots:{root:v},slotProps:y??a,...S,ref:t})})),Qne=Jne;function Zne(e){return zr("MuiListSubheader",e)}Wr("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ere=rW("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${gW(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(iW((({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]})))),tre=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:u=!1,...c}=n,d={...n,color:o,component:s,disableGutters:a,disableSticky:l,inset:u},h=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return $z({root:["root","default"!==n&&`color${gW(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},Zne,t)})(d);return(0,sn.jsx)(ere,{as:s,className:i(h.root,r),ref:t,ownerState:d,...c})}));tre&&(tre.muiSkipListHighlight=!0);const nre=tre,rre=AV((0,sn.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function ore(e){return zr("MuiChip",e)}const ire=Wr("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),sre=rW("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${ire.avatar}`]:t.avatar},{[`& .${ire.avatar}`]:t[`avatar${gW(a)}`]},{[`& .${ire.avatar}`]:t[`avatarColor${gW(r)}`]},{[`& .${ire.icon}`]:t.icon},{[`& .${ire.icon}`]:t[`icon${gW(a)}`]},{[`& .${ire.icon}`]:t[`iconColor${gW(o)}`]},{[`& .${ire.deleteIcon}`]:t.deleteIcon},{[`& .${ire.deleteIcon}`]:t[`deleteIcon${gW(a)}`]},{[`& .${ire.deleteIcon}`]:t[`deleteIconColor${gW(r)}`]},{[`& .${ire.deleteIcon}`]:t[`deleteIcon${gW(l)}Color${gW(r)}`]},t.root,t[`size${gW(a)}`],t[`color${gW(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${gW(r)})`],s&&t.deletable,s&&"default"!==r&&t[`deletableColor${gW(r)}`],t[l],t[`${l}${gW(r)}`]]}})(iW((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ire.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ire.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${ire.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ire.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ire.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ire.icon}`]:{marginLeft:5,marginRight:-6},[`& .${ire.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${ire.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${ire.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(bW(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${ire.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:mn(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}}))),{props:e=>e.iconColor===e.color,style:{[`& .${ire.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${ire.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${ire.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(bW(["dark"])).map((([t])=>({props:{color:t,onDelete:!0},style:{[`&.${ire.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}}))),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ire.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(bW(["dark"])).map((([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${ire.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}))),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ire.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ire.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ire.avatar}`]:{marginLeft:4},[`& .${ire.avatarSmall}`]:{marginLeft:2},[`& .${ire.icon}`]:{marginLeft:4},[`& .${ire.iconSmall}`]:{marginLeft:2},[`& .${ire.deleteIcon}`]:{marginRight:5},[`& .${ire.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:mn(e.palette[t].main,.7)}`,[`&.${ire.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${ire.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mn(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${ire.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:mn(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}})))]}}))),are=rW("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${gW(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lre(e){return"Backspace"===e.key||"Delete"===e.key}const ure=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:l="default",component:u,deleteIcon:c,disabled:d=!1,icon:h,label:p,onClick:f,onDelete:m,onKeyDown:g,onKeyUp:b,size:y="medium",variant:w="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,...C}=r,_=t.useRef(null),M=LW(_,n),x=e=>{e.stopPropagation(),m&&m(e)},k=!(!1===a||!f)||a,R=k||m?mV:u||"div",T={...r,component:R,disabled:d,size:y,color:l,iconColor:t.isValidElement(h)&&h.props.color||l,onDelete:!!m,clickable:k,variant:w},E=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e;return $z({root:["root",l,n&&"disabled",`size${gW(r)}`,`color${gW(o)}`,a&&"clickable",a&&`clickableColor${gW(o)}`,s&&"deletable",s&&`deletableColor${gW(o)}`,`${l}${gW(o)}`],label:["label",`label${gW(r)}`],avatar:["avatar",`avatar${gW(r)}`,`avatarColor${gW(o)}`],icon:["icon",`icon${gW(r)}`,`iconColor${gW(i)}`],deleteIcon:["deleteIcon",`deleteIcon${gW(r)}`,`deleteIconColor${gW(o)}`,`deleteIcon${gW(l)}Color${gW(o)}`]},ore,t)})(T),L=R===mV?{component:u||"div",focusVisibleClassName:E.focusVisible,...m&&{disableRipple:!0}}:{};let I=null;m&&(I=c&&t.isValidElement(c)?t.cloneElement(c,{className:i(c.props.className,E.deleteIcon),onClick:x}):(0,sn.jsx)(rre,{className:E.deleteIcon,onClick:x}));let P=null;o&&t.isValidElement(o)&&(P=t.cloneElement(o,{className:i(E.avatar,o.props.className)}));let D=null;return h&&t.isValidElement(h)&&(D=t.cloneElement(h,{className:i(E.icon,h.props.className)})),(0,sn.jsxs)(sre,{as:R,className:i(E.root,s),disabled:!(!k||!d)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&lre(e)&&e.preventDefault(),g&&g(e)},onKeyUp:e=>{e.currentTarget===e.target&&m&&lre(e)&&m(e),b&&b(e)},ref:M,tabIndex:S&&d?-1:v,ownerState:T,...L,...C,children:[P||D,(0,sn.jsx)(are,{className:E.label,ownerState:T,children:p}),I]})})),cre=ure;function dre(e){return zr("MuiAutocomplete",e)}const hre=Wr("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var pre,fre;const mre=rW("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${hre.tag}`]:t.tag},{[`& .${hre.tag}`]:t[`tagSize${gW(a)}`]},{[`& .${hre.inputRoot}`]:t.inputRoot},{[`& .${hre.input}`]:t.input},{[`& .${hre.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${hre.focused} .${hre.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${hre.clearIndicator}`]:{visibility:"visible"}},[`& .${hre.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${hre.inputRoot}`]:{[`.${hre.hasPopupIcon}&, .${hre.hasClearIcon}&`]:{paddingRight:30},[`.${hre.hasPopupIcon}.${hre.hasClearIcon}&`]:{paddingRight:56},[`& .${hre.input}`]:{width:0,minWidth:30}},[`& .${rZ.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${rZ.root}.${GQ.sizeSmall}`]:{[`& .${rZ.input}`]:{padding:"2px 4px 3px 0"}},[`& .${yZ.root}`]:{padding:9,[`.${hre.hasPopupIcon}&, .${hre.hasClearIcon}&`]:{paddingRight:39},[`.${hre.hasPopupIcon}.${hre.hasClearIcon}&`]:{paddingRight:65},[`& .${hre.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${hre.endAdornment}`]:{right:9}},[`& .${yZ.root}.${GQ.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${hre.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${uZ.root}`]:{paddingTop:19,paddingLeft:8,[`.${hre.hasPopupIcon}&, .${hre.hasClearIcon}&`]:{paddingRight:39},[`.${hre.hasPopupIcon}.${hre.hasClearIcon}&`]:{paddingRight:65},[`& .${uZ.input}`]:{padding:"7px 4px"},[`& .${hre.endAdornment}`]:{right:9}},[`& .${uZ.root}.${GQ.sizeSmall}`]:{paddingBottom:1,[`& .${uZ.input}`]:{padding:"2.5px 4px"}},[`& .${GQ.hiddenLabel}`]:{paddingTop:8},[`& .${uZ.root}.${GQ.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${hre.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${uZ.root}.${GQ.hiddenLabel}.${GQ.sizeSmall}`]:{[`& .${hre.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${hre.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${hre.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${hre.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${hre.inputRoot}`]:{flexWrap:"wrap"}}}]}),gre=rW("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),bre=rW(IV,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),yre=rW(IV,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),wre=rW(Qne,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hre.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(iW((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})))),vre=rW(CW,{name:"MuiAutocomplete",slot:"Paper"})(iW((({theme:e})=>({...e.typography.body1,overflow:"auto"})))),Sre=rW("div",{name:"MuiAutocomplete",slot:"Loading"})(iW((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),Cre=rW("div",{name:"MuiAutocomplete",slot:"NoOptions"})(iW((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})))),_re=rW("ul",{name:"MuiAutocomplete",slot:"Listbox"})(iW((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${hre.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${hre.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${hre.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hre.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${hre.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})))),Mre=rW(nre,{name:"MuiAutocomplete",slot:"GroupLabel"})(iW((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})))),xre=rW("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${hre.option}`]:{paddingLeft:24}}),kre=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:u,className:c,clearIcon:d=pre||(pre=(0,sn.jsx)(zV,{fontSize:"small"})),clearOnBlur:h=!r.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:m="Close",componentsProps:g,defaultValue:b=(r.multiple?[]:null),disableClearable:y=!1,disableCloseOnSelect:w=!1,disabled:v=!1,disabledItemsFocusable:S=!1,disableListWrap:C=!1,disablePortal:_=!1,filterOptions:M,filterSelectedOptions:x=!1,forcePopupIcon:k="auto",freeSolo:R=!1,fullWidth:T=!1,getLimitTagsText:E=e=>`+${e}`,getOptionDisabled:L,getOptionKey:I,getOptionLabel:P,isOptionEqualToValue:D,groupBy:H,handleHomeEndKeys:O=!r.freeSolo,id:A,includeInputInList:N=!1,inputValue:j,limitTags:Y=-1,ListboxComponent:F,ListboxProps:z,loading:W=!1,loadingText:V="Loading…",multiple:B=!1,noOptionsText:$="No options",onChange:U,onClose:G,onHighlightChange:K,onInputChange:q,onOpen:X,open:J,openOnFocus:Q=!1,openText:Z="Open",options:ee,PaperComponent:te,PopperComponent:ne,popupIcon:re=fre||(fre=(0,sn.jsx)(FQ,{})),readOnly:oe=!1,renderGroup:ie,renderInput:se,renderOption:ae,renderTags:le,renderValue:ue,selectOnFocus:ce=!r.freeSolo,size:de="medium",slots:he={},slotProps:pe={},value:fe,...me}=r,{getRootProps:ge,getInputProps:be,getInputLabelProps:ye,getPopupIndicatorProps:we,getClearProps:ve,getItemProps:Se,getListboxProps:Ce,getOptionProps:_e,value:Me,dirty:xe,expanded:ke,id:Re,popupOpen:Te,focused:Ee,focusedItem:Le,anchorEl:Ie,setAnchorEl:Pe,inputValue:De,groupedOptions:He}=function(e){const{unstable_isActiveElementInListbox:n=Tte,unstable_classNamePrefix:r="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(e.multiple?Ete:null),disableClearable:h=!1,disableCloseOnSelect:p=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=Rte,filterSelectedOptions:y=!1,freeSolo:w=!1,getOptionDisabled:v,getOptionKey:S,getOptionLabel:C=e=>e.label??e,groupBy:_,handleHomeEndKeys:M=!e.freeSolo,id:x,includeInputInList:k=!1,inputValue:R,isOptionEqualToValue:T=(e,t)=>e===t,multiple:E=!1,onChange:L,onClose:I,onHighlightChange:P,onInputChange:D,onOpen:H,open:O,openOnFocus:A=!1,options:N,readOnly:j=!1,renderValue:Y,selectOnFocus:F=!e.freeSolo,value:z}=e,W=RW(x);let V=C;V=e=>{const t=C(e);return"string"!=typeof t?String(t):t};const B=t.useRef(!1),$=t.useRef(!0),U=t.useRef(null),G=t.useRef(null),[K,q]=t.useState(null),[X,J]=t.useState(-1),Q=i?0:-1,Z=t.useRef(Q),ee=t.useRef(Lte(d??z,E,V)).current,[te,ne]=MU({controlled:z,default:d,name:c}),[re,oe]=MU({controlled:R,default:ee,name:c,state:"inputValue"}),[ie,se]=t.useState(!1),ae=t.useCallback(((e,t,n)=>{if(!(E?te.length<t.length:null!==t)&&!l)return;const r=Lte(t,E,V,Y);re!==r&&(oe(r),D&&D(e,r,n))}),[V,re,E,D,oe,l,te,Y]),[le,ue]=MU({controlled:O,default:!1,name:c,state:"open"}),[ce,de]=t.useState(!0),he=!E&&null!=te&&re===V(te),pe=le&&!j,fe=pe?b(N.filter((e=>!y||!(E?te:[te]).some((t=>null!==t&&T(e,t))))),{inputValue:he&&ce?"":re,getOptionLabel:V}):[],me=xte({filteredOptions:fe,value:te,inputValue:re});t.useEffect((()=>{const e=te!==me.value;ie&&!e||w&&!e||ae(null,te,"reset")}),[te,ae,ie,me.value,w]);const ge=le&&fe.length>0&&!j,be=PW((e=>{if(-1===e)U.current.focus();else{const t=Y?"data-item-index":"data-tag-index";K.querySelector(`[${t}="${e}"]`).focus()}}));t.useEffect((()=>{E&&X>te.length-1&&(J(-1),be(-1))}),[te,E,X,be]);const ye=PW((({event:e,index:t,reason:n})=>{if(Z.current=t,-1===t?U.current.removeAttribute("aria-activedescendant"):U.current.setAttribute("aria-activedescendant",`${W}-option-${t}`),P&&["mouse","keyboard","touch"].includes(n)&&P(e,-1===t?null:fe[t],n),!G.current)return;const o=G.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let i=G.current;if("listbox"!==G.current.getAttribute("role")&&(i=G.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const s=G.current.querySelector(`[data-option-index="${t}"]`);if(s&&(s.classList.add(`${r}-focused`),"keyboard"===n&&s.classList.add(`${r}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=s,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(_?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(_?1.3:0))}})),we=PW((({event:e,diff:t,direction:n="next",reason:r})=>{if(!pe)return;const i=function(e,t){if(!G.current||e<0||e>=fe.length)return-1;let n=e;for(;;){const r=G.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%fe.length:(n-1+fe.length)%fe.length,n===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=Z.current+t;return n<0?-1===n&&k?-1:g&&-1!==Z.current||Math.abs(t)>1?0:e:n>e?n===e+1&&k?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ye({index:i,reason:r,event:e}),o&&"reset"!==t)if(-1===i)U.current.value=re;else{const e=V(fe[i]);U.current.value=e,0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&U.current.setSelectionRange(re.length,e.length)}})),ve=t.useCallback((()=>{if(!pe)return;const e=(()=>{if(-1!==Z.current&&me.filteredOptions&&me.filteredOptions.length!==fe.length&&me.inputValue===re&&(E?te.length===me.value.length&&me.value.every(((e,t)=>V(te[t])===V(e))):(e=me.value,t=te,(e?V(e):"")===(t?V(t):"")))){const e=me.filteredOptions[Z.current];if(e)return fe.findIndex((t=>V(t)===V(e)))}var e,t;return-1})();if(-1!==e)return void(Z.current=e);const t=E?te[0]:te;if(0!==fe.length&&null!=t){if(G.current)if(null==t)Z.current>=fe.length-1?ye({index:fe.length-1}):ye({index:Z.current});else{const e=fe[Z.current];if(E&&e&&-1!==te.findIndex((t=>T(e,t))))return;const n=fe.findIndex((e=>T(e,t)));-1===n?we({diff:"reset"}):ye({index:n})}}else we({diff:"reset"})}),[fe.length,!E&&te,y,we,ye,pe,re,E]),Se=PW((e=>{NJ(G,e),e&&ve()}));t.useEffect((()=>{ve()}),[ve]);const Ce=e=>{le||(ue(!0),de(!0),H&&H(e))},_e=(e,t)=>{le&&(ue(!1),I&&I(e,t))},Me=(e,t,n,r)=>{if(E){if(te.length===t.length&&te.every(((e,n)=>e===t[n])))return}else if(te===t)return;L&&L(e,t,n,r),ne(t)},xe=t.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(E){i=Array.isArray(te)?te.slice():[];const e=i.findIndex((e=>T(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ae(e,i,o),Me(e,i,o,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||_e(e,o),(!0===a||"touch"===a&&xe.current||"mouse"===a&&!xe.current)&&U.current.blur()},Re=(e,t)=>{if(!E)return;""===re&&_e(e,"toggleInput");let n=X;-1===X?""===re&&"previous"===t&&(n=te.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===te.length||"previous"===t&&-1===n)return-1;const e=Y?"data-item-index":"data-tag-index",r=K.querySelector(`[${e}="${n}"]`);if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),J(n),be(n)},Te=e=>{B.current=!0,oe(""),D&&D(e,"","clear"),Me(e,E?[]:null,"clear")},Ee=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===X||["ArrowLeft","ArrowRight"].includes(t.key)||(J(-1),be(-1)),229!==t.which))switch(t.key){case"Home":pe&&M&&(t.preventDefault(),we({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&M&&(t.preventDefault(),we({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),we({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ce(t);break;case"PageDown":t.preventDefault(),we({diff:5,direction:"next",reason:"keyboard",event:t}),Ce(t);break;case"ArrowDown":t.preventDefault(),we({diff:1,direction:"next",reason:"keyboard",event:t}),Ce(t);break;case"ArrowUp":t.preventDefault(),we({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ce(t);break;case"ArrowLeft":!E&&Y?be(0):Re(t,"previous");break;case"ArrowRight":!E&&Y?be(-1):Re(t,"next");break;case"Enter":if(-1!==Z.current&&pe){const e=fe[Z.current],n=!!v&&v(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),o&&U.current.setSelectionRange(U.current.value.length,U.current.value.length)}else w&&""!==re&&!1===he&&(E&&t.preventDefault(),ke(t,re,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),_e(t,"escape")):u&&(""!==re||E&&te.length>0||Y)&&(t.preventDefault(),t.stopPropagation(),Te(t));break;case"Backspace":if(E&&!j&&""===re&&te.length>0){const e=-1===X?te.length-1:X,n=te.slice();n.splice(e,1),Me(t,n,"removeOption",{option:te[e]})}E||!Y||j||(ne(null),be(-1));break;case"Delete":if(E&&!j&&""===re&&te.length>0&&-1!==X){const e=X,n=te.slice();n.splice(e,1),Me(t,n,"removeOption",{option:te[e]})}E||!Y||j||(ne(null),be(-1))}},Le=e=>{se(!0),A&&!B.current&&Ce(e)},Ie=e=>{n(G)?U.current.focus():(se(!1),$.current=!0,B.current=!1,s&&-1!==Z.current&&pe?ke(e,fe[Z.current],"blur"):s&&w&&""!==re?ke(e,re,"blur","freeSolo"):l&&ae(e,te,"blur"),_e(e,"blur"))},Pe=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),D&&D(e,t,"input")),""===t?h||E||Me(e,null,"clear"):Ce(e)},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Z.current!==t&&ye({event:e,index:t,reason:"mouse"})},He=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),xe.current=!0},Oe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,fe[t],"selectOption"),xe.current=!1},Ae=e=>t=>{const n=te.slice();n.splice(e,1),Me(t,n,"removeOption",{option:te[e]})},Ne=e=>{Me(e,null,"removeOption",{option:te})},je=e=>{le?_e(e,"toggleInput"):Ce(e)},Ye=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==W&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(U.current.focus(),F&&$.current&&U.current.selectionEnd-U.current.selectionStart===0&&U.current.select(),$.current=!1)},ze=e=>{f||""!==re&&le||je(e)};let We=w&&re.length>0;We=We||(E?te.length>0:null!==te);let Ve=fe;return _&&(new Map,Ve=fe.reduce(((e,t,n)=>{const r=_(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),f&&ie&&Ie(),{getRootProps:(e={})=>({...e,onKeyDown:Ee(e),onMouseDown:Ye,onClick:Fe}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:re,onBlur:Ie,onFocus:Le,onChange:Pe,onMouseDown:ze,"aria-activedescendant":pe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":ge?`${W}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:U,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Te}),getItemProps:({index:e=0}={})=>({...E&&{key:e},...Y?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!j&&{onDelete:E?Ae(e):Ne}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!j&&{onDelete:Ae(e)}}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Se,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(E?te:[te]).some((e=>null!=e&&T(t,e))),r=!!v&&v(t);return{key:S?.(t)??V(t),tabIndex:-1,role:"option",id:`${W}-option-${e}`,onMouseMove:De,onClick:Oe,onTouchStart:He,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:W,inputValue:re,value:te,dirty:We,expanded:pe&&K,popupOpen:pe,focused:ie||-1!==X,anchorEl:K,setAnchorEl:q,focusedItem:X,focusedTag:X,groupedOptions:Ve}}({...r,componentName:"Autocomplete"}),Oe=!y&&!v&&xe&&!oe,Ae=(!R||!0===k)&&!1!==k,{onMouseDown:Ne}=be(),{ref:je,...Ye}=Ce(),Fe=P||(e=>e.label??e),ze={...r,disablePortal:_,expanded:ke,focused:Ee,fullWidth:T,getOptionLabel:Fe,hasClearIcon:Oe,hasPopupIcon:Ae,inputFocused:-1===Le,popupOpen:Te,size:de},We=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:u,size:c}=e;return $z({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${gW(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},dre,t)})(ze),Ve={slots:{paper:te,popper:ne,...he},slotProps:{chip:u,listbox:z,...g,...pe}},[Be,$e]=mW("listbox",{elementType:_re,externalForwardedProps:Ve,ownerState:ze,className:We.listbox,additionalProps:Ye,ref:je}),[Ue,Ge]=mW("paper",{elementType:CW,externalForwardedProps:Ve,ownerState:ze,className:We.paper}),[Ke,qe]=mW("popper",{elementType:Qne,externalForwardedProps:Ve,ownerState:ze,className:We.popper,additionalProps:{disablePortal:_,style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:Te}});let Xe;const Je=e=>({className:We.tag,disabled:v,...Se(e)});if(le&&B&&Me.length>0?Xe=le(Me,Je,ze):ue&&Me?Xe=ue(Me,Je,ze):B&&Me.length>0&&(Xe=Me.map(((e,t)=>{const{key:n,...r}=Je({index:t});return(0,sn.jsx)(cre,{label:Fe(e),size:de,...r,...Ve.slotProps.chip},n)}))),Y>-1&&Array.isArray(Xe)){const e=Xe.length-Y;!Ee&&e>0&&(Xe=Xe.splice(0,Y),Xe.push((0,sn.jsx)("span",{className:We.tag,children:E(e)},Xe.length)))}const Qe=ie||(e=>(0,sn.jsxs)("li",{children:[(0,sn.jsx)(Mre,{className:We.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,sn.jsx)(xre,{className:We.groupUl,ownerState:ze,children:e.children})]},e.key)),Ze=ae||((e,t)=>{const{key:n,...r}=e;return(0,sn.jsx)("li",{...r,children:Fe(t)},n)}),et=(e,t)=>{const n=_e({option:e,index:t});return Ze({...n,className:We.option},e,{selected:n["aria-selected"],index:t,inputValue:De},ze)},tt=Ve.slotProps.clearIndicator,nt=Ve.slotProps.popupIndicator;return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(mre,{ref:n,className:i(We.root,c),ownerState:ze,...ge(me),children:se({id:Re,disabled:v,fullWidth:!0,size:"small"===de?"small":void 0,InputLabelProps:ye(),InputProps:{ref:Pe,className:We.inputRoot,startAdornment:Xe,onMouseDown:e=>{e.target===e.currentTarget&&Ne(e)},...(Oe||Ae)&&{endAdornment:(0,sn.jsxs)(gre,{className:We.endAdornment,ownerState:ze,children:[Oe?(0,sn.jsx)(bre,{...ve(),"aria-label":f,title:f,ownerState:ze,...tt,className:i(We.clearIndicator,tt?.className),children:d}):null,Ae?(0,sn.jsx)(yre,{...we(),disabled:v,"aria-label":Te?m:Z,title:Te?m:Z,ownerState:ze,...nt,className:i(We.popupIndicator,nt?.className),children:re}):null]})}},inputProps:{className:We.input,disabled:v,readOnly:oe,...be()}})}),Ie?(0,sn.jsx)(wre,{as:Ke,...qe,children:(0,sn.jsxs)(vre,{as:Ue,...Ge,children:[W&&0===He.length?(0,sn.jsx)(Sre,{className:We.loading,ownerState:ze,children:V}):null,0!==He.length||R||W?null:(0,sn.jsx)(Cre,{className:We.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:$}),He.length>0?(0,sn.jsx)(Be,{as:F,...$e,children:He.map(((e,t)=>H?Qe({key:e.key,group:e.group,children:e.options.map(((t,n)=>et(t,e.index+n)))}):et(e,t)))}):null]})}):null]})})),Rre=kre;function Tre(e){return zr("MuiBadge",e)}const Ere=Wr("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Lre=rW("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ire=rW("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${gW(n.anchorOrigin.vertical)}${gW(n.anchorOrigin.horizontal)}${gW(n.overlap)}`],"default"!==n.color&&t[`color${gW(n.color)}`],n.invisible&&t.invisible]}})(iW((({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(bW(["contrastText"])).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ere.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}))));function Pre(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Dre=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:s,component:a,components:l={},componentsProps:u={},children:c,overlap:d="rectangular",color:h="default",invisible:p=!1,max:f=99,badgeContent:m,slots:g,slotProps:b,showZero:y=!1,variant:w="standard",...v}=n,{badgeContent:S,invisible:C,max:_,displayValue:M}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=xte({badgeContent:t,max:r});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=r}=s?i:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:f,invisible:p,badgeContent:m,showZero:y}),x=xte({anchorOrigin:Pre(r),color:h,overlap:d,variant:w,badgeContent:m}),k=C||null==S&&"dot"!==w,{color:R=h,overlap:T=d,anchorOrigin:E,variant:L=w}=k?x:n,I=Pre(E),P="dot"!==L?M:void 0,D={...n,badgeContent:S,invisible:k,max:_,displayValue:P,showZero:y,anchorOrigin:I,color:R,overlap:T,variant:L},H=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e;return $z({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${gW(n.vertical)}${gW(n.horizontal)}`,`anchorOrigin${gW(n.vertical)}${gW(n.horizontal)}${gW(o)}`,`overlap${gW(o)}`,"default"!==t&&`color${gW(t)}`]},Tre,s)})(D),O={slots:{root:g?.root??l.Root,badge:g?.badge??l.Badge},slotProps:{root:b?.root??u.root,badge:b?.badge??u.badge}},[A,N]=mW("root",{elementType:Lre,externalForwardedProps:{...O,...v},ownerState:D,className:i(H.root,o),ref:t,additionalProps:{as:a}}),[j,Y]=mW("badge",{elementType:Ire,externalForwardedProps:O,ownerState:D,className:H.badge});return(0,sn.jsxs)(A,{...N,children:[c,(0,sn.jsx)(j,{...Y,children:P})]})})),Hre=Dre,Ore=rW("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(iW((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mn(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),Are=rW("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(iW((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),Nre=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:s,orientation:a="horizontal",component:l=(o||"vertical"===a?"div":"hr"),flexItem:u=!1,light:c=!1,role:d=("hr"!==l?"separator":void 0),textAlign:h="center",variant:p="fullWidth",...f}=n,m={...n,absolute:r,component:l,flexItem:u,light:c,orientation:a,role:d,textAlign:h,variant:p},g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:l}=e;return $z({root:["root",t&&"absolute",l,i&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},JX,r)})(m);return(0,sn.jsx)(Ore,{as:l,className:i(g.root,s),role:d,ref:t,ownerState:m,"aria-orientation":"separator"!==d||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?(0,sn.jsx)(Are,{className:g.wrapper,ownerState:m,children:o}):null})}));Nre&&(Nre.muiSkipListHighlight=!0);const jre=Nre;function Yre(e){return zr("MuiLinearProgress",e)}Wr("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Fre=tV`
- 0% {
- left: -35%;
- right: 100%;
- }
- 60% {
- left: 100%;
- right: -90%;
- }
- 100% {
- left: 100%;
- right: -90%;
- }
- `,zre="string"!=typeof Fre?eV`
- animation: ${Fre} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
- `:null,Wre=tV`
- 0% {
- left: -200%;
- right: 100%;
- }
- 60% {
- left: 107%;
- right: -8%;
- }
- 100% {
- left: 107%;
- right: -8%;
- }
- `,Vre="string"!=typeof Wre?eV`
- animation: ${Wre} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
- `:null,Bre=tV`
- 0% {
- opacity: 1;
- background-position: 0 -23px;
- }
- 60% {
- opacity: 0;
- background-position: 0 -23px;
- }
- 100% {
- opacity: 1;
- background-position: -200px -23px;
- }
- `,$re="string"!=typeof Bre?eV`
- animation: ${Bre} 3s infinite linear;
- `:null,Ure=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?wn(e.palette[t].main,.62):bn(e.palette[t].main,.5),Gre=rW("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${gW(n.color)}`],t[n.variant]]}})(iW((({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{backgroundColor:Ure(e,t)}}))),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]})))),Kre=rW("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${gW(n.color)}`]]}})(iW((({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(bW()).map((([t])=>{const n=Ure(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}}))]}))),$re||{animation:`${Bre} 3s infinite linear`}),qre=rW("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${gW(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(iW((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}}))),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:zre||{animation:`${Fre} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]})))),Xre=rW("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${gW(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(iW((({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}}))),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Ure(e,t),transition:"transform .4s linear"}}))),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:Vre||{animation:`${Wre} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]})))),Jre=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate",...u}=n,c={...n,color:o,variant:l},d=(e=>{const{classes:t,variant:n,color:r}=e;return $z({root:["root",`color${gW(r)}`,n],dashed:["dashed",`dashedColor${gW(r)}`],bar1:["bar","bar1",`barColor${gW(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==n&&`barColor${gW(r)}`,"buffer"===n&&`color${gW(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},Yre,t)})(c),h=eU(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==s){p["aria-valuenow"]=Math.round(s),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=s-100;h&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==a){let e=(a||0)-100;h&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,sn.jsxs)(Gre,{className:i(d.root,r),ownerState:c,role:"progressbar",...p,ref:t,...u,children:["buffer"===l?(0,sn.jsx)(Kre,{className:d.dashed,ownerState:c}):null,(0,sn.jsx)(qre,{className:d.bar1,ownerState:c,style:f.bar1}),"determinate"===l?null:(0,sn.jsx)(Xre,{className:d.bar2,ownerState:c,style:f.bar2})]})})),Qre=Jre,Zre=rW("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(iW((({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]})))),eoe=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiListItemIcon"}),{className:o,...s}=r,a=t.useContext(XX),l={...r,alignItems:a.alignItems},u=(e=>{const{alignItems:t,classes:n}=e;return $z({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ZX,n)})(l);return(0,sn.jsx)(Zre,{className:i(u.root,o),ownerState:l,ref:n,...s})})),toe=eoe,noe=rW("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nJ.primary}`]:t.primary},{[`& .${nJ.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${ZV.root}:where(& .${nJ.primary})`]:{display:"block"},[`.${ZV.root}:where(& .${nJ.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),roe=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:a=!1,inset:l=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:h,slots:p={},slotProps:f={},...m}=r,{dense:g}=t.useContext(XX);let b=null!=u?u:o,y=d;const w={...r,disableTypography:a,inset:l,primary:!!b,secondary:!!y,dense:g},v=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return $z({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},tJ,t)})(w),S={slots:p,slotProps:{primary:c,secondary:h,...f}},[C,_]=mW("root",{className:i(v.root,s),elementType:noe,externalForwardedProps:{...S,...m},ownerState:w,ref:n}),[M,x]=mW("primary",{className:v.primary,elementType:iB,externalForwardedProps:S,ownerState:w}),[k,R]=mW("secondary",{className:v.secondary,elementType:iB,externalForwardedProps:S,ownerState:w});return null==b||b.type===iB||a||(b=(0,sn.jsx)(M,{variant:g?"body2":"body1",component:x?.variant?void 0:"span",...x,children:b})),null==y||y.type===iB||a||(y=(0,sn.jsx)(k,{variant:"body2",color:"textSecondary",...R,children:y})),(0,sn.jsxs)(C,{..._,children:[b,y]})})),ooe=roe;function ioe(e){return zr("MuiFormHelperText",e)}const soe=Wr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aoe;const loe=rW("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${gW(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(iW((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${soe.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${soe.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]})))),uoe=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:s="p",disabled:a,error:l,filled:u,focused:c,margin:d,required:h,variant:p,...f}=n,m=YX({props:n,muiFormControl:RU(),states:["variant","size","disabled","error","filled","focused","required"]}),g={...n,component:s,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete g.ownerState;const b=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e;return $z({root:["root",o&&"disabled",i&&"error",r&&`size${gW(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]},ioe,t)})(g);return(0,sn.jsx)(loe,{as:s,className:i(b.root,o),ref:t,...f,ownerState:g,children:" "===r?aoe||(aoe=(0,sn.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):r})})),coe=uoe;function doe(e){return zr("MuiTextField",e)}Wr("MuiTextField",["root"]);const hoe={standard:aZ,filled:pZ,outlined:_Z},poe=rW(fJ,{name:"MuiTextField",slot:"Root"})({}),foe=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:g,inputProps:b,InputProps:y,inputRef:w,label:v,maxRows:S,minRows:C,multiline:_=!1,name:M,onBlur:x,onChange:k,onFocus:R,placeholder:T,required:E=!1,rows:L,select:I=!1,SelectProps:P,slots:D={},slotProps:H={},type:O,value:A,variant:N="outlined",...j}=n,Y={...n,autoFocus:o,color:l,disabled:c,error:d,fullWidth:p,multiline:_,required:E,select:I,variant:N},F=(e=>{const{classes:t}=e;return $z({root:["root"]},doe,t)})(Y),z=RW(m),W=f&&z?`${z}-helper-text`:void 0,V=v&&z?`${z}-label`:void 0,B=hoe[N],$={slots:D,slotProps:{input:y,inputLabel:g,htmlInput:b,formHelperText:h,select:P,...H}},U={},G=$.slotProps.inputLabel;"outlined"===N&&(G&&void 0!==G.shrink&&(U.notched=G.shrink),U.label=v),I&&(P&&P.native||(U.id=void 0),U["aria-describedby"]=void 0);const[K,q]=mW("root",{elementType:poe,shouldForwardComponentProp:!0,externalForwardedProps:{...$,...j},ownerState:Y,className:i(F.root,a),ref:t,additionalProps:{disabled:c,error:d,fullWidth:p,required:E,color:l,variant:N}}),[X,J]=mW("input",{elementType:B,externalForwardedProps:$,additionalProps:U,ownerState:Y}),[Q,Z]=mW("inputLabel",{elementType:qX,externalForwardedProps:$,ownerState:Y}),[ee,te]=mW("htmlInput",{elementType:"input",externalForwardedProps:$,ownerState:Y}),[ne,re]=mW("formHelperText",{elementType:coe,externalForwardedProps:$,ownerState:Y}),[oe,ie]=mW("select",{elementType:EZ,externalForwardedProps:$,ownerState:Y}),se=(0,sn.jsx)(X,{"aria-describedby":W,autoComplete:r,autoFocus:o,defaultValue:u,fullWidth:p,multiline:_,name:M,rows:L,maxRows:S,minRows:C,type:O,value:A,id:z,inputRef:w,onBlur:x,onChange:k,onFocus:R,placeholder:T,inputProps:te,slots:{input:D.htmlInput?ee:void 0},...J});return(0,sn.jsxs)(K,{...q,children:[null!=v&&""!==v&&(0,sn.jsx)(Q,{htmlFor:z,id:V,...Z,children:v}),I?(0,sn.jsx)(oe,{"aria-describedby":W,id:z,labelId:V,value:A,input:se,...ie,children:s}):se,f&&(0,sn.jsx)(ne,{id:W,...re,children:f})]})})),moe=foe;function goe(e){return zr("MuiFormControlLabel",e)}const boe=Wr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),yoe=rW("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${boe.label}`]:t.label},t.root,t[`labelPlacement${gW(n.labelPlacement)}`]]}})(iW((({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${boe.disabled}`]:{cursor:"default"},[`& .${boe.label}`]:{[`&.${boe.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]})))),woe=rW("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(iW((({theme:e})=>({[`&.${boe.error}`]:{color:(e.vars||e).palette.error.main}})))),voe=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:a={},control:l,disabled:u,disableTypography:c,inputRef:d,label:h,labelPlacement:p="end",name:f,onChange:m,required:g,slots:b={},slotProps:y={},value:w,...v}=r,S=RU(),C=u??l.props.disabled??S?.disabled,_=g??l.props.required,M={disabled:C,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==r[e]&&(M[e]=r[e])}));const x=YX({props:r,muiFormControl:S,states:["error"]}),k={...r,disabled:C,labelPlacement:p,required:_,error:x.error},R=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return $z({root:["root",n&&"disabled",`labelPlacement${gW(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},goe,t)})(k),T={slots:b,slotProps:{...a,...y}},[E,L]=mW("typography",{elementType:iB,externalForwardedProps:T,ownerState:k});let I=h;return null==I||I.type===iB||c||(I=(0,sn.jsx)(E,{component:"span",...L,className:i(R.label,L?.className),children:I})),(0,sn.jsxs)(yoe,{className:i(R.root,s),ownerState:k,ref:n,...v,children:[t.cloneElement(l,M),_?(0,sn.jsxs)("div",{children:[I,(0,sn.jsxs)(woe,{ownerState:k,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):I]})})),Soe=voe;function Coe(e){return zr("MuiSwitch",e)}const _oe=Wr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Moe=rW("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${gW(n.edge)}`],t[`size${gW(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${_oe.thumb}`]:{width:16,height:16},[`& .${_oe.switchBase}`]:{padding:4,[`&.${_oe.checked}`]:{transform:"translateX(16px)"}}}}]}),xoe=rW(PU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${_oe.input}`]:t.input},"default"!==n.color&&t[`color${gW(n.color)}`]]}})(iW((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${_oe.checked}`]:{transform:"translateX(20px)"},[`&.${_oe.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${_oe.checked} + .${_oe.track}`]:{opacity:.5},[`&.${_oe.disabled} + .${_oe.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${_oe.input}`]:{left:"-100%",width:"300%"}}))),iW((({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(bW(["light"])).map((([t])=>({props:{color:t},style:{[`&.${_oe.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_oe.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?wn(e.palette[t].main,.62):bn(e.palette[t].main,.55)}`}},[`&.${_oe.checked} + .${_oe.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]})))),koe=rW("span",{name:"MuiSwitch",slot:"Track"})(iW((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)})))),Roe=rW("span",{name:"MuiSwitch",slot:"Thumb"})(iW((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})))),Toe=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:s=!1,size:a="medium",sx:l,slots:u={},slotProps:c={},...d}=n,h={...n,color:o,edge:s,size:a},p=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a=$z({root:["root",n&&`edge${gW(n)}`,`size${gW(r)}`],switchBase:["switchBase",`color${gW(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Coe,t);return{...t,...a}})(h),f={slots:u,slotProps:c},[m,g]=mW("root",{className:i(p.root,r),elementType:Moe,externalForwardedProps:f,ownerState:h,additionalProps:{sx:l}}),[b,y]=mW("thumb",{className:p.thumb,elementType:Roe,externalForwardedProps:f,ownerState:h}),w=(0,sn.jsx)(b,{...y}),[v,S]=mW("track",{className:p.track,elementType:koe,externalForwardedProps:f,ownerState:h});return(0,sn.jsxs)(m,{...g,children:[(0,sn.jsx)(xoe,{type:"checkbox",icon:w,checkedIcon:w,ref:t,ownerState:h,...d,classes:{...p,root:p.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(h):c.switchBase},...c.input&&{input:"function"==typeof c.input?c.input(h):c.input}}}),(0,sn.jsx)(v,{...S})]})})),Eoe=Toe;function Loe(e){return zr("MuiButton",e)}const Ioe=Wr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Poe=t.createContext({}),Doe=t.createContext(void 0),Hoe=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ooe=rW(mV,{shouldForwardProp:e=>nW(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gW(n.color)}`],t[`size${gW(n.size)}`],t[`${n.variant}Size${gW(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(iW((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ioe.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Ioe.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ioe.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ioe.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(bW()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:mn(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ioe.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ioe.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Ioe.loading}`]:{color:"transparent"}}}]}}))),Aoe=rW("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${gW(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Hoe]}))),Noe=rW("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${gW(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Hoe]}))),joe=rW("span",{name:"MuiButton",slot:"LoadingIndicator"})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),Yoe=rW("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Foe=t.forwardRef((function(e,n){const r=t.useContext(Poe),o=t.useContext(Doe),s=lW({props:sW(r,e),name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:m,fullWidth:g=!1,id:b,loading:y=null,loadingIndicator:w,loadingPosition:v="center",size:S="medium",startIcon:C,type:_,variant:M="text",...x}=s,k=TW(b),R=w??(0,sn.jsx)(xV,{"aria-labelledby":k,color:"inherit",size:16}),T={...s,color:l,component:u,disabled:d,disableElevation:h,disableFocusRipple:p,fullWidth:g,loading:y,loadingIndicator:R,loadingPosition:v,size:S,type:_,variant:M},E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=e,u=$z({root:["root",s&&"loading",i,`${i}${gW(t)}`,`size${gW(o)}`,`${i}Size${gW(o)}`,`color${gW(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${gW(a)}`],startIcon:["icon","startIcon",`iconSize${gW(o)}`],endIcon:["icon","endIcon",`iconSize${gW(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Loe,l);return{...l,...u}})(T),L=(C||y&&"start"===v)&&(0,sn.jsx)(Aoe,{className:E.startIcon,ownerState:T,children:C||(0,sn.jsx)(Yoe,{className:E.loadingIconPlaceholder,ownerState:T})}),I=(f||y&&"end"===v)&&(0,sn.jsx)(Noe,{className:E.endIcon,ownerState:T,children:f||(0,sn.jsx)(Yoe,{className:E.loadingIconPlaceholder,ownerState:T})}),P=o||"",D="boolean"==typeof y?(0,sn.jsx)("span",{className:E.loadingWrapper,style:{display:"contents"},children:y&&(0,sn.jsx)(joe,{className:E.loadingIndicator,ownerState:T,children:R})}):null;return(0,sn.jsxs)(Ooe,{ownerState:T,className:i(r.className,E.root,c,P),component:u,disabled:d||y,focusRipple:!p,focusVisibleClassName:i(E.focusVisible,m),ref:n,type:_,id:y?k:b,...x,classes:E,children:[L,"end"!==v&&D,a,"end"===v&&D,I]})})),zoe=Foe;function Woe(e){return zr("MuiInputAdornment",e)}const Voe=Wr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Boe;const $oe=rW("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${gW(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(iW((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Voe.positionStart}&:not(.${Voe.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),Uoe=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:c,variant:d,...h}=r,p=RU()||{};let f=d;d&&p.variant,p&&!f&&(f=p.variant);const m={...r,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:c,variant:f},g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e;return $z({root:["root",n&&"disablePointerEvents",o&&`position${gW(o)}`,s,r&&"hiddenLabel",i&&`size${gW(i)}`]},Woe,t)})(m);return(0,sn.jsx)(kU.Provider,{value:null,children:(0,sn.jsx)($oe,{as:a,ownerState:m,className:i(g.root,s),ref:n,...h,children:"string"!=typeof o||u?(0,sn.jsxs)(t.Fragment,{children:["start"===c?Boe||(Boe=(0,sn.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]}):(0,sn.jsx)(iB,{color:"textSecondary",children:o})})})})),Goe=Uoe;function Koe(e){return zr("MuiTooltip",e)}const qoe=Wr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Xoe=rW(Qne,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(iW((({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${qoe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qoe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qoe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qoe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${qoe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${qoe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${qoe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${qoe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]})))),Joe=rW("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${gW(n.placement.split("-")[0])}`]]}})(iW((({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qoe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qoe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qoe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qoe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${qoe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qoe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${qoe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qoe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${qoe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qoe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${qoe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qoe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${qoe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${qoe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t}))),Qoe=rW("span",{name:"MuiTooltip",slot:"Arrow"})(iW((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))));let Zoe=!1;const eie=new KW;let tie={x:0,y:0};function nie(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const rie=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:u={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:h=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:y=!1,id:w,leaveDelay:v=0,leaveTouchDelay:S=1500,onClose:C,onOpen:_,open:M,placement:x="bottom",PopperComponent:k,PopperProps:R={},slotProps:T={},slots:E={},title:L,TransitionComponent:I,TransitionProps:P,...D}=r,H=t.isValidElement(s)?s:(0,sn.jsx)("span",{children:s}),O=yW(),A=eU(),[N,j]=t.useState(),[Y,F]=t.useState(null),z=t.useRef(!1),W=p||y,V=qW(),B=qW(),$=qW(),U=qW(),[G,K]=xU({controlled:M,default:!1,name:"Tooltip",state:"open"});let q=G;const X=TW(w),J=t.useRef(),Q=DW((()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),U.clear()}));t.useEffect((()=>Q),[Q]);const Z=e=>{eie.clear(),Zoe=!0,K(!0),_&&!q&&_(e)},ee=DW((e=>{eie.start(800+v,(()=>{Zoe=!1})),K(!1),C&&q&&C(e),V.start(O.transitions.duration.shortest,(()=>{z.current=!1}))})),te=e=>{z.current&&"touchstart"!==e.type||(N&&N.removeAttribute("title"),B.clear(),$.clear(),m||Zoe&&g?B.start(Zoe?g:m,(()=>{Z(e)})):Z(e))},ne=e=>{B.clear(),$.start(v,(()=>{ee(e)}))},[,re]=t.useState(!1),oe=e=>{EW(e.target)||(re(!1),ne(e))},ie=e=>{N||j(e.currentTarget),EW(e.target)&&(re(!0),te(e))},se=e=>{z.current=!0;const t=H.props;t.onTouchStart&&t.onTouchStart(e)};t.useEffect((()=>{if(q)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}}),[ee,q]);const ae=LW(mJ(H),j,n);L||0===L||(q=!1);const le=t.useRef(),ue={},ce="string"==typeof L;c?(ue.title=q||!ce||h?null:L,ue["aria-describedby"]=q?X:null):(ue["aria-label"]=ce?L:null,ue["aria-labelledby"]=q&&!ce?X:null);const de={...ue,...D,...H.props,className:i(D.className,H.props.className),onTouchStart:se,ref:ae,...y?{onMouseMove:e=>{const t=H.props;t.onMouseMove&&t.onMouseMove(e),tie={x:e.clientX,y:e.clientY},le.current&&le.current.update()}}:{}},he={};f||(de.onTouchStart=e=>{se(e),$.clear(),V.clear(),Q(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(b,(()=>{document.body.style.WebkitUserSelect=J.current,te(e)}))},de.onTouchEnd=e=>{H.props.onTouchEnd&&H.props.onTouchEnd(e),Q(),$.start(S,(()=>{ee(e)}))}),h||(de.onMouseOver=nie(te,de.onMouseOver),de.onMouseLeave=nie(ne,de.onMouseLeave),W||(he.onMouseOver=te,he.onMouseLeave=ne)),d||(de.onFocus=nie(ie,de.onFocus),de.onBlur=nie(oe,de.onBlur),W||(he.onFocus=ie,he.onBlur=oe));const pe={...r,isRtl:A,arrow:o,disableInteractive:W,placement:x,PopperComponentProp:k,touch:z.current},fe="function"==typeof T.popper?T.popper(pe):T.popper,me=t.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(Y),options:{element:Y,padding:4}}];return R.popperOptions?.modifiers&&(e=e.concat(R.popperOptions.modifiers)),fe?.popperOptions?.modifiers&&(e=e.concat(fe.popperOptions.modifiers)),{...R.popperOptions,...fe?.popperOptions,modifiers:e}}),[Y,R.popperOptions,fe?.popperOptions]),ge=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return $z({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${gW(i.split("-")[0])}`],arrow:["arrow"]},Koe,t)})(pe),be="function"==typeof T.transition?T.transition(pe):T.transition,ye={slots:{popper:l.Popper,transition:l.Transition??I,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:T.arrow??u.arrow,popper:{...R,...fe??u.popper},tooltip:T.tooltip??u.tooltip,transition:{...P,...be??u.transition}}},[we,ve]=mW("popper",{elementType:Xoe,externalForwardedProps:ye,ownerState:pe,className:i(ge.popper,R?.className)}),[Se,Ce]=mW("transition",{elementType:PJ,externalForwardedProps:ye,ownerState:pe}),[_e,Me]=mW("tooltip",{elementType:Joe,className:ge.tooltip,externalForwardedProps:ye,ownerState:pe}),[xe,ke]=mW("arrow",{elementType:Qoe,className:ge.arrow,externalForwardedProps:ye,ownerState:pe,ref:F});return(0,sn.jsxs)(t.Fragment,{children:[t.cloneElement(H,de),(0,sn.jsx)(we,{as:k??Qne,placement:x,anchorEl:y?{getBoundingClientRect:()=>({top:tie.y,left:tie.x,right:tie.x,bottom:tie.y,width:0,height:0})}:N,popperRef:le,open:!!N&&q,id:X,transition:!0,...he,...ve,popperOptions:me,children:({TransitionProps:e})=>(0,sn.jsx)(Se,{timeout:O.transitions.duration.shorter,...e,...Ce,children:(0,sn.jsxs)(_e,{...Me,children:[L,o?(0,sn.jsx)(xe,{...ke}):null]})})})]})})),oie=rie,iie=t.createContext(),sie=t.createContext();function aie(e){return zr("MuiTableCell",e)}const lie=Wr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),uie=rW("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${gW(n.size)}`],"normal"!==n.padding&&t[`padding${gW(n.padding)}`],"inherit"!==n.align&&t[`align${gW(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(iW((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?wn(mn(e.palette.divider,1),.88):bn(mn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${lie.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),cie=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:u,size:c,sortDirection:d,variant:h,...p}=r,f=t.useContext(iie),m=t.useContext(sie),g=m&&"head"===m.variant;let b;b=a||(g?"th":"td");let y=u;"td"===b?y=void 0:!y&&g&&(y="col");const w=h||m&&m.variant,v={...r,align:o,component:b,padding:l||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:d,stickyHeader:"head"===w&&f&&f.stickyHeader,variant:w},S=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e;return $z({root:["root",n,s&&"stickyHeader","inherit"!==r&&`align${gW(r)}`,"normal"!==o&&`padding${gW(o)}`,`size${gW(i)}`]},aie,t)})(v);let C=null;return d&&(C="asc"===d?"ascending":"descending"),(0,sn.jsx)(uie,{as:b,ref:n,className:i(S.root,s),"aria-sort":C,scope:y,ownerState:v,...p})})),die=cie;function hie(e){return zr("MuiToolbar",e)}Wr("MuiToolbar",["root","gutters","regular","dense"]);const pie=rW("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(iW((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]})))),fie=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=n,u={...n,component:o,disableGutters:s,variant:a},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return $z({root:["root",!n&&"gutters",r]},hie,t)})(u);return(0,sn.jsx)(pie,{as:o,className:i(c.root,r),ref:t,ownerState:u,...l})})),mie=fie,gie=AV((0,sn.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),bie=AV((0,sn.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),yie=t.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,disabled:o=!1,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:l,rowsPerPage:u,showFirstButton:c,showLastButton:d,slots:h={},slotProps:p={},...f}=e,m=eU(),g=h.firstButton??IV,b=h.lastButton??IV,y=h.nextButton??IV,w=h.previousButton??IV,v=h.firstButtonIcon??bie,S=h.lastButtonIcon??gie,C=h.nextButtonIcon??dK,_=h.previousButtonIcon??cK,M=m?b:g,x=m?y:w,k=m?w:y,R=m?g:b,T=m?p.lastButton:p.firstButton,E=m?p.nextButton:p.previousButton,L=m?p.previousButton:p.nextButton,I=m?p.firstButton:p.lastButton;return(0,sn.jsxs)("div",{ref:t,...f,children:[c&&(0,sn.jsx)(M,{onClick:e=>{a(e,0)},disabled:o||0===l,"aria-label":i("first",l),title:i("first",l),...T,children:m?(0,sn.jsx)(S,{...p.lastButtonIcon}):(0,sn.jsx)(v,{...p.firstButtonIcon})}),(0,sn.jsx)(x,{onClick:e=>{a(e,l-1)},disabled:o||0===l,color:"inherit","aria-label":i("previous",l),title:i("previous",l),...E??n,children:m?(0,sn.jsx)(C,{...p.nextButtonIcon}):(0,sn.jsx)(_,{...p.previousButtonIcon})}),(0,sn.jsx)(k,{onClick:e=>{a(e,l+1)},disabled:o||-1!==r&&l>=Math.ceil(r/u)-1,color:"inherit","aria-label":i("next",l),title:i("next",l),...L??s,children:m?(0,sn.jsx)(_,{...p.previousButtonIcon}):(0,sn.jsx)(C,{...p.nextButtonIcon})}),d&&(0,sn.jsx)(R,{onClick:e=>{a(e,Math.max(0,Math.ceil(r/u)-1))},disabled:o||l>=Math.ceil(r/u)-1,"aria-label":i("last",l),title:i("last",l),...I,children:m?(0,sn.jsx)(v,{...p.firstButtonIcon}):(0,sn.jsx)(S,{...p.lastButtonIcon})})]})}));function wie(e){return zr("MuiTablePagination",e)}const vie=Wr("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Sie;const Cie=rW(die,{name:"MuiTablePagination",slot:"Root"})(iW((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})))),_ie=rW(mie,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${vie.actions}`]:t.actions,...t.toolbar})})(iW((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vie.actions}`]:{flexShrink:0,marginLeft:20}})))),Mie=rW("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),xie=rW("p",{name:"MuiTablePagination",slot:"SelectLabel"})(iW((({theme:e})=>({...e.typography.body2,flexShrink:0})))),kie=rW(EZ,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${vie.selectIcon}`]:t.selectIcon,[`& .${vie.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vie.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Rie=rW(aJ,{name:"MuiTablePagination",slot:"MenuItem"})({}),Tie=rW("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(iW((({theme:e})=>({...e.typography.body2,flexShrink:0}))));function Eie({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function Lie(e){return`Go to ${e} page`}const Iie=t.forwardRef((function(e,n){const r=lW({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=yie,backIconButtonProps:s,colSpan:a,component:l=die,count:u,disabled:c=!1,getItemAriaLabel:d=Lie,labelDisplayedRows:h=Eie,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:f,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:y,rowsPerPageOptions:w=[10,25,50,100],SelectProps:v={},showFirstButton:S=!1,showLastButton:C=!1,slotProps:_={},slots:M={},...x}=r,k=r,R=(e=>{const{classes:t}=e;return $z({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},wie,t)})(k),T=_?.select??v,E=T.native?"option":Rie;let L;l!==die&&"td"!==l||(L=a||1e3);const I=TW(T.id),P=TW(T.labelId),D={slots:M,slotProps:_},[H,O]=mW("root",{ref:n,className:R.root,elementType:Cie,externalForwardedProps:{...D,component:l,...x},ownerState:k,additionalProps:{colSpan:L}}),[A,N]=mW("toolbar",{className:R.toolbar,elementType:_ie,externalForwardedProps:D,ownerState:k}),[j,Y]=mW("spacer",{className:R.spacer,elementType:Mie,externalForwardedProps:D,ownerState:k}),[F,z]=mW("selectLabel",{className:R.selectLabel,elementType:xie,externalForwardedProps:D,ownerState:k,additionalProps:{id:P}}),[W,V]=mW("select",{className:R.select,elementType:kie,externalForwardedProps:D,ownerState:k}),[B,$]=mW("menuItem",{className:R.menuItem,elementType:E,externalForwardedProps:D,ownerState:k}),[U,G]=mW("displayedRows",{className:R.displayedRows,elementType:Tie,externalForwardedProps:D,ownerState:k});return(0,sn.jsx)(H,{...O,children:(0,sn.jsxs)(A,{...N,children:[(0,sn.jsx)(j,{...Y}),w.length>1&&(0,sn.jsx)(F,{...z,children:p}),w.length>1&&(0,sn.jsx)(W,{variant:"standard",...!T.variant&&{input:Sie||(Sie=(0,sn.jsx)(tZ,{}))},value:y,onChange:g,id:I,labelId:P,...T,classes:{...T.classes,root:i(R.input,R.selectRoot,(T.classes||{}).root),select:i(R.select,(T.classes||{}).select),icon:i(R.selectIcon,(T.classes||{}).icon)},disabled:c,...V,children:w.map((e=>(0,t.createElement)(B,{...$,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e)))}),(0,sn.jsx)(U,{...G,children:h({from:0===u?0:b*y+1,to:-1===u?(b+1)*y:-1===y?u:Math.min(u,(b+1)*y),count:-1===u?-1:u,page:b})}),(0,sn.jsx)(o,{className:R.actions,backIconButtonProps:s,count:u,nextIconButtonProps:f,onPageChange:m,page:b,rowsPerPage:y,showFirstButton:S,showLastButton:C,slotProps:_.actions,slots:M.actions,getItemAriaLabel:d,disabled:c})]})})})),Pie=Iie;function Die(e){return e.substring(2).toLowerCase()}function Hie(e){const{children:n,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=t.useRef(!1),l=t.useRef(null),u=t.useRef(!1),c=t.useRef(!1);t.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=uW(mJ(n),l),h=PW((e=>{const t=c.current;c.current=!1;const n=sK(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let o;o=e.composedPath?e.composedPath().includes(l.current):!n.documentElement.contains(e.target)||l.current.contains(e.target),o||!r&&t||i(e)})),p=e=>t=>{c.current=!0;const r=n.props[e];r&&r(t)},f={ref:d};return!1!==s&&(f[s]=p(s)),t.useEffect((()=>{if(!1!==s){const e=Die(s),t=sK(l.current),n=()=>{a.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",n)}}}),[h,s]),!1!==o&&(f[o]=p(o)),t.useEffect((()=>{if(!1!==o){const e=Die(o),t=sK(l.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,o]),t.cloneElement(n,f)}function Oie(e){return zr("MuiSkeleton",e)}Wr("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Aie=tV`
- 0% {
- opacity: 1;
- }
- 50% {
- opacity: 0.4;
- }
- 100% {
- opacity: 1;
- }
- `,Nie=tV`
- 0% {
- transform: translateX(-100%);
- }
- 50% {
- /* +0.5s of delay between each loop */
- transform: translateX(100%);
- }
- 100% {
- transform: translateX(100%);
- }
- `,jie="string"!=typeof Aie?eV`
- animation: ${Aie} 2s ease-in-out 0.5s infinite;
- `:null,Yie="string"!=typeof Nie?eV`
- &::after {
- animation: ${Nie} 2s linear 0.5s infinite;
- }
- `:null,Fie=rW("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(iW((({theme:e})=>{const t=(o=e.shape.borderRadius,String(o).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px"),n=(r=e.shape.borderRadius,parseFloat(r));var r,o;return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:mn(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:jie||{animation:`${Aie} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Yie||{"&::after":{animation:`${Nie} 2s linear 0.5s infinite`}}}]}}))),zie=t.forwardRef((function(e,t){const n=lW({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:s="span",height:a,style:l,variant:u="text",width:c,...d}=n,h={...n,animation:r,component:s,variant:u,hasChildren:Boolean(d.children)},p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return $z({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},Oie,t)})(h);return(0,sn.jsx)(Fie,{as:s,ref:t,className:i(p.root,o),ownerState:h,...d,style:{width:c,height:a,...l}})})),Wie=zie,Vie=AV,Bie=Vie((0,sn.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),$ie=Vie((0,sn.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Uie=Vie((0,sn.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Gie=Vie((0,sn.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Kie=Vie((0,sn.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qie=Vie((0,sn.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),Xie=Vie((0,sn.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),Jie=(Vie((0,sn.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Vie((0,sn.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),Vie((0,sn.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ColumnIcon")),Qie=Vie((0,sn.jsx)("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),Zie=Vie((0,sn.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),ese=Vie((0,sn.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),tse=Vie((0,sn.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),nse=Vie((0,sn.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),rse=Vie((0,sn.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ose=Vie((0,sn.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),ise=Vie((0,sn.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),sse=Vie((0,sn.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),ase=Vie((0,sn.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),lse=Vie((0,sn.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),use=Vie((0,sn.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),cse=Vie((0,sn.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),dse=Vie((0,sn.jsx)("g",{children:(0,sn.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),hse=Vie((0,sn.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Clear"),pse=(Vie((0,sn.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Vie((0,sn.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")),fse=Vie((0,sn.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),mse=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],gse=["onRowsPerPageChange","material","disabled"],bse=["material"],yse=["autoFocus","label","fullWidth","slotProps","className","material"],wse=["material"],vse=["material"],Sse=["material"],Cse=["material"],_se=["material"],Mse=["material"],xse=["material"],kse=["material"],Rse=["material","label","className"],Tse=["material"],Ese=["inert","iconStart","iconEnd","children","material"],Lse=["slotProps","material"],Ise=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],Pse=["key"],Dse=["inputProps","InputProps","InputLabelProps"],Hse=["slotProps","material"],Ose=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],Ase=["native"],Nse=rW(Goe)((({theme:e})=>({[`&.${Voe.positionEnd} .${RV.sizeSmall}`]:{marginRight:e.spacing(-.75)}}))),jse=rW(Soe,{shouldForwardProp:e=>"fullWidth"!==e})((({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${boe.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]}))),Yse=rW(BU,{shouldForwardProp:e=>"density"!==e})((({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]}))),Fse=rW(ooe)({[`& .${nJ.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),zse=XZ((function(e,t){const{id:n,label:r,labelId:o,material:i,disabled:a,slotProps:l,onChange:u,onKeyDown:c,onOpen:d,onClose:h,size:p,style:f,fullWidth:m}=e,g=Bz(e,mse),b={PaperProps:{onKeyDown:c}};return h&&(b.onClose=h),(0,sn.jsxs)(fJ,{size:p,fullWidth:m,style:f,disabled:a,ref:t,children:[(0,sn.jsx)(qX,{id:o,htmlFor:n,shrink:!0,variant:"outlined",children:r}),(0,sn.jsx)(EZ,s({id:n,labelId:o,label:r,displayEmpty:!0,onChange:u},g,{variant:"outlined",notched:!0,inputProps:l?.htmlInput,onOpen:d,MenuProps:b,size:p},i))]})})),Wse=rW(Pie)((({theme:e})=>({[`& .${vie.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${vie.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}}))),Vse=XZ((function(e,n){const{onRowsPerPageChange:r,material:o,disabled:i}=e,a=Bz(e,gse),l=t.useMemo((()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}}),[i]),u=d1(),c=M0(),{estimatedRowCount:d}=c;return(0,sn.jsx)(Wse,s({component:"div",onRowsPerPageChange:PW((e=>{r?.(Number(e.target.value))})),labelRowsPerPage:u.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:e=>u.current.getLocaleText("paginationDisplayedRows")(s({},e,{estimated:d})),getItemAriaLabel:u.current.getLocaleText("paginationItemAriaLabel")},l,a,o,{ref:n}))})),Bse=XZ((function(e,t){const{material:n}=e,r=Bz(e,bse);return(0,sn.jsx)(Hre,s({},r,n,{ref:t}))})),$se=XZ((function(e,n){const{autoFocus:r,label:o,fullWidth:a,slotProps:l,className:u,material:c}=e,d=Bz(e,yse),h=t.useRef(null),p=uW(h,n),f=t.useRef(null);return t.useEffect((()=>{if(r){const e=h.current?.querySelector("input");e?.focus({preventScroll:!0})}else!1===r&&f.current&&f.current.stop({})}),[r]),o?(0,sn.jsx)(jse,{className:u,control:(0,sn.jsx)(Yse,s({},d,c,{inputProps:l?.htmlInput,ref:p,touchRippleRef:f})),label:o,fullWidth:a}):(0,sn.jsx)(Yse,s({},d,c,{className:i(u,c?.className),inputProps:l?.htmlInput,ref:p,touchRippleRef:f}))})),Use=XZ((function(e,t){const{material:n}=e,r=Bz(e,wse);return(0,sn.jsx)(xV,s({},r,n,{ref:t}))})),Gse=XZ((function(e,t){const{material:n}=e,r=Bz(e,vse);return(0,sn.jsx)(jre,s({},r,n,{ref:t}))})),Kse=XZ((function(e,t){const{material:n}=e,r=Bz(e,Sse);return(0,sn.jsx)(Qre,s({},r,n,{ref:t}))})),qse=XZ((function(e,t){const{material:n}=e,r=Bz(e,Cse);return(0,sn.jsx)(zoe,s({},r,n,{ref:t}))})),Xse=XZ((function(e,t){const{material:n}=e,r=Bz(e,_se);return(0,sn.jsx)(cre,s({},r,n,{ref:t}))})),Jse=XZ((function(e,t){const{material:n}=e,r=Bz(e,Mse);return(0,sn.jsx)(IV,s({},r,n,{ref:t}))})),Qse=XZ((function(e,t){const{material:n}=e,r=Bz(e,xse);return(0,sn.jsx)(oie,s({},r,n,{ref:t}))})),Zse=XZ((function(e,t){const{material:n}=e,r=Bz(e,kse);return(0,sn.jsx)(Wie,s({},r,n,{ref:t}))})),eae=XZ((function(e,t){const{material:n,label:r,className:o}=e,i=Bz(e,Rse);return r?(0,sn.jsx)(jse,{className:o,control:(0,sn.jsx)(Eoe,s({},i,n,{ref:t})),label:r}):(0,sn.jsx)(Eoe,s({},i,n,{className:o,ref:t}))})),tae=XZ((function(e,t){const{material:n}=e,r=Bz(e,Tse);return(0,sn.jsx)(kJ,s({},r,n,{ref:t}))}));function nae(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,o=Bz(e,Hse);t&&(o.startAdornment&&(o.startAdornment=(0,sn.jsx)(Nse,{position:"start",children:o.startAdornment})),o.endAdornment&&(o.endAdornment=(0,sn.jsx)(Nse,{position:"end",children:o.endAdornment})));for(const e in r)Object.hasOwn(r,e)&&(o[e]=r[e]);return n?.htmlInput&&(o.inputProps?o.inputProps=s({},o.inputProps,n?.htmlInput):o.inputProps=n?.htmlInput),o}const rae={"bottom-start":"top left","bottom-end":"top right"};function oae(e,t){return function(e,t){return void 0===e.focusTrap?t:(0,sn.jsx)(AJ,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:(0,sn.jsx)("div",{tabIndex:-1,children:t})})}(e,function(e,t){return void 0===e.onClickAway?t:(0,sn.jsx)(Hie,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}(e,t))}const iae={baseAutocomplete:function(e){const t=M0(),{id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:c,label:d,placeholder:h,slotProps:p,material:f}=e,m=Bz(e,Ise);return(0,sn.jsx)(Rre,s({id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:c,renderTags:(e,t)=>e.map(((e,n)=>{const r=t({index:n}),{key:o}=r,i=Bz(r,Pse);return(0,sn.jsx)(cre,s({variant:"outlined",size:"small",label:"string"==typeof e?e:a?.(e)},i),o)})),renderInput:e=>{const{inputProps:n,InputProps:r,InputLabelProps:o}=e,i=Bz(e,Dse);return(0,sn.jsx)(moe,s({},i,{label:d,placeholder:h,inputProps:n,InputProps:nae(r,!1),InputLabelProps:s({shrink:!0},o)},p?.textField,t.slotProps?.baseTextField))}},m,f))},baseBadge:Bse,baseCheckbox:$se,baseChip:Xse,baseCircularProgress:Use,baseDivider:Gse,baseInput:function(e){return(0,sn.jsx)(tZ,s({},nae(e)))},baseLinearProgress:Kse,baseMenuList:tae,baseMenuItem:function(e){const{inert:n,iconStart:r,iconEnd:o,children:i,material:a}=e,l=Bz(e,Ese);return n&&(l.disableRipple=!0),t.createElement(aJ,s({},l,a),[r&&(0,sn.jsx)(toe,{children:r},"1"),(0,sn.jsx)(Fse,{children:i},"2"),o&&(0,sn.jsx)(toe,{children:o},"3")])},baseTextField:function(e){const{slotProps:t,material:n}=e,r=Bz(e,Lse);return(0,sn.jsx)(moe,s({variant:"outlined"},r,n,{inputProps:t?.htmlInput,InputProps:nae(t?.input),InputLabelProps:s({shrink:!0},t?.inputLabel)}))},baseButton:qse,baseIconButton:Jse,baseTooltip:Qse,basePagination:Vse,basePopper:function(e){const{open:n,children:r,className:o,flip:i,onExited:a,onDidShow:l,onDidHide:u,id:c,target:d,transition:h,placement:p,material:f}=e,m=Bz(e,Ose),g=t.useMemo((()=>{const e=[{name:"preventOverflow",options:{padding:8}}];return i&&e.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(l||u)&&e.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{l?.()},effect:()=>()=>{u?.()}}),e}),[i,l,u]);let b;if(h){const t=e=>t=>{e&&e(),a&&a(t)};b=n=>oae(e,(0,sn.jsx)(PJ,s({},n.TransitionProps,{style:{transformOrigin:rae[n.placement]},onExited:t(n.TransitionProps?.onExited),children:(0,sn.jsx)(CW,{children:r})})))}else b=oae(e,r);return(0,sn.jsx)(Qne,s({id:c,className:o,open:n,anchorEl:d,transition:h,placement:p,modifiers:g},m,f,{children:b}))},baseSelect:zse,baseSelectOption:function(e){let{native:t}=e,n=Bz(e,Ase);return t?(0,sn.jsx)("option",s({},n)):(0,sn.jsx)(aJ,s({},n))},baseSkeleton:Zse,baseSwitch:eae},sae=s({},iae,{booleanCellTrueIcon:lse,booleanCellFalseIcon:rse,columnMenuIcon:nse,openFilterButtonIcon:Kie,filterPanelDeleteIcon:rse,columnFilteredIcon:qie,columnSelectorIcon:Jie,columnSortedAscendingIcon:Bie,columnSortedDescendingIcon:$ie,columnResizeIcon:Qie,densityCompactIcon:Zie,densityStandardIcon:ese,densityComfortableIcon:tse,exportIcon:fse,moreActionsIcon:use,treeDataCollapseIcon:Gie,treeDataExpandIcon:Uie,groupingCriteriaCollapseIcon:Gie,groupingCriteriaExpandIcon:Uie,detailPanelExpandIcon:ose,detailPanelCollapseIcon:ise,rowReorderIcon:ase,quickFilterIcon:Xie,quickFilterClearIcon:hse,columnMenuHideIcon:cse,columnMenuSortAscendingIcon:Bie,columnMenuSortDescendingIcon:$ie,columnMenuUnsortIcon:null,columnMenuFilterIcon:qie,columnMenuManageColumnsIcon:dse,columnMenuClearIcon:hse,loadIcon:sse,filterPanelAddIcon:ose,filterPanelRemoveAllIcon:pse,columnReorderIcon:ase,menuItemCheckIcon:lse}),aae=xG("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function lae(e,n,r,o={}){return"function"==typeof n?n(r,o):n?(n.props.className&&(r.className=(l=n.props.className,u=r.className,l&&u?`${l} ${u}`:l||u)),(n.props.style||r.style)&&(r.style=s({},r.style,n.props.style)),(n.props.sx||r.sx)&&(r.sx=(i=r.sx,a=n.props.sx,i&&a?(Array.isArray(i)?i:[i]).concat(Array.isArray(a)?a:[a]):i||a)),t.cloneElement(n,r)):t.createElement(e,r);var i,a,l,u}const uae=t.createContext(void 0);function cae(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const dae=["render","className"],hae=xG("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:i0.spacing(.25),padding:i0.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${i0.colors.border.base}`}),pae=XZ((function(e,n){const{render:r,className:o}=e,a=Bz(e,dae),l=M0(),u=(e=>{const{classes:t}=e;return $z({root:["toolbar"]},e0,t)})(l),[c,d]=t.useState(null),[h,p]=t.useState([]),f=t.useCallback((()=>h.sort(cae)),[h]),m=t.useCallback(((e,t,n=!0)=>{let r=e;const o=f(),i=o.length;for(let e=0;e<i;e+=1){if(r+=t,r>=i){if(!n)return-1;r=0}else if(r<0){if(!n)return-1;r=i-1}if(!o[r].ref.current?.disabled&&"true"!==o[r].ref.current?.ariaDisabled)return r}return-1}),[f]),g=t.useCallback(((e,t)=>{p((n=>[...n,{id:e,ref:t}]))}),[]),b=t.useCallback((e=>{p((t=>t.filter((t=>t.id!==e))))}),[]),y=t.useCallback((e=>{if(!c)return;const t=f(),n=t.findIndex((e=>e.id===c));let r=-1;if("ArrowRight"===e.key?(e.preventDefault(),r=m(n,1)):"ArrowLeft"===e.key?(e.preventDefault(),r=m(n,-1)):"Home"===e.key?(e.preventDefault(),r=m(-1,1,!1)):"End"===e.key&&(e.preventDefault(),r=m(t.length,-1,!1)),r>=0&&r<t.length){const e=t[r];d(e.id),e.ref.current?.focus()}}),[f,c,m]),w=t.useCallback((e=>{c!==e&&d(e)}),[c,d]),v=t.useCallback((e=>{const t=f(),n=t.findIndex((t=>t.id===e)),r=m(n,1);if(r>=0&&r<t.length){const e=t[r];d(e.id),e.ref.current?.focus()}}),[f,m]);t.useEffect((()=>{const e=f();if(e.length>0){if(!c)return void d(e[0].id);const t=e.findIndex((e=>e.id===c));if(e[t]){if(-1===t){const n=e[t];n&&(d(n.id),n.ref.current?.focus())}}else{const t=e[e.length-1];t&&(d(t.id),t.ref.current?.focus())}}}),[f,m]);const S=t.useMemo((()=>({focusableItemId:c,registerItem:g,unregisterItem:b,onItemKeyDown:y,onItemFocus:w,onItemDisabled:v})),[c,g,b,y,w,v]),C=lae(hae,r,s({role:"toolbar","aria-orientation":"horizontal","aria-label":l.label||void 0,className:i(u.root,o)},a,{ref:n}));return(0,sn.jsx)(uae.Provider,{value:S,children:C})})),fae=["render","onKeyDown","onFocus","disabled","aria-disabled"],mae=XZ((function(e,n){const{render:r,onKeyDown:o,onFocus:i,disabled:a,"aria-disabled":l}=e,u=Bz(e,fae),c=RW(),d=M0(),h=t.useRef(null),p=uW(h,n),{focusableItemId:f,registerItem:m,unregisterItem:g,onItemKeyDown:b,onItemFocus:y,onItemDisabled:w}=function(){const e=t.useContext(uae);if(void 0===e)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}();t.useEffect((()=>(m(c,h),()=>g(c))),[]);const v=t.useRef(a);t.useEffect((()=>{v.current!==a&&!0===a&&w(c,a),v.current=a}),[a,c,w]);const S=t.useRef(l);t.useEffect((()=>{S.current!==l&&!0===l&&w(c,!0),S.current=l}),[l,c,w]);const C=lae(d.slots.baseIconButton,r,s({},d.slotProps?.baseIconButton,{tabIndex:f===c?0:-1},u,{disabled:a,"aria-disabled":l,onKeyDown:e=>{b(e),o?.(e)},onFocus:e=>{y(c),i?.(e)},ref:p}));return(0,sn.jsx)(t.Fragment,{children:C})})),gae=["render","className","onClick","onPointerUp"],bae=XZ((function(e,n){const{render:r,className:o,onClick:i,onPointerUp:a}=e,l=Bz(e,gae),u=M0(),c=RW(),d=RW(),h=d1(),p=m0(h,a1),f=p.open&&p.openedPanelValue===u1.filters,m=m0(h,L3).length,g={open:f,filterCount:m},b="function"==typeof o?o(g):o,{filterPanelTriggerRef:y}=p1(),w=uW(n,y),v=lae(u.slots.baseButton,r,s({},u.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":f?"true":void 0,"aria-controls":f?d:void 0,onClick:e=>{f?h.current.hidePreferences():h.current.showPreferences(u1.filters,d,c),i?.(e)},onPointerUp:e=>{f&&e.stopPropagation(),a?.(e)},className:b},l,{ref:w}),g);return(0,sn.jsx)(t.Fragment,{children:v})})),yae=["render","className","onClick","onPointerUp"],wae=XZ((function(e,n){const{render:r,className:o,onClick:i,onPointerUp:a}=e,l=Bz(e,yae),u=M0(),c=RW(),d=RW(),h=d1(),p=m0(h,a1),f=p.open&&p.openedPanelValue===u1.columns,m={open:f},g="function"==typeof o?o(m):o,{columnsPanelTriggerRef:b}=p1(),y=uW(n,b),w=lae(u.slots.baseButton,r,s({},u.slotProps?.baseButton,{id:c,"aria-haspopup":"true","aria-expanded":f?"true":void 0,"aria-controls":f?d:void 0,className:g},l,{onPointerUp:e=>{f&&e.stopPropagation(),a?.(e)},onClick:e=>{f?h.current.hidePreferences():h.current.showPreferences(u1.columns,d,c),i?.(e)},ref:y}),m);return(0,sn.jsx)(t.Fragment,{children:w})})),vae=["render","options","onClick"],Sae=XZ((function(e,n){const{render:r,options:o,onClick:i}=e,a=Bz(e,vae),l=M0(),u=d1(),c=lae(l.slots.baseButton,r,s({},l.slotProps?.baseButton,{onClick:e=>{u.current.exportDataAsPrint(o),i?.(e)}},a,{ref:n}));return(0,sn.jsx)(t.Fragment,{children:c})})),Cae=["render","options","onClick"],_ae=XZ((function(e,n){const{render:r,options:o,onClick:i}=e,a=Bz(e,Cae),l=M0(),u=d1(),c=lae(l.slots.baseButton,r,s({},l.slotProps?.baseButton,{onClick:e=>{u.current.exportDataAsCsv(o),i?.(e)}},a,{ref:n}));return(0,sn.jsx)(t.Fragment,{children:c})})),Mae=t.createContext(void 0);function xae(){const e=t.useContext(Mae);if(void 0===e)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const kae=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],Rae=e=>e.split(" ").filter((e=>""!==e)),Tae=e=>e.join(" ");function Eae(e){const n=M0(),{render:r,className:o,parser:i=Rae,formatter:a=Tae,debounceMs:l=n.filterDebounceMs,defaultExpanded:u,expanded:c,onExpandedChange:d}=e,h=Bz(e,kae),p=d1(),f=t.useRef(null),m=t.useRef(null),g=m0(p,w3),[b,y]=t.useState(a(g??[])),[w,v]=t.useState(u??b.length>0),S=c??w,C=t.useMemo((()=>({value:b,expanded:S})),[b,S]),_="function"==typeof o?o(C):o,M=t.useRef(null),x=RW(),k=t.useCallback((e=>{d&&d(e),void 0===c&&v(e)}),[d,c]),R=t.useRef(g);t.useEffect((()=>{C6(R.current,g)||(R.current=g,y((e=>C6(i(e),g)?e:a(g??[]))))}),[g,a,i]);const T=t.useRef(!0),E=t.useRef(S);t.useEffect((()=>{T.current?T.current=!1:E.current!==S&&(S?requestAnimationFrame((()=>{f.current?.focus({preventScroll:!0})})):m.current?.focus({preventScroll:!0}),E.current=S)}),[S]);const L=t.useMemo((()=>nK((e=>{const t=i(e);R.current=t,p.current.setQuickFilterValues(t)}),l)),[p,l,i]);t.useEffect((()=>L.clear),[L]);const I=t.useCallback((e=>{const t=e.target.value;y(t),L(t)}),[L]),P=t.useCallback((()=>{y(""),p.current.setQuickFilterValues([]),f.current?.focus()}),[p,f]),D=t.useMemo((()=>({controlRef:f,triggerRef:m,state:C,controlId:x,clearValue:P,onValueChange:I,onExpandedChange:k})),[x,C,I,P,k]);IW((()=>{M.current&&m.current&&M.current.style.setProperty("--trigger-width",`${m.current?.offsetWidth}px`)}),[]);const H=lae("div",r,s({className:_},h,{ref:M}),C);return(0,sn.jsx)(Mae.Provider,{value:D,children:H})}const Lae=["render","className","onClick"],Iae=XZ((function(e,n){const{render:r,className:o,onClick:i}=e,a=Bz(e,Lae),l=M0(),{state:u,controlId:c,onExpandedChange:d,triggerRef:h}=xae(),p="function"==typeof o?o(u):o,f=uW(h,n),m=lae(l.slots.baseButton,r,s({},l.slotProps?.baseButton,{className:p,"aria-controls":c,"aria-expanded":u.expanded},a,{onClick:e=>{d(!u.expanded),i?.(e)},ref:f}),u);return(0,sn.jsx)(t.Fragment,{children:m})})),Pae=["render","className","slotProps","onKeyDown","onChange"],Dae=XZ((function(e,n){const{render:r,className:o,slotProps:i,onKeyDown:a,onChange:l}=e,u=Bz(e,Pae),c=M0(),{state:d,controlId:h,controlRef:p,onValueChange:f,onExpandedChange:m,clearValue:g}=xae(),b="function"==typeof o?o(d):o,y=uW(p,n),w=lae(c.slots.baseTextField,r,s({},c.slotProps?.baseTextField,{slotProps:s({htmlInput:s({role:"searchbox",id:h,tabIndex:d.expanded?void 0:-1},i?.htmlInput,{onBlur:e=>{""===d.value&&m(!1),i?.htmlInput?.onBlur?.(e)}})},i),value:d.value,className:b},u,{onChange:e=>{d.expanded||m(!0),f(e),l?.(e)},onKeyDown:e=>{"Escape"===e.key&&(""===d.value?m(!1):g()),a?.(e)},ref:y}),d);return(0,sn.jsx)(t.Fragment,{children:w})})),Hae=["render","className","onClick"],Oae=XZ((function(e,n){const{render:r,className:o,onClick:i}=e,a=Bz(e,Hae),l=M0(),{state:u,clearValue:c}=xae(),d="function"==typeof o?o(u):o,h=lae(l.slots.baseIconButton,r,s({},l.slotProps?.baseIconButton,{className:d,tabIndex:-1},a,{onClick:e=>{c(),i?.(e)},ref:n}),u);return(0,sn.jsx)(t.Fragment,{children:h})})),Aae=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],Nae=["ref","slotProps"],jae=xG("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),Yae=xG(mae,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})((({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:i0.transition(["opacity"])}))),Fae=xG((e=>{throw new Error("Failed assertion: should not be rendered")}),{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})((({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:i0.transition(["width","opacity"])})));function zae(e){const t=d1(),n=M0(),r={classes:n.classes,expanded:!1},o=(e=>{const{classes:t}=e;return $z({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},e0,t)})(r),{quickFilterParser:a,quickFilterFormatter:l,debounceMs:u,className:c,slotProps:d}=e,h=Bz(e,Aae);return(0,sn.jsx)(Eae,{parser:a,formatter:l,debounceMs:u,render:(e,a)=>{const l=s({},r,{expanded:a.expanded});return(0,sn.jsxs)(jae,s({},e,{className:i(o.root,c),children:[(0,sn.jsx)(Iae,{render:e=>(0,sn.jsx)(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:(0,sn.jsx)(Yae,s({className:o.trigger},e,{ownerState:l,color:"default","aria-disabled":a.expanded,children:(0,sn.jsx)(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),(0,sn.jsx)(Dae,{render:e=>{let{ref:r,slotProps:i}=e,a=Bz(e,Nae);return(0,sn.jsx)(Fae,s({as:n.slots.baseTextField,className:o.control,ownerState:l,inputRef:r,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:s({input:s({startAdornment:(0,sn.jsx)(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:a.value?(0,sn.jsx)(Oae,{render:(0,sn.jsx)(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:(0,sn.jsx)(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},i?.input)},i)},n.slotProps?.baseTextField,a,d?.root,h))}})]}))}})}const Wae=["className"],Vae=["className"],Bae=e=>{const{classes:t}=e;return $z({divider:["toolbarDivider"],label:["toolbarLabel"]},e0,t)},$ae=xG(N1,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:i0.spacing(0,.5)}),Uae=xG("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:i0.typography.font.large,fontWeight:i0.typography.fontWeight.medium,margin:i0.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function Gae(e){const t=Bz(e,Wae),n=M0(),r=Bae(n);return(0,sn.jsx)($ae,s({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function Kae(e){const t=Bz(e,Vae),n=M0(),r=Bae(n);return(0,sn.jsx)(Uae,s({className:r.label},t))}const qae=s({},sae,{cell:$ee,skeletonCell:a8,columnHeaderFilterIconButton:function(e){return e.counter?(0,sn.jsx)(d8,s({},e)):null},columnHeaderSortIcon:y8,columnMenu:_te,columnHeaders:hte,detailPanels:function(e){return null},bottomContainer:function(e){const t=$z({root:["bottomContainer"]},e0,{});return(0,sn.jsx)(aae,s({},e,{className:i(t.root,t0["container--bottom"]),role:"presentation"}))},footer:x8,footerRowCount:T8,toolbar:function(e){const{showQuickFilter:n=!0,quickFilterProps:r,csvOptions:o,printOptions:i,additionalItems:a,additionalExportMenuItems:l}=e,u=d1(),c=M0(),[d,h]=t.useState(!1),p=t.useRef(null),f=RW(),m=RW(),g=!o?.disableToolbarButton||!i?.disableToolbarButton||l,b=()=>h(!1);return(0,sn.jsxs)(pae,{children:[c.label&&(0,sn.jsx)(Kae,{children:c.label}),!c.disableColumnSelector&&(0,sn.jsx)(c.slots.baseTooltip,{title:u.current.getLocaleText("toolbarColumns"),children:(0,sn.jsx)(wae,{render:(0,sn.jsx)(mae,{}),children:(0,sn.jsx)(c.slots.columnSelectorIcon,{fontSize:"small"})})}),!c.disableColumnFilter&&(0,sn.jsx)(c.slots.baseTooltip,{title:u.current.getLocaleText("toolbarFilters"),children:(0,sn.jsx)(bae,{render:(e,t)=>(0,sn.jsx)(mae,s({},e,{color:t.filterCount>0?"primary":"default",children:(0,sn.jsx)(c.slots.baseBadge,{badgeContent:t.filterCount,color:"primary",variant:"dot",children:(0,sn.jsx)(c.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),a,g&&(!c.disableColumnFilter||!c.disableColumnSelector)&&(0,sn.jsx)(Gae,{}),g&&(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(c.slots.baseTooltip,{title:u.current.getLocaleText("toolbarExport"),children:(0,sn.jsx)(mae,{ref:p,id:m,"aria-controls":f,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:()=>h(!d),children:(0,sn.jsx)(c.slots.exportIcon,{fontSize:"small"})})}),(0,sn.jsx)(F5,{target:p.current,open:d,onClose:b,position:"bottom-end",children:(0,sn.jsxs)(c.slots.baseMenuList,s({id:f,"aria-labelledby":m,autoFocusItem:!0},c.slotProps?.baseMenuList,{children:[!i?.disableToolbarButton&&(0,sn.jsx)(Sae,{render:(0,sn.jsx)(c.slots.baseMenuItem,s({},c.slotProps?.baseMenuItem)),options:i,onClick:b,children:u.current.getLocaleText("toolbarExportPrint")}),!o?.disableToolbarButton&&(0,sn.jsx)(_ae,{render:(0,sn.jsx)(c.slots.baseMenuItem,s({},c.slotProps?.baseMenuItem)),options:o,onClick:b,children:u.current.getLocaleText("toolbarExportCSV")}),l?.(b)]}))})]}),n&&(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(Gae,{}),(0,sn.jsx)(zae,s({},r))]})]})},pinnedRows:function(e){return null},loadingOverlay:U8,noResultsOverlay:Mte,noRowsOverlay:G8,noColumnsOverlay:K8,pagination:function(){const e=d1(),n=M0(),r=m0(e,j3),o=m0(e,Y3),i=m0(e,V3),{paginationMode:s,loading:a}=n,l=-1===o&&"server"===s&&a,u=t.useMemo((()=>Math.max(0,i-1)),[i]),c=t.useMemo((()=>-1===o||r.page<=u?r.page:u),[u,r.page,o]),d=t.useCallback((t=>{e.current.setPageSize(t)}),[e]),h=t.useCallback(((t,n)=>{e.current.setPage(n)}),[e]),p=(e=>{for(let t=0;t<n.pageSizeOptions.length;t+=1){const r=n.pageSizeOptions[t];if("number"==typeof r){if(r===e)return!0}else if(r.value===e)return!0}return!1})(r.pageSize)?n.pageSizeOptions:[];return(0,sn.jsx)(q8,{as:n.slots.basePagination,count:o,page:c,rowsPerPageOptions:p,rowsPerPage:r.pageSize,onPageChange:h,onRowsPerPageChange:d,disabled:l})},filterPanel:yee,columnsPanel:function(e){const t=M0();return(0,sn.jsx)(oee,s({},e,{children:(0,sn.jsx)(t.slots.columnsManagement,s({},t.slotProps?.columnsManagement))}))},columnsManagement:function(e){const n=d1(),r=t.useRef(null),o=m0(n,J0),i=m0(n,X0),a=M0(),[l,u]=t.useState(""),c=(e=>{const{classes:t}=e;return $z({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},e0,t)})(a),d=m0(n,q0),h=m0(n,G4),p=m0(n,q4),f=t.useMemo((()=>h?Array.from(p.values()):d),[h,p,d]),{sort:m,searchPredicate:g=wee,autoFocusSearchField:b=!0,disableShowHideToggle:y=!1,disableResetButton:w=!1,toggleAllMode:v="all",getTogglableColumns:S,searchInputProps:C}=e,_=t.useMemo((()=>((e,t)=>{const n=new Set(Object.keys(e).filter((t=>!1===e[t]))),r=new Set(Object.keys(t).filter((e=>!1===t[e])));if(n.size!==r.size)return!1;let o=!0;return n.forEach((e=>{r.has(e)||(o=!1)})),o})(i,o)),[i,o]),M=t.useMemo((()=>{switch(m){case"asc":return[...f].sort(((e,t)=>xee.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...f].sort(((e,t)=>-xee.compare(e.headerName||e.field,t.headerName||t.field)));default:return f}}),[f,m]),x=e=>{const{name:t}=e.target;n.current.setColumnVisibility(t,!1===i[t])},k=t.useMemo((()=>{const e=S?S(M):null,t=e?M.filter((({field:t})=>e.includes(t))):M;return l?t.filter((e=>g(e,l.toLowerCase()))):t}),[M,l,g,S]),R=t.useCallback((e=>{const t=s({},X0(n)),r=S?S(f):null;return("filteredOnly"===v?k:f).forEach((n=>{n.hideable&&(null==r||r.includes(n.field))&&(e?delete t[n.field]:t[n.field]=!1)})),n.current.setColumnVisibilityModel(t)}),[n,f,S,v,k]),T=t.useCallback((e=>{u(e.target.value)}),[]),E=t.useMemo((()=>k.filter((e=>e.hideable))),[k]),L=t.useMemo((()=>E.every((e=>null==i[e.field]||!1!==i[e.field]))),[i,E]),I=t.useMemo((()=>E.every((e=>!1===i[e.field]))),[i,E]),P=t.useRef(null);t.useEffect((()=>{b?r.current?.focus():P.current&&"function"==typeof P.current.focus&&P.current.focus()}),[b]);let D=!1;const H=e=>!1===D&&!1!==e.hideable&&(D=!0,!0),O=t.useCallback((()=>{u(""),r.current?.focus()}),[]);return(0,sn.jsxs)(t.Fragment,{children:[(0,sn.jsx)(Tee,{className:c.header,ownerState:a,children:(0,sn.jsx)(Eee,s({as:a.slots.baseTextField,ownerState:a,placeholder:n.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,className:c.searchInput,value:l,onChange:T,size:"small",type:"search",slotProps:{input:{startAdornment:(0,sn.jsx)(a.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:(0,sn.jsx)(a.slots.baseIconButton,s({size:"small","aria-label":n.current.getLocaleText("columnsManagementDeleteIconLabel"),style:l?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:O,edge:"end"},a.slotProps?.baseIconButton,{children:(0,sn.jsx)(a.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":n.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},a.slotProps?.baseTextField,C))}),(0,sn.jsx)(Ree,{ownerState:a,children:(0,sn.jsxs)(kee,{className:c.root,ownerState:a,children:[k.map((e=>(0,sn.jsx)(a.slots.baseCheckbox,s({className:c.row,disabled:!1===e.hideable||h,checked:!1!==i[e.field],onChange:x,name:e.field,inputRef:H(e)?P:void 0,label:e.headerName||e.field,density:"compact",fullWidth:!0},a.slotProps?.baseCheckbox),e.field))),0===k.length&&(0,sn.jsx)(Iee,{ownerState:a,children:n.current.getLocaleText("columnsManagementNoColumns")})]})}),y&&w?null:(0,sn.jsxs)(Lee,{ownerState:a,className:c.footer,children:[y?(0,sn.jsx)("span",{}):(0,sn.jsx)(a.slots.baseCheckbox,s({disabled:0===E.length||h,checked:L,indeterminate:!L&&!I,onChange:()=>R(!L),name:n.current.getLocaleText("columnsManagementShowHideAllText"),label:n.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},a.slotProps?.baseCheckbox)),w?null:(0,sn.jsx)(a.slots.baseButton,s({onClick:()=>n.current.setColumnVisibilityModel(o),disabled:_||h},a.slotProps?.baseButton,{children:n.current.getLocaleText("columnsManagementReset")}))]})]})},panel:Aee,row:Fee}),Xae={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},Jae=qae,Qae=new TextEncoder;let Zae=2048,ele=new ArrayBuffer(Zae),tle=new Uint8Array(ele),nle=new Int32Array(ele);function rle(e,t){return e<<t|e>>>32-t}function ole(e){return function(e){return`rgba(from ${e} r g b / 1)`}(e)}function ile(e){if(e)return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}class sle{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,(function r(...o){n.removeListener(e,r),t.apply(n,o)}))}}class ale{static create(e){return new ale(e)}constructor(e){this.value=void 0,this.listeners=void 0,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.getSnapshot=()=>this.value,this.update=e=>{this.value=e,this.listeners.forEach((t=>t(e)))},this.value=e,this.listeners=new Set}}const lle=Symbol("mui.api_private");let ule=0;const cle={hooks:{useCSSVariables:function(){const e=yW();return t.useMemo((()=>{const t=function(e){const t=2*e.length;t>Zae&&(Zae=t+(4-t%4),ele=new ArrayBuffer(Zae),tle=new Uint8Array(ele),nle=new Int32Array(ele));const n=0|Qae.encodeInto(e,tle).written;let r=0,o=374761393+(0+n|0)|0;if(n<16)for(;(r+3|0)<n;r=r+4|0)o=Math.imul(0|rle(o+Math.imul(0|nle[r],3266489917)|0,17),668265263);else{let e=606290984,t=-2048144777,i=0,s=1640531535;for(;(r+15|0)<n;r=r+16|0)e=Math.imul(0|rle(e+Math.imul(0|nle[r+0|0],2246822519)|0,13),2654435761),t=Math.imul(0|rle(t+Math.imul(0|nle[r+4|0],2246822519)|0,13),2654435761),i=Math.imul(0|rle(i+Math.imul(0|nle[r+8|0],2246822519)|0,13),2654435761),s=Math.imul(0|rle(s+Math.imul(0|nle[r+12|0],2246822519)|0,13),2654435761);for(o=(((rle(e,1)|0+rle(t,7)|0)+rle(i,12)|0)+rle(s,18)|0)+n|0;(r+3|0)<n;r=r+4|0)o=Math.imul(0|rle(o+Math.imul(0|nle[r],3266489917)|0,17),668265263)}for(;r<n;r=r+1|0)o=Math.imul(0|rle(o+Math.imul(0|tle[r],374761393)|0,11),2654435761);return o=Math.imul(o^o>>>15,2246822519),o=Math.imul(o^o>>>13,3266489917),((o^o>>>16)>>>0).toString()}(function(e){const t=new WeakSet;return JSON.stringify(e,((e,n)=>{if(null!==n&&"object"==typeof n){if(t.has(n))return null;t.add(n)}return n}))}(e)),n=function(e){const t=function(e){return e.vars?e.vars.palette.TableCell.border:"light"===e.palette.mode?wn(mn(e.palette.divider,1),.88):bn(mn(e.palette.divider,1),.68)}(e),n=e.palette.DataGrid,r=n?.bg??(e.vars||e).palette.background.default,o=n?.headerBg??r,i=n?.pinnedBg??r,s=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:mn(e.palette.background.default,e.palette.action.disabledOpacity),a="dark"===e.palette.mode?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,l=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,u=function(e){return e.vars?e.vars.shape.borderRadius:"number"==typeof e.shape.borderRadius?`${e.shape.borderRadius}px`:e.shape.borderRadius}(e),c=e.vars?.font?.body2??ile(e.typography.body2),d=e.vars?.font?.caption??ile(e.typography.caption),h=e.vars?.font?.body1??ile(e.typography.body1),p=i0.keys;return{[p.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[p.colors.border.base]:t,[p.colors.background.base]:r,[p.colors.background.overlay]:a,[p.colors.background.backdrop]:s,[p.colors.foreground.base]:(e.vars||e).palette.text.primary,[p.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[p.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[p.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[p.colors.foreground.error]:(e.vars||e).palette.error.dark,[p.colors.interactive.hover]:(e.vars||e).palette.action.hover,[p.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[p.colors.interactive.focus]:ole((e.vars||e).palette.primary.main),[p.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[p.colors.interactive.disabled]:ole((e.vars||e).palette.action.disabled),[p.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[p.colors.interactive.selected]:l,[p.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[p.header.background.base]:o,[p.cell.background.pinned]:i,[p.radius.base]:u,[p.typography.fontFamily.base]:e.typography.fontFamily,[p.typography.fontWeight.light]:e.typography.fontWeightLight,[p.typography.fontWeight.regular]:e.typography.fontWeightRegular,[p.typography.fontWeight.medium]:e.typography.fontWeightMedium,[p.typography.fontWeight.bold]:e.typography.fontWeightBold,[p.typography.font.body]:c,[p.typography.font.small]:d,[p.typography.font.large]:h,[p.transitions.easing.easeIn]:e.transitions.easing.easeIn,[p.transitions.easing.easeOut]:e.transitions.easing.easeOut,[p.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[p.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[p.transitions.duration.base]:`${e.transitions.duration.short}ms`,[p.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[p.shadows.base]:(e.vars||e).shadows[2],[p.shadows.overlay]:(e.vars||e).shadows[8],[p.zIndex.panel]:(e.vars||e).zIndex.modal,[p.zIndex.menu]:(e.vars||e).zIndex.modal}}(e);return{id:t,variables:n}}),[e])},useGridAriaAttributes:()=>{const e=b0(),t=M0(),n=m0(e,Q0),r=m0(e,R3),o=m0(e,Z5),i=m0(e,t2),s=t["aria-label"],a=t["aria-labelledby"];return{role:"grid","aria-label":s||a||!t.label?s:t.label,"aria-labelledby":a,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":R9(t)}},useGridRowAriaAttributes:()=>{const e=b0(),n=m0(e,Z5);return t.useCallback(((t,r)=>{const o={},i=r+n+2;return o["aria-rowindex"]=i,e.current.isRowSelectable(t.id)&&(o["aria-selected"]=e.current.isRowSelected(t.id)),o}),[e,n])},useCellAggregationResult:()=>null}},dle=function(e,n){const r=(e=>{const n=yW(),r=t.useMemo((()=>lB({props:e,theme:n,name:"MuiDataGrid"})),[n,e]),o=t.useMemo((()=>s({},t8,r.localeText)),[r.localeText]),i=t.useMemo((()=>function({defaultSlots:e,slots:t}){const n=t;if(!n||0===Object.keys(n).length)return e;const r=s({},e);return Object.keys(n).forEach((e=>{const t=e;void 0!==n[t]&&(r[t]=n[t])})),r}({defaultSlots:Jae,slots:r.slots})),[r.slots]),a=t.useMemo((()=>Object.keys(l7).reduce(((e,t)=>(e[t]=r[t]??l7[t],e)),{})),[r]);return t.useMemo((()=>s({},r,a,{localeText:o,slots:i},(e=>s({},Xae,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}))(r))),[r,o,i,a])})(e),o=function(e,n){const r=t.useRef(null),o=t.useRef(null);o.current||(o.current=function(e){const t=e.current?.[lle];if(t)return t;const n={},r={state:n,store:ale.create(n),instanceId:{id:ule}};return ule+=1,r.getPublicApi=()=>e.current,r.register=(t,n)=>{Object.keys(n).forEach((o=>{const i=n[o],s=r[o];if(!0===s?.spying?s.target=i:r[o]=i,"public"===t){const t=e.current,n=t[o];!0===n?.spying?n.target=i:t[o]=i}}))},r.register("private",{caches:{},eventManager:new sle}),r}(r)),r.current||(r.current=function(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[lle]:e.current}}(o));const i=t.useCallback(((...e)=>{const[t,r,i={}]=e;if(i.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(i)&&i.isPropagationStopped())return;const s=n.signature===P3.DataGridPro||n.signature===P3.DataGridPremium?{api:o.current.getPublicApi()}:{};o.current.eventManager.emit(t,r,i,s)}),[o,n.signature]),s=t.useCallback(((e,t,n)=>{o.current.eventManager.on(e,t,n);const r=o.current;return()=>{r.eventManager.removeListener(e,t)}}),[o]);return r4(o,{subscribeEvent:s,publishEvent:i},"public"),e&&!e.current?.state&&(e.current=r.current),t.useImperativeHandle(e,(()=>r.current),[r]),t.useEffect((()=>{const e=o.current;return()=>{e.publishEvent("unmount")}}),[o]),o}(r.apiRef,r);return e8(o,r),(0,sn.jsx)(L9,{privateApiRef:o,configuration:cle,props:r,children:(0,sn.jsx)(M9,s({className:r.className,style:r.style,sx:r.sx},r.slotProps?.root,{ref:n}))})},hle=t.memo(XZ(dle));function ple(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fle(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fle(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fle(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}dle.propTypes={apiRef:KZ.shape({current:KZ.object}),"aria-label":KZ.string,"aria-labelledby":KZ.string,autoHeight:KZ.bool,autoPageSize:KZ.bool,autosizeOnMount:KZ.bool,autosizeOptions:KZ.shape({columns:KZ.arrayOf(KZ.string),disableColumnVirtualization:KZ.bool,expand:KZ.bool,includeHeaders:KZ.bool,includeOutliers:KZ.bool,outliersFactor:KZ.number}),cellModesModel:KZ.object,checkboxSelection:KZ.bool,classes:KZ.object,className:KZ.string,clipboardCopyCellDelimiter:KZ.string,columnBufferPx:KZ.number,columnGroupHeaderHeight:KZ.number,columnGroupingModel:KZ.arrayOf(KZ.object),columnHeaderHeight:KZ.number,columns:KZ.arrayOf(KZ.object).isRequired,columnVisibilityModel:KZ.object,dataSource:KZ.shape({getRows:KZ.func.isRequired,updateRow:KZ.func}),dataSourceCache:KZ.shape({clear:KZ.func.isRequired,get:KZ.func.isRequired,set:KZ.func.isRequired}),density:KZ.oneOf(["comfortable","compact","standard"]),disableAutosize:KZ.bool,disableColumnFilter:KZ.bool,disableColumnMenu:KZ.bool,disableColumnResize:KZ.bool,disableColumnSelector:KZ.bool,disableColumnSorting:KZ.bool,disableDensitySelector:KZ.bool,disableEval:KZ.bool,disableMultipleRowSelection:KZ.bool,disableRowSelectionOnClick:KZ.bool,disableVirtualization:KZ.bool,editMode:KZ.oneOf(["cell","row"]),estimatedRowCount:KZ.number,experimentalFeatures:KZ.shape({warnIfFocusStateIsNotSynced:KZ.bool}),filterDebounceMs:KZ.number,filterMode:KZ.oneOf(["client","server"]),filterModel:KZ.shape({items:KZ.arrayOf(KZ.shape({field:KZ.string.isRequired,id:KZ.oneOfType([KZ.number,KZ.string]),operator:KZ.string.isRequired,value:KZ.any})).isRequired,logicOperator:KZ.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:KZ.bool,quickFilterLogicOperator:KZ.oneOf(["and","or"]),quickFilterValues:KZ.array}),getCellClassName:KZ.func,getDetailPanelContent:KZ.func,getEstimatedRowHeight:KZ.func,getRowClassName:KZ.func,getRowHeight:KZ.func,getRowId:KZ.func,getRowSpacing:KZ.func,hideFooter:KZ.bool,hideFooterPagination:KZ.bool,hideFooterSelectedRowCount:KZ.bool,ignoreDiacritics:KZ.bool,ignoreValueFormatterDuringExport:KZ.oneOfType([KZ.shape({clipboardExport:KZ.bool,csvExport:KZ.bool}),KZ.bool]),initialState:KZ.object,isCellEditable:KZ.func,isRowSelectable:KZ.func,keepNonExistentRowsSelected:KZ.bool,label:KZ.string,loading:KZ.bool,localeText:KZ.object,logger:KZ.shape({debug:KZ.func.isRequired,error:KZ.func.isRequired,info:KZ.func.isRequired,warn:KZ.func.isRequired}),logLevel:KZ.oneOf(["debug","error","info","warn",!1]),nonce:KZ.string,onCellClick:KZ.func,onCellDoubleClick:KZ.func,onCellEditStart:KZ.func,onCellEditStop:KZ.func,onCellKeyDown:KZ.func,onCellModesModelChange:KZ.func,onClipboardCopy:KZ.func,onColumnHeaderClick:KZ.func,onColumnHeaderContextMenu:KZ.func,onColumnHeaderDoubleClick:KZ.func,onColumnHeaderEnter:KZ.func,onColumnHeaderLeave:KZ.func,onColumnHeaderOut:KZ.func,onColumnHeaderOver:KZ.func,onColumnOrderChange:KZ.func,onColumnResize:KZ.func,onColumnVisibilityModelChange:KZ.func,onColumnWidthChange:KZ.func,onDataSourceError:KZ.func,onDensityChange:KZ.func,onFilterModelChange:KZ.func,onMenuClose:KZ.func,onMenuOpen:KZ.func,onPaginationMetaChange:KZ.func,onPaginationModelChange:KZ.func,onPreferencePanelClose:KZ.func,onPreferencePanelOpen:KZ.func,onProcessRowUpdateError:KZ.func,onResize:KZ.func,onRowClick:KZ.func,onRowCountChange:KZ.func,onRowDoubleClick:KZ.func,onRowEditStart:KZ.func,onRowEditStop:KZ.func,onRowModesModelChange:KZ.func,onRowSelectionModelChange:KZ.func,onSortModelChange:KZ.func,onStateChange:KZ.func,pageSizeOptions:KZ.arrayOf(KZ.oneOfType([KZ.number,KZ.shape({label:KZ.string.isRequired,value:KZ.number.isRequired})]).isRequired),pagination:KZ.oneOf([!0]),paginationMeta:KZ.shape({hasNextPage:KZ.bool}),paginationMode:KZ.oneOf(["client","server"]),paginationModel:KZ.shape({page:KZ.number.isRequired,pageSize:KZ.number.isRequired}),processRowUpdate:KZ.func,resizeThrottleMs:KZ.number,rowBufferPx:KZ.number,rowCount:KZ.number,rowHeight:KZ.number,rowModesModel:KZ.object,rows:KZ.arrayOf(KZ.object),rowSelection:KZ.bool,rowSelectionModel:KZ.shape({ids:KZ.instanceOf(Set).isRequired,type:KZ.oneOf(["exclude","include"]).isRequired}),rowSpacingType:KZ.oneOf(["border","margin"]),rowSpanning:KZ.bool,scrollbarSize:KZ.number,showCellVerticalBorder:KZ.bool,showColumnVerticalBorder:KZ.bool,showToolbar:KZ.bool,slotProps:KZ.object,slots:KZ.object,sortingMode:KZ.oneOf(["client","server"]),sortingOrder:KZ.arrayOf(KZ.oneOf(["asc","desc"])),sortModel:KZ.arrayOf(KZ.shape({field:KZ.string.isRequired,sort:KZ.oneOf(["asc","desc"])})),style:KZ.object,sx:KZ.oneOfType([KZ.arrayOf(KZ.oneOfType([KZ.func,KZ.object,KZ.bool])),KZ.func,KZ.object]),virtualizeColumnsWithAutoRowHeight:KZ.bool},Vz();var mle=[["","Tesla","Volvo","Toyota","Ford"],["2019",10,11,12,13],["2020",20,11,14,13],["2021",30,15,12,13]];function gle(){var e=ple(t.useState([]),2),n=e[0],r=e[1],o=ple(t.useState([]),2),i=o[0],s=o[1],a=ple(t.useState([]),2),l=a[0],u=a[1],c=ple(t.useState([]),2),d=c[0],h=c[1],p=ple(t.useState(mle),2),f=p[0],m=p[1],g=ple(t.useState([]),2),b=g[0],y=g[1],w=ple(t.useState([]),2),v=w[0],S=w[1],C=ple(t.useState(mle),2),_=C[0],M=C[1],x=ple(t.useState(!1),2),k=x[0],R=x[1],T=ple(t.useState(!1),2),E=T[0],L=T[1],I=ple(t.useState(!1),2),P=I[0],D=I[1],H=ple(t.useState([]),2),O=H[0],A=H[1],N=ple(t.useState(null),2),j=N[0],Y=N[1],F=ple(t.useState("1"),2),z=F[0],W=F[1],V=ple(t.useState(null),2),B=V[0],$=V[1],U=ple(t.useState(""),2),G=U[0],K=U[1],q=ple(t.useState(!0),2),X=q[0],J=q[1],Q=ple(t.useState(!1),2),Z=Q[0],ee=Q[1],te=ple(t.useState(!1),2),ne=te[0],re=te[1],oe=ple(t.useState(""),2),ie=oe[0],se=oe[1],ae=ple(t.useState(null),2),le=ae[0],ue=ae[1],ce=ple(t.useState([]),2),de=ce[0],he=ce[1],pe=ple(t.useState(null),2),fe=pe[0],me=pe[1],ge=ple(t.useState(null),2),be=ge[0],ye=ge[1],we=ple(t.useState(null),2),ve=we[0],Se=we[1],Ce=ple(t.useState(null),2),_e=Ce[0],Me=Ce[1],xe=t.useRef({}),ke=Uq(),Re=function(e){for(var t=0;t<e.length;t++){for(var n=e[t].id,r=e[t].children,o=0;o<r.length;o++){var i=r[o].id;xe.current[i]=n}Re(r)}},Te=function(e){u(e),xe.current={},Re(e)},Ee=function(e,t){W(t)},Le=function(e){for(var t=[];e;)t.push(e),e=xe.current[e];return t},Ie=function(e){J(!1),re(!0),"1"==ie?(K(10),XK.generateSingleDingeXilie(10,e).then((function(e){var t=JSON.parse(e),n=t.reverse;n&&"None"!=n?(me(t.rgde),Me(t.jxde),Se(t.clde),console.log(t.rgde),console.log(t.jxde),console.log(t.clde),ye(t.bz_selected),XK.generateDingeshu(10).then((function(e){Te(e),ue(n),he(Le(n)),XK.generateDingeXilie(10,n).then((function(e){for(var t=JSON.parse(e),n=[],r=Object.keys(t.DW),o=0;o<r.length;o++){var i=r[o],s={id:t.DEBH[i],定额编号:t.DEBH[i],名称:t.GCLMC[i],单位:t.DW[i],单价:t.GCLSJDJ[i]};n.push(s)}y(n)}))}))):(me(null),Me(null),Se(null),ye(t.bz_selected))}))):"2"==ie?(K(10),XK.generateDingeshu(10).then((function(e){Te(e)}))):"3"==ie?(K(30),XK.generateDingeshu(30).then((function(e){Te(e)}))):"4"==ie&&(K(20),XK.generateDingeshu(20).then((function(e){Te(e)})))},Pe=function(e){return function(t,n){"qingdan"==e?J(n):"peibi"==e?ee(n):re(n)}};return t.useEffect((function(){XK.generateOutline(ke.state.name).then((function(e){r(e)})),XK.generateDetail(ke.state.name).then((function(e){m(e)})),XK.generatePeibishu().then((function(e){s(e)}))}),[ke]),(0,sn.jsx)(Ur,{sx:{flexGrow:1},children:(0,sn.jsxs)($G,{container:!0,spacing:2,children:[(0,sn.jsxs)($G,{size:3,children:[(0,sn.jsxs)(AZ,{expanded:X,onChange:Pe("qingdan"),children:[(0,sn.jsx)(VZ,{expandIcon:(0,sn.jsx)(jX,{}),"aria-controls":"panel1-content",id:"panel1-header",children:(0,sn.jsx)(iB,{component:"span",children:"清单"})}),(0,sn.jsx)(GZ,{children:(0,sn.jsx)(_G,{sx:{overflow:"scroll",maxHeight:"98vh"},onItemSelectionToggle:function(e,t,n){if(n){var r=t.indexOf("Zylb"),o=t.substring(r+4,r+5);if(se(o),t.includes("bao jia hui zong")){var i=t.match(/[0-9]*/)[0];XK.generateBaojiahuizong(ke.state.name,i).then((function(e){M(e),R(!0),L(!1),D(!1),h(["序号","名称","金额","暂估价","类别"])}))}else if(t.includes("gui fei shui jin")){var s=t.match(/[0-9]*/)[0];XK.generateGuifeishuijin(ke.state.name,s).then((function(e){M(e),R(!0),L(!1),D(!1),h(["序号","名称","取费基数","计算基础","金额","类别"])}))}else if(t.includes("qing dan xiang mu")){var a=t.match(/[0-9]*/)[0];XK.generateQingdanxiangmu(ke.state.name,a).then((function(e){W("1"),R(!1),L(!0),D(!1),A(e),Y(a)}))}else if(t.includes("cuo shi xiang mu")){var l=t.match(/[0-9]*/)[0];W("1"),R(!1),L(!1),D(!0),$(l)}else if(t.includes("qi ta xiang mu")){var u=t.match(/[0-9]*/)[0];W("1"),XK.generateQitaxiangmu(ke.state.name,u).then((function(e){M(e),R(!0),L(!1),D(!1),h(["序号","名称","金额","项目类别","备注"])}))}else if(t.includes("zan lie jin e")){var c=t.match(/[0-9]*/)[0];W("1"),XK.generateZanliejine(ke.state.name,c).then((function(e){m(e),R(!1),L(!1),D(!1)}))}else if(t.includes("ji ri gong")){var d=t.match(/[0-9]*/)[0];W("1"),XK.generateJirigong(ke.state.name,d).then((function(e){m(e),R(!1),L(!1),D(!1)}))}else if(t.includes("zong cheng bao fu wu fei")){var p=t.match(/[0-9]*/)[0];W("1"),XK.generateZongchengbaofuwufei(ke.state.name,p).then((function(e){m(e),R(!1),L(!1),D(!1)}))}else if(t.includes("fa bao ren gong ying cai liao")){var f=t.match(/[0-9]*/)[0];W("1"),XK.generateFabaorengongyingcailiao(ke.state.name,f).then((function(e){m(e),R(!1),L(!1),D(!1)}))}else if(t.includes("ren cai ji hui zong")){var g=t.match(/[0-9]*/)[0];W("1"),XK.generateRencaijihuizong(ke.state.name,g).then((function(e){m(e),R(!1),L(!1),D(!1)}))}else t.includes("TouBiaoXx")&&XK.generateDetail(ke.state.name).then((function(e){L(!1),D(!1),m(e),R(!1)}))}},items:n})})]}),(0,sn.jsxs)(AZ,{expanded:ne,onChange:Pe("dinge"),children:[(0,sn.jsx)(VZ,{expandIcon:(0,sn.jsx)(jX,{}),"aria-controls":"panel1-content",id:"panel1-header",children:(0,sn.jsx)(iB,{component:"span",children:"定额"})}),(0,sn.jsxs)(GZ,{children:[(0,sn.jsxs)(fJ,{fullWidth:!0,children:[(0,sn.jsx)(qX,{id:"demo-multiple-name-label",children:"专业"}),(0,sn.jsxs)(EZ,{labelId:"demo-multiple-name-label",id:"demo-multiple-name",value:G,onChange:function(e){XK.generateDingeshu(e.target.value).then((function(e){Te(e)})),K(e.target.value)},label:"专业",children:[(0,sn.jsx)(aJ,{value:10,children:"土建"}),(0,sn.jsx)(aJ,{value:20,children:"市政"}),(0,sn.jsx)(aJ,{value:30,children:"安装"})]})]}),(0,sn.jsxs)(WK,{spacing:2,children:[(0,sn.jsx)(_G,{sx:{overflow:"scroll",maxHeight:"48vh"},onItemSelectionToggle:function(e,t,n){n&&(ue(t),he(Le(t)),XK.generateDingeXilie(G,t).then((function(e){for(var t=JSON.parse(e),n=[],r=Object.keys(t.DW),o=0;o<r.length;o++){var i=r[o],s={id:t.DEBH[i],定额编号:t.DEBH[i],名称:t.GCLMC[i],单位:t.DW[i],单价:t.GCLSJDJ[i]};n.push(s)}y(n)})))},selectedItems:le,expandedItems:de,items:l}),(0,sn.jsx)("div",{style:{height:350},children:(0,sn.jsx)(hle,{getRowHeight:function(){return"auto"},rows:b,columns:[{field:"定额编号",headerName:"定额编号"},{field:"名称",headerName:"名称"},{field:"单位",headerName:"单位"},{field:"单价",headerName:"单价"}],hideFooter:!0})})]})]})]}),(0,sn.jsxs)(AZ,{expanded:Z,onChange:Pe("peibi"),children:[(0,sn.jsx)(VZ,{expandIcon:(0,sn.jsx)(jX,{}),"aria-controls":"panel1-content",id:"panel1-header",children:(0,sn.jsx)(iB,{component:"span",children:"配合比"})}),(0,sn.jsx)(GZ,{children:(0,sn.jsxs)(WK,{spacing:2,children:[(0,sn.jsx)(_G,{sx:{overflow:"scroll",maxHeight:"38vh"},onItemSelectionToggle:function(e,t,n){n&&(console.log(t),["3","4","6","7","8","9","11","12","13","15","16","18","19","20","21"].includes(t)&&XK.generatePeibiXilie(t).then((function(e){var t=JSON.parse(e);console.log(t);for(var n=[],r=Object.keys(t.PBBH),o=0;o<r.length;o++){var i=r[o],s={id:t.id[i],编号:t.PBBH[i],名称:t.PBMC[i],单位:t.DW[i],单价:t.PBDJ[i]};n.push(s),S(n)}})))},items:i}),(0,sn.jsx)("div",{style:{height:350},children:(0,sn.jsx)(hle,{getRowHeight:function(){return"auto"},rows:v,columns:[{field:"编号",headerName:"定额编号"},{field:"名称",headerName:"名称"},{field:"单位",headerName:"单位"},{field:"单价",headerName:"单价"}],hideFooter:!0})})]})})]})]}),(0,sn.jsxs)($G,{size:9,children:[!k&&!E&&!P&&(0,sn.jsx)(Uw,{nestedRows:!1,data:f,rowHeaders:!0,colHeaders:!0,fixedRowsTop:1,height:"800",readOnly:!0,autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"}),k&&!E&&!P&&(0,sn.jsx)(Uw,{nestedRows:!0,data:_,readOnly:!0,fixedRowsTop:1,rowHeaders:!0,colHeaders:d,height:"auto",contextMenu:!0,bindRowsWithHeaders:!0,autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"}),!k&&E&&!P&&(0,sn.jsxs)(QG,{value:z,children:[(0,sn.jsx)(Ur,{sx:{borderBottom:1,borderColor:"divider"},children:(0,sn.jsx)(IK,{scrollButtons:"auto",variant:"scrollable",onChange:Ee,"aria-label":"lab API tabs example",children:O.map((function(e,t){return(0,sn.jsx)(XG,{label:e,value:(t+1).toString()})}))})}),O.map((function(e,t){return(0,sn.jsx)(OK,{value:(t+1).toString(),children:(0,sn.jsx)(ZK,{name:ke.state.name,bh:j,bt:e,rgde:fe,jxde:_e,clde:ve,beizhu:be,clickCallback:Ie})})}))]}),!k&&!E&&P&&(0,sn.jsxs)(QG,{value:z,children:[(0,sn.jsx)(Ur,{sx:{borderBottom:1,borderColor:"divider"},children:(0,sn.jsxs)(IK,{scrollButtons:"auto",variant:"scrollable",onChange:Ee,"aria-label":"lab API tabs example",children:[(0,sn.jsx)(XG,{label:"总价措施",value:"1"}),(0,sn.jsx)(XG,{label:"单价措施",value:"2"})]})}),(0,sn.jsx)(OK,{value:"1",children:(0,sn.jsx)(tq,{name:ke.state.name,bh:B})}),(0,sn.jsx)(OK,{value:"2",children:(0,sn.jsx)(oq,{name:ke.state.name,bh:B,rgde:fe,jxde:_e,clde:ve,beizhu:be,clickCallback:Ie})})]})]})]})})}function ble(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yle(){var e=t.useRef(null),n=qq(),r=(Uq(),function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ble(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ble(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.useState([["File Name"]]),2)),o=r[0],i=r[1];return t.useEffect((function(){XK.generateFiles().then((function(e){i(e)}))}),[]),(0,sn.jsx)(Uw,{nestedRows:!1,data:o,ref:e,afterSelection:function(t,r){var o;console.log(t);var i=null===(o=e.current)||void 0===o||null===(o=o.hotInstance)||void 0===o?void 0:o.getData()[t];console.log(i[0]),n("/qingdan",{state:{name:i[0]}})},rowHeaders:!0,colHeaders:!1,height:"800",readOnly:!0,autoWrapRow:!1,autoWrapCol:!1,licenseKey:"non-commercial-and-evaluation"})}Vz();var wle=o(5338),vle=document.getElementById("root");(0,wle.createRoot)(vle).render((0,sn.jsx)(LX,{children:(0,sn.jsxs)(lX,{children:[(0,sn.jsx)(sX,{path:"/qingdan",element:(0,sn.jsx)(gle,{})}),(0,sn.jsx)(sX,{path:"/index.html",element:(0,sn.jsx)(yle,{})})]})}))})()})();
|