eehitus-building-project-file-ui 0.15.39 → 0.15.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.cjs.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n,r,o={941(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return t?(o[n][2]?o[n][2]:o[n][1]).replace("%d",e):(r?o[n][0]:o[n][1]).replace("%d",e)}var o={name:"et",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:"%d päeva",M:r,MM:r,y:r,yy:r},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return n.default.locale(o,null,!0),o}(n(353))},557(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),o="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),i="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),a="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function l(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",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 c=function(e,t){return s.test(t)?r[e.month()]:o[e.month()]};c.s=o,c.f=r;var u=function(e,t){return s.test(t)?i[e.month()]:a[e.month()]};u.s=a,u.f=i;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:c,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:l,mm:l,h:"час",hh:l,d:"день",dd:l,M:"месяц",MM:l,y:"год",yy:l},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return n.default.locale(d,null,!0),d}(n(353))},206(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=p[c],d=u&&u[0],f=u&&u[1];i[l]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,g=o.week,h=new Date,m=s||(i||a?1:h.getDate()),v=i||h.getFullYear(),b=0;i&&!a||(b=a>0?a-1:h.getMonth());var y,x=l||0,w=c||0,S=u||0,_=d||0;return p?new Date(Date.UTC(v,b,m,x,w,S,_+60*p.offset*1e3)):n?new Date(Date.UTC(v,b,m,x,w,S,_)):(y=new Date(v,b,m,x,w,S,_),g&&(y=r(y).week(g).toDate()),y)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,g=1;g<=p;g+=1){i[1]=s[g-1];var h=n.apply(this,i);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},535(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},784(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},411(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},981(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return i.call(this,r)}}}()},512(e){e.exports=function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}return function(t,n,r){r.updateLocale=function(t,n){var o=r.Ls[t];if(o)return(n?Object.keys(n):[]).forEach(function(t){o[t]&&n[t]&&"object"==typeof o[t]&&"object"==typeof n[t]&&!Array.isArray(o[t])?o[t]=e({},o[t],n[t]):o[t]=n[t]}),o}}}()},526(e,t){"use strict";t.bg=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.iI=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(c(e,s,s+a>l?l:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(l(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},841(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,':export{colorGreyDark:#34304c;colorGrey:#5d6071;colorBlue:#0083ba}#doc2 .table-responsive.table-adaptive.table-collapsable .table-head .table-row>div,#doc2 .table-responsive.table-adaptive.table-collapsable .table-body .table-row>div{padding:.45rem;vertical-align:middle}#doc2 .table-responsive.table-adaptive.table-collapsable .custom-control.custom-checkbox{margin-bottom:0}@media screen and (max-width: 599px){#doc2 .table-responsive.table-adaptive.table-collapsable{background-attachment:scroll,scroll;background-color:#fff;background-image:linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)),linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));background-position:left center,right center;background-repeat:no-repeat;background-size:10px 100%,10px 100%;margin-left:0;margin-right:0;padding-left:0;border-radius:.25rem;display:block;overflow-x:auto;width:100%}#doc2 .table-responsive.table-adaptive.table-collapsable .table{background-attachment:local,local;background-image:linear-gradient(to right, #fff, #fff),linear-gradient(to right, #fff, #fff);background-position:left center,right center;background-repeat:no-repeat;background-size:20px 100%,20px 100%;border-collapse:separate;border-spacing:0;position:relative;display:table;margin-top:0;padding:0;width:100%;max-width:100%;margin-bottom:1rem;background-color:transparent}#doc2 .table-responsive.table-adaptive.table-collapsable .table-head{display:table-header-group}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row{display:table-row;padding-left:0;padding-right:0}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row::after{content:none}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row>div{border-top:1px dotted #9d9fb4;display:table-cell;padding:.75rem}#doc2 .table-responsive.table-adaptive.table-collapsable .table-body{display:table-row-group}}#doc2 .alert .lead:last-child{margin-bottom:0}#doc2 #doc2--sign-popup .nav-vertical{border:0}@media(max-width: 599px){#doc2 #doc2--sign-popup .nav-vertical{display:none}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical{display:block}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical-wrapper{display:flex}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical-wrapper .form-header{flex:0 1 auto;margin-bottom:0}}#doc2 #doc2--sign-popup .nav-vertical-wrapper .tab-content{background-color:#f2f3f3;border:2px solid #dbdfe2;border-radius:.25rem;flex:1 1 auto;padding:20px}#doc2 #doc2--sign-popup .nav-vertical .nav-item{display:block;text-align:right;white-space:normal;width:auto}#doc2 #doc2--sign-popup .nav-vertical .nav-link{border:0;color:#5d6071;padding-right:2rem}#doc2 #doc2--sign-popup .nav-vertical .nav-link:hover,#doc2 #doc2--sign-popup .nav-vertical .nav-link:focus,#doc2 #doc2--sign-popup .nav-vertical .nav-link:active{color:#0083ba}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active{background:transparent;color:#0083ba}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::before,#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::after{border-color:transparent;border-style:solid;content:"";position:absolute;right:-2px;top:50%}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active.nav-small::before,#doc2 #doc2--sign-popup .nav-vertical .nav-link.active.nav-small::after{right:-8px}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::before{border-right-color:#dbdfe2;border-width:13px;margin-top:-13px}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::after{border-right-color:#f2f3f3;border-width:10px;margin-top:-10px}#doc2 #doc2--sign-popup .nav-vertical .nav-divider{border-top:1px dashed #5d6071;margin:.5rem 2rem .5rem 0}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows{border-bottom:0;display:flex;flex-wrap:nowrap;justify-content:space-around;margin-bottom:0;padding-left:0}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-item{flex:0 0 33%;justify-content:flex-end;margin:0;white-space:normal;width:auto}@media(min-width: 900px){#doc2 #doc2--sign-popup body:not(.help-center-open):not(.temp) .nav-tabs.nav-arrows .nav-item{flex:0 0 33%}}@media(min-width: 1200px){#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-item{flex:0 0 33%}}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link{background-color:transparent;border:transparent;color:#5d6071;padding:.8rem 0;text-align:center}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link.active,#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link:hover,#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link:focus{color:#0083ba}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link.active::after{border:solid transparent;border-bottom-color:#fff;border-width:10px;bottom:0;content:"";height:0;left:50%;margin-left:-10px;pointer-events:none;position:absolute;width:0}.doc2--icon-button{align-items:center;background:transparent;border:none;display:flex;cursor:pointer;padding:2px}.doc2--icon-button-override{align-items:center !important;display:flex !important;padding:2px}.doc2--icon-button-override svg{height:19px;width:19px}#doc2 .doc2--icon-button-container{align-items:center;display:flex}#doc2 .doc2--icon-button-container-inline{align-items:center;display:inline-flex}.doc2--project-info-name-edit{width:380px}.doc2--project-info-name-edit .doc2--project-info-name-edit--footer{align-items:center;display:flex;justify-content:space-between}#doc2 .doc2--input-default-size{width:340px}#doc2 .doc2--table-flex-content{display:flex}#doc2 #doc2--table-footer{display:flex;align-items:center;flex-wrap:wrap;width:100%;border-top:solid 2px #5d6071;padding-top:4px}#doc2 #doc2--table-footer .push{margin-right:auto}@media screen and (max-width: 655px){#doc2 #doc2--table-footer{align-items:flex-end;flex-direction:column}#doc2 #doc2--table-footer .push{margin-right:0}}#doc2 .doc2--popup-modal{align-items:center;bottom:0;left:0;top:0;right:0;display:flex;justify-content:center;position:fixed;z-index:204}#doc2 .doc2--popup-modal .doc2--popup-modal--modal{background-color:#fff;border:solid 1px #9d9fb4;border-radius:3px;box-shadow:6px 6px 6px rgba(0,0,0,.25);display:block;max-height:90vh;width:70vw;min-height:320px;min-width:700px;overflow:auto;padding:11px;position:relative}#doc2 .doc2--popup-modal .doc2--popup-modal--modal.compound{min-width:440px}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .doc2--popup-modal--content{width:100%}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .popover-file-upload{margin-left:0;min-height:240px;width:calc(100% - 3px)}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .popover-file-upload form{margin-left:0;width:100%}@media screen and (max-width: 655px){#doc2 .doc2--popup-modal .doc2--popup-modal--modal{min-height:unset;min-width:unset;height:90%;width:90%}}#doc2 .doc2--popup-modal .doc2--popup-modal--footer{bottom:11px;box-sizing:border-box;display:flex;justify-content:space-between;padding-top:4px}#doc2 .doc2--popup-modal .doc2--popup-modal--footer .push-right{margin-left:auto}#doc2 .doc2--row-header{align-items:center;display:flex}#doc2 .doc2--row-header p{margin-bottom:0}#doc2 .doc2--row-header .doc2--row-header--arrows{margin-right:6px}#doc2 .doc2--paginated-table-item{margin-left:24px}#doc2 .doc2--paginated-table-item--limited-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:500px;max-width:max(25vw, 500px)}#doc2 #doc2--project-type-filter button{display:inline-block}#doc2 #doc2--project-creation-step-1{align-items:stretch;display:flex;justify-content:stretch}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-step-1-intro-text{text-align:left;margin-bottom:6px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-step-1-radio-spaceing{margin-top:6px;margin-bottom:6px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector{display:flex;flex-direction:column;text-align:center;width:100%}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-type-selector-reference-link{text-decoration:underline;cursor:pointer}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-type-selector-info-text{text-align:left;margin-top:12px;margin-bottom:12px;padding-left:35px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-form-footer{display:flex;flex-direction:row;justify-content:space-between}#doc2 .doc2--separator{background-color:#dbdfe2;margin:0 11px;width:1px}#doc2 .doc2--project-creation-step--footer{display:flex;justify-content:space-between}#doc2 #doc2--project-creation-step-3,#doc2 #doc2--project-creation-legacy{min-height:200px;position:relative}#doc2 #doc2--project-creation-step-3 .popover-file-upload,#doc2 #doc2--project-creation-legacy .popover-file-upload{margin-left:0;width:calc(100% - 3px)}#doc2 #doc2--project-creation-step-3 .popover-file-upload form,#doc2 #doc2--project-creation-legacy .popover-file-upload form{margin-left:0;width:100%}#doc2 #doc2--project-creation-step-3.doc2--project-creation--files-added button[type=submit],#doc2 #doc2--project-creation-legacy.doc2--project-creation--files-added button[type=submit]{margin-top:2rem}#doc2 #doc2--project-creation-step-3 .doc2--project-creation-step--footer.doc2--position-absolute,#doc2 #doc2--project-creation-legacy .doc2--project-creation-step--footer.doc2--position-absolute{bottom:3px;position:absolute}#doc2 #doc2--project-creation-legacy.doc2--project-creation--files-added button[type=submit]{margin-top:4rem}#doc2--filters{display:grid}.sign-popup--file-actions{align-items:center;display:flex;height:100%;justify-content:end}.doc2--simple-table .doc2--simple-table--header,div[id^=doc2--popup-modal-] .doc2--simple-table .doc2--simple-table--header{border-bottom:solid 1px #5d6071;display:grid;grid-template-columns:auto auto;padding:.75rem}.doc2--simple-table .doc2--simple-table--content .doc2--simple-table--row,div[id^=doc2--popup-modal-] .doc2--simple-table .doc2--simple-table--content .doc2--simple-table--row{align-items:center;border-bottom:dotted 1px #5d6071;display:grid;grid-template-columns:auto auto;padding:.75rem !important}.doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--header,div[id^=doc2--popup-modal-] .doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--header{grid-template-columns:50% 50%}.doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--content .doc2--simple-table--row,div[id^=doc2--popup-modal-] .doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--content .doc2--simple-table--row{grid-template-columns:50% 50%}.doc2--no-padding{padding:0}.link-gray.doc2--darker-color{color:#34304c}.doc2--paginated-table-more-popup{min-width:200px}#doc2 .doc2--edit-file-error{align-items:center;display:flex}#doc2 #doc2--sign-popup{padding:1.8rem;min-height:130px}#doc2 #doc2--sign-popup .doc2--signPopup--nav-button{background:#fff;cursor:pointer;padding-right:0;white-space:nowrap}#doc2 #doc2--sign-popup .doc2--sign-popup--challenge{font-size:1.8rem;text-align:center}#doc2 input.form-control.doc2--error-input,#doc2 .doc2--error-input>.bootstrap-select button.dropdown-toggle{border-color:#ff7373}#doc2 .doc2--loading-overlay{position:relative}#doc2 .doc2--loading-overlay .doc2--loading-overlay--indicator{pointer-events:none;opacity:0;transition:opacity .15s;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:transparent;background:rgba(255,255,255,.75)}#doc2 .doc2--loading-overlay .doc2--loading-overlay--indicator--visible{pointer-events:auto;opacity:1}.link-no-after.link-gray[target=_blank]::after{content:none !important}body{margin:0;font-family:"Roboto",sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#5d6071;text-align:left;background-color:#dbdfe2}',""]);const s=a},520(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,"",""]),a.locals={colorGreyDark:"#34304c",colorGrey:"#5d6071",colorBlue:"#0083ba"};const s=a},314(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 a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601(e){"use strict";e.exports=function(e){return e[1]}},353(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=m;var w="$isDayjsObject",S=function(e){return e instanceof C||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},j=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},E=b;E.l=_,E.i=S,E.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(g);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return j(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<j(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),f=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},g=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,m):f(0,m+1);case l:var y=this.$locale().weekStart||0,x=(h<y?h+7:h)-y;return f(r?v-x:v+(6-x),m);case s:case p:return g(b+"Hours",0);case a:return g(b+"Minutes",1);case i:return g(b+"Seconds",2);case o:return g(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],g=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var h=this.clone().set(p,1);h.$d[f](g),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,u){var p,f=this;r=Number(r);var g=E.p(u),h=function(e){var t=j(f);return E.w(t.date(t.date()+Math.round(e*r)),f)};if(g===c)return this.set(c,this.$M+r);if(g===d)return this.set(d,this.$y+r);if(g===s)return h(1);if(g===l)return h(7);var m=(p={},p[i]=t,p[a]=n,p[o]=e,p)[g]||1,v=this.$d.getTime()+r*m;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return E.s(i%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,a,!0);case"A":return g(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var g,h=this,m=E.p(p),v=j(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,x=function(){return E.m(h,v)};switch(m){case d:g=x()/12;break;case c:g=x();break;case u:g=x()/3;break;case l:g=(y-b)/6048e5;break;case s:g=(y-b)/864e5;break;case a:g=y/n;break;case i:g=y/t;break;case o:g=y/e;break;default:g=y}return f?g:E.a(g)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=C.prototype;return j.prototype=k,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,C,j),e.$i=!0),j},j.locale=_,j.isDayjs=S,j.unix=function(e){return j(1e3*e)},j.en=x[y],j.Ls=x,j.p={},j}()},543(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,f=1/0,g=9007199254740991,h=NaN,m=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",S="[object Error]",_="[object Function]",j="[object GeneratorFunction]",E="[object Map]",C="[object Number]",k="[object Object]",T="[object Promise]",P="[object RegExp]",R="[object Set]",O="[object String]",I="[object Symbol]",A="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",$="[object Int16Array]",V="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",G="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,J=RegExp(Y.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Ie="["+je+"]",Ae="["+Re+"]",Me="["+Ee+"]",De="\\d+",Fe="["+Ce+"]",Ne="["+ke+"]",Le="[^"+je+Re+De+Ce+ke+Te+"]",$e="\\ud83c[\\udffb-\\udfff]",Ve="[^"+je+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+Te+"]",Ue="\\u200d",He="(?:"+Ne+"|"+Le+")",We="(?:"+Ge+"|"+Le+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Me+"|"+$e+")"+"?",Je="["+Pe+"]?",Xe=Je+Ke+("(?:"+Ue+"(?:"+[Ve,Be,ze].join("|")+")"+Je+Ke+")*"),Ze="(?:"+[Fe,Be,ze].join("|")+")"+Xe,Qe="(?:"+[Ve+Me+"?",Me,Be,ze,Ie].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Me,"g"),nt=RegExp($e+"(?="+$e+")|"+Qe+Xe,"g"),rt=RegExp([Ge+"?"+Ne+"+"+qe+"(?="+[Ae,Ge,"$"].join("|")+")",We+"+"+Ye+"(?="+[Ae,Ge+He,"$"].join("|")+")",Ge+"?"+He+"+"+qe,Ge+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),ot=RegExp("["+Ue+je+Ee+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[F]=lt[N]=lt[L]=lt[$]=lt[V]=lt[B]=lt[z]=lt[G]=lt[U]=!0,lt[b]=lt[y]=lt[M]=lt[x]=lt[D]=lt[w]=lt[S]=lt[_]=lt[E]=lt[C]=lt[k]=lt[P]=lt[R]=lt[O]=lt[A]=!1;var ct={};ct[b]=ct[y]=ct[M]=ct[D]=ct[x]=ct[w]=ct[F]=ct[N]=ct[L]=ct[$]=ct[V]=ct[E]=ct[C]=ct[k]=ct[P]=ct[R]=ct[O]=ct[I]=ct[B]=ct[z]=ct[G]=ct[U]=!0,ct[S]=ct[_]=ct[A]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,gt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||gt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,bt=vt&&vt.exports===mt,yt=bt&&ft.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=xt&&xt.isArrayBuffer,St=xt&&xt.isDate,_t=xt&&xt.isMap,jt=xt&&xt.isRegExp,Et=xt&&xt.isSet,Ct=xt&&xt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function At(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Vt=qt("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Ht,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:h}function qt(e){return function(t){return null==t?o:t[e]}}function Yt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Jt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var on=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function gn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Vt(e)}function hn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Yt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?ht:bn.defaults(ht.Object(),t,bn.pick(ht,at))).Array,se=t.Date,je=t.Error,Ee=t.Function,Ce=t.Math,ke=t.Object,Te=t.RegExp,Pe=t.String,Re=t.TypeError,Oe=r.prototype,Ie=Ee.prototype,Ae=ke.prototype,Me=t["__core-js_shared__"],De=Ie.toString,Fe=Ae.hasOwnProperty,Ne=0,Le=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Ae.toString,Ve=De.call(ke),Be=ht._,ze=Te("^"+De.call(Fe).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=bt?t.Buffer:o,Ue=t.Symbol,He=t.Uint8Array,We=Ge?Ge.allocUnsafe:o,qe=un(ke.getPrototypeOf,ke),Ye=ke.create,Ke=Ae.propertyIsEnumerable,Je=Oe.splice,Xe=Ue?Ue.isConcatSpreadable:o,Ze=Ue?Ue.iterator:o,Qe=Ue?Ue.toStringTag:o,nt=function(){try{var e=fi(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=se&&se.now!==ht.Date.now&&se.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ce.ceil,mt=Ce.floor,vt=ke.getOwnPropertySymbols,yt=Ge?Ge.isBuffer:o,xt=t.isFinite,Vt=Oe.join,Yt=un(ke.keys,ke),yn=Ce.max,xn=Ce.min,wn=se.now,Sn=t.parseInt,_n=Ce.random,jn=Oe.reverse,En=fi(t,"DataView"),Cn=fi(t,"Map"),kn=fi(t,"Promise"),Tn=fi(t,"Set"),Pn=fi(t,"WeakMap"),Rn=fi(ke,"create"),On=Pn&&new Pn,In={},An=$i(En),Mn=$i(Cn),Dn=$i(kn),Fn=$i(Tn),Nn=$i(Pn),Ln=Ue?Ue.prototype:o,$n=Ln?Ln.valueOf:o,Vn=Ln?Ln.toString:o;function Bn(e){if(ns(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Fe.call(e,"__wrapped__"))return Vi(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=Ha(e),r=!n&&Ua(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Xt(e.length,Pe):[],l=s.length;for(var c in e)!t&&!Fe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Qn(e,t){return Fi(Oo(e),lr(t,0,e.length))}function er(e){return Fi(Oo(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Fe.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,function(e,o,i){t(r,e,n(e),i)}),r}function ir(e,t){return e&&Io(t,Is(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oo(e,s)}else{var p=mi(e),f=p==_||p==j;if(Ka(e))return Eo(e,l);if(p==k||p==b||f&&!i){if(s=c||f?{}:bi(e),!l)return c?function(e,t){return Io(e,hi(e),t)}(e,function(e,t){return e&&Io(t,As(t),e)}(s,e)):function(e,t){return Io(e,gi(e),t)}(e,ir(s,e))}else{if(!ct[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case M:return Co(e);case x:case w:return new r(+e);case D:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case N:case L:case $:case V:case B:case z:case G:case U:return ko(e,n);case E:return new r;case C:case O:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case I:return o=e,$n?ke($n.call(o)):{}}var o}(e,p,l)}}a||(a=new Jn);var g=a.get(e);if(g)return g;a.set(e,s),ss(e)?e.forEach(function(r){s.add(cr(r,t,n,r,e,a))}):rs(e)&&e.forEach(function(r,o){s.set(o,cr(r,t,n,o,e,a))});var h=d?o:(u?c?ai:ii:c?As:Is)(e);return Pt(h||e,function(r,o){h&&(r=e[o=r]),nr(s,o,cr(r,t,n,o,e,a))}),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Re(i);return Ii(function(){e.apply(o,n)},t)}function pr(e,t,n,r){var o=-1,i=At,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Dt(t,Qt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:Z,evaluate:Q,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Gn.prototype,Bn.prototype.constructor=Bn,Un.prototype=zn(Gn.prototype),Un.prototype.constructor=Un,Hn.prototype=zn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?o:n}return Fe.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==o:Fe.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Cn||qn),string:new Wn}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new qn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(wr),gr=Do(Sr,!0);function hr(e,t){var n=!0;return fr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return fr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):Ft(o,s):r||(o[o.length]=s)}return o}var yr=Fo(),xr=Fo(!0);function wr(e,t){return e&&yr(e,t,Is)}function Sr(e,t){return e&&xr(e,t,Is)}function _r(e,t){return It(t,function(t){return Za(e[t])})}function jr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Ha(e)?r:Ft(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in ke(e)?function(e){var t=Fe.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=$e.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return $e.call(e)}(e)}function kr(e,t){return e>t}function Tr(e,t){return null!=e&&Fe.call(e,t)}function Pr(e,t){return null!=e&&t in ke(e)}function Rr(e,t,n){for(var i=n?Mt:At,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Dt(p,Qt(t))),u=xn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Kn(l&&p):o}p=e[0];var f=-1,g=c[0];e:for(;++f<a&&d.length<u;){var h=p[f],m=t?t(h):h;if(h=n||0!==h?h:0,!(g?tn(g,m):i(d,m,n))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,m):i(e[l],m,n)))continue e}g&&g.push(m),d.push(h)}}return d}function Or(e,t,n){var r=null==(e=Pi(e,t=wo(t,e)))?e:e[Li(Xi(t))];return null==r?o:kt(r,e,n)}function Ir(e){return ns(e)&&Cr(e)==b}function Ar(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ha(e),l=Ha(t),c=s?y:mi(e),u=l?y:mi(t),d=(c=c==b?k:c)==k,p=(u=u==b?k:u)==k,f=c==u;if(f&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Jn),s||us(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case x:case w:case C:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case E:var s=cn;case R:var l=1&r;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case I:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var g=d&&Fe.call(e,"__wrapped__"),h=p&&Fe.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,v=h?t.value():t;return a||(a=new Jn),i(m,v,n,r,a)}}if(!f)return!1;return a||(a=new Jn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var f=l[p];if(!(s?f in t:Fe.call(t,f)))return!1}var g=a.get(e),h=a.get(t);if(g&&h)return g==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var b=e[f=l[p]],y=t[f];if(r)var x=s?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(x===o?b===y||i(b,y,n,r,a):x)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Ar,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=ke(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Jn;if(r)var f=r(u,d,c,e,t,p);if(!(f===o?Ar(d,u,3,r,p):f))return!1}}return!0}function Dr(e){return!(!ts(e)||(t=e,Le&&Le in t))&&(Za(e)?ze:be).test($i(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ha(e)?zr(e[0],e[1]):Br(e):fl(e)}function Nr(e){if(!Ei(e))return Yt(e);var t=[];for(var n in ke(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}function $r(e,t){return e<t}function Vr(e,t){var n=-1,o=qa(e)?r(e.length):[];return fr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Br(e){var t=pi(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function zr(e,t){return Si(e)&&Ci(t)?ki(Li(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Ts(n,e):Ar(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&yr(t,function(a,s){if(i||(i=new Jn),ts(a))!function(e,t,n,r,i,a,s){var l=Ri(e,n),c=Ri(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var f=Ha(c),g=!f&&Ka(c),h=!f&&!g&&us(c);d=c,f||g||h?Ha(l)?d=l:Ya(l)?d=Oo(l):g?(p=!1,d=Eo(c,!0)):h?(p=!1,d=ko(c,!0)):d=[]:is(c)||Ua(c)?(d=l,Ua(l)?d=bs(l):ts(l)&&!Za(l)||(d=bi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Gr,r,i);else{var l=r?r(Ri(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}},As)}function Ur(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Hr(e,t,n){t=t.length?Dt(t,function(e){return Ha(e)?function(t){return jr(t,1===e.length?e[0]:e)}:e}):[ol];var r=-1;t=Dt(t,Qt(ui()));var o=Vr(e,function(e,n,o){var i=Dt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=To(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=jr(e,a);n(s,a)&&eo(i,wo(a,e),s)}return i}function qr(e,t,n,r){var o=r?Ut:Gt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Dt(e,Qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Je.call(e,o,1):fo(e,o)}}return e}function Kr(e,t){return e+mt(_n()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ai(Ti(e,t,ol),e+"")}function Zr(e){return Zn(Bs(e))}function Qr(e,t){var n=Bs(e);return Fi(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Li(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ts(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=On?function(e,t){return On.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Fi(Bs(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return fr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===o;i<a;){var d=mt((i+a)/2),p=n(e[d]),f=p!==o,g=null===p,h=p==p,m=cs(p);if(s)var v=r||h;else v=u?h&&(r||f):l?h&&f&&(r||!g):c?h&&f&&!g&&(r||!m):!g&&!m&&(r?p<=t:p<t);v?i=d+1:a=d}return xn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,uo)+"";if(cs(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=At,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:Xo(e);if(c)return pn(c);a=!1,o=tn,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){var n=-1,r=(t=wo(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!Fe.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Pi(e,t);return null==a||delete a[Li(Xi(t))]}function go(e,t,n,r){return eo(e,t,n(jr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function vo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=pr(a[i]||s,e[l],t,n));return po(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function yo(e){return Ya(e)?e:[]}function xo(e){return"function"==typeof e?e:ol}function wo(e,t){return Ha(e)?e:Si(e,t)?[e]:Ni(ys(e))}var So=Xr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var jo=ot||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function ko(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=yn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Ro(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=yn(a-l,0),p=r(d+u),f=!o;++i<d;)p[i]=e[i];for(var g=i;++c<u;)p[g+c]=t[c];for(;++s<l;)(f||i<a)&&(p[g+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function Ao(e,t){return function(n,r){var o=Ha(n)?Tt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Mo(e){return Xr(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=ke(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function Do(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ke(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Fo(e){return function(t,n,r){for(var o=-1,i=ke(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function No(e){return function(t){var n=ln(t=ys(t))?hn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Nt(Zs(Us(t).replace(et,"")),e,"")}}function $o(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Vo(e){return function(t,n,r){var i=ke(t);if(!qa(t)){var a=ui(n,3);t=Is(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Bo(e){return oi(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Re(i);if(a&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=li(s=t[r]),u="wrapper"==c?si(s):o;l=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&_i(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function zo(e,t,n,i,a,s,l,c,u,p){var f=t&d,g=1&t,h=2&t,m=24&t,v=512&t,b=h?o:$o(e);return function d(){for(var y=arguments.length,x=r(y),w=y;w--;)x[w]=arguments[w];if(m)var S=ci(d),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,S);if(i&&(x=Po(x,i,a,m)),s&&(x=Ro(x,s,l,m)),y-=_,m&&y<p){var j=dn(x,S);return Ko(e,t,zo,d.placeholder,n,x,j,c,u,p-y)}var E=g?n:this,C=h?E[e]:e;return y=x.length,c?x=function(e,t){var n=e.length,r=xn(t.length,n),i=Oo(e);for(;r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}(x,c):v&&y>1&&x.reverse(),f&&u<y&&(x.length=u),this&&this!==ht&&this instanceof d&&(C=b||$o(C)),C.apply(E,x)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Ho(e){return oi(function(t){return t=Dt(t,Qt(ui())),Xr(function(n){var r=this;return e(t,function(e){return kt(e,r,n)})})})}function Wo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,gt(e/gn(t)));return ln(t)?_o(hn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&wi(t,n,i)&&(n=i=o),t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n,o){for(var i=-1,a=yn(gt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:gs(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,l,d,p){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var g=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,l,d,p],h=n.apply(o,g);return _i(e)&&Oi(h,g),h.placeholder=r,Mi(h,e,t)}function Jo(e){var t=Ce[e];return function(e,n){if(e=vs(e),(n=null==n?0:xn(hs(n),292))&&xt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Tn&&1/pn(new Tn([,-0]))[1]==f?function(e){return new Tn(e)}:cl;function Zo(e){return function(t){var n=mi(t);return n==E?cn(t):n==R?fn(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qo(e,t,n,a,f,g,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Re(i);var b=a?a.length:0;if(b||(t&=-97,a=f=o),h=h===o?h:yn(hs(h),0),m=m===o?m:hs(m),b-=f?f.length:0,t&u){var y=a,x=f;a=f=o}var w=v?o:si(e),S=[e,t,n,a,f,y,x,g,h,m];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Po(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ro(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,w),e=S[0],t=S[1],n=S[2],a=S[3],f=S[4],!(m=S[9]=S[9]===o?v?0:e.length:yn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=$o(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ci(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Ko(e,t,zo,a.placeholder,o,l,d,o,o,n-s):kt(this&&this!==ht&&this instanceof a?i:e,this,l)}}(e,t,m):t!=c&&33!=t||f.length?zo.apply(o,S):function(e,t,n,o){var i=1&t,a=$o(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==ht&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return kt(p,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=$o(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((w?to:Oi)(_,S),e,t)}function ei(e,t,n,r){return e===o||Ba(e,Ae[n])&&!Fe.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return is(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,g=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],m=t[p];if(r)var v=s?r(m,h,p,t,e,a):r(h,m,p,e,t,a);if(v!==o){if(v)continue;f=!1;break}if(g){if(!$t(t,function(e,t){if(!tn(g,t)&&(h===e||i(h,e,n,r,a)))return g.push(t)})){f=!1;break}}else if(h!==m&&!i(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function oi(e){return Ai(Ti(e,o,Wi),e+"")}function ii(e){return Er(e,Is,gi)}function ai(e){return Er(e,As,hi)}var si=On?function(e){return On.get(e)}:cl;function li(e){for(var t=e.name+"",n=In[t],r=Fe.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Fe.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||il;return e=e===il?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var gi=vt?function(e){return null==e?[]:(e=ke(e),It(vt(e),function(t){return Ke.call(e,t)}))}:ml,hi=vt?function(e){for(var t=[];e;)Ft(t,gi(e)),e=qe(e);return t}:ml,mi=Cr;function vi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&xi(a,o)&&(Ha(e)||Ua(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:zn(qe(e))}function yi(e){return Ha(e)||Ua(e)||!!(Xe&&e&&e[Xe])}function xi(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&xi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ke(t))}function _i(e){var t=li(e),n=Bn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(En&&mi(new En(new ArrayBuffer(1)))!=D||Cn&&mi(new Cn)!=E||kn&&mi(kn.resolve())!=T||Tn&&mi(new Tn)!=R||Pn&&mi(new Pn)!=A)&&(mi=function(e){var t=Cr(e),n=t==k?e.constructor:o,r=n?$i(n):"";if(r)switch(r){case An:return D;case Mn:return E;case Dn:return T;case Fn:return R;case Nn:return A}return t});var ji=Me?Za:vl;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Ci(e){return e==e&&!ts(e)}function ki(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ke(n)))}}function Ti(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),kt(e,this,l)}}function Pi(e,t){return t.length<2?e:jr(e,oo(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Di(to),Ii=ft||function(e,t){return ht.setTimeout(e,t)},Ai=Di(no);function Mi(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(v,function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ni=function(e){var t=Da(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)}),t});function Li(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $i(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vi(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Xr(function(e,t){return Ya(e)?pr(e,br(t,1,Ya,!0)):[]}),zi=Xr(function(e,t){var n=Xi(t);return Ya(n)&&(n=o),Ya(e)?pr(e,br(t,1,Ya,!0),ui(n,2)):[]}),Gi=Xr(function(e,t){var n=Xi(t);return Ya(n)&&(n=o),Ya(e)?pr(e,br(t,1,Ya,!0),o,n):[]});function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),zt(e,ui(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=hs(n),i=n<0?yn(r+i,0):xn(i,r-1)),zt(e,ui(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?br(e,1):[]}function qi(e){return e&&e.length?e[0]:o}var Yi=Xr(function(e){var t=Dt(e,yo);return t.length&&t[0]===e[0]?Rr(t):[]}),Ki=Xr(function(e){var t=Xi(e),n=Dt(e,yo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Rr(n,ui(t,2)):[]}),Ji=Xr(function(e){var t=Xi(e),n=Dt(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,o,t):[]});function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ea=oi(function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Dt(t,function(e){return xi(e,n)?+e:e}).sort(To)),r});function ta(e){return null==e?e:jn.call(e)}var na=Xr(function(e){return po(br(e,1,Ya,!0))}),ra=Xr(function(e){var t=Xi(e);return Ya(t)&&(t=o),po(br(e,1,Ya,!0),ui(t,2))}),oa=Xr(function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(br(e,1,Ya,!0),o,t)});function ia(e){if(!e||!e.length)return[];var t=0;return e=It(e,function(e){if(Ya(e))return t=yn(e.length,t),!0}),Xt(t,function(t){return Dt(e,qt(t))})}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Dt(n,function(e){return kt(t,o,e)})}var sa=Xr(function(e,t){return Ya(e)?pr(e,t):[]}),la=Xr(function(e){return vo(It(e,Ya))}),ca=Xr(function(e){var t=Xi(e);return Ya(t)&&(t=o),vo(It(e,Ya),ui(t,2))}),ua=Xr(function(e){var t=Xi(e);return t="function"==typeof t?t:o,vo(It(e,Ya),o,t)}),da=Xr(ia);var pa=Xr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)});function fa(e){var t=Bn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var ha=oi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var ma=Ao(function(e,t,n){Fe.call(e,n)?++e[n]:ar(e,n,1)});var va=Vo(Ui),ba=Vo(Hi);function ya(e,t){return(Ha(e)?Pt:fr)(e,ui(t,3))}function xa(e,t){return(Ha(e)?Rt:gr)(e,ui(t,3))}var wa=Ao(function(e,t,n){Fe.call(e,n)?e[n].push(t):ar(e,n,[t])});var Sa=Xr(function(e,t,n){var o=-1,i="function"==typeof t,a=qa(e)?r(e.length):[];return fr(e,function(e){a[++o]=i?kt(t,e,n):Or(e,t,n)}),a}),_a=Ao(function(e,t,n){ar(e,n,t)});function ja(e,t){return(Ha(e)?Dt:Vr)(e,ui(t,3))}var Ea=Ao(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ca=Xr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])}),ka=ut||function(){return ht.Date.now()};function Ta(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Re(i);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ra=Xr(function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Ra));r|=c}return Qo(e,r,t,n,o)}),Oa=Xr(function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Oa));r|=c}return Qo(t,r,e,n,o)});function Ia(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,g=!0;if("function"!=typeof e)throw new Re(i);function h(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||f&&e-d>=s}function v(){var e=ka();if(m(e))return b(e);c=Ii(v,function(e){var n=t-(e-u);return f?xn(n,s-(e-d)):n}(e))}function b(e){return c=o,g&&r?h(e):(r=a=o,l)}function y(){var e=ka(),n=m(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=Ii(v,t),p?h(e):l}(u);if(f)return jo(c),c=Ii(v,t),h(u)}return c===o&&(c=Ii(v,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(f="maxWait"in n)?yn(vs(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),y.cancel=function(){c!==o&&jo(c),d=0,r=u=a=c=o},y.flush=function(){return c===o?l:b(ka())},y}var Aa=Xr(function(e,t){return dr(e,1,t)}),Ma=Xr(function(e,t,n){return dr(e,vs(t)||0,n)});function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Yn),n}function Fa(e){if("function"!=typeof e)throw new Re(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Yn;var Na=So(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Qt(ui())):Dt(br(t,1),Qt(ui()))).length;return Xr(function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)})}),La=Xr(function(e,t){var n=dn(t,ci(La));return Qo(e,c,o,t,n)}),$a=Xr(function(e,t){var n=dn(t,ci($a));return Qo(e,u,o,t,n)}),Va=oi(function(e,t){return Qo(e,p,o,o,o,t)});function Ba(e,t){return e===t||e!=e&&t!=t}var za=Yo(kr),Ga=Yo(function(e,t){return e>=t}),Ua=Ir(function(){return arguments}())?Ir:function(e){return ns(e)&&Fe.call(e,"callee")&&!Ke.call(e,"callee")},Ha=r.isArray,Wa=wt?Qt(wt):function(e){return ns(e)&&Cr(e)==M};function qa(e){return null!=e&&es(e.length)&&!Za(e)}function Ya(e){return ns(e)&&qa(e)}var Ka=yt||vl,Ja=St?Qt(St):function(e){return ns(e)&&Cr(e)==w};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Za(e){if(!ts(e))return!1;var t=Cr(e);return t==_||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==hs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=_t?Qt(_t):function(e){return ns(e)&&mi(e)==E};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==C}function is(e){if(!ns(e)||Cr(e)!=k)return!1;var t=qe(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ve}var as=jt?Qt(jt):function(e){return ns(e)&&Cr(e)==P};var ss=Et?Qt(Et):function(e){return ns(e)&&mi(e)==R};function ls(e){return"string"==typeof e||!Ha(e)&&ns(e)&&Cr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Cr(e)==I}var us=Ct?Qt(Ct):function(e){return ns(e)&&es(e.length)&&!!lt[Cr(e)]};var ds=Yo($r),ps=Yo(function(e,t){return e<=t});function fs(e){if(!e)return[];if(qa(e))return ls(e)?hn(e):Oo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=mi(e);return(t==E?cn:t==R?pn:Bs)(e)}function gs(e){return e?(e=vs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?lr(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return h;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||ye.test(e)?pt(e.slice(2),n?2:8):me.test(e)?h:+e}function bs(e){return Io(e,As(e))}function ys(e){return null==e?"":uo(e)}var xs=Mo(function(e,t){if(Ei(t)||qa(t))Io(t,Is(t),e);else for(var n in t)Fe.call(t,n)&&nr(e,n,t[n])}),ws=Mo(function(e,t){Io(t,As(t),e)}),Ss=Mo(function(e,t,n,r){Io(t,As(t),e,r)}),_s=Mo(function(e,t,n,r){Io(t,Is(t),e,r)}),js=oi(sr);var Es=Xr(function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=As(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ba(d,Ae[u])&&!Fe.call(e,u))&&(e[u]=a[u])}return e}),Cs=Xr(function(e){return e.push(o,ti),kt(Ds,o,e)});function ks(e,t,n){var r=null==e?o:jr(e,t);return r===o?n:r}function Ts(e,t){return null!=e&&vi(e,t,Pr)}var Ps=Go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n},tl(ol)),Rs=Go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]},ui),Os=Xr(Or);function Is(e){return qa(e)?Xn(e):Nr(e)}function As(e){return qa(e)?Xn(e,!0):Lr(e)}var Ms=Mo(function(e,t,n){Gr(e,t,n)}),Ds=Mo(function(e,t,n,r){Gr(e,t,n,r)}),Fs=oi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),Io(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n});var Ns=oi(function(e,t){return null==e?{}:function(e,t){return Wr(e,t,function(t,n){return Ts(e,n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Dt(ai(e),function(e){return[e]});return t=ui(t),Wr(e,n,function(e,n){return t(e,n[0])})}var $s=Zo(Is),Vs=Zo(As);function Bs(e){return null==e?[]:en(e,Is(e))}var zs=Lo(function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)});function Gs(e){return Xs(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,on).replace(tt,"")}var Hs=Lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qs=No("toLowerCase");var Ys=Lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ks=Lo(function(e,t,n){return e+(n?" ":"")+Xs(t)});var Js=Lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Xs=No("toUpperCase");function Zs(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Xr(function(e,t){try{return kt(e,o,t)}catch(e){return Xa(e)?e:new je(e)}}),el=oi(function(e,t){return Pt(t,function(t){t=Li(t),ar(e,t,Ra(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Bo(),rl=Bo(!0);function ol(e){return e}function il(e){return Fr("function"==typeof e?e:cr(e,1))}var al=Xr(function(e,t){return function(n){return Or(n,e,t)}}),sl=Xr(function(e,t){return function(n){return Or(e,n,t)}});function ll(e,t,n){var r=Is(t),o=_r(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Is(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Za(e);return Pt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function cl(){}var ul=Ho(Dt),dl=Ho(Ot),pl=Ho($t);function fl(e){return Si(e)?qt(Li(e)):function(e){return function(t){return jr(t,e)}}(e)}var gl=qo(),hl=qo(!0);function ml(){return[]}function vl(){return!1}var bl=Uo(function(e,t){return e+t},0),yl=Jo("ceil"),xl=Uo(function(e,t){return e/t},1),wl=Jo("floor");var Sl,_l=Uo(function(e,t){return e*t},1),jl=Jo("round"),El=Uo(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Re(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ta,Bn.assign=xs,Bn.assignIn=ws,Bn.assignInWith=Ss,Bn.assignWith=_s,Bn.at=js,Bn.before=Pa,Bn.bind=Ra,Bn.bindAll=el,Bn.bindKey=Oa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,n){t=(n?wi(e,t,n):t===o)?1:yn(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(gt(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ft(Ha(n)?Oo(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Dt(e,function(e){if("function"!=typeof e[1])throw new Re(i);return[n(e[0]),e[1]]}):[],Xr(function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Is(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Bn.constant=tl,Bn.countBy=ma,Bn.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Qo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ia,Bn.defaults=Es,Bn.defaultsDeep=Cs,Bn.defer=Aa,Bn.delay=Ma,Bn.difference=Bi,Bn.differenceBy=zi,Bn.differenceWith=Gi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:hs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:hs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=hs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:hs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?It:vr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(ja(e,t),1)},Bn.flatMapDeep=function(e,t){return br(ja(e,t),f)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:hs(n),br(ja(e,t),n)},Bn.flatten=Wi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,f):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:hs(t)):[]},Bn.flip=function(e){return Qo(e,512)},Bn.flow=nl,Bn.flowRight=rl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:_r(e,Is(e))},Bn.functionsIn=function(e){return null==e?[]:_r(e,As(e))},Bn.groupBy=wa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Yi,Bn.intersectionBy=Ki,Bn.intersectionWith=Ji,Bn.invert=Ps,Bn.invertBy=Rs,Bn.invokeMap=Sa,Bn.iteratee=il,Bn.keyBy=_a,Bn.keys=Is,Bn.keysIn=As,Bn.map=ja,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,t(e,r,o),e)}),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,r,t(e,r,o))}),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return zr(e,cr(t,1))},Bn.memoize=Da,Bn.merge=Ms,Bn.mergeWith=Ds,Bn.method=al,Bn.methodOf=sl,Bn.mixin=ll,Bn.negate=Fa,Bn.nthArg=function(e){return e=hs(e),Xr(function(t){return Ur(t,e)})},Bn.omit=Fs,Bn.omitBy=function(e,t){return Ls(e,Fa(ui(t)))},Bn.once=function(e){return Pa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?o:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Bn.over=ul,Bn.overArgs=Na,Bn.overEvery=dl,Bn.overSome=pl,Bn.partial=La,Bn.partialRight=$a,Bn.partition=Ea,Bn.pick=Ns,Bn.pickBy=Ls,Bn.property=fl,Bn.propertyOf=function(e){return function(t){return null==e?o:jr(e,t)}},Bn.pull=Zi,Bn.pullAll=Qi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=gl,Bn.rangeRight=hl,Bn.rearg=Va,Bn.reject=function(e,t){return(Ha(e)?It:vr)(e,Fa(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Re(i);return Xr(e,t=t===o?t:hs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),(Ha(e)?Qn:Qr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===o?r:hs(n)),oo(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ln(e)?_o(hn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Re(i);return t=null==t?0:yn(hs(t),0),Xr(function(n){var r=n[t],o=_o(n,0,t);return r&&Ft(o,r),kt(e,this,o)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:hs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Re(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ia(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ga,Bn.toArray=fs,Bn.toPairs=$s,Bn.toPairsIn=Vs,Bn.toPath=function(e){return Ha(e)?Dt(e,Li):cs(e)?[e]:Oo(Ni(ys(e)))},Bn.toPlainObject=bs,Bn.transform=function(e,t,n){var r=Ha(e),o=r||Ka(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Za(i)?zn(qe(e)):{}}return(o?Pt:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},Bn.unary=function(e){return Ta(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?po(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:go(e,t,xo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:go(e,t,xo(n),r)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,As(e))},Bn.without=sa,Bn.words=Zs,Bn.wrap=function(e,t){return La(xo(t),e)},Bn.xor=la,Bn.xorBy=ca,Bn.xorWith=ua,Bn.zip=da,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=pa,Bn.entries=$s,Bn.entriesIn=Vs,Bn.extend=ws,Bn.extendWith=Ss,ll(Bn,Bn),Bn.add=bl,Bn.attempt=Qs,Bn.camelCase=zs,Bn.capitalize=Gs,Bn.ceil=yl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Is(t))},Bn.deburr=Us,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=xl,Bn.endsWith=function(e,t,n){e=ys(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace(K,an):e},Bn.escapeRegExp=function(e){return(e=ys(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?Ot:hr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=va,Bn.findIndex=Ui,Bn.findKey=function(e,t){return Bt(e,ui(t,3),wr)},Bn.findLast=ba,Bn.findLastIndex=Hi,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),Sr)},Bn.floor=wl,Bn.forEach=ya,Bn.forEachRight=xa,Bn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),As)},Bn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),As)},Bn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Bn.get=ks,Bn.gt=za,Bn.gte=Ga,Bn.has=function(e,t){return null!=e&&vi(e,t,Tr)},Bn.hasIn=Ts,Bn.head=qi,Bn.identity=ol,Bn.includes=function(e,t,n,r){e=qa(e)?e:Bs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Gt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Gt(e,t,o)},Bn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<yn(t,n)}(e=vs(e),t,n)},Bn.invoke=Os,Bn.isArguments=Ua,Bn.isArray=Ha,Bn.isArrayBuffer=Wa,Bn.isArrayLike=qa,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==x},Bn.isBuffer=Ka,Bn.isDate=Ja,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||us(e)||Ua(e)))return!e.length;var t=mi(e);if(t==E||t==R)return!e.size;if(Ei(e))return!Nr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Ar(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ar(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&xt(e)},Bn.isFunction=Za,Bn.isInteger=Qa,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Mr(e,t,pi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,pi(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(ji(e))throw new je("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=g},Bn.isSet=ss,Bn.isString=ls,Bn.isSymbol=cs,Bn.isTypedArray=us,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&mi(e)==A},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":Vt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=hs(n))<0?yn(r+i,0):xn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Ht,i,!0)},Bn.lowerCase=Ws,Bn.lowerFirst=qs,Bn.lt=ds,Bn.lte=ps,Bn.max=function(e){return e&&e.length?mr(e,ol,kr):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ui(t,2),kr):o},Bn.mean=function(e){return Wt(e,ol)},Bn.meanBy=function(e,t){return Wt(e,ui(t,2))},Bn.min=function(e){return e&&e.length?mr(e,ol,$r):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ui(t,2),$r):o},Bn.stubArray=ml,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_l,Bn.nth=function(e,t){return e&&e.length?Ur(e,hs(t)):o},Bn.noConflict=function(){return ht._===this&&(ht._=Be),this},Bn.noop=cl,Bn.now=ka,Bn.pad=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(mt(o),n)+e+Wo(gt(o),n)},Bn.padEnd=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;return t&&r<t?e+Wo(t-r,n):e},Bn.padStart=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(ys(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?Nt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?Lt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,gr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),Jr(ys(e),t)},Bn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=jl,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(qa(e))return ls(e)?gn(e):e.length;var t=mi(e);return t==E||t==R?e.size:Nr(e).length},Bn.snakeCase=Ys,Bn.some=function(e,t,n){var r=Ha(e)?$t:io;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Ks,Bn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:lr(hs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=El,Bn.sum=function(e){return e&&e.length?Jt(e,ol):0},Bn.sumBy=function(e,t){return e&&e.length?Jt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wi(e,t,n)&&(t=o),e=ys(e),t=Ss({},t,r,ei);var i,a,s=Ss({},t.imports,r.imports,ei),l=Is(s),c=en(s,l),u=0,d=t.interpolate||Se,p="__p += '",f=Te((t.escape||Se).source+"|"+d.source+"|"+(d===ee?ge:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),g="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(f,function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(_e,sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),p+="';\n";var h=Fe.call(t,"variable")&&t.variable;if(h){if(pe.test(h))throw new je("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Qs(function(){return Ee(l,g+"return "+p).apply(o,c)});if(m.source=p,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=hs(e))<1||e>g)return[];var n=m,r=xn(e,m);t=ui(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},Bn.toFinite=gs,Bn.toInteger=hs,Bn.toLength=ms,Bn.toLower=function(e){return ys(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?lr(hs(e),-9007199254740991,g):0===e?e:0},Bn.toString=ys,Bn.toUpper=function(e){return ys(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=hn(e),i=hn(t);return _o(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=hn(e);return _o(r,0,rn(r,hn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=hn(e);return _o(r,nn(r,hn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?hs(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=ys(e)).length;if(ln(e)){var s=hn(e);a=s.length}if(n>=a)return e;var l=n-gn(r);if(l<1)return r;var c=s?_o(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Te(i.source,ys(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Bn.unescape=function(e){return(e=ys(e))&&J.test(e)?e.replace(Y,vn):e},Bn.uniqueId=function(e){var t=++Ne;return ys(e)+t},Bn.upperCase=Js,Bn.upperFirst=Xs,Bn.each=ya,Bn.eachRight=xa,Bn.first=qi,ll(Bn,(Sl={},wr(Bn,function(e,t){Fe.call(Bn.prototype,t)||(Sl[t]=e)}),Sl),{chain:!1}),Bn.VERSION="4.17.23",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),Pt(["drop","take"],function(e,t){Hn.prototype[e]=function(n){n=n===o?1:yn(hs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Pt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Pt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),Pt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(ol)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return Or(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Fa(ui(e)))},Hn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},wr(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||Ha(t),d=function(e){var t=i.apply(Bn,Ft([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,g=a&&!p,h=l&&!f;if(!a&&u){t=h?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:ga,args:[d],thisArg:o}),new Un(m,p)}return g&&h?e.apply(this,s):(m=this.thru(d),g?r?m.value()[0]:m.value():m)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),wr(Hn.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Fe.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}}),In[zo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=xn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return mo(e,this.__actions__);var g=[];e:for(;l--&&p<f;){for(var h=-1,m=e[c+=t];++h<d;){var v=u[h],b=v.iteratee,y=v.type,x=b(m);if(2==y)m=x;else if(!x){if(1==y)continue e;break e}}g[p++]=m}return g},Bn.prototype.at=ha,Bn.prototype.chain=function(){return fa(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Vi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();ht._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},20(e,t,n){"use strict";var r=n(953),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},848(e,t,n){"use strict";e.exports=n(20)},72(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={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var g=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:g,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return 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 a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},659(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)}},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}},56(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825(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)}}}},113(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))}}},953(e){"use strict";e.exports=require("react")},479(e){"use strict";e.exports=require("react-dropzone")},660(e,t,n){"use strict";n.d(t,{gB:()=>o,i0:()=>r,qT:()=>i});var r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.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 o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".index.cjs.js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="eehitus-building-project-file-ui:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkeehitus_building_project_file_ui=globalThis.webpackChunkeehitus_building_project_file_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};(()=>{"use strict";a.r(s),a.d(s,{EhrDoc:()=>qi,EhrDocTedi:()=>LL});var e={};a.r(e),a.d(e,{default:()=>du});var t={};a.r(t),a.d(t,{default:()=>vu});var n={};a.r(n),a.d(n,{default:()=>yu});var r={};a.r(r),a.d(r,{GlobalStyles:()=>wk,StyledEngineProvider:()=>xk,ThemeContext:()=>_g,css:()=>pw,default:()=>Sk,internal_processStyles:()=>_k,internal_serializeStyles:()=>Ek,keyframes:()=>fw});var o={};a.r(o),a.d(o,{default:()=>wd,isPlainObject:()=>yd});var i={};a.r(i),a.d(i,{default:()=>Jd});var l={};a.r(l),a.d(l,{default:()=>Nk,getFunctionName:()=>Mk});var c={};a.r(c),a.d(c,{default:()=>Wp,private_createBreakpoints:()=>Gd,unstable_applyStyles:()=>Up});var u={};a.r(u),a.d(u,{default:()=>Gp,extendSxProp:()=>zk,unstable_createStyleFunctionSx:()=>zp,unstable_defaultSxConfig:()=>Bp});var d=a(953),p=a.t(d,2),f=a.n(d);const g=require("ehr-components");var h=a(72),m=a.n(h),v=a(825),b=a.n(v),y=a(659),x=a.n(y),w=a(56),S=a.n(w),_=a(540),j=a.n(_),E=a(113),C=a.n(E),k=a(841),T={};T.styleTagTransform=C(),T.setAttributes=S(),T.insert=x().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=j();m()(k.A,T);k.A&&k.A.locals&&k.A.locals;const P=require("react-redux");var R=a(848);const O=e=>{let{isLegacyProject:t,permissions:n,title:r,onAccept:o,onCancel:i,compound:a,onSecondary:s,lockAccept:l,actionsDisabled:c,disableAccept:u,children:d,onUnlock:p,css:f}=e;return(0,R.jsx)("div",{id:`doc2--popup-modal-${Date.now().toString()}`,className:"doc2--popup-modal",children:(0,R.jsxs)("div",{className:a?"doc2--popup-modal--modal compound":"doc2--popup-modal--modal",style:f,children:[(0,R.jsx)("h4",{children:r}),(0,R.jsx)("div",{className:"doc2--popup-modal--content mt-1",children:d}),(0,R.jsxs)("div",{className:"doc2--popup-modal--footer",children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:i,disabled:c,children:"Sulgen"}),s&&!t&&(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:s,className:"push-right mr-2",disabled:c,children:(0,R.jsx)(g.Text,{raw:"popup.showSigners"})}),p&&(0,R.jsx)(g.Button,{colourScheme:"info",squared:!0,onClick:p,className:"mr-2",disabled:!n.canWrite||c,children:(0,R.jsx)(g.Text,{raw:"popup.unlock"})}),o&&(0,R.jsxs)(R.Fragment,{children:[l&&(0,R.jsx)(g.Popover,{content:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(g.Text,{raw:"signPopup.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"signPopup.content"})})]}),(0,R.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",children:(0,R.jsx)(g.Text,{raw:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{colourScheme:"danger",type:"reset",onClick:o,children:(0,R.jsx)(g.Text,{raw:"signPopup.yesConfirm"})})]})]}),placement:"left",theme:"danger",children:(0,R.jsx)("span",{style:{display:"none"},id:"i am dummy"})}),!l&&(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,onClick:o,disabled:u||c,children:(0,R.jsx)(g.Text,{raw:"popup.save"})})]})]})]})})};const I=(0,P.connect)(function(e){return{isLegacyProject:e.projectState.legacy,permissions:e.permissions.permissions}},function(e){return{}})(O),A=e=>{let{isOpen:t,togglePopup:n}=e;return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsxs)(I,{title:"popupRestrictAccess.title",onAccept:function(){n(!1)},onCancel:function(){n(!1)},children:[(0,R.jsx)("p",{children:"Järgnevatele dokumentidele määran juurdepääsupiirangu:"}),(0,R.jsxs)("ul",{className:"list-with-arrows",children:[(0,R.jsx)("li",{children:"1234_EP-EAV-3-001_dokumendi_nimetus.asice"}),(0,R.jsx)("li",{children:"EL_nõrkvool.asice"})]}),(0,R.jsx)(g.FieldWrapper,{label:"Alus",info:{content:"Alus label"},required:!0,component:(0,R.jsx)(g.Input,{onChange:()=>{}})}),(0,R.jsx)(g.FieldWrapper,{label:"Põhjendus",info:{content:"Põhjendus label"},required:!0,component:(0,R.jsx)(g.TextArea,{onChange:()=>{}})}),(0,R.jsx)(g.FieldWrapper,{label:"Piirangu lõpu aeg",info:{content:"Piirangu lõpu aeg label"},required:!0,component:(0,R.jsx)(g.DatePicker,{onChange:()=>{}})})]})})};let M=function(e){return e.TOGGLE_SIGN_REFUSAL_POPUP="TOGGLE_SIGN_REFUSAL_POPUP",e.TOGGLE_MAKE_CONFIDENTIAL_POPUP="TOGGLE_MAKE_CONFIDENTIAL_POPUP",e.TOGGLE_SIGN_DOCUMENT_LIST="TOGGLE_SIGN_DOCUMENT_LIST",e.TOGGLE_REPLACE_FILE_POPUP="TOGGLE_REPLACE_FILE_POPUP",e.ADD_ALERT="ADD_ALERT",e.REMOVE_ALERT="REMOVE_ALERT",e.CLEAR_ALL_ALERTS="CLEAR_ALL_ALERTS",e.TOGGLE_FILTERS="TOGGLE_FILTERS",e.CLOSE_ALL_POPUPS="CLOSE_ALL_POPUPS",e}({});function D(e){return{type:M.TOGGLE_SIGN_REFUSAL_POPUP,payload:{toggled:e}}}function F(e){return{type:M.TOGGLE_SIGN_DOCUMENT_LIST,payload:{toggled:e}}}function N(e){return{type:M.ADD_ALERT,payload:{alert:e}}}function L(e){return{type:M.REMOVE_ALERT,payload:{id:e||""}}}function $(){return{type:M.CLEAR_ALL_ALERTS,payload:{}}}function V(e){return{type:M.TOGGLE_FILTERS,payload:{toggled:e}}}function B(e){return{type:M.TOGGLE_REPLACE_FILE_POPUP,payload:{toggled:e}}}const z=(0,P.connect)(function(e){return{isOpen:e.uiState.makeConfidentialOpen}},function(e){return{togglePopup:t=>{var n;e((n=t,{type:M.TOGGLE_MAKE_CONFIDENTIAL_POPUP,payload:{toggled:n}}))}}})(A),G=require("react-intl");function U(e,t){const n=e.filter(e=>e.code===t)[0];return n?n.text:""}const H=e=>{let{code:t,codes:n,className:r}=e;return(0,R.jsxs)(R.Fragment,{children:[t&&(0,R.jsx)("span",{className:r,children:U(n,t)}),!t&&(0,R.jsx)("span",{className:r})]})};const W=(0,P.connect)(function(e,t){return{codes:e.codeToTextState[t.type],code:t.code}},function(e){return{}})(H);const q=e=>{let{code:t,className:n}=e;return(0,R.jsx)(W,{type:"grupp",code:t,className:n})},Y=e=>{let{code:t}=e;return(0,R.jsx)(W,{type:"projektiOsa",code:t})},K=e=>{let{code:t}=e;return(0,R.jsx)(W,{type:"projektiStaadium",code:t})};function J(e){const t=e.toISOString(),n=t.substring(0,t.indexOf("T")),[r,o,i]=n.split("-");return`${i}.${o}.${r}`}var X;function Z(){return Z=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},Z.apply(null,arguments)}function Q(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Z({width:12,height:6,viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,X||(X=d.createElement("path",{d:"M10.59 0L6 4.58 1.41 0 0 1.41l6 6 6-6L10.59 0z"})))}const ee=d.forwardRef(Q);a.p;var te;function ne(){return ne=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},ne.apply(null,arguments)}function re(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",ne({width:12,height:6,viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,te||(te=d.createElement("path",{d:"M1.41 7.41L6 2.83l4.59 4.58L12 6 6 0 0 6l1.41 1.41z"})))}const oe=d.forwardRef(re);a.p;var ie=a(520),ae={};ae.styleTagTransform=C(),ae.setAttributes=S(),ae.insert=x().bind(null,"head"),ae.domAPI=b(),ae.insertStyleElement=j();m()(ie.A,ae);const se=ie.A&&ie.A.locals?ie.A.locals:void 0,le=e=>{let{title:t,index:n,isDescending:r,isAccenting:o,onAccenting:i,onDescending:a}=e;return(0,R.jsxs)("div",{className:"doc2--row-header",children:[(0,R.jsxs)("div",{className:"doc2--row-header--arrows",children:[(0,R.jsxs)("button",{className:"doc2--icon-button mb-1",onClick:()=>i(n),children:[o&&(0,R.jsx)(oe,{fill:se.colorBlue,"aria-label":"Sort based on this row, accenting enabled."}),!o&&(0,R.jsx)(oe,{fill:se.colorGrey,"aria-label":"Sort based on this row, accenting."})]}),(0,R.jsxs)("button",{className:"doc2--icon-button",onClick:()=>a(n),children:[r&&(0,R.jsx)(ee,{fill:se.colorBlue,"aria-label":"Sort based on this row, descending enabled."}),!r&&(0,R.jsx)(ee,{fill:se.colorGrey,"aria-label":"Sort based on this row, descending."})]})]}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:t})})]})},ce=e=>{let{togglePopup:t,isOpen:n,signState:r,addAlert:o,projectId:i,enableSignPopup:a,unlockContainer:s,permissions:l,downloadProjektiOsaContainer:c,isBlockingRequestInProgress:u}=e;const[p,f]=(0,d.useState)([]),[h,m]=(0,d.useState)([]),v=(0,G.useIntl)(),{projectTypes:b,projectContainer:{signers:y,revision:x,signed:w}}=r,S=y.length>0;function _(e,t){f([(0,R.jsx)(le,{title:"projectType",index:"type",onAccenting:j,onDescending:E,isAccenting:"type"===e,isDescending:"type"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.signer",index:"name",onAccenting:j,onDescending:E,isAccenting:"name"===e,isDescending:"name"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.date",index:"date",onAccenting:j,onDescending:E,isAccenting:"date"===e,isDescending:"date"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.decision",index:"decision",onAccenting:j,onDescending:E,isAccenting:"decision"===e,isDescending:"decision"===t}),""])}function j(e){C(e,-1),_(e,void 0)}function E(e){C(e,1),_(void 0,e)}function C(e,t){if(0===t)return;const n=(n,r)=>n[e]<r[e]?t:n[e]>r[e]?-t:0;m("type"===e?e=>[...e.sort(n)]:e=>e.map(e=>(e.signers=[...e.signers].sort(n),e)))}function k(e){return e.map(e=>({props:{fields:[e.name,J(e.date),"",""]}}))}return(0,d.useEffect)(()=>{i&&_()},[i]),(0,d.useEffect)(()=>{m([...b])},[b]),(0,R.jsx)(R.Fragment,{children:n&&(0,R.jsx)(I,{title:(0,R.jsx)("h2",{children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.title"})}),lockAccept:!0,onCancel:function(){t(!1)},actionsDisabled:u,css:{maxWidth:"60rem"},children:u?(0,R.jsx)("div",{style:{width:"100%",textAlign:"center"},children:(0,R.jsx)(g.Loader,{})}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{style:{fontSize:"small"},children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.description",values:{br:(0,R.jsx)("br",{})}})}),(0,R.jsx)(g.CollapseTable,{headers:p,content:[...h.map(e=>{return(0,R.jsx)(g.CollapseTableRow,{open:!0,fields:[(0,R.jsx)(Y,{code:e.type}),"","","",(t=e,(0,R.jsxs)("div",{className:"sign-popup--file-actions",children:[t&&t.signers&&t.signers.length>0&&(0,R.jsx)("a",{onClick:()=>c(t.type),className:"icon-download mr-2"}),(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,onClick:()=>a(t.revision,t.type),disabled:S||t.signed||!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.containerName.sign"})})]}))],subRows:k(e.signers)});var t}),...S||l.canSign&&h.length>1?[(0,R.jsx)(g.CollapseTableRow,{fields:["","","","",""]}),(0,R.jsx)(g.CollapseTableRow,{open:!0,fields:[(0,R.jsx)(g.Text,{raw:"showSignersPopup.fullProject"}),"","","",(0,R.jsxs)("div",{className:"sign-popup--file-actions",children:[S&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("a",{onClick:()=>c(),className:"icon-download mr-2"}),(0,R.jsx)(g.Button,{colourScheme:"info",squared:!0,onClick:()=>{s(()=>{o({title:v.formatMessage({id:"alert.containerUnlocked"}),message:void 0}),t(!1)})},disabled:!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.fullProject.remove"})})]}),(0,R.jsx)(g.Button,{className:"ml-2",colourScheme:"success",squared:!0,onClick:()=>a(x,"SIGN_CONTAINER"),disabled:w||!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.containerName.sign"})})]})],subRows:k(y)})]:[]]})]})})})};let ue=function(e){return e.ID_CARD="ID_CARD",e.MOBILE_ID="MOBILE_ID",e.SMART_ID="SMART_ID",e}({});const de={method:ue.ID_CARD,signInProgress:!1,challenge:void 0,sessionId:void 0,revision:void 0,projektiOsa:void 0,mobileNumber:void 0};const pe=require("axios");var fe=a.n(pe);const ge=e=>Boolean(e&&Object.prototype.hasOwnProperty.call(e,"message")),he="common.error.unknown",me=e=>{switch(e){case 413:return"networkError.413";case 500:return"networkError.500";case 502:return"networkError.502";case 503:return"networkError.503";case 504:return"networkError.504";default:return"networkError.default"}};function ve(e,t){if(n=e,Boolean(n&&(Object.prototype.hasOwnProperty.call(n,"response")||Object.prototype.hasOwnProperty.call(n,"isAxiosError")))){const n=e.response;n&&n.data&&Array.isArray(n.data)?n.data.forEach(e=>{e.code&&e.message&&t(N({error:!0,title:"",message:e.message}))}):t(N({error:!0,intlTitle:"",intlMessage:me(null==n?void 0:n.status)}))}else if(ge(e)){const n=ge(e)?(e=>{switch(e){case"user_cancel":return"signPopup.error.userCancel";case"no_certificates":return"signPopup.error.noCertificates";case"invalid_argument":return"signPopup.error.invalidArgument";case"technical_error":return"signPopup.error.technicalError";case"no_implementation":return"signPopup.error.noImplementation";case"not_allowed":return"https:"!==window.location.protocol?"signPopup.error.notAllowed.https":"signPopup.error.notAllowed";case"pin_blocked":return"signPopup.error.pinBlocked";default:return he}})(e.message):he;t(N({error:!0,intlTitle:"signPopup.error.title",intlMessage:n}))}else t(N("error400_planningView"===e?{type:"info",intlTitle:"",intlMessage:"customError.400.planningView.migrated_doc"}:{error:!0,intlTitle:he}));var n;t({type:M.CLOSE_ALL_POPUPS,payload:{}})}function be(e){var t;const n=(null===(t=e.headers["content-disposition"])||void 0===t?void 0:t.split("''")[1])||"download",r=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=r,o.style.display="none",o.setAttribute("download",n),document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(r)}function ye(e,t){return e.replace(/{([^{]+)}/g,(e,n)=>null===(n=t[n])?"":n)}let xe=function(e){return e.SET_PROJECT_TYPES="SET_PROJECT_TYPES",e.SET_PROJECT_CONTAINER="SET_PROJECT_CONTAINER",e}({});function we(){return async(e,t)=>{const{applicationId:n,projectId:r,legacy:o}=t().projectState;var i;if(!o)try{const t=await fe()({method:"get",url:`${window.DOC2_BACKEND_URL}/application/${n}/project/${r}/container`});if(t.status){const n=t.data,r=n.projektiOsaContainers.map(e=>Se(e)),o=Se(n.projectContainer);e((i=r,{type:xe.SET_PROJECT_TYPES,payload:{projectType:i}})),e(function(e){return{type:xe.SET_PROJECT_CONTAINER,payload:{projectContainer:e}}}(o))}}catch(t){ve(t,e)}}}function Se(e){var t,n;return{type:null!==(t=e.projectPart)&&void 0!==t?t:"",signed:e.signed,revision:e.revisionId,signers:(n=e.signatures,n.map(e=>({name:e.fullName,date:new Date(e.signedAt)})))}}let _e=function(e){return e.SET_GRUPI_MARKSONA_CODE_TO_TEXTS="SET_GRUPI_MARKSONA_CODE_TO_TEXTS",e.SET_GRUPP_CODE_TO_TEXTS="SET_GRUPP_CODE_TO_TEXTS",e.SET_PROJEKTI_OSA_CODE_TO_TEXTS="SET_PROJEKTI_OSA_CODE_TO_TEXTS",e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS="SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS",e.SET_EHITISED_CODE_TO_TEXTS="SET_EHITISED_CODE_TO_TEXTS",e.SET_PLANNING_FATYS_CODE_TO_TEXTS="SET_PLANNING_FATYS_CODE_TO_TEXTS",e}({});let je=function(e){return e.ADD_FILTER="ADD_FILTER",e.REMOVE_FILTER="REMOVE_FILTER",e.SET_FILTER="SET_FILTER",e.CLEAR_FILTER="CLEAR_FILTER",e.POPULATE_FILTER="POPULATE_FILTER",e.CLEAR_ALL_FILTERS="CLEAR_ALL_FILTERS",e}({});function Ee(e){return{type:je.POPULATE_FILTER,payload:{filter:e}}}function Ce(){return{type:je.CLEAR_ALL_FILTERS,payload:{}}}let ke=function(e){return e.SET_PERMISSIONS="SET_PERMISSIONS",e}({});let Te=0;function Pe(e){e||(e=Date.now().toString());const t=`${e}-${Te}`;return Te=(Te+1)%Number.MAX_SAFE_INTEGER,t}let Re=function(e){return e[e.FileRestricted=0]="FileRestricted",e}({});function Oe(e){const t=Pe();return{...e,id:t,error:e.error||!1}}const Ie={alerts:[],signRefusalOpen:!1,makeConfidentialOpen:!1,signDocumentListOpen:!1,restrictAccessOpen:!1,replaceFileOpen:!1,enableFilter:!0};let Ae=function(e){return e.SET_INFO="SET_INFO",e.TOGGLE_REFERENCE_CREATING="TOGGLE_REFERENCE_CREATING",e.TOGGLE_REFERENCE_CLONING="TOGGLE_REFERENCE_CLONING",e}({});function Me(e){return{type:Ae.TOGGLE_REFERENCE_CREATING,payload:{toggled:e}}}function De(e){return{type:Ae.TOGGLE_REFERENCE_CLONING,payload:{toggled:e}}}function Fe(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return e(Me(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.USE_BASE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&Le(t,e)}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Me(!1))})}}function Ne(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return e(De(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CLONE_BASE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&Le(t,e)}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(De(!1))})}}function Le(e,t){t(ze(e.projectId)),t(Ge(e.applicationType)),"LEGACY"===e.type?t(Qe(!0)):t(Qe(!1)),t(Ce()),t(nt()),t(at()),t(st()),t(lt())}let $e=function(e){return e.TOGGLE_PROJECT_CREATION="TOGGLE_PROJECT_CREATION",e.NAVIGATE_FORWARD_PROJECT_CREATION="NAVIGATE_FORWARD_PROJECT_CREATION",e.NAVIGATE_BACKWARD_PROJECT_CREATION="NAVIGATE_BACKWARD_PROJECT_CREATION",e.SET_CREATION_TYPE="SET_CREATION_TYPE",e.SET_PROJECT_ID="SET_PROJECT_ID",e.SET_APPLICATION_TYPE="SET_APPLICATION_TYPE",e.SET_REFERENCE="SET_REFERENCE",e.SET_FILES="SET_FILES",e.SET_PLANNING_FILES="SET_PLANNING_FILES",e.ADD_FILE="ADD_FILE",e.EDIT_FILE="EDIT_FILE",e.SELECT_FILE="SELECT_FILE",e.DESELECT_FILE="DESELECT_FILE",e.SELECT_ALL_FILES="SELECT_ALL_FILES",e.CLEAR_SELECTED_FILES="CLEAR_SELECTED_FILES",e.MODIFY_REQUESTS_IN_PROGRESS="MODIFY_REQUESTS_IN_PROGRESS",e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS="MODIFY_BLOCKING_REQUESTS_IN_PROGRESS",e.TOGGLE_FILE_POPOVER_OPEN="TOGGLE_FILE_POPOVER_OPEN",e.SET_APPLICATION_ID="SET_APPLICATION_ID",e.TOGGLE_IS_LOADING_CURRENT_PROJECT="TOGGLE_IS_LOADING_CURRENT_PROJECT",e.TOGGLE_PROJECT_NAME_SENDING="TOGGLE_PROJECT_NAME_SENDING",e.TOGGLE_DELETION_PENDING="TOGGLE_DELETION_PENDING",e.SET_ALLOWED_EXTENSIONS="SET_ALLOWED_EXTENSIONS",e.TOGGLE_IS_PROJECT_READ_ONLY="TOGGLE_IS_PROJECT_READ_ONLY",e.TOGGLE_IS_PROJECT_LEGACY="TOGGLE_IS_PROJECT_LEGACY",e.SET_CAN_ADD_AUDIT="SET_CAN_ADD_AUDIT",e.SET_CAN_REFERENCE_BASE_PROJECT="SET_CAN_REFERENCE_BASE_PROJECT",e.INITIALIZATION="INITIALIZATION",e}({});function Ve(e){return{type:$e.TOGGLE_PROJECT_CREATION,payload:{toggled:e}}}function Be(){return{type:$e.NAVIGATE_FORWARD_PROJECT_CREATION,payload:{}}}function ze(e){return{type:$e.SET_PROJECT_ID,payload:{value:e}}}function Ge(e){return{type:$e.SET_APPLICATION_TYPE,payload:{value:e}}}function Ue(e){return{type:$e.SET_REFERENCE,payload:{value:e}}}function He(e){return{type:$e.SET_FILES,payload:{files:e}}}function We(e){return{type:$e.SELECT_FILE,payload:{id:e}}}function qe(e){return{type:$e.DESELECT_FILE,payload:{id:e}}}function Ye(e){return{type:$e.MODIFY_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function Ke(e){return{type:$e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function Je(e){return{type:$e.TOGGLE_IS_LOADING_CURRENT_PROJECT,payload:{toggled:e}}}function Xe(e){return{type:$e.TOGGLE_PROJECT_NAME_SENDING,payload:{toggled:e}}}function Ze(e){return{type:$e.TOGGLE_DELETION_PENDING,payload:{toggled:e}}}function Qe(e){return{type:$e.TOGGLE_IS_PROJECT_LEGACY,payload:{toggled:e}}}function et(){return{type:$e.CLEAR_SELECTED_FILES,payload:{}}}function tt(e){return{type:$e.SET_CREATION_TYPE,payload:{type:e}}}function nt(){return async(e,t)=>{const{applicationId:n,isProceeding:r,isPlanningView:o}=t().projectState;if(n)return e(Je(!0)),fe()({method:"get",url:`${window.DOC2.API_BASE}${ye(window.DOC2.GET_CURRENT_PROJECT,{applicationNumber:n})}`}).then(t=>{var o;200===t.status&&("LEGACY"===t.data.type&&(e(Qe(!0)),e(ze(n))),"LEGACY"!==t.data.type&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType))),e(Ue(t.data.reference)),e((o=function(e,t){return{canCreateNewVersion:!t&&e.canCreateNewVersion,canRead:e.canRead,canAccessFiles:e.canAccessFiles,canWrite:!t&&e.canWrite,canDelete:!t&&e.canDelete,canSign:!t&&e.canSign,canCreateRestrictions:e.canCreateRestrictions,canAccessRestrictedFiles:e.canAccessRestrictedFiles,canCloneForEditing:!t&&e.canCloneForEditing}}(t.data.permission,r),{type:ke.SET_PERMISSIONS,payload:{permissions:o}})))}).catch(t=>{const n=t.response;if(400===n.status&&"ProjectNotStarted"===n.data[0].code)e(Ve(!0)),e(V(!1)),e(ze()),e(Ge());else if(o&&400===n.status&&"ProjectCannotBeStarted"===n.data[0].code){ve("error400_planningView",e)}else ve(t,e)}).finally(()=>e(Je(!1)));console.warn("loadCurrentProject: Missing applicationId")}}function rt(){return async(e,t)=>{const{applicationId:n}=t().projectState,{permissions:r}=t().permissions;if(n)return e(Xe(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType)),e(Ue(t.data.reference)),"LEGACY"===t.data.type?e(Qe(!0)):e(Qe(!1)),r.canCreateNewVersion?(e(Ce()),e(nt()),e(at()),e(st()),e(lt())):(e(Be()),e(nt())))}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Xe(!1))});console.warn("sendCreateProject: Missing applicationId")}}function ot(){return async(e,t)=>{const{applicationId:n}=t().projectState,{permissions:r}=t().permissions;if(n)return e(Xe(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_AUDIT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType)),e(Ue(t.data.reference)),e(Qe(!1)),r.canCreateNewVersion?(e(Ce()),e(nt()),e(at()),e(st()),e(lt())):(e(Be()),e(nt())))}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Xe(!1))});console.warn("sendCreateAudit: Missing applicationId")}}function it(){return async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState;if(n&&r)return e(Ze(!0)),fe()({method:"post",url:`${window.DOC2_BACKEND_URL}/application/${n}/project/${r}/cancel`,headers:{"Content-Type":"application/json"}}).then(t=>{if(204===t.status){e(He([])),e(nt())}}).catch(t=>ve(t,e)).finally(()=>e(Ze(!1)));console.warn("requestProjectDeletion: Missing required parameters",{applicationId:n,projectId:r})}}function at(){return async e=>fe()({method:"get",url:`${window.DOC2_BACKEND_URL}/config`}).then(t=>{const n=t.data;if(200===t.status){e((o=n.classifiers.projektiOsa,{type:_e.SET_PROJEKTI_OSA_CODE_TO_TEXTS,payload:{codes:o}})),e(function(e){return{type:_e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS,payload:{codes:e}}}(n.classifiers.projektiStaadium)),e(function(e){return{type:_e.SET_GRUPP_CODE_TO_TEXTS,payload:{codes:e}}}(n.classifiers.grupp)),e((r=n.allowedExtensions.map(e=>`.${e}`),{type:$e.SET_ALLOWED_EXTENSIONS,payload:{extensions:r}}));const t=n.classifiers.projektiOsa.map(e=>e.parentCode||e.code).filter((e,t,n)=>n.indexOf(e)===t);e(Ee({selector:"projOsa",values:t})),e(Ee({selector:"grupp",values:n.classifiers.grupp.map(e=>e.code)})),e(Ee({selector:"projStaadium",values:n.classifiers.projektiStaadium.map(e=>e.code)}))}var r,o}).catch(t=>ve(t,e))}function st(){return async(e,t)=>{const{applicationId:n}=t().projectState;return fe()({method:"get",url:`${window.REACT_APP_DOCUMENT_SERVICE_ENDPOINT}/document/${n}`}).then(t=>{const n=t.data;if(200===t.status){let t=n.buildingDatas||[];t=t.map(function(e){return{code:e.ehrCode,text:e.buildingName}}),e((r=t,{type:_e.SET_EHITISED_CODE_TO_TEXTS,payload:{codes:r}}));const o=n.documentType;o&&e(function(e){return async t=>fe()({method:"get",url:`${window.REACT_APP_CLASSIFIER_SERVICE_ENDPOINT}/classifier/faty/${e}`}).then(e=>{const n=e.data;if(200===e.status){const e=n.filter(e=>!!e.plankCode).map(e=>({code:e.plankCode,text:e.fatyName}));t(function(e){return{type:_e.SET_PLANNING_FATYS_CODE_TO_TEXTS,payload:{codes:e}}}(e))}}).catch(e=>ve(e,t))}(o))}var r}).catch(t=>ve(t,e))}}function lt(){return async(e,t)=>{const{applicationId:n,projectId:r,legacy:o,isPlanningProject:i}=t().projectState;if(!n||!r)return void console.warn("loadProjectFiles: Missing required parameters",{applicationId:n,projectId:r});const a=i?window.DOC2.GET_PLANNING_FILE_LIST:window.DOC2.GET_FILE_LIST,s=o?`${window.DOC2.API_BASE}${ye(window.DOC2.GET_FILE_LIST_LEGACY,{applicationId:n})}`:`${window.DOC2.API_BASE}${ye(a,{applicationNumber:n,projectId:r})}`;try{const t=await fe()({method:"get",url:s});if(200===t.status){if(i)return e(function(e){return{type:$e.SET_PLANNING_FILES,payload:{files:e}}}(t.data)),e(we());const n=[];for(const e of t.data)n.push(_t(e));e(He(n));const r=n.map(e=>e.projTunnus).filter((e,t,n)=>null!==e&&n.indexOf(e)===t),o=n.map(e=>e.jrkNr).filter((e,t,n)=>null!==e&&n.indexOf(e)===t);return e(Ee({selector:"projTunnus",values:r})),e(Ee({selector:"jrkNr",values:o})),e(we())}}catch(t){ve(t,e)}}}const ct=104857600,ut=314572800;async function dt(e){return fe()({url:`${window.DOC2.API_BASE}${window.DOC2.MULTIPART_INIT}`,data:JSON.stringify({fileName:e}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.data.uploadId)}async function pt(e,t,n){const r=new FormData;r.append("file",e);const o=new Blob([JSON.stringify({uploadId:t,partNumber:n})],{type:"application/json"});return r.append("json",o),fe()({url:`${window.DOC2.API_BASE}${window.DOC2.MULTIPART_UPLOAD}`,data:r,method:"POST",headers:{"Content-Type":"multipart/form-data"}})}function ft(e,t,n){return async(r,o)=>{const{applicationId:i,projectId:a}=o().projectState;if(!i||!e)return void console.warn("uploadContainer: Missing required parameters",{applicationId:i,container:!!e});if(e.size>ut){alert(t),r(Ye(1));try{await async function(e,t,n,r,o){const i=Math.ceil(t.size/ct),a=await dt(t.name);for(let e=0;e<i;e++){const n=e*ct,r=Math.min(n+ct,t.size),o=t.slice(n,r);await pt(o,a,e+1)}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.CONTAINER_COMPLETE,{applicationId:n})}`,data:JSON.stringify({uploadId:a}),method:"POST",headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(N({message:"Failid edukalt üles laaditud.",title:"Oled edukalt laadinud ülesse 1 faili."})),e(r?lt():nt()),o&&o())})}(r,e,i,a,n)}catch(e){ve(e,r)}finally{r(Ye(-1))}return}const s=new FormData;return s.append("file",e),r(Ye(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.UPLOAD_CONTAINER,{applicationNumber:i})}`,data:s,method:"POST"}).then(e=>{200===e.status&&(r(N({message:"Failid edukalt üles laaditud.",title:"Oled edukalt laadinud ülesse 1 faili."})),r(a?lt():nt()),n&&n())}).catch(e=>ve(e,r)).finally(()=>r(Ye(-1)))}}function gt(e){return async(t,n)=>{const{applicationId:r,projectId:o}=n().projectState;if(r&&o)return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_LEGACY_CONTAINER,{applicationId:r})}`,method:"GET",headers:{"Content-Type":"application/json"},responseType:"blob"}).then(t=>{200===t.status&&be(t),e&&e()}).catch(e=>ve(e,t));console.warn("downloadLegacyContainer: Missing required parameters",{applicationId:r,projectId:o})}}async function ht(e,t,n){const r=Math.ceil(e.size/ct),o=await dt(e.name);for(let t=0;t<r;t++){const n=t*ct,r=Math.min(n+ct,e.size),i=e.slice(n,r);await pt(i,o,t+1)}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.FILE_COMPLETE,{applicationId:t,projectId:n})}`,data:JSON.stringify({uploadId:o}),method:"POST",headers:{"Content-Type":"application/json"}})}function mt(e,t,n){return async(r,o)=>{const{applicationId:i,projectId:a,isPlanningProject:s}=o().projectState;if(!i||!a)return void console.warn("uploadFiles: Missing required parameters",{applicationId:i,projectId:a});if(0===e.length)return;const l=e.some(e=>e.size>ut);if(l){alert(t),r(Ye(1));try{await async function(e,t,n,r,o){for(const e of t)await ht(e,n,r);e(N({message:"Failid edukalt üles laaditud.",title:`Oled edukalt laadinud ülesse ${t.length} fail(i).`})),e(lt()),o&&o()}(r,e,i,a,n)}catch(e){ve(e,r)}finally{r(Ye(-1))}return}const c=new FormData;for(const t of e)c.append("files",t);r(Ye(1));const u=s?window.DOC2.UPLOAD_PLANNING_FILES:window.DOC2.UPLOAD_FILES;return fe()({url:`${window.DOC2.API_BASE}${ye(u,{applicationNumber:i,projectId:a})}`,data:c,method:"POST"}).then(t=>{200===t.status&&(r(N({message:"Failid edukalt üles laaditud.",title:`Oled edukalt laadinud ülesse ${e.length} fail(i).`})),r(lt()),n&&n())}).catch(e=>ve(e,r)).finally(()=>r(Ye(-1)))}}function vt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i}=r().projectState;if(o&&i)return n(Ye(1)),n(Ke(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DELETE_PROJECT_CONTAINER,{applicationNumber:o,projectId:i})}`,data:JSON.stringify({projektiOsa:e}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>{if(204===e.status)return n(lt()).then(()=>{t&&t()})}).catch(e=>ve(e,n)).finally(()=>{n(Ye(-1)),n(Ke(-1))});console.warn("requestDeleteContainer: Missing required parameters",{applicationId:o,projectId:i})}}function bt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i,selectedFilesIds:a}=r().projectState;let s=e;if(o&&i){if(!e){if(0===a.length)return;s=a}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DELETE_FILES,{applicationNumber:o,projectId:i})}`,method:"POST",headers:{"Content-Type":"application/json"},data:JSON.stringify(s)}).then(e=>{202===e.status&&n(lt()),t&&t()}).catch(e=>ve(e,n))}console.warn("requestDeleteFile: Missing required parameters",{applicationId:o,projectId:i})}}function yt(e){return async(t,n)=>{const{applicationId:r,projectId:o}=n().projectState,i=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_PROJEKTI_OSA_CONTAINER,{applicationId:r,projectId:o})}`;t(Ye(1)),t(Ke(1));try{const t=await fe()({url:i,method:"GET",responseType:"blob",params:{projektiOsa:e}});200===t.status&&be(t)}finally{t(Ye(-1)),t(Ke(-1))}}}const xt=e=>e.length>0&&"ehitiseSeos"in e[0];function wt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i,selectedFilesIds:a,legacy:s,projectFiles:l}=r().projectState;let c=null==e?void 0:e.map(e=>e.id);if(!o||!i)return void console.warn("downloadFiles: Missing required parameters",{applicationId:o,projectId:i});if(!e){if(0===a.length)return;c=a}let u=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_FILE,{applicationNumber:o,projectId:i})}`;return s&&(u=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_FILE_LEGACY,{applicationNumber:o,projectId:i})}`,xt(l)&&(c=l.filter(e=>{var t;return null===(t=c)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.fileReference).filter(Boolean))),n(Ye(1)),n(Ke(1)),fe()({url:u,method:"POST",data:JSON.stringify(c),headers:{"Content-Type":"application/json"},responseType:"blob"}).then(e=>{200===e.status&&be(e),t&&t()}).catch(t=>{if(!e||!xt(e))return ve(t,n);{const r=null==e?void 0:e.find(e=>{var t,n;return!!e.akPiirang&&((null===(t=c)||void 0===t?void 0:t.includes(e.id))||s&&e.fileReference&&(null===(n=c)||void 0===n?void 0:n.includes(e.fileReference)))});if(r&&403===t.response.status)return n(N({error:!0,template:Re.FileRestricted,props:{file:r}}))}}).finally(()=>{n(Ye(-1)),n(Ke(-1))})}}function St(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return fe()({method:"get",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_OPTIONS,{applicationId:n})}`}).then(t=>{if(200===t.status&&t.data&&(e((n=t.data.canAddAudit,{type:$e.SET_CAN_ADD_AUDIT,payload:{value:n}})),e(function(e){return{type:$e.SET_CAN_REFERENCE_BASE_PROJECT,payload:{value:e}}}(t.data.canReferenceBaseProject)),t.data.baseProjectInfo)){const n=t.data.baseProjectInfo;e(function(e){return{type:Ae.SET_INFO,payload:{info:e}}}({nr:n.nr,type:n.type,signatureDate:J(new Date(n.signatureDate)),disabled:n.disabled,documentTypeName:n.documentTypeName}))}var n}).catch(t=>{ve(t,e)});console.warn("loadCreateProjectOptions: Missing applicationId")}}function _t(e){var t;let n=null;return n=1==e.ehitiseSeosKoigiga?"Kõik":e.ehitiseSeosEhrKood+"",{id:e.projectFileId,grupp:e.grupp,failiNimetus:e.name,fileReference:e.fileReference,projOsa:e.projektiOsa,projTunnus:e.projektiTunnus,jrkNr:e.jrkNr,projStaadium:e.projektiStaadium,dateCreated:e.dateCreated,ehitiseSeos:n,akPiirang:e.akPiirang,ybnVersioon:e.ybnVersioon,errorMessages:e.errorMessages,locked:e.locked,hasChanged:null!==(t=e.hasChanged)&&void 0!==t&&t,signers:[]}}var jt=a(526);const Et="http://localhost:8080".replace(/\/+$/,"");class Ct{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe();var r;(this.basePath=t,this.axios=n,e)&&(this.configuration=e,this.basePath=null!==(r=e.basePath)&&void 0!==r?r:t)}}class kt extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Tt={},Pt="https://example.com",Rt=function(e,t,n){if(null==n)throw new kt(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Ot=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}};function It(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)||t instanceof Set?t.forEach(t=>It(e,t,n)):Object.keys(t).forEach(r=>It(e,t[r],`${n}${""!==n?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const At=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];It(t,r),e.search=t.toString()},Mt=function(e,t){return t instanceof Set?Array.from(t):t},Dt=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{},Mt):e||""},Ft=function(e){return e.pathname+e.search+e.hash},Nt=function(e,t,n,r){return function(){var o;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const s={...e.options,url:(i.defaults.baseURL?"":null!==(o=null==r?void 0:r.basePath)&&void 0!==o?o:a)+e.url};return i.request(s)}};const Lt=function(e){const t=function(e){return{finalizeIdCardSigning:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rt("finalizeIdCardSigning","signature",t),Rt("finalizeIdCardSigning","genericSignFinalizeRequest",n);const o=new URL("/api/v1/generic/finalize-id-card-signing",Pt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l={};await Ot(s,e),void 0!==t&&(l.signature=t),s["Content-Type"]="application/json",s.Accept="*/*,application/json",At(o,l);let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=Dt(n,a,e),{url:Ft(o),options:a}},finalizeMobileSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("finalizeMobileSigning","genericSignFinalizeRequest",t);const r=new URL("/api/v1/generic/finalize-mobile-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="*/*,application/json",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},finalizeSmartSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("finalizeSmartSigning","genericSignFinalizeRequest",t);const r=new URL("/api/v1/generic/finalize-smart-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="*/*,application/json",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},prepareIdCardSigning:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Rt("prepareIdCardSigning","certificate",t),Rt("prepareIdCardSigning","genericIdCardSignInitRequest",n);const o=new URL("/api/v1/generic/prepare-id-card-signing",Pt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l={};await Ot(s,e),void 0!==t&&(l.certificate=t),s["Content-Type"]="application/json",s.Accept="*/*,application/json",At(o,l);let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=Dt(n,a,e),{url:Ft(o),options:a}},prepareMobileSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("prepareMobileSigning","genericMobileIdSignInitRequest",t);const r=new URL("/api/v1/generic/prepare-mobile-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="*/*,application/json",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},prepareSmartSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("prepareSmartSigning","genericSmartIdSignInitRequest",t);const r=new URL("/api/v1/generic/prepare-smart-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="*/*,application/json",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}}}}(e);return{async finalizeIdCardSigning(n,r,o){var i,a,s;const l=await t.finalizeIdCardSigning(n,r,o),c=null!==(i=null==e?void 0:e.serverIndex)&&void 0!==i?i:0,u=null===(a=Tt["GenericSigningApi.finalizeIdCardSigning"])||void 0===a||null===(s=a[c])||void 0===s?void 0:s.url;return(t,n)=>Nt(l,fe(),Et,e)(t,u||n)},async finalizeMobileSigning(n,r){var o,i,a;const s=await t.finalizeMobileSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.finalizeMobileSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async finalizeSmartSigning(n,r){var o,i,a;const s=await t.finalizeSmartSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.finalizeSmartSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async prepareIdCardSigning(n,r,o){var i,a,s;const l=await t.prepareIdCardSigning(n,r,o),c=null!==(i=null==e?void 0:e.serverIndex)&&void 0!==i?i:0,u=null===(a=Tt["GenericSigningApi.prepareIdCardSigning"])||void 0===a||null===(s=a[c])||void 0===s?void 0:s.url;return(t,n)=>Nt(l,fe(),Et,e)(t,u||n)},async prepareMobileSigning(n,r){var o,i,a;const s=await t.prepareMobileSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.prepareMobileSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async prepareSmartSigning(n,r){var o,i,a;const s=await t.prepareSmartSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.prepareSmartSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)}}};class $t extends Ct{finalizeIdCardSigning(e,t,n){return Lt(this.configuration).finalizeIdCardSigning(e,t,n).then(e=>e(this.axios,this.basePath))}finalizeMobileSigning(e,t){return Lt(this.configuration).finalizeMobileSigning(e,t).then(e=>e(this.axios,this.basePath))}finalizeSmartSigning(e,t){return Lt(this.configuration).finalizeSmartSigning(e,t).then(e=>e(this.axios,this.basePath))}prepareIdCardSigning(e,t,n){return Lt(this.configuration).prepareIdCardSigning(e,t,n).then(e=>e(this.axios,this.basePath))}prepareMobileSigning(e,t){return Lt(this.configuration).prepareMobileSigning(e,t).then(e=>e(this.axios,this.basePath))}prepareSmartSigning(e,t){return Lt(this.configuration).prepareSmartSigning(e,t).then(e=>e(this.axios,this.basePath))}}class Vt{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.awsv4=t.awsv4,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...null===(e=t.baseOptions)||void 0===e?void 0:e.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Bt=require("ehr-auth-react");let zt=function(e){return e.ENABLE_SIGN_PROJEKTI_OSA="ENABLE_SIGN_PROJEKTI_OSA",e.SET_SIGN_CHALLENGE="SET_SIGN_CHALLENGE",e.SET_SIGN_SESSION="SET_SIGN_SESSION",e.COMPLETE_SIGNING="COMPLETE_SIGNING",e.TOGGLE_SIGN_IN_PROGRESS="TOGGLE_SIGN_IN_PROGRESS",e.CANCEL_SIGN_PROJEKTI_OSA="CANCEL_SIGN_PROJEKTI_OSA",e.SET_SIGN_METHOD="SET_SIGN_METHOD",e.SET_MOBILE_NUMBER="SET_MOBILE_NUMBER",e}({});function Gt(e,t){return{type:zt.ENABLE_SIGN_PROJEKTI_OSA,payload:{revision:e,projektiOsa:t}}}function Ut(e){return{type:zt.SET_SIGN_METHOD,payload:{method:e}}}function Ht(e){return{type:zt.SET_SIGN_CHALLENGE,payload:{text:e}}}function Wt(e){return{type:zt.SET_SIGN_SESSION,payload:{text:e}}}function qt(e){return{type:zt.SET_MOBILE_NUMBER,payload:{text:e}}}function Yt(){return{type:zt.COMPLETE_SIGNING,payload:{}}}function Kt(e){return{type:zt.TOGGLE_SIGN_IN_PROGRESS,payload:{toggled:e}}}function Jt(){return{type:zt.CANCEL_SIGN_PROJEKTI_OSA,payload:{}}}function Xt(){return(e,t)=>{const{method:n}=t().signPopup;switch(n){case ue.ID_CARD:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o}=t().signPopup;if(n&&r&&o)try{e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,i=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:a,fileName:s,messageQueueName:l,correlationId:c,metadata:u}=i.data,d=window.hwcrypto;if(!d)throw new TypeError("Could not find hwcrypto");const p=await d.getCertificate({lang:"et"}),f=jt.iI(new Uint8Array(p.encoded)),g=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),h=await g.prepareIdCardSigning(f,{fileId:a,fileName:s,messageQueueName:l,correlationId:c,metadata:u,addToExisting:!1}),{signatureId:m,containerId:v,dataToSignHash:b,digestAlgorithm:y}=h.data;e(Wt(m||""));const x=new Uint8Array(jt.bg(b||""));let w=y||"SHA-256";w.startsWith("SHA")&&!w.startsWith("SHA-")&&(w=w.replace("SHA","SHA-"));const S=await d.sign(p,{type:w,value:x},{lang:"et"}),_=jt.iI(S.value);await g.finalizeIdCardSigning(_,{containerId:v||"",signatureId:m||""}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}});break;case ue.MOBILE_ID:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o,mobileNumber:i}=t().signPopup;if(n&&r&&o&&i)try{var a,s,l;e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,c=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:u,fileName:d,messageQueueName:p,correlationId:f,metadata:g}=c.data,h=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),m=(null===(a=Bt.KeycloakService.keycloak)||void 0===a||null===(s=a.tokenParsed)||void 0===s||null===(l=s.ehr)||void 0===l?void 0:l.id_code)||"",v=await h.prepareMobileSigning({personIdentifier:m,phoneNr:i,fileId:u,fileName:d,messageQueueName:p,correlationId:f,metadata:g,addToExisting:!1}),{containerId:b,signatureId:y,challengeId:x}=v.data;e(Ht(x||"")),e(Wt(y||"")),await h.finalizeMobileSigning({containerId:b||"",signatureId:y||""}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}else console.error("[startMobileIdSigning] Aborted — missing required fields:",{applicationId:n,projectId:r,projektiOsa:o,mobileNumber:i})});break;case ue.SMART_ID:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o}=t().signPopup;if(n&&r&&o)try{var i,a,s;e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,l=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:c,fileName:u,messageQueueName:d,correlationId:p,metadata:f}=l.data,g=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),h=(null===(i=Bt.KeycloakService.keycloak)||void 0===i||null===(a=i.tokenParsed)||void 0===a||null===(s=a.ehr)||void 0===s?void 0:s.id_code)||"",m=await g.prepareSmartSigning({personIdentifier:h,fileId:c,fileName:u,messageQueueName:d,correlationId:p,metadata:f,addToExisting:!1}),{containerId:v,signatureId:b,challengeId:y}=m.data;e(Ht(y||"")),e(Wt(b||"")),await g.finalizeSmartSigning({containerId:v||"",signatureId:b||""}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}})}}}const Zt=(0,P.connect)(function(e){return{isOpen:e.uiState.signDocumentListOpen,signState:e.signState,projectId:e.projectState.projectId,permissions:e.permissions.permissions,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0}},function(e){return{togglePopup:t=>{e(F(t))},addAlert:t=>{e(N(t))},enableSignPopup:(t,n)=>{e(Gt(t,n))},unlockContainer:t=>{e(vt(void 0,t))},downloadProjektiOsaContainer:t=>{e(yt(t))}}})(ce);let Qt=function(e){return e.SET_FILE_IDS="SET_FILE_IDS",e.RELEASE_FILE_IDS="RELEASE_FILE_IDS",e.MODIFY_REQUESTS_IN_PROGRESS="MODIFY_REQUESTS_IN_PROGRESS",e}({});function en(e){return{type:Qt.SET_FILE_IDS,payload:{fileIds:e}}}function tn(e){return{type:Qt.RELEASE_FILE_IDS,payload:{fileIds:e}}}function nn(e){return{type:Qt.MODIFY_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function rn(e,t,n,r){return async(o,i)=>{const a=i(),{applicationId:s}=a.projectState;if(s)return o(nn(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_RESTRICTION,{applicationId:s})}`,data:JSON.stringify({failid:e.map(e=>e.fileReference),juriidilineAlus:t,pohjendus:n,piirangLopp:r}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>{200===e.status&&o(lt())}).catch(e=>ve(e,o)).finally(()=>{o(nn(-1)),o(en(void 0))})}}function on(e){return async(t,n)=>{const r=n(),{applicationId:o}=r.projectState;if(o)return t(nn(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.LIFT_RESTRICTION,{applicationId:o})}`,data:JSON.stringify({failid:e.map(e=>e.fileReference)}),method:"DELETE",headers:{"Content-Type":"application/json"}}).then(e=>{204===e.status&&t(lt())}).catch(e=>{ve(e,t)}).finally(()=>{t(nn(-1)),t(tn(void 0))})}}const an=e=>{let{closePopup:t,files:n,requestRestrictFiles:r,requestsInProgress:o,permissions:i}=e;const a=(0,G.useIntl)(),[s,l]=(0,d.useState)(),[c,u]=(0,d.useState)(),[p,f]=(0,d.useState)();return(0,R.jsx)(R.Fragment,{children:null!=n&&n.length?(0,R.jsxs)(I,{title:"popupRestrictAccess.title",onCancel:()=>t(),onAccept:function(){null!=n&&n.length&&s&&c&&p&&r(n,s,c,p)},disableAccept:o||!(s&&c&&p),children:[(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"popupRestrictAccess.overview"})}),(0,R.jsx)("ul",{className:"list-with-arrows",children:n.map(e=>(0,R.jsx)("li",{children:e.failiNimetus},e.id))}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.basis"}),info:{content:"popupRestrictAccess.basis.label"},required:!0,component:(0,R.jsx)(g.TextArea,{placeholder:a.formatMessage({id:"popupRestrictAccess.basis.placeholder"}),onChange:e=>l(e),maxLength:4e3})}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.explanation"}),info:{content:"popupRestrictAccess.explanation.label"},required:!0,component:(0,R.jsx)(g.TextArea,{placeholder:a.formatMessage({id:"popupRestrictAccess.explanation.placeholder"}),onChange:e=>u(e),maxLength:4e3})}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.endDate"}),info:{content:"popupRestrictAccess.endDate.label"},required:!0,component:(0,R.jsx)(g.DatePicker,{onChange:e=>f(e)})})]}):null})};const sn=(0,P.connect)(function(e){const t=new Set(e.restrictFilesState.fileIds);return{files:t&&e.projectState.projectFiles.filter(e=>t.has(e.id)),permissions:e.permissions.permissions,requestsInProgress:e.restrictFilesState.requestsInProgress}},function(e){return{closePopup:()=>{e(en(void 0))},requestRestrictFiles:(t,n,r,o)=>{e(rn(t,n,r,o))}}})(an);var ln;function cn(){return cn=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},cn.apply(null,arguments)}function un(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",cn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,ln||(ln=d.createElement("path",{d:"M13.474 8.644l.882.882-8.683 8.682h-.881v-.881l8.682-8.683zm3.45-5.769a.96.96 0 00-.67.278L14.5 4.907 18.093 8.5l1.754-1.753a.954.954 0 000-1.352l-2.242-2.242a.941.941 0 00-.68-.278zm-3.45 3.057l-10.599 10.6v3.593h3.594l10.599-10.6-3.594-3.593z",fill:"#34394C"})))}const dn=d.forwardRef(un);a.p;var pn;function fn(){return fn=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},fn.apply(null,arguments)}function gn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",fn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,pn||(pn=d.createElement("path",{d:"M15.333 8.625v9.583H7.667V8.625h7.666zm-1.437-5.75H9.104l-.958.958H4.792V5.75h13.416V3.833h-3.354l-.958-.958zm3.354 3.833H5.75v11.5c0 1.055.862 1.917 1.917 1.917h7.666a1.922 1.922 0 001.917-1.917v-11.5z",fill:"#34394C"})))}const hn=d.forwardRef(gn);a.p;var mn;function vn(){return vn=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},vn.apply(null,arguments)}function bn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",vn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,mn||(mn=d.createElement("path",{d:"M17.931 9.285A6.553 6.553 0 0011.5 4a6.559 6.559 0 00-5.819 3.535A5.245 5.245 0 001 12.75 5.254 5.254 0 006.25 18h11.375A4.377 4.377 0 0022 13.625c0-2.31-1.794-4.182-4.069-4.34zm-.306 6.965H6.25a3.499 3.499 0 01-3.5-3.5 3.477 3.477 0 013.115-3.474l.936-.096.438-.831A4.785 4.785 0 0111.5 5.75a4.815 4.815 0 014.716 3.876l.263 1.313 1.338.096a2.608 2.608 0 012.433 2.59 2.633 2.633 0 01-2.625 2.625zM8 11.875h2.231V14.5h2.538v-2.625H15l-3.5-3.5-3.5 3.5z",fill:"#34394C"})))}const yn=d.forwardRef(bn);a.p;var xn,wn;function Sn(){return Sn=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},Sn.apply(null,arguments)}function _n(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Sn({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,xn||(xn=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),wn||(wn=d.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8-1.41-1.42z",fill:"#00B649"})))}const jn=d.forwardRef(_n);a.p;var En,Cn;function kn(){return kn=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},kn.apply(null,arguments)}function Tn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",kn({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,En||(En=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),Cn||(Cn=d.createElement("path",{d:"M9 15h6v2h-2v-2h-2v2H9v-2zm0-8h6v6h-2V7h-2v6H9V7zm2.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",fill:"#FDEBA4"})))}const Pn=d.forwardRef(Tn);a.p;var Rn,On;function In(){return In=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},In.apply(null,arguments)}function An(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",In({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Rn||(Rn=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),On||(On=d.createElement("path",{d:"M9 15h6v2h-2v-2h-2v2H9v-2zm0-8h6v6h-2V7h-2v6H9V7zm2.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",fill:"#FF7373"})))}const Mn=d.forwardRef(An);a.p;var Dn,Fn;function Nn(){return Nn=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},Nn.apply(null,arguments)}function Ln(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Dn||(Dn=d.createElement("g",{fill:"none"},d.createElement("path",{d:"M0 0h24v24H0V0z"}),d.createElement("path",{d:"M0 0h24v24H0V0z",opacity:.87}))),Fn||(Fn=d.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})))}const $n=d.forwardRef(Ln);a.p;var Vn,Bn,zn;function Gn(){return Gn=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},Gn.apply(null,arguments)}function Un(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Gn({width:36,height:18,viewBox:"0 0 36 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Vn||(Vn=d.createElement("rect",{x:1,y:1,width:28,height:16,rx:3,fill:"#fff",stroke:"#FF7373",strokeWidth:2})),Bn||(Bn=d.createElement("circle",{cx:29,cy:9,r:5.25,fill:"#fff"})),zn||(zn=d.createElement("path",{d:"M27.25 10.75h3.5v1.167h-1.167V10.75h-1.166v1.167H27.25V10.75zm0-4.667h3.5v3.5h-1.167v-3.5h-1.166v3.5H27.25v-3.5zm1.744-2.916A5.83 5.83 0 0023.167 9a5.83 5.83 0 005.827 5.833A5.837 5.837 0 0034.834 9a5.837 5.837 0 00-5.84-5.833zm.006 10.5A4.665 4.665 0 0124.333 9 4.665 4.665 0 0129 4.333 4.665 4.665 0 0133.667 9 4.665 4.665 0 0129 13.667zM12.11 10.535H9.542L9.054 12H7.496l2.647-7.11H11.5L14.161 12h-1.557l-.494-1.465zM9.938 9.35h1.777l-.894-2.662-.883 2.662zm7.114-.2l-.762.82V12h-1.465V4.89h1.465v3.223l.645-.884 1.811-2.338h1.802L18.023 8.05 20.621 12h-1.743l-1.826-2.852z",fill:"#FF7373"})))}const Hn=d.forwardRef(Un),Wn=(a.p,!1),qn=e=>{let{file:t,className:n,titleClassName:r}=e;return t.akPiirang?(0,R.jsxs)("div",{className:n,children:[(0,R.jsx)("p",{className:r,children:(0,R.jsx)(g.Text,{raw:"document.isRestricted"})}),(0,R.jsx)(g.Text,{raw:"document.restriction.owner",values:{owner:t.akPiirang.teabeValdaja}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.reason",values:{reason:t.akPiirang.juriidilineAlus}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.description"}),(0,R.jsx)("br",{}),t.akPiirang.pohjendus?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(g.Text,{raw:t.akPiirang.pohjendus}),(0,R.jsx)("br",{})]}):null,(0,R.jsx)(g.Text,{raw:"document.restriction.start",values:{dateTime:J(new Date(t.akPiirang.piirangAlgus))}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.end",values:{dateTime:J(new Date(t.akPiirang.piirangLopp))}})]}):null},Yn=e=>{let{files:t,loadFiles:n,activeFilters:r,deselectFile:o,selectFile:i,setEditFile:a,requestDeleteFile:s,projektiOsa:l,toggleFilePopover:c,downloadFiles:u,openPopoverId:p,onReplaceFile:f,applicationId:h,isAudit:m,toggleRestrictAccessPopupWith:v,toggleReleaseAccessPopupWith:b,selectedFilesIds:y,clearAllFiles:x,selectAllFiles:w,permissions:S,unlockFile:_,isProjectContainerSignedByAnyone:j,isBlockingRequestInProgress:E,isLegacy:C}=e;const[k,T]=(0,d.useState)({offset:0,limit:25}),[P,O]=(0,d.useState)([]),[I,A]=(0,d.useState)([]);function M(e){F(e,-1),N(e,void 0)}function D(e){F(e,1),N(void 0,e)}function F(e,t){0!==t&&O(n=>[...n.sort((n,r)=>n[e]<r[e]?t:n[e]>r[e]?-t:0)])}function N(e,n){A([(0,R.jsx)(g.Checkbox,{disabled:!(S.canRead||S.canWrite),onChange:L,checked:0!==t.length&&y.length===t.length}),(0,R.jsx)(le,{title:"document.fileName",index:"failiNimetus",onAccenting:M,onDescending:D,isAccenting:"failiNimetus"===e,isDescending:"failiNimetus"===n}),(0,R.jsx)(le,{title:m?"document.auditId":"document.projectId",index:"projTunnus",onAccenting:M,onDescending:D,isAccenting:"projTunnus"===e,isDescending:"projTunnus"===n}),...m?[]:[(0,R.jsx)(le,{title:"document.projectStage",index:"projStaadium",onAccenting:M,onDescending:D,isAccenting:"projStaadium"===e,isDescending:"projStaadium"===n})],(0,R.jsx)(le,{title:m?"document.auditType":"document.projectType",index:"projOsa",onAccenting:M,onDescending:D,isAccenting:"projOsa"===e,isDescending:"projOsa"===n}),(0,R.jsx)(le,{title:"document.groupName",index:"grupp",onAccenting:M,onDescending:D,isAccenting:"grupp"===e,isDescending:"grupp"===n}),(0,R.jsx)(le,{title:"document.jrkNr",index:"jrkNr",onAccenting:M,onDescending:D,isAccenting:"jrkNr"===e,isDescending:"jrkNr"===n}),(0,R.jsx)(le,{title:"document.hasErrorMessagesTitle",index:"errorMessages",onAccenting:M,onDescending:D,isAccenting:"errorMessages"===e,isDescending:"errorMessages"===n}),"",(0,R.jsx)(le,{title:"document.hasChangedTitle",index:"hasChanged",onAccenting:M,onDescending:D,isAccenting:"hasChanged"===e,isDescending:"hasChanged"===n}),"",""])}function L(e){(0!==t.length&&y.length===t.length)!==e&&(e?w():x())}function $(e){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(g.Text,{raw:"unlockDocument.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"unlockDocument.content"})})]}),(0,R.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",children:(0,R.jsx)(g.Text,{raw:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{colourScheme:"success",type:"reset",onClick:()=>{e.projOsa&&_(e.projOsa)},disabled:!e.projOsa,children:(0,R.jsx)(g.Text,{raw:"unlockDocument.open"})})]})]})}function V(e,t){return(0,R.jsx)(g.ControlledPopover,{content:(0,R.jsxs)("ul",{className:"doc2--paginated-table-more-popup",children:[(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>a(e),disabled:e.locked||!S.canWrite||j,children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.editDocument"})})]})}),Wn,(0,R.jsx)("li",{children:(0,R.jsx)(g.DeletePopover,{onConfirm:()=>s([e.id]),children:(0,R.jsxs)("button",{className:"doc2--icon-button doc2--no-padding mt-1",disabled:!S.canWrite,children:[(0,R.jsx)(hn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.deleteDocument"})})]})})}),S.canCreateRestrictions&&!e.akPiirang&&(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>v([e.id]),children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.restrictAccess"})})]})}),S.canCreateRestrictions&&!!e.akPiirang&&(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>b([e.id]),children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.liftRestriction"})})]})})]}),placement:"bottom-end",toggle:()=>c(e.id),open:p===e.id,children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:E,children:(0,R.jsx)(dn,{})})})}function B(e,t){var n;let r=(0,R.jsx)("button",{className:"doc2--icon-button"});e.locked&&(r=j?(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(g.Text,{raw:"unlockDocument.disabled"}),placement:"bottom",children:(0,R.jsx)("div",{className:"doc2--icon-button-container-inline",children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:!0,children:(0,R.jsx)($n,{height:"24px",width:"24px",fill:se.colorGrey})})})}):(0,R.jsx)(g.Popover,{content:$(e),placement:"left",children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:E,children:(0,R.jsx)($n,{height:"24px",width:"24px",fill:se.colorGrey})})}));let a=(0,R.jsx)("button",{className:"doc2--icon-button"});e.hasChanged&&(a=(0,R.jsx)(g.Info,{placement:"bottom",tooltipText:"document.hasChanged"}));let s=(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(jn,{})});return(null===(n=e.errorMessages)||void 0===n?void 0:n.length)>0&&(s=j?(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(g.Text,{raw:"document.signedInvalidFileInfo"}),placement:"bottom-end",theme:"warning",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Pn,{})})}):(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)("ul",{children:e.errorMessages.map(t=>(0,R.jsx)("li",{children:t},`${e.id}-${t}`))}),placement:"bottom-end",theme:"danger",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Mn,{})})})),e.akPiirang&&(s=(0,R.jsxs)("div",{className:"doc2--table-flex-content",children:[s,(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(qn,{file:e,className:"restricted-message",titleClassName:"restricted-message-title"}),placement:"bottom-end",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Hn,{})})})]})),[(0,R.jsx)(g.Checkbox,{checked:-1!==y.indexOf(e.id),onChange:t=>function(e,t){-1!==y.indexOf(e)!==t&&(t?i(e):o(e))}(e.id,t),disabled:!(S.canRead||S.canWrite)}),(0,R.jsx)(g.Tooltip,{content:e.failiNimetus,placement:"bottom",children:(0,R.jsx)("button",{className:"doc2--icon-button doc2--no-padding doc2--paginated-table-item",onClick:()=>function(e){return u([e])}(e),children:(0,R.jsx)("span",{className:"link-gray doc2--paginated-table-item--limited-content",children:e.failiNimetus})})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:e.projTunnus}),...m?[]:[(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(K,{code:e.projStaadium})})],(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(Y,{code:e.projOsa})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(q,{code:e.grupp,className:"doc2--paginated-table-item--limited-content"})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:e.jrkNr}),s,r,a,V(e)]}return(0,d.useEffect)(()=>{N()},[t,y]),(0,d.useEffect)(()=>{h&&n()},[h,n]),(0,d.useEffect)(()=>{O([...t].filter(e=>0===r.filter(t=>{var n;if("projOsa"===t.selector){const n=function(e,t){var n;const r=null===(n=e.filter(e=>e.code===t)[0])||void 0===n?void 0:n.parentCode;let o;return o=null===r?t:r,o}(l,e.projOsa);return!t.values.includes(n||"")}const r=null===(n=e[t.selector])||void 0===n?void 0:n.toString();return!t.values.includes(r||"")}).length)),D("errorMessages")},[t,r]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{className:"doc2--loading-overlay",children:[!C||P&&0!==P.length?(0,R.jsx)(g.CollapseTable,{content:P.map((e,t)=>(0,R.jsx)(g.CollapseTableRow,{fields:B(e)})).slice(k.offset,k.offset+k.limit),headers:I}):(0,R.jsx)("div",{className:"legacy-project-no-files-block",children:(0,R.jsx)(g.Text,{raw:"documents.cannotShowLegacyFiles"})}),(0,R.jsx)("div",{className:"doc2--loading-overlay--indicator "+(E?"doc2--loading-overlay--indicator--visible":""),children:(0,R.jsx)(g.Loader,{})})]}),(0,R.jsx)(g.Pagination,{pager:{offset:k.offset,limit:k.limit,total:P.length},onPaginationReload:T})]})};let Kn=function(e){return e.SET_EDIT_FILE="SET_EDIT_FILE",e.CLEAR_EDIT_FILE="CLEAR_EDIT_FILE",e.ADD_EDIT_ERROR="ADD_EDIT_ERROR",e.REMOVE_EDIT_ERROR="REMOVE_EDIT_ERROR",e.CLEAR_EDIT_ERRORS="CLEAR_EDIT_ERRORS",e.TOGGLE_EDIT_RESPONSE_PENDING="TOGGLE_EDIT_RESPONSE_PENDING",e}({});function Jn(e){return{type:Kn.SET_EDIT_FILE,payload:{file:e}}}function Xn(){return{type:Kn.CLEAR_EDIT_FILE,payload:{}}}function Zn(e){return{type:Kn.ADD_EDIT_ERROR,payload:{error:e}}}function Qn(){return{type:Kn.CLEAR_EDIT_ERRORS,payload:{}}}function er(e){return{type:Kn.TOGGLE_EDIT_RESPONSE_PENDING,payload:{toggled:e}}}function tr(){return(e,t)=>{const n=t().editFileState.editFile,{applicationId:r,projectId:o}=t().projectState;n&&n.id&&r&&o&&(e(er(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/application/${r}/project/${o}/file/${n.id}`,method:"GET"}).then(t=>{200===t.status&&(e(Jn(function(e,t){let n=null;n=1==e.ehitiseSeosKoigiga?"Kõik":e.ehitiseSeosEhrKood+"";return{id:t,ehitiseSeos:n,...e}}(t.data,n.id))),e(er(!1)))}).catch(t=>ve(t,e)))}}function nr(){return(e,t)=>{const n=t().editFileState.editFile,{applicationId:r,projectId:o}=t().projectState;n&&r&&o&&(e(er(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/application/${r}/project/${o}/file/${n.id}`,method:"PUT",data:JSON.stringify(rr(n)),headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(lt()),e(Xn()),e(Qn()),e(er(!1)))}).catch(t=>{const n=t.response;switch(n.status){case 409:case 422:{const t=n.data[0];e(Zn({field:t.field,message:t.message}));break}default:ve(t,e)}e(er(!1))}))}}function rr(e){var t;let n=!1,r=null;return"Kõik"===e.ehitiseSeos?(n=!0,r=null):null==e.ehitiseSeos?(n=!1,r=null):(n=!1,r=e.ehitiseSeos),{fileName:e.fileName||"",jrkNr:e.jrkNr||null,grupp:e.grupp||null,projektiOsa:e.projektiOsa||"",projektiTunnus:e.projektiTunnus||"",selgitus:e.selgitus||"",projektiStaadium:e.projektiStaadium||null,ehitiseSeosKoigiga:n,ehitiseSeosEhrKood:r,ybnVersioon:null!==(t=e.ybnVersioon)&&void 0!==t?t:void 0}}let or=function(e){return e.SET_FILE_REPLACE_NAME="TOGGLE_FILE_REPLACE_NAME",e.SET_FILE_REPLACE_ID="TOGGLE_FILE_REPLACE_ID",e.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS="TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS",e.CLEAR_FILE_REPLACE="CLEAR_FILE_REPLACE",e}({});function ir(e){return{type:or.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS,payload:{toggled:e}}}const ar=(0,P.connect)(function(e){return{files:e.projectState.projectFiles,activeFilters:e.filtersState.filters,openPopoverId:e.projectState.openPopoverId,applicationId:e.projectState.applicationId,isAudit:"AUDIT"===e.projectState.applicationType,projektiOsa:e.codeToTextState.projektiOsa,selectedFilesIds:e.projectState.selectedFilesIds,permissions:e.permissions.permissions,isProjectContainerSignedByAnyone:e.signState.projectContainer.signers.length>0,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0,isLegacy:e.projectState.legacy}},function(e){return{loadFiles:()=>{e(lt())},deselectFile:t=>{e(qe(t))},selectFile:t=>{e(We(t))},setEditFile:t=>{e(Jn({id:t.id})),e(tr())},requestDeleteFile:t=>{e(bt(t))},toggleFilePopover:t=>{e(function(e){return{type:$e.TOGGLE_FILE_POPOVER_OPEN,payload:{id:e}}}(t))},toggleRestrictAccessPopupWith:t=>{e(en(t))},toggleReleaseAccessPopupWith:t=>{e(tn(t))},downloadFiles:t=>{e(wt(t))},onReplaceFile:(e,t)=>{throw new RangeError("Replacing files is not allowed")},clearAllFiles:()=>{e(et())},selectAllFiles:()=>{e({type:$e.SELECT_ALL_FILES,payload:{}})},unlockFile:t=>{e(vt(t))}}})(Yn);var sr;function lr(){return lr=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},lr.apply(null,arguments)}function cr(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",lr({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,sr||(sr=d.createElement("path",{d:"M17.931 9.785A6.553 6.553 0 0011.5 4.5a6.559 6.559 0 00-5.819 3.535A5.245 5.245 0 001 13.25a5.254 5.254 0 005.25 5.25h11.375A4.377 4.377 0 0022 14.125c0-2.31-1.794-4.182-4.069-4.34zm-.306 6.965H6.25a3.499 3.499 0 01-3.5-3.5 3.477 3.477 0 013.115-3.474l.936-.096.438-.831A4.785 4.785 0 0111.5 6.25a4.815 4.815 0 014.716 3.876l.263 1.313 1.338.096a2.608 2.608 0 012.433 2.59 2.633 2.633 0 01-2.625 2.625zm-4.856-7H10.23v2.625H8l3.5 3.5 3.5-3.5h-2.231V9.75z",fill:"#34394C"})))}const ur=d.forwardRef(cr),dr=(a.p,e=>{let{requestDeleteProject:t,toggleSignDocumentListPopup:n,toggleRestrictAccessPopupWith:r,toggleReleaseAccessPopupWith:o,requestsInProgress:i,uploadFiles:a,deletionPending:s,allowedExtensions:l,selectedFileIds:c,requestDeleteFile:u,isLegacyProject:p,isAudit:f,permissions:h,downloadFiles:m,downloadLegacyContainer:v,clearSelectedFiles:b,createProject:y,cloneReferencedForEditing:x,isBlockingRequestInProgress:w,isRestrictedFileSelected:S,isNonRestrictedFilesSelected:_,hasRestrictedFiles:j,buttonConfig:E,fileCount:C}=e;const k=(0,G.useIntl)(),[T,P]=(0,d.useState)(!1),[O,I]=(0,d.useState)(!1),[A,M]=(0,d.useState)(!1),[D,F]=(0,d.useState)(0),[N,L]=(0,d.useState)({}),[$,V]=(0,d.useState)({});function B(e){const t=N[e];L({...N,[e]:!t})}function z(e){return(0,R.jsxs)("div",{id:e.id,"data-testid":e.id,children:[(0,R.jsx)("h4",{children:e.title}),(0,R.jsx)("p",{children:e.text}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",children:e.cancelText}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"success",onClick:async()=>{const t=e.id;V(e=>({...e,[t]:!0}));try{await e.onConfirm()}finally{V(e=>({...e,[t]:!1})),B(t)}},squared:!0,disabled:s||$[e.id],children:$[e.id]?(0,R.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):e.confirmText})]})]})}(0,d.useEffect)(()=>{i||(F(e=>e+1),I(!1))},[i]),(0,d.useEffect)(()=>{if(!E)return;const e={},t={};E.filter(e=>!!e.popover).forEach(n=>{e[n.popover.id]=!1,t[n.popover.id]=!1}),L(e),V(t)},[E]);const U=(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kas olete kindel, et soovite selle rea kustutada?",id:"buildingProject.delete.modal.header"})}),(0,R.jsx)("p",{children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kustutatud ridu ei ole võimalik hiljem taastada",id:"buildingProject.delete.modal.description",values:{br:(0,R.jsx)("br",{})}})}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",onClick:function(){P(!1)},disabled:s,children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Sulgen",id:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"danger",onClick:function(){t()},squared:!0,disabled:s,children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kustutan",id:"common.confirmation.modal.yes"})})]})]}),H=(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(G.FormattedMessage,{id:"popupEditReferenced.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(G.FormattedMessage,{id:"popupEditReferenced.overview"})}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",onClick:function(){M(!1)},disabled:w,children:(0,R.jsx)(G.FormattedMessage,{id:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"danger",onClick:function(){x()},squared:!0,disabled:w,children:(0,R.jsx)(G.FormattedMessage,{id:"button.verify"})})]})]});return(0,R.jsxs)("div",{id:"doc2--table-footer",className:"mt-2",children:[h.canDelete?(0,R.jsx)(g.ControlledPopover,{className:"popover-confirm",content:U,open:T,placement:"top-start",theme:"danger",toggle:()=>P(e=>!e),children:(0,R.jsx)(g.Button,{className:"ml-1 mt-1 push",colourScheme:"danger",disabled:w||!h.canDelete,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:f?"tableFooter.delete.audit":"tableFooter.delete"})})}):(0,R.jsx)("div",{className:"ml-1 mt-1 push"}),p?(0,R.jsx)(R.Fragment,{children:h.canAccessFiles&&(!j||h.canAccessRestrictedFiles)&&(0,R.jsxs)("button",{className:"doc2--icon-button mt-1",onClick:function(){v()},disabled:w,children:[(0,R.jsx)(ur,{className:"mr-1"}),(0,R.jsx)(g.Link,{text:"tableFooter.downloadContainer"})]})}):(0,R.jsx)(g.ControlledPopover,{content:(0,R.jsx)(g.FileUpload,{onUpload:function(e){if(!e)return;const t=k.formatMessage({id:"fileUpload.largeFileWarning",defaultMessage:"Laetavate failide hulgas esineb suuri faile. Failide laadimine ja töötlemine võib võtta aega. Palun ärge sulgege akent."});a(e,t)},uploadInProgress:!!i,accept:l,maxSizeBytes:2e9},D),placement:"left",open:O,toggle:()=>I(e=>!e),children:(0,R.jsxs)("button",{className:"doc2--icon-button mt-1",disabled:w||!h.canWrite,children:[(0,R.jsx)(yn,{className:"mr-1"}),(0,R.jsx)(g.Link,{text:"tableFooter.upload"})]})}),function(){if(E)return E.map(e=>e.popover?function(e){const t=$[e.popover.id];return(0,R.jsx)(g.ControlledPopover,{content:z(e.popover),placement:"top",open:N[e.popover.id],toggle:()=>{t||B(e.popover.id)},children:(0,R.jsx)(g.Button,{id:e.id,className:"ml-1 mt-1",colourScheme:e.theme,squared:!0,disabled:e.disabled,children:t?(0,R.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):e.text})})}(e):function(e){var t;return(0,R.jsx)(g.Button,{id:e.id,className:"ml-1 mt-1",colourScheme:null!==(t=e.theme)&&void 0!==t?t:"dark",squared:!0,onClick:e.onClick,disabled:e.disabled,children:e.text})}(e))}(),!p||h.canCreateRestrictions?(0,R.jsx)(g.Popover,{content:(0,R.jsxs)("ul",{children:[(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!h.canWrite,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.delete",onClick:function(){u(b)}})})}),h.canAccessFiles&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!(h.canRead||h.canAccessRestrictedFiles)||S&&!h.canAccessRestrictedFiles,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.download",onClick:function(){m(b)}})})}),h.canCreateRestrictions&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:S||!_,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.restrictAccess",onClick:()=>r([...c])})})}),h.canCreateRestrictions&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!S||_,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.releaseRestriction",onClick:()=>o([...c])})})})]}),children:(0,R.jsx)(g.Button,{className:"ml-1 mt-1",colourScheme:"dark",disabled:w||!(h.canRead||h.canWrite)||C<1,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:"tableFooter.manage"})})}):null,(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",squared:!0,onClick:()=>n(!0),disabled:w||C<1,children:(0,R.jsx)(g.Text,{raw:"tableFooter.openSigners"})}),h.canCreateNewVersion&&(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",squared:!0,onClick:y,disabled:w,children:(0,R.jsx)(g.Text,{raw:"tableFooter.makeChangeable"})}),h.canCloneForEditing&&(0,R.jsx)(g.ControlledPopover,{className:"popover-confirm",content:H,open:A,placement:"top-start",toggle:()=>M(e=>!e),children:(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",disabled:w,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:"tableFooter.makeChangeable"})})})]})});const pr=(0,P.connect)(function(e){const t=new Set(e.projectState.selectedFilesIds),n=e.projectState.projectFiles.filter(e=>!!e.akPiirang).length>0,r=e.projectState.projectFiles.filter(e=>t.has(e.id)&&!!e.akPiirang).length>0,o=e.projectState.projectFiles.filter(e=>t.has(e.id)&&!e.akPiirang).length>0;return{selectedFileIds:e.projectState.selectedFilesIds,requestsInProgress:e.projectState.requestsInProgress,deletionPending:e.projectState.deletionPending,allowedExtensions:e.projectState.allowedExtensions,isLegacyProject:e.projectState.legacy,isAudit:"AUDIT"===e.projectState.applicationType,permissions:e.permissions.permissions,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0,isRestrictedFileSelected:r,isNonRestrictedFilesSelected:o,hasRestrictedFiles:n,fileCount:e.projectState.projectFiles.length}},function(e){return{toggleSignRefusalPopup:t=>{e(D(t))},toggleSignDocumentListPopup:t=>{e(F(t))},toggleRestrictAccessPopupWith:t=>{e(en(t))},toggleReleaseAccessPopupWith:t=>{e(tn(t))},requestDeleteProject:()=>{e(it())},uploadFiles:(t,n)=>{e(mt(t,n))},requestDeleteFile:t=>{e(bt(void 0,t))},downloadFiles:t=>{e(wt(void 0,t))},downloadLegacyContainer:t=>{e(gt(t))},clearSelectedFiles:()=>{e(et())},createProject:()=>{e(rt())},cloneReferencedForEditing:()=>{e(Ne())}}})(dr);var fr=function(e){return e[e.Reference=0]="Reference",e[e.Normal=1]="Normal",e[e.Legacy=2]="Legacy",e[e.Audit=3]="Audit",e}(fr||{});const gr=e=>{let{canAddAudit:t,canReferenceBaseProject:n,baseProjectInfo:r,navigateForwardNormal:o,navigateForwardLegacy:i,navigateForwardReferenceBase:a,navigateForwardAudit:s,isDisabled:l}=e;const[c,u]=(0,d.useState)(fr.Normal);return(0,d.useEffect)(()=>{r&&!r.disabled&&u(fr.Reference)},[r]),(0,R.jsx)("div",{id:"doc2--project-creation-step-1",className:"mt-3",children:(0,R.jsxs)("form",{className:"doc2--project-creation-type-selector",id:"doc2--project-creation-form",onSubmit:function(e){switch(e.preventDefault(),c){case fr.Reference:a();break;case fr.Normal:o();break;case fr.Legacy:i();break;case fr.Audit:s()}},children:[(0,R.jsx)("div",{className:"doc2--project-creation-step-1-intro-text",children:(0,R.jsx)(g.Text,{raw:"intro.buildingProject.text"})}),n&&r?(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsxs)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Reference,onChange:u,onBlur:()=>{},checked:c===fr.Reference,disabled:l||r.disabled,children:[(0,R.jsx)(g.Text,{raw:"intro.reference.title",values:r}),(0,R.jsxs)("a",{className:"link-gray link-no-after cursor-pointer",href:`${window.REACT_APP_URL}${window.REACT_APP_ENDING}/document?docNr=${r.nr}`,target:"_blank",rel:"noopener noreferrer",children:[r.documentTypeName," nr ",r.nr]}),(0,R.jsx)("span",{children:" "}),"(",(0,R.jsx)(g.Text,{raw:r.signatureDate}),")"]}),c===fr.Reference&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.reference.text"})})]}):null,(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Normal,onChange:u,onBlur:()=>{},checked:c===fr.Normal,disabled:l,children:"intro.normal.title"}),c===fr.Normal&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.normal.text"})})]}),(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Legacy,onChange:u,onBlur:()=>{},checked:c===fr.Legacy,disabled:l,children:"intro.container.title"}),c===fr.Legacy&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.container.text"})})]}),t?(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Audit,onChange:u,onBlur:()=>{},checked:c===fr.Audit,disabled:l,children:"intro.audit.title"}),c===fr.Audit&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.audit.text"})})]}):null,(0,R.jsxs)("div",{className:"doc2--project-creation-form-footer",children:[(0,R.jsx)("div",{}),(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,disabled:l,children:(0,R.jsx)(g.Text,{raw:"intro.button.verifyBuildingProject"})})]})]})})};let hr=function(e){return e.NORMAL="NORMAL",e.LEGACY="LEGACY",e.AUDIT="AUDIT",e.REFERENCE="REFERENCE",e}({});const mr=[],vr={applicationId:void 0,isProceeding:!1,isPlanningProject:!1,isPlanningView:!1,isLoadingCurrentProject:!0,projectCreation:!1,projectCreationType:void 0,projectCreationStep:0,canAddAudit:!1,canReferenceBaseProject:!1,projectId:void 0,applicationType:void 0,isReference:!1,createProjectSending:!1,legacy:!1,readOnly:!1,allowedExtensions:[],projectFiles:mr,planningFiles:[],filesHaveErrors:!1,requestsInProgress:0,blockingRequestsInProgress:0,openPopoverId:void 0,selectedFilesIds:[],deletionPending:!1};const br=e=>{let{navigateBackward:t,navigateForward:n,allowedExtensions:r,uploadFile:o,uploadInProgress:i,isDisabled:a}=e;const[s,l]=(0,d.useState)(!1);return(0,R.jsxs)("div",{id:"doc2--project-creation-legacy",className:s?"doc2--project-creation--files-added":"",children:[(0,R.jsx)(g.FileUpload,{onUpload:function(e){0!==e.length&&o(e[0],()=>{n()})},customValidateDroppedFiles:function(e){return l(!0),e},accept:r,uploadInProgress:i,limit:1,maxSizeBytes:3e9}),i&&(0,R.jsx)("div",{className:"text-center mt-4",children:(0,R.jsx)(g.Loader,{})}),(0,R.jsx)("div",{className:s?"doc2--project-creation-step--footer mt-4 doc2--position-absolute":"doc2--project-creation-step--footer mt-4",children:(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:t,disabled:a||i,children:"Sulgen"})})]})},yr=e=>{let{step:t,endProjectCreation:n,sendCreateProject:r,sendCreateAudit:o,requestsInProgress:i,applicationId:a,canCreateNewVersion:s,baseProjectInfo:l,canAddAudit:c,canReferenceBaseProject:u,type:p,setProjectCreationType:f,uploadContainer:g,loadCreateProjectOptions:h,referenceBaseProject:m}=e;const v=(0,G.useIntl)();(0,d.useEffect)(()=>{h()},[a]),(0,d.useEffect)(()=>{p!==hr.NORMAL&&p!==hr.AUDIT||1!==t||n()},[p,t]);const b=v.formatMessage({id:"fileUpload.largeFileWarning",defaultMessage:"Laetavate failide hulgas esineb suuri faile. Failide laadimine ja töötlemine võib võtta aega. Palun ärge sulgege akent."});return(0,R.jsxs)(R.Fragment,{children:[!p&&(0,R.jsx)(gr,{navigateForwardNormal:function(){f(hr.NORMAL),r()},navigateForwardLegacy:function(){f(hr.LEGACY)},navigateForwardReferenceBase:function(){f(hr.REFERENCE),m().then(()=>n())},navigateForwardAudit:function(){f(hr.AUDIT),o()},canAddAudit:c,canReferenceBaseProject:u,baseProjectInfo:l,isDisabled:!s}),p===hr.LEGACY&&(0,R.jsx)(br,{navigateForward:n,navigateBackward:function(){f(void 0)},allowedExtensions:[".asice",".ddoc",".bdoc"],uploadFile:(e,t)=>g(e,b,t),uploadInProgress:!!i,isDisabled:!s})]})};const xr=(0,P.connect)(function(e){return{applicationId:e.projectState.applicationId,step:e.projectState.projectCreationStep,requestsInProgress:e.projectState.requestsInProgress,type:e.projectState.projectCreationType,canCreateNewVersion:!e.projectState.isProceeding,baseProjectInfo:e.baseProjectState.info,canAddAudit:e.projectState.canAddAudit,canReferenceBaseProject:e.projectState.canReferenceBaseProject}},function(e){return{endProjectCreation:()=>{e(Ve(!1)),e(tt(void 0)),e(V(!0))},addAlert:t=>{e(N(t))},sendCreateProject:()=>{e(rt())},sendCreateAudit:()=>{e(ot())},setProjectCreationType:t=>{e(tt(t))},uploadContainer:(t,n,r)=>{e(ft(t,n,r))},loadCreateProjectOptions:()=>{e(St())},referenceBaseProject:()=>e(Fe())}})(yr),wr=e=>{let{alerts:t,removeAlert:n}=e;return(0,R.jsx)(R.Fragment,{children:t.map(e=>(0,R.jsxs)("div",{className:"alert "+(e.error?"alert-danger":"alert-success"),children:[(0,R.jsx)("a",{className:"close icon-close",onClick:()=>n(e.id)}),"title"in e&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{className:"lead",children:e.title}),e.message&&(0,R.jsx)("p",{children:e.message})]}),"intlTitle"in e&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{className:"lead",children:(0,R.jsx)(g.Text,{raw:e.intlTitle})}),e.intlMessage&&(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:e.intlMessage})})]}),"template"in e&&e.template===Re.FileRestricted&&(0,R.jsx)(qn,{file:e.props.file,titleClassName:"lead"}),!("title"in e)&&!("intlTitle"in e&&!("template"in e))&&(0,R.jsx)("p",{className:"lead",children:(0,R.jsx)(g.Text,{raw:"common.error.unknown"})})]},"doc2--alert-"+e.id))})};const Sr=(0,P.connect)(function(e){return{alerts:e.uiState.alerts}},function(e){return{removeAlert:t=>{e(L(t))}}})(wr);let _r;const jr=e=>{let{applicationId:t,projectCreation:n,projectFiles:r,onFilesChange:o,loadCurrentProject:i,isCurrentProjectLoading:a,loadClassifiers:s,permissions:l,buttonConfig:c}=e;return(0,d.useEffect)(()=>{t&&(i(),s())},[t,i,s]),(0,d.useEffect)(()=>{if(void 0===o)return;if(r===mr)return;const e=JSON.stringify(r);if(e===_r)return;_r=e;const t=JSON.parse(e),n=Object.freeze(t);o(n)},[r]),(0,R.jsxs)("div",{className:"mt-2",children:[l.canRead&&!n&&!a&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Sr,{}),(0,R.jsx)(ar,{}),(0,R.jsx)(pr,{buttonConfig:c})]}),n&&!a&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Sr,{}),(0,R.jsx)(xr,{})]})]})};const Er=(0,P.connect)(function(e){return{applicationId:e.projectState.applicationId,projectCreation:e.projectState.projectCreation,projectFiles:e.projectState.projectFiles,isCurrentProjectLoading:e.projectState.isLoadingCurrentProject,permissions:e.permissions.permissions}},function(e){return{loadCurrentProject:()=>{e(nt())},loadClassifiers:()=>{e(at()),e(st())}}})(jr);var Cr;function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kr.apply(null,arguments)}function Tr(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",kr({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Cr||(Cr=d.createElement("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zM9 15H7v-2h2v2h2v-2h2v2H9zm0-4H7V5h6v6h-2V5H9v6z",fill:"#FF7373"})))}const Pr=d.forwardRef(Tr),Rr=(a.p,e=>{let{error:t}=e;return(0,R.jsxs)("div",{className:"doc2--edit-file-error my-2",children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)("p",{className:"mb-0 ml-2",children:["message"in t&&t.message,"intlMessage"in t&&(0,R.jsx)(g.Text,{raw:t.intlMessage})]})]})}),Or=e=>{const t=(0,d.useRef)(null);return(0,d.useEffect)(()=>{var n,r;e.type&&"text"!==e.type&&(null===(n=t.current)||void 0===n||null===(r=n.querySelector('input[type="text"]'))||void 0===r||r.setAttribute("type",e.type))}),(0,R.jsx)("div",{ref:t,children:(0,R.jsx)(g.Input,{...e})})},Ir=e=>{let{file:t,errors:n,setFile:r,sendFile:o,clearFile:i,addError:a,clearErrors:s,grupp:l,projektiOsa:c,projektiStaadium:u,ehitised:d,responsePending:p,isAudit:f}=e,h=!1,m=!0;if(t&&t.fileName){let e=t.fileName.split(".").pop();"ifc"===(null==e?void 0:e.toLowerCase())&&(h=!0,m=!1)}function v(e,n){if(!t)return;const o={...t};o[e]=n,r(o)}function b(e){return e.map(e=>({code:e.code,texts:e.text}))}return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsxs)(I,{title:(0,R.jsx)(g.Text,{raw:"popupEditFile.title"}),onAccept:function(){(function(){if(!t)return!0;s();let e=!1;!m||void 0!==t.grupp&&null!==t.grupp&&0!==t.grupp.length||(a({field:"grupp",intlMessage:"popupEditFile.error.groupName"}),e=!0);!h||null!=t.ehitiseSeos&&""!=t.ehitiseSeos||(a({field:"ehitiseSeos",intlMessage:"popupEditFile.error.buildingRelation"}),e=!0);void 0!==t.projektiOsa&&null!==t.projektiOsa&&0!==t.projektiOsa.length||(a({field:"projektiOsa",intlMessage:"popupEditFile.error.projectType"}),e=!0);f||void 0!==t.projektiStaadium&&null!==t.projektiStaadium&&0!==t.projektiStaadium.length||(a({field:"projektiStaadium",intlMessage:"popupEditFile.error.projectStage"}),e=!0);return e})()||o()},onCancel:function(){s(),i()},actionsDisabled:p,children:[(0,R.jsx)("div",{className:"doc2--edit-file--errors",children:n.map((e,t)=>(0,R.jsx)(Rr,{error:e},`doc2--edit-error-${t}`))}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.fileName"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:"popupEditFile.fileName.label"},component:(0,R.jsx)("span",{children:t.fileName})}),h&&(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.ehitiseSeosEhrKood"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:"popupEditFile.ehitiseSeosEhrKood.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"ehitiseSeos"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.ehitiseSeos||"",onChange:e=>v("ehitiseSeos",e),options:[{code:null,texts:"-"},{code:"Kõik",texts:"Kõik"}].concat(b(d))})}),required:h}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:f?"popupEditFile.auditID":"popupEditFile.projectID"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:f?"popupEditFile.auditID.label":"popupEditFile.projectID.label"},component:(0,R.jsx)(Or,{value:t.projektiTunnus||"",onChange:e=>v("projektiTunnus",e),className:n.filter(e=>"projektiTunnus"===e.field).length>0?"doc2--error-input":""})}),(0,R.jsx)(g.FieldWrapper,{className:f&&"d-none",label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.projectStage"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:"popupEditFile.projectStage.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"projektiStaadium"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.projektiStaadium||"",onChange:e=>v("projektiStaadium",e),options:b(u)})}),required:!f}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:f?"popupEditFile.auditType":"popupEditFile.projectType"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:f?"popupEditFile.auditType.label":"popupEditFile.projectType.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"projektiOsa"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.projektiOsa||"",onChange:e=>v("projektiOsa",e),options:b(c),className:n.filter(e=>"projektiOsa"===e.field).length>0?"doc2--error-input":""})}),required:!0}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.groupName"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width "+(m?"form-required-icon":"")})]}),info:{content:"popupEditFile.groupName.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"grupp"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.grupp||"",onChange:e=>v("grupp",e),options:b(l)})}),required:m}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.jrkNr"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:"popupEditFile.jrkNr.label"},component:(0,R.jsx)(Or,{type:"number",value:t.jrkNr||"",onChange:e=>v("jrkNr",e),className:n.filter(e=>"jrkNr"===e.field).length>0?"doc2--error-input":""})})]})})};const Ar=(0,P.connect)(function(e){return{file:e.editFileState.editFile,errors:e.editFileState.errors,projektiOsa:e.codeToTextState.projektiOsa,projektiStaadium:e.codeToTextState.projektiStaadium,grupp:e.codeToTextState.grupp,grupiMarksona:e.codeToTextState.grupiMarksona,ehitised:e.codeToTextState.ehitised,responsePending:e.editFileState.responsePending,isAudit:"AUDIT"===e.projectState.applicationType}},function(e){return{setFile:t=>{e(Jn(t))},clearFile:()=>{e(Xn())},sendFile:()=>{e(nr())},addError:t=>{e(Zn(t))},clearErrors:()=>{e(Qn())}}})(Ir);var Mr=function(e){return e.TRUE="true",e.FALSE="false",e}(Mr||{});const Dr=e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{activeFilters:f,possibleValues:h,clearFilter:m,removeFilter:v,addFilter:b,setFilter:y,projektiOsa:x,projektiStaadium:w,grupp:S}=e;const _=(0,G.useIntl)(),j=[{code:Mr.TRUE,texts:_.formatMessage({id:"filters.true"})},{code:Mr.FALSE,texts:_.formatMessage({id:"filters.false"})}];return(0,R.jsxs)("form",{id:"doc2--filters",children:[(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectID"}),info:{content:"filters.projectID.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--id-select",onChange:function(e){0!==e.length?y({selector:"projTunnus",values:e}):m("projTunnus")},options:null===(t=h.projTunnus)||void 0===t?void 0:t.map(e=>({code:e,texts:e})),value:null===(n=f.filter(e=>"projTunnus"===e.selector)[0])||void 0===n?void 0:n.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectStage"}),info:{content:"filters.projectStage.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--stage-select",onChange:function(e){0!==e.length?y({selector:"projStaadium",values:e}):m("projStaadium")},options:null===(r=h.projStaadium)||void 0===r?void 0:r.map(e=>({code:e,texts:U(w,e)})),value:null===(o=f.filter(e=>"projStaadium"===e.selector)[0])||void 0===o?void 0:o.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectType"}),info:{content:"filters.projectType.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--type-select",onChange:function(e){0!==e.length?y({selector:"projOsa",values:e}):m("projOsa")},options:null===(i=h.projOsa)||void 0===i?void 0:i.map(e=>({code:e,texts:U(x,e)})),value:null===(a=f.filter(e=>"projOsa"===e.selector)[0])||void 0===a?void 0:a.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.jrkNr"}),info:{content:"filters.jrkNr.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--group-id-select",onChange:function(e){0!==e.length?y({selector:"jrkNr",values:e}):m("jrkNr")},options:null===(s=h.jrkNr)||void 0===s?void 0:s.map(e=>({code:e,texts:e})),value:null===(l=f.filter(e=>"jrkNr"===e.selector)[0])||void 0===l?void 0:l.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.groupName"}),info:{content:"filters.groupName.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--group-name-select",onChange:function(e){0!==e.length?y({selector:"grupp",values:e}):m("grupp")},options:null===(c=h.grupp)||void 0===c?void 0:c.map(e=>({code:e,texts:U(S,e)})),value:null===(u=f.filter(e=>"grupp"===e.selector)[0])||void 0===u?void 0:u.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.hasChanged"}),info:{content:"filters.hasChanged.label"},component:(0,R.jsx)(g.Select,{name:"doc2--has-changed-select",onChange:function(e){""!==e?y({selector:"hasChanged",values:[e]}):m("hasChanged")},options:j,value:null===(d=f.filter(e=>"hasChanged"===e.selector)[0])||void 0===d||null===(p=d.values)||void 0===p?void 0:p[0]})})]})};const Fr=(0,P.connect)(function(e){return{activeFilters:e.filtersState.filters,possibleValues:e.filtersState.possibleValues,projektiOsa:e.codeToTextState.projektiOsa,grupp:e.codeToTextState.grupp,projektiStaadium:e.codeToTextState.projektiStaadium}},function(e){return{addFilter:t=>{e(function(e){return{type:je.ADD_FILTER,payload:{filter:e}}}(t))},clearFilter:t=>{e(function(e){return{type:je.CLEAR_FILTER,payload:{selector:e}}}(t))},removeFilter:t=>{e(function(e){return{type:je.REMOVE_FILTER,payload:{filter:e}}}(t))},setFilter:t=>{e(function(e){return{type:je.SET_FILTER,payload:{filter:e}}}(t))}}})(Dr),Nr=e=>{let{isOpen:t,togglePopup:n,name:r,uploadInProgress:o,replaceFile:i}=e;return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsx)(I,{title:r,onCancel:function(){n(!1)},children:(0,R.jsx)(g.FileUpload,{onUpload:function(e){0!==e.length&&i(e[0])},limit:1,uploadInProgress:o})})})};const Lr=(0,P.connect)(function(e){return{isOpen:e.uiState.replaceFileOpen,name:e.replaceFileState.name,uploadInProgress:e.replaceFileState.uploadInProgress}},function(e){return{togglePopup:t=>{e(B(t))},replaceFile:t=>{e(function(e){return(t,n)=>{const r=n().replaceFileState.id;if(0===r.length)return;const o=new FormData;o.append("files",e),o.append("fileId",r),t(ir(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/file/upload/replace`,method:"POST",data:o}).then(e=>{200===e.status&&(t(ir(!1)),t(lt()),t(B(!1)))}).catch(e=>ve(e,t))}}(t))}}})(Nr),$r=require("reactstrap");let Vr=/^\d{7,13}$/;const Br={phonenr:{et:"Väli peab olema korrektne telefoninumber",en:"Value should be phone number",ru:"Введите правильный номер телефона"}},zr=e=>!e||Vr.test(e),Gr=e=>{const t=(0,G.useIntl)(),[n,r]=(0,d.useState)({IsValidPhone:!0,value:e.value||""}),o=(0,R.jsxs)($r.InputGroup,{className:"mb-2",children:[(0,R.jsx)($r.InputGroupAddon,{addonType:"prepend",children:(0,R.jsx)($r.InputGroupText,{children:"+372"})}),(0,R.jsx)($r.Input,{id:e.id,name:"phone",placeholder:t.formatMessage({id:e.placeholder}),onChange:t=>{return n=t.target.value,r({IsValidPhone:!0,value:n}),void e.onChange(e,n,zr(n));var n},onBlur:t=>(t=>{let n=zr(t);r({IsValidPhone:n,value:t}),e.onBlur(e,t,zr(t))})(t.target.value),type:"tel",value:n.value,minLength:6,maxLength:13,pattern:"^[\\s0-9]+$","data-testid":"phone"})]}),{locale:i,useValidation:a}=e;return a&&!n.IsValidPhone?(0,R.jsxs)($r.FormGroup,{className:"has-danger",children:[o,(0,R.jsx)($r.FormFeedback,{className:"form-control-feedback",children:Br.phonenr[i]})]}):(0,R.jsx)($r.FormGroup,{children:o})},Ur=e=>{let{method:t,challenge:n,revision:r,projektiOsa:o,onContinue:i,signInProgress:a,onCancel:s,setSignMethod:l,setMobileNumber:c,mobileNumber:u}=e;const[p,f]=(0,d.useState)(!1);return r?(0,R.jsx)("div",{id:`doc2--popup-modal-${Date.now().toString()}`,className:"doc2--popup-modal",children:(0,R.jsxs)("div",{id:"doc2--sign-popup",className:"doc2--popup-modal--modal compound",children:[(0,R.jsx)("h2",{children:(0,R.jsx)(g.Text,{raw:"signing"})}),(0,R.jsxs)("div",{className:"nav-vertical-wrapper mt-4",children:[(0,R.jsx)("div",{className:"form-header",children:(0,R.jsxs)("ul",{className:"nav nav-vertical form-nav",children:[(0,R.jsx)(Hr,{active:t===ue.ID_CARD,disabled:!window.hwcrypto,onClick:()=>l(ue.ID_CARD),children:(0,R.jsx)(g.Text,{raw:"signPopup.idCard"})}),(0,R.jsx)(Hr,{active:t===ue.MOBILE_ID,onClick:()=>l(ue.MOBILE_ID),children:(0,R.jsx)(g.Text,{raw:"signPopup.mobileId"})}),(0,R.jsx)(Hr,{active:t===ue.SMART_ID,onClick:()=>l(ue.SMART_ID),children:(0,R.jsx)(g.Text,{raw:"signPopup.smartId"})})]})}),(0,R.jsx)("div",{className:"tab-content",children:(0,R.jsxs)("div",{className:"tab-pane fade active show",children:[t===ue.ID_CARD&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.idCard.title"})})}),t===ue.MOBILE_ID&&!n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.mobileId.title"})}),(0,R.jsx)(Gr,{id:"phone-1",placeholder:"signPopup.mobileId.input",value:u||"",onChange:(e,t,n)=>{c(t),f(n)},onBlur:(e,t,n)=>{c(t),f(n)},useValidation:!0,locale:"et","data-testid":"phone"})]}),t===ue.MOBILE_ID&&n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signing.modal.header.mobile_id.step2"})}),(0,R.jsx)("p",{className:"doc2--sign-popup--challenge",children:n})]}),t===ue.SMART_ID&&!n&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.smartId.title"})})}),t===ue.SMART_ID&&n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signing.modal.header.mobile_id.step2"})}),(0,R.jsx)("p",{className:"doc2--sign-popup--challenge",children:n})]}),(0,R.jsxs)("div",{className:"form-footer",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",onClick:s,disabled:a,children:(0,R.jsx)(g.Text,{raw:"button.cancel"})}),(0,R.jsx)(g.Button,{colourScheme:"success",type:"reset",style:{float:"right"},onClick:i,disabled:a||t===ue.MOBILE_ID&&!p,children:(0,R.jsx)(g.Text,{raw:"button.sign"})})]})]})})]})]})}):(0,R.jsx)(R.Fragment,{})},Hr=e=>{let{active:t,onClick:n,className:r,disabled:o,children:i}=e;return(0,R.jsx)("li",{className:"nav-item",children:(0,R.jsx)("button",{className:`doc2--signPopup--nav-button nav-link ${t?"active":""} ${r}`,onClick:n,disabled:o,children:i})})};const Wr=(0,P.connect)(function(e){return{challenge:e.signPopup.challenge,method:e.signPopup.method,revision:e.signPopup.revision,projektiOsa:e.signPopup.projektiOsa,signInProgress:e.signPopup.signInProgress,mobileNumber:e.signPopup.mobileNumber}},function(e){return{onContinue:()=>{e(Xt())},onCancel:()=>{e(Jt())},setSignMethod:t=>{e(Ut(t))},setMobileNumber:t=>{e(qt(t))}}})(Ur),qr=require("redux"),Yr={filters:[],possibleValues:{projTunnus:[],projStaadium:[],projOsa:[],jrkNr:[],grupp:[],hasChanged:[]}};const Kr={referenceCreating:!1,referenceCloning:!1,info:null};const Jr={editFile:void 0,errors:[],responsePending:!1};const Xr={projectTypes:[],projectContainer:{type:"",signed:!1,revision:"",signers:[]}};const Zr={grupiMarksona:[],grupp:[],projektiOsa:[],projektiStaadium:[],ehitised:[],planningFileTypes:[]};const Qr={id:"",name:"",uploadInProgress:!1};const eo={permissions:{canCreateNewVersion:!1,canRead:!1,canAccessFiles:!0,canWrite:!1,canDelete:!1,canSign:!1,canCreateRestrictions:!1,canAccessRestrictedFiles:!0,canCloneForEditing:!1}};const to={fileIds:void 0,releaseFileIds:void 0,requestsInProgress:0};let no=function(e){return e.SET_EDIT_PLANNING_FILE="SET_EDIT_PLANNING_FILE",e.CLEAR_EDIT_PLANNING_FILE="CLEAR_EDIT_PLANNING_FILE",e.ADD_EDIT_PLANNING_ERROR="ADD_EDIT_PLANNING_ERROR",e.REMOVE_EDIT_PLANNING_ERROR="REMOVE_EDIT_PLANNING_ERROR",e.CLEAR_EDIT_PLANNING_ERROR="CLEAR_EDIT_PLANNING_ERROR",e.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING="TOGGLE_EDIT_PLANNING_RESPONSE_PENDING",e}({});function ro(e){return{type:no.SET_EDIT_PLANNING_FILE,payload:{file:e}}}function oo(){return{type:no.CLEAR_EDIT_PLANNING_FILE,payload:{}}}function io(e){return{type:no.ADD_EDIT_PLANNING_ERROR,payload:{error:e}}}function ao(){return{type:no.CLEAR_EDIT_PLANNING_ERROR,payload:{}}}function so(e){return{type:no.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING,payload:{toggled:e}}}const lo={planningFile:void 0,errors:[],responsePending:!1};const co={uiState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case M.TOGGLE_SIGN_REFUSAL_POPUP:return{...e,signRefusalOpen:t.payload.toggled};case M.TOGGLE_MAKE_CONFIDENTIAL_POPUP:return{...e,makeConfidentialOpen:t.payload.toggled};case M.TOGGLE_SIGN_DOCUMENT_LIST:return{...e,signDocumentListOpen:t.payload.toggled};case M.ADD_ALERT:return{...e,alerts:[...e.alerts,Oe(t.payload.alert)]};case M.REMOVE_ALERT:return{...e,alerts:e.alerts.filter(e=>e.id!==t.payload.id)};case M.CLEAR_ALL_ALERTS:return{...e,alerts:[]};case M.TOGGLE_FILTERS:return{...e,enableFilter:t.payload.toggled};case M.TOGGLE_REPLACE_FILE_POPUP:return{...e,replaceFileOpen:t.payload.toggled};case M.CLOSE_ALL_POPUPS:return{...e,signRefusalOpen:!1,makeConfidentialOpen:!1,signDocumentListOpen:!1,replaceFileOpen:!1}}return e},filtersState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case je.ADD_FILTER:{const n=[...e.filters];let r=!1;return n.forEach(e=>{e.selector===t.payload.filter.selector&&(e.values.concat(t.payload.filter.values),r=!0)}),r||n.push(t.payload.filter),{...e,filters:n}}case je.REMOVE_FILTER:{const n=[...e.filters];return n.forEach((e,r)=>{e.values.length>1?e.values=e.values.filter(e=>e!==t.payload.filter.values[0]):n.splice(r)}),{...e,filters:n}}case je.SET_FILTER:{const n=[...e.filters];let r=!1;return n.forEach(e=>{e.selector===t.payload.filter.selector&&(e.values=t.payload.filter.values,r=!0)}),r||n.push(t.payload.filter),{...e,filters:n}}case je.POPULATE_FILTER:{const n={...e.possibleValues};return n[t.payload.filter.selector]=t.payload.filter.values,{...e,possibleValues:n}}case je.CLEAR_FILTER:return{...e,filters:e.filters.filter(e=>e.selector!==t.payload.selector)};case je.CLEAR_ALL_FILTERS:return{...e,possibleValues:{projTunnus:[],projStaadium:[],projOsa:[],jrkNr:[],grupp:[]}}}return e},projectState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case $e.TOGGLE_PROJECT_CREATION:return{...e,projectCreation:t.payload.toggled,projectCreationStep:0};case $e.NAVIGATE_FORWARD_PROJECT_CREATION:return{...e,projectCreationStep:e.projectCreationStep+1};case $e.NAVIGATE_BACKWARD_PROJECT_CREATION:return{...e,projectCreationStep:e.projectCreationStep-1};case $e.SET_CREATION_TYPE:return{...e,projectCreationType:t.payload.type};case $e.SET_PROJECT_ID:return{...e,projectId:t.payload.value};case $e.SET_APPLICATION_TYPE:return{...e,applicationType:t.payload.value};case $e.SET_REFERENCE:return{...e,isReference:t.payload.value};case $e.SET_CAN_ADD_AUDIT:return{...e,canAddAudit:t.payload.value};case $e.SET_CAN_REFERENCE_BASE_PROJECT:return{...e,canReferenceBaseProject:t.payload.value};case $e.SET_FILES:{const n=t.payload.files.reduce((e,t)=>e||t.errorMessages.length>0,!1);return t.payload.files.forEach(e=>{null===e.id&&(e.id=Pe("legacy-file"))}),{...e,projectFiles:t.payload.files,filesHaveErrors:n}}case $e.SET_PLANNING_FILES:return t.payload.files.forEach(e=>{null===e.id&&(e.id=Pe("legacy-file"))}),{...e,planningFiles:t.payload.files};case $e.ADD_FILE:return{...e,projectFiles:[t.payload.file,...e.projectFiles]};case $e.EDIT_FILE:return{...e,projectFiles:e.projectFiles.map(e=>e.id===t.payload.file.id?t.payload.file:e)};case $e.SELECT_FILE:{const n=[...e.selectedFilesIds];return-1===n.indexOf(t.payload.id)&&n.push(t.payload.id),{...e,selectedFilesIds:n}}case $e.DESELECT_FILE:{let n=[...e.selectedFilesIds];return-1!==n.indexOf(t.payload.id)&&(n=n.filter(e=>e!==t.payload.id)),{...e,selectedFilesIds:n}}case $e.SELECT_ALL_FILES:return{...e,selectedFilesIds:e.projectFiles.map(e=>e.id)};case $e.CLEAR_SELECTED_FILES:return{...e,selectedFilesIds:[]};case $e.TOGGLE_DELETION_PENDING:return{...e,deletionPending:t.payload.toggled};case $e.MODIFY_REQUESTS_IN_PROGRESS:{let n=e.requestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,requestsInProgress:n}}case $e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS:{let n=e.blockingRequestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,blockingRequestsInProgress:n}}case $e.TOGGLE_FILE_POPOVER_OPEN:return{...e,openPopoverId:t.payload.id===e.openPopoverId?void 0:t.payload.id};case $e.SET_APPLICATION_ID:return{...e,applicationId:t.payload.value};case $e.INITIALIZATION:var n,r,o,i;return{...e,applicationId:t.payload.value.applicationId,isProceeding:null!==(n=t.payload.value.isProceeding)&&void 0!==n&&n,isBimApplication:null!==(r=t.payload.value.isBimApplication)&&void 0!==r&&r,isPlanningProject:null!==(o=t.payload.value.isPlanningProject)&&void 0!==o&&o,isPlanningView:null!==(i=t.payload.value.isPlanningView)&&void 0!==i&&i};case $e.TOGGLE_IS_LOADING_CURRENT_PROJECT:return{...e,isLoadingCurrentProject:t.payload.toggled};case $e.TOGGLE_PROJECT_NAME_SENDING:return{...e,createProjectSending:t.payload.toggled};case $e.SET_ALLOWED_EXTENSIONS:return{...e,allowedExtensions:t.payload.extensions};case $e.TOGGLE_IS_PROJECT_LEGACY:return{...e,legacy:t.payload.toggled};case $e.TOGGLE_IS_PROJECT_READ_ONLY:return{...e,readOnly:t.payload.toggled}}return e},baseProjectState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ae.SET_INFO:return{...e,info:t.payload.info};case Ae.TOGGLE_REFERENCE_CREATING:return{...e,referenceCreating:t.payload.toggled};case Ae.TOGGLE_REFERENCE_CLONING:return{...e,referenceCloning:t.payload.toggled};default:return e}},editFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Kn.SET_EDIT_FILE:return{...e,editFile:t.payload.file};case Kn.CLEAR_EDIT_FILE:return{...e,editFile:void 0};case Kn.CLEAR_EDIT_ERRORS:return{...e,errors:[]};case Kn.ADD_EDIT_ERROR:return{...e,errors:[...e.errors,(n=t.payload.error,{...n,id:Pe()})]};case Kn.REMOVE_EDIT_ERROR:return{...e,errors:e.errors.filter(e=>e.id!==t.payload.id)};case Kn.TOGGLE_EDIT_RESPONSE_PENDING:return{...e,responsePending:t.payload.toggled}}var n;return e},planningFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case no.SET_EDIT_PLANNING_FILE:return{...e,planningFile:t.payload.file};case no.CLEAR_EDIT_PLANNING_FILE:return{...e,planningFile:void 0};case no.CLEAR_EDIT_PLANNING_ERROR:return{...e,errors:[]};case no.ADD_EDIT_PLANNING_ERROR:return{...e,errors:[...e.errors,(n=t.payload.error,{...n,id:Pe()})]};case no.REMOVE_EDIT_PLANNING_ERROR:return{...e,errors:e.errors.filter(e=>e.id!==t.payload.id)};case no.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING:return{...e,responsePending:t.payload.toggled}}var n;return e},restrictFilesState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:to,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Qt.SET_FILE_IDS:return{...e,fileIds:t.payload.fileIds};case Qt.RELEASE_FILE_IDS:return{...e,releaseFileIds:t.payload.fileIds};case Qt.MODIFY_REQUESTS_IN_PROGRESS:{let n=e.requestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,requestsInProgress:n}}}return e},signState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case xe.SET_PROJECT_TYPES:return{...e,projectTypes:t.payload.projectType};case xe.SET_PROJECT_CONTAINER:return{...e,projectContainer:t.payload.projectContainer}}return e},codeToTextState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _e.SET_GRUPI_MARKSONA_CODE_TO_TEXTS:return{...e,grupiMarksona:[...t.payload.codes]};case _e.SET_GRUPP_CODE_TO_TEXTS:return{...e,grupp:[...t.payload.codes]};case _e.SET_PROJEKTI_OSA_CODE_TO_TEXTS:return{...e,projektiOsa:[...t.payload.codes]};case _e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS:return{...e,projektiStaadium:[...t.payload.codes]};case _e.SET_EHITISED_CODE_TO_TEXTS:return{...e,ehitised:[...t.payload.codes]};case _e.SET_PLANNING_FATYS_CODE_TO_TEXTS:return{...e,planningFileTypes:[...t.payload.codes]}}return e},replaceFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case or.SET_FILE_REPLACE_ID:return{...e,id:t.payload.value};case or.SET_FILE_REPLACE_NAME:return{...e,name:t.payload.value};case or.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS:return{...e,uploadInProgress:t.payload.toggled};case or.CLEAR_FILE_REPLACE:return{...e,id:"",name:"",uploadInProgress:!1}}return e},signPopup:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zt.SET_SIGN_METHOD:return{...e,method:t.payload.method};case zt.SET_SIGN_CHALLENGE:return{...e,challenge:t.payload.text};case zt.SET_SIGN_SESSION:return{...e,sessionId:t.payload.text};case zt.SET_MOBILE_NUMBER:return{...e,mobileNumber:t.payload.text};case zt.COMPLETE_SIGNING:return{...e,sessionId:void 0,signInProgress:!1,projektiOsa:void 0,revision:void 0,challenge:void 0};case zt.ENABLE_SIGN_PROJEKTI_OSA:return{...e,method:ue.ID_CARD,revision:t.payload.revision,projektiOsa:t.payload.projektiOsa};case zt.TOGGLE_SIGN_IN_PROGRESS:return{...e,signInProgress:t.payload.toggled};case zt.CANCEL_SIGN_PROJEKTI_OSA:return{...e,sessionId:void 0,signInProgress:!1,projektiOsa:void 0,revision:void 0,challenge:void 0}}return e},permissions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1?arguments[1]:void 0;return t.type===ke.SET_PERMISSIONS?{...e,permissions:{...e.permissions,...t.payload.permissions}}:e},keycloak:Bt.KeycloakReducer,profile:Bt.ProfileReducer},uo=(0,qr.combineReducers)(co);function po(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fo(e){return!!e&&!!e[ni]}function go(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ri}(e)||Array.isArray(e)||!!e[ti]||!!(null===(t=e.constructor)||void 0===t?void 0:t[ti])||wo(e)||So(e))}function ho(e,t,n){void 0===n&&(n=!1),0===mo(e)?(n?Object.keys:oi)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function mo(e){var t=e[ni];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wo(e)?2:So(e)?3:0}function vo(e,t){return 2===mo(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bo(e,t){return 2===mo(e)?e.get(t):e[t]}function yo(e,t,n){var r=mo(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function xo(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function wo(e){return Xo&&e instanceof Map}function So(e){return Zo&&e instanceof Set}function _o(e){return e.o||e.t}function jo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ii(e);delete t[ni];for(var n=oi(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Eo(e,t){return void 0===t&&(t=!1),ko(e)||fo(e)||!go(e)||(mo(e)>1&&(e.set=e.add=e.clear=e.delete=Co),Object.freeze(e),t&&ho(e,function(e,t){return Eo(t,!0)},!0)),e}function Co(){po(2)}function ko(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function To(e){var t=ai[e];return t||po(18,e),t}function Po(e,t){ai[e]||(ai[e]=t)}function Ro(){return Ko}function Oo(e,t){t&&(To("Patches"),e.u=[],e.s=[],e.v=t)}function Io(e){Ao(e),e.p.forEach(Do),e.p=null}function Ao(e){e===Ko&&(Ko=e.l)}function Mo(e){return Ko={p:[],l:Ko,h:e,m:!0,_:0}}function Do(e){var t=e[ni];0===t.i||1===t.i?t.j():t.g=!0}function Fo(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||To("ES5").S(t,e,r),r?(n[ni].P&&(Io(t),po(4)),go(e)&&(e=No(t,e),t.l||$o(t,e)),t.u&&To("Patches").M(n[ni].t,e,t.u,t.s)):e=No(t,n,[]),Io(t),t.u&&t.v(t.u,t.s),e!==ei?e:void 0}function No(e,t,n){if(ko(t))return t;var r=t[ni];if(!r)return ho(t,function(o,i){return Lo(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return $o(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=jo(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),ho(i,function(t,i){return Lo(e,r,o,t,i,n,a)}),$o(e,o,!1),n&&e.u&&To("Patches").N(r,n,e.u,e.s)}return r.o}function Lo(e,t,n,r,o,i,a){if(fo(o)){var s=No(e,o,i&&t&&3!==t.i&&!vo(t.R,r)?i.concat(r):void 0);if(yo(n,r,s),!fo(s))return;e.m=!1}else a&&n.add(o);if(go(o)&&!ko(o)){if(!e.h.D&&e._<1)return;No(e,o),t&&t.A.l||$o(e,o)}}function $o(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Eo(t,n)}function Vo(e,t){var n=e[ni];return(n?_o(n):e)[t]}function Bo(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function zo(e){e.P||(e.P=!0,e.l&&zo(e.l))}function Go(e){e.o||(e.o=jo(e.t))}function Uo(e,t,n){var r=wo(t)?To("MapSet").F(t,n):So(t)?To("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ro(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=si;n&&(o=[r],i=li);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):To("ES5").J(t,n);return(n?n.A:Ro()).p.push(r),r}function Ho(e){return fo(e)||po(22,e),function e(t){if(!go(t))return t;var n,r=t[ni],o=mo(t);if(r){if(!r.P&&(r.i<4||!To("ES5").K(r)))return r.t;r.I=!0,n=Wo(t,o),r.I=!1}else n=Wo(t,o);return ho(n,function(t,o){r&&bo(r.t,t)===o||yo(n,t,e(o))}),3===o?new Set(n):n}(e)}function Wo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jo(e)}function qo(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[ni];return si.get(t,e)},set:function(t){var n=this[ni];si.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][ni];if(!o.P)switch(o.i){case 5:r(o)&&zo(o);break;case 4:n(o)&&zo(o)}}}function n(e){for(var t=e.t,n=e.k,r=oi(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==ni){var a=t[i];if(void 0===a&&!vo(t,i))return!0;var s=n[i],l=s&&s[ni];if(l?l.t!==a:!xo(s,a))return!0}}var c=!!t[ni];return r.length!==oi(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};Po("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=ii(n);delete i[ni];for(var a=oi(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:Ro(),P:!1,I:!1,R:{},l:n,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,ni,{value:i,writable:!0}),o},S:function(e,n,o){o?fo(n)&&n[ni].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[ni];if(n){var o=n.t,i=n.k,a=n.R,s=n.i;if(4===s)ho(i,function(t){t!==ni&&(void 0!==o[t]||vo(o,t)?a[t]||e(i[t]):(a[t]=!0,zo(n)))}),ho(o,function(e){void 0!==i[e]||vo(i,e)||(a[e]=!1,zo(n))});else if(5===s){if(r(n)&&(zo(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),d=0;d<u;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var Yo,Ko,Jo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Xo="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Qo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ei=Jo?Symbol.for("immer-nothing"):((Yo={})["immer-nothing"]=!0,Yo),ti=Jo?Symbol.for("immer-draftable"):"__$immer_draftable",ni=Jo?Symbol.for("immer-state"):"__$immer_state",ri=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),oi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ii=Object.getOwnPropertyDescriptors||function(e){var t={};return oi(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ai={},si={get:function(e,t){if(t===ni)return e;var n=_o(e);if(!vo(n,t))return function(e,t,n){var r,o=Bo(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!go(r)?r:r===Vo(e.t,t)?(Go(e),e.o[t]=Uo(e.A.h,r,e)):r},has:function(e,t){return t in _o(e)},ownKeys:function(e){return Reflect.ownKeys(_o(e))},set:function(e,t,n){var r=Bo(_o(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Vo(_o(e),t),i=null==o?void 0:o[ni];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(xo(n,o)&&(void 0!==n||vo(e.t,t)))return!0;Go(e),zo(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Vo(e.t,t)||t in e.t?(e.R[t]=!1,Go(e),zo(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=_o(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){po(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){po(12)}},li={};ho(si,function(e,t){li[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),li.deleteProperty=function(e,t){return li.set.call(this,e,t,void 0)},li.set=function(e,t,n){return si.set.call(this,e[0],t,n,e[0])};var ci=function(){function e(e){var t=this;this.O=Qo,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&po(6),void 0!==r&&"function"!=typeof r&&po(7),go(e)){var s=Mo(t),l=Uo(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?Io(s):Ao(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return Oo(s,r),Fo(e,s)},function(e){throw Io(s),e}):(Oo(s,r),Fo(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ei&&(a=void 0),t.D&&Eo(a,!0),r){var u=[],d=[];To("Patches").M(e,a,u,d),r(u,d)}return a}po(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){go(e)||po(8),fo(e)&&(e=Ho(e));var t=Mo(this),n=Uo(this,e,void 0);return n[ni].C=!0,Ao(t),n},t.finishDraft=function(e,t){var n=(e&&e[ni]).A;return Oo(n,t),Fo(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Qo&&po(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=To("Patches").$;return fo(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),ui=new ci;ui.produce,ui.produceWithPatches.bind(ui),ui.setAutoFreeze.bind(ui),ui.setUseProxies.bind(ui),ui.applyPatches.bind(ui),ui.createDraft.bind(ui),ui.finishDraft.bind(ui);function di(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var pi=di();pi.withExtraArgument=di;const fi=pi;var gi,hi=(gi=function(e,t){return gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},gi(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}gi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mi=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vi=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},bi=Object.defineProperty,yi=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,ji=function(e,t,n){return t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ei=function(e,t){for(var n in t||(t={}))Si.call(t,n)&&ji(e,n,t[n]);if(wi)for(var r=0,o=wi(t);r<o.length;r++){n=o[r];_i.call(t,n)&&ji(e,n,t[n])}return e},Ci=function(e,t){return yi(e,xi(t))},ki=function(e,t,n){return new Promise(function(r,o){var i=function(e){try{s(n.next(e))}catch(e){o(e)}},a=function(e){try{s(n.throw(e))}catch(e){o(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())})},Ti="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?qr.compose:qr.compose.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Pi(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function Ri(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ei(Ei({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Oi=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return hi(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vi([void 0],e[0].concat(this)))):new(t.bind.apply(t,vi([void 0],e.concat(this))))},t}(Array),Ii=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return hi(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vi([void 0],e[0].concat(this)))):new(t.bind.apply(t,vi([void 0],e.concat(this))))},t}(Array);function Ai(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Oi);n&&(!function(e){return"boolean"==typeof e}(n)?r.push(fi.withExtraArgument(n.extraArgument)):r.push(fi));0;return r}(e)}}var Mi=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Di=["name","message","stack","code"],Fi=function(e,t){this.payload=e,this.meta=t},Ni=function(e,t){this.payload=e,this.meta=t},Li=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=Di;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Ri(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:Ci(Ei({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),o=Ri(e+"/pending",function(e,t,n){return{payload:void 0,meta:Ci(Ei({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),i=Ri(e+"/rejected",function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||Li)(e||"Rejected"),meta:Ci(Ei({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign(function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Mi(),p=new a;function f(e){u=e,p.abort()}var g=function(){return ki(this,null,function(){var a,g,h,m,v,b;return mi(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(x=m)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,m];case 1:m=y.sent(),y.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),s(o(d,e,null==(g=null==n?void 0:n.getPendingMeta)?void 0:g.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,abort:f,rejectWithValue:function(e,t){return new Fi(e,t)},fulfillWithValue:function(e,t){return new Ni(e,t)}})).then(function(t){if(t instanceof Fi)throw t;return t instanceof Ni?r(t.payload,d,e,t.meta):r(t,d,e)})])];case 3:return h=y.sent(),[3,5];case 4:return b=y.sent(),h=b instanceof Fi?i(null,d,e,b.payload,b.meta):i(b,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||s(h),[2,h]}var x})})}();return Object.assign(g,{abort:f,requestId:d,arg:e,unwrap:function(){return g.then($i)}})}},{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function $i(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Vi="listenerMiddleware";Ri(Vi+"/add"),Ri(Vi+"/removeAll"),Ri(Vi+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:globalThis);var Bi,zi=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:zi(10);qo();const Gi=e=>{const t=function(e){var t,n=Ai(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,f=void 0===p?void 0:p;if("function"==typeof i)t=i;else{if(!Pi(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=(0,qr.combineReducers)(i)}var g=s;"function"==typeof g&&(g=g(n));var h=qr.applyMiddleware.apply(void 0,g),m=qr.compose;c&&(m=Ti(Ei({trace:!1},"object"==typeof c&&c)));var v=new Ii(h),b=v;Array.isArray(f)?b=vi([h],f):"function"==typeof f&&(b=f(v));var y=m.apply(void 0,b);return(0,qr.createStore)(t,d,y)}({reducer:uo,middleware:e=>[Bt.RefreshMiddleware,...e({serializableCheck:!1})],preloadedState:e});return t},Ui=Gi,Hi=e=>{let{closePopup:t,files:n,requestReleaseFiles:r,requestsInProgress:o}=e;(0,G.useIntl)();return(0,R.jsx)(R.Fragment,{children:null!=n&&n.length?(0,R.jsxs)(I,{title:"popupReleaseAccess.title",onCancel:()=>t(),onAccept:function(){null!=n&&n.length&&r(n)},disableAccept:o,css:{width:"unset",minHeight:"unset"},children:[(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"popupReleaseAccess.overview"})}),(0,R.jsx)("ul",{className:"list-with-arrows",children:n.map(e=>(0,R.jsx)("li",{children:e.failiNimetus},e.id))})]}):null})};const Wi=(0,P.connect)(function(e){const t=new Set(e.restrictFilesState.releaseFileIds);return{files:t&&e.projectState.projectFiles.filter(e=>t.has(e.id)),permissions:e.permissions.permissions,requestsInProgress:e.restrictFilesState.requestsInProgress}},function(e){return{closePopup:()=>{e(tn(void 0))},requestReleaseFiles:t=>{e(on(t))}}})(Hi),qi=e=>{let{applicationId:t,onFilesChange:n,buttonConfig:r,isProceeding:o}=e;const i=(0,G.useIntl)(),[a,s]=(0,d.useState)(!1),[l]=(0,d.useState)(Ui({projectState:{...vr,applicationId:t,isProceeding:null!=o&&o}})),[c,u]=(0,d.useState)("buildingProject.header.default");return(0,d.useEffect)(()=>{l.subscribe(()=>{var e;s(l.getState().uiState.enableFilter);const t=i.formatMessage({id:"AUDIT"===(null===(n=l.getState().projectState)||void 0===n?void 0:n.applicationType)?"buildingProject.header.audit":"buildingProject.header.default"});var n;const r=null!==(e=l.getState().projectState)&&void 0!==e&&e.isReference?` (${i.formatMessage({id:"buildingProject.header.reference"})})`:"";u(t+r)})},[l]),(0,R.jsx)(P.Provider,{store:l,children:(0,R.jsx)("div",{id:"doc2",children:(0,R.jsxs)(g.Section,{form:!0,title:c,filterContents:(0,R.jsx)(Fr,{}),showSettings:a,children:[(0,R.jsx)(Er,{onFilesChange:n,buttonConfig:r}),(0,R.jsx)(Ar,{}),(0,R.jsx)(z,{}),(0,R.jsx)(Zt,{}),(0,R.jsx)(sn,{}),(0,R.jsx)(Wi,{}),(0,R.jsx)(Lr,{}),(0,R.jsx)(Wr,{})]})},Boolean(a).toString())})};var Yi=a(660),Ki={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Ki);var Ji=Ki.exports;const Xi=(0,Yi.gB)(Ji),Zi={"accordion__item-wrapping-heading":"accordion__item-wrapping-heading-45345260","accordion__item-header":"accordion__item-header-26962561","accordion__item--open":"accordion__item--open-52bf4ec2",accordion__item:"accordion__item-c7a360bc","accordion__item--disabled":"accordion__item--disabled-ca60e759","accordion__item-content":"accordion__item-content-4c915498"},Qi="tedi-vertical-spacing-331d450d",ea="tedi-vertical-spacing__item-cab39001";function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var na="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ra="object"==typeof self&&self&&self.Object===Object&&self,oa=na||ra||Function("return this")(),ia=function(){return oa.Date.now()},aa=/\s/;var sa=/^\s+/;function la(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&aa.test(e.charAt(t)););return t}(e)+1).replace(sa,"")}var ca=oa.Symbol,ua=Object.prototype,da=ua.hasOwnProperty,pa=ua.toString,fa=ca?ca.toStringTag:void 0;var ga=Object.prototype.toString;var ha=ca?ca.toStringTag:void 0;function ma(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ha&&ha in Object(e)?function(e){var t=da.call(e,fa),n=e[fa];try{e[fa]=void 0;var r=!0}catch{}var o=pa.call(e);return r&&(t?e[fa]=n:delete e[fa]),o}(e):function(e){return ga.call(e)}(e)}function va(e){return null!=e&&"object"==typeof e}function ba(e){return"symbol"==typeof e||va(e)&&"[object Symbol]"==ma(e)}var ya=/^[-+]0x[0-9a-f]+$/i,xa=/^0b[01]+$/i,wa=/^0o[0-7]+$/i,Sa=parseInt;function _a(e){if("number"==typeof e)return e;if(ba(e))return NaN;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=la(e);var n=xa.test(e);return n||wa.test(e)?Sa(e.slice(2),n?2:8):ya.test(e)?NaN:+e}var ja=Math.max,Ea=Math.min;function Ca(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=ia();if(g(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?Ea(n,i-(e-c)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=ia(),n=g(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=_a(t)||0,ta(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ja(_a(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:m(ia())},v}const ka=["xs","sm","md","lg","xl","xxl"];function Ta(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pa(e,t){return e===t||e!=e&&t!=t}function Ra(e,t){for(var n=e.length;n--;)if(Pa(e[n][0],t))return n;return-1}var Oa=Array.prototype.splice;function Ia(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ia.prototype.clear=function(){this.__data__=[],this.size=0},Ia.prototype.delete=function(e){var t=this.__data__,n=Ra(t,e);return!(n<0)&&(n==t.length-1?t.pop():Oa.call(t,n,1),--this.size,!0)},Ia.prototype.get=function(e){var t=this.__data__,n=Ra(t,e);return n<0?void 0:t[n][1]},Ia.prototype.has=function(e){return Ra(this.__data__,e)>-1},Ia.prototype.set=function(e,t){var n=this.__data__,r=Ra(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Aa(e){if(!ta(e))return!1;var t=ma(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ma=oa["__core-js_shared__"],Da=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Fa=Function.prototype.toString;function Na(e){if(null!=e){try{return Fa.call(e)}catch{}try{return e+""}catch{}}return""}var La=/^\[object .+?Constructor\]$/,$a=Function.prototype,Va=Object.prototype,Ba=$a.toString,za=Va.hasOwnProperty,Ga=RegExp("^"+Ba.call(za).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ua(e){return!(!ta(e)||function(e){return!!Da&&Da in e}(e))&&(Aa(e)?Ga:La).test(Na(e))}function Ha(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ua(n)?n:void 0}var Wa=Ha(oa,"Map"),qa=Ha(Object,"create");var Ya=Object.prototype.hasOwnProperty;var Ka=Object.prototype.hasOwnProperty;function Ja(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xa(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Za(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=function(){this.__data__=qa?qa(null):{},this.size=0},Ja.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ja.prototype.get=function(e){var t=this.__data__;if(qa){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ya.call(t,e)?t[e]:void 0},Ja.prototype.has=function(e){var t=this.__data__;return qa?void 0!==t[e]:Ka.call(t,e)},Ja.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qa&&void 0===t?"__lodash_hash_undefined__":t,this},Za.prototype.clear=function(){this.size=0,this.__data__={hash:new Ja,map:new(Wa||Ia),string:new Ja}},Za.prototype.delete=function(e){var t=Xa(this,e).delete(e);return this.size-=t?1:0,t},Za.prototype.get=function(e){return Xa(this,e).get(e)},Za.prototype.has=function(e){return Xa(this,e).has(e)},Za.prototype.set=function(e,t){var n=Xa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Qa(e){var t=this.__data__=new Ia(e);this.size=t.size}Qa.prototype.clear=function(){this.__data__=new Ia,this.size=0},Qa.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qa.prototype.get=function(e){return this.__data__.get(e)},Qa.prototype.has=function(e){return this.__data__.has(e)},Qa.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ia){var r=n.__data__;if(!Wa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Za(r)}return n.set(e,t),this.size=n.size,this};function es(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Za;++t<n;)this.add(e[t])}function ts(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ns(e,t){return e.has(t)}es.prototype.add=es.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},es.prototype.has=function(e){return this.__data__.has(e)};function rs(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new es:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var g=e[d],h=t[d];if(r)var m=a?r(h,g,d,t,e,i):r(g,h,d,e,t,i);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!ts(t,function(e,t){if(!ns(f,t)&&(g===e||o(g,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(g!==h&&!o(g,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}var os=oa.Uint8Array;function is(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function as(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ss=ca?ca.prototype:void 0,ls=ss?ss.valueOf:void 0;function cs(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var us=Array.isArray;function ds(e,t,n){var r=t(e);return us(e)?r:cs(r,n(e))}function ps(){return[]}var fs=Object.prototype.propertyIsEnumerable,gs=Object.getOwnPropertySymbols,hs=gs?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(gs(e),function(t){return fs.call(e,t)}))}:ps;function ms(e){return va(e)&&"[object Arguments]"==ma(e)}var vs=Object.prototype,bs=vs.hasOwnProperty,ys=vs.propertyIsEnumerable,xs=ms(function(){return arguments}())?ms:function(e){return va(e)&&bs.call(e,"callee")&&!ys.call(e,"callee")};var ws="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ss=ws&&"object"==typeof module&&module&&!module.nodeType&&module,_s=Ss&&Ss.exports===ws?oa.Buffer:void 0,js=(_s?_s.isBuffer:void 0)||function(){return!1},Es=/^(?:0|[1-9]\d*)$/;function Cs(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&Es.test(e))&&e>-1&&e%1==0&&e<t}function ks(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ts={};function Ps(e){return function(t){return e(t)}}Ts["[object Float32Array]"]=Ts["[object Float64Array]"]=Ts["[object Int8Array]"]=Ts["[object Int16Array]"]=Ts["[object Int32Array]"]=Ts["[object Uint8Array]"]=Ts["[object Uint8ClampedArray]"]=Ts["[object Uint16Array]"]=Ts["[object Uint32Array]"]=!0,Ts["[object Arguments]"]=Ts["[object Array]"]=Ts["[object ArrayBuffer]"]=Ts["[object Boolean]"]=Ts["[object DataView]"]=Ts["[object Date]"]=Ts["[object Error]"]=Ts["[object Function]"]=Ts["[object Map]"]=Ts["[object Number]"]=Ts["[object Object]"]=Ts["[object RegExp]"]=Ts["[object Set]"]=Ts["[object String]"]=Ts["[object WeakMap]"]=!1;var Rs="object"==typeof exports&&exports&&!exports.nodeType&&exports,Os=Rs&&"object"==typeof module&&module&&!module.nodeType&&module,Is=Os&&Os.exports===Rs&&na.process,As=function(){try{return Os&&Os.require&&Os.require("util").types||Is&&Is.binding&&Is.binding("util")}catch{}}(),Ms=As&&As.isTypedArray,Ds=Ms?Ps(Ms):function(e){return va(e)&&ks(e.length)&&!!Ts[ma(e)]},Fs=Object.prototype.hasOwnProperty;function Ns(e,t){var n=us(e),r=!n&&xs(e),o=!n&&!r&&js(e),i=!n&&!r&&!o&&Ds(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)(t||Fs.call(e,c))&&(!a||!("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Cs(c,l)))&&s.push(c);return s}var Ls=Object.prototype;function $s(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ls)}function Vs(e,t){return function(n){return e(t(n))}}var Bs=Vs(Object.keys,Object),zs=Object.prototype.hasOwnProperty;function Gs(e){return null!=e&&ks(e.length)&&!Aa(e)}function Us(e){return Gs(e)?Ns(e):function(e){if(!$s(e))return Bs(e);var t=[];for(var n in Object(e))zs.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function Hs(e){return ds(e,Us,hs)}var Ws=Object.prototype.hasOwnProperty;var qs=Ha(oa,"DataView"),Ys=Ha(oa,"Promise"),Ks=Ha(oa,"Set"),Js=Ha(oa,"WeakMap"),Xs="[object Map]",Zs="[object Promise]",Qs="[object Set]",el="[object WeakMap]",tl="[object DataView]",nl=Na(qs),rl=Na(Wa),ol=Na(Ys),il=Na(Ks),al=Na(Js),sl=ma;(qs&&sl(new qs(new ArrayBuffer(1)))!=tl||Wa&&sl(new Wa)!=Xs||Ys&&sl(Ys.resolve())!=Zs||Ks&&sl(new Ks)!=Qs||Js&&sl(new Js)!=el)&&(sl=function(e){var t=ma(e),n="[object Object]"==t?e.constructor:void 0,r=n?Na(n):"";if(r)switch(r){case nl:return tl;case rl:return Xs;case ol:return Zs;case il:return Qs;case al:return el}return t});var ll="[object Arguments]",cl="[object Array]",ul="[object Object]",dl=Object.prototype.hasOwnProperty;function pl(e,t,n,r,o,i){var a=us(e),s=us(t),l=a?cl:sl(e),c=s?cl:sl(t),u=(l=l==ll?ul:l)==ul,d=(c=c==ll?ul:c)==ul,p=l==c;if(p&&js(e)){if(!js(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Qa),a||Ds(e)?rs(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new os(e),new os(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pa(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=is;case"[object Set]":var l=1&r;if(s||(s=as),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=rs(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(ls)return ls.call(e)==ls.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&dl.call(e,"__wrapped__"),g=d&&dl.call(t,"__wrapped__");if(f||g){var h=f?e.value():e,m=g?t.value():t;return i||(i=new Qa),o(h,m,n,r,i)}}return!!p&&(i||(i=new Qa),function(e,t,n,r,o,i){var a=1&n,s=Hs(e),l=s.length;if(l!=Hs(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Ws.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=a;++c<l;){var h=e[u=s[c]],m=t[u];if(r)var v=a?r(m,h,u,t,e,i):r(h,m,u,e,t,i);if(!(void 0===v?h===m||o(h,m,n,r,i):v)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function fl(e,t,n,r,o){return e===t||(null==e||null==t||!va(e)&&!va(t)?e!=e&&t!=t:pl(e,t,n,r,fl,o))}function gl(e){return e==e&&!ta(e)}function hl(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ml(e){var t=function(e){for(var t=Us(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,gl(o)]}return t}(e);return 1==t.length&&t[0][2]?hl(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var s=(a=n[o])[0],l=e[s],c=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else if(!fl(c,l,3,r,new Qa))return!1}return!0}(n,0,t)}}var vl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bl=/^\w*$/;function yl(e,t){if(us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ba(e))||(bl.test(e)||!vl.test(e)||null!=t&&e in Object(t))}function xl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xl.Cache||Za),n}xl.Cache=Za;var wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sl=/\\(\\)?/g,_l=function(e){var t=xl(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wl,function(e,n,r,o){t.push(r?o.replace(Sl,"$1"):n||e)}),t}),jl=ca?ca.prototype:void 0,El=jl?jl.toString:void 0;function Cl(e){if("string"==typeof e)return e;if(us(e))return Ta(e,Cl)+"";if(ba(e))return El?El.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function kl(e){return null==e?"":Cl(e)}function Tl(e,t){return us(e)?e:yl(e,t)?[e]:_l(kl(e))}function Pl(e){if("string"==typeof e||ba(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Rl(e,t){for(var n=0,r=(t=Tl(t,e)).length;null!=e&&n<r;)e=e[Pl(t[n++])];return n&&n==r?e:void 0}function Ol(e,t){return null!=e&&t in Object(e)}function Il(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Tl(t,e)).length,i=!1;++r<o;){var a=Pl(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ks(o)&&Cs(a,o)&&(us(e)||xs(e))}(e,t,Ol)}function Al(e,t){return yl(e)&&gl(t)?hl(Pl(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Rl(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Il(n,e):fl(t,r,3)}}function Ml(e){return e}function Dl(e){return yl(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Pl(e)):function(e){return function(t){return Rl(t,e)}}(e)}var Fl=function(){try{var e=Ha(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Nl(e,t,n){"__proto__"==t&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ll=Object.prototype.hasOwnProperty;function $l(e,t,n){var r=e[t];(!Ll.call(e,t)||!Pa(r,n)||void 0===n&&!(t in e))&&Nl(e,t,n)}function Vl(e,t,n,r){if(!ta(e))return e;for(var o=-1,i=(t=Tl(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=Pl(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=void 0)&&(c=ta(u)?u:Cs(t[o+1])?[]:{})}$l(s,l,c),s=s[l]}return e}var Bl=Vs(Object.getPrototypeOf,Object),zl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)cs(t,hs(e)),e=Bl(e);return t}:ps;var Gl=Object.prototype.hasOwnProperty;function Ul(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=$s(e),n=[];for(var r in e)"constructor"==r&&(t||!Gl.call(e,r))||n.push(r);return n}function Hl(e){return Gs(e)?Ns(e,!0):Ul(e)}function Wl(e){return ds(e,Hl,zl)}function ql(e,t){if(null==e)return{};var n=Ta(Wl(e),function(e){return[e]});return t=function(e){return"function"==typeof e?e:null==e?Ml:"object"==typeof e?us(e)?Al(e[0],e[1]):ml(e):Dl(e)}(t),function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Rl(e,a);n(s,a)&&Vl(i,Tl(a,e),s)}return i}(e,n,function(e,n){return t(e,n[0])})}function Yl(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;void 0===l&&(l=e[s]),o?Nl(n,s,l):$l(n,s,l)}return n}var Kl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jl=Kl&&"object"==typeof module&&module&&!module.nodeType&&module,Xl=Jl&&Jl.exports===Kl?oa.Buffer:void 0,Zl=Xl?Xl.allocUnsafe:void 0;function Ql(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ec=Object.prototype.hasOwnProperty;function tc(e){var t=new e.constructor(e.byteLength);return new os(t).set(new os(e)),t}var nc=/\w*$/;var rc=ca?ca.prototype:void 0,oc=rc?rc.valueOf:void 0;function ic(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return tc(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?tc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?tc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,nc.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return oc?Object(oc.call(e)):{}}(e)}}var ac=Object.create,sc=function(){function e(){}return function(t){if(!ta(t))return{};if(ac)return ac(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var lc=As&&As.isMap,cc=lc?Ps(lc):function(e){return va(e)&&"[object Map]"==sl(e)};var uc=As&&As.isSet,dc=uc?Ps(uc):function(e){return va(e)&&"[object Set]"==sl(e)},pc="[object Arguments]",fc="[object Function]",gc="[object Object]",hc={};function mc(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!ta(e))return e;var u=us(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ec.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Ql(e,a)}else{var d=sl(e),p=d==fc||"[object GeneratorFunction]"==d;if(js(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Zl?Zl(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==gc||d==pc||p&&!o){if(a=l||p?{}:function(e){return"function"!=typeof e.constructor||$s(e)?{}:sc(Bl(e))}(e),!s)return l?function(e,t){return Yl(e,zl(e),t)}(e,function(e,t){return e&&Yl(t,Hl(t),e)}(a,e)):function(e,t){return Yl(e,hs(e),t)}(e,function(e,t){return e&&Yl(t,Us(t),e)}(a,e))}else{if(!hc[d])return o?e:{};a=ic(e,d,s)}}i||(i=new Qa);var f=i.get(e);if(f)return f;i.set(e,a),dc(e)?e.forEach(function(r){a.add(mc(r,t,n,r,e,i))}):cc(e)&&e.forEach(function(r,o){a.set(o,mc(r,t,n,o,e,i))});var g=u?void 0:(c?l?Wl:Hs:l?Hl:Us)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(g||e,function(r,o){g&&(r=e[o=r]),$l(a,o,mc(r,t,n,o,e,i))}),a}function vc(e,t){return t.length<2?e:Rl(e,function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(t,0,-1))}function bc(e,t){return null==(e=vc(e,t=Tl(t,e)))||delete e[Pl(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}hc[pc]=hc["[object Array]"]=hc["[object ArrayBuffer]"]=hc["[object DataView]"]=hc["[object Boolean]"]=hc["[object Date]"]=hc["[object Float32Array]"]=hc["[object Float64Array]"]=hc["[object Int8Array]"]=hc["[object Int16Array]"]=hc["[object Int32Array]"]=hc["[object Map]"]=hc["[object Number]"]=hc[gc]=hc["[object RegExp]"]=hc["[object Set]"]=hc["[object String]"]=hc["[object Symbol]"]=hc["[object Uint8Array]"]=hc["[object Uint8ClampedArray]"]=hc["[object Uint16Array]"]=hc["[object Uint32Array]"]=!0,hc["[object Error]"]=hc[fc]=hc["[object WeakMap]"]=!1;var yc=Function.prototype,xc=Object.prototype,wc=yc.toString,Sc=xc.hasOwnProperty,_c=wc.call(Object);function jc(e){if(!va(e)||"[object Object]"!=ma(e))return!1;var t=Bl(e);if(null===t)return!0;var n=Sc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&wc.call(n)==_c}function Ec(e){return jc(e)?void 0:e}var Cc=ca?ca.isConcatSpreadable:void 0;function kc(e){return us(e)||xs(e)||!!(Cc&&e&&e[Cc])}function Tc(e){return(null==e?0:e.length)?function(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=kc),o||(o=[]);++i<a;){var s=e[i];n(s)?cs(o,s):o[o.length]=s}return o}(e):[]}var Pc=Math.max;function Rc(e){return function(){return e}}var Oc=Fl?function(e,t){return Fl(e,"toString",{configurable:!0,enumerable:!1,value:Rc(t),writable:!0})}:Ml,Ic=Date.now;var Ac=function(e){var t=0,n=0;return function(){var r=Ic(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Oc);var Mc=function(e){return Ac(function(e,t,n){return t=Pc(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Pc(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,void 0,Tc),e+"")}(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ta(t,function(t){return t=Tl(t,e),r||(r=t.length>1),t}),Yl(e,Wl(e),n),r&&(n=mc(n,7,Ec));for(var o=t.length;o--;)bc(n,t[o]);return n});const Dc=(e="xs")=>{const t=((e="xs")=>{const[t,n]=(0,d.useState)(e);return(0,d.useLayoutEffect)(()=>{const e=()=>window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs",t=Ca(()=>{n(e())},20);return n(e()),window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}},[]),t})(e),n=d.useMemo(()=>t?ka.slice(0,ka.indexOf(t)+1):[],[t]);return{getCurrentBreakpointProps:d.useCallback((e,t={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...n.map(t=>ql("xs"===t?l:e[t],e=>void 0!==e))].filter(Boolean);return Object.assign(Mc(t,"defaultServerBreakpoint"),...c)},[n])}},Fc=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,element:o="div",size:i=1,...a}=t(e),s=Xi(ea,r);return(0,R.jsx)(o,{"data-name":"vertical-spacing-item",...a,style:{"--vertical-spacing-internal":`${i}${0!==i?"em":""}`},className:s,children:n})},Nc=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,element:o="div",size:i=1,...a}=t(e),s=Xi(Qi,r);return(0,R.jsx)(o,{"data-name":"vertical-spacing",role:"presentation",...a,className:s,style:{"--vertical-spacing-internal":0!==i?`${i}em`:"0"},children:n})};Nc.Item=Fc;const Lc=d.createContext({isOpen:()=>!0,onToggle:()=>null}),$c=e=>{const{children:t,className:n,openItem:r,gutter:o=.5,onToggleItem:i,defaultOpenItem:a=[],...s}=e,l=r||a,[c,u]=d.useState(l);return(0,R.jsx)(Lc.Provider,{value:{isOpen:e=>(i&&typeof r<"u"?r:c).includes(e),onToggle:t=>{if(i)return i(t);((t=e.openItem)=>!!i&&typeof t<"u")(r)||u(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])}},children:(0,R.jsx)("div",{"data-name":"accordion",...s,className:Xi(Zi.accordion,n),children:(0,R.jsx)(Nc,{size:o,children:t})})})};const Vc=e=>{const{scrollOnMatch:t=!0,onMatch:n,id:r,children:o}=e,i=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{const e=()=>{if(-1!==window.location.hash.split("/").filter(e=>0!==e.indexOf("?")&&1!==e.length&&0!==e.length).map(e=>"#"===e.charAt(0)?e.substring(1):e).indexOf(r)){n&&n(r);const e=document.getElementById(r);t&&e&&!function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)&&e.scrollIntoView(i.current?{behavior:"instant"}:{behavior:"smooth",block:"center"})}};return i.current&&(e(),i.current=!1),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[r,n,t]),(0,d.isValidElement)(o)?(0,d.cloneElement)(o,{id:r}):(0,R.jsx)("div",{id:r,children:o})},Bc={card:"card-1dcacf64","card--borderless":"card--borderless-32e5f5c2","card--no-border-radius-top":"card--no-border-radius-top-b4365e4f",card__content:"card__content-815d48ff","card--no-border-radius-right":"card--no-border-radius-right-3ceb8758","card--no-border-radius-bottom":"card--no-border-radius-bottom-63f3360b","card--no-border-radius-left":"card--no-border-radius-left-a3acce4a","card--border-left":"card--border-left-e9b3151f","card--border-top":"card--border-top-e2a66b39","card__header--default":"card__header--default-90734e02","card__header--primary-main":"card__header--primary-main-8de91e10","card__header--primary-active":"card__header--primary-active-6877b9af","card__header--white":"card__header--white-9243bce2","card__header--bg-muted":"card__header--bg-muted-7904d086",card__header:"card__header-5d78acc3"},zc=d.createContext({}),Gc=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Uc=e=>{const t=e=>"object"==typeof e&&"vertical"in e&&"horizontal"in e;return{"--card-content-padding-top":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.top}rem`,"--card-content-padding-right":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.right}rem`,"--card-content-padding-bottom":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.bottom}rem`,"--card-content-padding-left":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.left}rem`}},Hc=["xs","sm","md","lg","xl","xxl"],Wc=(e="xs")=>{const[t,n]=(0,d.useState)(e);return(0,d.useLayoutEffect)(()=>{const e=()=>window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs",t=Ca(()=>{n(e())},20);return n(e()),window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}},[]),t},qc=(e="xs")=>{const t=Wc(e),n=d.useMemo(()=>t?Hc.slice(0,Hc.indexOf(t)+1):[],[t]);return{getCurrentBreakpointProps:d.useCallback((e,t={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...n.map(t=>ql("xs"===t?l:e[t],e=>void 0!==e))].filter(Boolean);return Object.assign(Mc(t,"defaultServerBreakpoint"),...c)},[n])}},Yc=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=qc(e.defaultServerBreakpoint),{children:r,className:o,padding:i,background:a="bg-default",borderRadius:s,borderless:l,border:c="border-default",...u}=n(e,{padding:1}),[d,p]=Gc(c),f=Xi(Bc.card,o,{[Bc[`card--border-${d}`]]:d,[Bc["card--borderless"]]:l,[Bc["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Bc["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Bc["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Bc["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,R.jsx)(zc.Provider,{value:{padding:i,background:a},children:(0,R.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})});Yc.displayName="Card";const Kc=d.createContext({id:"",disabled:!1}),Jc=e=>{const{children:t,className:n,id:r,disabled:o=!1,borderType:i,selected:a=!1,border:s="border-default",...l}=e,{onToggle:c,isOpen:u}=d.useContext(Lc),p=Xi(Zi.accordion__item,n,{[Zi["accordion__item--disabled"]]:o,[Zi["accordion__item--open"]]:u(r)}),f=a||"primary"===i?"primary-main":s;return(0,R.jsx)(Kc.Provider,{value:{id:r,disabled:o},children:(0,R.jsx)(Vc,{id:r,onMatch:e=>{o||c(e)},children:(0,R.jsx)(Yc,{"data-name":"accordion-item",border:f,className:p,...l,children:t})})})},Xc={"tedi-spinner":"tedi-spinner-e16ceadf","tedi-spinner-outer":"tedi-spinner-outer-2060edd3","tedi-spinner--absolute":"tedi-spinner--absolute-6421650f","tedi-spinner__inner":"tedi-spinner__inner-83130f06","tedi-spinner-inner":"tedi-spinner-inner-86942e7c","tedi-spinner--color-primary":"tedi-spinner--color-primary-a5947db9","tedi-spinner--color-secondary":"tedi-spinner--color-secondary-821e61aa","tedi-spinner--size-10":"tedi-spinner--size-10-53c764a3","tedi-spinner--size-16":"tedi-spinner--size-16-2c5fb546","tedi-spinner--size-18":"tedi-spinner--size-18-73ae5727","tedi-spinner--size-48":"tedi-spinner--size-48-b76b700d"};var Zc=a(353),Qc=a(206),eu=a(981),tu=a(535);Zc.extend(Qc),Zc.extend(eu),Zc.extend(tu);const nu={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class ru{constructor({locale:e,formats:t,instance:n}={}){this.lib="dayjs",this.is12HourCycleInCurrentLocale=()=>{var e,t,n;return/A|a/.test(null!==(n=null===(t=null===(e=this.rawDayJsInstance.Ls[this.locale||"en"])||void 0===e?void 0:e.formats)||void 0===t?void 0:t.LT)&&void 0!==n?n:"")},this.getCurrentLocaleCode=()=>this.locale||"en",this.getFormatHelperText=e=>{var t,n;return null!==(n=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?)|./g))||void 0===t?void 0:t.map(e=>{var t,n;return"L"===e[0]&&null!==(n=null===(t=this.rawDayJsInstance.Ls[this.locale||"en"])||void 0===t?void 0:t.formats[e])&&void 0!==n?n:e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==n?n:e},this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.date=e=>null===e?null:this.dayjs(e),this.toJsDate=e=>e.toDate(),this.isValid=e=>this.dayjs(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,n)=>("string"==typeof t&&(t=this.dayjs(t)),t.isValid()?e.diff(t,n):0),this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.startOf("day"),this.endOfDay=e=>e.endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getHours=e=>e.hour(),this.addSeconds=(e,t)=>t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second"),this.addMinutes=(e,t)=>t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute"),this.addHours=(e,t)=>t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour"),this.addDays=(e,t)=>t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day"),this.addWeeks=(e,t)=>t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week"),this.addMonths=(e,t)=>t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month"),this.addYears=(e,t)=>t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year"),this.setMonth=(e,t)=>e.set("month",t),this.setHours=(e,t)=>e.set("hour",t),this.getMinutes=e=>e.minute(),this.setMinutes=(e,t)=>e.set("minute",t),this.getSeconds=e=>e.second(),this.setSeconds=(e,t)=>e.set("second",t),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.setDate=(e,t)=>e.set("date",t),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.getMeridiemText=e=>"am"===e?"AM":"PM",this.startOfYear=e=>e.startOf("year"),this.endOfYear=e=>e.endOf("year"),this.startOfMonth=e=>e.startOf("month"),this.endOfMonth=e=>e.endOf("month"),this.startOfWeek=e=>e.startOf("week"),this.endOfWeek=e=>e.endOf("week"),this.getNextMonth=e=>e.add(1,"month"),this.getPreviousMonth=e=>e.subtract(1,"month"),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.year(),this.setYear=(e,t)=>e.set("year",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(t=>this.formatByString(e.add(t,"day"),"dd"))},this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).isSame(t),this.getWeekArray=e=>{const t=this.dayjs(e).startOf("month").startOf("week"),n=this.dayjs(e).endOf("month").endOf("week");let r=0,o=t;const i=[];for(;o.isBefore(n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=o.add(1,"day"),r+=1}return i},this.getYearRange=(e,t)=>{const n=this.dayjs(e).startOf("year"),r=this.dayjs(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.add(1,"year");return o},this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.rawDayJsInstance=n||Zc,this.dayjs=((e,t)=>t?(...n)=>e(...n).locale(t):e)(this.rawDayJsInstance,e),this.locale=e,this.formats=Object.assign({},nu,t)}}const ou={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:"month",MMMM:"month",D:"day",DD:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",A:"am-pm",a:"am-pm"};class iu extends ru{constructor(...e){super(...e),this.formatTokenMap=ou,this.expandFormat=e=>{var t;const n=null==(t=this.rawDayJsInstance.Ls[this.locale||"en"])?void 0:t.formats;return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,t,r)=>{const o=r&&r.toUpperCase();return t||n[r]||(e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1)))(n[o])})},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase()}}var au=a(784),su=a(411),lu=a(512);const cu="https://github.com/mui/mui-x/blob/HEAD/packages/x-date-pickers/src/locales/utils/pickersLocaleTextApi.ts",uu={close:{description:"Used for closing",components:["CloseButton","Collapse","Notification","FileUpload","Dropdown","Tooltip"],et:"Sulge",en:"Close",ru:"Закрыть"},open:{description:"Used for opening",components:["Collapse"],et:"Ava",en:"Open",ru:"Открыть"},remove:{description:"Used for removing",components:["FileUpload"],et:"Eemalda",en:"Remove",ru:"Удалить"},cancel:{description:"For canceling an action",components:["TableFilter"],et:"Tühista",en:"Cancel",ru:"Отмена"},clear:{description:"For clearing a value",components:["TableFilter","TextField"],et:"Tühjenda",en:"Clear",ru:"Очистить"},search:{description:"For searching",components:["TableFilter"],et:"Otsi",en:"Search",ru:"Поиск"},required:{description:"Required field",components:["TableFilter"],et:"Kohustuslik väli",en:"Required field",ru:"Обязательное поле"},breadcrumbs:{description:"Breadcrumbs navigation label",components:["Breadcrumbs"],et:"Jäljerida",en:"Breadcrumbs",ru:"Навигационная цепочка"},"anchor.new-tab":{description:"Label for when anchor opens in new tab",components:["Anchor"],et:"Avaneb uuel vahelehel",en:"Opens in new tab",ru:"Открывается в новой вкладке"},"header.toggle":{description:"Label for header toggle on mobile",components:["Header"],et:e=>e?"Sulge menüü":"Ava menüü",en:e=>e?"Close menu":"Open menu",ru:e=>e?"Закрыть меню":"Открыть меню"},"header.settings":{description:"Label for HeaderSettings Button",components:["HeaderSettings"],et:"Seaded",en:"Settings",ru:"Настройки"},"header.select-lang":{description:"Label for HeaderLanguage label and Modal Heading",components:["HeaderLanguage"],et:"Keel:",en:"Language:",ru:"Язык:"},"header.role-label":{description:"Label for Role selection",components:["HeaderRole"],et:"Mina esindan:",en:"I represent:",ru:"я представляю:"},"header.login":{description:"Label for login button",components:["Header"],et:"Sisene portaali",en:"Log in",ru:"авторизоваться"},"header.logout":{description:"Label for logout button",components:["Header"],et:"Logi välja",en:"Log out",ru:"Выйти"},"header.logo":{description:"Alt Label for logo",components:["Header"],et:"Logo",en:"Logo",ru:"Логотип"},"file-upload.add":{description:"Label for add file button",components:["FileUpload"],et:"Lisa manus",en:"Add attachment",ru:"Загрузить файл"},"file-upload.accept":{description:"Default label for file extensions",components:["FileUpload"],et:"Lubatud faililaiendid:",en:"Allowed file extensions:",ru:"Разрешенные расширения файлов:"},"file-upload.max-size":{description:"Default label for file size restriction",components:["FileUpload"],et:"Maksimaalne suurus:",en:"Maximum size:",ru:"Максимальный размер:"},"file-upload.size-rejected":{description:"Error label for rejected size",components:["FileUpload"],et:e=>`Fail(id) ${e} on liiga suured`,en:e=>`File(s) ${e} are too large`,ru:e=>`Файл(ы) ${e} слишком велики`},"file-upload.extension-rejected":{description:"Error label for rejected extension",components:["FileUpload"],et:e=>`Fail(id) ${e} on vale laiendiga`,en:e=>`File(s) ${e} have the wrong extension`,ru:e=>`Файл(ы) ${e} имеют неправильное расширение`},"file-dropzone.label":{description:"Default label for dropzone",components:["FileDropzone"],et:"Lohista failid siia või klõpsa, et sirvida",en:"Drop files here, or click to browse",ru:"Перетащите файлы сюда или нажмите, чтобы выбрать"},"modal.close":{description:"Label for modals close button",components:["Modal"],et:"Sulge modaal",en:"Close modal",ru:"Закрыть модальное окно"},"select.loading":{description:"Text when select options are loading",components:["select"],et:"Laadimine...",en:"Loading...",ru:"Загрузка..."},"select.no-options":{description:"Text when select has no options",components:["select"],et:"Valikud puuduvad",en:"No options",ru:"Нет вариантов"},"stepper.completed":{description:"Label for screen-reader that this step is completed (visually hidden)",components:["StepperNav"],et:"Lõpetatud",en:"Completed",ru:"Завершено"},"stepper.not-completed":{description:"Label for screen-reader that this step is not completed (visually hidden)",components:["StepperNav"],et:"Lõpetamata",en:"Not completed",ru:"Не завершено"},"skeleton.loading":{description:"Announced by screen-readers when skeleton is loading",components:["Skeleton"],et:"Laadimine",en:"Loading",ru:"Загрузка"},"skeleton.loading-completed":{description:"Announced by screen-readers when skeleton has completed loading",components:["Skeleton"],et:"Laadimine lõpetatud",en:"Loading completed",ru:"Загрузка завершена"},"spinner.loading":{description:"Announced by screen-readers when spinner is loading",components:["Spinner"],et:"Laadimine",en:"Loading",ru:"Загрузка"},"table.loading":{description:"Shown when table is loading",components:["Table"],et:"Tabel laeb",en:"Table is loading",ru:"Таблица загружается"},"table.empty":{description:"Shown when table is empty",components:["Table"],et:"Tulemused puuduvad",en:"No results",ru:"Нет результатов"},"table.error":{description:"Shown when table is in error state",components:["Table"],et:"Tabeli andmete pärimisel tekkis viga",en:"An error occurred while retrieving table data",ru:"Произошла ошибка при получении данных таблицы"},"table.filter":{description:"Label for filter toggle",components:["Table","TableFilter"],et:"Filtreeri",en:"Filter",ru:"Фильтровать"},"table.filter.select-all":{description:"Label for selecting all",components:["Table","TableFilter"],et:"Vali kõik",en:"Select all",ru:"Выбрать все"},"table.filter.remove-all":{description:"Label for removing all",components:["Table","TableFilter"],et:"Eemalda kõik",en:"Remove all",ru:"Удалить все"},"table.filter.no-options":{description:"When select filter has no options",components:["Table","TableFilter"],et:"Valikud puuduvad",en:"No options",ru:"Нет вариантов"},"table.filter.validation.no-spaces":{description:"Filter validation error - Text can not start with spaces",components:["Table","TableFilter"],et:"Tekst ei tohi alata tühikutega",en:"Filter text cant start with spaces",ru:"Текст фильтра не может начинаться с пробелов"},"table.filter.validation.min-length":{description:"Filter validation error - Text is too short",components:["Table","TableFilter"],et:e=>1===e?`Sisesta vähemalt ${e} tähemärk`:`Sisesta vähemalt ${e} tähemärki`,en:e=>1===e?`Min length is ${e} char`:`Min length is ${e} chars`,ru:e=>1===e?`Минимальная длина ${e} знак`:`Минимальная длина ${e} знаков`},"table.filter.validation.to-before-from":{description:"Filter validation error - End date is before start date",components:["Table","TableFilter"],et:"Lõppkuupäev on enne alguskuupäeva",en:"End date must be after start date",ru:"Дата окончания предшествует дате начала"},"table.filter.from":{description:"Label for date filter from",components:["Table","TableFilter"],et:"Kuupäev alates",en:"Date from",ru:"Дата с"},"table.filter.to":{description:"Label for date filter until",components:["Table","TableFilter"],et:"Kuupäev kuni",en:"Date until",ru:"Дата до"},"table.toggle-sub-row":{description:"Toggle sub row button (Visually hidden)",components:["Table"],et:e=>e?"Sulge alamrida":"Ava alamrida",en:e=>e?"Close subrow":"Open subrow",ru:e=>e?"Закрыть подстроку":"Открыть подстроку"},"table.select-all":{description:"Row selection - Label for check in table header",components:["Table"],et:e=>e?"Eemalda kõik":"Vali kõik",en:e=>e?"Deselect all":"Select all",ru:e=>e?"Убрать выделение со всего":"Выбрать все"},"table.select-row":{description:"Row selection - Label for check in table row",components:["Table"],et:e=>e?"Eemalda rida":"Vali rida",en:e=>e?"Deselect row":"Select row",ru:e=>e?"Отменить выбор строки":"Выбрать ряд"},"table.sort":{description:"Label for sort button",components:["Table"],et:e=>"asc"===e?"Sorteeri kahanevalt":"desc"===e?"Eemalda sorteerimine":"Sorteeri kasvavalt",en:e=>"asc"===e?"Sort decending":"desc"===e?"Remove sorting":"Sort ascending",ru:e=>"asc"===e?"Сортировать по убыванию":"desc"===e?"Отменить сортировку":"Сортировать по возрастанию"},"tooltip.icon-trigger":{description:"Label we use for icons that are tooltip triggers",components:["TooltipTrigger"],et:"Kuva tööriistavihje",en:"Show tooltip",ru:"Показать подсказку"},"pagination.title":{description:"Label of the pagination",components:["Table","Pagination"],et:"Pagineerimine",en:"Pagination",ru:"Страницы"},"pagination.page":{description:"Label of individual page numbers",components:["Table","Pagination"],et:(e,t)=>t?`Aktiivne leht, leht ${e}`:`Mine lehele ${e}`,en:(e,t)=>t?`Current page, page ${e}`:`Go to page ${e}`,ru:(e,t)=>t?`Текущая страница, страница ${e}`:`Перейти на страницу ${e}`},"pagination.prev-page":{description:"Previous page button label",components:["Table","Pagination"],et:"Eelmine leht",en:"Previous page",ru:"Предыдущая страница"},"pagination.next-page":{description:"Next page button label",components:["Table","Pagination"],et:"Järgmine leht",en:"Next page",ru:"Следущая страница"},"pagination.results":{description:"Total results text",components:["Table","Pagination"],et:e=>1===e?"tulemus":"tulemust",en:e=>1===e?"result":"results",ru:e=>1===e?"результат":"результа"},"pagination.page-size":{description:"Label of page size select",components:["Table","Pagination"],et:"Lehe suurus",en:"Page size",ru:"Размер страницы"},"table-of-contents.title":{description:"Title of the table of contents",components:["TableOfContents"],et:"Sisukord",en:"Table of contents",ru:"Содержание"},"table-of-contents.valid":{description:"Number of valid steps",components:["TableOfContents"],et:e=>`${e} valiidsed`,en:e=>`${e} valid`,ru:e=>`${e} действительны`},"table-of-contents.invalid":{description:"Number of invalid steps",components:["TableOfContents"],et:e=>`${e} mitte valiidne`,en:e=>`${e} invalid`,ru:e=>`${e} неверный`},"truncate.see-more":{description:"See more button label",components:["Truncate"],et:"Näita rohkem",en:"Show more",ru:"Показать больше"},"truncate.see-less":{description:"See less button label",components:["Truncate"],et:"Näita vähem",en:"Show less",ru:"Скрыть"},"vertical-progress.edit":{description:"Edit button label",components:["VerticalProgressItem"],et:"Muuda",en:"Edit",ru:"редактировать"},"pickers.previousMonth":{description:`Translation for ${cu}`,components:["Pickers"],et:"Eelmine kuu",en:"Previous month",ru:"Прошлый месяц"},"pickers.nextMonth":{description:`Translation for ${cu}`,components:["Pickers"],et:"Järgmine kuu",en:"Next month",ru:"Следующий месяц"},"pickers.openPreviousView":{description:`Translation for ${cu}`,components:["Pickers"],et:"Ava eelmine vaade",en:"Open previous view",ru:"Открыть предыдущий вид"},"pickers.openNextView":{description:`Translation for ${cu}`,components:["Pickers"],et:"Ava järgmine vaade",en:"Open next view",ru:"Открыть следующий вид"},"pickers.cancelButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Tühista",en:"Cancel",ru:"Отмена"},"pickers.clearButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Tühjenda",en:"Clear",ru:"Очистить"},"pickers.okButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Kinnita",en:"Confirm",ru:"Подтвердить"},"pickers.todayButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Täna",en:"Today",ru:" Сегодня"},"pickers.start":{description:`Translation for ${cu}`,components:["Pickers"],et:"Algus",en:"Start",ru:"Начало"},"pickers.end":{description:`Translation for ${cu}`,components:["Pickers"],et:"Lõpp",en:"End",ru:"Конец"},"pickers.calendarViewSwitchingButtonAriaLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>"day"===e?"Kalendri vaade on lahti, lülitu aasta vaatesse":"month"===e?"Kuu vaade on lahti, lülitu aasta vaatesse":"Aasta vaade on lahti, lülitu kalendri vaatesse",en:e=>"day"===e?"Calendar view is open, switch to year view":"month"===e?"Month view is open, switch to year view":"Year view is open, switch to calendar view",ru:e=>"day"===e?"Открыт календарный вид, переключиться на годовой вид":"month"===e?"Открыт месячный вид, переключиться на месячный вид":"Открыт годовой вид, переключиться на календарный вид"},"pickers.inputModeToggleButtonAriaLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>e?`Teksti välja vaade on lahti, mine ${"calendar"===t?"kalendri":"kella"} vaatesse`:("calendar"===t?"Kalendri":"Kella")+" vaade on lahti, mine teksti välja vaatesse",en:(e,t)=>e?`Text input view is open, go to ${"calendar"===t?"calendar":"clock"} view`:("calendar"===t?"Calendar":"Clock")+" view is open, go to text input view",ru:(e,t)=>e?"Вид ввода текста открыт, перейти к виду "+("calendar"===t?"календаря":"времени"):`Вид ${"calendar"===t?"календаря":"времени"} открыт, перейти к виду ввода текста`},"pickers.clockLabelText":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t,n)=>`Vali ${"hours"===e?"tunnid":"minutes"===e?"minutid":"sekundid"}. ${null===t?"Aega pole valitud":`Valitud aeg on ${n.format(t,"fullTime")}`}`,en:(e,t,n)=>`Select ${"hours"===e?"hours":"minutes"===e?"minutes":"seconds"}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,ru:(e,t,n)=>`Выбрать ${"hours"===e?"часы":"minutes"===e?"минуты":"секунды"}. ${null===t?"Время не выбрано":`Выбранное время ${n.format(t,"fullTime")}`}`},"pickers.hoursClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} tundi`,en:e=>`${e} hours`,ru:e=>`${e} часов`},"pickers.minutesClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} minutit`,en:e=>`${e} minutes`,ru:e=>`${e} минут`},"pickers.secondsClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} sekundit`,en:e=>`${e} seconds`,ru:e=>`${e} секунд`},"pickers.openDatePickerDialogue":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>null!==e&&t.isValid(e)?`Vali kuupäev, valitud kuupäev on ${t.format(e,"fullDate")}`:"Vali kuupäev",en:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",ru:(e,t)=>null!==e&&t.isValid(e)?`Выберите дату, выбранная дата ${t.format(e,"fullDate")}`:"Выберите дату"},"pickers.openTimePickerDialogue":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>null!==e&&t.isValid(e)?`Vali kellaaeg, valitud kellaaeg on ${t.format(e,"fullTime")}`:"Vali kellaaeg",en:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",ru:(e,t)=>null!==e&&t.isValid(e)?`Выберите время, выбранное время ${t.format(e,"fullTime")}`:"Выберите время"},"pickers.timeTableLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kellaaeg",en:"Pick time",ru:"Выберите время"},"pickers.dateTableLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev",en:"Pick date",ru:"Выберите дату"},"pickers.datePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev",en:"Pick date",ru:"Выберите дату"},"pickers.dateTimePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev ja kellaaeg",en:"Pick date and time",ru:"Выберите время и дату"},"pickers.timePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kellaaeg",en:"Pick time",ru:"Выберите время"},"pickers.dateRangePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäeva vahemik",en:"Pick date range",ru:"Выберите даты"},"footer.title":{description:"Label for screen-reader for footer navigation title",components:["Footer"],et:"Jalus",en:"Footer",ru:"Нижний колонтитул"},"numberField.decrement":{description:"Label for screen-reader for number field decrease button",components:["NumberField"],et:e=>`Vähenda ${e} võrra`,en:e=>`Decrease by ${e}`,ru:e=>`Уменьшить на ${e}`},"numberField.increment":{description:"Label for screen-reader for number field increase button",components:["NumberField"],et:e=>`Suurenda ${e} võrra`,en:e=>`Increase by ${e}`,ru:e=>`Увеличить на ${e}`},"numberField.quantityUpdated":{description:"Label for screen-reader when quantity get updated by button click",components:["NumberField"],et:e=>`Uuendatud. Uus väärtus ${e}`,en:e=>`Updated. New value ${e}`,ru:e=>`Ууэндатуд. Уус вяэртус ${e}`},"sidenav.backToMainMenu":{description:"Side navigation label",components:["Sidenav"],et:"Peamenüüsse",en:"Back to main menu",ru:"Назад в главное меню"},"sidenav.backtoMenu":{description:"Side navigation label",components:["Sidenav"],et:"menüüsse",en:"menu",ru:"меню"}};a(941),a(557);function du(){return du=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},du.apply(null,arguments)}function pu(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 fu(e,t){return du({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gu={},hu={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(hu);var mu=hu.exports;function vu(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const bu=(0,Yi.qT)(t);function yu(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const xu=(0,Yi.qT)(n);var wu=mu;Object.defineProperty(gu,"__esModule",{value:!0});var Su=gu.alpha=Du;gu.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Ru(e),a=Ru(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Iu({type:"rgb",values:s})},gu.colorChannel=void 0;var _u=gu.darken=Fu;gu.decomposeColor=Ru,gu.emphasize=Lu;var ju=gu.getContrastRatio=function(e,t){const n=Mu(e),r=Mu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};gu.getLuminance=Mu,gu.hexToRgb=Pu,gu.hslToRgb=Au;var Eu=gu.lighten=Nu;gu.private_safeAlpha=function(e,t,n){try{return Du(e,t)}catch{return e}},gu.private_safeColorChannel=void 0,gu.private_safeDarken=function(e,t,n){try{return Fu(e,t)}catch{return e}},gu.private_safeEmphasize=function(e,t,n){try{return Lu(e,t)}catch{return e}},gu.private_safeLighten=function(e,t,n){try{return Nu(e,t)}catch{return e}},gu.recomposeColor=Iu,gu.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ru(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Cu=wu(bu),ku=wu(xu);function Tu(e,t=0,n=1){return(0,ku.default)(e,t,n)}function Pu(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(", ")})`:""}function Ru(e){if(e.type)return e;if("#"===e.charAt(0))return Ru(Pu(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Cu.default)(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)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Cu.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Ou=e=>{const t=Ru(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};gu.colorChannel=Ou;function Iu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Au(e){e=Ru(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Iu({type:s,values:l})}function Mu(e){let t="hsl"===(e=Ru(e)).type||"hsla"===e.type?Ru(Au(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 Du(e,t){return e=Ru(e),t=Tu(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Iu(e)}function Fu(e,t){if(e=Ru(e),t=Tu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Iu(e)}function Nu(e,t){if(e=Ru(e),t=Tu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Iu(e)}function Lu(e,t=.15){return Mu(e)>.5?Fu(e,t):Nu(e,t)}gu.private_safeColorChannel=(e,t)=>{try{return Ou(e)}catch{return e}};const $u={black:"#000",white:"#fff"},Vu={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"},Bu="#f3e5f5",zu="#ce93d8",Gu="#ba68c8",Uu="#ab47bc",Hu="#9c27b0",Wu="#7b1fa2",qu="#e57373",Yu="#ef5350",Ku="#f44336",Ju="#d32f2f",Xu="#c62828",Zu="#ffb74d",Qu="#ffa726",ed="#ff9800",td="#f57c00",nd="#e65100",rd="#e3f2fd",od="#90caf9",id="#42a5f5",ad="#1976d2",sd="#1565c0",ld="#4fc3f7",cd="#29b6f6",ud="#03a9f4",dd="#0288d1",pd="#01579b",fd="#81c784",gd="#66bb6a",hd="#4caf50",md="#388e3c",vd="#2e7d32",bd="#1b5e20";function yd(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 xd(e){if(d.isValidElement(e)||!yd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xd(e[n])}),t}function wd(e,t,n={clone:!0}){const r=n.clone?du({},e):e;return yd(e)&&yd(t)&&Object.keys(t).forEach(o=>{d.isValidElement(t[o])?r[o]=t[o]:yd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yd(e[o])?r[o]=wd(e[o],t[o],n):n.clone?r[o]=yd(t[o])?xd(t[o]):t[o]:r[o]=t[o]}),r}const Sd=["mode","contrastThreshold","tonalOffset"],_d={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:$u.white,default:$u.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}},jd={text:{primary:$u.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:$u.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}};function Ed(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=Eu(e.main,o):"dark"===t&&(e.dark=_u(e.main,i)))}function Cd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=pu(e,Sd),i=e.primary||function(e="light"){return"dark"===e?{main:od,light:rd,dark:id}:{main:ad,light:id,dark:sd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zu,light:Bu,dark:Uu}:{main:Hu,light:Gu,dark:Wu}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ku,light:qu,dark:Ju}:{main:Ju,light:Yu,dark:Xu}}(t),l=e.info||function(e="light"){return"dark"===e?{main:cd,light:ld,dark:dd}:{main:dd,light:ud,dark:pd}}(t),c=e.success||function(e="light"){return"dark"===e?{main:gd,light:fd,dark:md}:{main:vd,light:hd,dark:bd}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Qu,light:Zu,dark:td}:{main:"#ed6c02",light:ed,dark:nd}}(t);function d(e){return ju(e,jd.text.primary)>=n?jd.text.primary:_d.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=du({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(vu(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(vu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ed(e,"light",o,r),Ed(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:jd,light:_d};return wd(du({common:du({},$u),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Vu,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const kd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Td(e){return Math.round(1e5*e)/1e5}const Pd={textTransform:"uppercase"},Rd='"Roboto", "Helvetica", "Arial", sans-serif';function Od(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Rd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=pu(n,kd),f=o/14,g=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>du({fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n},r===Rd?{letterSpacing:`${Td(o/t)}em`}:{},i,u),m={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Pd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Pd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wd(du({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},m),p,{clone:!1})}function Id(...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 Ad=["none",Id(0,2,1,-1,0,1,1,0,0,1,3,0),Id(0,3,1,-2,0,2,2,0,0,1,5,0),Id(0,3,3,-2,0,3,4,0,0,1,8,0),Id(0,2,4,-1,0,4,5,0,0,1,10,0),Id(0,3,5,-1,0,5,8,0,0,1,14,0),Id(0,3,5,-1,0,6,10,0,0,1,18,0),Id(0,4,5,-2,0,7,10,1,0,2,16,1),Id(0,5,5,-3,0,8,10,1,0,3,14,2),Id(0,5,6,-3,0,9,12,1,0,3,16,2),Id(0,6,6,-3,0,10,14,1,0,4,18,3),Id(0,6,7,-4,0,11,15,1,0,4,20,3),Id(0,7,8,-4,0,12,17,2,0,5,22,4),Id(0,7,8,-4,0,13,19,2,0,5,24,4),Id(0,7,9,-4,0,14,21,2,0,5,26,4),Id(0,8,9,-5,0,15,22,2,0,6,28,5),Id(0,8,10,-5,0,16,24,2,0,6,30,5),Id(0,8,11,-5,0,17,26,2,0,6,32,5),Id(0,9,11,-5,0,18,28,2,0,7,34,6),Id(0,9,12,-6,0,19,29,2,0,7,36,6),Id(0,10,13,-6,0,20,31,3,0,8,38,7),Id(0,10,13,-6,0,21,33,3,0,8,40,7),Id(0,10,14,-6,0,22,35,3,0,8,42,7),Id(0,11,14,-7,0,23,36,3,0,9,44,8),Id(0,11,15,-7,0,24,38,3,0,9,46,8)],Md=["duration","easing","delay"],Dd={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)"},Fd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Nd(e){return`${Math.round(e)}ms`}function Ld(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $d(e){const t=du({},Dd,e.easing),n=du({},Fd,e.duration);return du({getAutoHeightDuration:Ld,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;pu(r,Md);return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Nd(o)} ${i} ${"string"==typeof a?a:Nd(a)}`).join(",")}},e,{easing:t,duration:n})}const Vd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Bd=["values","unit","step"],zd=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)=>du({},e,{[t.key]:t.val}),{})};function Gd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=pu(e,Bd),i=zd(t),a=Object.keys(i);function s(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 c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return du({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Ud={borderRadius:4},Hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Wd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hd[e]}px)`};function qd(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Wd;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Wd;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||Hd).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function Yd(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Kd({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 Jd(e){if("string"!=typeof e)throw new Error(vu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xd(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 Zd(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Xd(e,n)||r,t&&(o=t(o,r,e)),o}function Qd(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],a=Xd(e.theme,r)||{};return qd(e,i,e=>{let r=Zd(a,o,e);return e===r&&"string"==typeof e&&(r=Zd(a,o,`${t}${"default"===e?"":Jd(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}function ep(e,t){return t?wd(e,t,{clone:!1}):e}const tp={m:"margin",p:"padding"},np={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},op=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!rp[e])return[e];e=rp[e]}const[t,n]=e.split(""),r=tp[t],o=np[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ip=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ap=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function sp(e,t,n,r){var o;const i=null!=(o=Xd(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function lp(e){return sp(e,"spacing",8)}function cp(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function up(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=cp(t,n),e),{})}(op(n),r);return qd(e,e[n],o)}function dp(e,t){const n=lp(e.theme);return Object.keys(e).map(r=>up(e,t,r,n)).reduce(ep,{})}function pp(e){return dp(e,ip)}function fp(e){return dp(e,ap)}function gp(...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]?ep(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function hp(e){return"number"!=typeof e?e:`${e}px solid`}function mp(e,t){return Qd({prop:e,themeKey:"borders",transform:t})}pp.propTypes={},pp.filterProps=ip,fp.propTypes={},fp.filterProps=ap;const vp=mp("border",hp),bp=mp("borderTop",hp),yp=mp("borderRight",hp),xp=mp("borderBottom",hp),wp=mp("borderLeft",hp),Sp=mp("borderColor"),_p=mp("borderTopColor"),jp=mp("borderRightColor"),Ep=mp("borderBottomColor"),Cp=mp("borderLeftColor"),kp=mp("outline",hp),Tp=mp("outlineColor"),Pp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=sp(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:cp(t,e)});return qd(e,e.borderRadius,n)}return null};Pp.propTypes={},Pp.filterProps=["borderRadius"],gp(vp,bp,yp,xp,wp,Sp,_p,jp,Ep,Cp,Pp,kp,Tp);const Rp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=sp(e.theme,"spacing",8),n=e=>({gap:cp(t,e)});return qd(e,e.gap,n)}return null};Rp.propTypes={},Rp.filterProps=["gap"];const Op=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=sp(e.theme,"spacing",8),n=e=>({columnGap:cp(t,e)});return qd(e,e.columnGap,n)}return null};Op.propTypes={},Op.filterProps=["columnGap"];const Ip=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=sp(e.theme,"spacing",8),n=e=>({rowGap:cp(t,e)});return qd(e,e.rowGap,n)}return null};Ip.propTypes={},Ip.filterProps=["rowGap"];function Ap(e,t){return"grey"===t?t:e}gp(Rp,Op,Ip,Qd({prop:"gridColumn"}),Qd({prop:"gridRow"}),Qd({prop:"gridAutoFlow"}),Qd({prop:"gridAutoColumns"}),Qd({prop:"gridAutoRows"}),Qd({prop:"gridTemplateColumns"}),Qd({prop:"gridTemplateRows"}),Qd({prop:"gridTemplateAreas"}),Qd({prop:"gridArea"}));function Mp(e){return e<=1&&0!==e?100*e+"%":e}gp(Qd({prop:"color",themeKey:"palette",transform:Ap}),Qd({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ap}),Qd({prop:"backgroundColor",themeKey:"palette",transform:Ap}));const Dp=Qd({prop:"width",transform:Mp}),Fp=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Hd[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mp(t)}};return qd(e,e.maxWidth,t)}return null};Fp.filterProps=["maxWidth"];const Np=Qd({prop:"minWidth",transform:Mp}),Lp=Qd({prop:"height",transform:Mp}),$p=Qd({prop:"maxHeight",transform:Mp}),Vp=Qd({prop:"minHeight",transform:Mp});Qd({prop:"size",cssProperty:"width",transform:Mp}),Qd({prop:"size",cssProperty:"height",transform:Mp});gp(Dp,Fp,Np,Lp,$p,Vp,Qd({prop:"boxSizing"}));const Bp={border:{themeKey:"borders",transform:hp},borderTop:{themeKey:"borders",transform:hp},borderRight:{themeKey:"borders",transform:hp},borderBottom:{themeKey:"borders",transform:hp},borderLeft:{themeKey:"borders",transform:hp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pp},color:{themeKey:"palette",transform:Ap},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ap},backgroundColor:{themeKey:"palette",transform:Ap},p:{style:fp},pt:{style:fp},pr:{style:fp},pb:{style:fp},pl:{style:fp},px:{style:fp},py:{style:fp},padding:{style:fp},paddingTop:{style:fp},paddingRight:{style:fp},paddingBottom:{style:fp},paddingLeft:{style:fp},paddingX:{style:fp},paddingY:{style:fp},paddingInline:{style:fp},paddingInlineStart:{style:fp},paddingInlineEnd:{style:fp},paddingBlock:{style:fp},paddingBlockStart:{style:fp},paddingBlockEnd:{style:fp},m:{style:pp},mt:{style:pp},mr:{style:pp},mb:{style:pp},ml:{style:pp},mx:{style:pp},my:{style:pp},margin:{style:pp},marginTop:{style:pp},marginRight:{style:pp},marginBottom:{style:pp},marginLeft:{style:pp},marginX:{style:pp},marginY:{style:pp},marginInline:{style:pp},marginInlineStart:{style:pp},marginInlineEnd:{style:pp},marginBlock:{style:pp},marginBlockStart:{style:pp},marginBlockEnd:{style:pp},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:Rp},rowGap:{style:Ip},columnGap:{style:Op},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mp},maxWidth:{style:Fp},minWidth:{transform:Mp},height:{transform:Mp},maxHeight:{transform:Mp},minHeight:{transform:Mp},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zp(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Xd(n,s)||{};return c?c(o):qd(o,t,t=>{let n=Zd(u,l,t);return t===n&&"string"==typeof t&&(n=Zd(u,l,`${e}${"default"===t?"":Jd(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:Bp;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(s[n])c=ep(c,e(n,o,i,s));else{const e=qd({theme:i},o,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,o)?c=ep(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=ep(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Yd(l,c)}:Yd(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Gp=zp();function Up(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}Gp.filterProps=["sx"];const Hp=["breakpoints","palette","spacing","shape"];function Wp(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=pu(e,Hp),s=Gd(n),l=function(e=8){if(e.mui)return e;const t=lp({spacing:e}),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}(o);let c=wd({breakpoints:s,direction:"ltr",components:{},palette:du({mode:"light"},r),spacing:l,shape:du({},Ud,i)},a);return c.applyStyles=Up,c=t.reduce((e,t)=>wd(e,t),c),c.unstable_sxConfig=du({},Bp,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Gp({sx:e,theme:this})},c}const qp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Yp=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=pu(e,qp);if(e.vars&&void 0===e.generateCssVars)throw new Error(vu(18));const s=Cd(r),l=Wp(e);let c=wd(l,{mixins:fu(l.breakpoints,n),palette:s,shadows:Ad.slice(),typography:Od(s,i),transitions:$d(o),zIndex:du({},Vd)});return c=wd(c,a),c=t.reduce((e,t)=>wd(e,t),c),c.unstable_sxConfig=du({},Bp,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Gp({sx:e,theme:this})},c}(),Kp="$$material";function Jp(e,t){const n=du({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=du({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=du({},i),Object.keys(o).forEach(e=>{n[r][e]=Jp(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function Xp(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jp(t.components[n].defaultProps,r):r}var Zp=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{}}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}(),Qp="-ms-",ef="-moz-",tf="-webkit-",nf="comm",rf="rule",of="decl",af="@keyframes",sf=Math.abs,lf=String.fromCharCode,cf=Object.assign;function uf(e){return e.trim()}function df(e,t,n){return e.replace(t,n)}function pf(e,t){return e.indexOf(t)}function ff(e,t){return 0|e.charCodeAt(t)}function gf(e,t,n){return e.slice(t,n)}function hf(e){return e.length}function mf(e){return e.length}function vf(e,t){return t.push(e),e}function bf(e,t){for(var n="",r=mf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case of:return e.return=e.return||e.value;case nf:return"";case af:return e.return=e.value+"{"+bf(e.children,r)+"}";case rf:e.value=e.props.join(",")}return hf(n=bf(e.children,r))?e.return=e.value+"{"+n+"}":""}var xf=1,wf=1,Sf=0,_f=0,jf=0,Ef="";function Cf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xf,column:wf,length:a,return:""}}function kf(e,t){return cf(Cf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tf(){return jf=_f>0?ff(Ef,--_f):0,wf--,10===jf&&(wf=1,xf--),jf}function Pf(){return jf=_f<Sf?ff(Ef,_f++):0,wf++,10===jf&&(wf=1,xf++),jf}function Rf(){return ff(Ef,_f)}function Of(){return _f}function If(e,t){return gf(Ef,e,t)}function Af(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 Mf(e){return xf=wf=1,Sf=hf(Ef=e),_f=0,[]}function Df(e){return Ef="",e}function Ff(e){return uf(If(_f-1,$f(91===e?e+2:40===e?e+1:e)))}function Nf(e){for(;(jf=Rf())&&jf<33;)Pf();return Af(e)>2||Af(jf)>3?"":" "}function Lf(e,t){for(;--t&&Pf()&&!(jf<48||jf>102||jf>57&&jf<65||jf>70&&jf<97););return If(e,Of()+(t<6&&32==Rf()&&32==Pf()))}function $f(e){for(;Pf();)switch(jf){case e:return _f;case 34:case 39:34!==e&&39!==e&&$f(jf);break;case 40:41===e&&$f(e);break;case 92:Pf()}return _f}function Vf(e,t){for(;Pf()&&e+jf!==57&&(e+jf!==84||47!==Rf()););return"/*"+If(t,_f-1)+"*"+lf(47===e?e:Pf())}function Bf(e){for(;!Af(Rf());)Pf();return If(e,_f)}function zf(e){return Df(Gf("",null,null,null,[""],e=Mf(e),0,[0],e))}function Gf(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,g=0,h=1,m=1,v=1,b=0,y="",x=o,w=i,S=r,_=y;m;)switch(g=b,b=Pf()){case 40:if(108!=g&&58==ff(_,d-1)){-1!=pf(_+=df(Ff(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Ff(b);break;case 9:case 10:case 13:case 32:_+=Nf(g);break;case 92:_+=Lf(Of()-1,7);continue;case 47:switch(Rf()){case 42:case 47:vf(Hf(Vf(Pf(),Of()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=hf(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=df(_,/\f/g,"")),f>0&&hf(_)-d&&vf(f>32?Wf(_+";",r,n,d-1):Wf(df(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(vf(S=Uf(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)Gf(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===ff(_,3)?100:p){case 100:case 108:case 109:case 115:Gf(e,S,S,r&&vf(Uf(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Gf(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+hf(_),f=g;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Tf())continue;switch(_+=lf(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(hf(_)-1)*v,v=1;break;case 64:45===Rf()&&(_+=Ff(Pf())),p=Rf(),u=d=hf(y=_+=Bf(Of())),b++;break;case 45:45===g&&2==hf(_)&&(h=0)}}return i}function Uf(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=mf(p),g=0,h=0,m=0;g<r;++g)for(var v=0,b=gf(e,d+1,d=sf(h=a[g])),y=e;v<f;++v)(y=uf(h>0?p[v]+" "+b:df(b,/&\f/g,p[v])))&&(l[m++]=y);return Cf(e,t,n,0===o?rf:s,l,c,u)}function Hf(e,t,n){return Cf(e,t,n,nf,lf(jf),gf(e,2,-2),0)}function Wf(e,t,n,r){return Cf(e,t,n,of,gf(e,0,r),gf(e,r+1,-1),r)}function qf(e){return function(t){t.root||(t=t.return)&&e(t)}}var Yf=function(e,t,n){for(var r=0,o=0;r=o,o=Rf(),38===r&&12===o&&(t[n]=1),!Af(o);)Pf();return If(e,_f)},Kf=function(e,t){return Df(function(e,t){var n=-1,r=44;do{switch(Af(r)){case 0:38===r&&12===Rf()&&(t[n]=1),e[n]+=Yf(_f-1,t,n);break;case 2:e[n]+=Ff(r);break;case 4:if(44===r){e[++n]=58===Rf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=lf(r)}}while(r=Pf());return e}(Mf(e),t))},Jf=new WeakMap,Xf=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)||Jf.get(n))&&!r){Jf.set(e,!0);for(var o=[],i=Kf(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Zf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Qf(e,t){switch(function(e,t){return 45^ff(e,0)?(((t<<2^ff(e,0))<<2^ff(e,1))<<2^ff(e,2))<<2^ff(e,3):0}(e,t)){case 5103:return tf+"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 tf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tf+e+ef+e+Qp+e+e;case 6828:case 4268:return tf+e+Qp+e+e;case 6165:return tf+e+Qp+"flex-"+e+e;case 5187:return tf+e+df(e,/(\w+).+(:[^]+)/,tf+"box-$1$2"+Qp+"flex-$1$2")+e;case 5443:return tf+e+Qp+"flex-item-"+df(e,/flex-|-self/,"")+e;case 4675:return tf+e+Qp+"flex-line-pack"+df(e,/align-content|flex-|-self/,"")+e;case 5548:return tf+e+Qp+df(e,"shrink","negative")+e;case 5292:return tf+e+Qp+df(e,"basis","preferred-size")+e;case 6060:return tf+"box-"+df(e,"-grow","")+tf+e+Qp+df(e,"grow","positive")+e;case 4554:return tf+df(e,/([^-])(transform)/g,"$1"+tf+"$2")+e;case 6187:return df(df(df(e,/(zoom-|grab)/,tf+"$1"),/(image-set)/,tf+"$1"),e,"")+e;case 5495:case 3959:return df(e,/(image-set\([^]*)/,tf+"$1$`$1");case 4968:return df(df(e,/(.+:)(flex-)?(.*)/,tf+"box-pack:$3"+Qp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tf+e+e;case 4095:case 3583:case 4068:case 2532:return df(e,/(.+)-inline(.+)/,tf+"$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(hf(e)-1-t>6)switch(ff(e,t+1)){case 109:if(45!==ff(e,t+4))break;case 102:return df(e,/(.+:)(.+)-([^]+)/,"$1"+tf+"$2-$3$1"+ef+(108==ff(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pf(e,"stretch")?Qf(df(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ff(e,t+1))break;case 6444:switch(ff(e,hf(e)-3-(~pf(e,"!important")&&10))){case 107:return df(e,":",":"+tf)+e;case 101:return df(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tf+(45===ff(e,14)?"inline-":"")+"box$3$1"+tf+"$2$3$1"+Qp+"$2box$3")+e}break;case 5936:switch(ff(e,t+11)){case 114:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tf+e+Qp+e+e}return e}var eg=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case of:e.return=Qf(e.value,e.length);break;case af:return bf([kf(e,{value:df(e.value,"@","@"+tf)})],r);case rf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bf([kf(e,{props:[df(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bf([kf(e,{props:[df(t,/:(plac\w+)/,":"+tf+"input-$1")]}),kf(e,{props:[df(t,/:(plac\w+)/,":-moz-$1")]}),kf(e,{props:[df(t,/:(plac\w+)/,Qp+"input-$1")]})],r)}return""})}}],tg=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=e.stylisPlugins||eg,i={},a=[];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++)i[t[n]]=!0;a.push(e)});var s,l,c=[Xf,Zf],u=[yf,qf(function(e){l.insert(e)})],d=function(e){var t=mf(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(c.concat(o,u));s=function(e,t,n,r){l=n,function(e){bf(zf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Zp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(a),p};function ng(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var rg=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},og=function(e,t,n){rg(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)}};var ig={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 ag(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var sg=/[A-Z]|^ms/g,lg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cg=function(e){return 45===e.charCodeAt(1)},ug=function(e){return null!=e&&"boolean"!=typeof e},dg=ag(function(e){return cg(e)?e:e.replace(sg,"-$&").toLowerCase()}),pg=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lg,function(e,t,n){return gg={name:t,styles:n,next:gg},t})}return 1===ig[e]||cg(e)||"number"!=typeof t||0===t?t:t+"px"};function fg(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 gg={name:o.name,styles:o.styles,next:gg},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)gg={name:a.name,styles:a.styles,next:gg},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fg(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ug(s)&&(r+=dg(i)+":"+pg(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=fg(e,t,a);switch(i){case"animation":case"animationName":r+=dg(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ug(a[c])&&(r+=dg(i)+":"+pg(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=gg,l=n(e);return gg=s,fg(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var gg,hg=/label:\s*([^\s;{]+)\s*(;|$)/g;function mg(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="";gg=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=fg(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=fg(n,t,e[a]),r){o+=i[a]}hg.lastIndex=0;for(var s,l="";null!==(s=hg.exec(o));)l+="-"+s[1];var c=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:c,styles:o,next:gg}}var vg=!!d.useInsertionEffect&&d.useInsertionEffect,bg=vg||function(e){return e()},yg=vg||d.useLayoutEffect,xg=d.createContext(typeof HTMLElement<"u"?tg({key:"css"}):null),wg=xg.Provider,Sg=function(e){return(0,d.forwardRef)(function(t,n){var r=(0,d.useContext)(xg);return e(t,r,n)})},_g=d.createContext({}),jg={}.hasOwnProperty,Eg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rg(t,n,r),bg(function(){return og(t,n,r)}),null},kg=Sg(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Eg],i=[r],a="";"string"==typeof e.className?a=ng(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mg(i,void 0,d.useContext(_g));a+=t.key+"-"+s.name;var l={};for(var c in e)jg.call(e,c)&&"css"!==c&&c!==Eg&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),d.createElement(d.Fragment,null,d.createElement(Cg,{cache:t,serialized:s,isStringTag:"string"==typeof o}),d.createElement(o,l))}),Tg=kg;function Pg(e=null){const t=d.useContext(_g);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const Rg=Wp();function Og(e=Rg){return Pg(e)}function Ig({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Og(n);return o=o[r]||o,Xp({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Yp,themeId:Kp})}const Ag={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Mg=Ag;(e=>{du({},e)})(Ag);const Dg=d.createContext(null);function Fg(e){const t=Ig({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=d.useMemo(()=>new r({locale:s??a,formats:o,instance:i}),[r,a,s,o,i]),u=d.useMemo(()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")}),[c]),p=d.useMemo(()=>({utils:c,defaultDates:u,localeText:du({},Mg,l??{})}),[u,c,l]);return(0,R.jsx)(Dg.Provider,{value:p,children:n})}Zc.extend(lu),Zc.extend(su),Zc.extend(au),Zc.updateLocale("en",{weekStart:1});const Ng=d.createContext({getLabel:(e,...t)=>(console.error("LabelProvider missing! Application must be wrapped with <LabelProvider>"),e)}),Lg=e=>{const{labels:t={},children:n,locale:r="en"}=e,o=(0,d.useMemo)(()=>{const e={},n=new Set([...Object.keys(uu),...Object.keys(t)]);for(const o of n){const n=o,i=uu[n]?uu[n][r]:void 0,a=t[n]??void 0;let s;s=a?"object"==typeof a?a[r]:a:void 0,e[n]=s??i??n}return e},[t,r]);Zc.locale(r);const i=(0,d.useCallback)((e,...t)=>{const n=o[e];return n?"function"==typeof n?n(...t):n:(console.error(`Label missing for key "${e}".`),e)},[o]),a=Object.keys(o).reduce((e,t)=>({...e,...t.startsWith("pickers.")?{[t.replace("pickers.","")]:o[t]}:{}}),{});return(0,R.jsx)(Ng.Provider,{value:{getLabel:i},children:(0,R.jsx)(Fg,{dateAdapter:iu,dateLibInstance:Zc,localeText:a,adapterLocale:r,children:n})})},$g=()=>d.useContext(Ng),Vg=e=>{const{getLabel:t}=$g(),{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{className:r,size:o=16,color:i="primary",label:a=t("spinner.loading"),position:s}=n(e),l=Xi(Xc["tedi-spinner"],r,s&&Xc[`tedi-spinner--${s}`],o&&Xc[`tedi-spinner--size-${o}`],i&&Xc[`tedi-spinner--color-${i}`]);return(0,R.jsxs)("span",{className:l,role:"status","aria-live":"polite","data-testid":"tedi-spinner",children:[(0,R.jsx)("svg",{viewBox:"22 22 44 44","aria-hidden":"true",children:(0,R.jsx)("circle",{className:Xc["tedi-spinner__inner"],cx:"44",cy:"44",r:"20",fill:"none"})}),(0,R.jsx)("span",{className:"sr-only",children:a})]})},Bg=(0,d.forwardRef)((e,t)=>{const{children:n,visibility:r,breakBefore:o,breakInside:i,breakAfter:a}=e,s=(e,t)=>{var n;const s=Xi(null==(n=null==e?void 0:e.props)?void 0:n.className,{"no-print":"hide"===r,"show-print":"show"===r,[`break-before-${o}`]:o,[`break-after-${a}`]:a,[`break-inside-${i}`]:i});return e?d.cloneElement(e,{...e.props,className:s,key:t}):null};return Array.isArray(n)?(0,R.jsx)(R.Fragment,{children:null==n?void 0:n.map((e,t)=>e?s(e,t):null)}):s(n)});Bg.displayName="Print";const zg={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},Gg=(0,d.forwardRef)((e,t)=>{const{className:n,name:r,filled:o=!1,label:i,type:a="outlined",size:s=24,display:l="block",color:c,...u}=e,d=Xi("notranslate","material-symbols",zg.icon,zg[`icon--${l}`],{[`material-symbols--${a}`]:a,[`text-${c}`]:c},n),p={...s?{"--icon-internal-variation-size":s/16+"rem"}:{},...o?{"--icon-internal-variation-fill":1}:{}};return(0,R.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})});Gg.displayName="Icon";const Ug={btn:"btn-a9ce955b","btn--small":"btn--small-5daaaf3d","btn--icon-only":"btn--icon-only-375cfc7d","btn--tertiary":"btn--tertiary-c1cc08ad","btn--default":"btn--default-eca73b71","btn--primary":"btn--primary-22126c0a","btn--is-active":"btn--is-active-a0b6b950","btn--is-hovered":"btn--is-hovered-4a27da20","btn--secondary":"btn--secondary-a76a0864","btn--important":"btn--important-1a53be26","btn--positive":"btn--positive-46a2598e","btn--inverted":"btn--inverted-3fc5447d","btn--link":"btn--link-92dffb55","btn--text-color":"btn--text-color-2cc027f7",btn__text:"btn__text-7d9d1a13","btn--is-loading":"btn--is-loading-00320401","btn--icon":"btn--icon-456b539f",btn__inner:"btn__inner-804ab13a","btn__icon-standalone--link":"btn__icon-standalone--link-03d2f699",btn__icon:"btn__icon-738969c8","btn__icon--left":"btn__icon--left-50b31870","btn__icon--right":"btn__icon--right-9b9e8607",btn__spinner:"btn__spinner-5ad34e4e","btn--underline":"btn--underline-e2d2c82b","btn--no-style":"btn--no-style-ed081476","btn--full-width":"btn--full-width-9809b856"},Hg=(0,d.forwardRef)(({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:g,renderWrapperElement:h,fullWidth:m,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=g?Xi(Ug["btn--no-style"],r,{[Ug["btn--full-width"]]:m}):Xi(Ug.btn,Ug[`btn--${o}`],Ug[`btn--${i}`],r,{[Ug[`btn--${a}`]]:a},{[Ug["btn--underline"]]:u},{[Ug["btn--is-hovered"]]:d},{[Ug["btn--is-active"]]:p},{[Ug["btn--is-loading"]]:f},{[Ug["btn--icon-only"]]:s},{[Ug["btn--icon"]]:w},{[Ug["btn--full-width"]]:m}),_=(e,t)=>{const n={size:16,className:Xi(Ug.btn__icon,Ug[`btn__icon--${e}`],{[Ug.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Xi(n.className,null==t?void 0:t.className)};return f?(0,R.jsx)(Vg,{className:r.className}):(0,R.jsx)(Gg,{...r})};return(0,R.jsx)(Bg,{visibility:"hide",children:(0,R.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:g?e:(0,R.jsxs)("span",{className:Ug.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,R.jsx)("span",{className:Ug.btn__text,children:e}),f&&!w&&(0,R.jsx)(Vg,{position:"absolute",className:Ug.btn__spinner}),c&&_("right",c)]})})})});Hg.displayName="ButtonContent";const Wg=Hg,qg=(0,d.forwardRef)((e,t)=>{const{children:n,as:r,type:o,formNoValidate:i,visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:g,noStyle:h,...m}=e;return(0,R.jsx)(Wg,{"data-name":"button",...m,type:o||"button",formNoValidate:!!(i??"submit"===o)||void 0,ref:t,as:r||"button",visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:g,noStyle:h,children:n})});qg.displayName="Button";const Yg=qg,Kg="toggle--open-31d6b84d",Jg="toggle--close-8f1101e9",Xg=({openText:e,closeText:t,isOpen:n,iconRight:r,...o})=>{const i=Xi({[Kg]:n},{[Jg]:!n},null==r?void 0:r.className);return(0,R.jsx)(Yg,{"data-name":"button",iconRight:{...r,className:i,name:"expand_more"},...o,children:n?t:e})},Zg=e=>{const{getCurrentBreakpointProps:t}=qc(e.defaultServerBreakpoint),{children:n,className:r,tabIndex:o,element:i="p",modifiers:a,color:s,...l}=t(e,{tabIndex:e.id?-1:void 0}),c="string"==typeof a?[a]:a,u=Xi(r,null==c?void 0:c.map(e=>`text-${e}`),{[`text-${s}`]:s});return(0,R.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Qg=e=>{const{children:t,element:n="h1",...r}=e;return(0,R.jsx)(Zg,{element:n,...r,children:t})},eh=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=qc(e.defaultServerBreakpoint),{padding:o}=d.useContext(zc),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Xi(Bc.card__header,Bc[`card__header--${s}`],a);return(0,R.jsx)("div",{"data-name":"card-header",style:Uc(l),...c,className:u,children:i})};eh.displayName="CardHeader";const th=["xxl","xl","lg","md","sm","xs"],nh={"flex-fill":"flex-fill-d3cb0c7b","flex-row":"flex-row-a5cec7ab","flex-column":"flex-column-4c240f86","flex-row-reverse":"flex-row-reverse-e1952466","flex-column-reverse":"flex-column-reverse-10dff9af","flex-grow-0":"flex-grow-0-38f9494e","flex-grow-1":"flex-grow-1-cfa86456","flex-shrink-0":"flex-shrink-0-19c6cbe8","flex-shrink-1":"flex-shrink-1-01e3dcc2","flex-wrap":"flex-wrap-b3c06e49","flex-nowrap":"flex-nowrap-55575a56","flex-wrap-reverse":"flex-wrap-reverse-b8dc1a6c","justify-content-start":"justify-content-start-c34d6a29","justify-content-end":"justify-content-end-6e0f4bc4","justify-content-center":"justify-content-center-5d443642","justify-content-between":"justify-content-between-c01471ee","justify-content-around":"justify-content-around-3b4af02a","justify-content-evenly":"justify-content-evenly-e9b8648d","align-items-start":"align-items-start-79eed79a","align-items-end":"align-items-end-2a1416a4","align-items-center":"align-items-center-fac7ba36","align-items-baseline":"align-items-baseline-05f7cbb9","align-items-stretch":"align-items-stretch-b2c1f02a","align-self-auto":"align-self-auto-74bc84a2","align-self-start":"align-self-start-d272f17a","align-self-end":"align-self-end-7b23bd10","align-self-center":"align-self-center-d02b77f0","align-self-baseline":"align-self-baseline-57bc5f49","align-self-stretch":"align-self-stretch-b9f117da","order-first":"order-first-42a4f084","order-0":"order-0-05ce57a9","order-1":"order-1-7d073bda","order-2":"order-2-f5401994","order-3":"order-3-b639a5db","order-4":"order-4-02c6eb90","order-5":"order-5-36931bb5","order-last":"order-last-25f05a77","gap-0":"gap-0-b36b974b","gap-1":"gap-1-d7e4fa89","gap-2":"gap-2-f4fc5b0b","gap-3":"gap-3-d8a7691e","gap-4":"gap-4-6232a9e4","gap-5":"gap-5-18b292f5","flex-sm-fill":"flex-sm-fill-4c4f8a55","flex-sm-row":"flex-sm-row-49c51cb2","flex-sm-column":"flex-sm-column-ce7c93a3","flex-sm-row-reverse":"flex-sm-row-reverse-e46a5fab","flex-sm-column-reverse":"flex-sm-column-reverse-b202dfd6","flex-sm-grow-0":"flex-sm-grow-0-cd39f51a","flex-sm-grow-1":"flex-sm-grow-1-04ba2bfe","flex-sm-shrink-0":"flex-sm-shrink-0-f288aca7","flex-sm-shrink-1":"flex-sm-shrink-1-a517bca0","flex-sm-wrap":"flex-sm-wrap-e591553c","flex-sm-nowrap":"flex-sm-nowrap-1bc5f0bf","flex-sm-wrap-reverse":"flex-sm-wrap-reverse-32c44a55","justify-content-sm-start":"justify-content-sm-start-c4529254","justify-content-sm-end":"justify-content-sm-end-f4fcbd71","justify-content-sm-center":"justify-content-sm-center-a64ddae7","justify-content-sm-between":"justify-content-sm-between-c1c69a15","justify-content-sm-around":"justify-content-sm-around-8f15251d","justify-content-sm-evenly":"justify-content-sm-evenly-96878302","align-items-sm-start":"align-items-sm-start-66e2eb40","align-items-sm-end":"align-items-sm-end-8dba6edb","align-items-sm-center":"align-items-sm-center-6221c072","align-items-sm-baseline":"align-items-sm-baseline-1255ac1d","align-items-sm-stretch":"align-items-sm-stretch-cdf10f74","align-self-sm-auto":"align-self-sm-auto-6206c84c","align-self-sm-start":"align-self-sm-start-8f111295","align-self-sm-end":"align-self-sm-end-2a01af03","align-self-sm-center":"align-self-sm-center-52adfbfe","align-self-sm-baseline":"align-self-sm-baseline-c1305ad3","align-self-sm-stretch":"align-self-sm-stretch-5dd09b0e","order-sm-first":"order-sm-first-3fd1d0d6","order-sm-0":"order-sm-0-fac11b93","order-sm-1":"order-sm-1-c2028b51","order-sm-2":"order-sm-2-be7dd9a3","order-sm-3":"order-sm-3-1bad2020","order-sm-4":"order-sm-4-febec940","order-sm-5":"order-sm-5-10506135","order-sm-last":"order-sm-last-686b9c5d","gap-sm-0":"gap-sm-0-303c29ca","gap-sm-1":"gap-sm-1-5d7a840e","gap-sm-2":"gap-sm-2-631f2817","gap-sm-3":"gap-sm-3-969630af","gap-sm-4":"gap-sm-4-5f8959a3","gap-sm-5":"gap-sm-5-0cfb1f34","flex-md-fill":"flex-md-fill-db0debf6","flex-md-row":"flex-md-row-8743869e","flex-md-column":"flex-md-column-548ee2d7","flex-md-row-reverse":"flex-md-row-reverse-1148d647","flex-md-column-reverse":"flex-md-column-reverse-ea0cb7e2","flex-md-grow-0":"flex-md-grow-0-15f6c08b","flex-md-grow-1":"flex-md-grow-1-47648d75","flex-md-shrink-0":"flex-md-shrink-0-c95e9418","flex-md-shrink-1":"flex-md-shrink-1-742c9ff7","flex-md-wrap":"flex-md-wrap-e7a8ea72","flex-md-nowrap":"flex-md-nowrap-a70ba040","flex-md-wrap-reverse":"flex-md-wrap-reverse-b86e66cf","justify-content-md-start":"justify-content-md-start-4614cbf1","justify-content-md-end":"justify-content-md-end-ec931050","justify-content-md-center":"justify-content-md-center-d618b2fe","justify-content-md-between":"justify-content-md-between-306c0adf","justify-content-md-around":"justify-content-md-around-ddb647b1","justify-content-md-evenly":"justify-content-md-evenly-0c8f50c7","align-items-md-start":"align-items-md-start-a719c346","align-items-md-end":"align-items-md-end-92a63305","align-items-md-center":"align-items-md-center-bbe64828","align-items-md-baseline":"align-items-md-baseline-27f90c15","align-items-md-stretch":"align-items-md-stretch-b8bedc2c","align-self-md-auto":"align-self-md-auto-d2a1c919","align-self-md-start":"align-self-md-start-65b481c0","align-self-md-end":"align-self-md-end-e3aa8f40","align-self-md-center":"align-self-md-center-8d297803","align-self-md-baseline":"align-self-md-baseline-8f044d3a","align-self-md-stretch":"align-self-md-stretch-0d6b891d","order-md-first":"order-md-first-f8eecf4f","order-md-0":"order-md-0-b4137c94","order-md-1":"order-md-1-9c8448b5","order-md-2":"order-md-2-9f528b79","order-md-3":"order-md-3-af0caa7b","order-md-4":"order-md-4-d62475e2","order-md-5":"order-md-5-6038f8ef","order-md-last":"order-md-last-cd180560","gap-md-0":"gap-md-0-538bc374","gap-md-1":"gap-md-1-40709ae7","gap-md-2":"gap-md-2-4da9ae94","gap-md-3":"gap-md-3-995869f1","gap-md-4":"gap-md-4-a73c3ca2","gap-md-5":"gap-md-5-f09eed9d","flex-lg-fill":"flex-lg-fill-6bf01aa6","flex-lg-row":"flex-lg-row-cc25e374","flex-lg-column":"flex-lg-column-df0c6b6f","flex-lg-row-reverse":"flex-lg-row-reverse-d9c7b6b9","flex-lg-column-reverse":"flex-lg-column-reverse-b3a92490","flex-lg-grow-0":"flex-lg-grow-0-be8c4a8d","flex-lg-grow-1":"flex-lg-grow-1-7e4345f4","flex-lg-shrink-0":"flex-lg-shrink-0-0d23dbda","flex-lg-shrink-1":"flex-lg-shrink-1-21973945","flex-lg-wrap":"flex-lg-wrap-2f68e553","flex-lg-nowrap":"flex-lg-nowrap-0a49e1e3","flex-lg-wrap-reverse":"flex-lg-wrap-reverse-64db1910","justify-content-lg-start":"justify-content-lg-start-2a0fd6cf","justify-content-lg-end":"justify-content-lg-end-57e471aa","justify-content-lg-center":"justify-content-lg-center-4f243af5","justify-content-lg-between":"justify-content-lg-between-50945c3a","justify-content-lg-around":"justify-content-lg-around-fe09ee92","justify-content-lg-evenly":"justify-content-lg-evenly-69c212ef","align-items-lg-start":"align-items-lg-start-c7d07069","align-items-lg-end":"align-items-lg-end-7422b3f2","align-items-lg-center":"align-items-lg-center-511a9678","align-items-lg-baseline":"align-items-lg-baseline-934ae0ff","align-items-lg-stretch":"align-items-lg-stretch-93efd0f3","align-self-lg-auto":"align-self-lg-auto-e4415052","align-self-lg-start":"align-self-lg-start-08b55a29","align-self-lg-end":"align-self-lg-end-4e78bdf3","align-self-lg-center":"align-self-lg-center-da043fa0","align-self-lg-baseline":"align-self-lg-baseline-fb3b4256","align-self-lg-stretch":"align-self-lg-stretch-06e3e954","order-lg-first":"order-lg-first-92b5e12b","order-lg-0":"order-lg-0-2707889c","order-lg-1":"order-lg-1-7b4820b1","order-lg-2":"order-lg-2-e722b436","order-lg-3":"order-lg-3-05a5324e","order-lg-4":"order-lg-4-f93af939","order-lg-5":"order-lg-5-352218e8","order-lg-last":"order-lg-last-cea5ea86","gap-lg-0":"gap-lg-0-c42bf515","gap-lg-1":"gap-lg-1-7ad6561e","gap-lg-2":"gap-lg-2-96f91531","gap-lg-3":"gap-lg-3-fe46a168","gap-lg-4":"gap-lg-4-05d9ad77","gap-lg-5":"gap-lg-5-0ffc638e","flex-xl-fill":"flex-xl-fill-0c2ee0f7","flex-xl-row":"flex-xl-row-a97355e9","flex-xl-column":"flex-xl-column-3e58c33a","flex-xl-row-reverse":"flex-xl-row-reverse-282ca00f","flex-xl-column-reverse":"flex-xl-column-reverse-a4706fb0","flex-xl-grow-0":"flex-xl-grow-0-55e09dae","flex-xl-grow-1":"flex-xl-grow-1-96a8d3d1","flex-xl-shrink-0":"flex-xl-shrink-0-701f3e1f","flex-xl-shrink-1":"flex-xl-shrink-1-1089bfdc","flex-xl-wrap":"flex-xl-wrap-e7974fe8","flex-xl-nowrap":"flex-xl-nowrap-3272837d","flex-xl-wrap-reverse":"flex-xl-wrap-reverse-8b14911b","justify-content-xl-start":"justify-content-xl-start-4450b506","justify-content-xl-end":"justify-content-xl-end-3c92efde","justify-content-xl-center":"justify-content-xl-center-ff6eff06","justify-content-xl-between":"justify-content-xl-between-91672a54","justify-content-xl-around":"justify-content-xl-around-911a33cd","justify-content-xl-evenly":"justify-content-xl-evenly-6db84783","align-items-xl-start":"align-items-xl-start-ee22e5c7","align-items-xl-end":"align-items-xl-end-943bfd53","align-items-xl-center":"align-items-xl-center-d7e2b89b","align-items-xl-baseline":"align-items-xl-baseline-cef4af8a","align-items-xl-stretch":"align-items-xl-stretch-affcf920","align-self-xl-auto":"align-self-xl-auto-0bda57c7","align-self-xl-start":"align-self-xl-start-7024317f","align-self-xl-end":"align-self-xl-end-d4f7ce9e","align-self-xl-center":"align-self-xl-center-c0086f38","align-self-xl-baseline":"align-self-xl-baseline-4c87db53","align-self-xl-stretch":"align-self-xl-stretch-2940d3b7","order-xl-first":"order-xl-first-abf0a931","order-xl-0":"order-xl-0-a324443c","order-xl-1":"order-xl-1-68c9d9da","order-xl-2":"order-xl-2-df069bef","order-xl-3":"order-xl-3-1d0a2c17","order-xl-4":"order-xl-4-bcb199b0","order-xl-5":"order-xl-5-ca6a3334","order-xl-last":"order-xl-last-d5b5a65d","gap-xl-0":"gap-xl-0-3ae9b2aa","gap-xl-1":"gap-xl-1-fca51044","gap-xl-2":"gap-xl-2-48e3a48b","gap-xl-3":"gap-xl-3-7ed8b6f2","gap-xl-4":"gap-xl-4-4fa7885f","gap-xl-5":"gap-xl-5-cf7f141f","flex-xxl-fill":"flex-xxl-fill-7bd07b38","flex-xxl-row":"flex-xxl-row-c37a4049","flex-xxl-column":"flex-xxl-column-0418b439","flex-xxl-row-reverse":"flex-xxl-row-reverse-60fc0245","flex-xxl-column-reverse":"flex-xxl-column-reverse-d5d6e915","flex-xxl-grow-0":"flex-xxl-grow-0-bfed54d0","flex-xxl-grow-1":"flex-xxl-grow-1-b0db652a","flex-xxl-shrink-0":"flex-xxl-shrink-0-68e8cdfe","flex-xxl-shrink-1":"flex-xxl-shrink-1-6acc938e","flex-xxl-wrap":"flex-xxl-wrap-3d1f4bfe","flex-xxl-nowrap":"flex-xxl-nowrap-157ad2c2","flex-xxl-wrap-reverse":"flex-xxl-wrap-reverse-03ed08b5","justify-content-xxl-start":"justify-content-xxl-start-bb94650c","justify-content-xxl-end":"justify-content-xxl-end-c8d3c0db","justify-content-xxl-center":"justify-content-xxl-center-0306698e","justify-content-xxl-between":"justify-content-xxl-between-6e26b543","justify-content-xxl-around":"justify-content-xxl-around-f0c598ae","justify-content-xxl-evenly":"justify-content-xxl-evenly-11c92263","align-items-xxl-start":"align-items-xxl-start-4136871e","align-items-xxl-end":"align-items-xxl-end-99e148aa","align-items-xxl-center":"align-items-xxl-center-282c18d3","align-items-xxl-baseline":"align-items-xxl-baseline-411d0264","align-items-xxl-stretch":"align-items-xxl-stretch-c4516075","align-self-xxl-auto":"align-self-xxl-auto-8ddad745","align-self-xxl-start":"align-self-xxl-start-da652d0a","align-self-xxl-end":"align-self-xxl-end-7134f077","align-self-xxl-center":"align-self-xxl-center-08d8ecc7","align-self-xxl-baseline":"align-self-xxl-baseline-08cb730a","align-self-xxl-stretch":"align-self-xxl-stretch-b14f77fd","order-xxl-first":"order-xxl-first-009d6564","order-xxl-0":"order-xxl-0-6701a986","order-xxl-1":"order-xxl-1-30f37235","order-xxl-2":"order-xxl-2-226022e8","order-xxl-3":"order-xxl-3-f09b9dea","order-xxl-4":"order-xxl-4-f32a4e20","order-xxl-5":"order-xxl-5-df33a99d","order-xxl-last":"order-xxl-last-f23f5bec","gap-xxl-0":"gap-xxl-0-9494d149","gap-xxl-1":"gap-xxl-1-ab653be1","gap-xxl-2":"gap-xxl-2-bd8c56f7","gap-xxl-3":"gap-xxl-3-31a5758d","gap-xxl-4":"gap-xxl-4-17a236e6","gap-xxl-5":"gap-xxl-5-10753ee7",row:"row-698a686d",col:"col-4cd2c847","row-cols-auto":"row-cols-auto-8432aedd","row-cols-1":"row-cols-1-5386afeb","row-cols-2":"row-cols-2-ccebda62","row-cols-3":"row-cols-3-d8d8b9e1","row-cols-4":"row-cols-4-580039c7","row-cols-5":"row-cols-5-7d4c1995","row-cols-6":"row-cols-6-5f963d08","row-cols-7":"row-cols-7-5a1db6fa","row-cols-8":"row-cols-8-5d71f00f","row-cols-9":"row-cols-9-3686c5af","row-cols-10":"row-cols-10-8d1289f1","row-cols-11":"row-cols-11-cdd80b2d","row-cols-12":"row-cols-12-fd4609c1","col-auto":"col-auto-7d36a9e3","col-1":"col-1-c30c6c21","col-2":"col-2-4a89a844","col-3":"col-3-a3ce071e","col-4":"col-4-a43fc285","col-5":"col-5-681bbe91","col-6":"col-6-27ebf83c","col-7":"col-7-8cceb7ad","col-8":"col-8-fd6c8ee8","col-9":"col-9-7f6877e7","col-10":"col-10-83673f14","col-11":"col-11-3c722a87","col-12":"col-12-b0cca822","offset-1":"offset-1-35a97bf7","offset-2":"offset-2-762925af","offset-3":"offset-3-4782d098","offset-4":"offset-4-db931ca6","offset-5":"offset-5-08cd8ffd","offset-6":"offset-6-81e4a295","offset-7":"offset-7-193cc62d","offset-8":"offset-8-1a77de10","offset-9":"offset-9-ac16d38b","offset-10":"offset-10-b23bfc62","offset-11":"offset-11-7b92334e","g-0":"g-0-0814b780","gx-0":"gx-0-99042afc","gy-0":"gy-0-d8b94310","g-1":"g-1-4061cfad","gx-1":"gx-1-701b9a8c","gy-1":"gy-1-0ca82061","g-2":"g-2-07cae9ac","gx-2":"gx-2-cb565ee2","gy-2":"gy-2-3305743a","g-3":"g-3-93d862dd","gx-3":"gx-3-26cedd9c","gy-3":"gy-3-e7973da8","g-4":"g-4-c551273d","gx-4":"gx-4-1a738034","gy-4":"gy-4-5e3fa5d1","g-5":"g-5-b2a0c701","gx-5":"gx-5-14291089","gy-5":"gy-5-8d16f1de","col-sm":"col-sm-db092b7f","row-cols-sm-auto":"row-cols-sm-auto-3ac183c6","row-cols-sm-1":"row-cols-sm-1-4ee9f367","row-cols-sm-2":"row-cols-sm-2-756274d4","row-cols-sm-3":"row-cols-sm-3-81164c5d","row-cols-sm-4":"row-cols-sm-4-2b0dab58","row-cols-sm-5":"row-cols-sm-5-58343c95","row-cols-sm-6":"row-cols-sm-6-f0351324","row-cols-sm-7":"row-cols-sm-7-2f119222","row-cols-sm-8":"row-cols-sm-8-5cc54fb4","row-cols-sm-9":"row-cols-sm-9-e1a80421","row-cols-sm-10":"row-cols-sm-10-dd3cd827","row-cols-sm-11":"row-cols-sm-11-22fa2f5c","row-cols-sm-12":"row-cols-sm-12-ac270e41","col-sm-auto":"col-sm-auto-0f0c150c","col-sm-1":"col-sm-1-351dc35e","col-sm-2":"col-sm-2-034e3649","col-sm-3":"col-sm-3-20eb1d18","col-sm-4":"col-sm-4-36db3444","col-sm-5":"col-sm-5-f849c414","col-sm-6":"col-sm-6-4bd83c67","col-sm-7":"col-sm-7-2b2deb75","col-sm-8":"col-sm-8-a98936f9","col-sm-9":"col-sm-9-4a93c29d","col-sm-10":"col-sm-10-4b11b498","col-sm-11":"col-sm-11-199ce94a","col-sm-12":"col-sm-12-63065469","offset-sm-0":"offset-sm-0-73fc06d5","offset-sm-1":"offset-sm-1-2e91f942","offset-sm-2":"offset-sm-2-4a65340a","offset-sm-3":"offset-sm-3-c8d171d9","offset-sm-4":"offset-sm-4-0d8c83d3","offset-sm-5":"offset-sm-5-83a8f317","offset-sm-6":"offset-sm-6-2357f031","offset-sm-7":"offset-sm-7-b050af1f","offset-sm-8":"offset-sm-8-4f48e049","offset-sm-9":"offset-sm-9-ace30645","offset-sm-10":"offset-sm-10-1a204eb2","offset-sm-11":"offset-sm-11-809695fe","g-sm-0":"g-sm-0-2e76b9a0","gx-sm-0":"gx-sm-0-26e9dd30","gy-sm-0":"gy-sm-0-9f27ad11","g-sm-1":"g-sm-1-6cb0b694","gx-sm-1":"gx-sm-1-6d971b6c","gy-sm-1":"gy-sm-1-af1f7982","g-sm-2":"g-sm-2-30a06700","gx-sm-2":"gx-sm-2-1152e7f6","gy-sm-2":"gy-sm-2-e965b499","g-sm-3":"g-sm-3-259d2afe","gx-sm-3":"gx-sm-3-43bb6db6","gy-sm-3":"gy-sm-3-a3c54c32","g-sm-4":"g-sm-4-412e081a","gx-sm-4":"gx-sm-4-8a7e8aa2","gy-sm-4":"gy-sm-4-3aca8a23","g-sm-5":"g-sm-5-d48cfc69","gx-sm-5":"gx-sm-5-387d8c10","gy-sm-5":"gy-sm-5-daaada71","col-md":"col-md-eaf8133a","row-cols-md-auto":"row-cols-md-auto-0cd24d97","row-cols-md-1":"row-cols-md-1-17e205a3","row-cols-md-2":"row-cols-md-2-8639c5ea","row-cols-md-3":"row-cols-md-3-dadf279e","row-cols-md-4":"row-cols-md-4-8a55de00","row-cols-md-5":"row-cols-md-5-fe9ae7bf","row-cols-md-6":"row-cols-md-6-a3014dca","row-cols-md-7":"row-cols-md-7-cffcedd1","row-cols-md-8":"row-cols-md-8-4dd3409f","row-cols-md-9":"row-cols-md-9-3e4d5e41","row-cols-md-10":"row-cols-md-10-845192f0","row-cols-md-11":"row-cols-md-11-e0f84470","row-cols-md-12":"row-cols-md-12-e9186d0d","col-md-auto":"col-md-auto-cf436d9e","col-md-1":"col-md-1-a5fccb1b","col-md-2":"col-md-2-b9eae111","col-md-3":"col-md-3-895843e6","col-md-4":"col-md-4-863fc17f","col-md-5":"col-md-5-163cbe8b","col-md-6":"col-md-6-37c9a8c6","col-md-7":"col-md-7-b9cda3fb","col-md-8":"col-md-8-dcb7f7d7","col-md-9":"col-md-9-593702e1","col-md-10":"col-md-10-3b46b0e4","col-md-11":"col-md-11-69192275","col-md-12":"col-md-12-e2e8ed6d","offset-md-0":"offset-md-0-cc63c2df","offset-md-1":"offset-md-1-db058c1f","offset-md-2":"offset-md-2-2382179c","offset-md-3":"offset-md-3-80486487","offset-md-4":"offset-md-4-4f20839b","offset-md-5":"offset-md-5-8765c942","offset-md-6":"offset-md-6-2b567113","offset-md-7":"offset-md-7-956ef73b","offset-md-8":"offset-md-8-5c50b00e","offset-md-9":"offset-md-9-b31ff187","offset-md-10":"offset-md-10-d3a27828","offset-md-11":"offset-md-11-a1cd2f0c","g-md-0":"g-md-0-a664bdb2","gx-md-0":"gx-md-0-1014290d","gy-md-0":"gy-md-0-417ccf01","g-md-1":"g-md-1-39f8a2e1","gx-md-1":"gx-md-1-8f129711","gy-md-1":"gy-md-1-1c901f14","g-md-2":"g-md-2-12bf1851","gx-md-2":"gx-md-2-f3eeda04","gy-md-2":"gy-md-2-8c229f96","g-md-3":"g-md-3-b577ec3f","gx-md-3":"gx-md-3-99b350f5","gy-md-3":"gy-md-3-ac1332d4","g-md-4":"g-md-4-8d42c1cc","gx-md-4":"gx-md-4-ff01a9b9","gy-md-4":"gy-md-4-96a25f17","g-md-5":"g-md-5-705c5c51","gx-md-5":"gx-md-5-1460ce4a","gy-md-5":"gy-md-5-69ba416c","col-lg":"col-lg-cf65fc84","row-cols-lg-auto":"row-cols-lg-auto-c2dec7ea","row-cols-lg-1":"row-cols-lg-1-546e4c6f","row-cols-lg-2":"row-cols-lg-2-cedff3fc","row-cols-lg-3":"row-cols-lg-3-f8a5497d","row-cols-lg-4":"row-cols-lg-4-1d789f5b","row-cols-lg-5":"row-cols-lg-5-e968e7b6","row-cols-lg-6":"row-cols-lg-6-9debcaca","row-cols-lg-7":"row-cols-lg-7-247b053d","row-cols-lg-8":"row-cols-lg-8-c22cae63","row-cols-lg-9":"row-cols-lg-9-9a9859c6","row-cols-lg-10":"row-cols-lg-10-4da43b7d","row-cols-lg-11":"row-cols-lg-11-39a00826","row-cols-lg-12":"row-cols-lg-12-906b832f","col-lg-auto":"col-lg-auto-963e1e5a","col-lg-1":"col-lg-1-6969d81f","col-lg-2":"col-lg-2-ac0ddc34","col-lg-3":"col-lg-3-9994adf2","col-lg-4":"col-lg-4-c9eea701","col-lg-5":"col-lg-5-7baead73","col-lg-6":"col-lg-6-eaefd14c","col-lg-7":"col-lg-7-cb5b3609","col-lg-8":"col-lg-8-b81e0bce","col-lg-9":"col-lg-9-2d836db1","col-lg-10":"col-lg-10-2f6a5af2","col-lg-11":"col-lg-11-822f434a","col-lg-12":"col-lg-12-73b0353d","offset-lg-0":"offset-lg-0-f166aea7","offset-lg-1":"offset-lg-1-9160a67a","offset-lg-2":"offset-lg-2-6de0e1ab","offset-lg-3":"offset-lg-3-5e117cf9","offset-lg-4":"offset-lg-4-123a660f","offset-lg-5":"offset-lg-5-ae571b6d","offset-lg-6":"offset-lg-6-9b903f70","offset-lg-7":"offset-lg-7-a4c359e1","offset-lg-8":"offset-lg-8-9c296cdd","offset-lg-9":"offset-lg-9-ca2d20a7","offset-lg-10":"offset-lg-10-b3915383","offset-lg-11":"offset-lg-11-d29f6ed5","g-lg-0":"g-lg-0-72142794","gx-lg-0":"gx-lg-0-f2510f60","gy-lg-0":"gy-lg-0-588ec44b","g-lg-1":"g-lg-1-952f0678","gx-lg-1":"gx-lg-1-ac8aa27d","gy-lg-1":"gy-lg-1-1a896df5","g-lg-2":"g-lg-2-8fd29a8d","gx-lg-2":"gx-lg-2-a44f12fb","gy-lg-2":"gy-lg-2-2e03d6fe","g-lg-3":"g-lg-3-b082049c","gx-lg-3":"gx-lg-3-1c424c2e","gy-lg-3":"gy-lg-3-405d4cf8","g-lg-4":"g-lg-4-925493fe","gx-lg-4":"gx-lg-4-48e39722","gy-lg-4":"gy-lg-4-a58b1aa6","g-lg-5":"g-lg-5-57885179","gx-lg-5":"gx-lg-5-f133fb07","gy-lg-5":"gy-lg-5-af60e4a7","col-xl":"col-xl-81cffdac","row-cols-xl-auto":"row-cols-xl-auto-e3fe16c5","row-cols-xl-1":"row-cols-xl-1-63c87d9f","row-cols-xl-2":"row-cols-xl-2-ee997d46","row-cols-xl-3":"row-cols-xl-3-a560a6f1","row-cols-xl-4":"row-cols-xl-4-6bbb05a9","row-cols-xl-5":"row-cols-xl-5-4adeb09f","row-cols-xl-6":"row-cols-xl-6-54c5fe93","row-cols-xl-7":"row-cols-xl-7-5e6b6def","row-cols-xl-8":"row-cols-xl-8-b0c9e82c","row-cols-xl-9":"row-cols-xl-9-7cad9b40","row-cols-xl-10":"row-cols-xl-10-ead08b8a","row-cols-xl-11":"row-cols-xl-11-8e7e8e57","row-cols-xl-12":"row-cols-xl-12-53b8f806","col-xl-auto":"col-xl-auto-32e5d2d2","col-xl-1":"col-xl-1-803720cf","col-xl-2":"col-xl-2-d319828c","col-xl-3":"col-xl-3-c78f1b18","col-xl-4":"col-xl-4-f1e0034c","col-xl-5":"col-xl-5-d8ac5af8","col-xl-6":"col-xl-6-64c41268","col-xl-7":"col-xl-7-52c3adb3","col-xl-8":"col-xl-8-6870c3ea","col-xl-9":"col-xl-9-913974df","col-xl-10":"col-xl-10-c31e8042","col-xl-11":"col-xl-11-d672b99a","col-xl-12":"col-xl-12-0dbda239","offset-xl-0":"offset-xl-0-d2c56178","offset-xl-1":"offset-xl-1-6787efc3","offset-xl-2":"offset-xl-2-5b64bfa0","offset-xl-3":"offset-xl-3-6af7854f","offset-xl-4":"offset-xl-4-b6727e1e","offset-xl-5":"offset-xl-5-30ee6da1","offset-xl-6":"offset-xl-6-c3c4a8f4","offset-xl-7":"offset-xl-7-aa8e6d62","offset-xl-8":"offset-xl-8-eb3eb8a9","offset-xl-9":"offset-xl-9-da49c486","offset-xl-10":"offset-xl-10-7f32d644","offset-xl-11":"offset-xl-11-9175fe37","g-xl-0":"g-xl-0-d78ff065","gx-xl-0":"gx-xl-0-ca7899e9","gy-xl-0":"gy-xl-0-9c919865","g-xl-1":"g-xl-1-34dc60cd","gx-xl-1":"gx-xl-1-f5744fa4","gy-xl-1":"gy-xl-1-54088ee3","g-xl-2":"g-xl-2-ee35d915","gx-xl-2":"gx-xl-2-b090126e","gy-xl-2":"gy-xl-2-b5e2f068","g-xl-3":"g-xl-3-c4c7418f","gx-xl-3":"gx-xl-3-cfc865b1","gy-xl-3":"gy-xl-3-cfab963f","g-xl-4":"g-xl-4-782eae79","gx-xl-4":"gx-xl-4-4188dea4","gy-xl-4":"gy-xl-4-efbc61f1","g-xl-5":"g-xl-5-609159b8","gx-xl-5":"gx-xl-5-4f6bb489","gy-xl-5":"gy-xl-5-c5294be9","col-xxl":"col-xxl-3ccd2b5e","row-cols-xxl-auto":"row-cols-xxl-auto-2701a502","row-cols-xxl-1":"row-cols-xxl-1-8fdab92e","row-cols-xxl-2":"row-cols-xxl-2-0ab6477a","row-cols-xxl-3":"row-cols-xxl-3-93102872","row-cols-xxl-4":"row-cols-xxl-4-59563649","row-cols-xxl-5":"row-cols-xxl-5-046df226","row-cols-xxl-6":"row-cols-xxl-6-eff3129f","row-cols-xxl-7":"row-cols-xxl-7-da385ad4","row-cols-xxl-8":"row-cols-xxl-8-5b27fbce","row-cols-xxl-9":"row-cols-xxl-9-35b0bbd6","row-cols-xxl-10":"row-cols-xxl-10-e71b18fc","row-cols-xxl-11":"row-cols-xxl-11-1f7582a7","row-cols-xxl-12":"row-cols-xxl-12-05da5eb3","col-xxl-auto":"col-xxl-auto-13f01bc2","col-xxl-1":"col-xxl-1-32ccf9ec","col-xxl-2":"col-xxl-2-b9fafb1f","col-xxl-3":"col-xxl-3-a9d70c2e","col-xxl-4":"col-xxl-4-442b8d52","col-xxl-5":"col-xxl-5-62fb7e95","col-xxl-6":"col-xxl-6-8c585d57","col-xxl-7":"col-xxl-7-870d6f77","col-xxl-8":"col-xxl-8-539fdb05","col-xxl-9":"col-xxl-9-139c03e2","col-xxl-10":"col-xxl-10-cb4529de","col-xxl-11":"col-xxl-11-a0e6d8b6","col-xxl-12":"col-xxl-12-cd4b2c69","offset-xxl-0":"offset-xxl-0-00c35a24","offset-xxl-1":"offset-xxl-1-b35aab61","offset-xxl-2":"offset-xxl-2-ff685e18","offset-xxl-3":"offset-xxl-3-f9145748","offset-xxl-4":"offset-xxl-4-f35d6b67","offset-xxl-5":"offset-xxl-5-650ce31f","offset-xxl-6":"offset-xxl-6-d3d4c57c","offset-xxl-7":"offset-xxl-7-214f8b0b","offset-xxl-8":"offset-xxl-8-d00a2f42","offset-xxl-9":"offset-xxl-9-4c1a3b68","offset-xxl-10":"offset-xxl-10-30d610e4","offset-xxl-11":"offset-xxl-11-c081914c","g-xxl-0":"g-xxl-0-a33f0415","gx-xxl-0":"gx-xxl-0-dea4c364","gy-xxl-0":"gy-xxl-0-5f46e1bc","g-xxl-1":"g-xxl-1-0b703aa4","gx-xxl-1":"gx-xxl-1-86985839","gy-xxl-1":"gy-xxl-1-c238f8c4","g-xxl-2":"g-xxl-2-7acafb78","gx-xxl-2":"gx-xxl-2-aee6a9f0","gy-xxl-2":"gy-xxl-2-ad9a33c6","g-xxl-3":"g-xxl-3-3501b39c","gx-xxl-3":"gx-xxl-3-38076f10","gy-xxl-3":"gy-xxl-3-6437341d","g-xxl-4":"g-xxl-4-6ea4502a","gx-xxl-4":"gx-xxl-4-12c36d4e","gy-xxl-4":"gy-xxl-4-fcc43d12","g-xxl-5":"g-xxl-5-48f06c86","gx-xxl-5":"gx-xxl-5-a74617a1","gy-xxl-5":"gy-xxl-5-0341c533"},rh=d.createContext({element:"div"}),oh=e=>{const{children:t,className:n,element:r="div",cols:o,alignItems:i,justifyContent:a,gap:s,gutter:l,gutterY:c,gutterX:u,wrap:d,direction:p,xs:f,sm:g,md:h,lg:m,xl:v,xxl:b,...y}=e,x=(e,t="")=>{const{cols:n,justifyContent:r,alignItems:o,gap:i,direction:a,wrap:s,gutter:l,gutterX:c,gutterY:u}=e;return Xi(nh.row,{[nh[`row-cols${t}-${n}`]]:n},{[nh[`justify-content${t}-${r}`]]:r},{[nh[`align-items${t}-${o}`]]:o},{[nh[`gap${t}-${i}`]]:i||0===i},{[nh[`g${t}-${l}`]]:l||0===l},{[nh[`gx${t}-${c}`]]:c||0===c},{[nh[`gy${t}-${u}`]]:u||0===u},{[`flex${t}-${a}`]:a},{[nh[`flex${t}-${s}`]]:s})};return(0,R.jsx)(rh.Provider,{value:{element:r},children:(0,R.jsx)(r,{"data-name":"row",...y,className:(()=>{const e={xs:f,sm:g,md:h,lg:m,xl:v,xxl:b},t=th.map(t=>{const n=e[t],r="xs"!==t?`-${t}`:"";return n?x("object"==typeof n?{...n}:{cols:n},r):void 0});return Xi(...t,n,x({cols:o,justifyContent:a,alignItems:i,gap:s,direction:p,wrap:d,gutter:l,gutterX:u,gutterY:c}))})(),children:t})})},ih=e=>{const{className:t,children:n,element:r,width:o,offset:i,order:a,align:s,grow:l,shrink:c,onClick:u,xs:p,sm:f,md:g,lg:h,xl:m,xxl:v,...b}=e,{element:y}=d.useContext(rh);let x;if(r)x=r;else switch(y){case"ol":case"ul":x="li";break;case"span":x="span";break;default:x="div"}const w=(e,t="")=>{const{align:n,offset:r,order:o,width:i,grow:a,shrink:s}=e;return Xi(nh.col,{[nh[`align-self${t}-${n}`]]:n},{[nh[`offset${t}-${r}`]]:r},{[nh[`order${t}-${o}`]]:o},{[nh[`col${t}-${i}`]]:i},{[nh[`flex${t}-grow-${a}`]]:a},{[nh[`flex${t}-shrink-${s}`]]:s})};return(0,R.jsx)(x,{"data-name":"col",...b,className:(()=>{const e={xs:p,sm:f,md:g,lg:h,xl:m,xxl:v},n=th.map(t=>{const n=e[t],r="xs"!==t?`-${t}`:"";return n?w("object"==typeof n?{...n}:{width:n},r):void 0});return Xi(...n,t,w({width:o,offset:i,order:a,align:s,grow:l,shrink:c}))})(),onClick:u,children:n})},ah=e=>{var t;const{children:n,className:r,background:o="white",openText:i,closeText:a,...s}=e,[l,c]=d.useState(!1),{onToggle:u,isOpen:p}=d.useContext(Lc),{id:f,disabled:g}=d.useContext(Kc),h=()=>{g||u(f)},m=e=>{("Enter"===e.code||"Space"===e.code)&&!e.repeat&&(e.preventDefault(),h())},v=e=>{g||c(e)},b=Xi(Zi["accordion__item-header"],r),y=1===(null==(t=d.Children.toArray(n))?void 0:t.length)?d.Children.toArray(n).find(e=>d.isValidElement(e)&&(e.type===Qg||e.type===Zg&&["h1","h2","h3","h4","h5","h6"].includes(e.props.element))):void 0,x=d.useMemo(()=>{switch(o){case"primary":return p(f)?"primary-active":"primary-main";case"white/primary":return p(f)?"primary-active":"white";case"muted/primary":return p(f)?"primary-active":"bg-muted";default:return o}},[o,f,p]),w="white"===x||"bg-muted"===x?void 0:"inverted",S=e=>(0,R.jsx)(eh,{"data-name":"accordion-item-header",role:"button",tabIndex:g?-1:0,"aria-disabled":g,className:b,onClick:h,onKeyDown:m,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),"aria-expanded":p(f),"aria-controls":`${f}-content`,background:x,...s,children:i&&a&&!g?(0,R.jsxs)(oh,{justifyContent:"between",alignItems:"center",children:[(0,R.jsx)(ih,{children:e}),(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(Xg,{openText:i,closeText:a,isActive:l,isOpen:p(f),color:w,visualType:"link","aria-hidden":!0,tabIndex:-1})})]}):e});return y?(()=>{const{element:e,children:t,...n}=(null==y?void 0:y.props)??{};return(0,R.jsx)(Qg,{element:e,modifiers:"normal",className:Zi["accordion__item-wrapping-heading"],children:S((0,R.jsx)(Zg,{element:"span",...n,children:t}))})})():S(n)};function sh(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function lh(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const ch={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function uh(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}const dh=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],ph=d.forwardRef((e,t)=>{const{animateOpacity:n=!1,animationStateClasses:r={},applyInlineTransitions:o=!0,children:i,className:a="",contentClassName:s,delay:l=0,disableDisplayNone:c=!1,duration:u=500,easing:p="ease",height:f,onHeightAnimationEnd:g,onHeightAnimationStart:h,style:m,contentRef:v}=e,b=Object.assign({},e);dh.forEach(e=>{delete b[e]});const y=(0,d.useRef)(f),x=(0,d.useRef)(null),w=(0,d.useRef)(),S=(0,d.useRef)(),_=(0,d.useRef)(Object.assign(Object.assign({},ch),r)),j=(0,d.useRef)(!!(typeof window<"u"&&window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),E=j.current?0:l,C=j.current?0:u;let k=f,T="visible";"number"==typeof f?(k=f<0?0:f,T="hidden"):sh(k)&&(k="0%"===f?0:f,T="hidden");const[P,R]=(0,d.useState)(k),[O,I]=(0,d.useState)(T),[A,M]=(0,d.useState)(!1),[D,F]=(0,d.useState)(uh(_.current,f));(0,d.useEffect)(()=>{lh(x.current,P,c)},[]),(0,d.useEffect)(()=>{if(f!==y.current&&x.current){(function(e,t){0===t&&null!=e&&e.style&&(e.style.display="")})(x.current,y.current),x.current.style.overflow="hidden";const e=x.current.offsetHeight;x.current.style.overflow="";const t=C+E;let n,r,o,i="hidden";const a="auto"===y.current;"number"==typeof f?(n=f<0?0:f,r=n):sh(f)?(n="0%"===f?0:f,r=n):(n=e,r="auto",i=void 0),a&&(r=n,n=e);const s=[_.current.animating,("auto"===y.current||f<y.current)&&_.current.animatingUp,("auto"===f||f>y.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,"number"==typeof r&&r>0?_.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),l=uh(_.current,r);R(n),I("hidden"),M(!a),F(s),clearTimeout(S.current),clearTimeout(w.current),a?(o=!0,S.current=setTimeout(()=>{R(r),I(i),M(o),null==h||h(r)},50),w.current=setTimeout(()=>{M(!1),F(l),lh(x.current,r,c),null==g||g(r)},t)):(null==h||h(n),S.current=setTimeout(()=>{R(r),I(i),M(!1),F(l),"auto"!==f&&lh(x.current,n,c),null==g||g(n)},t))}return y.current=f,()=>{clearTimeout(S.current),clearTimeout(w.current)}},[f]);const N=Object.assign(Object.assign({},m),{height:P,overflow:O||(null==m?void 0:m.overflow)});A&&o&&(N.transition=`height ${C}ms ${p} ${E}ms`,null!=m&&m.transition&&(N.transition=`${m.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const L={};n&&(L.transition=`opacity ${C}ms ${p} ${E}ms`,L.WebkitTransition=L.transition,0===P&&(L.opacity=0));const $=typeof b["aria-hidden"]<"u"?b["aria-hidden"]:0===f;return d.createElement("div",Object.assign({},b,{"aria-hidden":$,className:`${D} ${a}`,style:N,ref:t}),d.createElement("div",{className:s,style:L,ref:e=>{x.current=e,v&&(v.current=e)}},i))}),fh=require("react-dom"),gh=()=>{const e=typeof window>"u",[t,n]=d.useState(!e&&window.matchMedia("print").matches),r=()=>{fh.flushSync(()=>{n(!0)})},o=()=>{n(!1)};return d.useEffect(()=>(window.addEventListener("beforeprint",r),window.addEventListener("afterprint",o),()=>{window.removeEventListener("beforeprint",r),window.removeEventListener("afterprint",o)}),[]),t},hh={"primary-main":"primary-main-ea0565ff","primary-active":"primary-active-d24cbc9e","primary-active-subtle":"primary-active-subtle-c2ab8b5f","primary-highlight":"primary-highlight-212d11b7","primary-highlight-subtle":"primary-highlight-subtle-715c2641","accent-main":"accent-main-f55c9be5","accent-highlight":"accent-highlight-6810179d","bg-default":"bg-default-099a281c","bg-muted":"bg-muted-13732b1c","bg-subtle":"bg-subtle-e7130c61","bg-disabled":"bg-disabled-eed0584e","bg-inverted":"bg-inverted-2bf8047e","bg-inverted-contrast":"bg-inverted-contrast-304e2c10",black:"black-d9cad7d6",white:"white-5992ce1a","positive-main":"positive-main-dfc533f2","positive-active":"positive-active-f4288715","positive-highlight":"positive-highlight-6594b5a8","important-main":"important-main-67d03aad","important-active":"important-active-5ebf547d","important-highlight":"important-highlight-aa19e975","info-main":"info-main-80c1cd50","info-active":"info-active-5f165e38","info-highlight":"info-highlight-578939bc","warning-main":"warning-main-2fae5383","warning-highlight":"warning-highlight-f87e48b3",transparent:"transparent-74d01799"},mh=e=>e?hh[e]:"",vh=e=>{const{padding:t,background:n}=d.useContext(zc),{getCurrentBreakpointProps:r}=qc(e.defaultServerBreakpoint),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Xi(Bc.card__content,{[mh(s)]:s},i);return(0,R.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Uc(a),...l,className:c,children:o})};vh.displayName="CardContent";const bh=e=>{const{children:t,className:n,...r}=e,{isOpen:o}=d.useContext(Lc),{id:i,disabled:a}=d.useContext(Kc),s=gh(),l=Xi(Zi["accordion__item-content"],n),c=(0,R.jsx)(vh,{"data-name":"accordion-item-content",...r,className:l,children:t});return s&&!a?c:(0,R.jsx)(ph,{duration:300,height:o(i)?"auto":0,role:"region","aria-labelledby":i,id:`${i}-content`,children:c})},yh=e=>{const{children:t}=e;return(0,R.jsx)(R.Fragment,{children:t})},xh=require("@tanstack/react-table");function wh(){return typeof window<"u"}function Sh(e){return Eh(e)?(e.nodeName||"").toLowerCase():"#document"}function _h(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jh(e){var t;return null==(t=(Eh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Eh(e){return!!wh()&&(e instanceof Node||e instanceof _h(e).Node)}function Ch(e){return!!wh()&&(e instanceof Element||e instanceof _h(e).Element)}function kh(e){return!!wh()&&(e instanceof HTMLElement||e instanceof _h(e).HTMLElement)}function Th(e){return!(!wh()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof _h(e).ShadowRoot)}const Ph=new Set(["inline","contents"]);function Rh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ph.has(o)}const Oh=new Set(["table","td","th"]);function Ih(e){return Oh.has(Sh(e))}const Ah=[":popover-open",":modal"];function Mh(e){return Ah.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dh=["transform","translate","scale","rotate","perspective"],Fh=["transform","translate","scale","rotate","perspective","filter"],Nh=["paint","layout","strict","content"];function Lh(e){const t=$h(),n=Ch(e)?zh(e):e;return Dh.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Fh.some(e=>(n.willChange||"").includes(e))||Nh.some(e=>(n.contain||"").includes(e))}function $h(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Vh=new Set(["html","body","#document"]);function Bh(e){return Vh.has(Sh(e))}function zh(e){return _h(e).getComputedStyle(e)}function Gh(e){return Ch(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uh(e){if("html"===Sh(e))return e;const t=e.assignedSlot||e.parentNode||Th(e)&&e.host||jh(e);return Th(t)?t.host:t}function Hh(e){const t=Uh(e);return Bh(t)?e.ownerDocument?e.ownerDocument.body:e.body:kh(t)&&Rh(t)?t:Hh(t)}function Wh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Hh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=_h(o);if(i){const e=qh(a);return t.concat(a,a.visualViewport||[],Rh(o)?o:[],e&&n?Wh(e):[])}return t.concat(o,Wh(o,[],n))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yh(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Kh(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Th(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Jh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Xh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Zh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(tm()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Qh(e){return!Xh().includes("jsdom/")&&(!tm()&&0===e.width&&0===e.height||tm()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function em(){return/apple/i.test(navigator.vendor)}function tm(){const e=/android/i;return e.test(Jh())||e.test(Xh())}function nm(){return Jh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function rm(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function om(e){return(null==e?void 0:e.ownerDocument)||document}function im(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function am(e){return"composedPath"in e?e.composedPath()[0]:e.target}function sm(e){return kh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function lm(e){e.preventDefault(),e.stopPropagation()}function cm(e){return!!e&&("combobox"===e.getAttribute("role")&&sm(e))}const um=Math.min,dm=Math.max,pm=Math.round,fm=Math.floor,gm=e=>({x:e,y:e}),hm={left:"right",right:"left",bottom:"top",top:"bottom"},mm={start:"end",end:"start"};function vm(e,t,n){return dm(e,um(t,n))}function bm(e,t){return"function"==typeof e?e(t):e}function ym(e){return e.split("-")[0]}function xm(e){return e.split("-")[1]}function wm(e){return"x"===e?"y":"x"}function Sm(e){return"y"===e?"height":"width"}const _m=new Set(["top","bottom"]);function jm(e){return _m.has(ym(e))?"y":"x"}function Em(e){return wm(jm(e))}function Cm(e){return e.replace(/start|end/g,e=>mm[e])}const km=["left","right"],Tm=["right","left"],Pm=["top","bottom"],Rm=["bottom","top"];function Om(e,t,n,r){const o=xm(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Tm:km:t?km:Tm;case"left":case"right":return t?Pm:Rm;default:return[]}}(ym(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Cm)))),i}function Im(e){return e.replace(/left|right|bottom|top/g,e=>hm[e])}function Am(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Mm(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Dm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Fm=typeof Element>"u",Nm=Fm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lm=!Fm&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$m=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Vm=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!$m(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{Nm.call(a,Dm)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!$m(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},Bm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Bm(e)?0:e.tabIndex},Gm=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Um=function(e){return"INPUT"===e.tagName},Hm=function(e){return function(e){return Um(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Lm(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},Wm=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},qm=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Nm.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Nm.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Wm(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Lm(e);if(a&&!a.shadowRoot&&!0===r(a))return Wm(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&Lm(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=Lm(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Ym=function(e,t){return!(t.disabled||$m(t)||function(e){return Um(e)&&"hidden"===e.type}(t)||qm(t,e)||function(e){var t="DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName});return t}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Nm.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Km=function(e,t){return!(Hm(t)||zm(t)<0||!Ym(e,t))},Jm=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Xm=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=zm(e);return n<0&&t&&!Bm(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}),r.sort(Gm).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Zm=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Vm([e],t.includeContainer,{filter:Km.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Jm}):function(e,t,n){if($m(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Dm));return t&&Nm.call(e,Dm)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Km.bind(null,t)),Xm(n)};function Qm(e,t,n){let{reference:r,floating:o}=e;const i=jm(t),a=Em(t),s=Sm(a),l=ym(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(xm(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function ev(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=bm(t,e),g=Am(f),h=s[p?"floating"===d?"reference":"floating":d],m=Mm(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Mm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-x.top+g.top)/y.y,bottom:(x.bottom-m.bottom+g.bottom)/y.y,left:(m.left-x.left+g.left)/y.x,right:(x.right-m.right+g.right)/y.x}}const tv=new Set(["left","top"]);function nv(e){const t=zh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kh(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=pm(n)!==i||pm(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function rv(e){return Ch(e)?e:e.contextElement}function ov(e){const t=rv(e);if(!kh(t))return gm(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=nv(t);let a=(i?pm(n.width):n.width)/r,s=(i?pm(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const iv=gm(0);function av(e){const t=_h(e);return $h()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:iv}function sv(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rv(e);let a=gm(1);t&&(r?Ch(r)&&(a=ov(r)):a=ov(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==_h(e))&&t}(i,n,r)?av(i):gm(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=_h(i),t=r&&Ch(r)?_h(r):r;let n=e,o=qh(n);for(;o&&r&&t!==n;){const e=ov(o),t=o.getBoundingClientRect(),r=zh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=_h(o),o=qh(n)}}return Mm({width:u,height:d,x:l,y:c})}function lv(e,t){const n=Gh(e).scrollLeft;return t?t.left+n:sv(jh(e)).left+n}function cv(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-lv(e,n),y:n.top+t.scrollTop}}const uv=new Set(["absolute","fixed"]);function dv(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=_h(e),r=jh(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=$h();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=lv(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=jh(e),n=Gh(e),r=e.ownerDocument.body,o=dm(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=dm(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+lv(e);const s=-n.scrollTop;return"rtl"===zh(r).direction&&(a+=dm(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(jh(e));else if(Ch(t))r=function(e,t){const n=sv(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kh(e)?ov(e):gm(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=av(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mm(r)}function pv(e,t){const n=Uh(e);return!(n===t||!Ch(n)||Bh(n))&&("fixed"===zh(n).position||pv(n,t))}function fv(e,t){const n=t.get(e);if(n)return n;let r=Wh(e,[],!1).filter(e=>Ch(e)&&"body"!==Sh(e)),o=null;const i="fixed"===zh(e).position;let a=i?Uh(e):e;for(;Ch(a)&&!Bh(a);){const t=zh(a),n=Lh(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&uv.has(o.position)||Rh(a)&&!n&&pv(e,a))?r=r.filter(e=>e!==a):o=t,a=Uh(a)}return t.set(e,r),r}function gv(e,t,n){const r=kh(t),o=jh(t),i="fixed"===n,a=sv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=gm(0);function c(){l.x=lv(o)}if(r||!r&&!i)if(("body"!==Sh(t)||Rh(o))&&(s=Gh(t)),r){const e=sv(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?gm(0):cv(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function hv(e){return"static"===zh(e).position}function mv(e,t){if(!kh(e)||"fixed"===zh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return jh(e)===n&&(n=n.ownerDocument.body),n}function vv(e,t){const n=_h(e);if(Mh(e))return n;if(!kh(e)){let t=Uh(e);for(;t&&!Bh(t);){if(Ch(t)&&!hv(t))return t;t=Uh(t)}return n}let r=mv(e,t);for(;r&&Ih(r)&&hv(r);)r=mv(r,t);return r&&Bh(r)&&hv(r)&&!Lh(r)?n:r||function(e){let t=Uh(e);for(;kh(t)&&!Bh(t);){if(Lh(t))return t;if(Mh(t))return null;t=Uh(t)}return null}(e)||n}const bv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=jh(r),s=!!t&&Mh(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=gm(1);const u=gm(0),d=kh(r);if((d||!d&&!i)&&(("body"!==Sh(r)||Rh(a))&&(l=Gh(r)),kh(r))){const e=sv(r);c=ov(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?gm(0):cv(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:jh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Mh(t)?[]:fv(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=dv(t,n,o);return e.top=dm(r.top,e.top),e.right=um(r.right,e.right),e.bottom=um(r.bottom,e.bottom),e.left=dm(r.left,e.left),e},dv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:vv,getElementRects:async function(e){const t=this.getOffsetParent||vv,n=this.getDimensions,r=await n(e.floating);return{reference:gv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=nv(e);return{width:t,height:n}},getScale:ov,isElement:Ch,isRTL:function(e){return"rtl"===zh(e).direction}};function yv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xv(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=rv(e),u=o||i?[...c?Wh(c):[],...Wh(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=jh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g={rootMargin:-fm(d)+"px "+-fm(o.clientWidth-(u+p))+"px "+-fm(o.clientHeight-(d+f))+"px "+-fm(u)+"px",threshold:dm(0,um(1,l))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1===r&&!yv(c,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,h=l?sv(e):null;return l&&function t(){const r=sv(e);h&&!yv(h,r)&&n(),h=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const wv=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ym(n),s=xm(n),l="y"===jm(n),c=tv.has(a)?-1:1,u=i&&l?-1:1,d=bm(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(f="end"===s?-1*g:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Sv=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=bm(e,t),c={x:n,y:r},u=await ev(t,l),d=jm(ym(o)),p=wm(d);let f=c[p],g=c[d];if(i){const e="y"===p?"bottom":"right";f=vm(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";g=vm(g+u["y"===d?"top":"left"],g,g-u[e])}const h=s.fn({...t,[p]:f,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[d]:a}}}}}},_v=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=bm(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=ym(o),b=jm(s),y=ym(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[Im(s)]:function(e){const t=Im(e);return[Cm(e),t,Cm(t)]}(s)),S="none"!==g;!p&&S&&w.push(...Om(s,h,g,x));const _=[s,...w],j=await ev(t,m),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(j[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=xm(e),o=Em(e),i=Sm(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Im(a)),[a,Im(a)]}(o,a,x);E.push(j[e[0]],j[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every(e=>e<=0)){var k,T;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=_[e];if(t&&("alignment"!==d||b===jm(t)||C.every(e=>jm(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(S){const t=jm(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},jv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=bm(e,t)||{};if(null==c)return{};const d=Am(u),p={x:n,y:r},f=Em(o),g=Sm(f),h=await a.getDimensions(c),m="y"===f,v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[f]-p[f]-i.floating[g],w=p[f]-i.reference[f],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=S?S[y]:0;(!_||!await(null==a.isElement?void 0:a.isElement(S)))&&(_=s.floating[y]||i.floating[g]);const j=x/2-w/2,E=_/2-h[g]/2-1,C=um(d[v],E),k=um(d[b],E),T=C,P=_-h[g]-k,R=_/2-h[g]/2+j,O=vm(T,R,P),I=!l.arrow&&null!=xm(o)&&R!==O&&i.reference[g]/2-(R<T?C:k)-h[g]/2<0,A=I?R<T?R-T:R-P:0;return{[f]:p[f]+A,data:{[f]:O,centerOffset:R-O-A,...I&&{alignmentOffset:A}},reset:I}}}),Ev=(e,t,n)=>{const r=new Map,o={platform:bv,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Qm(c,r,l),p=r,f={},g=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:m,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=m??u,d=v??d,f={...f,[i]:{...f[i],...b}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Qm(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Cv=typeof document<"u"?d.useLayoutEffect:function(){};function kv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!kv(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||kv(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Tv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pv(e,t){const n=Tv(e);return Math.round(t*n)/n}function Rv(e){const t=d.useRef(e);return Cv(()=>{t.current=e}),t}const Ov=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?jv({element:n.current,padding:r}).fn(t):{}:n?jv({element:n,padding:r}).fn(t):{}}}),Iv=(e,t)=>({...wv(e),options:[e,t]}),Av=(e,t)=>({...Sv(e),options:[e,t]}),Mv=(e,t)=>({..._v(e),options:[e,t]}),Dv=(e,t)=>({...Ov(e),options:[e,t]});function Fv(e){return d.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const Nv={...p},Lv=Nv.useInsertionEffect||(e=>e());function $v(e){const t=d.useRef(()=>{0});return Lv(()=>{t.current=e}),d.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Vv="ArrowUp",Bv="ArrowDown",zv="ArrowLeft",Gv="ArrowRight";function Uv(e,t,n){return Math.floor(e/t)!==n}function Hv(e,t){return t<0||t>=e.current.length}function Wv(e,t){return Yv(e,{disabledIndices:t})}function qv(e,t){return Yv(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Yv(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&Xv(a,s,o));return s}function Kv(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Jv(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Xv(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Zv=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}let eb=!1,tb=0;const nb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tb++;const rb=Nv.useId||function(){const[e,t]=d.useState(()=>eb?nb():void 0);return Zv(()=>{null==e&&t(nb())},[]),d.useEffect(()=>{eb=!0},[]),e};const ob=d.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:p,d:f,style:{transform:g,...h}={},...m}=e,v=rb(),[b,y]=d.useState(!1);if(Zv(()=>{r&&"rtl"===zh(r).direction&&y(!0)},[r]),!r)return null;const[x,w]=n.split("-"),S="top"===x||"bottom"===x;let _=u;(S&&null!=i&&i.x||!S&&null!=i&&i.y)&&(_=null);const j=2*c,E=j/2,C=a/2*(l/-8+1),k=s/2*l/4,T=!!f,P=_&&"end"===w?"bottom":"top";let R=_&&"end"===w?"right":"left";_&&b&&(R="end"===w?"left":"right");const O=null!=(null==o?void 0:o.x)?_||o.x:"",I=null!=(null==o?void 0:o.y)?_||o.y:"",A=f||"M0,0 H"+a+" L"+(a-C)+","+(s-k)+" Q"+a/2+","+s+" "+C+","+(s-k)+" Z",M={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[x];return d.createElement("svg",Qv({},m,{"aria-hidden":!0,ref:t,width:T?a:a+j,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[R]:O,[P]:I,[x]:S||T?"100%":"calc(100% - "+j/2+"px)",transform:[M,g].filter(e=>!!e).join(" "),...h}}),j>0&&d.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:j+(f?0:1),d:A}),d.createElement("path",{stroke:j&&!f?m.fill:"none",d:A}),d.createElement("clipPath",{id:v},d.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+j,height:a})))});const ib=d.createContext(null),ab=d.createContext(null),sb=()=>{var e;return(null==(e=d.useContext(ib))?void 0:e.id)||null},lb=()=>d.useContext(ab);function cb(e){return"data-floating-ui-"+e}function ub(e){const t=(0,d.useRef)(e);return Zv(()=>{t.current=e}),t}const db=cb("safe-polygon");function pb(e,t,n){return n&&!rm(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function fb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:p=0,move:f=!0}=t,g=lb(),h=sb(),m=ub(c),v=ub(l),b=ub(n),y=d.useRef(),x=d.useRef(-1),w=d.useRef(),S=d.useRef(-1),_=d.useRef(!0),j=d.useRef(!1),E=d.useRef(()=>{}),C=d.useRef(!1),k=d.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);d.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(S.current),_.current=!0,C.current=!1)}},[s,i]),d.useEffect(()=>{if(!s||!m.current||!n)return;function e(e){k()&&r(!1,e,"hover")}const t=om(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,m,k]);const T=d.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=pb(v.current,"close",y.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(x.current),r(!1,e,n))},[v,r]),P=$v(()=>{E.current(),w.current=void 0}),R=$v(()=>{if(j.current){const e=om(a.floating).body;e.style.pointerEvents="",e.removeAttribute(db),j.current=!1}}),O=$v(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));d.useEffect(()=>{if(s&&Ch(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),f&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(x.current),_.current=!1,u&&!rm(y.current)||p>0&&!pb(v.current,"open"))return;const t=pb(v.current,"open",y.current);t?x.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function i(e){if(O())return;E.current();const t=om(a.floating);if(clearTimeout(S.current),C.current=!1,m.current&&o.current.floatingContext){n||clearTimeout(x.current),w.current=m.current({...o.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),P(),O()||T(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Kh(a.floating,e.relatedTarget))&&T(e)}function l(e){O()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),P(),O()||T(e)}})(e))}},[a,s,e,u,p,f,T,P,R,r,n,b,g,v,m,o,O]),Zv(()=>{var e;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&k()){j.current=!0;const e=a.floating;if(Ch(a.domReference)&&e){var t;const n=om(a.floating).body;n.setAttribute(db,"");const r=a.domReference,o=null==g||null==(t=g.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,h,a,g,m,k]),Zv(()=>{n||(y.current=void 0,C.current=!1,P(),R())},[n,P,R]),d.useEffect(()=>()=>{P(),clearTimeout(x.current),clearTimeout(S.current),R()},[s,a.domReference,P,R]);const I=d.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){!_.current&&!b.current&&r(!0,t,"hover")}u&&!rm(y.current)||n||0===p||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(S.current),"touch"===y.current?o():(C.current=!0,S.current=window.setTimeout(o,p)))}}},[u,r,n,b,p]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){O()||T(e.nativeEvent,!1)}}),[T,O]);return d.useMemo(()=>s?{reference:I,floating:A}:{},[s,I,A])}let gb=0;function hb(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(gb);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():gb=requestAnimationFrame(i)}function mb(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let vb=new WeakMap,bb=new WeakSet,yb={},xb=0;const wb=e=>e&&(e.host||wb(e.parentNode));function Sb(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const n=wb(t);return e.contains(n)?n:null}).filter(e=>null!=e))(t,e),s=new Set,l=new Set(a),c=[];yb[o]||(yb[o]=new WeakMap);const u=yb[o];return a.forEach(function e(t){!t||s.has(t)||(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||l.has(t)||[].forEach.call(t.children,t=>{if("script"!==Sh(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(vb.get(t)||0)+1,a=(u.get(t)||0)+1;vb.set(t,r),u.set(t,a),c.push(t),1===r&&n&&bb.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),s.clear(),xb++,()=>{c.forEach(e=>{const t=(vb.get(e)||0)-1,n=(u.get(e)||0)-1;vb.set(e,t),u.set(e,n),t||(!bb.has(e)&&i&&e.removeAttribute(i),bb.delete(e)),n||e.removeAttribute(o)}),xb--,xb||(vb=new WeakMap,vb=new WeakMap,bb=new WeakSet,yb={})}}function _b(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=om(e[0]).body;return Sb(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const jb=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Eb(e,t){const n=Zm(e,jb());"prev"===t&&n.reverse();const r=n.indexOf(Yh(om(e)));return n.slice(r+1)[0]}function Cb(){return Eb(document.body,"next")}function kb(){return Eb(document.body,"prev")}function Tb(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kh(n,r)}function Pb(e){Zm(e,jb()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Rb(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const Ob={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ib(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Ab=d.forwardRef(function(e,t){const[n,r]=d.useState();Zv(()=>(em()&&r("button"),document.addEventListener("keydown",Ib),()=>{document.removeEventListener("keydown",Ib)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[cb("focus-guard")]:"",style:Ob};return d.createElement("span",Qv({},e,o))}),Mb=d.createContext(null),Db=cb("portal");function Fb(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=rb(),o=Nb(),[i,a]=d.useState(null),s=d.useRef(null);return Zv(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{s.current=null})},[i]),Zv(()=>{if(!r||s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Db,""),e.appendChild(n),s.current=n,a(n)},[t,r]),Zv(()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Ch(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Db,""),e=i||e,e.appendChild(l),s.current=l,a(l)},[t,n,r,o]),i}({id:n,root:r}),[a,s]=d.useState(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=null==a?void 0:a.modal,g=null==a?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return d.useEffect(()=>{if(i&&o&&!f)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Tb(e)&&("focusin"===e.type?Rb:Pb)(i)}},[i,o,f]),d.useEffect(()=>{i&&(g||Rb(i))},[g,i]),d.createElement(Mb.Provider,{value:d.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:p,portalNode:i,setFocusManagerState:s}),[o,i])},h&&i&&d.createElement(Ab,{"data-type":"outside",ref:l,onFocus:e=>{if(Tb(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=kb()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),h&&i&&d.createElement("span",{"aria-owns":i.id,style:Ob}),i&&fh.createPortal(t,i),h&&i&&d.createElement(Ab,{"data-type":"outside",ref:c,onFocus:e=>{if(Tb(e,i)){var t;null==(t=p.current)||t.focus()}else{const t=Cb()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),null!=a&&a.closeOnFocusOut&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Nb=()=>d.useContext(Mb),Lb="data-floating-ui-focusable";function $b(e){return e?e.hasAttribute(Lb)?e:e.querySelector("["+Lb+"]")||e:null}let Vb=[];function Bb(e){Vb=Vb.filter(e=>e.isConnected);let t=e;if(t&&"body"!==Sh(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Nm.call(e,Dm)&&Km(t,e)}(t,jb())){const e=Zm(t,jb())[0];e&&(t=e)}Vb.push(t),Vb.length>20&&(Vb=Vb.slice(-20))}}function zb(){return Vb.slice().reverse().find(e=>e.isConnected)}const Gb=d.forwardRef(function(e,t){return d.createElement("button",Qv({},e,{type:"button",ref:t,tabIndex:-1,style:Ob}))});function Ub(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:g,nodeId:h,onOpenChange:m,events:v,dataRef:b,floatingId:y,elements:{domReference:x,floating:w}}=t,S="number"==typeof a&&a<0,_=cm(x)&&S,j=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=ub(o),C=ub(a),k=ub(s),T=lb(),P=Nb(),R=d.useRef(null),O=d.useRef(null),I=d.useRef(!1),A=d.useRef(!1),M=d.useRef(-1),D=null!=P,F=$b(w),N=$v(function(e){return void 0===e&&(e=F),e?Zm(e,jb()):[]}),L=$v(e=>{const t=N(e);return E.current.map(e=>x&&"reference"===e?x:F&&"floating"===e?F:t).filter(Boolean).flat()});function $(e){return!r&&u&&c?d.createElement(Gb,{ref:"start"===e?R:O,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}d.useEffect(()=>{if(r||!c)return;function e(e){if("Tab"===e.key){Kh(F,Yh(om(F)))&&0===N().length&&!_&&lm(e);const t=L(),n=am(e);"reference"===E.current[0]&&n===x&&(lm(e),e.shiftKey?hb(t[t.length-1]):hb(t[1])),"floating"===E.current[1]&&n===F&&e.shiftKey&&(lm(e),hb(t[0]))}}const t=om(F);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,x,F,c,E,_,N,L]),d.useEffect(()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=am(e),n=N().indexOf(t);-1!==n&&(M.current=n)}},[r,w,N]),d.useEffect(()=>{if(!r&&p)return w&&kh(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){A.current=!0,setTimeout(()=>{A.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(Kh(x,t)||Kh(w,t)||Kh(t,w)||Kh(null==P?void 0:P.portalNode,t)||null!=t&&t.hasAttribute(cb("focus-guard"))||T&&(mb(T.nodesRef.current,h).find(e=>{var n,r;return Kh(null==(n=e.context)?void 0:n.elements.floating,t)||Kh(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,h).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(l&&n&&Yh(om(F))===om(F).body){kh(F)&&F.focus();const e=M.current,t=N(),n=t[e]||t[t.length-1]||F;kh(n)&&n.focus()}(_||!c)&&t&&n&&!A.current&&t!==zb()&&(I.current=!0,m(!1,e,"focus-out"))})}},[r,x,w,F,c,h,T,P,m,p,l,N,_]),d.useEffect(()=>{var e;if(r)return;const t=Array.from((null==P||null==(e=P.portalNode)?void 0:e.querySelectorAll("["+cb("portal")+"]"))||[]);if(w){const e=[w,...t,R.current,O.current,E.current.includes("reference")||_?x:null].filter(e=>null!=e),n=c||_?_b(e,j,!j):_b(e);return()=>{n()}}},[r,x,w,c,E,P,_,j]),Zv(()=>{if(r||!kh(F))return;const e=Yh(om(F));queueMicrotask(()=>{const t=L(F),n=C.current,r=("number"==typeof n?t[n]:n.current)||F,o=Kh(F,e);!S&&!o&&f&&hb(r,{preventScroll:r===F})})},[r,f,F,S,L,C]),Zv(()=>{if(r||!F)return;let e=!1;const t=om(F),n=Yh(t);let o=b.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&g.domReference.current&&Bb(g.domReference.current),"hover"===r&&"mouseleave"===i.type&&(I.current=!0),"outside-press"===r&&(a?(I.current=!1,e=!0):I.current=!(Zh(i)||Qh(i)))}Bb(n),v.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Ob),D&&x&&x.insertAdjacentElement("afterend",a),()=>{v.off("openchange",i);const n=Yh(t),r=Kh(w,n)||T&&mb(T.nodesRef.current,h).some(e=>{var t;return Kh(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&g.domReference.current&&Bb(g.domReference.current);const s="boolean"==typeof k.current?zb()||a:k.current.current||a;queueMicrotask(()=>{k.current&&!I.current&&kh(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()})}},[r,w,F,k,b,g,v,T,h,D,x]),d.useEffect(()=>{queueMicrotask(()=>{I.current=!1})},[r]),Zv(()=>{if(!r&&P)return P.setFocusManagerState({modal:c,closeOnFocusOut:p,open:f,onOpenChange:m,refs:g}),()=>{P.setFocusManagerState(null)}},[r,P,c,f,m,g,p]),Zv(()=>{if(r||!F||"function"!=typeof MutationObserver||S)return;const e=()=>{const e=F.getAttribute("tabindex"),t=N(),n=Yh(om(w)),r=t.indexOf(n);-1!==r&&(M.current=r),E.current.includes("floating")||n!==g.domReference.current&&0===t.length?"0"!==e&&F.setAttribute("tabindex","0"):"-1"!==e&&F.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,w,F,g,E,N,S]);const V=!r&&j&&(!c||!_)&&(D||c);return d.createElement(d.Fragment,null,V&&d.createElement(Ab,{"data-type":"inside",ref:null==P?void 0:P.beforeInsideRef,onFocus:e=>{if(c){const e=L();hb("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(I.current=!1,Tb(e,P.portalNode)){const e=Cb()||x;null==e||e.focus()}else{var t;null==(t=P.beforeOutsideRef.current)||t.focus()}}}),!_&&$("start"),n,$("end"),V&&d.createElement(Ab,{"data-type":"inside",ref:null==P?void 0:P.afterInsideRef,onFocus:e=>{if(c)hb(L()[0]);else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(p&&(I.current=!0),Tb(e,P.portalNode)){const e=kb()||x;null==e||e.focus()}else{var t;null==(t=P.afterOutsideRef.current)||t.focus()}}}))}let Hb=0;let Wb=()=>{};const qb=d.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return Zv(()=>{if(n)return Hb++,1===Hb&&(Wb=function(){const e=/iP(hone|ad|od)|iOS/.test(Jh()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{Hb--,0===Hb&&Wb()}},[n]),d.createElement("div",Qv({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function Yb(e){return kh(e.target)&&"BUTTON"===e.target.tagName}function Kb(e){return sm(e)}function Jb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:p=!0}=t,f=d.useRef(),g=d.useRef(!1),h=d.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(rm(t,!0)&&c||(!n||!l||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===s&&f.current?f.current=void 0:rm(t,!0)&&c||(!n||!l||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,!e.defaultPrevented&&u&&!Yb(e)&&(" "===e.key&&!Kb(i)&&(e.preventDefault(),g.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Yb(e)||Kb(i)||" "===e.key&&g.current&&(g.current=!1,r(!(n&&l),e.nativeEvent,"click"))}}),[o,i,s,c,u,r,n,p,l]);return d.useMemo(()=>a?{reference:h}:{},[a,h])}const Xb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Zb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ey(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:h}=t,m=lb(),v=$v("function"==typeof l?l:()=>!1),b="function"==typeof l?v:l,y=d.useRef(!1),x=d.useRef(!1),{escapeKey:w,outsidePress:S}=Qb(g),{escapeKey:_,outsidePress:j}=Qb(h),E=d.useRef(!1),C=$v(e=>{var t;if(!n||!a||!s||"Escape"!==e.key||E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=m?mb(m.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),k=$v(e=>{var t;const n=()=>{var t;C(e),null==(t=am(e))||t.removeEventListener("keydown",n)};null==(t=am(e))||t.addEventListener("keydown",n)}),T=$v(e=>{var t;const n=y.current;y.current=!1;const a=x.current;if(x.current=!1,"click"===c&&a||n||"function"==typeof b&&!b(e))return;const s=am(e),l="["+cb("inert")+"]",u=om(o.floating).querySelectorAll(l);let d=Ch(s)?s:null;for(;d&&!Bh(d);){const e=Uh(d);if(Bh(e)||!Ch(e))break;d=e}if(u.length&&Ch(s)&&!function(e){return e.matches("html,body")}(s)&&!Kh(s,o.floating)&&Array.from(u).every(e=>!Kh(d,e)))return;if(kh(s)&&O){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===zh(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=m&&mb(m.nodesRef.current,p).some(t=>{var n;return im(e,null==(n=t.context)?void 0:n.elements.floating)});if(im(e,o.floating)||im(e,o.domReference)||f)return;const g=m?mb(m.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),P=$v(e=>{var t;const n=()=>{var t;T(e),null==(t=am(e))||t.removeEventListener(c,n)};null==(t=am(e))||t.addEventListener(c,n)});d.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=S;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),E.current=!0}function u(){e=window.setTimeout(()=>{E.current=!1},$h()?5:0)}const d=om(o.floating);s&&(d.addEventListener("keydown",_?k:C,_),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,j?P:T,j);let p=[];return f&&(Ch(o.domReference)&&(p=Wh(o.domReference)),Ch(o.floating)&&(p=p.concat(Wh(o.floating))),!Ch(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Wh(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(d.removeEventListener("keydown",_?k:C,_),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,j?P:T,j),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,s,b,c,n,r,f,a,w,S,C,_,k,T,j,P]),d.useEffect(()=>{y.current=!1},[b,c]);const R=d.useMemo(()=>({onKeyDown:C,[Xb[p]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}}),[C,r,u,p]),O=d.useMemo(()=>({onKeyDown:C,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Zb[c]]:()=>{y.current=!0}}),[C,c]);return d.useMemo(()=>a?{reference:R,floating:O}:{},[a,R,O])}function ty(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=rb(),i=d.useRef({}),[a]=d.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),s=null!=sb();const[l,c]=d.useState(r.reference),u=$v((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),p=d.useMemo(()=>({setPositionReference:c}),[]),f=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:a,floatingId:o,refs:p}),[t,u,f,a,o,p])}function ny(e){void 0===e&&(e={});const{nodeId:t}=e,n=ty({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=d.useState(null),[s,l]=d.useState(null),c=(null==o?void 0:o.domReference)||i,u=d.useRef(null),p=lb();Zv(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);kv(f,r)||g(r);const[h,m]=d.useState(null),[v,b]=d.useState(null),y=d.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),x=d.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),w=i||h,S=a||v,_=d.useRef(null),j=d.useRef(null),E=d.useRef(u),C=null!=l,k=Rv(l),T=Rv(o),P=Rv(c),R=d.useCallback(()=>{if(!_.current||!j.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),Ev(_.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!kv(E.current,t)&&(E.current=t,fh.flushSync(()=>{p(t)}))})},[f,t,n,T,P]);Cv(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);const O=d.useRef(!1);Cv(()=>(O.current=!0,()=>{O.current=!1}),[]),Cv(()=>{if(w&&(_.current=w),S&&(j.current=S),w&&S){if(k.current)return k.current(w,S,R);R()}},[w,S,R,k,C]);const I=d.useMemo(()=>({reference:_,floating:j,setReference:y,setFloating:x}),[y,x]),A=d.useMemo(()=>({reference:w,floating:S}),[w,S]),M=d.useMemo(()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Pv(A.floating,u.x),r=Pv(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Tv(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:R,refs:I,elements:A,floatingStyles:M}),[u,R,I,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),g=d.useCallback(e=>{const t=Ch(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=d.useCallback(e=>{(Ch(e)||null===e)&&(u.current=e,a(e)),(Ch(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Ch(e))&&f.refs.setReference(e)},[f.refs]),m=d.useMemo(()=>({...f.refs,setReference:h,setPositionReference:g,domReference:u}),[f.refs,h,g]),v=d.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=d.useMemo(()=>({...f,...r,refs:m,elements:v,nodeId:t}),[f,m,v,t,r]);return Zv(()=>{r.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),d.useMemo(()=>({...f,context:b,refs:m,elements:v}),[f,m,v,b])}function ry(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=d.useRef(!1),u=d.useRef(),p=d.useRef(!0);d.useEffect(()=>{if(!s)return;const e=_h(a.domReference);function t(){!n&&kh(a.domReference)&&a.domReference===Yh(om(a.domReference))&&(c.current=!0)}function r(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[a.domReference,n,s]),d.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(c.current=!0)}},[o,s]),d.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=d.useMemo(()=>({onPointerDown(e){Qh(e.nativeEvent)||(p.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=am(e.nativeEvent);if(l&&Ch(t))try{if(em()&&nm())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!p.current&&!sm(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Ch(t)&&t.hasAttribute(cb("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const s=Yh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||Kh(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Kh(a.domReference,s)||o||r(!1,n,"focus")})}}),[i,a.domReference,r,l]);return d.useMemo(()=>s?{reference:f}:{},[s,f])}const oy="active",iy="selected";function ay(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[oy]:t,[iy]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Lb]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!o||![oy,iy].includes(n))if(0===n.indexOf("on")){var a;if(r.has(n)||r.set(n,[]),"function"==typeof i)null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}else e[n]=i}),e),{})}}function sy(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=d.useCallback(t=>ay(t,e,"reference"),t),i=d.useCallback(t=>ay(t,e,"floating"),n),a=d.useCallback(t=>ay(t,e,"item"),r);return d.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}let ly=!1;function cy(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function uy(e,t){return cy(t,e===Vv||e===Bv,e===zv||e===Gv)}function dy(e,t,n){return cy(t,e===Bv,n?e===zv:e===Gv)||"Enter"===e||" "===e||""===e}function py(e,t,n){return cy(t,n?e===Gv:e===zv,e===Vv)}function fy(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:a,onNavigate:s=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:p=!1,nested:f=!1,rtl:g=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:b=!0,disabledIndices:y,orientation:x="vertical",cols:w=1,scrollItemIntoView:S=!0,virtualItemRef:_,itemSizes:j,dense:E=!1}=t,C=ub($b(o.floating)),k=sb(),T=lb(),P=$v(s),R=cm(o.domReference),O=d.useRef(m),I=d.useRef(c??-1),A=d.useRef(null),M=d.useRef(!0),D=d.useRef(P),F=d.useRef(!!o.floating),N=d.useRef(n),L=d.useRef(!1),$=d.useRef(!1),V=ub(y),B=ub(n),z=ub(S),G=ub(c),[U,H]=d.useState(),[W,q]=d.useState(),Y=$v(function(e,t,n){function r(e){h?(H(e.id),null==T||T.events.emit("virtualfocus",e),_&&(_.current=e)):hb(e,{preventScroll:!0,sync:!(!nm()||!em())&&(ly||L.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=z.current;a&&J&&(n||!M.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))})});Zv(()=>{document.createElement("div").focus({get preventScroll(){return ly=!0,!1}})},[]),Zv(()=>{l&&(n&&o.floating?O.current&&null!=c&&($.current=!0,I.current=c,P(c)):F.current&&(I.current=-1,D.current(null)))},[l,n,o.floating,c,P]),Zv(()=>{if(l&&n&&o.floating)if(null==a){if(L.current=!1,null!=G.current)return;if(F.current&&(I.current=-1,Y(i,I)),(!N.current||!F.current)&&O.current&&(null!=A.current||!0===O.current&&null==A.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(I.current=null==A.current||dy(A.current,x,g)||f?Wv(i,V.current):qv(i,V.current),A.current=null,P(I.current))};t()}}else Hv(i,a)||(I.current=a,Y(i,I,$.current),$.current=!1)},[l,n,o.floating,a,G,f,i,x,g,P,Y,V]),Zv(()=>{var e;if(!l||o.floating||!T||h||!F.current)return;const t=T.nodesRef.current,n=null==(e=t.find(e=>e.id===k))||null==(e=e.context)?void 0:e.elements.floating,r=Yh(om(o.floating)),i=t.some(e=>e.context&&Kh(e.context.elements.floating,r));n&&!i&&M.current&&n.focus({preventScroll:!0})},[l,o.floating,T,k,h]),Zv(()=>{if(l&&T&&h&&!k)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){q(e.id),_&&(_.current=e)}},[l,T,h,k,_]),Zv(()=>{D.current=P,F.current=!!o.floating}),Zv(()=>{n||(A.current=null)},[n]),Zv(()=>{N.current=n},[n]);const K=null!=a,J=d.useMemo(()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&P(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;!M.current||"touch"===t||(I.current=-1,Y(i,I),P(null),h||hb(C.current,{preventScroll:!0}))}}}},[n,C,Y,v,i,P,h]),X=$v(e=>{if(M.current=!1,L.current=!0,229===e.which||!B.current&&e.currentTarget===C.current)return;if(f&&py(e.key,x,g))return lm(e),r(!1,e.nativeEvent,"list-navigation"),void(kh(o.domReference)&&(h?null==T||T.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=I.current,a=Wv(i,y),s=qv(i,y);if(R||("Home"===e.key&&(lm(e),I.current=a,P(I.current)),"End"===e.key&&(lm(e),I.current=s,P(I.current))),w>1){const t=j||Array.from({length:i.current.length},()=>({width:1,height:1})),n=function(e,t,n){const r=[];let o=0;return e.forEach((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),l=!0):o++}}),[...r]}(t,w,E),r=n.findIndex(e=>null!=e&&!Xv(i.current,e,y)),o=n.reduce((e,t,n)=>null==t||Xv(i.current,t,y)?e:n,-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===Vv){if(d&&lm(n),-1===u)p=c;else if(p=Yv(e,{startingIndex:p,amount:a,decrement:!0,disabledIndices:s}),o&&(u-a<l||p<0)){const e=u%a,t=c%a,n=c-(t-e);p=t===e?c:t>e?n:n-a}Hv(e,p)&&(p=u)}if(n.key===Bv&&(d&&lm(n),-1===u?p=l:(p=Yv(e,{startingIndex:u,amount:a,disabledIndices:s}),o&&u+a>c&&(p=Yv(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),Hv(e,p)&&(p=u)),"both"===r){const t=fm(u/a);n.key===(i?zv:Gv)&&(d&&lm(n),u%a!==a-1?(p=Yv(e,{startingIndex:u,disabledIndices:s}),o&&Uv(p,a,t)&&(p=Yv(e,{startingIndex:u-u%a-1,disabledIndices:s}))):o&&(p=Yv(e,{startingIndex:u-u%a-1,disabledIndices:s})),Uv(p,a,t)&&(p=u)),n.key===(i?Gv:zv)&&(d&&lm(n),u%a!==0?(p=Yv(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&Uv(p,a,t)&&(p=Yv(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):o&&(p=Yv(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),Uv(p,a,t)&&(p=u));const r=fm(c/a)===t;Hv(e,p)&&(p=o&&r?n.key===(i?Gv:zv)?c:Yv(e,{startingIndex:u-u%a-1,disabledIndices:s}):u)}return p}({current:n.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:x,loop:p,rtl:g,cols:w,disabledIndices:Jv([...y||i.current.map((e,t)=>Xv(i.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:o,prevIndex:Kv(I.current>s?a:I.current,t,n,w,e.key===Bv?"bl":e.key===(g?zv:Gv)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(I.current=l,P(I.current)),"both"===x)return}if(uy(e.key,x)){if(lm(e),n&&!h&&Yh(e.currentTarget.ownerDocument)===e.currentTarget)return I.current=dy(e.key,x,g)?a:s,void P(I.current);dy(e.key,x,g)?I.current=p?t>=s?u&&t!==i.current.length?-1:a:Yv(i,{startingIndex:t,disabledIndices:y}):Math.min(s,Yv(i,{startingIndex:t,disabledIndices:y})):I.current=p?t<=a?u&&-1!==t?i.current.length:s:Yv(i,{startingIndex:t,decrement:!0,disabledIndices:y}):Math.max(a,Yv(i,{startingIndex:t,decrement:!0,disabledIndices:y})),Hv(i,I.current)?P(null):P(I.current)}}),Z=d.useMemo(()=>h&&n&&K&&{"aria-activedescendant":W||U},[h,n,K,W,U]),Q=d.useMemo(()=>({"aria-orientation":"both"===x?void 0:x,...!cm(o.domReference)&&Z,onKeyDown:X,onPointerMove(){M.current=!0}}),[Z,X,o.domReference,x]),ee=d.useMemo(()=>{function e(e){"auto"===m&&Zh(e.nativeEvent)&&(O.current=!0)}return{...Z,onKeyDown(e){M.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,n){return cy(t,n?e===zv:e===Gv,e===Bv)}(e.key,x,g),l=py(e.key,x,g),u=uy(e.key,x),d=(f?s:u)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==T?void 0:T.nodesRef.current.find(e=>null==e.parentId),n=T&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),mb(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(T.nodesRef.current,t.id):null;if(a&&n&&_){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var p,m;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,o=l&&!r?null==(m=n.context)?void 0:m.elements.domReference:s?i.current.find(e=>(null==e?void 0:e.id)===U):null;o&&(lm(e),o.dispatchEvent(t),q(void 0))}var v;if((u||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return lm(e),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(t))}return X(e)}if(n||b||!t){if(d&&(A.current=f&&u?null:e.key),f)return void(s&&(lm(e),n?(I.current=Wv(i,V.current),P(I.current)):r(!0,e.nativeEvent,"list-navigation")));u&&(null!=c&&(I.current=c),lm(e),!n&&b?r(!0,e.nativeEvent,"list-navigation"):X(e),n&&P(I.current))}},onFocus(){n&&!h&&P(null)},onPointerDown:function(e){O.current=m,"auto"===m&&Qh(e.nativeEvent)&&(O.current=!0)},onMouseDown:e,onClick:e}},[U,Z,X,V,m,i,f,P,r,n,b,x,g,c,T,h,_]);return d.useMemo(()=>l?{reference:ee,floating:Q,item:J}:{},[l,ee,Q,J])}const gy=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hy(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=gy.get(a))?n:a,l=rb(),c=null!=sb(),u=d.useMemo(()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[s,o,c,r,l,a]),p=d.useMemo(()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}},[s,o,l,a]),f=d.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[o,a]);return d.useMemo(()=>i?{reference:u,floating:p,item:f}:{},[i,u,p,f])}function my(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function vy(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:g}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:m,clientY:v}=e,b=[m,v],y=am(e),x="mouseleave"===e.type,w=Kh(d.floating,y),S=Kh(d.domReference,y),_=d.domReference.getBoundingClientRect(),j=d.floating.getBoundingClientRect(),E=u.split("-")[0],C=n>j.right-j.width/2,k=c>j.bottom-j.height/2,T=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,_),P=j.width>_.width,R=j.height>_.height,O=(P?_:j).left,I=(P?_:j).right,A=(R?_:j).top,M=(R?_:j).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&Ch(e.relatedTarget)&&Kh(d.floating,e.relatedTarget)||g&&mb(g.nodesRef.current,f).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===E&&c>=_.bottom-1||"bottom"===E&&c<=_.top+1||"left"===E&&n>=_.right-1||"right"===E&&n<=_.left+1)return h();let D=[];switch(E){case"top":D=[[O,_.top+1],[O,j.bottom-1],[I,j.bottom-1],[I,_.top+1]];break;case"bottom":D=[[O,j.top+1],[O,_.bottom-1],[I,_.bottom-1],[I,j.top+1]];break;case"left":D=[[j.right-1,M],[j.right-1,A],[_.left+1,A],[_.left+1,M]];break;case"right":D=[[_.right-1,M],[_.right-1,A],[j.left+1,A],[j.left+1,M]]}if(!my([m,v],D)){if(i&&!T)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i)/r;return a=e,s=t,l=n,c}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}my([m,v],function(e){let[n,r]=e;switch(E){case"top":return[[P?n+t/2:C?n+4*t:n-4*t,r+t+1],[P?n-t/2:C?n+4*t:n-4*t,r+t+1],[j.left,C||P?j.bottom-t:j.top],[j.right,C?P?j.bottom-t:j.top:j.bottom-t]];case"bottom":return[[P?n+t/2:C?n+4*t:n-4*t,r-t],[P?n-t/2:C?n+4*t:n-4*t,r-t],[j.left,C||P?j.top+t:j.bottom],[j.right,C?P?j.top+t:j.bottom:j.top+t]];case"left":{const e=[n+t+1,R?r+t/2:k?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:k?r+4*t:r-4*t];return[[k||R?j.right-t:j.left,j.top],[k?R?j.right-t:j.left:j.right-t,j.bottom],e,o]}case"right":return[[n-t,R?r+t/2:k?r+4*t:r-4*t],[n-t,R?r-t/2:k?r+4*t:r-4*t],[k||R?j.left+t:j.right,j.top],[k?R?j.left+t:j.right:j.left+t,j.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const by=d.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),yy=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=d.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:p}=ny({open:c,onOpenChange:e=>e?m():h()}),{getReferenceProps:f,getFloatingProps:g}=sy([Jb(p),hy(p),ey(p,{enabled:o,escapeKey:i,outsidePress:a})]),h=()=>{typeof e.open>"u"&&l(!1),null==r||r(!1)},m=()=>{typeof e.open>"u"&&l(!0),null==r||r(!0)};return(0,R.jsx)(by.Provider,{value:{isOpen:c,reference:u.setReference,floating:u.setFloating,getReferenceProps:f,getFloatingProps:g,closeModal:h,context:p,isDismissable:o,escapeKey:i,outsidePress:a},children:t})},xy={"tedi-icon__wrapper":"tedi-icon__wrapper-9ebcd2b9","tedi-icon__wrapper--block":"tedi-icon__wrapper--block-c6569c9a","tedi-icon__wrapper--bg":"tedi-icon__wrapper--bg-eecdf75d","tedi-icon__wrapper--inline":"tedi-icon__wrapper--inline-3b529220","tedi-icon__wrapper--bg-primary":"tedi-icon__wrapper--bg-primary-610f32c0","tedi-icon__wrapper--bg-secondary":"tedi-icon__wrapper--bg-secondary-0162c3f4","tedi-icon__wrapper--bg-brand-primary":"tedi-icon__wrapper--bg-brand-primary-b81804e6","tedi-icon__wrapper--bg-brand-secondary":"tedi-icon__wrapper--bg-brand-secondary-f1e0ad91","tedi-icon__wrapper--size-8":"tedi-icon__wrapper--size-8-9d2b31c8","tedi-icon__wrapper--size-12":"tedi-icon__wrapper--size-12-fbbccf16","tedi-icon__wrapper--size-16":"tedi-icon__wrapper--size-16-79f6d6a4","tedi-icon__wrapper--size-18":"tedi-icon__wrapper--size-18-19e79f0c","tedi-icon__wrapper--size-24":"tedi-icon__wrapper--size-24-dad0e422","tedi-icon__wrapper--size-36":"tedi-icon__wrapper--size-36-5db5f717","tedi-icon__wrapper--size-48":"tedi-icon__wrapper--size-48-72e74510","tedi-icon":"tedi-icon-af01e6fb","tedi-icon--block":"tedi-icon--block-b39b3868","tedi-icon--inline":"tedi-icon--inline-f36dc36f","tedi-icon--color-primary":"tedi-icon--color-primary-007b893c","tedi-icon--color-secondary":"tedi-icon--color-secondary-33a32ecf","tedi-icon--color-tertiary":"tedi-icon--color-tertiary-ca6b8bff","tedi-icon--color-brand":"tedi-icon--color-brand-c34b5f15","tedi-icon--color-brand-dark":"tedi-icon--color-brand-dark-b9a4ebc2","tedi-icon--color-success":"tedi-icon--color-success-12a4bdac","tedi-icon--color-warning":"tedi-icon--color-warning-22d5317b","tedi-icon--color-warning-dark":"tedi-icon--color-warning-dark-57a93663","tedi-icon--color-danger":"tedi-icon--color-danger-22384ab6","tedi-icon--color-white":"tedi-icon--color-white-449bf36d","tedi-icon--size-8":"tedi-icon--size-8-5ae94c2a","tedi-icon--size-12":"tedi-icon--size-12-761e2145","tedi-icon--size-16":"tedi-icon--size-16-1921977d","tedi-icon--size-18":"tedi-icon--size-18-53872167","tedi-icon--size-24":"tedi-icon--size-24-a0bf69ef","tedi-icon--size-36":"tedi-icon--size-36-7ca033a7","tedi-icon--size-48":"tedi-icon--size-48-4839c0a5","tedi-icon--filled":"tedi-icon--filled-acd33902"},wy=(0,d.forwardRef)((e,t)=>{const{className:n,name:r,type:o="outlined",size:i=24,filled:a,display:s="block",color:l="primary",background:c,label:u,...d}=e,p=Xi(xy["tedi-icon__wrapper"],{[xy["tedi-icon__wrapper--bg"]]:c,[xy[`tedi-icon__wrapper--bg-${c}`]]:c,[xy[`tedi-icon__wrapper--size-${i}`]]:i,[xy["tedi-icon__wrapper--block"]]:c},c&&n),f=Xi("notranslate","material-symbols",o&&[`material-symbols--${o}`],xy["tedi-icon"],l&&xy[`tedi-icon--color-${l}`],i&&xy[`tedi-icon--size-${i}`],s&&xy[`tedi-icon--${s}`],a&&xy["tedi-icon--filled"],!c&&n),g=(0,R.jsx)("span",{ref:c?null:t,className:f,"data-name":"icon",role:"img","aria-label":u,"aria-hidden":!u,...d,children:r});return c?(0,R.jsx)("div",{className:p,ref:t,children:g}):g});wy.displayName="Icon";const Sy={"tedi-closing-button":"tedi-closing-button-358111e2","tedi-closing-button--medium":"tedi-closing-button--medium-b18535a5","tedi-closing-button--large":"tedi-closing-button--large-52d00b8a"},_y=e=>{const{getLabel:t}=$g(),{title:n=t("close"),onClick:r,size:o="medium",className:i,...a}=e,s=Xi(Sy["tedi-closing-button"],{[Sy[`tedi-closing-button--${o}`]]:o},i);return(0,R.jsx)("button",{"data-name":"closing-button",type:"button",...a,className:s,onClick:r,title:n,"aria-label":n,children:(0,R.jsx)(wy,{name:"close",size:"large"===o?24:18})})},jy={modal:"modal-11cfca5e","modal--center":"modal--center-b671c09c","modal--no-overlay":"modal--no-overlay-a990d10a",modal__inner:"modal__inner-10a95cee","modal--right":"modal--right-d7b9213c","modal--bottom":"modal--bottom-b9033478","modal--10":"modal--10-bc4c5908","modal--8":"modal--8-46477dbb","modal--6":"modal--6-cd8246bc",modal__card:"modal__card-f5ca2013","close-button":"close-button-9544f148"},Ey=e=>{const{children:t}=e,{closeModal:n}=d.useContext(by);return d.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},Cy=e=>{const{children:t,size:n=6,cardProps:r={},hideCloseButton:o,position:i,lockScroll:a=!0,trapFocus:s=!0,returnFocus:l=!0,overlay:c,visuallyHiddenDismiss:u=!1}=e,{getLabel:p}=$g(),f=e["aria-labelledby"],g=e["aria-describedby"],{isOpen:h,floating:m,getFloatingProps:v,context:b,isDismissable:y}=d.useContext(by),x=d.useMemo(()=>{let e=!1;const n=e=>e.type.displayName;return o?t:d.Children.map(t,(t,r)=>e||!d.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,d.cloneElement(t,{...t.props,children:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ey,{children:(0,R.jsx)(_y,{size:"large",className:jy["close-button"]})}),t.props.children]})})))},[t,p,o]);return(0,R.jsx)(Fb,{"data-name":"modal",children:h&&(0,R.jsx)(qb,{lockScroll:a,className:Xi(jy.modal,jy[`modal--${n}`],jy[`modal--${i}`],{[jy["modal--no-overlay"]]:"none"===c}),children:(0,R.jsx)(Ub,{context:b,closeOnFocusOut:!s&&y,visuallyHiddenDismiss:u?p("modal.close"):void 0,returnFocus:l,modal:s,children:(0,R.jsx)("div",{...v({ref:m,className:jy.modal__inner,"aria-labelledby":f,"aria-describedby":g,"aria-modal":s}),children:(0,R.jsx)(Yc,{...r,className:Xi(jy.modal__card,null==r?void 0:r.className),children:x})})})})})},ky=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,tabIndex:o=(e.id?-1:void 0),element:i="p",modifiers:a,color:s,...l}=t(e),c="string"==typeof a?[a]:a,u=Xi(r,null==c?void 0:c.map(e=>(e=>/^h[1-6]$/.test(e))(e)?`tedi-text--${e}`:`text-${e}`),{[`tedi-text--${s}`]:s});return(0,R.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Ty=e=>{const{children:t,element:n="h1",...r}=e;return(0,R.jsx)(ky,{element:n,...r,children:t})},Py={"tedi-alert":"tedi-alert-8ca3e7b9","tedi-alert__content":"tedi-alert__content-d480ed20","tedi-alert__icon":"tedi-alert__icon-f9ab1feb","tedi-alert--info":"tedi-alert--info-bcd40044","tedi-alert--success":"tedi-alert--success-e6d21f49","tedi-alert--warning":"tedi-alert--warning-88456526","tedi-alert--danger":"tedi-alert--danger-b9a2aa60","tedi-alert--global":"tedi-alert--global-14ff86d0","tedi-alert--no-side-borders":"tedi-alert--no-side-borders-a15a1df0"},Ry=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>(t(!0),()=>{t(!1)}),[]),e},Oy=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,role:r="alert",title:o,className:i,type:a="info",icon:s,onClose:l,isGlobal:c=!1,noSideBorders:u=!1,titleElement:p="h3",...f}=t(e),g=Xi(Py["tedi-alert"],Py[`tedi-alert--${a}`],{[Py["tedi-alert--global"]]:c,[Py["tedi-alert--no-side-borders"]]:u},i),h=Ry(),m="alert"===r?"assertive":"status"===r?"polite":"off",v=d.useId();return h?(0,R.jsx)("div",{role:r,"data-name":"alert","aria-label":`${a} alert`,"aria-live":m,"aria-labelledby":o?v:void 0,...f,className:g,children:(0,R.jsxs)(Nc,{size:.25,children:[(0,R.jsxs)(oh,{gutterX:2,alignItems:o?"center":"start",children:[(0,R.jsxs)(ih,{grow:1,className:Py["tedi-alert__content"],children:[s&&(e=>{const t={size:18},n="string"==typeof e?{...t,name:e}:{...t,...e};return(0,R.jsx)(wy,{...n,className:Py["tedi-alert__icon"]})})(s),(0,R.jsx)("div",{className:"tedi-alert__content-wrapper",children:o?(0,R.jsx)(Ty,{element:p,id:v,modifiers:["h5"],children:o}):n})]}),l&&(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(_y,{onClick:l})})]}),o&&n&&(0,R.jsx)("div",{className:"tedi-alert__content-wrapper",children:n})]})}):null},Iy="card__notification-content-4c89a40e",Ay="card__notification-b07a1cfd",My=e=>{const{children:t,padding:n,className:r,...o}=e,i=Xi(Ay,r);return(0,R.jsx)(vh,{"data-name":"card-notification",padding:n,className:Iy,children:(0,R.jsx)(Oy,{className:i,...o,children:t})})},Dy={"tedi-separator":"tedi-separator-08861c00","tedi-separator--vertical":"tedi-separator--vertical-fee3a031","tedi-separator--secondary":"tedi-separator--secondary-bb0cc0a1","tedi-separator--accent":"tedi-separator--accent-17878389","tedi-separator--block":"tedi-separator--block-48f7fe7e","tedi-separator--inline":"tedi-separator--inline-9021c8fe","tedi-separator--dotted":"tedi-separator--dotted-e3766e9c","tedi-separator--dotted-small":"tedi-separator--dotted-small-71e3be2e","tedi-separator--is-stretched":"tedi-separator--is-stretched-dfd66f31","tedi-separator--horizontal":"tedi-separator--horizontal-47a3986e","tedi-separator--top-0":"tedi-separator--top-0-677363d3","tedi-separator--bottom-0":"tedi-separator--bottom-0-e8608c44","tedi-separator--spacing-0":"tedi-separator--spacing-0-d3de83fa","tedi-separator--dot-only":"tedi-separator--dot-only-3babc1e5","tedi-separator--top-0-25":"tedi-separator--top-0-25-e87283bc","tedi-separator--bottom-0-25":"tedi-separator--bottom-0-25-c79e8c15","tedi-separator--spacing-0-25":"tedi-separator--spacing-0-25-6773860d","tedi-separator--top-0-5":"tedi-separator--top-0-5-e324a36c","tedi-separator--bottom-0-5":"tedi-separator--bottom-0-5-33887212","tedi-separator--spacing-0-5":"tedi-separator--spacing-0-5-36726d06","tedi-separator--top-0-75":"tedi-separator--top-0-75-e74f255c","tedi-separator--bottom-0-75":"tedi-separator--bottom-0-75-48b41611","tedi-separator--spacing-0-75":"tedi-separator--spacing-0-75-9bb50a77","tedi-separator--top-1":"tedi-separator--top-1-655231b6","tedi-separator--bottom-1":"tedi-separator--bottom-1-7e9cb062","tedi-separator--spacing-1":"tedi-separator--spacing-1-a40c2177","tedi-separator--top-1-25":"tedi-separator--top-1-25-b2261ac9","tedi-separator--bottom-1-25":"tedi-separator--bottom-1-25-0f204938","tedi-separator--spacing-1-25":"tedi-separator--spacing-1-25-d53a5705","tedi-separator--top-1-5":"tedi-separator--top-1-5-a2896e5b","tedi-separator--bottom-1-5":"tedi-separator--bottom-1-5-521ea969","tedi-separator--spacing-1-5":"tedi-separator--spacing-1-5-eec3fd3a","tedi-separator--top-1-75":"tedi-separator--top-1-75-376bb3f5","tedi-separator--bottom-1-75":"tedi-separator--bottom-1-75-601de207","tedi-separator--spacing-1-75":"tedi-separator--spacing-1-75-2738dc67","tedi-separator--top-2":"tedi-separator--top-2-d45b7bb4","tedi-separator--bottom-2":"tedi-separator--bottom-2-e0846020","tedi-separator--spacing-2":"tedi-separator--spacing-2-2b1d21c5","tedi-separator--top-2-5":"tedi-separator--top-2-5-9b0adc94","tedi-separator--bottom-2-5":"tedi-separator--bottom-2-5-3b00b4c4","tedi-separator--spacing-2-5":"tedi-separator--spacing-2-5-28334f74","tedi-separator--top-5":"tedi-separator--top-5-06286d83","tedi-separator--bottom-5":"tedi-separator--bottom-5-44801c7a","tedi-separator--spacing-5":"tedi-separator--spacing-5-86a9da4b","tedi-separator--thickness-1":"tedi-separator--thickness-1-d3383a73","tedi-separator--thickness-2":"tedi-separator--thickness-2-c8739ef3","tedi-separator--dot-only-extra-small":"tedi-separator--dot-only-extra-small-2eed2366","tedi-separator--dot-only-small":"tedi-separator--dot-only-small-fc9bf9ea","tedi-separator--dot-only-medium":"tedi-separator--dot-only-medium-d8c48848","tedi-separator--dot-only-large":"tedi-separator--dot-only-large-37aaffff","tedi-separator--primary":"tedi-separator--primary-9aa696f5"},Fy=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{className:n,element:r="div",isStretched:o,spacing:i,topSpacing:a,bottomSpacing:s,axis:l="horizontal",color:c="default",variant:u,thickness:d=1,height:p,dotSize:f,display:g="block",...h}=t(e),m=Xi(Dy["tedi-separator"],n,{[Dy[`tedi-separator--${c}`]]:c},{[Dy[`tedi-separator--${l}`]]:l},{[Dy[`tedi-separator--${u}`]]:u},{[Dy[`tedi-separator--${g}`]]:g},{[Dy[`tedi-separator--${u}-${f}`]]:u&&f},{[Dy[`tedi-separator--thickness-${d}`]]:d&&!u},{[Dy["tedi-separator--is-stretched"]]:o},{[Dy[`tedi-separator--spacing-${i}`.replace(".","-")]]:i},{[Dy[`tedi-separator--top-${a}`.replace(".","-")]]:!i&&a},{[Dy[`tedi-separator--bottom-${s}`.replace(".","-")]]:!i&&s});return(0,R.jsx)(r,{"data-name":"separator",...h,style:(()=>{const e={};return p&&(e["--vertical-separator-height"]=`${p}rem`),e})(),className:m})},Ny=e=>{var t;let{visible:n,toggleVisible:r,title:o,size:i,primaryText:a,secondaryText:s,tertiaryText:l,onPrimary:c,onSecondary:u,onTertiary:d,children:p,primaryDisabled:f=!1,tertiaryDisabled:g=!1,tertiaryIconLeft:h,primaryColor:m,cardProps:v,withoutCardHeader:b=!1,tertiaryColor:y,tertiaryVisualType:x,notification:w,isLoading:S}=e;const _=(0,G.useIntl)();return(0,R.jsx)(yy,{open:n,onToggle:r,children:(0,R.jsxs)(Cy,{"aria-labelledby":"label",hideCloseButton:!0,size:null!=i?i:6,cardProps:v,children:[!b&&(0,R.jsx)(eh,{background:"white",children:(0,R.jsx)(Qg,{element:"h2",modifiers:"h3",color:"default",children:_.formatMessage({id:o})})}),w&&(0,R.jsx)(My,{title:w.title,type:w.type,children:null!==(t=null==w?void 0:w.children)&&void 0!==t?t:""}),(0,R.jsx)(vh,{children:(0,R.jsxs)(R.Fragment,{children:[b&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Qg,{element:"h2",modifiers:"h3",color:"default",children:_.formatMessage({id:o})}),(0,R.jsx)("br",{})]}),S?(0,R.jsx)(Vg,{color:"primary",label:"Loading...",size:16}):(0,R.jsx)(R.Fragment,{children:p}),(0,R.jsx)(Fy,{spacing:1}),(0,R.jsxs)(oh,{justifyContent:"between",gutter:0,children:[(0,R.jsx)(ih,{xs:"auto",children:(0,R.jsx)(oh,{gutter:0,children:!!s&&!!u&&(0,R.jsx)(Yg,{visualType:"secondary",onClick:()=>u(),children:_.formatMessage({id:s})})})}),(0,R.jsx)(ih,{grow:1,children:(0,R.jsxs)(oh,{justifyContent:"end",gap:3,gutter:0,children:[!!l&&!!d&&(0,R.jsx)(Yg,{iconLeft:h,visualType:null!=x?x:"primary",color:null!=y?y:"default",onClick:()=>d(),disabled:g,children:_.formatMessage({id:l})}),!!a&&!!c&&(0,R.jsx)(Yg,{disabled:f,visualType:"primary",color:null!=m?m:"positive",onClick:()=>c(),children:_.formatMessage({id:a})})]})})]})]})})]})})},Ly=()=>{let e=!1;const[t,n]=(0,d.useState)("");return(0,d.useEffect)(()=>{let e;return a.e(705).then(a.bind(a,705)).then(e=>e.w).then(t=>{t.registerOnChange(n,"intent"),e=()=>t.unRegisterOnChange(n)}),()=>{e&&e()}},[]),typeof window<"u"&&typeof navigator<"u"&&(window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||"ontouchstart"in window)&&(e=!0)),e&&"keyboard"!==t},$y=10,Vy=d.createContext({open:!1,isMounted:!1,openWith:"hover",reference:()=>null,floating:()=>null,focusManager:{},arrowRef:{current:null},x:null,y:null,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{x:0,y:0,centerOffset:0},placement:"top",context:{}}),By=e=>{const{getLabel:t}=$g(),n=Ly(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=$y}=e,{order:p=["reference","content"],modal:f=!1,initialFocus:g=-1,...h}=e.focusManager??{},{visuallyHiddenDismiss:m=!!f&&t("close")}=h??{},[v,b]=d.useState(a),y=d.useRef(null),x=l&&typeof s<"u"?s:v,w=Ry(),{x:S,y:_,refs:j,strategy:E,context:C,middlewareData:k,placement:T}=ny({placement:o,open:x,onOpenChange:e=>{typeof s>"u"&&b(e),null==l||l(e)},middleware:[Iv(u),Mv(),Av({padding:8}),Dv({element:y,padding:4})],whileElementsMounted:xv}),{getReferenceProps:P,getFloatingProps:O}=sy([fb(C,{handleClose:vy(),enabled:"hover"===i}),Jb(C),ry(C,{enabled:"hover"===i}),hy(C,{role:c}),ey(C,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,R.jsx)(Vy.Provider,{value:{open:x,isMounted:w,openWith:i,reference:j.setReference,floating:j.setFloating,arrowRef:y,focusManager:{order:p,initialFocus:g,modal:f,visuallyHiddenDismiss:m,...h},x:S,y:_,strategy:E,getReferenceProps:P,getFloatingProps:O,arrow:{...k.arrow},context:C,placement:T},children:r})},zy={tooltip:"tooltip-413196ab","tooltip--none":"tooltip--none-01bd521a","tooltip--small":"tooltip--small-f23b2c64","tooltip--medium":"tooltip--medium-33ed6e9a","tooltip--large":"tooltip--large-84d7b683",tooltip__arrow:"tooltip__arrow-7d8214bc","tooltip__arrow--stroke":"tooltip__arrow--stroke-092e3c3e",tooltip__trigger:"tooltip__trigger-f6422045","tooltip__trigger--click":"tooltip__trigger--click-bb6703b1"},Gy=e=>{const{children:t}=e,{getLabel:n}=$g(),{getReferenceProps:r,reference:o,openWith:i}=d.useContext(Vy),a=Fv([o,t.ref]);return d.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===Gg?n("tooltip.icon-trigger"):void 0,...t.props,className:Xi(zy.tooltip__trigger,{[zy["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},Uy=e=>{const{children:t,maxWidth:n="medium",cardProps:r,className:o}=e,{open:i,x:a,y:s,strategy:l,focusManager:c,floating:u,arrowRef:p,getFloatingProps:f,placement:g,context:h}=d.useContext(Vy),[m,v]=Gc(null==r?void 0:r.border),b=()=>m&&v?`var(--color-${v})`:"none",y="none"!==b();return(0,R.jsx)(Fb,{"data-name":"tooltip",children:(()=>{const e=(0,R.jsx)(Ub,{...c,context:h,children:(0,R.jsxs)("div",{...f({ref:u,style:{position:l,left:a??0,top:s??0},className:Xi(zy.tooltip,o,{[zy[`tooltip--${n}`]]:n})}),"data-placement":g,children:[(0,R.jsx)(ob,{ref:e=>p.current=e,context:h,fill:null!=r&&r.background?`var(--color-${null==r?void 0:r.background})`:"var(--color-bg-default)",stroke:b(),strokeWidth:y?4:0,className:Xi(zy.tooltip__arrow,{[zy["tooltip__arrow--stroke"]]:y}),height:7,width:14}),(0,R.jsx)(Yc,{padding:.5,borderless:!0,...r,children:(0,R.jsx)(vh,{children:t})})]})});return i?e:null})()})};function Hy(e,t){return"function"==typeof e?e(t):e}function Wy(e,t){return n=>{t.setState(t=>({...t,[e]:Hy(n,t[e])}))}}function qy(e){return e instanceof Function}function Yy(e,t,n){let r,o=[];return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i);if(s.length===o.length&&!s.some((e,t)=>o[t]!==e))return r;let l;if(o=s,n.key&&n.debug&&(l=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Ky(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Jy="debugHeaders";function Xy(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Zy={createTable:e=>{e.getHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[],c=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)));return Qy(t,[...s,...c,...l],e)},Ky(e.options,Jy)),e.getCenterHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),Qy(t,n,e,"center")),Ky(e.options,Jy)),e.getLeftHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Qy(t,i,e,"left")},Ky(e.options,Jy)),e.getRightHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Qy(t,i,e,"right")},Ky(e.options,Jy)),e.getFooterGroups=Yy(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getLeftFooterGroups=Yy(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getCenterFooterGroups=Yy(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getRightFooterGroups=Yy(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getFlatHeaders=Yy(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getLeftFlatHeaders=Yy(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getCenterFlatHeaders=Yy(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getRightFlatHeaders=Yy(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getCenterLeafHeaders=Yy(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getLeftLeafHeaders=Yy(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getRightLeafHeaders=Yy(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getLeafHeaders=Yy(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Ky(e.options,Jy))}};function Qy(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=Xy(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Xy(n,e,{depth:a,index:t}));c(u,a-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const ex=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Yy(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Yy(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Ky(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Ky(e.options,"debugRows")),_getAllCellsByColumnId:Yy(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Ky(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},tx={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nx=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(i))};nx.autoRemove=e=>px(e);const rx=(e,t,n)=>{var r;return!(null==(r=e.getValue(t))||null==(r=r.toString())||!r.includes(n))};rx.autoRemove=e=>px(e);const ox=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};ox.autoRemove=e=>px(e);const ix=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};ix.autoRemove=e=>px(e);const ax=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});ax.autoRemove=e=>px(e)||!(null!=e&&e.length);const sx=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});sx.autoRemove=e=>px(e)||!(null!=e&&e.length);const lx=(e,t,n)=>e.getValue(t)===n;lx.autoRemove=e=>px(e);const cx=(e,t,n)=>e.getValue(t)==n;cx.autoRemove=e=>px(e);const ux=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};ux.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},ux.autoRemove=e=>px(e)||px(e[0])&&px(e[1]);const dx={includesString:nx,includesStringSensitive:rx,equalsString:ox,arrIncludes:ix,arrIncludesAll:ax,arrIncludesSome:sx,equals:lx,weakEquals:cx,inNumberRange:ux};function px(e){return null==e||""===e}const fx={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Wy("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?dx.includesString:"number"==typeof r?dx.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?dx.equals:Array.isArray(r)?dx.arrIncludes:dx.weakEquals},e.getFilterFn=()=>{var n,r;return qy(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:dx[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=Hy(n,o?o.value:void 0);var a;if(gx(r,i,e))return null!=(a=null==t?void 0:t.filter(t=>t.id!==e.id))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Hy(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(gx(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function gx(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const hx={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},mx={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Wy("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?hx.sum:"[object Date]"===Object.prototype.toString.call(r)?hx.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return qy(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:hx[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const vx={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Wy("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Yy(e=>[jx(t,e)],t=>t.findIndex(t=>t.id===e.id),Ky(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=jx(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=jx(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Yy(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));return"remove"===n?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}(o,t,n)},Ky(e.options,"debugTable"))}},bx={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Wy("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},Ky(t.options,"debugRows")),e.getLeftVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),Ky(t.options,"debugRows")),e.getRightVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),Ky(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?!(null==(n=r[t])||!n.length):!!(null!=(o=r.left)&&o.length||null!=(i=r.right)&&i.length)},e.getLeftLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Ky(e.options,"debugColumns")),e.getRightLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Ky(e.options,"debugColumns")),e.getCenterLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},Ky(e.options,"debugColumns"))}};const yx={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},xx={getDefaultColumnDef:()=>yx,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Wy("columnSizing",e),onColumnSizingInfoChange:Wy("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:yx.minSize,null!=(r=i??e.columnDef.size)?r:yx.size),null!=(o=e.columnDef.maxSize)?o:yx.maxSize)},e.getStart=Yy(e=>[e,jx(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Ky(t.options,"debugColumns")),e.getAfter=Yy(e=>[e,jx(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Ky(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o||(null==i.persist||i.persist(),Sx(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=Sx(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=function(e){return e||(typeof document<"u"?document:null)}(n),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",g.moveHandler),null==f||f.removeEventListener("mouseup",g.upHandler),p(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",h.moveHandler),null==f||f.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof wx)return wx;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return wx=e,wx}()&&{passive:!1};Sx(i)?(null==f||f.addEventListener("touchmove",h.moveHandler,m),null==f||f.addEventListener("touchend",h.upHandler,m)):(null==f||f.addEventListener("mousemove",g.moveHandler,m),null==f||f.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let wx=null;function Sx(e){return"touchstart"===e.type}const _x={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Wy("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Yy(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Ky(t.options,"debugRows")),e.getVisibleCells=Yy(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Ky(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Yy(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Ky(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function jx(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Ex={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Cx={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Wy("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>dx.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return qy(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:dx[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},kx={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Wy("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||null!=r&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Tx={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Wy("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>Hy(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=Hy(t,n.pageIndex);const o=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,Hy(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=Hy(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Yy(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Ky(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Px={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Wy("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=r??o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?!(null==(n=r[t])||!n.length):!!(null!=(o=r.top)&&o.length||null!=(i=r.bottom)&&i.length)},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(n??[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ky(e.options,"debugRows")),e.getBottomRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ky(e.options,"debugRows")),e.getCenterRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},Ky(e.options,"debugRows"))}},Rx={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Wy("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{Ox(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getFilteredSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getGroupedSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!(!t.length||!Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Ox(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ax(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Mx(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Mx(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Ox=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>Ox(e,t.id,n,r,o))};function Ix(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const a=Ax(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Ax(e,t){var n;return null!=(n=t[e.id])&&n}function Mx(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(Ax(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Mx(e,t);"all"===n?i=!0:("some"===n&&(i=!0),o=!1)}}),o?"all":!!i&&"some"}const Dx=/([0-9]+)/gm;function Fx(e,t){return e===t?0:e>t?1:-1}function Nx(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Lx(e,t){const n=e.split(Dx).filter(Boolean),r=t.split(Dx).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const $x={alphanumeric:(e,t,n)=>Lx(Nx(e.getValue(n)).toLowerCase(),Nx(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Lx(Nx(e.getValue(n)),Nx(t.getValue(n))),text:(e,t,n)=>Fx(Nx(e.getValue(n)).toLowerCase(),Nx(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Fx(Nx(e.getValue(n)),Nx(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>Fx(e.getValue(n),t.getValue(n))},Vx={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Wy("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return $x.datetime;if("string"==typeof n&&(r=!0,n.split(Dx).length>1))return $x.alphanumeric}return r?$x.text:$x.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return qy(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:$x[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting(a=>{const s=null==a?void 0:a.find(t=>t.id===e.id),l=null==a?void 0:a.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var p;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?a.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Bx=[Zy,_x,vx,bx,tx,fx,Ex,Cx,Vx,mx,kx,Tx,Px,Rx,xx];function zx(e){var t,n;const r=[...Bx,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let a={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let l=!1;const c={_features:r,options:{...i,...e},initialState:a,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Hy(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:Yy(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},Ky(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Yy(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(o=null!=(i=a.id)?i:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:Yy(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Ky(e.options,"debugColumns")),getLeafColumns:Yy(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},Ky(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i})};return t(e)},Ky(e,"debugColumns")),getAllFlatColumns:Yy(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Ky(e,"debugColumns")),_getAllFlatColumnsById:Yy(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Ky(e,"debugColumns")),getAllLeafColumns:Yy(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>{let n=e.flatMap(e=>e.getLeafColumns());return t(n)},Ky(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function Gx(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Ux(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const p=ex(n,d.id,d.original,d.index,d.depth,0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(p.subRows=s(d.subRows,r+1),d=p,t(d)&&!p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=p,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=ex(n,d.id,d.original,d.index,d.depth,0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}function Hx(e,t){return e?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(e)?d.createElement(e,t):e:null}function Wx(e){return Wx="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},Wx(e)}function qx(e){var t=function(e,t){if("object"!=Wx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wx(t)?t:t+""}function Yx(e,t,n){return(t=qx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kx(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 Jx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kx(Object(n),!0).forEach(function(t){Yx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xx(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 Zx(e,t){if(e){if("string"==typeof e)return Xx(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)?Xx(e,t):void 0}}function Qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!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)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Zx(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 ew(e,t){if(null==e)return{};var n,r,o=pu(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}var tw=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nw(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=ew(e,tw),m=Qx((0,d.useState)(void 0!==s?s:n),2),v=m[0],b=m[1],y=Qx((0,d.useState)(void 0!==l?l:o),2),x=y[0],w=y[1],S=Qx((0,d.useState)(void 0!==g?g:a),2),_=S[0],j=S[1],E=(0,d.useCallback)(function(e,t){"function"==typeof c&&c(e,t),j(e)},[c]),C=(0,d.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)},[u]),k=(0,d.useCallback)(function(){"function"==typeof f&&f(),w(!0)},[f]),T=(0,d.useCallback)(function(){"function"==typeof p&&p(),w(!1)},[p]),P=void 0!==s?s:v,R=void 0!==l?l:x,O=void 0!==g?g:_;return Jx(Jx({},h),{},{inputValue:P,menuIsOpen:R,onChange:E,onInputChange:C,onMenuClose:T,onMenuOpen:k,value:O})}function rw(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,qx(r.key),r)}}function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ow(e,t)}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iw(e)}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aw=function(){return!!e})()}function sw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(e){var t=aw();return function(){var n,r=iw(e);if(t){var o=iw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Wx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sw(e)}(this,n)}}function cw(e){return function(e){if(Array.isArray(e))return Xx(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zx(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.")}()}var uw=function(e,t){var n=arguments;if(null==t||!jg.call(t,"css"))return d.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Tg,o[1]=function(e,t){var n={};for(var r in t)jg.call(t,r)&&(n[r]=t[r]);return n[Eg]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return d.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(uw||(uw={}));var dw=Sg(function(e,t){var n=mg([e.styles],void 0,d.useContext(_g)),r=d.useRef();return yg(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),yg(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&og(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mg(t)}function fw(){var e=pw.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_"}}}var gw=d.useLayoutEffect,hw=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],mw=function(){};function vw(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function bw(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];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(vw(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var yw=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===Wx(e)&&null!==e?[e]:[]},xw=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Jx({},ew(e,hw))},ww=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(n??{},i(t,e),a)}};function Sw(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function _w(e){return Sw(e)?window.pageYOffset:e.scrollTop}function jw(e,t){Sw(e)?window.scrollTo(0,t):e.scrollTop=t}function Ew(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mw,o=_w(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);jw(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Cw(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?jw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&jw(e,Math.max(t.offsetTop-o,0))}function kw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}var Tw=!1,Pw={get passive(){return Tw=!0}},Rw=typeof window<"u"?window:{};Rw.addEventListener&&Rw.removeEventListener&&(Rw.addEventListener("p",mw,Pw),Rw.removeEventListener("p",mw,!1));var Ow=Tw;function Iw(e){return null!=e}function Aw(e,t,n){return e?t:n}var Mw=["children","innerProps"],Dw=["children","innerProps"];function Fw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,g=d.top,h=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:function(e){return Sw(e)?window.innerHeight:e.clientHeight}(l),v=_w(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=h-y,w=m-g,S=x+v,_=u-v-g,j=p-m+v+b,E=v+g-y,C=160;switch(o){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(_>=f&&!a)return i&&Ew(l,j,C),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return i&&Ew(l,j,C),{placement:"bottom",maxHeight:a?w-b:_-b};if("auto"===o||a){var k=t,T=a?x:S;return T>=r&&(k=Math.min(T-b-s,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return i&&jw(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(S>=f&&!a)return i&&Ew(l,E,C),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var P=t;return(!a&&S>=r||a&&x>=r)&&(P=a?x-y:S-y),i&&Ew(l,E,C),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Nw,Lw=function(e){return"auto"===e?"bottom":e},$w=(0,d.createContext)(null),Vw=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,d.useContext)($w)||{}).setPortalPlacement,c=(0,d.useRef)(null),u=Qx((0,d.useState)(r),2),p=u[0],f=u[1],g=Qx((0,d.useState)(null),2),h=g[0],m=g[1],v=s.spacing.controlHeight;return gw(function(){var e=c.current;if(e){var t="fixed"===i,s=Fw({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),m(s.placement),null==l||l(s.placement)}},[r,o,i,a,n,l,v]),t({ref:c,placerProps:Jx(Jx({},e),{},{placement:h||Lw(o),maxHeight:p})})},Bw=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return uw("div",du({},ww(e,"menu",{menu:!0}),{ref:n},r),t)},zw=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Jx({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Gw=zw,Uw=zw,Hw=["size"],Ww=["innerProps","isRtl","size"];var qw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Yw=function(e){var t=e.size,n=ew(e,Hw);return uw("svg",du({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qw},n))},Kw=function(e){return uw(Yw,du({size:20},e),uw("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jw=function(e){return uw(Yw,du({size:20},e),uw("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xw=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Jx({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Zw=Xw,Qw=Xw,eS=fw(Nw||(Nw=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),tS=function(e){var t=e.delay,n=e.offset;return uw("span",{css:pw({animation:"".concat(eS," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},nS=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return uw("div",du({ref:o},ww(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},rS=["data"],oS=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return uw("div",du({},ww(e,"group",{group:!0}),s),uw(i,du({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),uw("div",null,t))},iS=["innerRef","isDisabled","isHidden","inputClassName"],aS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sS={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jx({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},aS)},lS=function(e){return Jx({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},aS)},cS=function(e){var t=e.cx,n=e.value,r=xw(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=ew(r,iS);return uw("div",du({},ww(e,"input",{"input-container":!0}),{"data-value":n||""}),uw("input",du({className:t({input:!0},s),ref:o,style:lS(a),disabled:i},l)))},uS=function(e){var t=e.children,n=e.innerProps;return uw("div",n,t)};var dS=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return uw(l,{data:r,innerProps:Jx(Jx({},ww(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},uw(c,{data:r,innerProps:Jx({},ww(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),uw(u,{data:r,innerProps:Jx(Jx({},ww(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},pS=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return uw("div",du({},ww(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},fS=function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"placeholder",{placeholder:!0}),n),t)},gS=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return uw("div",du({},ww(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},hS={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||uw(Kw,null))},Control:nS,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||uw(Jw,null))},DownChevron:Jw,CrossIcon:Kw,Group:oS,GroupHeading:function(e){var t=xw(e);t.data;var n=ew(t,rS);return uw("div",du({},ww(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return uw("span",du({},t,ww(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:cS,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=ew(e,Ww);return uw("div",du({},ww(Jx(Jx({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),uw(tS,{delay:0,offset:n}),uw(tS,{delay:160,offset:!0}),uw(tS,{delay:320,offset:!n}))},Menu:Bw,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return uw("div",du({},ww(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,d.useRef)(null),l=(0,d.useRef)(null),c=Qx((0,d.useState)(Lw(i)),2),u=c[0],p=c[1],f=(0,d.useMemo)(function(){return{setPortalPlacement:p}},[]),g=Qx((0,d.useState)(null),2),h=g[0],m=g[1],v=(0,d.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;(n!==(null==h?void 0:h.offset)||e.left!==(null==h?void 0:h.rect.left)||e.width!==(null==h?void 0:h.rect.width))&&m({offset:n,rect:e})}},[r,a,u,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);gw(function(){v()},[v]);var b=(0,d.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=xv(r,s.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);gw(function(){b()},[b]);var y=(0,d.useCallback)(function(e){s.current=e,b()},[b]);if(!t&&"fixed"!==a||!h)return null;var x=uw("div",du({ref:y},ww(Jx(Jx({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return uw($w.Provider,{value:f},t?(0,fh.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=ew(e,Dw);return uw("div",du({},ww(Jx(Jx({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=ew(e,Mw);return uw("div",du({},ww(Jx(Jx({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:dS,MultiValueContainer:uS,MultiValueLabel:uS,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return uw("div",du({role:"button"},n),t||uw(Kw,{size:14}))},Option:pS,Placeholder:fS,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return uw("div",du({},ww(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:gS,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return uw("div",du({},ww(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},mS=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vS(e,t){return!!(e===t||mS(e)&&mS(t))}function bS(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!vS(e[n],t[n]))return!1;return!0}for(var yS={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},xS=function(e){return uw("span",du({css:yS},e))},wS={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},SS=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,g=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,v=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,S=s["aria-label"],_=s["aria-live"],j=(0,d.useMemo)(function(){return Jx(Jx({},wS),u||{})},[u]),E=(0,d.useMemo)(function(){var e="";if(t&&j.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,s=t.value,l=o||n||function(e){return Array.isArray(e)?null:e}(s),c=l?p(l):"",u=r||i||void 0,d=u?u.map(p):[],f=Jx({isDisabled:l&&h(l,a),label:c,labels:d},t);e=j.onChange(f)}return e},[t,j,h,a,p]),C=(0,d.useMemo)(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&j.onFocus){var s={focused:t,label:p(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=j.onFocus(s)}return e},[n,r,p,h,j,o,a,c]),k=(0,d.useMemo)(function(){var e="";if(v&&b.length&&!w&&j.onFilter){var t=y({count:o.length});e=j.onFilter({inputValue:f,resultsMessage:t})}return e},[o,f,v,j,b,y,w]),T="initial-input-focus"===(null==t?void 0:t.action),P=(0,d.useMemo)(function(){var e="";if(j.guidance){var t=r?"value":v?"menu":"input";e=j.guidance({"aria-label":S,context:t,isDisabled:n&&h(n,a),isMulti:g,isSearchable:m,tabSelectsValue:x,isInitialFocus:T})}return e},[S,n,r,g,h,m,v,j,a,x,T]),R=uw(d.Fragment,null,uw("span",{id:"aria-selection"},E),uw("span",{id:"aria-focused"},C),uw("span",{id:"aria-results"},k),uw("span",{id:"aria-guidance"},P));return uw(d.Fragment,null,uw(xS,{id:l},T&&R),uw(xS,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&R))},_S=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jS=new RegExp("["+_S.map(function(e){return e.letters}).join("")+"]","g"),ES={},CS=0;CS<_S.length;CS++)for(var kS=_S[CS],TS=0;TS<kS.letters.length;TS++)ES[kS.letters[TS]]=kS.base;var PS=function(e){return e.replace(jS,function(e){return ES[e]})},RS=function(e,t){void 0===t&&(t=bS);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(PS),OS=function(e){return e.replace(/^\s+|\s+$/g,"")},IS=function(e){return"".concat(e.label," ").concat(e.value)},AS=["innerRef"];function MS(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=Qx(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=Qx(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(ew(e,AS),"onExited","in","enter","exit","appear");return uw("input",du({ref:t},n,{css:pw({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var DS=["boxSizing","height","overflow","paddingRight","position"],FS={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function NS(e){e.cancelable&&e.preventDefault()}function LS(e){e.stopPropagation()}function $S(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function VS(){return"ontouchstart"in window||navigator.maxTouchPoints}var BS=!!(typeof window<"u"&&window.document&&window.document.createElement),zS=0,GS={capture:!1,passive:!1};var US=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},HS={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function WS(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,d.useRef)(!1),s=(0,d.useRef)(!1),l=(0,d.useRef)(0),c=(0,d.useRef)(null),u=(0,d.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=c.current,g=t>0,h=d-p-u,m=!1;h>t&&a.current&&(r&&r(e),a.current=!1),g&&s.current&&(i&&i(e),s.current=!1),g&&t>h?(n&&!a.current&&n(e),f.scrollTop=d,m=!0,a.current=!0):!g&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),p=(0,d.useCallback)(function(e){u(e,e.deltaY)},[u]),f=(0,d.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),g=(0,d.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),h=(0,d.useCallback)(function(e){if(e){var t=!!Ow&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",g,t)}},[g,f,p]),m=(0,d.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",g,!1))},[g,f,p]);return(0,d.useEffect)(function(){if(t){var e=c.current;return h(e),function(){m(e)}}},[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,d.useRef)({}),i=(0,d.useRef)(null),a=(0,d.useCallback)(function(e){if(BS){var t=document.body,n=t&&t.style;if(r&&DS.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&zS<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(FS).forEach(function(e){var t=FS[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&VS()&&(t.addEventListener("touchmove",NS,GS),e&&(e.addEventListener("touchstart",$S,GS),e.addEventListener("touchmove",LS,GS))),zS+=1}},[r]),s=(0,d.useCallback)(function(e){if(BS){var t=document.body,n=t&&t.style;zS=Math.max(zS-1,0),r&&zS<1&&DS.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&VS()&&(t.removeEventListener("touchmove",NS,GS),e&&(e.removeEventListener("touchstart",$S,GS),e.removeEventListener("touchmove",LS,GS)))}},[r]);return(0,d.useEffect)(function(){if(t){var e=i.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){i.current=e}}({isEnabled:n});return uw(d.Fragment,null,n&&uw("div",{onClick:US,css:HS}),t(function(e){o(e),i(e)}))}var qS={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},YS=function(e){var t=e.name,n=e.onFocus;return uw("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:qS,value:"",onChange:function(){}})};function KS(e){var t;return typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function JS(){return KS(/^Mac/i)}function XS(){return KS(/^iPhone/i)||KS(/^iPad/i)||JS()&&navigator.maxTouchPoints>1}var ZS={clearIndicator:Qw,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Jx({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Zw,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Jx({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Jx({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Jx(Jx({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},sS),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Jx({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Uw,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Jx((Yx(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Yx(n,"position","absolute"),Yx(n,"width","100%"),Yx(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Jx({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Jx({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Jx({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Jx({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Gw,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Jx({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Jx({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Jx({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Jx({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},QS={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},e_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:kw(),captureMenuScroll:!kw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Jx({ignoreCase:!0,ignoreAccents:!0,stringify:IS,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?OS(n):n,u=s?OS(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=RS(c),u=PS(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function t_(e,t,n,r){return{type:"option",data:t,isDisabled:c_(e,t,n),isSelected:u_(e,t,n),label:s_(e,t),value:l_(e,t),index:r}}function n_(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return t_(e,n,t,r)}).filter(function(t){return i_(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=t_(e,n,t,r);return i_(e,i)?i:void 0}).filter(Iw)}function r_(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,cw(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function o_(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,cw(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function i_(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!p_(e)||!i)&&d_(e,{label:a,value:s,data:o},r)}var a_=function(e,t){var n,r=null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id;return r||null},s_=function(e,t){return e.getOptionLabel(t)},l_=function(e,t){return e.getOptionValue(t)};function c_(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function u_(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=l_(e,t);return n.some(function(t){return l_(e,t)===r})}function d_(e,t,n){return!e.filterOption||e.filterOption(t,n)}var p_=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},f_=1,g_=function(e){!function(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&&ow(e,t)}(n,e);var t=lw(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(cw(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=Aw(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Aw(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Aw(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return a_(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return o_(n_(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bw.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return s_(r.props,e)},r.getOptionValue=function(e){return l_(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=ZS[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return function(e){return Jx(Jx({},hS),e.components)}(r.props)},r.buildCategorizedOptions=function(){return n_(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return r_(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Jx({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Sw(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return p_(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,g=f.focusedOption,h=f.focusedValue,m=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing||e.shiftKey||!c||!d||!g||p&&r.isOptionSelected(g,m))return;r.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g||r.isComposing)return;r.selectOption(g);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!g)return;r.selectOption(g);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++f_),r.state.selectValue=yw(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=a_(o,i[a])}return r}return function(e,t,n){t&&rw(e.prototype,t),n&&rw(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Cw(this.menuListRef,this.focusedOptionRef),(JS()||XS())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!o&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Cw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(QS):Jx(Jx({},QS),this.props.theme):QS}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return c_(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return u_(this.props,e,t)}},{key:"filterOption",value:function(e,t){return d_(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,p=u.inputIsHidden,f=u.ariaSelection,g=this.commonProps,h=r||this.getElementId("input"),m=Jx(Jx(Jx({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?d.createElement(c,du({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):d.createElement(MS,du({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:mw,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,g=c.inputValue,h=c.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!u)return g?null:d.createElement(s,du({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map(function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return d.createElement(n,du({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(g)return null;var x=v[0];return d.createElement(a,du({},l,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,du({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return d.createElement(e,du({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return d.createElement(n,du({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,du({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state.focusedOption,f=this.props,g=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,w=f.menuPlacement,S=f.menuPosition,_=f.menuPortalTarget,j=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,C=f.noOptionsMessage,k=f.onMenuScrollToTop,T=f.onMenuScrollToBottom;if(!x)return null;var P,R=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=p===o,g=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return d.createElement(c,du({},u,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return d.createElement(n,du({},u,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return R(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return R(t,"".concat(t.index))});else if(m){var O=v({inputValue:h});if(null===O)return null;P=d.createElement(s,u,O)}else{var I=C({inputValue:h});if(null===I)return null;P=d.createElement(l,u,I)}var A={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:S,menuShouldScrollIntoView:E},M=d.createElement(Vw,du({},u,A),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return d.createElement(o,du({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),d.createElement(WS,{captureEnabled:g,onTopArrive:k,onBottomArrive:T,lockEnabled:j},function(t){return d.createElement(i,du({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:p}),P)}))});return _||"fixed"===S?d.createElement(a,du({},u,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:S}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return d.createElement(YS,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return d.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return d.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):d.createElement("input",{name:i,type:"hidden",value:""});return d.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return d.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return d.createElement(SS,du({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return d.createElement(r,du({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),d.createElement(t,du({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),d.createElement(o,du({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),d.createElement(n,du({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,g=yw(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return r_(n_(e,t))}(e,g):[],v=d?o_(n_(e,g),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:g,focusedOption:y,focusedOptionId:a_(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,S=a&&s;return a&&!S&&(w={value:Aw(f,g,g[0]||null),options:g,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),Jx(Jx(Jx({},h),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:S})}}]),n}(d.Component);g_.defaultProps=e_;var h_=(0,d.forwardRef)(function(e,t){var n=nw(e);return d.createElement(g_,du({ref:t},n))}),m_=h_,v_=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];var b_=(0,d.forwardRef)(function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var a=e.isLoading,s=void 0!==a&&a,l=e.onInputChange,c=e.filterOption,u=void 0===c?null:c,p=ew(e,v_),f=p.inputValue,g=(0,d.useRef)(void 0),h=(0,d.useRef)(!1),m=Qx((0,d.useState)(Array.isArray(n)?n:void 0),2),v=m[0],b=m[1],y=Qx((0,d.useState)(typeof f<"u"?f:""),2),x=y[0],w=y[1],S=Qx((0,d.useState)(!0===n),2),_=S[0],j=S[1],E=Qx((0,d.useState)(void 0),2),C=E[0],k=E[1],T=Qx((0,d.useState)([]),2),P=T[0],R=T[1],O=Qx((0,d.useState)(!1),2),I=O[0],A=O[1],M=Qx((0,d.useState)({}),2),D=M[0],F=M[1],N=Qx((0,d.useState)(void 0),2),L=N[0],$=N[1],V=Qx((0,d.useState)(void 0),2),B=V[0],z=V[1];o!==B&&(F({}),z(o)),n!==L&&(b(Array.isArray(n)?n:void 0),$(n)),(0,d.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]);var G=(0,d.useCallback)(function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[i]);(0,d.useEffect)(function(){!0===n&&G(x,function(e){h.current&&(b(e||[]),j(!!g.current))})},[]);var U=(0,d.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n)return g.current=void 0,w(""),k(""),R([]),j(!1),void A(!1);if(o&&D[n])w(n),k(n),R(D[n]),j(!1),A(!1);else{var r=g.current={};w(n),j(!0),A(!C),G(n,function(e){h&&r===g.current&&(g.current=void 0,j(!1),k(n),R(e||[]),A(!1),F(e?Jx(Jx({},D),{},Yx({},n,e)):D))})}},[o,G,C,D,l]),H=I?[]:x&&C?P:v||[];return Jx(Jx({},p),{},{options:H,isLoading:_||s,onInputChange:U,filterOption:u})}(e),r=nw(n);return d.createElement(g_,du({ref:t},r))}),y_=b_;const x_={"tedi-feedback-text":"tedi-feedback-text-832e790c","tedi-feedback-text--valid":"tedi-feedback-text--valid-406b61a2","tedi-feedback-text--error":"tedi-feedback-text--error-06f6742d","tedi-feedback-text--left":"tedi-feedback-text--left-7591cb38","tedi-feedback-text--right":"tedi-feedback-text--right-df4a0ff5"},w_=e=>{const{text:t,id:n,className:r,type:o="hint",position:i="left",...a}=e,s="valid"===o||"error"===o?"alert":void 0,l="error"===o||"valid"===o?"assertive":"polite";return(0,R.jsx)("div",{"data-name":"feedback-text",...a,id:n,className:Xi(x_["tedi-feedback-text"],x_[`tedi-feedback-text--${o}`],x_[`tedi-feedback-text--${i}`],r),role:s,"aria-live":l,children:t})},S_={"tedi-btn":"tedi-btn-f8b478d7","tedi-btn--small":"tedi-btn--small-e94b9068","tedi-btn--icon-only":"tedi-btn--icon-only-ca6a5cf1","tedi-btn--large":"tedi-btn--large-7e783e1a","tedi-btn--neutral":"tedi-btn--neutral-c8726f60","tedi-btn--default":"tedi-btn--default-9fd10888","tedi-btn--danger":"tedi-btn--danger-9c01f2b8","tedi-btn__text":"tedi-btn__text-a9860fef","tedi-btn--primary":"tedi-btn--primary-8ae5fe2e","tedi-btn--is-active":"tedi-btn--is-active-a575ad1a","tedi-btn--is-hovered":"tedi-btn--is-hovered-5b87ccb5","tedi-btn--secondary":"tedi-btn--secondary-770ac807","tedi-btn--success":"tedi-btn--success-92db7606","tedi-btn--inverted":"tedi-btn--inverted-fd168601","tedi-btn--link":"tedi-btn--link-33d9c4c6","tedi-btn--text-color":"tedi-btn--text-color-f85da3c7","tedi-btn__icon--left":"tedi-btn__icon--left-63fdbc12","tedi-btn__icon--right":"tedi-btn__icon--right-67cbf204","tedi-btn--is-loading":"tedi-btn--is-loading-4ead0e89","tedi-btn--icon":"tedi-btn--icon-dbc3eb30","tedi-btn__icon":"tedi-btn__icon-cffac719","tedi-btn__inner":"tedi-btn__inner-ee6403e9","tedi-btn__icon-standalone--link":"tedi-btn__icon-standalone--link-d6b6714d","tedi-btn__spinner":"tedi-btn__spinner-abd3f027","tedi-btn--underline":"tedi-btn--underline-bf1600fb","tedi-btn--no-style":"tedi-btn--no-style-f6dfaa4d","tedi-btn--full-width":"tedi-btn--full-width-f1e5f1b3"},__=(0,d.forwardRef)(({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:g,renderWrapperElement:h,fullWidth:m,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=g?Xi(S_["tedi-btn--no-style"],{[S_["tedi-btn--full-width"]]:m},r):Xi(S_["tedi-btn"],S_[`tedi-btn--${o}`],S_[`tedi-btn--${i}`],{[S_[`tedi-btn--${a}`]]:a},{[S_["tedi-btn--underline"]]:u},{[S_["tedi-btn--is-hovered"]]:d},{[S_["tedi-btn--is-active"]]:p},{[S_["tedi-btn--is-loading"]]:f},{[S_["tedi-btn--icon-only"]]:s},{[S_["tedi-btn--icon"]]:w},{[S_["tedi-btn--full-width"]]:m},r),_=(e,t)=>{const n=Xi(S_["tedi-btn__icon"],S_[`tedi-btn__icon--${e}`],{[S_["tedi-btn__spinner"]]:f}),r={size:"large"===a?24:18,className:n,..."link"===o?{display:"inline"}:{}},i="string"==typeof t?{...r,name:t}:{...r,...t,className:Xi(r.className,null==t?void 0:t.className)};return f?(0,R.jsx)(Vg,{className:i.className,size:18}):(0,R.jsx)(wy,{...i})};return(0,R.jsx)(Bg,{visibility:"hide",children:(0,R.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],"aria-busy":f||void 0,onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:g?e:(()=>{const t=f?(0,R.jsx)(Vg,{position:w?void 0:"absolute",className:Xi(S_["tedi-btn__spinner"],S_["tedi-btn__spinner--left"]),size:18}):l?_("left",l):s?_("center",s):null;return(0,R.jsxs)("span",{className:S_["tedi-btn__inner"],children:[t,(0,R.jsx)("span",{className:S_["tedi-btn__text"],children:e}),!f&&c&&_("right",c)]})})()})})});__.displayName="ButtonContent";const j_=__,E_=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{children:r,as:o,type:i="button",formNoValidate:a="submit"===i||void 0,...s}=n(e);return(0,R.jsx)(j_,{"data-name":"button",...s,type:i,formNoValidate:a,ref:t,as:o||"button",children:r})});E_.displayName="Button";const C_=E_,k_="tedi-info-button-c2972ecd",T_=d.forwardRef(({isSmall:e,...t},n)=>(0,R.jsx)(C_,{className:Xi(k_),"data-name":"info-button",...t,type:"button",icon:{name:"info",size:e?16:18},visualType:"neutral",ref:n,children:t.children}));T_.displayName="InfoButton";const P_=e=>{const{children:t,classNames:n}=e,{open:r,x:o,y:i,strategy:a,focusManager:s,floating:l,arrowRef:c,getFloatingProps:u,placement:p,context:f,arrow:g,scrollLock:h}=(0,d.useContext)(D_);return(0,d.useEffect)(()=>{h&&(r?(document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>window.innerHeight&&(document.body.style.overflow="scroll")):(document.documentElement.style.overflow="",document.body.style.overflow=""))},[r,h]),r?(0,R.jsx)(Fb,{children:(0,R.jsx)(Ub,{modal:(null==s?void 0:s.modal)||!1,...s,context:f,children:(0,R.jsxs)("div",{...u({ref:l,style:{position:a,left:o,top:i},className:null==n?void 0:n.content}),"data-placement":p,"data-testid":"overlay-content",children:[(0,R.jsx)(ob,{ref:e=>c.current=e,context:f,className:null==n?void 0:n.arrow,height:null==g?void 0:g.height,width:null==g?void 0:g.width,"data-testid":"overlay-arrow"}),t]})})}):null},R_="tedi-overlay__trigger-9068fdfb",O_="tedi-overlay__trigger--text-a94924f7",I_="tedi-overlay__trigger--click-b84dbe23",A_=e=>{const{children:t,className:n}=e,{getLabel:r}=$g(),{getReferenceProps:o,reference:i,openWith:a}=(0,d.useContext)(D_),s=Fv([i,t.ref]);return(0,d.isValidElement)(t)?(0,d.cloneElement)(t,o({ref:s,tabIndex:0,label:t.type===wy?r("tooltip.icon-trigger"):void 0,...t.props})):(0,R.jsx)("div",{...o({ref:s,tabIndex:0,className:Xi(R_,O_,{[I_]:"click"===a},n)}),children:t})},M_=3,D_=(0,d.createContext)({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0}),F_=e=>{const t=Ly(),{children:n,placement:r="top",openWith:o=(t?"click":"hover"),defaultOpen:i=!1,open:a,onToggle:s,role:l="tooltip",arrowDimensions:c,offset:u=M_+((null==c?void 0:c.height)??0),focusManager:p,dismissible:f,scrollLock:g}=e,{order:h=["reference","content"],initialFocus:m=-1,...v}=p??{},[b,y]=(0,d.useState)(i),x=(0,d.useRef)(null),w=Ry(),S=(0,d.useMemo)(()=>s&&typeof a<"u"?a:b,[s,a,b]),_=(0,d.useCallback)(e=>{typeof a>"u"&&y(e),null==s||s(e)},[a,y,s]),{x:j,y:E,refs:C,strategy:k,context:T,middlewareData:P,placement:O}=ny({placement:r,open:S,onOpenChange:_,middleware:[Iv(u),Mv(),Av({padding:8}),Dv({element:x,padding:4})],whileElementsMounted:xv}),{getReferenceProps:I,getFloatingProps:A}=sy([fb(T,{enabled:"hover"===o,handleClose:vy()}),Jb(T,{toggle:f}),ry(T,{enabled:"hover"===o}),hy(T,{role:l}),ey(T,{enabled:f,outsidePressEvent:"click"===o?"mousedown":"pointerdown"})]);return(0,R.jsx)(D_.Provider,{value:{open:S,onOpenChange:_,isMounted:w,openWith:o,reference:C.setReference,floating:C.setFloating,arrowRef:x,focusManager:{order:h,initialFocus:m,...v},x:j,y:E,strategy:k,getReferenceProps:I,getFloatingProps:A,arrow:{width:null==c?void 0:c.width,height:null==c?void 0:c.height,...P.arrow},context:T,placement:O,scrollLock:g},children:n})};F_.Trigger=A_,F_.Content=P_;const N_={"tedi-tooltip":"tedi-tooltip-c3e4c246","tedi-tooltip--none":"tedi-tooltip--none-0c9e2f36","tedi-tooltip--small":"tedi-tooltip--small-0773ea3b","tedi-tooltip--medium":"tedi-tooltip--medium-f7620c16","tedi-tooltip--large":"tedi-tooltip--large-f3655082","tedi-tooltip__arrow":"tedi-tooltip__arrow-3f18a7f2"},L_=e=>{const{openWith:t="hover",...n}=e;return(0,R.jsx)(F_,{arrowDimensions:{width:14,height:7},openWith:t,...n})};L_.Trigger=e=>(0,R.jsx)(A_,{...e}),L_.Content=e=>{const{children:t,maxWidth:n="medium",className:r}=e;return(0,R.jsx)(P_,{classNames:{content:Xi(N_["tedi-tooltip"],{[N_[`tedi-tooltip--${n}`]]:n},r),arrow:N_["tedi-tooltip__arrow"]},children:t})};const $_="tedi-label-473ab627",V_="tedi-label--small-20e328dc",B_="tedi-label--bold-9d758835",z_="tedi-label__required-414e3f9d",G_=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{as:r="label",children:o,className:i,isBold:a,isSmall:s,required:l,tooltip:c,...u}=n(e),d=Xi($_,a&&B_,s&&V_,i);return(0,R.jsxs)(r,{ref:t,className:d,...u,children:[o,l&&(0,R.jsx)("span",{className:z_,"aria-hidden":"true",children:"*"}),c&&(0,R.jsxs)(L_,{children:[(0,R.jsx)(L_.Trigger,{children:(0,R.jsx)(T_,{isSmall:s,children:c})}),(0,R.jsx)(L_.Content,{children:c})]})]})});G_.displayName="Label";const U_={"tedi-form-label--hidden":"tedi-form-label--hidden-eb9f0de0","tedi-form-label--hidden-keep-space":"tedi-form-label--hidden-keep-space-b054bd93"},H_=(0,d.forwardRef)(({label:e,hideLabel:t,required:n,id:r,renderWithoutLabel:o,size:i="default",className:a,tooltip:s,...l},c)=>{const u=Xi(U_["tedi-form-label"],U_[`tedi-form-label--${i}`],{[U_["tedi-form-label--hidden"+("keep-space"===t?"-keep-space":"")]]:t},a);return(0,R.jsx)(G_,{as:o?"span":"label",ref:c,className:u,htmlFor:r,required:n,isSmall:"small"===i,tooltip:s,...l,children:e})});H_.displayName="FormLabel";const W_={tag:"tag-de7cd582","tag--default":"tag--default-77443d27","tag--type-ghost":"tag--type-ghost-80dfabdb","tag--large":"tag--large-81928b3e","tag--color-default":"tag--color-default-9aabde81","tag--type-default":"tag--type-default-328f991f","tag--type-secondary":"tag--type-secondary-495a8ed8","tag--color-accent":"tag--color-accent-798040f8","tag--type-borderless":"tag--type-borderless-1c5fcca7","tag--type-invisible":"tag--type-invisible-c8d11eb5","tag--icon-only":"tag--icon-only-1f412944","tag--disabled":"tag--disabled-06b14065","tag--with-arrow":"tag--with-arrow-a7d0d694","tag--color-primary":"tag--color-primary-d4a64cd4","tag--color-positive":"tag--color-positive-f823c0df","tag--color-warning":"tag--color-warning-3efdfe52","tag--color-important":"tag--color-important-81499159","tag--status-error":"tag--status-error-30c88b17","tag--status-success":"tag--status-success-e31be3e2","tag--status-inactive":"tag--status-inactive-09947563","tag--rounded":"tag--rounded-e9419f54"},q_={"tedi-skeleton-block":"tedi-skeleton-block-640dada4","wave-lines":"wave-lines-8fa7cdb7","tedi-skeleton-block--h1":"tedi-skeleton-block--h1-7bedaba2","tedi-skeleton-block--h2":"tedi-skeleton-block--h2-9ff35e9f","tedi-skeleton-block--h3":"tedi-skeleton-block--h3-85dd6ba0","tedi-skeleton-block--h4":"tedi-skeleton-block--h4-965ce4bc","tedi-skeleton-block--h5":"tedi-skeleton-block--h5-7b3d67af","tedi-skeleton-block--h6":"tedi-skeleton-block--h6-2c5770a9","tedi-skeleton-block--p":"tedi-skeleton-block--p-939e6c72"},Y_=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{width:n="auto",height:r="p",className:o,style:i}=t(e);let a;a="number"==typeof n?`${n}%`:"string"==typeof n&&n.endsWith("px")?n:"auto"===n?"auto":`${n}%`;const s={width:a,..."number"==typeof r?{height:`${r}px`}:{}},l="string"==typeof r?q_[`tedi-skeleton-block--${r}`]:null;return(0,R.jsx)("span",{className:Xi(q_["tedi-skeleton-block"],l,o),style:{...s,...i}})},K_=(0,d.forwardRef)((e,t)=>{const{children:n,size:r,className:o,title:i,color:a="default",status:s,type:l="default",rounded:c=!1,hasArrow:u=!1,isLoading:d=!1,isDisabled:p=!1,iconOnly:f=!1,id:g}=e,h=d?Y_:i?"abbr":"div",m=Xi(W_.tag,o,{[W_[`tag--${r}`]]:r},{[W_[`tag--type-${l}`]]:l},{[W_[`tag--color-${a}`]]:a},{[W_[`tag--status-${s}`]]:s},{[W_["tag--rounded"]]:c},{[W_["tag--icon-only"]]:f},{[W_["tag--disabled"]]:p},{[W_["tag--with-arrow"]]:u&&!c});return(0,R.jsx)(h,{id:g,"data-name":"tag",className:m,title:i,ref:t,children:n})});K_.displayName="Tag";const J_="check-48c1869b",X_="check--disabled-3f793e27",Z_="check__input-92dff7a9",Q_="check__indicator-0ac86462",ej="check__indicator--hover-c4064110",tj="check__indicator--indeterminate-33c0c00a",nj="check__icon-e76c1b87",rj="check__icon--check-e0ab9856",oj="check__icon--indeterminate-dc93d769",ij="check__tooltip-icon-e8045891",aj="check__extra-content-7ade4e97",sj=e=>{const{id:t,label:n,value:r,className:o,disabled:i=!1,onChange:a,hideLabel:s=!1,extraContent:l,checked:c,defaultChecked:u,indeterminate:p,hover:f,name:g,tooltip:h,...m}=e,[v,b]=d.useState(u||!1),y=d.useRef(null),x=d.useMemo(()=>p?"mixed":a&&typeof c<"u"?c:v,[p,a,c,v]),w=Xi(J_,{[X_]:i});return(0,R.jsxs)("div",{"data-name":"check",className:o,...m,children:[(0,R.jsxs)(oh,{gutter:0,children:[(0,R.jsxs)(ih,{width:"auto",children:[(0,R.jsx)("input",{id:t,value:r,name:g,type:"checkbox",disabled:i,checked:"mixed"!==x&&x,"aria-checked":x,onChange:e=>{typeof c>"u"&&b(null==e?void 0:e.target.checked),null==a||a(r,null==e?void 0:e.target.checked)},className:Z_}),(0,R.jsxs)("div",{"aria-hidden":"true",onClick:()=>{var e;return null==(e=y.current)?void 0:e.click()},className:Xi(Q_,{[ej]:f,[tj]:p}),children:[(0,R.jsx)(wy,{size:16,name:"remove",className:Xi(nj,oj)}),(0,R.jsx)(wy,{size:16,name:"check",className:Xi(nj,rj)})]})]}),(0,R.jsx)(ih,{children:(0,R.jsxs)("label",{ref:y,className:w,htmlFor:t,children:[(0,R.jsx)("span",{className:Xi({"visually-hidden":s}),children:n}),h&&(0,R.jsxs)(By,{children:[(0,R.jsx)(Gy,{children:(0,R.jsx)(wy,{name:"info",color:"brand",size:16,display:"inline",className:ij})}),(0,R.jsx)(Uy,{children:h})]})]})})]}),l&&(0,R.jsx)("div",{className:aj,children:l})]})},lj={select__control:"select__control-c52fb518","select--invalid":"select--invalid-a28d479c","select__control--focused":"select__control--focused-666f5665",select__arrow:"select__arrow-f088db27","select__menu-portal":"select__menu-portal-83a0138d",select__menu:"select__menu-36546a54","select__menu-list":"select__menu-list-1db27a34","select__menu-list-inner":"select__menu-list-inner-65d1bbd0","select__menu-list-footer":"select__menu-list-footer-8ebb4c1b",select__option:"select__option-a57e0e71","select__option--focused":"select__option--focused-421543c0","select__option--selected":"select__option--selected-3d192b35","select__option--disabled":"select__option--disabled-ffe87ec9","select--small":"select--small-9131190c",select__input:"select__input-ff08a918","select__multi-value-item":"select__multi-value-item-0ca3b242",select__checkbox:"select__checkbox-2412f21a",select:"select-40793e72",select__group:"select__group-4bbb5fe8","select__group-heading":"select__group-heading-e20b5f3f","select__multi-value-clear":"select__multi-value-clear-3603e9b1","select--tags-row":"select--tags-row-8b3eeef0","select--searchable":"select--searchable-c0c07c33","select--tags-stack":"select--tags-stack-8ee56ad9"},cj=e=>{const t=Xi(lj.select__control,e.className,{[lj["select__control--focused"]]:e.isFocused});return(0,R.jsx)(hS.Control,{...e,className:t})},uj=e=>(0,R.jsx)(hS.Input,{...e,className:Xi(e.className,lj.select__input),isHidden:void 0!==e.selectProps.inputIsHidden?e.selectProps.inputIsHidden:e.isHidden}),dj=e=>(0,R.jsx)(hS.Menu,{...e,className:Xi(e.className,lj.select__menu)}),pj=e=>(0,R.jsx)(hS.MenuPortal,{...e,className:Xi(e.className,lj["select__menu-portal"])}),fj=(0,d.forwardRef)((e,t)=>{const{options:n,defaultOptions:r,id:o,name:i,iconName:a="arrow_drop_down",label:s,required:l,value:c,defaultValue:u,tagsDirection:p="row",onChange:f,onInputChange:g,inputValue:h,loadOptions:m,isLoading:v,isTagRemovable:b=!1,openMenuOnFocus:y=!1,openMenuOnClick:x=!0,tabSelectsValue:w=!1,disabled:S=!1,className:_,hideLabel:j=!1,helper:E,placeholder:C,invalid:k,size:T,async:P=!1,renderOption:O,renderMessageListFooter:I,noOptionsMessage:A,loadingMessage:M,multiple:D=!1,closeMenuOnSelect:F=!D,blurInputOnSelect:N=!1,autoFocus:L=!1,isClearable:$=!0,isClearIndicatorVisible:V=!1,isSearchable:B=!0,menuIsOpen:z,onMenuClose:G,onMenuOpen:U,onBlur:H,inputIsHidden:W,optionGroupHeadingText:q={modifiers:"small",color:"subtle"},optionGroupBackgroundColor:Y,cacheOptions:K=!0,...J}=e,X=E?(null==E?void 0:E.id)??`${o}-helper`:void 0,Z=d.useRef(null),{getLabel:Q}=$g();d.useImperativeHandle(t,()=>Z.current);const ee=e=>{var t;null==f||f(e),!N&&Z.current&&(null==(t=Z.current.inputRef)||t.focus())},te=()=>(0,R.jsx)(Gg,{name:a,size:24,className:lj.select__arrow}),ne=e=>(0,R.jsx)(hS.Placeholder,{...e,className:Xi(e.className,"inline-block")}),re=d.useCallback(e=>(0,R.jsxs)("div",{className:lj["select__menu-list-wrapper"],children:[(0,R.jsx)(hS.MenuList,{...e,className:Xi(e.className,lj["select__menu-list"]),children:e.children}),I&&(0,R.jsx)("div",{className:lj["select__menu-list-footer"],children:I(e)})]}),[I]),oe=e=>D?(e=>{const t=Xi(lj.select__option,{[lj["select__option--disabled"]]:e.isDisabled},{[lj["select__option--focused"]]:e.isFocused}),{tabIndex:n,...r}=e.innerProps;return(0,R.jsx)(hS.Option,{...e,innerProps:{...r,role:"option","aria-selected":e.isSelected},className:t,children:O?O(e):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("span",{className:"sr-only",children:e.label}),(0,R.jsx)(sj,{id:e.data.value,label:e.label,"aria-hidden":!0,className:lj.select__checkbox,value:e.data.value,name:e.data.value,checked:e.isSelected,onChange:(e,t)=>null,disabled:e.isDisabled,hover:e.isFocused})]})})})(e):(e=>{const t=Xi(lj.select__option,{[lj["select__option--disabled"]]:e.isDisabled},{[lj["select__option--selected"]]:e.isSelected},{[lj["select__option--focused"]]:e.isFocused}),{tabIndex:n,...r}=e.innerProps;return(0,R.jsx)(hS.Option,{...e,innerProps:{...r,role:"option","aria-selected":e.isSelected},className:t,children:O?O(e):e.children})})(e),ie=({children:e,components:{Remove:t},data:n,selectProps:r,removeProps:o,...i})=>(0,R.jsxs)(K_,{color:"default",type:"secondary",className:Xi(lj["select__multi-value-item"],{[lj["select__multi-value-item--big"]]:"small"!==T}),children:[e,b&&(0,R.jsx)(t,{data:n,selectProps:r,innerProps:o})]}),ae=({data:e,innerProps:t})=>(0,R.jsx)(Yg,{icon:{name:"clear",color:"muted"},className:lj["select__multi-value-clear"],visualType:"link",tabIndex:-1,...t,children:`${Q("remove")} ${e.label}`}),se=({innerProps:{ref:e,...t}})=>V?(0,R.jsx)(Yg,{icon:{name:"clear",color:"muted"},visualType:"link",tabIndex:-1,ref:e,...t,children:Q("clear")}):null,le=e=>{const t=Xi(lj.select__group);return(0,R.jsx)(hS.Group,{...e,className:t,children:e.children})},ce=e=>{const t=Xi(lj["select__group-heading"],mh(e.data.backgroundColor||Y||"transparent")),n=e.data.text||q;return(0,R.jsx)(hS.GroupHeading,{...e,className:t,children:(0,R.jsx)(Zg,{...n,children:e.data.label})})},ue=Xi(lj.select,_,{[lj["select--invalid"]]:k||"error"===(null==E?void 0:E.type)},{[lj[`select--${T}`]]:T},{[lj[`select--tags-${p}`]]:p},{[lj["select--searchable"]]:B});return(0,R.jsxs)("div",{"data-name":"select",...J,className:ue,children:[(0,R.jsxs)("div",{className:lj.select__inner,children:[(0,R.jsx)(H_,{id:`${o}-input`,label:s,required:l,hideLabel:j,size:T}),(()=>{const e={ClearIndicator:se,DropdownIndicator:te,IndicatorSeparator:()=>null,MenuPortal:pj,Menu:dj,MenuList:re,Option:oe,Control:cj,Input:uj,MultiValue:ie,MultiValueRemove:ae,Placeholder:ne,Group:le,GroupHeading:ce},t=P?y_:m_;return(0,R.jsx)(t,{id:o,"aria-describedby":X,autoFocus:L,ref:Z,instanceId:o,className:"select__wrapper",name:i,options:n,defaultOptions:r,value:c,defaultValue:u,cacheOptions:K,onChange:ee,onInputChange:g,onBlur:H,inputValue:h,inputId:`${o}-input`,loadOptions:m,isLoading:v,noOptionsMessage:A||(()=>Q("select.no-options")),loadingMessage:M||(()=>Q("select.loading")),classNamePrefix:"select",components:e,isDisabled:S,isSearchable:B,menuIsOpen:z,openMenuOnFocus:y,openMenuOnClick:x,tabSelectsValue:w,onMenuClose:G,onMenuOpen:U,placeholder:C||"",isClearable:$,backspaceRemovesValue:!0,menuShouldScrollIntoView:!0,isMulti:D,hideSelectedOptions:!1,closeMenuOnSelect:F,blurInputOnSelect:N,menuPosition:"fixed",menuPlacement:"auto",inputIsHidden:W,required:l,theme:e=>({...e,colors:{...e.colors,primary:"#005aa3",danger:"#b50000",dangerLight:"#fceeee"}}),styles:{input:e=>({...e,gridTemplateColumns:"0fr"})}})})()]}),E&&(0,R.jsx)(w_,{...E,id:X})]})});fj.displayName="Select";const gj=d.createContext({isLoading:!1,isError:!1,table:null,id:"",hideRowBorder:!1}),hj={pagination__wrapper:"pagination__wrapper-017154aa",pagination__pages:"pagination__pages-29b0da46",pagination__page:"pagination__page-8588d7aa","pagination__page--current":"pagination__page--current-db7cb2cd","pagination__arrow-item":"pagination__arrow-item-e073424c",pagination__arrow:"pagination__arrow-f7602a28"},mj=({type:e})=>{const{table:t}=d.useContext(gj),{getLabel:n}=$g(),{getCanPreviousPage:r,getCanNextPage:o,nextPage:i,previousPage:a,toggleAllRowsExpanded:s}=t,l="next"===e;return(0,R.jsx)("li",{className:hj["pagination__arrow-item"],children:(0,R.jsxs)("button",{type:"button",className:hj.pagination__arrow,disabled:l?!o():!r(),onClick:()=>{l?i():a(),s(!1)},children:[(0,R.jsx)("span",{className:"visually-hidden",children:n(`pagination.${l?"next":"prev"}-page`)}),(0,R.jsx)(Gg,{name:l?"arrow_forward":"arrow_back",size:16})]})})},vj=({item:e})=>{const{table:t}=d.useContext(gj),{getLabel:n}=$g(),r=e.page||0,o=n("pagination.page",r,e.selected),{setPageIndex:i,toggleAllRowsExpanded:a}=t;return(0,R.jsx)("li",{children:(0,R.jsx)("button",{...e,type:"button",className:Xi(hj.pagination__page,{[hj["pagination__page--current"]]:e.selected}),"aria-label":o,onClick:()=>{i(r-1),a(!1)},children:r})})},bj=e=>{const{getLabel:t}=$g(),{table:n,id:r}=d.useContext(gj),o=t("pagination.results",e.totalRows),{setPageSize:i,getState:a,getPageCount:s}=n,{pageIndex:l,pageSize:c}=a().pagination,u=[{value:"5",label:"5"},{value:"10",label:"10"},{value:"20",label:"20"},{value:"50",label:"50"},{value:"100",label:"100"}],p=Math.ceil(e.totalRows/c),{paginationItems:f}=(e=>{const{boundaryCount:t=1,count:n=5,page:r,siblingCount:o=1}=e,i=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},a=i(1,Math.min(t,n)),s=i(Math.max(n-t+1,t+1),n),l=Math.max(Math.min(r-o,n-t-2*o-1),t+2),c=Math.min(Math.max(r+o,t+2*o+2),s.length>0?s[0]-2:n-1),u=["previous",...a,...l>t+2?["ellipsis"]:t+1<n-t?[t+1]:[],...i(l,c),...c<n-t-1?["ellipsis"]:n-t>t?[n-t]:[],...s,"next"],d=e=>{switch(e){case"previous":return r-1;case"next":return r+1;default:return null}};return{paginationItems:u.map(e=>"number"==typeof e?{type:"page",page:e,selected:e===r,"aria-current":e===r?"true":void 0}:{type:e,page:d(e),selected:!1})}})({page:l+1,count:p}),g=u.find(e=>e.value===String(c))??{value:String(c),label:String(c)};return(0,R.jsxs)("div",{className:hj.pagination__wrapper,children:[(0,R.jsxs)(Zg,{color:"muted",modifiers:"small",children:[e.totalRows," ",o]}),s()>1&&(0,R.jsx)("nav",{role:"navigation","aria-label":t("pagination.title"),className:hj.pagination,children:(0,R.jsx)("ul",{className:hj.pagination__pages,children:f.map((e,t)=>((e,t)=>"previous"===e.type||"next"===e.type?(0,R.jsx)(mj,{type:e.type},t):"ellipsis"===e.type?(0,R.jsx)("li",{className:Xi(hj.pagination__page),children:"..."},t):(0,R.jsx)(vj,{item:e},t))(e,t))})}),(0,R.jsx)(fj,{id:`page-size-${r}`,label:t("pagination.page-size"),hideLabel:!0,isSearchable:!1,isClearable:!1,onChange:e=>(e=>{const t=parseInt((null==e?void 0:e.value)||"10");i(t)})(e),value:g,size:"small",options:u})]})},yj=(e,t)=>"string"!=typeof t&&"number"!=typeof t||(null==e?void 0:e.toLowerCase().includes(String(t).toLowerCase())),xj=(e,t)=>e===t,wj=(e,t)=>null==e?void 0:e.some(e=>e===t),Sj=(e,t)=>{const n=t?Zc(t):null,r=null!=e&&e.from?Zc(e.from):null,o=null!=e&&e.to?Zc(e.to):null;return!((r||o)&&!n)&&(r&&!o?r.isSameOrBefore(n,"day"):!r&&o?o.isSameOrAfter(n,"day"):!r||!o||r.isSameOrBefore(n,"day")&&o.isSameOrAfter(n,"day"))},_j=(e,t)=>{if("object"!=typeof t||!Object.keys(t).includes("from")||!Object.keys(t).includes("to"))return console.error("Accessor function should return an object { from: Dayjs | Date | string | null | undefined, to: Dayjs | Date | string | null | undefined }"),!0;const n=t,r=null!=e&&e.from?Zc(e.from):null,o=null!=e&&e.to?Zc(e.to):null,i=null==n?void 0:n.from,a=null==n?void 0:n.to;return r&&o?i&&a?r.isSameOrBefore(i,"day")&&o.isSameOrAfter(i,"day")||o.isSameOrAfter(a,"day")&&r.isSameOrBefore(a,"day"):i?r.isSameOrBefore(i,"day")&&o.isSameOrAfter(i,"day"):!!a&&(r.isSameOrBefore(a,"day")&&o.isSameOrAfter(a,"day")):r&&!o?a?r.isSameOrBefore(a,"day"):!!i&&r.isSameOrBefore(i,"day"):!(!r&&o)||(i?o.isSameOrAfter(i,"day"):!!a&&o.isSameOrAfter(a,"day"))},jj=(e,t,n,r)=>{var o;return r(n,null==(o=null==e?void 0:e.getValue)?void 0:o.call(e,t))},Ej=["xs","sm"],Cj=["md"],kj=["lg","xl","xxl"],Tj=e=>{const{icon:t="spa",className:n,children:r,cardProps:o,isNested:i,rowProps:a,...s}=e,l=(e=>{const t=Wc(),n=null==e?void 0:e.reduce((e,t)=>{switch(t){case"desktop":return[...e,...kj];case"tablet":return[...e,...Cj];case"mobile":return[...e,...Ej];default:return[...e,t]}},[]);return!!t&&n.includes(t)})(["mobile","tablet"]),{padding:c=(i?0:l?1:1.5),background:u=(i?void 0:l?"bg-subtle":"white"),...p}=o??{};return(0,R.jsx)(Bg,{breakInside:"avoid",children:(0,R.jsx)(Yc,{"data-name":"placeholder",...s,className:n,borderless:i,padding:c,background:u,...p,children:(0,R.jsx)(vh,{children:(0,R.jsxs)(oh,{direction:"column",alignItems:"center",gutter:2,...a,children:[t&&(0,R.jsx)(ih,{width:"auto",children:(e=>{const t={size:36,className:Xi("text-primary")},n="string"==typeof e?{...t,name:e}:"object"!=typeof e||d.isValidElement(e)?void 0:{...t,...e,className:Xi(t.className,null==e?void 0:e.className)};return n?(0,R.jsx)(Gg,{...n}):e})(t)}),(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(Zg,{color:"muted",modifiers:"center",element:"div",children:r})})]})})})})},Pj={table:"table-95e2ce2d","th--sortable":"th--sortable-e9907825",sort__button:"sort__button-98f3f530",sort__icon:"sort__icon-1c37fdff",filter__icon:"filter__icon-a6408ada","sort__icon--active":"sort__icon--active-ed6767d3","filter__icon--active":"filter__icon--active-d14db408","sort__icon--asc":"sort__icon--asc-9ed20154","sort__icon--desc":"sort__icon--desc-24ef5b2b","table__row--border-hidden":"table__row--border-hidden-35904e21","table__row--clickable":"table__row--clickable-43b04ec0","table--vertical-align-base-line":"table--vertical-align-base-line-85bbb2f6","table--hidden-bottom-border":"table--hidden-bottom-border-4334c76e","table--footer-bottom-border":"table--footer-bottom-border-d33045fd","table--small":"table--small-1ae7cbce",table__expand:"table__expand-19801588","table__row--group-header":"table__row--group-header-70657dcd","table__row--group-item":"table__row--group-item-d18f21ab","table__row--last-group-item":"table__row--last-group-item-7b3a8250",filter__content:"filter__content-e28d0f6a",filter__button:"filter__button-0c3bdad8",filter__indeterminate:"filter__indeterminate-f266331a","sticky-column":"sticky-column-c4a00eca","sticky-column--left":"sticky-column--left-4e599e4b","sticky-column--right":"sticky-column--right-3dfd1c9b"};var Rj=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Oj}(e)}(e)};var Oj="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ij(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mj(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function Aj(e,t,n){return e.concat(t).map(function(e){return Ij(e,n)})}function Mj(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Aj,n.isMergeableObject=n.isMergeableObject||Rj;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Ij(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Mj(e[o],t[o],n):r[o]=Ij(t[o],n)}),r}(e,t,n):Ij(t,n)}Mj.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Mj(e,n,t)},{})};var Dj=Mj;function Fj(e){return mc(e,5)}var Nj=Array.isArray,Lj=Object.keys,$j=Object.prototype.hasOwnProperty,Vj=typeof Element<"u";function Bj(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Nj(e),a=Nj(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!Bj(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Lj(e);if((r=d.length)!==Lj(t).length)return!1;for(n=r;0!==n--;)if(!$j.call(t,d[n]))return!1;if(Vj&&e instanceof Element&&t instanceof Element)return e===t;for(n=r;0!==n--;)if(!("_owner"===(o=d[n])&&e.$$typeof||Bj(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}var zj=function(e,t){try{return Bj(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}};const Gj=(0,Yi.gB)(zj);function Uj(e){return mc(e,4)}function Hj(e){return us(e)?Ta(e,Pl):ba(e)?[e]:Ql(_l(kl(e)))}function Wj(){return Wj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function qj(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var Yj=(0,d.createContext)(void 0);Yj.displayName="FormikContext",Yj.Provider,Yj.Consumer;var Kj=function(e){return"function"==typeof e},Jj=function(e){return null!==e&&"object"==typeof e},Xj=function(e){return String(Math.floor(Number(e)))===e},Zj=function(e){return"[object String]"===Object.prototype.toString.call(e)},Qj=function(e){return Jj(e)&&Kj(e.then)};function eE(e,t,n,r){void 0===r&&(r=0);for(var o=Hj(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||void 0===e?n:e}function tE(e,t,n){for(var r=Uj(e),o=r,i=0,a=Hj(t);i<a.length-1;i++){var s=a[i],l=eE(e,a.slice(0,i+1));if(l&&(Jj(l)||Array.isArray(l)))o=o[s]=Uj(l);else{var c=a[i+1];o=o[s]=Xj(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function nE(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];Jj(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},nE(s,t,n,r[a])):r[a]=t}return r}var rE={},oE={};function iE(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,l=e.enableReinitialize,c=void 0!==l&&l,u=e.onSubmit,p=qj(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Wj({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:u},p),g=(0,d.useRef)(f.initialValues),h=(0,d.useRef)(f.initialErrors||rE),m=(0,d.useRef)(f.initialTouched||oE),v=(0,d.useRef)(f.initialStatus),b=(0,d.useRef)(!1),y=(0,d.useRef)({});(0,d.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var x=(0,d.useState)(0)[1],w=(0,d.useRef)({values:Fj(f.initialValues),errors:Fj(f.initialErrors)||rE,touched:Fj(f.initialTouched)||oE,status:Fj(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=w.current,_=(0,d.useCallback)(function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return Wj({},e,{values:t.payload});case"SET_TOUCHED":return Wj({},e,{touched:t.payload});case"SET_ERRORS":return Gj(e.errors,t.payload)?e:Wj({},e,{errors:t.payload});case"SET_STATUS":return Wj({},e,{status:t.payload});case"SET_ISSUBMITTING":return Wj({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Wj({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Wj({},e,{values:tE(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Wj({},e,{touched:tE(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Wj({},e,{errors:tE(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Wj({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Wj({},e,{touched:nE(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Wj({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&x(function(e){return e+1})},[]),j=(0,d.useCallback)(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(rE):Qj(o)?o.then(function(e){n(e||rE)},function(e){r(e)}):n(o)})},[f.validate]),E=(0,d.useCallback)(function(e,t){var n=f.validationSchema,r=Kj(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=aE(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(rE)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return tE(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;eE(t,a.path)||(t=tE(t,a.path,a.message))}}return t}(n)):t(n)})})},[f.validationSchema]),C=(0,d.useCallback)(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),k=(0,d.useCallback)(function(e){var t=Object.keys(y.current).filter(function(e){return Kj(y.current[e].validate)}),n=t.length>0?t.map(function(t){return C(t,eE(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=tE(e,t[r],n)),e},{})})},[C]),T=(0,d.useCallback)(function(e){return Promise.all([k(e),f.validationSchema?E(e):{},f.validate?j(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return Dj.all([t,n,r],{arrayMerge:sE})})},[f.validate,f.validationSchema,k,j,E]),P=cE(function(e){return void 0===e&&(e=S.values),_({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,d.useEffect)(function(){a&&!0===b.current&&Gj(g.current,f.initialValues)&&P(g.current)},[a,P]);var R=(0,d.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:f.initialTouched||{},o=e&&e.status?e.status:v.current?v.current:f.initialStatus;g.current=t,h.current=n,m.current=r,v.current=o;var i=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(S.values,K);Qj(a)?a.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,d.useEffect)(function(){!0===b.current&&!Gj(g.current,f.initialValues)&&c&&(g.current=f.initialValues,R(),a&&P(g.current))},[c,f.initialValues,R,a,P]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(h.current,f.initialErrors)&&(h.current=f.initialErrors||rE,_({type:"SET_ERRORS",payload:f.initialErrors||rE}))},[c,f.initialErrors]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(m.current,f.initialTouched)&&(m.current=f.initialTouched||oE,_({type:"SET_TOUCHED",payload:f.initialTouched||oE}))},[c,f.initialTouched]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(v.current,f.initialStatus)&&(v.current=f.initialStatus,_({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var O=cE(function(e){if(y.current[e]&&Kj(y.current[e].validate)){var t=eE(S.values,e),n=y.current[e].validate(t);return Qj(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:eE(t,e)}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),I=(0,d.useCallback)(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),A=(0,d.useCallback)(function(e){delete y.current[e]},[]),M=cE(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?P(S.values):Promise.resolve()}),D=(0,d.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),F=cE(function(e,t){var r=Kj(e)?e(S.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?P(r):Promise.resolve()}),N=(0,d.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),L=cE(function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?P(tE(S.values,e,t)):Promise.resolve()}),$=(0,d.useCallback)(function(e,t){var n,r=t,o=e;if(!Zj(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=(i.outerHTML,i.options),p=i.multiple;r=t||s||l,o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}(eE(S.values,r),u,c):d&&p?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):c}r&&L(r,o)},[L,S.values]),V=cE(function(e){if(Zj(e))return function(t){return $(t,e)};$(e)}),B=cE(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?P(S.values):Promise.resolve()}),z=(0,d.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||r||o);B(i,!0)},[B]),G=cE(function(e){if(Zj(e))return function(t){return z(t,e)};z(e)}),U=(0,d.useCallback)(function(e){Kj(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),H=(0,d.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),W=(0,d.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),q=cE(function(){return _({type:"SUBMIT_ATTEMPT"}),P().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=J()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return b.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e})}),Y=cE(function(e){e&&e.preventDefault&&Kj(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kj(e.stopPropagation)&&e.stopPropagation(),q().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),K={resetForm:R,validateForm:P,validateField:O,setErrors:D,setFieldError:N,setFieldTouched:B,setFieldValue:L,setStatus:H,setSubmitting:W,setTouched:M,setValues:F,setFormikState:U,submitForm:q},J=cE(function(){return u(S.values,K)}),X=cE(function(e){e&&e.preventDefault&&Kj(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kj(e.stopPropagation)&&e.stopPropagation(),R()}),Z=(0,d.useCallback)(function(e){return{value:eE(S.values,e),error:eE(S.errors,e),touched:!!eE(S.touched,e),initialValue:eE(g.current,e),initialTouched:!!eE(m.current,e),initialError:eE(h.current,e)}},[S.errors,S.touched,S.values]),Q=(0,d.useCallback)(function(e){return{setValue:function(t,n){return L(e,t,n)},setTouched:function(t,n){return B(e,t,n)},setError:function(t){return N(e,t)}}},[L,B,N]),ee=(0,d.useCallback)(function(e){var t=Jj(e),n=t?e.name:e,r=eE(S.values,n),o={name:n,value:r,onChange:V,onBlur:G};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[G,V,S.values]),te=(0,d.useMemo)(function(){return!Gj(g.current,S.values)},[g.current,S.values]),ne=(0,d.useMemo)(function(){return typeof s<"u"?te?S.errors&&0===Object.keys(S.errors).length:!1!==s&&Kj(s)?s(f):s:S.errors&&0===Object.keys(S.errors).length},[s,te,S.errors,f]);return Wj({},S,{initialValues:g.current,initialErrors:h.current,initialTouched:m.current,initialStatus:v.current,handleBlur:G,handleChange:V,handleReset:X,handleSubmit:Y,resetForm:R,setErrors:D,setFormikState:U,setFieldTouched:B,setFieldValue:L,setFieldError:N,setStatus:H,setSubmitting:W,setTouched:M,setValues:F,submitForm:q,validateForm:P,validateField:O,isValid:ne,dirty:te,unregisterField:A,registerField:I,getFieldProps:ee,getFieldMeta:Z,getFieldHelpers:Q,validateOnBlur:o,validateOnChange:n,validateOnMount:a})}function aE(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||jc(e)?aE(e):""!==e?e:void 0}):jc(e[r])?t[r]=aE(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function sE(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(typeof r[o]>"u"){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Dj(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Dj(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var lE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function cE(e){var t=(0,d.useRef)(e);return lE(function(){t.current=e}),(0,d.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}var uE=(0,d.forwardRef)(function(e,t){var n=e.action,r=qj(e,["action"]),o=n??"#",i=function(){var e=(0,d.useContext)(Yj);return e}(),a=i.handleReset,s=i.handleSubmit;return(0,d.createElement)("form",Wj({onSubmit:s,ref:t,onReset:a,action:o},r))});function dE(e){this._maxSize=e,this.clear()}uE.displayName="Form",dE.prototype.clear=function(){this._size=0,this._values=Object.create(null)},dE.prototype.get=function(e){return this._values[e]},dE.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var pE=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fE=/^\d+$/,gE=/^\d/,hE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,mE=/^\s*(['"]?)(.*?)(\1)\s*$/,vE=new dE(512),bE=new dE(512),yE=new dE(512),xE={Cache:dE,split:SE,normalizePath:wE,setter:function(e){var t=wE(e);return bE.get(e)||bE.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=wE(e);return yE.get(e)||yE.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(_E(t)||fE.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,a,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(jE(r)&&(r='"'+r+'"'),a=_E(r),i=!a&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}(Array.isArray(e)?e:SE(e),t,n)}};function wE(e){return vE.get(e)||vE.set(e,SE(e).map(function(e){return e.replace(mE,"$2")}))}function SE(e){return e.match(pE)||[""]}function _E(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function jE(e){return!_E(e)&&(function(e){return e.match(gE)&&!e.match(fE)}(e)||function(e){return hE.test(e)}(e))}const EE=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,CE=e=>e.match(EE)||[],kE=(e,t)=>CE(e).join(t).toLowerCase(),TE=e=>CE(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");var PE=TE,RE=e=>kE(e,"_"),OE={exports:{}};function IE(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}OE.exports=function(e){return IE(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},OE.exports.array=IE;var AE=OE.exports;const ME=(0,Yi.gB)(AE),DE=Object.prototype.toString,FE=Error.prototype.toString,NE=RegExp.prototype.toString,LE=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$E=/^Symbol\((.*)\)(.*)$/;function VE(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return LE.call(e).replace($E,"Symbol($1)");const r=DE.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+FE.call(e)+"]":"RegExp"===r?NE.call(e):null}function BE(e,t){let n=VE(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=VE(this[e],t);return null!==r?r:n},2)}function zE(e){return null==e?[]:[].concat(e)}let GE,UE,HE,WE=/\$\{\s*(\w+)\s*\}/g;GE=Symbol.toStringTag;class qE{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[GE]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],zE(e).forEach(e=>{if(YE.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}UE=Symbol.hasInstance,HE=Symbol.toStringTag;class YE extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(WE,(e,n)=>BE(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new qE(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[HE]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,YE)}static[UE](e){return qE[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let KE={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${BE(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${BE(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${BE(n,!0)}\``+o}},JE={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},XE={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ZE={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},QE={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${BE(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${BE(n,!0)}\``}return YE.formatError(KE.notType,e)}};Object.assign(Object.create(null),{mixed:KE,string:JE,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:XE,object:ZE,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:QE});const eC=e=>e&&e.__isYupSchema__;class tC{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new tC(e,(e,t)=>{var n;let a=i(...e)?r:o;return null!=(n=null==a?void 0:a(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!eC(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const nC="$",rC=".";class oC{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===nC,this.isValue=this.key[0]===rC,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?nC:this.isValue?rC:"";this.path=this.key.slice(n.length),this.getter=this.path&&xE.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}oC.prototype.__isYupRef=!0;const iC=e=>null==e;function aC(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},a,s){const{name:l,test:c,params:u,message:d,skipAbsent:p}=e;let{parent:f,context:g,abortEarly:h=i.spec.abortEarly,disableStackTrace:m=i.spec.disableStackTrace}=r;const v={value:t,parent:f,context:g};function b(e={}){const r=sC(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||m},u,e.params),v),a=new YE(YE.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return a.params=r,a}const y=h?a:s;let x={path:n,parent:f,type:l,from:r.from,createError:b,resolve:e=>lC(e,v),options:r,originalValue:o,schema:i};const w=e=>{YE.isError(e)?y(e):e?s(null):y(b())},S=e=>{YE.isError(e)?y(e):a(e)};if(p&&iC(t))return w(!0);let _;try{var j;if(_=c.call(x,t,x),"function"==typeof(null==(j=_)?void 0:j.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(_).then(w,S)}}catch(e){return void S(e)}w(_)}return t.OPTIONS=e,t}function sC(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=lC(e[n],t);return e}function lC(e,t){return oC.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function cC(e,t,n,r=n){let o,i,a;return t?(xE.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class uC extends Set{describe(){const e=[];for(const t of this.values())e.push(oC.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new uC(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function dC(e,t=new Map){if(eC(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=dC(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,dC(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(dC(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=dC(o,t)}return n}function pC(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];"["!==a||o?"]"!==a||o?'"'!==a?"."!==a||r||o?n+=a:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function fC(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:pC(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>fC(e,r))}class gC{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new uC,this._blacklist=new uC,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(KE.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=dC(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!!(this.spec.nullable&&null===e||this.spec.optional&&void 0===e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&iC(o))return o;let i=BE(e),a=BE(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:s,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return u([]);let f={value:i,originalValue:a,path:s,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const a=e??t;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof a;let l=n[a];const c=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[a],key:void 0,[s?"index":"key"]:a,path:s||a.includes(".")?`${r||""}[${s?a:`"${a}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(c)._validate(l,c,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{YE.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new YE(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw YE.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new YE(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(YE.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(YE.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):dC(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=aC({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=aC({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=KE.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=KE.notNull){return this.nullability(!1,e)}required(e=KE.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=KE.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=aC(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>!(e.OPTIONS.name===t.name&&(o||e.OPTIONS.test===r.OPTIONS.test))),n.tests.push(r),n}when(e,t){!Array.isArray(e)&&"string"!=typeof e&&(t=e,e=".");let n=this.clone(),r=zE(e).map(e=>new oC(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new tC(r,t):tC.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=aC({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=KE.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=aC({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=KE.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=aC({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?sC(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof YE)return{issues:fC(e)};throw e}}}}}gC.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])gC.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=cC(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])gC.prototype[e]=gC.prototype.oneOf;for(const e of["not","nope"])gC.prototype[e]=gC.prototype.notOneOf;const hC=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function mC(e){var t,n;const r=hC.exec(e);return r?{year:vC(r[1]),month:vC(r[2],1)-1,day:vC(r[3],1),hour:vC(r[4]),minute:vC(r[5]),second:vC(r[6]),millisecond:r[7]?vC(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:vC(r[10]),minuteOffset:vC(r[11])}:null}function vC(e,t=0){return Number(e)||t}let bC=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yC=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,wC=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),SC=e=>iC(e)||e===e.trim(),_C={}.toString();function jC(){return new EC}class EC extends gC{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===_C?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||KE.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=JE.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=JE.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=JE.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||JE.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=JE.email){return this.matches(bC,{name:"email",message:e,excludeEmptyString:!0})}url(e=JE.url){return this.matches(yC,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=JE.uuid){return this.matches(xC,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(wC,{name:"datetime",message:r||JE.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||JE.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=mC(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||JE.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=mC(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=JE.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:SC})}lowercase(e=JE.lowercase){return this.transform(e=>iC(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>iC(e)||e===e.toLowerCase()})}uppercase(e=JE.uppercase){return this.transform(e=>iC(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>iC(e)||e===e.toUpperCase()})}}jC.prototype=EC.prototype;let CC=new Date("");class kC extends gC{constructor(){super({type:"date",check:e=>(e=>"[object Date]"===Object.prototype.toString.call(e))(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=mC(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?kC.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(oC.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=XE.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=XE.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function TC(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function PC(e){return(t,n)=>TC(e,t)-TC(e,n)}kC.INVALID_DATE=CC;const RC=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function OC(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=OC(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=OC(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(OC)}):"optional"in e?e.optional():e}let IC=e=>"[object Object]"===Object.prototype.toString.call(e);function AC(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const MC=PC([]);function DC(e){return new FC(e)}class FC extends gC{constructor(e){super({type:"object",check:e=>IC(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=MC,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=o[e],a=e in r,u=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:u,context:t.context,parent:s});let i=n instanceof gC?n.spec:void 0,a=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||e in r;continue}o=t.__validating&&a?u:n.cast(u,l),void 0!==o&&(s[e]=o)}else a&&!i&&(s[e]=u);(a!==e in s||s[e]!==u)&&(c=!0)}return c?s:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!a||!IC(o))return void r(e,o);i=i||o;let s=[];for(let e of this._nodes){let n=this.fields[e];!n||oC.isRef(n)||s.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=xE.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),oC.isRef(n)&&n.isSibling?i(n.path,t):eC(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return ME.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=PC(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return OC(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=xE.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...xE.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=xE.getter(xE.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(RC)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||ZE.exact,test(e){if(null==e)return!0;const t=AC(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=ZE.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=AC(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=ZE.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(PE)}snakeCase(){return this.transformKeys(RE)}constantCase(){return this.transformKeys(e=>RE(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}DC.prototype=FC.prototype;const NC=d.createContext({column:null,rows:null,values:null,open:!1,setOpen:null}),LC={"tedi-textfield":"tedi-textfield-376bbeed","tedi-textfield__inner":"tedi-textfield__inner-98791cdd","tedi-textfield__input":"tedi-textfield__input-ade0f9a6","tedi-textfield--invalid":"tedi-textfield--invalid-290ce18d","tedi-textfield--valid":"tedi-textfield--valid-273af8c0","tedi-textfield--clearable":"tedi-textfield--clearable-f47f0508","tedi-textfield--with-icon":"tedi-textfield--with-icon-db2c6f01","textfield--with-icon":"textfield--with-icon-d23a33f0","tedi-textfield__input--hidden-arrows":"tedi-textfield__input--hidden-arrows-609217f7","tedi-textfield__right-area":"tedi-textfield__right-area-6ac81c6b","tedi-textfield--small":"tedi-textfield--small-4ffcc517","tedi-textfield--large":"tedi-textfield--large-0e4d788c","tedi-textfield__separator":"tedi-textfield__separator-63d1ba14","tedi-textfield__icon-wrapper":"tedi-textfield__icon-wrapper-4935814e","tedi-textfield--inline":"tedi-textfield--inline-7ed55c4e","tedi-textfield__icon":"tedi-textfield__icon-05d4adc8","tedi-textfield__feedback-wrapper":"tedi-textfield__feedback-wrapper-9d47f9c6"},$C=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{id:r,label:o,className:i,inputClassName:a,disabled:s,required:l,hideLabel:c,invalid:u,readOnly:p,icon:f,onIconClick:g,size:h,placeholder:m,isArrowsHidden:v=!0,isClearable:b,onClear:y,onChange:x,onChangeEvent:w,onKeyUp:S,onKeyDown:_,onKeyPress:j,defaultValue:E,value:C,onFocus:k,onBlur:T,onClick:P,helper:O,input:I,name:A,isTextArea:M,...D}=n(e)||{},{getLabel:F}=$g(),N=d.useRef(null),L=d.useRef(null),[$,V]=d.useState(C??E??""),B=d.useMemo(()=>{var e;if(O)return Array.isArray(O)?(null==(e=O[0])?void 0:e.id)??`${r}-helper`:O.id??`${r}-helper`},[O,r]),z=d.useMemo(()=>C??$,[C,$]),G=b&&z;d.useImperativeHandle(t,()=>({get input(){return N.current},get inner(){return L.current}}));const U=d.useMemo(()=>Array.isArray(O)?u||O.some(e=>"error"===e.type):u||"error"===(null==O?void 0:O.type),[u,O]),H=d.useMemo(()=>!(!O||Array.isArray(O)&&0===O.length)&&(Array.isArray(O)?!u&&O.every(e=>"valid"===e.type):!u&&"valid"===O.type),[u,O]),W="large"===h?"default":h,q=d.useCallback(e=>{const t={size:"large"===h?24:"small"===h?16:18,className:Xi(LC["tedi-textfield__icon"])},n="string"==typeof e?{...t,name:e}:{...t,...e,className:Xi(t.className,null==e?void 0:e.className)},r=(0,R.jsx)(wy,{...n});return(0,R.jsx)(g?"button":"div",{className:LC["tedi-textfield__icon-wrapper"],type:g?"button":void 0,onClick:s?void 0:g,disabled:s,tabIndex:s?-1:0,children:r})},[s,g,h]),Y=d.useCallback(e=>{const t=e.currentTarget.value;V(t),null==x||x(t),null==w||w(e)},[x,w]),K=d.useCallback(()=>{V(""),null==x||x(""),null==y||y()},[x,y]),J=d.useCallback((e,t)=>!!M,[M]),X=d.useCallback((e,t)=>!M,[M]),Z=d.useMemo(()=>{const t={...I,id:r,name:A,...c?{"aria-label":o}:{},"aria-describedby":B,"aria-disabled":s||void 0,className:Xi(LC["tedi-textfield__input"],a,{[LC["tedi-textfield__input--hidden-arrows"]]:v}),disabled:s,required:l,"aria-invalid":U||void 0,placeholder:m,readOnly:p,onChange:Y,value:z,onBlur:T,onFocus:k};return J(e,N)?(0,R.jsx)("textarea",{...t,ref:N}):X(e,N)?(0,R.jsx)("input",{...t,ref:N}):null},[I,r,A,c,o,B,s,a,v,l,U,m,p,Y,z,T,k,J,e,X]),Q=d.useMemo(()=>{const e={size:"large"===h?"large":"medium",onClick:s?()=>{}:K,disabled:s,"aria-disabled":s||void 0,title:`${F("clear")}`,className:Xi(LC["tedi-textfield__clear-button"])};return(0,R.jsx)(_y,{...e})},[K,s,F,h]),ee=d.useMemo(()=>(0,R.jsxs)("div",{className:LC["tedi-textfield__right-area"],children:[G&&Q,G&&f?(0,R.jsx)(Fy,{color:"primary",axis:"vertical",className:LC["tedi-textfield__separator"]}):null,f&&q(f)]}),[q,f,Q,G]),te=Xi(LC["tedi-textfield"],{[LC[`tedi-textfield--${h}`]]:h},{[LC["tedi-textfield--with-icon"]]:f},{[LC["tedi-textfield--invalid"]]:U},{[LC["tedi-textfield--valid"]]:H},{[LC["tedi-textfield--clearable"]]:G},i);return(0,R.jsxs)("div",{"data-name":"textfield",...D,className:te,children:[(0,R.jsx)(H_,{id:r,label:o,required:l,hideLabel:c,size:W}),(0,R.jsxs)("div",{className:LC["tedi-textfield__inner"],onKeyDown:_,onKeyUp:S,onClick:P,tabIndex:s?-1:0,ref:L,children:[Z,b||f?ee:null]}),!O||Array.isArray(O)&&0===O.length?null:(0,R.jsx)("div",{className:LC["tedi-textfield__feedback-wrapper"],children:Array.isArray(O)?O.map((e,t)=>(0,R.jsx)(w_,{...e,id:`${B}-${t}`},t)):(0,R.jsx)(w_,{...O,id:B})})]})});$C.displayName="TextField";const VC=e=>{var t,n,r,o,i;const{muiTextfieldProps:a,textfieldProps:s,inputFormat:l,onChangeHandler:c,type:u="date"}=e,{ref:p,inputRef:f,inputProps:g,InputProps:h,value:m,size:v,onChange:b,error:y,disabled:x,...w}=a,{readOnly:S,id:_,input:j,...E}=s,C=d.useRef({inner:null,input:null});return d.useEffect(()=>{C.current.input&&(null==f||f(C.current.input))},[f]),(0,R.jsx)($C,{id:_,...w,disabled:x,readOnly:S,...E,value:null==g?void 0:g.value,onChangeEvent:e=>{var t;null==(t=null==g?void 0:g.onChange)||t.call(g,e)},placeholder:(null==s?void 0:s.placeholder)||(null==g?void 0:g.placeholder),defaultValue:void 0,ref:C,input:{...g,...j},invalid:y,icon:{name:"date"===u?"today":"schedule",label:null==(i=null==(o=null==(r=null==(n=null==(t=null==a?void 0:a.InputProps)?void 0:t.endAdornment)?void 0:n.props)?void 0:r.children)?void 0:o.props)?void 0:i["aria-label"]},onBlur:e=>{var t,n,r;null==(t=E.onBlur)||t.call(E,e),null==(n=w.onBlur)||n.call(w,e),Zc(e.currentTarget.value,l,!0).isValid()||(c(null),null==(r=null==g?void 0:g.onChange)||r.call(g,{...e,target:{...e.target,value:""}}))}})},BC=typeof window<"u"?d.useLayoutEffect:d.useEffect;function zC(e,t,n,r,o){const[i,a]=d.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return BC(()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&a(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}},[e,n]),i}const GC=d.useSyncExternalStore;function UC(e,t,n,r,o){const i=d.useCallback(()=>t,[t]),a=d.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i},[i,e,r,o,n]),[s,l]=d.useMemo(()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[i,n,e]);return GC(l,s,a)}function HC(e,t={}){const n=Pg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Xp({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==GC?UC:zC)(l,o,i,a,s)}const WC=()=>{const e=d.useContext(Dg);if(null===e)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},qC=()=>WC().utils,YC=()=>WC().defaultDates,KC=()=>WC().localeText,JC=()=>{const e=qC();return d.useRef(e.date()).current},XC=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,c=e;for(a.isBefore(e,o)&&(l=a.date(o),c=null),a.isAfter(e,r)&&(c&&(c=a.date(r)),l=null);l||c;){if(l&&a.isAfter(l,r)&&(l=null),c&&a.isBefore(c,o)&&(c=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(c){if(!i(c))return c;c=a.addDays(c,-1)}}return null},ZC=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},QC=e=>1===e.length&&"year"===e[0],ek=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function tk(e,t){var n;const r=qC(),o=YC(),i=Ig({props:e,name:t}),a=null!=(n=i.views)?n:["year","day"];return du({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>QC(e)?{inputFormat:t.formats.year}:ek(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,r),i,{views:a,minDate:ZC(r,i.minDate,o.minDate),maxDate:ZC(r,i.maxDate,o.maxDate)})}const nk={emptyValue:null,getTodayValue:e=>e.date(),parseInput:(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function rk(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rk(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ok(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rk(e))&&(r&&(r+=" "),r+=t);return r}function ik(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ik(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ak(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ik(e))&&(r&&(r+=" "),r+=t);return r}var sk={};const lk=(0,Yi.qT)(e);var ck,uk={exports:{}};var dk=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,pk=ag(function(e){return dk.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),fk=pk,gk=function(e){return"theme"!==e},hk=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?fk:gk},mk=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},vk=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rg(t,n,r),bg(function(){return og(t,n,r)}),null},bk=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=mk(t,n,i),l=s||hk(a),c=!l("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var g=u.length,h=1;h<g;h++)p.push(u[h],f[h])}var m=Sg(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var g in f={},e)f[g]=e[g];f.theme=d.useContext(_g)}"string"==typeof e.className?i=ng(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=mg(p.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?hk(r):l,v={};for(var b in e)c&&"as"===b||m(b)&&(v[b]=e[b]);return v.className=i,n&&(v.ref=n),d.createElement(d.Fragment,null,d.createElement(vk,{cache:t,serialized:h,isStringTag:"string"==typeof r}),d.createElement(r,v))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=p,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,du({},n,r,{shouldForwardProp:mk(m,r,!0)})).apply(void 0,p)},m}}.bind(null);["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){bk[e]=bk(e)});const yk=new Map;function xk(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=d.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&yk.has(e))return yk.get(e);const r=function(e,t){const n=tg({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return yk.set(e,r),r},[t,n]);return t||n?(0,R.jsx)(wg,{value:o,children:r}):r}function wk(e){const{styles:t,defaultTheme:n={}}=e;return(0,R.jsx)(dw,{styles:"function"==typeof t?e=>t(function(e){return null==e||0===Object.keys(e).length}(e)?n:e):t})}function Sk(e,t){return bk(e,t)}const _k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},jk=[];function Ek(e){return jk[0]=e,mg(jk)}const Ck=(0,Yi.qT)(r),kk=(0,Yi.qT)(o),Tk=(0,Yi.qT)(i);var Pk,Rk={exports:{}},Ok={};Rk.exports=function(){if(Pk)return Ok;Pk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(f){if("object"==typeof f&&null!==f){var g=f.$$typeof;switch(g){case e:switch(f=f.type){case n:case o:case r:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return g}}case t:return g}}}return Ok.ContextConsumer=i,Ok.ContextProvider=a,Ok.Element=e,Ok.ForwardRef=s,Ok.Fragment=n,Ok.Lazy=d,Ok.Memo=u,Ok.Portal=t,Ok.Profiler=o,Ok.StrictMode=r,Ok.Suspense=l,Ok.SuspenseList=c,Ok.isContextConsumer=function(e){return g(e)===i},Ok.isContextProvider=function(e){return g(e)===a},Ok.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ok.isForwardRef=function(e){return g(e)===s},Ok.isFragment=function(e){return g(e)===n},Ok.isLazy=function(e){return g(e)===d},Ok.isMemo=function(e){return g(e)===u},Ok.isPortal=function(e){return g(e)===t},Ok.isProfiler=function(e){return g(e)===o},Ok.isStrictMode=function(e){return g(e)===r},Ok.isSuspense=function(e){return g(e)===l},Ok.isSuspenseList=function(e){return g(e)===c},Ok.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Ok.typeOf=g,Ok}();var Ik=Rk.exports;const Ak=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Mk(e){const t=`${e}`.match(Ak);return t&&t[1]||""}function Dk(e,t=""){return e.displayName||e.name||Mk(e)||t}function Fk(e,t,n){const r=Dk(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function Nk(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Dk(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ik.ForwardRef:return Fk(e,e.render,"ForwardRef");case Ik.Memo:return Fk(e,e.type,"memo");default:return}}}const Lk=(0,Yi.qT)(l),$k=(0,Yi.qT)(c),Vk=["sx"],Bk=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Bp;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function zk(e){const{sx:t}=e,n=pu(e,Vk),{systemProps:r,otherProps:o}=Bk(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return yd(n)?du({},r,n):r}:du({},r,t),du({},o,{sx:i})}const Gk=(0,Yi.qT)(u);var Uk=mu;Object.defineProperty(sk,"__esModule",{value:!0});var Hk=sk.default=function(e={}){const{themeId:t,defaultTheme:n=oT,rootShouldForwardProp:r=nT,slotShouldForwardProp:o=nT}=e,i=e=>(0,Xk.default)((0,Wk.default)({},e,{theme:aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Yk.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=sT(iT(l))}=a,p=(0,qk.default)(a,eT),f=s&&s.startsWith("Mui")||l?"components":"custom",g=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=nT;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,Yk.default)(e,(0,Wk.default)({shouldForwardProp:m,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Kk.isPlainObject)(e)?r=>{const o=aT({theme:r.theme,defaultTheme:n,themeId:t});return lT(e,(0,Wk.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&d&&l.push(e=>{const r=aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=lT(n,(0,Wk.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!g&&l.push(e=>{var r;const o=aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}));return lT({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Wk.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=v(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(y.withConfig=v.withConfig),y}};sk.shouldForwardProp=nT,sk.systemDefaultTheme=void 0;var Wk=Uk(lk),qk=Uk((ck||(ck=1,function(e){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports}(uk)),uk.exports)),Yk=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=tT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ck),Kk=kk,Jk=(Uk(Tk),Uk(Lk),Uk($k)),Xk=Uk(Gk);const Zk=["ownerState"],Qk=["variants"],eT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(tT=function(e){return e?n:t})(e)}function nT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function rT(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const oT=sk.systemDefaultTheme=(0,Jk.default)(),iT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function aT({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function sT(e){return e?(t,n)=>n[e]:null}function lT(e,t,n){let{ownerState:r}=t,o=(0,qk.default)(t,Zk);const i="function"==typeof e?e((0,Wk.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>lT(e,(0,Wk.default)({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,qk.default)(i,Qk);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Wk.default)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Wk.default)({ownerState:r},o,r)):e.style;t.push(n?rT((0,Yk.internal_serializeStyles)(i),n):i)}}),t}return n?rT((0,Yk.internal_serializeStyles)(i),n):i}const cT=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,uT=Hk({themeId:Kp,defaultTheme:Yp,rootShouldForwardProp:cT}),dT=e=>e,pT=(()=>{let e=dT;return{configure(t){e=t},generate:t=>e(t),reset(){e=dT}}})(),fT={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 gT(e,t,n="Mui"){const r=fT[t];return r?`${n}-${r}`:`${pT.generate(e)}-${t}`}function hT(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=gT(e,t,n)}),r}function mT(e){return gT("MuiSvgIcon",e)}hT("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vT=d.createContext(void 0);function bT({props:e,name:t}){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?Jp(o.defaultProps,r):o.styleOverrides||o.variants?r:Jp(o,r)}({props:e,name:t,theme:{components:d.useContext(vT)}})}function yT(e){return bT(e)}function xT(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}const wT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ST=uT("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Jd(n.color)}`],t[`fontSize${Jd(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(g=(e.vars||e).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[t.color]}}),_T=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:p="0 0 24 24"}=n,f=pu(n,wT),g=d.isValidElement(r)&&"svg"===r.type,h=du({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),m={};c||(m.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return xT({root:["root","inherit"!==t&&`color${Jd(t)}`,`fontSize${Jd(n)}`]},mT,r)})(h);return(0,R.jsxs)(ST,du({as:a,className:ak(v.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,g&&r.props,{ownerState:h,children:[g?r.props.children:r,u?(0,R.jsx)("title",{children:u}):null]}))});function jT(e,t){function n(n,r){return(0,R.jsx)(_T,du({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_T.muiName,d.memo(d.forwardRef(n))}_T.muiName="SvgIcon";const ET=jT((0,R.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),CT=jT((0,R.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),kT=jT((0,R.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),TT=jT((0,R.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),PT=jT((0,R.jsxs)(d.Fragment,{children:[(0,R.jsx)("path",{d:"M11.99 2C6.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"}),(0,R.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),RT=(jT((0,R.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),jT((0,R.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));jT((0,R.jsxs)(d.Fragment,{children:[(0,R.jsx)("path",{d:"M11.99 2C6.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"}),(0,R.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function OT(e){return gT("MuiPickersToolbar",e)}const IT=hT("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]);function AT(e){return gT("MuiTypography",e)}hT("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MT=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],DT=uT("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${Jd(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>du({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),FT={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LT=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiTypography"}),r=(e=>NT[e]||e)(n.color),o=zk(du({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=FT}=o,f=pu(o,MT),g=du({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||FT[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xT({root:["root",i,"inherit"!==e.align&&`align${Jd(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},AT,a)})(g);return(0,R.jsx)(DT,du({as:h,ref:t,ownerState:g,className:ak(m.root,a)},f))});function $T(){const e=Og(Yp);return e[Kp]||e}const VT=d.createContext();function BT(e){return gT("MuiGrid",e)}const zT=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],GT=hT("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...zT.map(e=>`grid-xs-${e}`),...zT.map(e=>`grid-sm-${e}`),...zT.map(e=>`grid-md-${e}`),...zT.map(e=>`grid-lg-${e}`),...zT.map(e=>`grid-xl-${e}`)]),UT=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function HT(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function WT({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(e=>{""===n&&0!==t[e]&&(n=e)});const r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}const qT=uT("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])}),r}(a,c,t));const d=[];return c.forEach(e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>du({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),function({theme:e,ownerState:t}){return qd({theme:e},Kd({values:t.direction,breakpoints:e.breakpoints.values}),e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${GT.item}`]={maxWidth:"none"}),t})},function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Kd({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=WT({breakpoints:e.breakpoints.values,values:t})),o=qd({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${HT(i)}`,[`& > .${GT.item}`]:{paddingTop:HT(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${GT.item}`]:{paddingTop:0}}})}return o},function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Kd({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=WT({breakpoints:e.breakpoints.values,values:t})),o=qd({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${HT(i)})`,marginLeft:`-${HT(i)}`,[`& > .${GT.item}`]:{paddingLeft:HT(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${GT.item}`]:{paddingLeft:0}}})}return o},function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Kd({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${HT(n)})`;c={flexBasis:e,maxWidth:e}}}i=du({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})});const YT=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}(i,l));const u=[];l.forEach(t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)});return xT({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},BT,t)},KT=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiGrid"}),{breakpoints:r}=$T(),o=zk(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:p=!1,rowSpacing:f,spacing:g=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,v=pu(o,UT),b=f||g,y=s||g,x=d.useContext(VT),w=c?a||12:x,S={},_=du({},v);r.keys.forEach(e=>{null!=v[e]&&(S[e]=v[e],delete _[e])});const j=du({},o,{columns:w,container:c,direction:u,item:p,rowSpacing:b,columnSpacing:y,wrap:h,zeroMinWidth:m,spacing:g},S,{breakpoints:r.keys}),E=YT(j);return(0,R.jsx)(VT.Provider,{value:w,children:(0,R.jsx)(qT,du({ownerState:j,className:ak(E.root,i),as:l,ref:t},_))})});function JT(e){return gT("MuiIconButton",e)}const XT=hT("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const ZT=hT("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),QT={};const eP=[];class tP{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tP}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function nP(){const e=function(e,t){const n=d.useRef(QT);return n.current===QT&&(n.current=e(t)),n}(tP.create).current;return function(e){d.useEffect(e,eP)}(e.disposeEffect),e}function rP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ow(e,t)}const oP=d.createContext(null);function iP(e,t){var n=Object.create(null);return e&&d.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,d.isValidElement)(e)?t(e):e}(e)}),n}function aP(e,t,n){return null!=n[t]?n[t]:e.props[t]}function sP(e,t){return iP(e.children,function(n){return(0,d.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:aP(n,"appear",e),enter:aP(n,"enter",e),exit:aP(n,"exit",e)})})}function lP(e,t,n){var r=iP(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,d.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,d.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,d.isValidElement)(c)&&(o[i]=(0,d.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:aP(a,"exit",e),enter:aP(a,"enter",e)})):o[i]=(0,d.cloneElement)(a,{in:!1}):o[i]=(0,d.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:aP(a,"exit",e),enter:aP(a,"enter",e)})}}),o}var cP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uP=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(sw(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rP(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?sP(e,r):lP(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=iP(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=du({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=pu(e,["component","childFactory"]),o=this.state.contextValue,i=cP(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?d.createElement(oP.Provider,{value:o},i):d.createElement(oP.Provider,{value:o},d.createElement(t,r,i))},t}(d.Component);uP.propTypes={},uP.defaultProps={component:"div",childFactory:function(e){return e}};const dP=["center","classes","className"];let pP,fP,gP,hP,mP=e=>e;const vP=fw(pP||(pP=mP`
|
|
2
|
+
(()=>{var e,t,n,r,o={941(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function r(e,t,n,r){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return t?(o[n][2]?o[n][2]:o[n][1]).replace("%d",e):(r?o[n][0]:o[n][1]).replace("%d",e)}var o={name:"et",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("_"),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("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:"%d päeva",M:r,MM:r,y:r,yy:r},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return n.default.locale(o,null,!0),o}(n(353))},557(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),o="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),i="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),a="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),s=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function l(e,t,n){var r,o;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,o={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",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 c=function(e,t){return s.test(t)?r[e.month()]:o[e.month()]};c.s=o,c.f=r;var u=function(e,t){return s.test(t)?i[e.month()]:a[e.month()]};u.s=a,u.f=i;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:c,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:l,mm:l,h:"час",hh:l,d:"день",dd:l,M:"месяц",MM:l,y:"год",yy:l},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return n.default.locale(d,null,!0),d}(n(353))},206(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=p[c],d=u&&u[0],f=u&&u[1];i[l]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,l=o.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,g=o.week,h=new Date,m=s||(i||a?1:h.getDate()),v=i||h.getFullYear(),b=0;i&&!a||(b=a>0?a-1:h.getMonth());var y,x=l||0,w=c||0,S=u||0,_=d||0;return p?new Date(Date.UTC(v,b,m,x,w,S,_+60*p.offset*1e3)):n?new Date(Date.UTC(v,b,m,x,w,S,_)):(y=new Date(v,b,m,x,w,S,_),g&&(y=r(y).week(g).toDate()),y)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var p=s.length,g=1;g<=p;g+=1){i[1]=s[g-1];var h=n.apply(this,i);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}g===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},535(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],l=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},784(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},411(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},981(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return i.call(this,r)}}}()},512(e){e.exports=function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}return function(t,n,r){r.updateLocale=function(t,n){var o=r.Ls[t];if(o)return(n?Object.keys(n):[]).forEach(function(t){o[t]&&n[t]&&"object"==typeof o[t]&&"object"==typeof n[t]&&!Array.isArray(o[t])?o[t]=e({},o[t],n[t]):o[t]=n[t]}),o}}}()},526(e,t){"use strict";t.bg=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.iI=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(c(e,s,s+a>l?l:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(l(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},841(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,':export{colorGreyDark:#34304c;colorGrey:#5d6071;colorBlue:#0083ba}#doc2 .table-responsive.table-adaptive.table-collapsable .table-head .table-row>div,#doc2 .table-responsive.table-adaptive.table-collapsable .table-body .table-row>div{padding:.45rem;vertical-align:middle}#doc2 .table-responsive.table-adaptive.table-collapsable .custom-control.custom-checkbox{margin-bottom:0}@media screen and (max-width: 599px){#doc2 .table-responsive.table-adaptive.table-collapsable{background-attachment:scroll,scroll;background-color:#fff;background-image:linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)),linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));background-position:left center,right center;background-repeat:no-repeat;background-size:10px 100%,10px 100%;margin-left:0;margin-right:0;padding-left:0;border-radius:.25rem;display:block;overflow-x:auto;width:100%}#doc2 .table-responsive.table-adaptive.table-collapsable .table{background-attachment:local,local;background-image:linear-gradient(to right, #fff, #fff),linear-gradient(to right, #fff, #fff);background-position:left center,right center;background-repeat:no-repeat;background-size:20px 100%,20px 100%;border-collapse:separate;border-spacing:0;position:relative;display:table;margin-top:0;padding:0;width:100%;max-width:100%;margin-bottom:1rem;background-color:transparent}#doc2 .table-responsive.table-adaptive.table-collapsable .table-head{display:table-header-group}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row{display:table-row;padding-left:0;padding-right:0}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row::after{content:none}#doc2 .table-responsive.table-adaptive.table-collapsable .table-row>div{border-top:1px dotted #9d9fb4;display:table-cell;padding:.75rem}#doc2 .table-responsive.table-adaptive.table-collapsable .table-body{display:table-row-group}}#doc2 .alert .lead:last-child{margin-bottom:0}#doc2 #doc2--sign-popup .nav-vertical{border:0}@media(max-width: 599px){#doc2 #doc2--sign-popup .nav-vertical{display:none}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical{display:block}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical-wrapper{display:flex}}@media(min-width: 600px){#doc2 #doc2--sign-popup .nav-vertical-wrapper .form-header{flex:0 1 auto;margin-bottom:0}}#doc2 #doc2--sign-popup .nav-vertical-wrapper .tab-content{background-color:#f2f3f3;border:2px solid #dbdfe2;border-radius:.25rem;flex:1 1 auto;padding:20px}#doc2 #doc2--sign-popup .nav-vertical .nav-item{display:block;text-align:right;white-space:normal;width:auto}#doc2 #doc2--sign-popup .nav-vertical .nav-link{border:0;color:#5d6071;padding-right:2rem}#doc2 #doc2--sign-popup .nav-vertical .nav-link:hover,#doc2 #doc2--sign-popup .nav-vertical .nav-link:focus,#doc2 #doc2--sign-popup .nav-vertical .nav-link:active{color:#0083ba}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active{background:transparent;color:#0083ba}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::before,#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::after{border-color:transparent;border-style:solid;content:"";position:absolute;right:-2px;top:50%}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active.nav-small::before,#doc2 #doc2--sign-popup .nav-vertical .nav-link.active.nav-small::after{right:-8px}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::before{border-right-color:#dbdfe2;border-width:13px;margin-top:-13px}#doc2 #doc2--sign-popup .nav-vertical .nav-link.active::after{border-right-color:#f2f3f3;border-width:10px;margin-top:-10px}#doc2 #doc2--sign-popup .nav-vertical .nav-divider{border-top:1px dashed #5d6071;margin:.5rem 2rem .5rem 0}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows{border-bottom:0;display:flex;flex-wrap:nowrap;justify-content:space-around;margin-bottom:0;padding-left:0}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-item{flex:0 0 33%;justify-content:flex-end;margin:0;white-space:normal;width:auto}@media(min-width: 900px){#doc2 #doc2--sign-popup body:not(.help-center-open):not(.temp) .nav-tabs.nav-arrows .nav-item{flex:0 0 33%}}@media(min-width: 1200px){#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-item{flex:0 0 33%}}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link{background-color:transparent;border:transparent;color:#5d6071;padding:.8rem 0;text-align:center}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link.active,#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link:hover,#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link:focus{color:#0083ba}#doc2 #doc2--sign-popup .nav-tabs.nav-arrows .nav-link.active::after{border:solid transparent;border-bottom-color:#fff;border-width:10px;bottom:0;content:"";height:0;left:50%;margin-left:-10px;pointer-events:none;position:absolute;width:0}.doc2--icon-button{align-items:center;background:transparent;border:none;display:flex;cursor:pointer;padding:2px}.doc2--icon-button-override{align-items:center !important;display:flex !important;padding:2px}.doc2--icon-button-override svg{height:19px;width:19px}#doc2 .doc2--icon-button-container{align-items:center;display:flex}#doc2 .doc2--icon-button-container-inline{align-items:center;display:inline-flex}.doc2--project-info-name-edit{width:380px}.doc2--project-info-name-edit .doc2--project-info-name-edit--footer{align-items:center;display:flex;justify-content:space-between}#doc2 .doc2--input-default-size{width:340px}#doc2 .doc2--table-flex-content{display:flex}#doc2 #doc2--table-footer{display:flex;align-items:center;flex-wrap:wrap;width:100%;border-top:solid 2px #5d6071;padding-top:4px}#doc2 #doc2--table-footer .push{margin-right:auto}@media screen and (max-width: 655px){#doc2 #doc2--table-footer{align-items:flex-end;flex-direction:column}#doc2 #doc2--table-footer .push{margin-right:0}}#doc2 .doc2--popup-modal{align-items:center;bottom:0;left:0;top:0;right:0;display:flex;justify-content:center;position:fixed;z-index:204}#doc2 .doc2--popup-modal .doc2--popup-modal--modal{background-color:#fff;border:solid 1px #9d9fb4;border-radius:3px;box-shadow:6px 6px 6px rgba(0,0,0,.25);display:block;max-height:90vh;width:70vw;min-height:320px;min-width:700px;overflow:auto;padding:11px;position:relative}#doc2 .doc2--popup-modal .doc2--popup-modal--modal.compound{min-width:440px}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .doc2--popup-modal--content{width:100%}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .popover-file-upload{margin-left:0;min-height:240px;width:calc(100% - 3px)}#doc2 .doc2--popup-modal .doc2--popup-modal--modal .popover-file-upload form{margin-left:0;width:100%}@media screen and (max-width: 655px){#doc2 .doc2--popup-modal .doc2--popup-modal--modal{min-height:unset;min-width:unset;height:90%;width:90%}}#doc2 .doc2--popup-modal .doc2--popup-modal--footer{bottom:11px;box-sizing:border-box;display:flex;justify-content:space-between;padding-top:4px}#doc2 .doc2--popup-modal .doc2--popup-modal--footer .push-right{margin-left:auto}#doc2 .doc2--row-header{align-items:center;display:flex}#doc2 .doc2--row-header p{margin-bottom:0}#doc2 .doc2--row-header .doc2--row-header--arrows{margin-right:6px}#doc2 .doc2--paginated-table-item{margin-left:24px}#doc2 .doc2--paginated-table-item--limited-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:500px;max-width:max(25vw, 500px)}#doc2 #doc2--project-type-filter button{display:inline-block}#doc2 #doc2--project-creation-step-1{align-items:stretch;display:flex;justify-content:stretch}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-step-1-intro-text{text-align:left;margin-bottom:6px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-step-1-radio-spaceing{margin-top:6px;margin-bottom:6px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector{display:flex;flex-direction:column;text-align:center;width:100%}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-type-selector-reference-link{text-decoration:underline;cursor:pointer}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-type-selector-info-text{text-align:left;margin-top:12px;margin-bottom:12px;padding-left:35px}#doc2 #doc2--project-creation-step-1 .doc2--project-creation-type-selector .doc2--project-creation-form-footer{display:flex;flex-direction:row;justify-content:space-between}#doc2 .doc2--separator{background-color:#dbdfe2;margin:0 11px;width:1px}#doc2 .doc2--project-creation-step--footer{display:flex;justify-content:space-between}#doc2 #doc2--project-creation-step-3,#doc2 #doc2--project-creation-legacy{min-height:200px;position:relative}#doc2 #doc2--project-creation-step-3 .popover-file-upload,#doc2 #doc2--project-creation-legacy .popover-file-upload{margin-left:0;width:calc(100% - 3px)}#doc2 #doc2--project-creation-step-3 .popover-file-upload form,#doc2 #doc2--project-creation-legacy .popover-file-upload form{margin-left:0;width:100%}#doc2 #doc2--project-creation-step-3.doc2--project-creation--files-added button[type=submit],#doc2 #doc2--project-creation-legacy.doc2--project-creation--files-added button[type=submit]{margin-top:2rem}#doc2 #doc2--project-creation-step-3 .doc2--project-creation-step--footer.doc2--position-absolute,#doc2 #doc2--project-creation-legacy .doc2--project-creation-step--footer.doc2--position-absolute{bottom:3px;position:absolute}#doc2 #doc2--project-creation-legacy.doc2--project-creation--files-added button[type=submit]{margin-top:4rem}#doc2--filters{display:grid}.sign-popup--file-actions{align-items:center;display:flex;height:100%;justify-content:end}.doc2--simple-table .doc2--simple-table--header,div[id^=doc2--popup-modal-] .doc2--simple-table .doc2--simple-table--header{border-bottom:solid 1px #5d6071;display:grid;grid-template-columns:auto auto;padding:.75rem}.doc2--simple-table .doc2--simple-table--content .doc2--simple-table--row,div[id^=doc2--popup-modal-] .doc2--simple-table .doc2--simple-table--content .doc2--simple-table--row{align-items:center;border-bottom:dotted 1px #5d6071;display:grid;grid-template-columns:auto auto;padding:.75rem !important}.doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--header,div[id^=doc2--popup-modal-] .doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--header{grid-template-columns:50% 50%}.doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--content .doc2--simple-table--row,div[id^=doc2--popup-modal-] .doc2--simple-table.doc2--two-columns-layout .doc2--simple-table--content .doc2--simple-table--row{grid-template-columns:50% 50%}.doc2--no-padding{padding:0}.link-gray.doc2--darker-color{color:#34304c}.doc2--paginated-table-more-popup{min-width:200px}#doc2 .doc2--edit-file-error{align-items:center;display:flex}#doc2 #doc2--sign-popup{padding:1.8rem;min-height:130px}#doc2 #doc2--sign-popup .doc2--signPopup--nav-button{background:#fff;cursor:pointer;padding-right:0;white-space:nowrap}#doc2 #doc2--sign-popup .doc2--sign-popup--challenge{font-size:1.8rem;text-align:center}#doc2 input.form-control.doc2--error-input,#doc2 .doc2--error-input>.bootstrap-select button.dropdown-toggle{border-color:#ff7373}#doc2 .doc2--loading-overlay{position:relative}#doc2 .doc2--loading-overlay .doc2--loading-overlay--indicator{pointer-events:none;opacity:0;transition:opacity .15s;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:transparent;background:rgba(255,255,255,.75)}#doc2 .doc2--loading-overlay .doc2--loading-overlay--indicator--visible{pointer-events:auto;opacity:1}.link-no-after.link-gray[target=_blank]::after{content:none !important}body{margin:0;font-family:"Roboto",sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#5d6071;text-align:left;background-color:#dbdfe2}',""]);const s=a},520(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(601),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,"",""]),a.locals={colorGreyDark:"#34304c",colorGrey:"#5d6071",colorBlue:"#0083ba"};const s=a},314(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 a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601(e){"use strict";e.exports=function(e){return e[1]}},353(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=m;var w="$isDayjsObject",S=function(e){return e instanceof C||!(!e||!e[w])},_=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},j=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},E=b;E.l=_,E.i=S,E.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(g);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return j(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<j(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),f=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},g=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,m):f(0,m+1);case l:var y=this.$locale().weekStart||0,x=(h<y?h+7:h)-y;return f(r?v-x:v+(6-x),m);case s:case p:return g(b+"Hours",0);case a:return g(b+"Minutes",1);case i:return g(b+"Seconds",2);case o:return g(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],g=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var h=this.clone().set(p,1);h.$d[f](g),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,u){var p,f=this;r=Number(r);var g=E.p(u),h=function(e){var t=j(f);return E.w(t.date(t.date()+Math.round(e*r)),f)};if(g===c)return this.set(c,this.$M+r);if(g===d)return this.set(d,this.$y+r);if(g===s)return h(1);if(g===l)return h(7);var m=(p={},p[i]=t,p[a]=n,p[o]=e,p)[g]||1,v=this.$d.getTime()+r*m;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return E.s(i%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,a,!0);case"A":return g(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var g,h=this,m=E.p(p),v=j(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,x=function(){return E.m(h,v)};switch(m){case d:g=x()/12;break;case c:g=x();break;case u:g=x()/3;break;case l:g=(y-b)/6048e5;break;case s:g=(y-b)/864e5;break;case a:g=y/n;break;case i:g=y/t;break;case o:g=y/e;break;default:g=y}return f?g:E.a(g)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),k=C.prototype;return j.prototype=k,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach(function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,C,j),e.$i=!0),j},j.locale=_,j.isDayjs=S,j.unix=function(e){return j(1e3*e)},j.en=x[y],j.Ls=x,j.p={},j}()},543(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,f=1/0,g=9007199254740991,h=NaN,m=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",S="[object Error]",_="[object Function]",j="[object GeneratorFunction]",E="[object Map]",C="[object Number]",k="[object Object]",T="[object Promise]",P="[object RegExp]",R="[object Set]",O="[object String]",I="[object Symbol]",A="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",$="[object Int16Array]",V="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",G="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,J=RegExp(Y.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Ie="["+je+"]",Ae="["+Re+"]",Me="["+Ee+"]",De="\\d+",Fe="["+Ce+"]",Ne="["+ke+"]",Le="[^"+je+Re+De+Ce+ke+Te+"]",$e="\\ud83c[\\udffb-\\udfff]",Ve="[^"+je+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+Te+"]",Ue="\\u200d",He="(?:"+Ne+"|"+Le+")",We="(?:"+Ge+"|"+Le+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Me+"|"+$e+")"+"?",Je="["+Pe+"]?",Xe=Je+Ke+("(?:"+Ue+"(?:"+[Ve,Be,ze].join("|")+")"+Je+Ke+")*"),Ze="(?:"+[Fe,Be,ze].join("|")+")"+Xe,Qe="(?:"+[Ve+Me+"?",Me,Be,ze,Ie].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Me,"g"),nt=RegExp($e+"(?="+$e+")|"+Qe+Xe,"g"),rt=RegExp([Ge+"?"+Ne+"+"+qe+"(?="+[Ae,Ge,"$"].join("|")+")",We+"+"+Ye+"(?="+[Ae,Ge+He,"$"].join("|")+")",Ge+"?"+He+"+"+qe,Ge+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),ot=RegExp("["+Ue+je+Ee+Pe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[F]=lt[N]=lt[L]=lt[$]=lt[V]=lt[B]=lt[z]=lt[G]=lt[U]=!0,lt[b]=lt[y]=lt[M]=lt[x]=lt[D]=lt[w]=lt[S]=lt[_]=lt[E]=lt[C]=lt[k]=lt[P]=lt[R]=lt[O]=lt[A]=!1;var ct={};ct[b]=ct[y]=ct[M]=ct[D]=ct[x]=ct[w]=ct[F]=ct[N]=ct[L]=ct[$]=ct[V]=ct[E]=ct[C]=ct[k]=ct[P]=ct[R]=ct[O]=ct[I]=ct[B]=ct[z]=ct[G]=ct[U]=!0,ct[S]=ct[_]=ct[A]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,gt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||gt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,bt=vt&&vt.exports===mt,yt=bt&&ft.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=xt&&xt.isArrayBuffer,St=xt&&xt.isDate,_t=xt&&xt.isMap,jt=xt&&xt.isRegExp,Et=xt&&xt.isSet,Ct=xt&&xt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function At(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Vt=qt("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Ht,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:h}function qt(e){return function(t){return null==t?o:t[e]}}function Yt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Jt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var on=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),an=Yt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function gn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Vt(e)}function hn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Yt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?ht:bn.defaults(ht.Object(),t,bn.pick(ht,at))).Array,se=t.Date,je=t.Error,Ee=t.Function,Ce=t.Math,ke=t.Object,Te=t.RegExp,Pe=t.String,Re=t.TypeError,Oe=r.prototype,Ie=Ee.prototype,Ae=ke.prototype,Me=t["__core-js_shared__"],De=Ie.toString,Fe=Ae.hasOwnProperty,Ne=0,Le=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Ae.toString,Ve=De.call(ke),Be=ht._,ze=Te("^"+De.call(Fe).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ge=bt?t.Buffer:o,Ue=t.Symbol,He=t.Uint8Array,We=Ge?Ge.allocUnsafe:o,qe=un(ke.getPrototypeOf,ke),Ye=ke.create,Ke=Ae.propertyIsEnumerable,Je=Oe.splice,Xe=Ue?Ue.isConcatSpreadable:o,Ze=Ue?Ue.iterator:o,Qe=Ue?Ue.toStringTag:o,nt=function(){try{var e=fi(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=se&&se.now!==ht.Date.now&&se.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,gt=Ce.ceil,mt=Ce.floor,vt=ke.getOwnPropertySymbols,yt=Ge?Ge.isBuffer:o,xt=t.isFinite,Vt=Oe.join,Yt=un(ke.keys,ke),yn=Ce.max,xn=Ce.min,wn=se.now,Sn=t.parseInt,_n=Ce.random,jn=Oe.reverse,En=fi(t,"DataView"),Cn=fi(t,"Map"),kn=fi(t,"Promise"),Tn=fi(t,"Set"),Pn=fi(t,"WeakMap"),Rn=fi(ke,"create"),On=Pn&&new Pn,In={},An=$i(En),Mn=$i(Cn),Dn=$i(kn),Fn=$i(Tn),Nn=$i(Pn),Ln=Ue?Ue.prototype:o,$n=Ln?Ln.valueOf:o,Vn=Ln?Ln.toString:o;function Bn(e){if(ns(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Fe.call(e,"__wrapped__"))return Vi(e)}return new Un(e)}var zn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Gn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=Ha(e),r=!n&&Ua(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Xt(e.length,Pe):[],l=s.length;for(var c in e)!t&&!Fe.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xi(c,l))||s.push(c);return s}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Qn(e,t){return Fi(Oo(e),lr(t,0,e.length))}function er(e){return Fi(Oo(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Fe.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,function(e,o,i){t(r,e,n(e),i)}),r}function ir(e,t){return e&&Io(t,Is(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oo(e,s)}else{var p=mi(e),f=p==_||p==j;if(Ka(e))return Eo(e,l);if(p==k||p==b||f&&!i){if(s=c||f?{}:bi(e),!l)return c?function(e,t){return Io(e,hi(e),t)}(e,function(e,t){return e&&Io(t,As(t),e)}(s,e)):function(e,t){return Io(e,gi(e),t)}(e,ir(s,e))}else{if(!ct[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case M:return Co(e);case x:case w:return new r(+e);case D:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case N:case L:case $:case V:case B:case z:case G:case U:return ko(e,n);case E:return new r;case C:case O:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case I:return o=e,$n?ke($n.call(o)):{}}var o}(e,p,l)}}a||(a=new Jn);var g=a.get(e);if(g)return g;a.set(e,s),ss(e)?e.forEach(function(r){s.add(cr(r,t,n,r,e,a))}):rs(e)&&e.forEach(function(r,o){s.set(o,cr(r,t,n,o,e,a))});var h=d?o:(u?c?ai:ii:c?As:Is)(e);return Pt(h||e,function(r,o){h&&(r=e[o=r]),nr(s,o,cr(r,t,n,o,e,a))}),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Re(i);return Ii(function(){e.apply(o,n)},t)}function pr(e,t,n,r){var o=-1,i=At,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Dt(t,Qt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:Z,evaluate:Q,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Gn.prototype,Bn.prototype.constructor=Bn,Un.prototype=zn(Gn.prototype),Un.prototype.constructor=Un,Hn.prototype=zn(Gn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?o:n}return Fe.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==o:Fe.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Cn||qn),string:new Wn}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new qn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(wr),gr=Do(Sr,!0);function hr(e,t){var n=!0;return fr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return fr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):Ft(o,s):r||(o[o.length]=s)}return o}var yr=Fo(),xr=Fo(!0);function wr(e,t){return e&&yr(e,t,Is)}function Sr(e,t){return e&&xr(e,t,Is)}function _r(e,t){return It(t,function(t){return Za(e[t])})}function jr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Ha(e)?r:Ft(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in ke(e)?function(e){var t=Fe.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=$e.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return $e.call(e)}(e)}function kr(e,t){return e>t}function Tr(e,t){return null!=e&&Fe.call(e,t)}function Pr(e,t){return null!=e&&t in ke(e)}function Rr(e,t,n){for(var i=n?Mt:At,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Dt(p,Qt(t))),u=xn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Kn(l&&p):o}p=e[0];var f=-1,g=c[0];e:for(;++f<a&&d.length<u;){var h=p[f],m=t?t(h):h;if(h=n||0!==h?h:0,!(g?tn(g,m):i(d,m,n))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,m):i(e[l],m,n)))continue e}g&&g.push(m),d.push(h)}}return d}function Or(e,t,n){var r=null==(e=Pi(e,t=wo(t,e)))?e:e[Li(Xi(t))];return null==r?o:kt(r,e,n)}function Ir(e){return ns(e)&&Cr(e)==b}function Ar(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ha(e),l=Ha(t),c=s?y:mi(e),u=l?y:mi(t),d=(c=c==b?k:c)==k,p=(u=u==b?k:u)==k,f=c==u;if(f&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(f&&!d)return a||(a=new Jn),s||us(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case x:case w:case C:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case P:case O:return e==t+"";case E:var s=cn;case R:var l=1&r;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case I:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var g=d&&Fe.call(e,"__wrapped__"),h=p&&Fe.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,v=h?t.value():t;return a||(a=new Jn),i(m,v,n,r,a)}}if(!f)return!1;return a||(a=new Jn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var f=l[p];if(!(s?f in t:Fe.call(t,f)))return!1}var g=a.get(e),h=a.get(t);if(g&&h)return g==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var b=e[f=l[p]],y=t[f];if(r)var x=s?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(x===o?b===y||i(b,y,n,r,a):x)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Ar,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=ke(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Jn;if(r)var f=r(u,d,c,e,t,p);if(!(f===o?Ar(d,u,3,r,p):f))return!1}}return!0}function Dr(e){return!(!ts(e)||(t=e,Le&&Le in t))&&(Za(e)?ze:be).test($i(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ha(e)?zr(e[0],e[1]):Br(e):fl(e)}function Nr(e){if(!Ei(e))return Yt(e);var t=[];for(var n in ke(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}function $r(e,t){return e<t}function Vr(e,t){var n=-1,o=qa(e)?r(e.length):[];return fr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function Br(e){var t=pi(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function zr(e,t){return Si(e)&&Ci(t)?ki(Li(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Ts(n,e):Ar(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&yr(t,function(a,s){if(i||(i=new Jn),ts(a))!function(e,t,n,r,i,a,s){var l=Ri(e,n),c=Ri(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var f=Ha(c),g=!f&&Ka(c),h=!f&&!g&&us(c);d=c,f||g||h?Ha(l)?d=l:Ya(l)?d=Oo(l):g?(p=!1,d=Eo(c,!0)):h?(p=!1,d=ko(c,!0)):d=[]:is(c)||Ua(c)?(d=l,Ua(l)?d=bs(l):ts(l)&&!Za(l)||(d=bi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Gr,r,i);else{var l=r?r(Ri(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}},As)}function Ur(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Hr(e,t,n){t=t.length?Dt(t,function(e){return Ha(e)?function(t){return jr(t,1===e.length?e[0]:e)}:e}):[ol];var r=-1;t=Dt(t,Qt(ui()));var o=Vr(e,function(e,n,o){var i=Dt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=To(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=jr(e,a);n(s,a)&&eo(i,wo(a,e),s)}return i}function qr(e,t,n,r){var o=r?Ut:Gt,i=-1,a=t.length,s=e;for(e===t&&(t=Oo(t)),n&&(s=Dt(e,Qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Je.call(e,o,1):fo(e,o)}}return e}function Kr(e,t){return e+mt(_n()*(t-e+1))}function Jr(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ai(Ti(e,t,ol),e+"")}function Zr(e){return Zn(Bs(e))}function Qr(e,t){var n=Bs(e);return Fi(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Li(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ts(d)?d:xi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=On?function(e,t){return On.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Fi(Bs(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return fr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===o;i<a;){var d=mt((i+a)/2),p=n(e[d]),f=p!==o,g=null===p,h=p==p,m=cs(p);if(s)var v=r||h;else v=u?h&&(r||f):l?h&&f&&(r||!g):c?h&&f&&!g&&(r||!m):!g&&!m&&(r?p<=t:p<t);v?i=d+1:a=d}return xn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Ha(e))return Dt(e,uo)+"";if(cs(e))return Vn?Vn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=At,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:Xo(e);if(c)return pn(c);a=!1,o=tn,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){var n=-1,r=(t=wo(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!Fe.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Pi(e,t);return null==a||delete a[Li(Xi(t))]}function go(e,t,n,r){return eo(e,t,n(jr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function vo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=pr(a[i]||s,e[l],t,n));return po(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function yo(e){return Ya(e)?e:[]}function xo(e){return"function"==typeof e?e:ol}function wo(e,t){return Ha(e)?e:Si(e,t)?[e]:Ni(ys(e))}var So=Xr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var jo=ot||function(e){return ht.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function ko(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=yn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Ro(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=yn(a-l,0),p=r(d+u),f=!o;++i<d;)p[i]=e[i];for(var g=i;++c<u;)p[g+c]=t[c];for(;++s<l;)(f||i<a)&&(p[g+n[s]]=e[i++]);return p}function Oo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function Ao(e,t){return function(n,r){var o=Ha(n)?Tt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Mo(e){return Xr(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=ke(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function Do(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ke(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Fo(e){return function(t,n,r){for(var o=-1,i=ke(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function No(e){return function(t){var n=ln(t=ys(t))?hn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Nt(Zs(Us(t).replace(et,"")),e,"")}}function $o(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Vo(e){return function(t,n,r){var i=ke(t);if(!qa(t)){var a=ui(n,3);t=Is(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Bo(e){return oi(function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Re(i);if(a&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=li(s=t[r]),u="wrapper"==c?si(s):o;l=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&_i(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ha(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function zo(e,t,n,i,a,s,l,c,u,p){var f=t&d,g=1&t,h=2&t,m=24&t,v=512&t,b=h?o:$o(e);return function d(){for(var y=arguments.length,x=r(y),w=y;w--;)x[w]=arguments[w];if(m)var S=ci(d),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,S);if(i&&(x=Po(x,i,a,m)),s&&(x=Ro(x,s,l,m)),y-=_,m&&y<p){var j=dn(x,S);return Ko(e,t,zo,d.placeholder,n,x,j,c,u,p-y)}var E=g?n:this,C=h?E[e]:e;return y=x.length,c?x=function(e,t){var n=e.length,r=xn(t.length,n),i=Oo(e);for(;r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}(x,c):v&&y>1&&x.reverse(),f&&u<y&&(x.length=u),this&&this!==ht&&this instanceof d&&(C=b||$o(C)),C.apply(E,x)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Ho(e){return oi(function(t){return t=Dt(t,Qt(ui())),Xr(function(n){var r=this;return e(t,function(e){return kt(e,r,n)})})})}function Wo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Jr(t,e):t;var r=Jr(t,gt(e/gn(t)));return ln(t)?_o(hn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&wi(t,n,i)&&(n=i=o),t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n,o){for(var i=-1,a=yn(gt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:gs(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,l,d,p){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var g=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,l,d,p],h=n.apply(o,g);return _i(e)&&Oi(h,g),h.placeholder=r,Mi(h,e,t)}function Jo(e){var t=Ce[e];return function(e,n){if(e=vs(e),(n=null==n?0:xn(hs(n),292))&&xt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Tn&&1/pn(new Tn([,-0]))[1]==f?function(e){return new Tn(e)}:cl;function Zo(e){return function(t){var n=mi(t);return n==E?cn(t):n==R?fn(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Qo(e,t,n,a,f,g,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Re(i);var b=a?a.length:0;if(b||(t&=-97,a=f=o),h=h===o?h:yn(hs(h),0),m=m===o?m:hs(m),b-=f?f.length:0,t&u){var y=a,x=f;a=f=o}var w=v?o:si(e),S=[e,t,n,a,f,y,x,g,h,m];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Po(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ro(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,w),e=S[0],t=S[1],n=S[2],a=S[3],f=S[4],!(m=S[9]=S[9]===o?v?0:e.length:yn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=$o(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ci(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Ko(e,t,zo,a.placeholder,o,l,d,o,o,n-s):kt(this&&this!==ht&&this instanceof a?i:e,this,l)}}(e,t,m):t!=c&&33!=t||f.length?zo.apply(o,S):function(e,t,n,o){var i=1&t,a=$o(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==ht&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return kt(p,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=$o(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Mi((w?to:Oi)(_,S),e,t)}function ei(e,t,n,r){return e===o||Ba(e,Ae[n])&&!Fe.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Gr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return is(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,g=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++p<l;){var h=e[p],m=t[p];if(r)var v=s?r(m,h,p,t,e,a):r(h,m,p,e,t,a);if(v!==o){if(v)continue;f=!1;break}if(g){if(!$t(t,function(e,t){if(!tn(g,t)&&(h===e||i(h,e,n,r,a)))return g.push(t)})){f=!1;break}}else if(h!==m&&!i(h,m,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function oi(e){return Ai(Ti(e,o,Wi),e+"")}function ii(e){return Er(e,Is,gi)}function ai(e){return Er(e,As,hi)}var si=On?function(e){return On.get(e)}:cl;function li(e){for(var t=e.name+"",n=In[t],r=Fe.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Fe.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||il;return e=e===il?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var gi=vt?function(e){return null==e?[]:(e=ke(e),It(vt(e),function(t){return Ke.call(e,t)}))}:ml,hi=vt?function(e){for(var t=[];e;)Ft(t,gi(e)),e=qe(e);return t}:ml,mi=Cr;function vi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&xi(a,o)&&(Ha(e)||Ua(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:zn(qe(e))}function yi(e){return Ha(e)||Ua(e)||!!(Xe&&e&&e[Xe])}function xi(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&xi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ke(t))}function _i(e){var t=li(e),n=Bn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(En&&mi(new En(new ArrayBuffer(1)))!=D||Cn&&mi(new Cn)!=E||kn&&mi(kn.resolve())!=T||Tn&&mi(new Tn)!=R||Pn&&mi(new Pn)!=A)&&(mi=function(e){var t=Cr(e),n=t==k?e.constructor:o,r=n?$i(n):"";if(r)switch(r){case An:return D;case Mn:return E;case Dn:return T;case Fn:return R;case Nn:return A}return t});var ji=Me?Za:vl;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Ci(e){return e==e&&!ts(e)}function ki(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ke(n)))}}function Ti(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),kt(e,this,l)}}function Pi(e,t){return t.length<2?e:jr(e,oo(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Di(to),Ii=ft||function(e,t){return ht.setTimeout(e,t)},Ai=Di(no);function Mi(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(v,function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ni=function(e){var t=Da(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)}),t});function Li(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $i(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Vi(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Oo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Xr(function(e,t){return Ya(e)?pr(e,br(t,1,Ya,!0)):[]}),zi=Xr(function(e,t){var n=Xi(t);return Ya(n)&&(n=o),Ya(e)?pr(e,br(t,1,Ya,!0),ui(n,2)):[]}),Gi=Xr(function(e,t){var n=Xi(t);return Ya(n)&&(n=o),Ya(e)?pr(e,br(t,1,Ya,!0),o,n):[]});function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),zt(e,ui(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=hs(n),i=n<0?yn(r+i,0):xn(i,r-1)),zt(e,ui(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?br(e,1):[]}function qi(e){return e&&e.length?e[0]:o}var Yi=Xr(function(e){var t=Dt(e,yo);return t.length&&t[0]===e[0]?Rr(t):[]}),Ki=Xr(function(e){var t=Xi(e),n=Dt(e,yo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Rr(n,ui(t,2)):[]}),Ji=Xr(function(e){var t=Xi(e),n=Dt(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,o,t):[]});function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ea=oi(function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Dt(t,function(e){return xi(e,n)?+e:e}).sort(To)),r});function ta(e){return null==e?e:jn.call(e)}var na=Xr(function(e){return po(br(e,1,Ya,!0))}),ra=Xr(function(e){var t=Xi(e);return Ya(t)&&(t=o),po(br(e,1,Ya,!0),ui(t,2))}),oa=Xr(function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(br(e,1,Ya,!0),o,t)});function ia(e){if(!e||!e.length)return[];var t=0;return e=It(e,function(e){if(Ya(e))return t=yn(e.length,t),!0}),Xt(t,function(t){return Dt(e,qt(t))})}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Dt(n,function(e){return kt(t,o,e)})}var sa=Xr(function(e,t){return Ya(e)?pr(e,t):[]}),la=Xr(function(e){return vo(It(e,Ya))}),ca=Xr(function(e){var t=Xi(e);return Ya(t)&&(t=o),vo(It(e,Ya),ui(t,2))}),ua=Xr(function(e){var t=Xi(e);return t="function"==typeof t?t:o,vo(It(e,Ya),o,t)}),da=Xr(ia);var pa=Xr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)});function fa(e){var t=Bn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var ha=oi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var ma=Ao(function(e,t,n){Fe.call(e,n)?++e[n]:ar(e,n,1)});var va=Vo(Ui),ba=Vo(Hi);function ya(e,t){return(Ha(e)?Pt:fr)(e,ui(t,3))}function xa(e,t){return(Ha(e)?Rt:gr)(e,ui(t,3))}var wa=Ao(function(e,t,n){Fe.call(e,n)?e[n].push(t):ar(e,n,[t])});var Sa=Xr(function(e,t,n){var o=-1,i="function"==typeof t,a=qa(e)?r(e.length):[];return fr(e,function(e){a[++o]=i?kt(t,e,n):Or(e,t,n)}),a}),_a=Ao(function(e,t,n){ar(e,n,t)});function ja(e,t){return(Ha(e)?Dt:Vr)(e,ui(t,3))}var Ea=Ao(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ca=Xr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,br(t,1),[])}),ka=ut||function(){return ht.Date.now()};function Ta(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Re(i);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ra=Xr(function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Ra));r|=c}return Qo(e,r,t,n,o)}),Oa=Xr(function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Oa));r|=c}return Qo(t,r,e,n,o)});function Ia(e,t,n){var r,a,s,l,c,u,d=0,p=!1,f=!1,g=!0;if("function"!=typeof e)throw new Re(i);function h(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||f&&e-d>=s}function v(){var e=ka();if(m(e))return b(e);c=Ii(v,function(e){var n=t-(e-u);return f?xn(n,s-(e-d)):n}(e))}function b(e){return c=o,g&&r?h(e):(r=a=o,l)}function y(){var e=ka(),n=m(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=Ii(v,t),p?h(e):l}(u);if(f)return jo(c),c=Ii(v,t),h(u)}return c===o&&(c=Ii(v,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(f="maxWait"in n)?yn(vs(n.maxWait)||0,t):s,g="trailing"in n?!!n.trailing:g),y.cancel=function(){c!==o&&jo(c),d=0,r=u=a=c=o},y.flush=function(){return c===o?l:b(ka())},y}var Aa=Xr(function(e,t){return dr(e,1,t)}),Ma=Xr(function(e,t,n){return dr(e,vs(t)||0,n)});function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Yn),n}function Fa(e){if("function"!=typeof e)throw new Re(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Yn;var Na=So(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Dt(t[0],Qt(ui())):Dt(br(t,1),Qt(ui()))).length;return Xr(function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return kt(e,this,r)})}),La=Xr(function(e,t){var n=dn(t,ci(La));return Qo(e,c,o,t,n)}),$a=Xr(function(e,t){var n=dn(t,ci($a));return Qo(e,u,o,t,n)}),Va=oi(function(e,t){return Qo(e,p,o,o,o,t)});function Ba(e,t){return e===t||e!=e&&t!=t}var za=Yo(kr),Ga=Yo(function(e,t){return e>=t}),Ua=Ir(function(){return arguments}())?Ir:function(e){return ns(e)&&Fe.call(e,"callee")&&!Ke.call(e,"callee")},Ha=r.isArray,Wa=wt?Qt(wt):function(e){return ns(e)&&Cr(e)==M};function qa(e){return null!=e&&es(e.length)&&!Za(e)}function Ya(e){return ns(e)&&qa(e)}var Ka=yt||vl,Ja=St?Qt(St):function(e){return ns(e)&&Cr(e)==w};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Za(e){if(!ts(e))return!1;var t=Cr(e);return t==_||t==j||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==hs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=_t?Qt(_t):function(e){return ns(e)&&mi(e)==E};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==C}function is(e){if(!ns(e)||Cr(e)!=k)return!1;var t=qe(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ve}var as=jt?Qt(jt):function(e){return ns(e)&&Cr(e)==P};var ss=Et?Qt(Et):function(e){return ns(e)&&mi(e)==R};function ls(e){return"string"==typeof e||!Ha(e)&&ns(e)&&Cr(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Cr(e)==I}var us=Ct?Qt(Ct):function(e){return ns(e)&&es(e.length)&&!!lt[Cr(e)]};var ds=Yo($r),ps=Yo(function(e,t){return e<=t});function fs(e){if(!e)return[];if(qa(e))return ls(e)?hn(e):Oo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=mi(e);return(t==E?cn:t==R?pn:Bs)(e)}function gs(e){return e?(e=vs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?lr(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return h;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ve.test(e);return n||ye.test(e)?pt(e.slice(2),n?2:8):me.test(e)?h:+e}function bs(e){return Io(e,As(e))}function ys(e){return null==e?"":uo(e)}var xs=Mo(function(e,t){if(Ei(t)||qa(t))Io(t,Is(t),e);else for(var n in t)Fe.call(t,n)&&nr(e,n,t[n])}),ws=Mo(function(e,t){Io(t,As(t),e)}),Ss=Mo(function(e,t,n,r){Io(t,As(t),e,r)}),_s=Mo(function(e,t,n,r){Io(t,Is(t),e,r)}),js=oi(sr);var Es=Xr(function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=As(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ba(d,Ae[u])&&!Fe.call(e,u))&&(e[u]=a[u])}return e}),Cs=Xr(function(e){return e.push(o,ti),kt(Ds,o,e)});function ks(e,t,n){var r=null==e?o:jr(e,t);return r===o?n:r}function Ts(e,t){return null!=e&&vi(e,t,Pr)}var Ps=Go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n},tl(ol)),Rs=Go(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]},ui),Os=Xr(Or);function Is(e){return qa(e)?Xn(e):Nr(e)}function As(e){return qa(e)?Xn(e,!0):Lr(e)}var Ms=Mo(function(e,t,n){Gr(e,t,n)}),Ds=Mo(function(e,t,n,r){Gr(e,t,n,r)}),Fs=oi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),Io(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n});var Ns=oi(function(e,t){return null==e?{}:function(e,t){return Wr(e,t,function(t,n){return Ts(e,n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Dt(ai(e),function(e){return[e]});return t=ui(t),Wr(e,n,function(e,n){return t(e,n[0])})}var $s=Zo(Is),Vs=Zo(As);function Bs(e){return null==e?[]:en(e,Is(e))}var zs=Lo(function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)});function Gs(e){return Xs(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,on).replace(tt,"")}var Hs=Lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qs=No("toLowerCase");var Ys=Lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ks=Lo(function(e,t,n){return e+(n?" ":"")+Xs(t)});var Js=Lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Xs=No("toUpperCase");function Zs(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Xr(function(e,t){try{return kt(e,o,t)}catch(e){return Xa(e)?e:new je(e)}}),el=oi(function(e,t){return Pt(t,function(t){t=Li(t),ar(e,t,Ra(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Bo(),rl=Bo(!0);function ol(e){return e}function il(e){return Fr("function"==typeof e?e:cr(e,1))}var al=Xr(function(e,t){return function(n){return Or(n,e,t)}}),sl=Xr(function(e,t){return function(n){return Or(e,n,t)}});function ll(e,t,n){var r=Is(t),o=_r(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Is(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Za(e);return Pt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function cl(){}var ul=Ho(Dt),dl=Ho(Ot),pl=Ho($t);function fl(e){return Si(e)?qt(Li(e)):function(e){return function(t){return jr(t,e)}}(e)}var gl=qo(),hl=qo(!0);function ml(){return[]}function vl(){return!1}var bl=Uo(function(e,t){return e+t},0),yl=Jo("ceil"),xl=Uo(function(e,t){return e/t},1),wl=Jo("floor");var Sl,_l=Uo(function(e,t){return e*t},1),jl=Jo("round"),El=Uo(function(e,t){return e-t},0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Re(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ta,Bn.assign=xs,Bn.assignIn=ws,Bn.assignInWith=Ss,Bn.assignWith=_s,Bn.at=js,Bn.before=Pa,Bn.bind=Ra,Bn.bindAll=el,Bn.bindKey=Oa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,n){t=(n?wi(e,t,n):t===o)?1:yn(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(gt(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ft(Ha(n)?Oo(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Dt(e,function(e){if("function"!=typeof e[1])throw new Re(i);return[n(e[0]),e[1]]}):[],Xr(function(n){for(var r=-1;++r<t;){var o=e[r];if(kt(o[0],this,n))return kt(o[1],this,n)}})},Bn.conforms=function(e){return function(e){var t=Is(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Bn.constant=tl,Bn.countBy=ma,Bn.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Qo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ia,Bn.defaults=Es,Bn.defaultsDeep=Cs,Bn.defer=Aa,Bn.delay=Ma,Bn.difference=Bi,Bn.differenceBy=zi,Bn.differenceWith=Gi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:hs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:hs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=hs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:hs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?It:vr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(ja(e,t),1)},Bn.flatMapDeep=function(e,t){return br(ja(e,t),f)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:hs(n),br(ja(e,t),n)},Bn.flatten=Wi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,f):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:hs(t)):[]},Bn.flip=function(e){return Qo(e,512)},Bn.flow=nl,Bn.flowRight=rl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:_r(e,Is(e))},Bn.functionsIn=function(e){return null==e?[]:_r(e,As(e))},Bn.groupBy=wa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Yi,Bn.intersectionBy=Ki,Bn.intersectionWith=Ji,Bn.invert=Ps,Bn.invertBy=Rs,Bn.invokeMap=Sa,Bn.iteratee=il,Bn.keyBy=_a,Bn.keys=Is,Bn.keysIn=As,Bn.map=ja,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,t(e,r,o),e)}),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,function(e,r,o){ar(n,r,t(e,r,o))}),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return zr(e,cr(t,1))},Bn.memoize=Da,Bn.merge=Ms,Bn.mergeWith=Ds,Bn.method=al,Bn.methodOf=sl,Bn.mixin=ll,Bn.negate=Fa,Bn.nthArg=function(e){return e=hs(e),Xr(function(t){return Ur(t,e)})},Bn.omit=Fs,Bn.omitBy=function(e,t){return Ls(e,Fa(ui(t)))},Bn.once=function(e){return Pa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?o:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Bn.over=ul,Bn.overArgs=Na,Bn.overEvery=dl,Bn.overSome=pl,Bn.partial=La,Bn.partialRight=$a,Bn.partition=Ea,Bn.pick=Ns,Bn.pickBy=Ls,Bn.property=fl,Bn.propertyOf=function(e){return function(t){return null==e?o:jr(e,t)}},Bn.pull=Zi,Bn.pullAll=Qi,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=gl,Bn.rangeRight=hl,Bn.rearg=Va,Bn.reject=function(e,t){return(Ha(e)?It:vr)(e,Fa(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Re(i);return Xr(e,t=t===o?t:hs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),(Ha(e)?Qn:Qr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===o?r:hs(n)),oo(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ln(e)?_o(hn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Re(i);return t=null==t?0:yn(hs(t),0),Xr(function(n){var r=n[t],o=_o(n,0,t);return r&&Ft(o,r),kt(e,this,o)})},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:hs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Re(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ia(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ga,Bn.toArray=fs,Bn.toPairs=$s,Bn.toPairsIn=Vs,Bn.toPath=function(e){return Ha(e)?Dt(e,Li):cs(e)?[e]:Oo(Ni(ys(e)))},Bn.toPlainObject=bs,Bn.transform=function(e,t,n){var r=Ha(e),o=r||Ka(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Za(i)?zn(qe(e)):{}}return(o?Pt:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},Bn.unary=function(e){return Ta(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?po(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:go(e,t,xo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:go(e,t,xo(n),r)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,As(e))},Bn.without=sa,Bn.words=Zs,Bn.wrap=function(e,t){return La(xo(t),e)},Bn.xor=la,Bn.xorBy=ca,Bn.xorWith=ua,Bn.zip=da,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=pa,Bn.entries=$s,Bn.entriesIn=Vs,Bn.extend=ws,Bn.extendWith=Ss,ll(Bn,Bn),Bn.add=bl,Bn.attempt=Qs,Bn.camelCase=zs,Bn.capitalize=Gs,Bn.ceil=yl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Is(t))},Bn.deburr=Us,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=xl,Bn.endsWith=function(e,t,n){e=ys(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace(K,an):e},Bn.escapeRegExp=function(e){return(e=ys(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?Ot:hr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=va,Bn.findIndex=Ui,Bn.findKey=function(e,t){return Bt(e,ui(t,3),wr)},Bn.findLast=ba,Bn.findLastIndex=Hi,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),Sr)},Bn.floor=wl,Bn.forEach=ya,Bn.forEachRight=xa,Bn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),As)},Bn.forInRight=function(e,t){return null==e?e:xr(e,ui(t,3),As)},Bn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Bn.get=ks,Bn.gt=za,Bn.gte=Ga,Bn.has=function(e,t){return null!=e&&vi(e,t,Tr)},Bn.hasIn=Ts,Bn.head=qi,Bn.identity=ol,Bn.includes=function(e,t,n,r){e=qa(e)?e:Bs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Gt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=yn(r+o,0)),Gt(e,t,o)},Bn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<yn(t,n)}(e=vs(e),t,n)},Bn.invoke=Os,Bn.isArguments=Ua,Bn.isArray=Ha,Bn.isArrayBuffer=Wa,Bn.isArrayLike=qa,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==x},Bn.isBuffer=Ka,Bn.isDate=Ja,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||us(e)||Ua(e)))return!e.length;var t=mi(e);if(t==E||t==R)return!e.size;if(Ei(e))return!Nr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Ar(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ar(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&xt(e)},Bn.isFunction=Za,Bn.isInteger=Qa,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Mr(e,t,pi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,pi(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(ji(e))throw new je("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=g},Bn.isSet=ss,Bn.isString=ls,Bn.isSymbol=cs,Bn.isTypedArray=us,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&mi(e)==A},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":Vt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=hs(n))<0?yn(r+i,0):xn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Ht,i,!0)},Bn.lowerCase=Ws,Bn.lowerFirst=qs,Bn.lt=ds,Bn.lte=ps,Bn.max=function(e){return e&&e.length?mr(e,ol,kr):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ui(t,2),kr):o},Bn.mean=function(e){return Wt(e,ol)},Bn.meanBy=function(e,t){return Wt(e,ui(t,2))},Bn.min=function(e){return e&&e.length?mr(e,ol,$r):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ui(t,2),$r):o},Bn.stubArray=ml,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_l,Bn.nth=function(e,t){return e&&e.length?Ur(e,hs(t)):o},Bn.noConflict=function(){return ht._===this&&(ht._=Be),this},Bn.noop=cl,Bn.now=ka,Bn.pad=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(mt(o),n)+e+Wo(gt(o),n)},Bn.padEnd=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;return t&&r<t?e+Wo(t-r,n):e},Bn.padStart=function(e,t,n){e=ys(e);var r=(t=hs(t))?gn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(ys(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?Nt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?Lt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,gr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),Jr(ys(e),t)},Bn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=jl,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(qa(e))return ls(e)?gn(e):e.length;var t=mi(e);return t==E||t==R?e.size:Nr(e).length},Bn.snakeCase=Ys,Bn.some=function(e,t,n){var r=Ha(e)?$t:io;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Ks,Bn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:lr(hs(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=El,Bn.sum=function(e){return e&&e.length?Jt(e,ol):0},Bn.sumBy=function(e,t){return e&&e.length?Jt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wi(e,t,n)&&(t=o),e=ys(e),t=Ss({},t,r,ei);var i,a,s=Ss({},t.imports,r.imports,ei),l=Is(s),c=en(s,l),u=0,d=t.interpolate||Se,p="__p += '",f=Te((t.escape||Se).source+"|"+d.source+"|"+(d===ee?ge:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),g="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(f,function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(_e,sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),p+="';\n";var h=Fe.call(t,"variable")&&t.variable;if(h){if(pe.test(h))throw new je("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Qs(function(){return Ee(l,g+"return "+p).apply(o,c)});if(m.source=p,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=hs(e))<1||e>g)return[];var n=m,r=xn(e,m);t=ui(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},Bn.toFinite=gs,Bn.toInteger=hs,Bn.toLength=ms,Bn.toLower=function(e){return ys(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?lr(hs(e),-9007199254740991,g):0===e?e:0},Bn.toString=ys,Bn.toUpper=function(e){return ys(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=hn(e),i=hn(t);return _o(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=hn(e);return _o(r,0,rn(r,hn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=hn(e);return _o(r,nn(r,hn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?hs(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=ys(e)).length;if(ln(e)){var s=hn(e);a=s.length}if(n>=a)return e;var l=n-gn(r);if(l<1)return r;var c=s?_o(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Te(i.source,ys(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Bn.unescape=function(e){return(e=ys(e))&&J.test(e)?e.replace(Y,vn):e},Bn.uniqueId=function(e){var t=++Ne;return ys(e)+t},Bn.upperCase=Js,Bn.upperFirst=Xs,Bn.each=ya,Bn.eachRight=xa,Bn.first=qi,ll(Bn,(Sl={},wr(Bn,function(e,t){Fe.call(Bn.prototype,t)||(Sl[t]=e)}),Sl),{chain:!1}),Bn.VERSION="4.17.23",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bn[e].placeholder=Bn}),Pt(["drop","take"],function(e,t){Hn.prototype[e]=function(n){n=n===o?1:yn(hs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Pt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Pt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),Pt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(ol)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return Or(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Fa(ui(e)))},Hn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},wr(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,c=s[0],u=l||Ha(t),d=function(e){var t=i.apply(Bn,Ft([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,g=a&&!p,h=l&&!f;if(!a&&u){t=h?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:ga,args:[d],thisArg:o}),new Un(m,p)}return g&&h?e.apply(this,s):(m=this.thru(d),g?r?m.value()[0]:m.value():m)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ha(o)?o:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),wr(Hn.prototype,function(e,t){var n=Bn[t];if(n){var r=n.name+"";Fe.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}}),In[zo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,f=xn(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return mo(e,this.__actions__);var g=[];e:for(;l--&&p<f;){for(var h=-1,m=e[c+=t];++h<d;){var v=u[h],b=v.iteratee,y=v.type,x=b(m);if(2==y)m=x;else if(!x){if(1==y)continue e;break e}}g[p++]=m}return g},Bn.prototype.at=ha,Bn.prototype.chain=function(){return fa(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Vi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();ht._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},20(e,t,n){"use strict";var r=n(953),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},848(e,t,n){"use strict";e.exports=n(20)},72(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={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var g=o(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:g,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return 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 a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},659(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)}},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}},56(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825(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)}}}},113(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))}}},953(e){"use strict";e.exports=require("react")},479(e){"use strict";e.exports=require("react-dropzone")},660(e,t,n){"use strict";n.d(t,{gB:()=>o,i0:()=>r,qT:()=>i});var r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.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 o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+".index.cjs.js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="eehitus-building-project-file-ui:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkeehitus_building_project_file_ui=globalThis.webpackChunkeehitus_building_project_file_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};(()=>{"use strict";a.r(s),a.d(s,{EhrDoc:()=>qi,EhrDocTedi:()=>LL});var e={};a.r(e),a.d(e,{default:()=>du});var t={};a.r(t),a.d(t,{default:()=>vu});var n={};a.r(n),a.d(n,{default:()=>yu});var r={};a.r(r),a.d(r,{GlobalStyles:()=>wk,StyledEngineProvider:()=>xk,ThemeContext:()=>_g,css:()=>pw,default:()=>Sk,internal_processStyles:()=>_k,internal_serializeStyles:()=>Ek,keyframes:()=>fw});var o={};a.r(o),a.d(o,{default:()=>wd,isPlainObject:()=>yd});var i={};a.r(i),a.d(i,{default:()=>Jd});var l={};a.r(l),a.d(l,{default:()=>Nk,getFunctionName:()=>Mk});var c={};a.r(c),a.d(c,{default:()=>Wp,private_createBreakpoints:()=>Gd,unstable_applyStyles:()=>Up});var u={};a.r(u),a.d(u,{default:()=>Gp,extendSxProp:()=>zk,unstable_createStyleFunctionSx:()=>zp,unstable_defaultSxConfig:()=>Bp});var d=a(953),p=a.t(d,2),f=a.n(d);const g=require("ehr-components");var h=a(72),m=a.n(h),v=a(825),b=a.n(v),y=a(659),x=a.n(y),w=a(56),S=a.n(w),_=a(540),j=a.n(_),E=a(113),C=a.n(E),k=a(841),T={};T.styleTagTransform=C(),T.setAttributes=S(),T.insert=x().bind(null,"head"),T.domAPI=b(),T.insertStyleElement=j();m()(k.A,T);k.A&&k.A.locals&&k.A.locals;const P=require("react-redux");var R=a(848);const O=e=>{let{isLegacyProject:t,permissions:n,title:r,onAccept:o,onCancel:i,compound:a,onSecondary:s,lockAccept:l,actionsDisabled:c,disableAccept:u,children:d,onUnlock:p,css:f}=e;return(0,R.jsx)("div",{id:`doc2--popup-modal-${Date.now().toString()}`,className:"doc2--popup-modal",children:(0,R.jsxs)("div",{className:a?"doc2--popup-modal--modal compound":"doc2--popup-modal--modal",style:f,children:[(0,R.jsx)("h4",{children:r}),(0,R.jsx)("div",{className:"doc2--popup-modal--content mt-1",children:d}),(0,R.jsxs)("div",{className:"doc2--popup-modal--footer",children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:i,disabled:c,children:"Sulgen"}),s&&!t&&(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:s,className:"push-right mr-2",disabled:c,children:(0,R.jsx)(g.Text,{raw:"popup.showSigners"})}),p&&(0,R.jsx)(g.Button,{colourScheme:"info",squared:!0,onClick:p,className:"mr-2",disabled:!n.canWrite||c,children:(0,R.jsx)(g.Text,{raw:"popup.unlock"})}),o&&(0,R.jsxs)(R.Fragment,{children:[l&&(0,R.jsx)(g.Popover,{content:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(g.Text,{raw:"signPopup.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"signPopup.content"})})]}),(0,R.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",children:(0,R.jsx)(g.Text,{raw:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{colourScheme:"danger",type:"reset",onClick:o,children:(0,R.jsx)(g.Text,{raw:"signPopup.yesConfirm"})})]})]}),placement:"left",theme:"danger",children:(0,R.jsx)("span",{style:{display:"none"},id:"i am dummy"})}),!l&&(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,onClick:o,disabled:u||c,children:(0,R.jsx)(g.Text,{raw:"popup.save"})})]})]})]})})};const I=(0,P.connect)(function(e){return{isLegacyProject:e.projectState.legacy,permissions:e.permissions.permissions}},function(e){return{}})(O),A=e=>{let{isOpen:t,togglePopup:n}=e;return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsxs)(I,{title:"popupRestrictAccess.title",onAccept:function(){n(!1)},onCancel:function(){n(!1)},children:[(0,R.jsx)("p",{children:"Järgnevatele dokumentidele määran juurdepääsupiirangu:"}),(0,R.jsxs)("ul",{className:"list-with-arrows",children:[(0,R.jsx)("li",{children:"1234_EP-EAV-3-001_dokumendi_nimetus.asice"}),(0,R.jsx)("li",{children:"EL_nõrkvool.asice"})]}),(0,R.jsx)(g.FieldWrapper,{label:"Alus",info:{content:"Alus label"},required:!0,component:(0,R.jsx)(g.Input,{onChange:()=>{}})}),(0,R.jsx)(g.FieldWrapper,{label:"Põhjendus",info:{content:"Põhjendus label"},required:!0,component:(0,R.jsx)(g.TextArea,{onChange:()=>{}})}),(0,R.jsx)(g.FieldWrapper,{label:"Piirangu lõpu aeg",info:{content:"Piirangu lõpu aeg label"},required:!0,component:(0,R.jsx)(g.DatePicker,{onChange:()=>{}})})]})})};let M=function(e){return e.TOGGLE_SIGN_REFUSAL_POPUP="TOGGLE_SIGN_REFUSAL_POPUP",e.TOGGLE_MAKE_CONFIDENTIAL_POPUP="TOGGLE_MAKE_CONFIDENTIAL_POPUP",e.TOGGLE_SIGN_DOCUMENT_LIST="TOGGLE_SIGN_DOCUMENT_LIST",e.TOGGLE_REPLACE_FILE_POPUP="TOGGLE_REPLACE_FILE_POPUP",e.ADD_ALERT="ADD_ALERT",e.REMOVE_ALERT="REMOVE_ALERT",e.CLEAR_ALL_ALERTS="CLEAR_ALL_ALERTS",e.TOGGLE_FILTERS="TOGGLE_FILTERS",e.CLOSE_ALL_POPUPS="CLOSE_ALL_POPUPS",e}({});function D(e){return{type:M.TOGGLE_SIGN_REFUSAL_POPUP,payload:{toggled:e}}}function F(e){return{type:M.TOGGLE_SIGN_DOCUMENT_LIST,payload:{toggled:e}}}function N(e){return{type:M.ADD_ALERT,payload:{alert:e}}}function L(e){return{type:M.REMOVE_ALERT,payload:{id:e||""}}}function $(){return{type:M.CLEAR_ALL_ALERTS,payload:{}}}function V(e){return{type:M.TOGGLE_FILTERS,payload:{toggled:e}}}function B(e){return{type:M.TOGGLE_REPLACE_FILE_POPUP,payload:{toggled:e}}}const z=(0,P.connect)(function(e){return{isOpen:e.uiState.makeConfidentialOpen}},function(e){return{togglePopup:t=>{var n;e((n=t,{type:M.TOGGLE_MAKE_CONFIDENTIAL_POPUP,payload:{toggled:n}}))}}})(A),G=require("react-intl");function U(e,t){const n=e.filter(e=>e.code===t)[0];return n?n.text:""}const H=e=>{let{code:t,codes:n,className:r}=e;return(0,R.jsxs)(R.Fragment,{children:[t&&(0,R.jsx)("span",{className:r,children:U(n,t)}),!t&&(0,R.jsx)("span",{className:r})]})};const W=(0,P.connect)(function(e,t){return{codes:e.codeToTextState[t.type],code:t.code}},function(e){return{}})(H);const q=e=>{let{code:t,className:n}=e;return(0,R.jsx)(W,{type:"grupp",code:t,className:n})},Y=e=>{let{code:t}=e;return(0,R.jsx)(W,{type:"projektiOsa",code:t})},K=e=>{let{code:t}=e;return(0,R.jsx)(W,{type:"projektiStaadium",code:t})};function J(e){const t=e.toISOString(),n=t.substring(0,t.indexOf("T")),[r,o,i]=n.split("-");return`${i}.${o}.${r}`}var X;function Z(){return Z=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},Z.apply(null,arguments)}function Q(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Z({width:12,height:6,viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,X||(X=d.createElement("path",{d:"M10.59 0L6 4.58 1.41 0 0 1.41l6 6 6-6L10.59 0z"})))}const ee=d.forwardRef(Q);a.p;var te;function ne(){return ne=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},ne.apply(null,arguments)}function re(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",ne({width:12,height:6,viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,te||(te=d.createElement("path",{d:"M1.41 7.41L6 2.83l4.59 4.58L12 6 6 0 0 6l1.41 1.41z"})))}const oe=d.forwardRef(re);a.p;var ie=a(520),ae={};ae.styleTagTransform=C(),ae.setAttributes=S(),ae.insert=x().bind(null,"head"),ae.domAPI=b(),ae.insertStyleElement=j();m()(ie.A,ae);const se=ie.A&&ie.A.locals?ie.A.locals:void 0,le=e=>{let{title:t,index:n,isDescending:r,isAccenting:o,onAccenting:i,onDescending:a}=e;return(0,R.jsxs)("div",{className:"doc2--row-header",children:[(0,R.jsxs)("div",{className:"doc2--row-header--arrows",children:[(0,R.jsxs)("button",{className:"doc2--icon-button mb-1",onClick:()=>i(n),children:[o&&(0,R.jsx)(oe,{fill:se.colorBlue,"aria-label":"Sort based on this row, accenting enabled."}),!o&&(0,R.jsx)(oe,{fill:se.colorGrey,"aria-label":"Sort based on this row, accenting."})]}),(0,R.jsxs)("button",{className:"doc2--icon-button",onClick:()=>a(n),children:[r&&(0,R.jsx)(ee,{fill:se.colorBlue,"aria-label":"Sort based on this row, descending enabled."}),!r&&(0,R.jsx)(ee,{fill:se.colorGrey,"aria-label":"Sort based on this row, descending."})]})]}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:t})})]})},ce=e=>{let{togglePopup:t,isOpen:n,signState:r,addAlert:o,projectId:i,enableSignPopup:a,unlockContainer:s,permissions:l,downloadProjektiOsaContainer:c,isBlockingRequestInProgress:u}=e;const[p,f]=(0,d.useState)([]),[h,m]=(0,d.useState)([]),v=(0,G.useIntl)(),{projectTypes:b,projectContainer:{signers:y,revision:x,signed:w}}=r,S=y.length>0;function _(e,t){f([(0,R.jsx)(le,{title:"projectType",index:"type",onAccenting:j,onDescending:E,isAccenting:"type"===e,isDescending:"type"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.signer",index:"name",onAccenting:j,onDescending:E,isAccenting:"name"===e,isDescending:"name"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.date",index:"date",onAccenting:j,onDescending:E,isAccenting:"date"===e,isDescending:"date"===t}),(0,R.jsx)(le,{title:"showSignersPopup.header.decision",index:"decision",onAccenting:j,onDescending:E,isAccenting:"decision"===e,isDescending:"decision"===t}),""])}function j(e){C(e,-1),_(e,void 0)}function E(e){C(e,1),_(void 0,e)}function C(e,t){if(0===t)return;const n=(n,r)=>n[e]<r[e]?t:n[e]>r[e]?-t:0;m("type"===e?e=>[...e.sort(n)]:e=>e.map(e=>(e.signers=[...e.signers].sort(n),e)))}function k(e){return e.map(e=>({props:{fields:[e.name,J(e.date),"",""]}}))}return(0,d.useEffect)(()=>{i&&_()},[i]),(0,d.useEffect)(()=>{m([...b])},[b]),(0,R.jsx)(R.Fragment,{children:n&&(0,R.jsx)(I,{title:(0,R.jsx)("h2",{children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.title"})}),lockAccept:!0,onCancel:function(){t(!1)},actionsDisabled:u,css:{maxWidth:"60rem"},children:u?(0,R.jsx)("div",{style:{width:"100%",textAlign:"center"},children:(0,R.jsx)(g.Loader,{})}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{style:{fontSize:"small"},children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.description",values:{br:(0,R.jsx)("br",{})}})}),(0,R.jsx)(g.CollapseTable,{headers:p,content:[...h.map(e=>{return(0,R.jsx)(g.CollapseTableRow,{open:!0,fields:[(0,R.jsx)(Y,{code:e.type}),"","","",(t=e,(0,R.jsxs)("div",{className:"sign-popup--file-actions",children:[t&&t.signers&&t.signers.length>0&&(0,R.jsx)("a",{onClick:()=>c(t.type),className:"icon-download mr-2"}),(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,onClick:()=>a(t.revision,t.type),disabled:S||t.signed||!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.containerName.sign"})})]}))],subRows:k(e.signers)});var t}),...S||l.canSign&&h.length>1?[(0,R.jsx)(g.CollapseTableRow,{fields:["","","","",""]}),(0,R.jsx)(g.CollapseTableRow,{open:!0,fields:[(0,R.jsx)(g.Text,{raw:"showSignersPopup.fullProject"}),"","","",(0,R.jsxs)("div",{className:"sign-popup--file-actions",children:[S&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("a",{onClick:()=>c(),className:"icon-download mr-2"}),(0,R.jsx)(g.Button,{colourScheme:"info",squared:!0,onClick:()=>{s(()=>{o({title:v.formatMessage({id:"alert.containerUnlocked"}),message:void 0}),t(!1)})},disabled:!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.fullProject.remove"})})]}),(0,R.jsx)(g.Button,{className:"ml-2",colourScheme:"success",squared:!0,onClick:()=>a(x,"SIGN_CONTAINER"),disabled:w||!l.canSign,children:(0,R.jsx)(g.Text,{raw:"showSignersPopup.containerName.sign"})})]})],subRows:k(y)})]:[]]})]})})})};let ue=function(e){return e.ID_CARD="ID_CARD",e.MOBILE_ID="MOBILE_ID",e.SMART_ID="SMART_ID",e}({});const de={method:ue.ID_CARD,signInProgress:!1,challenge:void 0,sessionId:void 0,revision:void 0,projektiOsa:void 0,mobileNumber:void 0};const pe=require("axios");var fe=a.n(pe);const ge=e=>Boolean(e&&Object.prototype.hasOwnProperty.call(e,"message")),he="common.error.unknown",me=e=>{switch(e){case 413:return"networkError.413";case 500:return"networkError.500";case 502:return"networkError.502";case 503:return"networkError.503";case 504:return"networkError.504";default:return"networkError.default"}};function ve(e,t){if(n=e,Boolean(n&&(Object.prototype.hasOwnProperty.call(n,"response")||Object.prototype.hasOwnProperty.call(n,"isAxiosError")))){const n=e.response;n&&n.data&&Array.isArray(n.data)?n.data.forEach(e=>{e.code&&e.message&&t(N({error:!0,title:"",message:e.message}))}):t(N({error:!0,intlTitle:"",intlMessage:me(null==n?void 0:n.status)}))}else if(ge(e)){const n=ge(e)?(e=>{switch(e){case"user_cancel":return"signPopup.error.userCancel";case"no_certificates":return"signPopup.error.noCertificates";case"invalid_argument":return"signPopup.error.invalidArgument";case"technical_error":return"signPopup.error.technicalError";case"no_implementation":return"signPopup.error.noImplementation";case"not_allowed":return"https:"!==window.location.protocol?"signPopup.error.notAllowed.https":"signPopup.error.notAllowed";case"pin_blocked":return"signPopup.error.pinBlocked";default:return he}})(e.message):he;t(N({error:!0,intlTitle:"signPopup.error.title",intlMessage:n}))}else t(N("error400_planningView"===e?{type:"info",intlTitle:"",intlMessage:"customError.400.planningView.migrated_doc"}:{error:!0,intlTitle:he}));var n;t({type:M.CLOSE_ALL_POPUPS,payload:{}})}function be(e){var t;const n=(null===(t=e.headers["content-disposition"])||void 0===t?void 0:t.split("''")[1])||"download",r=window.URL.createObjectURL(new Blob([e.data])),o=document.createElement("a");o.href=r,o.style.display="none",o.setAttribute("download",n),document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(r)}function ye(e,t){return e.replace(/{([^{]+)}/g,(e,n)=>null===(n=t[n])?"":n)}let xe=function(e){return e.SET_PROJECT_TYPES="SET_PROJECT_TYPES",e.SET_PROJECT_CONTAINER="SET_PROJECT_CONTAINER",e}({});function we(){return async(e,t)=>{const{applicationId:n,projectId:r,legacy:o}=t().projectState;var i;if(!o)try{const t=await fe()({method:"get",url:`${window.DOC2_BACKEND_URL}/application/${n}/project/${r}/container`});if(t.status){const n=t.data,r=n.projektiOsaContainers.map(e=>Se(e)),o=Se(n.projectContainer);e((i=r,{type:xe.SET_PROJECT_TYPES,payload:{projectType:i}})),e(function(e){return{type:xe.SET_PROJECT_CONTAINER,payload:{projectContainer:e}}}(o))}}catch(t){ve(t,e)}}}function Se(e){var t,n;return{type:null!==(t=e.projectPart)&&void 0!==t?t:"",signed:e.signed,revision:e.revisionId,signers:(n=e.signatures,n.map(e=>({name:e.fullName,date:new Date(e.signedAt)})))}}let _e=function(e){return e.SET_GRUPI_MARKSONA_CODE_TO_TEXTS="SET_GRUPI_MARKSONA_CODE_TO_TEXTS",e.SET_GRUPP_CODE_TO_TEXTS="SET_GRUPP_CODE_TO_TEXTS",e.SET_PROJEKTI_OSA_CODE_TO_TEXTS="SET_PROJEKTI_OSA_CODE_TO_TEXTS",e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS="SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS",e.SET_EHITISED_CODE_TO_TEXTS="SET_EHITISED_CODE_TO_TEXTS",e.SET_PLANNING_FATYS_CODE_TO_TEXTS="SET_PLANNING_FATYS_CODE_TO_TEXTS",e}({});let je=function(e){return e.ADD_FILTER="ADD_FILTER",e.REMOVE_FILTER="REMOVE_FILTER",e.SET_FILTER="SET_FILTER",e.CLEAR_FILTER="CLEAR_FILTER",e.POPULATE_FILTER="POPULATE_FILTER",e.CLEAR_ALL_FILTERS="CLEAR_ALL_FILTERS",e}({});function Ee(e){return{type:je.POPULATE_FILTER,payload:{filter:e}}}function Ce(){return{type:je.CLEAR_ALL_FILTERS,payload:{}}}let ke=function(e){return e.SET_PERMISSIONS="SET_PERMISSIONS",e}({});let Te=0;function Pe(e){e||(e=Date.now().toString());const t=`${e}-${Te}`;return Te=(Te+1)%Number.MAX_SAFE_INTEGER,t}let Re=function(e){return e[e.FileRestricted=0]="FileRestricted",e}({});function Oe(e){const t=Pe();return{...e,id:t,error:e.error||!1}}const Ie={alerts:[],signRefusalOpen:!1,makeConfidentialOpen:!1,signDocumentListOpen:!1,restrictAccessOpen:!1,replaceFileOpen:!1,enableFilter:!0};let Ae=function(e){return e.SET_INFO="SET_INFO",e.TOGGLE_REFERENCE_CREATING="TOGGLE_REFERENCE_CREATING",e.TOGGLE_REFERENCE_CLONING="TOGGLE_REFERENCE_CLONING",e}({});function Me(e){return{type:Ae.TOGGLE_REFERENCE_CREATING,payload:{toggled:e}}}function De(e){return{type:Ae.TOGGLE_REFERENCE_CLONING,payload:{toggled:e}}}function Fe(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return e(Me(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.USE_BASE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&Le(t,e)}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Me(!1))})}}function Ne(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return e(De(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CLONE_BASE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&Le(t,e)}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(De(!1))})}}function Le(e,t){t(ze(e.projectId)),t(Ge(e.applicationType)),"LEGACY"===e.type?t(Qe(!0)):t(Qe(!1)),t(Ce()),t(nt()),t(at()),t(st()),t(lt())}let $e=function(e){return e.TOGGLE_PROJECT_CREATION="TOGGLE_PROJECT_CREATION",e.NAVIGATE_FORWARD_PROJECT_CREATION="NAVIGATE_FORWARD_PROJECT_CREATION",e.NAVIGATE_BACKWARD_PROJECT_CREATION="NAVIGATE_BACKWARD_PROJECT_CREATION",e.SET_CREATION_TYPE="SET_CREATION_TYPE",e.SET_PROJECT_ID="SET_PROJECT_ID",e.SET_APPLICATION_TYPE="SET_APPLICATION_TYPE",e.SET_REFERENCE="SET_REFERENCE",e.SET_FILES="SET_FILES",e.SET_PLANNING_FILES="SET_PLANNING_FILES",e.ADD_FILE="ADD_FILE",e.EDIT_FILE="EDIT_FILE",e.SELECT_FILE="SELECT_FILE",e.DESELECT_FILE="DESELECT_FILE",e.SELECT_ALL_FILES="SELECT_ALL_FILES",e.CLEAR_SELECTED_FILES="CLEAR_SELECTED_FILES",e.MODIFY_REQUESTS_IN_PROGRESS="MODIFY_REQUESTS_IN_PROGRESS",e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS="MODIFY_BLOCKING_REQUESTS_IN_PROGRESS",e.TOGGLE_FILE_POPOVER_OPEN="TOGGLE_FILE_POPOVER_OPEN",e.SET_APPLICATION_ID="SET_APPLICATION_ID",e.TOGGLE_IS_LOADING_CURRENT_PROJECT="TOGGLE_IS_LOADING_CURRENT_PROJECT",e.TOGGLE_PROJECT_NAME_SENDING="TOGGLE_PROJECT_NAME_SENDING",e.TOGGLE_DELETION_PENDING="TOGGLE_DELETION_PENDING",e.SET_ALLOWED_EXTENSIONS="SET_ALLOWED_EXTENSIONS",e.TOGGLE_IS_PROJECT_READ_ONLY="TOGGLE_IS_PROJECT_READ_ONLY",e.TOGGLE_IS_PROJECT_LEGACY="TOGGLE_IS_PROJECT_LEGACY",e.SET_CAN_ADD_AUDIT="SET_CAN_ADD_AUDIT",e.SET_CAN_REFERENCE_BASE_PROJECT="SET_CAN_REFERENCE_BASE_PROJECT",e.INITIALIZATION="INITIALIZATION",e}({});function Ve(e){return{type:$e.TOGGLE_PROJECT_CREATION,payload:{toggled:e}}}function Be(){return{type:$e.NAVIGATE_FORWARD_PROJECT_CREATION,payload:{}}}function ze(e){return{type:$e.SET_PROJECT_ID,payload:{value:e}}}function Ge(e){return{type:$e.SET_APPLICATION_TYPE,payload:{value:e}}}function Ue(e){return{type:$e.SET_REFERENCE,payload:{value:e}}}function He(e){return{type:$e.SET_FILES,payload:{files:e}}}function We(e){return{type:$e.SELECT_FILE,payload:{id:e}}}function qe(e){return{type:$e.DESELECT_FILE,payload:{id:e}}}function Ye(e){return{type:$e.MODIFY_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function Ke(e){return{type:$e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function Je(e){return{type:$e.TOGGLE_IS_LOADING_CURRENT_PROJECT,payload:{toggled:e}}}function Xe(e){return{type:$e.TOGGLE_PROJECT_NAME_SENDING,payload:{toggled:e}}}function Ze(e){return{type:$e.TOGGLE_DELETION_PENDING,payload:{toggled:e}}}function Qe(e){return{type:$e.TOGGLE_IS_PROJECT_LEGACY,payload:{toggled:e}}}function et(){return{type:$e.CLEAR_SELECTED_FILES,payload:{}}}function tt(e){return{type:$e.SET_CREATION_TYPE,payload:{type:e}}}function nt(){return async(e,t)=>{const{applicationId:n,isProceeding:r,isPlanningView:o}=t().projectState;if(n)return e(Je(!0)),fe()({method:"get",url:`${window.DOC2.API_BASE}${ye(window.DOC2.GET_CURRENT_PROJECT,{applicationNumber:n})}`}).then(t=>{var o;200===t.status&&("LEGACY"===t.data.type&&(e(Qe(!0)),e(ze(n))),"LEGACY"!==t.data.type&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType))),e(Ue(t.data.reference)),e((o=function(e,t){return{canCreateNewVersion:!t&&e.canCreateNewVersion,canRead:e.canRead,canAccessFiles:e.canAccessFiles,canWrite:!t&&e.canWrite,canDelete:!t&&e.canDelete,canSign:!t&&e.canSign,canCreateRestrictions:e.canCreateRestrictions,canAccessRestrictedFiles:e.canAccessRestrictedFiles,canCloneForEditing:!t&&e.canCloneForEditing}}(t.data.permission,r),{type:ke.SET_PERMISSIONS,payload:{permissions:o}})))}).catch(t=>{const n=t.response;if(400===n.status&&"ProjectNotStarted"===n.data[0].code)e(Ve(!0)),e(V(!1)),e(ze()),e(Ge());else if(o&&400===n.status&&"ProjectCannotBeStarted"===n.data[0].code){ve("error400_planningView",e)}else ve(t,e)}).finally(()=>e(Je(!1)));console.warn("loadCurrentProject: Missing applicationId")}}function rt(){return async(e,t)=>{const{applicationId:n}=t().projectState,{permissions:r}=t().permissions;if(n)return e(Xe(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_PROJECT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType)),e(Ue(t.data.reference)),"LEGACY"===t.data.type?e(Qe(!0)):e(Qe(!1)),r.canCreateNewVersion?(e(Ce()),e(nt()),e(at()),e(st()),e(lt())):(e(Be()),e(nt())))}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Xe(!1))});console.warn("sendCreateProject: Missing applicationId")}}function ot(){return async(e,t)=>{const{applicationId:n}=t().projectState,{permissions:r}=t().permissions;if(n)return e(Xe(!0)),e(Ke(1)),fe()({method:"post",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_AUDIT,{applicationId:n})}`,headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(ze(t.data.projectId)),e(Ge(t.data.applicationType)),e(Ue(t.data.reference)),e(Qe(!1)),r.canCreateNewVersion?(e(Ce()),e(nt()),e(at()),e(st()),e(lt())):(e(Be()),e(nt())))}).catch(t=>ve(t,e)).finally(()=>{e(Ke(-1)),e(Xe(!1))});console.warn("sendCreateAudit: Missing applicationId")}}function it(){return async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState;if(n&&r)return e(Ze(!0)),fe()({method:"post",url:`${window.DOC2_BACKEND_URL}/application/${n}/project/${r}/cancel`,headers:{"Content-Type":"application/json"}}).then(t=>{if(204===t.status){e(He([])),e(nt())}}).catch(t=>ve(t,e)).finally(()=>e(Ze(!1)));console.warn("requestProjectDeletion: Missing required parameters",{applicationId:n,projectId:r})}}function at(){return async e=>fe()({method:"get",url:`${window.DOC2_BACKEND_URL}/config`}).then(t=>{const n=t.data;if(200===t.status){e((o=n.classifiers.projektiOsa,{type:_e.SET_PROJEKTI_OSA_CODE_TO_TEXTS,payload:{codes:o}})),e(function(e){return{type:_e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS,payload:{codes:e}}}(n.classifiers.projektiStaadium)),e(function(e){return{type:_e.SET_GRUPP_CODE_TO_TEXTS,payload:{codes:e}}}(n.classifiers.grupp)),e((r=n.allowedExtensions.map(e=>`.${e}`),{type:$e.SET_ALLOWED_EXTENSIONS,payload:{extensions:r}}));const t=n.classifiers.projektiOsa.map(e=>e.parentCode||e.code).filter((e,t,n)=>n.indexOf(e)===t);e(Ee({selector:"projOsa",values:t})),e(Ee({selector:"grupp",values:n.classifiers.grupp.map(e=>e.code)})),e(Ee({selector:"projStaadium",values:n.classifiers.projektiStaadium.map(e=>e.code)}))}var r,o}).catch(t=>ve(t,e))}function st(){return async(e,t)=>{const{applicationId:n}=t().projectState;return fe()({method:"get",url:`${window.REACT_APP_DOCUMENT_SERVICE_ENDPOINT}/document/${n}`}).then(t=>{const n=t.data;if(200===t.status){let t=n.buildingDatas||[];t=t.map(function(e){return{code:e.ehrCode,text:e.buildingName}}),e((r=t,{type:_e.SET_EHITISED_CODE_TO_TEXTS,payload:{codes:r}}));const o=n.documentType;o&&e(function(e){return async t=>fe()({method:"get",url:`${window.REACT_APP_CLASSIFIER_SERVICE_ENDPOINT}/classifier/faty/${e}`}).then(e=>{const n=e.data;if(200===e.status){const e=n.filter(e=>!!e.plankCode).map(e=>({code:e.plankCode,text:e.fatyName}));t(function(e){return{type:_e.SET_PLANNING_FATYS_CODE_TO_TEXTS,payload:{codes:e}}}(e))}}).catch(e=>ve(e,t))}(o))}var r}).catch(t=>ve(t,e))}}function lt(){return async(e,t)=>{const{applicationId:n,projectId:r,legacy:o,isPlanningProject:i}=t().projectState;if(!n||!r)return void console.warn("loadProjectFiles: Missing required parameters",{applicationId:n,projectId:r});const a=i?window.DOC2.GET_PLANNING_FILE_LIST:window.DOC2.GET_FILE_LIST,s=o?`${window.DOC2.API_BASE}${ye(window.DOC2.GET_FILE_LIST_LEGACY,{applicationId:n})}`:`${window.DOC2.API_BASE}${ye(a,{applicationNumber:n,projectId:r})}`;try{const t=await fe()({method:"get",url:s});if(200===t.status){if(i)return e(function(e){return{type:$e.SET_PLANNING_FILES,payload:{files:e}}}(t.data)),e(we());const n=[];for(const e of t.data)n.push(_t(e));e(He(n));const r=n.map(e=>e.projTunnus).filter((e,t,n)=>null!==e&&n.indexOf(e)===t),o=n.map(e=>e.jrkNr).filter((e,t,n)=>null!==e&&n.indexOf(e)===t);return e(Ee({selector:"projTunnus",values:r})),e(Ee({selector:"jrkNr",values:o})),e(we())}}catch(t){ve(t,e)}}}const ct=104857600,ut=314572800;async function dt(e){return fe()({url:`${window.DOC2.API_BASE}${window.DOC2.MULTIPART_INIT}`,data:JSON.stringify({fileName:e}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.data.uploadId)}async function pt(e,t,n){const r=new FormData;r.append("file",e);const o=new Blob([JSON.stringify({uploadId:t,partNumber:n})],{type:"application/json"});return r.append("json",o),fe()({url:`${window.DOC2.API_BASE}${window.DOC2.MULTIPART_UPLOAD}`,data:r,method:"POST",headers:{"Content-Type":"multipart/form-data"}})}function ft(e,t,n){return async(r,o)=>{const{applicationId:i,projectId:a}=o().projectState;if(!i||!e)return void console.warn("uploadContainer: Missing required parameters",{applicationId:i,container:!!e});if(e.size>ut){alert(t),r(Ye(1));try{await async function(e,t,n,r,o){const i=Math.ceil(t.size/ct),a=await dt(t.name);for(let e=0;e<i;e++){const n=e*ct,r=Math.min(n+ct,t.size),o=t.slice(n,r);await pt(o,a,e+1)}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.CONTAINER_COMPLETE,{applicationId:n})}`,data:JSON.stringify({uploadId:a}),method:"POST",headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(N({message:"Failid edukalt üles laaditud.",title:"Oled edukalt laadinud ülesse 1 faili."})),e(r?lt():nt()),o&&o())})}(r,e,i,a,n)}catch(e){ve(e,r)}finally{r(Ye(-1))}return}const s=new FormData;return s.append("file",e),r(Ye(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.UPLOAD_CONTAINER,{applicationNumber:i})}`,data:s,method:"POST"}).then(e=>{200===e.status&&(r(N({message:"Failid edukalt üles laaditud.",title:"Oled edukalt laadinud ülesse 1 faili."})),r(a?lt():nt()),n&&n())}).catch(e=>ve(e,r)).finally(()=>r(Ye(-1)))}}function gt(e){return async(t,n)=>{const{applicationId:r,projectId:o}=n().projectState;if(r&&o)return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_LEGACY_CONTAINER,{applicationId:r})}`,method:"GET",headers:{"Content-Type":"application/json"},responseType:"blob"}).then(t=>{200===t.status&&be(t),e&&e()}).catch(e=>ve(e,t));console.warn("downloadLegacyContainer: Missing required parameters",{applicationId:r,projectId:o})}}async function ht(e,t,n){const r=Math.ceil(e.size/ct),o=await dt(e.name);for(let t=0;t<r;t++){const n=t*ct,r=Math.min(n+ct,e.size),i=e.slice(n,r);await pt(i,o,t+1)}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.FILE_COMPLETE,{applicationId:t,projectId:n})}`,data:JSON.stringify({uploadId:o}),method:"POST",headers:{"Content-Type":"application/json"}})}function mt(e,t,n){return async(r,o)=>{const{applicationId:i,projectId:a,isPlanningProject:s}=o().projectState;if(!i||!a)return void console.warn("uploadFiles: Missing required parameters",{applicationId:i,projectId:a});if(0===e.length)return;const l=e.some(e=>e.size>ut);if(l){alert(t),r(Ye(1));try{await async function(e,t,n,r,o){for(const e of t)await ht(e,n,r);e(N({message:"Failid edukalt üles laaditud.",title:`Oled edukalt laadinud ülesse ${t.length} fail(i).`})),e(lt()),o&&o()}(r,e,i,a,n)}catch(e){ve(e,r)}finally{r(Ye(-1))}return}const c=new FormData;for(const t of e)c.append("files",t);r(Ye(1));const u=s?window.DOC2.UPLOAD_PLANNING_FILES:window.DOC2.UPLOAD_FILES;return fe()({url:`${window.DOC2.API_BASE}${ye(u,{applicationNumber:i,projectId:a})}`,data:c,method:"POST"}).then(t=>{200===t.status&&(r(N({message:"Failid edukalt üles laaditud.",title:`Oled edukalt laadinud ülesse ${e.length} fail(i).`})),r(lt()),n&&n())}).catch(e=>ve(e,r)).finally(()=>r(Ye(-1)))}}function vt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i}=r().projectState;if(o&&i)return n(Ye(1)),n(Ke(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DELETE_PROJECT_CONTAINER,{applicationNumber:o,projectId:i})}`,data:JSON.stringify({projektiOsa:e}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>{if(204===e.status)return n(lt()).then(()=>{t&&t()})}).catch(e=>ve(e,n)).finally(()=>{n(Ye(-1)),n(Ke(-1))});console.warn("requestDeleteContainer: Missing required parameters",{applicationId:o,projectId:i})}}function bt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i,selectedFilesIds:a}=r().projectState;let s=e;if(o&&i){if(!e){if(0===a.length)return;s=a}return fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.DELETE_FILES,{applicationNumber:o,projectId:i})}`,method:"POST",headers:{"Content-Type":"application/json"},data:JSON.stringify(s)}).then(e=>{202===e.status&&n(lt()),t&&t()}).catch(e=>ve(e,n))}console.warn("requestDeleteFile: Missing required parameters",{applicationId:o,projectId:i})}}function yt(e){return async(t,n)=>{const{applicationId:r,projectId:o}=n().projectState,i=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_PROJEKTI_OSA_CONTAINER,{applicationId:r,projectId:o})}`;t(Ye(1)),t(Ke(1));try{const t=await fe()({url:i,method:"GET",responseType:"blob",params:{projektiOsa:e}});200===t.status&&be(t)}finally{t(Ye(-1)),t(Ke(-1))}}}const xt=e=>e.length>0&&"ehitiseSeos"in e[0];function wt(e,t){return async(n,r)=>{const{applicationId:o,projectId:i,selectedFilesIds:a,legacy:s,projectFiles:l}=r().projectState;let c=null==e?void 0:e.map(e=>e.id);if(!o||!i)return void console.warn("downloadFiles: Missing required parameters",{applicationId:o,projectId:i});if(!e){if(0===a.length)return;c=a}let u=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_FILE,{applicationNumber:o,projectId:i})}`;return s&&(u=`${window.DOC2.API_BASE}${ye(window.DOC2.DOWNLOAD_FILE_LEGACY,{applicationNumber:o,projectId:i})}`,xt(l)&&(c=l.filter(e=>{var t;return null===(t=c)||void 0===t?void 0:t.includes(e.id)}).map(e=>e.fileReference).filter(Boolean))),n(Ye(1)),n(Ke(1)),fe()({url:u,method:"POST",data:JSON.stringify(c),headers:{"Content-Type":"application/json"},responseType:"blob"}).then(e=>{200===e.status&&be(e),t&&t()}).catch(t=>{if(!e||!xt(e))return ve(t,n);{const r=null==e?void 0:e.find(e=>{var t,n;return!!e.akPiirang&&((null===(t=c)||void 0===t?void 0:t.includes(e.id))||s&&e.fileReference&&(null===(n=c)||void 0===n?void 0:n.includes(e.fileReference)))});if(r&&403===t.response.status)return n(N({error:!0,template:Re.FileRestricted,props:{file:r}}))}}).finally(()=>{n(Ye(-1)),n(Ke(-1))})}}function St(){return async(e,t)=>{const{applicationId:n}=t().projectState;if(n)return fe()({method:"get",url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_OPTIONS,{applicationId:n})}`}).then(t=>{if(200===t.status&&t.data&&(e((n=t.data.canAddAudit,{type:$e.SET_CAN_ADD_AUDIT,payload:{value:n}})),e(function(e){return{type:$e.SET_CAN_REFERENCE_BASE_PROJECT,payload:{value:e}}}(t.data.canReferenceBaseProject)),t.data.baseProjectInfo)){const n=t.data.baseProjectInfo;e(function(e){return{type:Ae.SET_INFO,payload:{info:e}}}({nr:n.nr,type:n.type,signatureDate:J(new Date(n.signatureDate)),disabled:n.disabled,documentTypeName:n.documentTypeName}))}var n}).catch(t=>{ve(t,e)});console.warn("loadCreateProjectOptions: Missing applicationId")}}function _t(e){var t;let n=null;return n=1==e.ehitiseSeosKoigiga?"Kõik":e.ehitiseSeosEhrKood+"",{id:e.projectFileId,grupp:e.grupp,failiNimetus:e.name,fileReference:e.fileReference,projOsa:e.projektiOsa,projTunnus:e.projektiTunnus,jrkNr:e.jrkNr,projStaadium:e.projektiStaadium,dateCreated:e.dateCreated,ehitiseSeos:n,akPiirang:e.akPiirang,ybnVersioon:e.ybnVersioon,errorMessages:e.errorMessages,locked:e.locked,hasChanged:null!==(t=e.hasChanged)&&void 0!==t&&t,signers:[]}}var jt=a(526);const Et="http://localhost:8080".replace(/\/+$/,"");class Ct{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe();var r;(this.basePath=t,this.axios=n,e)&&(this.configuration=e,this.basePath=null!==(r=e.basePath)&&void 0!==r?r:t)}}class kt extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Tt={},Pt="https://example.com",Rt=function(e,t,n){if(null==n)throw new kt(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Ot=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}};function It(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)||t instanceof Set?t.forEach(t=>It(e,t,n)):Object.keys(t).forEach(r=>It(e,t[r],`${n}${""!==n?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const At=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];It(t,r),e.search=t.toString()},Mt=function(e,t){return t instanceof Set?Array.from(t):t},Dt=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{},Mt):e||""},Ft=function(e){return e.pathname+e.search+e.hash},Nt=function(e,t,n,r){return function(){var o;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const s={...e.options,url:(i.defaults.baseURL?"":null!==(o=null==r?void 0:r.basePath)&&void 0!==o?o:a)+e.url};return i.request(s)}};const Lt=function(e){const t=function(e){return{finalizeIdCardSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("finalizeIdCardSigning","genericSignFinalizeRequest",t);const r=new URL("/api/v1/generic/finalize-id-card-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},finalizeMobileSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("finalizeMobileSigning","genericSignFinalizeRequest",t);const r=new URL("/api/v1/generic/finalize-mobile-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},finalizeSmartSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("finalizeSmartSigning","genericSignFinalizeRequest",t);const r=new URL("/api/v1/generic/finalize-smart-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},prepareIdCardSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("prepareIdCardSigning","genericIdCardSignInitRequest",t);const r=new URL("/api/v1/generic/prepare-id-card-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},prepareMobileSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("prepareMobileSigning","genericMobileIdSignInitRequest",t);const r=new URL("/api/v1/generic/prepare-mobile-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}},prepareSmartSigning:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rt("prepareSmartSigning","genericSmartIdSignInitRequest",t);const r=new URL("/api/v1/generic/prepare-smart-signing",Pt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await Ot(a,e),a["Content-Type"]="application/json",a.Accept="application/json,*/*",At(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Dt(t,i,e),{url:Ft(r),options:i}}}}(e);return{async finalizeIdCardSigning(n,r){var o,i,a;const s=await t.finalizeIdCardSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.finalizeIdCardSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async finalizeMobileSigning(n,r){var o,i,a;const s=await t.finalizeMobileSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.finalizeMobileSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async finalizeSmartSigning(n,r){var o,i,a;const s=await t.finalizeSmartSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.finalizeSmartSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async prepareIdCardSigning(n,r){var o,i,a;const s=await t.prepareIdCardSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.prepareIdCardSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async prepareMobileSigning(n,r){var o,i,a;const s=await t.prepareMobileSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.prepareMobileSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)},async prepareSmartSigning(n,r){var o,i,a;const s=await t.prepareSmartSigning(n,r),l=null!==(o=null==e?void 0:e.serverIndex)&&void 0!==o?o:0,c=null===(i=Tt["GenericSigningApi.prepareSmartSigning"])||void 0===i||null===(a=i[l])||void 0===a?void 0:a.url;return(t,n)=>Nt(s,fe(),Et,e)(t,c||n)}}};class $t extends Ct{finalizeIdCardSigning(e,t){return Lt(this.configuration).finalizeIdCardSigning(e,t).then(e=>e(this.axios,this.basePath))}finalizeMobileSigning(e,t){return Lt(this.configuration).finalizeMobileSigning(e,t).then(e=>e(this.axios,this.basePath))}finalizeSmartSigning(e,t){return Lt(this.configuration).finalizeSmartSigning(e,t).then(e=>e(this.axios,this.basePath))}prepareIdCardSigning(e,t){return Lt(this.configuration).prepareIdCardSigning(e,t).then(e=>e(this.axios,this.basePath))}prepareMobileSigning(e,t){return Lt(this.configuration).prepareMobileSigning(e,t).then(e=>e(this.axios,this.basePath))}prepareSmartSigning(e,t){return Lt(this.configuration).prepareSmartSigning(e,t).then(e=>e(this.axios,this.basePath))}}class Vt{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.awsv4=t.awsv4,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...null===(e=t.baseOptions)||void 0===e?void 0:e.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(e){return null!==e&&/^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(e)}}const Bt=require("ehr-auth-react");let zt=function(e){return e.ENABLE_SIGN_PROJEKTI_OSA="ENABLE_SIGN_PROJEKTI_OSA",e.SET_SIGN_CHALLENGE="SET_SIGN_CHALLENGE",e.SET_SIGN_SESSION="SET_SIGN_SESSION",e.COMPLETE_SIGNING="COMPLETE_SIGNING",e.TOGGLE_SIGN_IN_PROGRESS="TOGGLE_SIGN_IN_PROGRESS",e.CANCEL_SIGN_PROJEKTI_OSA="CANCEL_SIGN_PROJEKTI_OSA",e.SET_SIGN_METHOD="SET_SIGN_METHOD",e.SET_MOBILE_NUMBER="SET_MOBILE_NUMBER",e}({});function Gt(e,t){return{type:zt.ENABLE_SIGN_PROJEKTI_OSA,payload:{revision:e,projektiOsa:t}}}function Ut(e){return{type:zt.SET_SIGN_METHOD,payload:{method:e}}}function Ht(e){return{type:zt.SET_SIGN_CHALLENGE,payload:{text:e}}}function Wt(e){return{type:zt.SET_SIGN_SESSION,payload:{text:e}}}function qt(e){return{type:zt.SET_MOBILE_NUMBER,payload:{text:e}}}function Yt(){return{type:zt.COMPLETE_SIGNING,payload:{}}}function Kt(e){return{type:zt.TOGGLE_SIGN_IN_PROGRESS,payload:{toggled:e}}}function Jt(){return{type:zt.CANCEL_SIGN_PROJEKTI_OSA,payload:{}}}function Xt(){return(e,t)=>{const{method:n}=t().signPopup;switch(n){case ue.ID_CARD:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o}=t().signPopup;if(n&&r&&o)try{e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,i=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:a,fileName:s,messageQueueName:l,correlationId:c,metadata:u}=i.data,d=window.hwcrypto;if(!d)throw new TypeError("Could not find hwcrypto");const p=await d.getCertificate({lang:"et"}),f=jt.iI(new Uint8Array(p.encoded)),g=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),h=await g.prepareIdCardSigning({fileId:a,fileName:s,messageQueueName:l,correlationId:c,metadata:u,addToExisting:!1,certificate:f}),{signatureId:m,containerId:v,dataToSignHash:b,digestAlgorithm:y}=h.data;e(Wt(m||""));const x=new Uint8Array(jt.bg(b||""));let w=y||"SHA-256";w.startsWith("SHA")&&!w.startsWith("SHA-")&&(w=w.replace("SHA","SHA-"));const S=await d.sign(p,{type:w,value:x},{lang:"et"}),_=jt.iI(S.value);await g.finalizeIdCardSigning({containerId:v||"",signatureId:m||"",signature:_}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}});break;case ue.MOBILE_ID:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o,mobileNumber:i}=t().signPopup;if(n&&r&&o&&i)try{var a,s,l;e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,c=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:u,fileName:d,messageQueueName:p,correlationId:f,metadata:g}=c.data,h=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),m=(null===(a=Bt.KeycloakService.keycloak)||void 0===a||null===(s=a.tokenParsed)||void 0===s||null===(l=s.ehr)||void 0===l?void 0:l.id_code)||"",v=await h.prepareMobileSigning({personIdentifier:m,phoneNr:i,fileId:u,fileName:d,messageQueueName:p,correlationId:f,metadata:g,addToExisting:!1}),{containerId:b,signatureId:y,challengeId:x}=v.data;e(Ht(x||"")),e(Wt(y||"")),await h.finalizeMobileSigning({containerId:b||"",signatureId:y||""}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}else console.error("[startMobileIdSigning] Aborted — missing required fields:",{applicationId:n,projectId:r,projektiOsa:o,mobileNumber:i})});break;case ue.SMART_ID:e(async(e,t)=>{const{applicationId:n,projectId:r}=t().projectState,{projektiOsa:o}=t().signPopup;if(n&&r&&o)try{var i,a,s;e(Kt(!0));const t=`${window.DOC2.API_BASE}/application/${n}/project/${r}/container/signing/prepare`,l=await fe().post(t,{projektiOsa:"SIGN_CONTAINER"===o?null:o}),{fileId:c,fileName:u,messageQueueName:d,correlationId:p,metadata:f}=l.data,g=new $t(new Vt({basePath:window.REACT_APP_SIGN_API})),h=(null===(i=Bt.KeycloakService.keycloak)||void 0===i||null===(a=i.tokenParsed)||void 0===a||null===(s=a.ehr)||void 0===s?void 0:s.id_code)||"",m=await g.prepareSmartSigning({personIdentifier:h,fileId:c,fileName:u,messageQueueName:d,correlationId:p,metadata:f,addToExisting:!1}),{containerId:v,signatureId:b,challengeId:y}=m.data;e(Ht(y||"")),e(Wt(b||"")),await g.finalizeSmartSigning({containerId:v||"",signatureId:b||""}),e(we()),e(lt()),e(Yt())}catch(t){e(Kt(!1)),e(Yt()),ve(t,e)}})}}}const Zt=(0,P.connect)(function(e){return{isOpen:e.uiState.signDocumentListOpen,signState:e.signState,projectId:e.projectState.projectId,permissions:e.permissions.permissions,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0}},function(e){return{togglePopup:t=>{e(F(t))},addAlert:t=>{e(N(t))},enableSignPopup:(t,n)=>{e(Gt(t,n))},unlockContainer:t=>{e(vt(void 0,t))},downloadProjektiOsaContainer:t=>{e(yt(t))}}})(ce);let Qt=function(e){return e.SET_FILE_IDS="SET_FILE_IDS",e.RELEASE_FILE_IDS="RELEASE_FILE_IDS",e.MODIFY_REQUESTS_IN_PROGRESS="MODIFY_REQUESTS_IN_PROGRESS",e}({});function en(e){return{type:Qt.SET_FILE_IDS,payload:{fileIds:e}}}function tn(e){return{type:Qt.RELEASE_FILE_IDS,payload:{fileIds:e}}}function nn(e){return{type:Qt.MODIFY_REQUESTS_IN_PROGRESS,payload:{delta:e}}}function rn(e,t,n,r){return async(o,i)=>{const a=i(),{applicationId:s}=a.projectState;if(s)return o(nn(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.CREATE_RESTRICTION,{applicationId:s})}`,data:JSON.stringify({failid:e.map(e=>e.fileReference),juriidilineAlus:t,pohjendus:n,piirangLopp:r}),method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>{200===e.status&&o(lt())}).catch(e=>ve(e,o)).finally(()=>{o(nn(-1)),o(en(void 0))})}}function on(e){return async(t,n)=>{const r=n(),{applicationId:o}=r.projectState;if(o)return t(nn(1)),fe()({url:`${window.DOC2.API_BASE}${ye(window.DOC2.LIFT_RESTRICTION,{applicationId:o})}`,data:JSON.stringify({failid:e.map(e=>e.fileReference)}),method:"DELETE",headers:{"Content-Type":"application/json"}}).then(e=>{204===e.status&&t(lt())}).catch(e=>{ve(e,t)}).finally(()=>{t(nn(-1)),t(tn(void 0))})}}const an=e=>{let{closePopup:t,files:n,requestRestrictFiles:r,requestsInProgress:o,permissions:i}=e;const a=(0,G.useIntl)(),[s,l]=(0,d.useState)(),[c,u]=(0,d.useState)(),[p,f]=(0,d.useState)();return(0,R.jsx)(R.Fragment,{children:null!=n&&n.length?(0,R.jsxs)(I,{title:"popupRestrictAccess.title",onCancel:()=>t(),onAccept:function(){null!=n&&n.length&&s&&c&&p&&r(n,s,c,p)},disableAccept:o||!(s&&c&&p),children:[(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"popupRestrictAccess.overview"})}),(0,R.jsx)("ul",{className:"list-with-arrows",children:n.map(e=>(0,R.jsx)("li",{children:e.failiNimetus},e.id))}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.basis"}),info:{content:"popupRestrictAccess.basis.label"},required:!0,component:(0,R.jsx)(g.TextArea,{placeholder:a.formatMessage({id:"popupRestrictAccess.basis.placeholder"}),onChange:e=>l(e),maxLength:4e3})}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.explanation"}),info:{content:"popupRestrictAccess.explanation.label"},required:!0,component:(0,R.jsx)(g.TextArea,{placeholder:a.formatMessage({id:"popupRestrictAccess.explanation.placeholder"}),onChange:e=>u(e),maxLength:4e3})}),(0,R.jsx)(g.FieldWrapper,{label:a.formatMessage({id:"popupRestrictAccess.endDate"}),info:{content:"popupRestrictAccess.endDate.label"},required:!0,component:(0,R.jsx)(g.DatePicker,{onChange:e=>f(e)})})]}):null})};const sn=(0,P.connect)(function(e){const t=new Set(e.restrictFilesState.fileIds);return{files:t&&e.projectState.projectFiles.filter(e=>t.has(e.id)),permissions:e.permissions.permissions,requestsInProgress:e.restrictFilesState.requestsInProgress}},function(e){return{closePopup:()=>{e(en(void 0))},requestRestrictFiles:(t,n,r,o)=>{e(rn(t,n,r,o))}}})(an);var ln;function cn(){return cn=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},cn.apply(null,arguments)}function un(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",cn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,ln||(ln=d.createElement("path",{d:"M13.474 8.644l.882.882-8.683 8.682h-.881v-.881l8.682-8.683zm3.45-5.769a.96.96 0 00-.67.278L14.5 4.907 18.093 8.5l1.754-1.753a.954.954 0 000-1.352l-2.242-2.242a.941.941 0 00-.68-.278zm-3.45 3.057l-10.599 10.6v3.593h3.594l10.599-10.6-3.594-3.593z",fill:"#34394C"})))}const dn=d.forwardRef(un);a.p;var pn;function fn(){return fn=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},fn.apply(null,arguments)}function gn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",fn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,pn||(pn=d.createElement("path",{d:"M15.333 8.625v9.583H7.667V8.625h7.666zm-1.437-5.75H9.104l-.958.958H4.792V5.75h13.416V3.833h-3.354l-.958-.958zm3.354 3.833H5.75v11.5c0 1.055.862 1.917 1.917 1.917h7.666a1.922 1.922 0 001.917-1.917v-11.5z",fill:"#34394C"})))}const hn=d.forwardRef(gn);a.p;var mn;function vn(){return vn=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},vn.apply(null,arguments)}function bn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",vn({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,mn||(mn=d.createElement("path",{d:"M17.931 9.285A6.553 6.553 0 0011.5 4a6.559 6.559 0 00-5.819 3.535A5.245 5.245 0 001 12.75 5.254 5.254 0 006.25 18h11.375A4.377 4.377 0 0022 13.625c0-2.31-1.794-4.182-4.069-4.34zm-.306 6.965H6.25a3.499 3.499 0 01-3.5-3.5 3.477 3.477 0 013.115-3.474l.936-.096.438-.831A4.785 4.785 0 0111.5 5.75a4.815 4.815 0 014.716 3.876l.263 1.313 1.338.096a2.608 2.608 0 012.433 2.59 2.633 2.633 0 01-2.625 2.625zM8 11.875h2.231V14.5h2.538v-2.625H15l-3.5-3.5-3.5 3.5z",fill:"#34394C"})))}const yn=d.forwardRef(bn);a.p;var xn,wn;function Sn(){return Sn=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},Sn.apply(null,arguments)}function _n(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Sn({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,xn||(xn=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),wn||(wn=d.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8-1.41-1.42z",fill:"#00B649"})))}const jn=d.forwardRef(_n);a.p;var En,Cn;function kn(){return kn=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},kn.apply(null,arguments)}function Tn(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",kn({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,En||(En=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),Cn||(Cn=d.createElement("path",{d:"M9 15h6v2h-2v-2h-2v2H9v-2zm0-8h6v6h-2V7h-2v6H9V7zm2.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",fill:"#FDEBA4"})))}const Pn=d.forwardRef(Tn);a.p;var Rn,On;function In(){return In=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},In.apply(null,arguments)}function An(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",In({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Rn||(Rn=d.createElement("circle",{cx:12,cy:12,r:9,fill:"#fff"})),On||(On=d.createElement("path",{d:"M9 15h6v2h-2v-2h-2v2H9v-2zm0-8h6v6h-2V7h-2v6H9V7zm2.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",fill:"#FF7373"})))}const Mn=d.forwardRef(An);a.p;var Dn,Fn;function Nn(){return Nn=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},Nn.apply(null,arguments)}function Ln(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Nn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Dn||(Dn=d.createElement("g",{fill:"none"},d.createElement("path",{d:"M0 0h24v24H0V0z"}),d.createElement("path",{d:"M0 0h24v24H0V0z",opacity:.87}))),Fn||(Fn=d.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})))}const $n=d.forwardRef(Ln);a.p;var Vn,Bn,zn;function Gn(){return Gn=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},Gn.apply(null,arguments)}function Un(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",Gn({width:36,height:18,viewBox:"0 0 36 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Vn||(Vn=d.createElement("rect",{x:1,y:1,width:28,height:16,rx:3,fill:"#fff",stroke:"#FF7373",strokeWidth:2})),Bn||(Bn=d.createElement("circle",{cx:29,cy:9,r:5.25,fill:"#fff"})),zn||(zn=d.createElement("path",{d:"M27.25 10.75h3.5v1.167h-1.167V10.75h-1.166v1.167H27.25V10.75zm0-4.667h3.5v3.5h-1.167v-3.5h-1.166v3.5H27.25v-3.5zm1.744-2.916A5.83 5.83 0 0023.167 9a5.83 5.83 0 005.827 5.833A5.837 5.837 0 0034.834 9a5.837 5.837 0 00-5.84-5.833zm.006 10.5A4.665 4.665 0 0124.333 9 4.665 4.665 0 0129 4.333 4.665 4.665 0 0133.667 9 4.665 4.665 0 0129 13.667zM12.11 10.535H9.542L9.054 12H7.496l2.647-7.11H11.5L14.161 12h-1.557l-.494-1.465zM9.938 9.35h1.777l-.894-2.662-.883 2.662zm7.114-.2l-.762.82V12h-1.465V4.89h1.465v3.223l.645-.884 1.811-2.338h1.802L18.023 8.05 20.621 12h-1.743l-1.826-2.852z",fill:"#FF7373"})))}const Hn=d.forwardRef(Un),Wn=(a.p,!1),qn=e=>{let{file:t,className:n,titleClassName:r}=e;return t.akPiirang?(0,R.jsxs)("div",{className:n,children:[(0,R.jsx)("p",{className:r,children:(0,R.jsx)(g.Text,{raw:"document.isRestricted"})}),(0,R.jsx)(g.Text,{raw:"document.restriction.owner",values:{owner:t.akPiirang.teabeValdaja}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.reason",values:{reason:t.akPiirang.juriidilineAlus}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.description"}),(0,R.jsx)("br",{}),t.akPiirang.pohjendus?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(g.Text,{raw:t.akPiirang.pohjendus}),(0,R.jsx)("br",{})]}):null,(0,R.jsx)(g.Text,{raw:"document.restriction.start",values:{dateTime:J(new Date(t.akPiirang.piirangAlgus))}}),(0,R.jsx)("br",{}),(0,R.jsx)(g.Text,{raw:"document.restriction.end",values:{dateTime:J(new Date(t.akPiirang.piirangLopp))}})]}):null},Yn=e=>{let{files:t,loadFiles:n,activeFilters:r,deselectFile:o,selectFile:i,setEditFile:a,requestDeleteFile:s,projektiOsa:l,toggleFilePopover:c,downloadFiles:u,openPopoverId:p,onReplaceFile:f,applicationId:h,isAudit:m,toggleRestrictAccessPopupWith:v,toggleReleaseAccessPopupWith:b,selectedFilesIds:y,clearAllFiles:x,selectAllFiles:w,permissions:S,unlockFile:_,isProjectContainerSignedByAnyone:j,isBlockingRequestInProgress:E,isLegacy:C}=e;const[k,T]=(0,d.useState)({offset:0,limit:25}),[P,O]=(0,d.useState)([]),[I,A]=(0,d.useState)([]);function M(e){F(e,-1),N(e,void 0)}function D(e){F(e,1),N(void 0,e)}function F(e,t){0!==t&&O(n=>[...n.sort((n,r)=>n[e]<r[e]?t:n[e]>r[e]?-t:0)])}function N(e,n){A([(0,R.jsx)(g.Checkbox,{disabled:!(S.canRead||S.canWrite),onChange:L,checked:0!==t.length&&y.length===t.length}),(0,R.jsx)(le,{title:"document.fileName",index:"failiNimetus",onAccenting:M,onDescending:D,isAccenting:"failiNimetus"===e,isDescending:"failiNimetus"===n}),(0,R.jsx)(le,{title:m?"document.auditId":"document.projectId",index:"projTunnus",onAccenting:M,onDescending:D,isAccenting:"projTunnus"===e,isDescending:"projTunnus"===n}),...m?[]:[(0,R.jsx)(le,{title:"document.projectStage",index:"projStaadium",onAccenting:M,onDescending:D,isAccenting:"projStaadium"===e,isDescending:"projStaadium"===n})],(0,R.jsx)(le,{title:m?"document.auditType":"document.projectType",index:"projOsa",onAccenting:M,onDescending:D,isAccenting:"projOsa"===e,isDescending:"projOsa"===n}),(0,R.jsx)(le,{title:"document.groupName",index:"grupp",onAccenting:M,onDescending:D,isAccenting:"grupp"===e,isDescending:"grupp"===n}),(0,R.jsx)(le,{title:"document.jrkNr",index:"jrkNr",onAccenting:M,onDescending:D,isAccenting:"jrkNr"===e,isDescending:"jrkNr"===n}),(0,R.jsx)(le,{title:"document.hasErrorMessagesTitle",index:"errorMessages",onAccenting:M,onDescending:D,isAccenting:"errorMessages"===e,isDescending:"errorMessages"===n}),"",(0,R.jsx)(le,{title:"document.hasChangedTitle",index:"hasChanged",onAccenting:M,onDescending:D,isAccenting:"hasChanged"===e,isDescending:"hasChanged"===n}),"",""])}function L(e){(0!==t.length&&y.length===t.length)!==e&&(e?w():x())}function $(e){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(g.Text,{raw:"unlockDocument.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"unlockDocument.content"})})]}),(0,R.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",children:(0,R.jsx)(g.Text,{raw:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{colourScheme:"success",type:"reset",onClick:()=>{e.projOsa&&_(e.projOsa)},disabled:!e.projOsa,children:(0,R.jsx)(g.Text,{raw:"unlockDocument.open"})})]})]})}function V(e,t){return(0,R.jsx)(g.ControlledPopover,{content:(0,R.jsxs)("ul",{className:"doc2--paginated-table-more-popup",children:[(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>a(e),disabled:e.locked||!S.canWrite||j,children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.editDocument"})})]})}),Wn,(0,R.jsx)("li",{children:(0,R.jsx)(g.DeletePopover,{onConfirm:()=>s([e.id]),children:(0,R.jsxs)("button",{className:"doc2--icon-button doc2--no-padding mt-1",disabled:!S.canWrite,children:[(0,R.jsx)(hn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.deleteDocument"})})]})})}),S.canCreateRestrictions&&!e.akPiirang&&(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>v([e.id]),children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.restrictAccess"})})]})}),S.canCreateRestrictions&&!!e.akPiirang&&(0,R.jsx)("li",{children:(0,R.jsxs)("button",{type:"reset",className:"doc2--icon-button doc2--no-padding",onClick:()=>b([e.id]),children:[(0,R.jsx)(dn,{})," ",(0,R.jsx)("span",{className:"link-gray doc2--darker-color",children:(0,R.jsx)(g.Text,{raw:"editPopover.liftRestriction"})})]})})]}),placement:"bottom-end",toggle:()=>c(e.id),open:p===e.id,children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:E,children:(0,R.jsx)(dn,{})})})}function B(e,t){var n;let r=(0,R.jsx)("button",{className:"doc2--icon-button"});e.locked&&(r=j?(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(g.Text,{raw:"unlockDocument.disabled"}),placement:"bottom",children:(0,R.jsx)("div",{className:"doc2--icon-button-container-inline",children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:!0,children:(0,R.jsx)($n,{height:"24px",width:"24px",fill:se.colorGrey})})})}):(0,R.jsx)(g.Popover,{content:$(e),placement:"left",children:(0,R.jsx)("button",{className:"doc2--icon-button",disabled:E,children:(0,R.jsx)($n,{height:"24px",width:"24px",fill:se.colorGrey})})}));let a=(0,R.jsx)("button",{className:"doc2--icon-button"});e.hasChanged&&(a=(0,R.jsx)(g.Info,{placement:"bottom",tooltipText:"document.hasChanged"}));let s=(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(jn,{})});return(null===(n=e.errorMessages)||void 0===n?void 0:n.length)>0&&(s=j?(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(g.Text,{raw:"document.signedInvalidFileInfo"}),placement:"bottom-end",theme:"warning",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Pn,{})})}):(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)("ul",{children:e.errorMessages.map(t=>(0,R.jsx)("li",{children:t},`${e.id}-${t}`))}),placement:"bottom-end",theme:"danger",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Mn,{})})})),e.akPiirang&&(s=(0,R.jsxs)("div",{className:"doc2--table-flex-content",children:[s,(0,R.jsx)(g.Tooltip,{content:(0,R.jsx)(qn,{file:e,className:"restricted-message",titleClassName:"restricted-message-title"}),placement:"bottom-end",children:(0,R.jsx)("button",{className:"doc2--icon-button",children:(0,R.jsx)(Hn,{})})})]})),[(0,R.jsx)(g.Checkbox,{checked:-1!==y.indexOf(e.id),onChange:t=>function(e,t){-1!==y.indexOf(e)!==t&&(t?i(e):o(e))}(e.id,t),disabled:!(S.canRead||S.canWrite)}),(0,R.jsx)(g.Tooltip,{content:e.failiNimetus,placement:"bottom",children:(0,R.jsx)("button",{className:"doc2--icon-button doc2--no-padding doc2--paginated-table-item",onClick:()=>function(e){return u([e])}(e),children:(0,R.jsx)("span",{className:"link-gray doc2--paginated-table-item--limited-content",children:e.failiNimetus})})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:e.projTunnus}),...m?[]:[(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(K,{code:e.projStaadium})})],(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(Y,{code:e.projOsa})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:(0,R.jsx)(q,{code:e.grupp,className:"doc2--paginated-table-item--limited-content"})}),(0,R.jsx)("span",{className:"doc2--paginated-table-item",children:e.jrkNr}),s,r,a,V(e)]}return(0,d.useEffect)(()=>{N()},[t,y]),(0,d.useEffect)(()=>{h&&n()},[h,n]),(0,d.useEffect)(()=>{O([...t].filter(e=>0===r.filter(t=>{var n;if("projOsa"===t.selector){const n=function(e,t){var n;const r=null===(n=e.filter(e=>e.code===t)[0])||void 0===n?void 0:n.parentCode;let o;return o=null===r?t:r,o}(l,e.projOsa);return!t.values.includes(n||"")}const r=null===(n=e[t.selector])||void 0===n?void 0:n.toString();return!t.values.includes(r||"")}).length)),D("errorMessages")},[t,r]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{className:"doc2--loading-overlay",children:[!C||P&&0!==P.length?(0,R.jsx)(g.CollapseTable,{content:P.map((e,t)=>(0,R.jsx)(g.CollapseTableRow,{fields:B(e)})).slice(k.offset,k.offset+k.limit),headers:I}):(0,R.jsx)("div",{className:"legacy-project-no-files-block",children:(0,R.jsx)(g.Text,{raw:"documents.cannotShowLegacyFiles"})}),(0,R.jsx)("div",{className:"doc2--loading-overlay--indicator "+(E?"doc2--loading-overlay--indicator--visible":""),children:(0,R.jsx)(g.Loader,{})})]}),(0,R.jsx)(g.Pagination,{pager:{offset:k.offset,limit:k.limit,total:P.length},onPaginationReload:T})]})};let Kn=function(e){return e.SET_EDIT_FILE="SET_EDIT_FILE",e.CLEAR_EDIT_FILE="CLEAR_EDIT_FILE",e.ADD_EDIT_ERROR="ADD_EDIT_ERROR",e.REMOVE_EDIT_ERROR="REMOVE_EDIT_ERROR",e.CLEAR_EDIT_ERRORS="CLEAR_EDIT_ERRORS",e.TOGGLE_EDIT_RESPONSE_PENDING="TOGGLE_EDIT_RESPONSE_PENDING",e}({});function Jn(e){return{type:Kn.SET_EDIT_FILE,payload:{file:e}}}function Xn(){return{type:Kn.CLEAR_EDIT_FILE,payload:{}}}function Zn(e){return{type:Kn.ADD_EDIT_ERROR,payload:{error:e}}}function Qn(){return{type:Kn.CLEAR_EDIT_ERRORS,payload:{}}}function er(e){return{type:Kn.TOGGLE_EDIT_RESPONSE_PENDING,payload:{toggled:e}}}function tr(){return(e,t)=>{const n=t().editFileState.editFile,{applicationId:r,projectId:o}=t().projectState;n&&n.id&&r&&o&&(e(er(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/application/${r}/project/${o}/file/${n.id}`,method:"GET"}).then(t=>{200===t.status&&(e(Jn(function(e,t){let n=null;n=1==e.ehitiseSeosKoigiga?"Kõik":e.ehitiseSeosEhrKood+"";return{id:t,ehitiseSeos:n,...e}}(t.data,n.id))),e(er(!1)))}).catch(t=>ve(t,e)))}}function nr(){return(e,t)=>{const n=t().editFileState.editFile,{applicationId:r,projectId:o}=t().projectState;n&&r&&o&&(e(er(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/application/${r}/project/${o}/file/${n.id}`,method:"PUT",data:JSON.stringify(rr(n)),headers:{"Content-Type":"application/json"}}).then(t=>{200===t.status&&(e(lt()),e(Xn()),e(Qn()),e(er(!1)))}).catch(t=>{const n=t.response;switch(n.status){case 409:case 422:{const t=n.data[0];e(Zn({field:t.field,message:t.message}));break}default:ve(t,e)}e(er(!1))}))}}function rr(e){var t;let n=!1,r=null;return"Kõik"===e.ehitiseSeos?(n=!0,r=null):null==e.ehitiseSeos?(n=!1,r=null):(n=!1,r=e.ehitiseSeos),{fileName:e.fileName||"",jrkNr:e.jrkNr||null,grupp:e.grupp||null,projektiOsa:e.projektiOsa||"",projektiTunnus:e.projektiTunnus||"",selgitus:e.selgitus||"",projektiStaadium:e.projektiStaadium||null,ehitiseSeosKoigiga:n,ehitiseSeosEhrKood:r,ybnVersioon:null!==(t=e.ybnVersioon)&&void 0!==t?t:void 0}}let or=function(e){return e.SET_FILE_REPLACE_NAME="TOGGLE_FILE_REPLACE_NAME",e.SET_FILE_REPLACE_ID="TOGGLE_FILE_REPLACE_ID",e.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS="TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS",e.CLEAR_FILE_REPLACE="CLEAR_FILE_REPLACE",e}({});function ir(e){return{type:or.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS,payload:{toggled:e}}}const ar=(0,P.connect)(function(e){return{files:e.projectState.projectFiles,activeFilters:e.filtersState.filters,openPopoverId:e.projectState.openPopoverId,applicationId:e.projectState.applicationId,isAudit:"AUDIT"===e.projectState.applicationType,projektiOsa:e.codeToTextState.projektiOsa,selectedFilesIds:e.projectState.selectedFilesIds,permissions:e.permissions.permissions,isProjectContainerSignedByAnyone:e.signState.projectContainer.signers.length>0,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0,isLegacy:e.projectState.legacy}},function(e){return{loadFiles:()=>{e(lt())},deselectFile:t=>{e(qe(t))},selectFile:t=>{e(We(t))},setEditFile:t=>{e(Jn({id:t.id})),e(tr())},requestDeleteFile:t=>{e(bt(t))},toggleFilePopover:t=>{e(function(e){return{type:$e.TOGGLE_FILE_POPOVER_OPEN,payload:{id:e}}}(t))},toggleRestrictAccessPopupWith:t=>{e(en(t))},toggleReleaseAccessPopupWith:t=>{e(tn(t))},downloadFiles:t=>{e(wt(t))},onReplaceFile:(e,t)=>{throw new RangeError("Replacing files is not allowed")},clearAllFiles:()=>{e(et())},selectAllFiles:()=>{e({type:$e.SELECT_ALL_FILES,payload:{}})},unlockFile:t=>{e(vt(t))}}})(Yn);var sr;function lr(){return lr=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},lr.apply(null,arguments)}function cr(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",lr({width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,sr||(sr=d.createElement("path",{d:"M17.931 9.785A6.553 6.553 0 0011.5 4.5a6.559 6.559 0 00-5.819 3.535A5.245 5.245 0 001 13.25a5.254 5.254 0 005.25 5.25h11.375A4.377 4.377 0 0022 14.125c0-2.31-1.794-4.182-4.069-4.34zm-.306 6.965H6.25a3.499 3.499 0 01-3.5-3.5 3.477 3.477 0 013.115-3.474l.936-.096.438-.831A4.785 4.785 0 0111.5 6.25a4.815 4.815 0 014.716 3.876l.263 1.313 1.338.096a2.608 2.608 0 012.433 2.59 2.633 2.633 0 01-2.625 2.625zm-4.856-7H10.23v2.625H8l3.5 3.5 3.5-3.5h-2.231V9.75z",fill:"#34394C"})))}const ur=d.forwardRef(cr),dr=(a.p,e=>{let{requestDeleteProject:t,toggleSignDocumentListPopup:n,toggleRestrictAccessPopupWith:r,toggleReleaseAccessPopupWith:o,requestsInProgress:i,uploadFiles:a,deletionPending:s,allowedExtensions:l,selectedFileIds:c,requestDeleteFile:u,isLegacyProject:p,isAudit:f,permissions:h,downloadFiles:m,downloadLegacyContainer:v,clearSelectedFiles:b,createProject:y,cloneReferencedForEditing:x,isBlockingRequestInProgress:w,isRestrictedFileSelected:S,isNonRestrictedFilesSelected:_,hasRestrictedFiles:j,buttonConfig:E,fileCount:C}=e;const k=(0,G.useIntl)(),[T,P]=(0,d.useState)(!1),[O,I]=(0,d.useState)(!1),[A,M]=(0,d.useState)(!1),[D,F]=(0,d.useState)(0),[N,L]=(0,d.useState)({}),[$,V]=(0,d.useState)({});function B(e){const t=N[e];L({...N,[e]:!t})}function z(e){return(0,R.jsxs)("div",{id:e.id,"data-testid":e.id,children:[(0,R.jsx)("h4",{children:e.title}),(0,R.jsx)("p",{children:e.text}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",children:e.cancelText}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"success",onClick:async()=>{const t=e.id;V(e=>({...e,[t]:!0}));try{await e.onConfirm()}finally{V(e=>({...e,[t]:!1})),B(t)}},squared:!0,disabled:s||$[e.id],children:$[e.id]?(0,R.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):e.confirmText})]})]})}(0,d.useEffect)(()=>{i||(F(e=>e+1),I(!1))},[i]),(0,d.useEffect)(()=>{if(!E)return;const e={},t={};E.filter(e=>!!e.popover).forEach(n=>{e[n.popover.id]=!1,t[n.popover.id]=!1}),L(e),V(t)},[E]);const U=(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kas olete kindel, et soovite selle rea kustutada?",id:"buildingProject.delete.modal.header"})}),(0,R.jsx)("p",{children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kustutatud ridu ei ole võimalik hiljem taastada",id:"buildingProject.delete.modal.description",values:{br:(0,R.jsx)("br",{})}})}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",onClick:function(){P(!1)},disabled:s,children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Sulgen",id:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"danger",onClick:function(){t()},squared:!0,disabled:s,children:(0,R.jsx)(G.FormattedMessage,{defaultMessage:"Kustutan",id:"common.confirmation.modal.yes"})})]})]}),H=(0,R.jsxs)("div",{children:[(0,R.jsx)("h4",{children:(0,R.jsx)(G.FormattedMessage,{id:"popupEditReferenced.title"})}),(0,R.jsx)("p",{children:(0,R.jsx)(G.FormattedMessage,{id:"popupEditReferenced.overview"})}),(0,R.jsxs)("div",{children:[(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,type:"reset",onClick:function(){M(!1)},disabled:w,children:(0,R.jsx)(G.FormattedMessage,{id:"doc2.common.confirmation.modal.no"})}),(0,R.jsx)(g.Button,{className:"float-right",colourScheme:"danger",onClick:function(){x()},squared:!0,disabled:w,children:(0,R.jsx)(G.FormattedMessage,{id:"button.verify"})})]})]});return(0,R.jsxs)("div",{id:"doc2--table-footer",className:"mt-2",children:[h.canDelete?(0,R.jsx)(g.ControlledPopover,{className:"popover-confirm",content:U,open:T,placement:"top-start",theme:"danger",toggle:()=>P(e=>!e),children:(0,R.jsx)(g.Button,{className:"ml-1 mt-1 push",colourScheme:"danger",disabled:w||!h.canDelete,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:f?"tableFooter.delete.audit":"tableFooter.delete"})})}):(0,R.jsx)("div",{className:"ml-1 mt-1 push"}),p?(0,R.jsx)(R.Fragment,{children:h.canAccessFiles&&(!j||h.canAccessRestrictedFiles)&&(0,R.jsxs)("button",{className:"doc2--icon-button mt-1",onClick:function(){v()},disabled:w,children:[(0,R.jsx)(ur,{className:"mr-1"}),(0,R.jsx)(g.Link,{text:"tableFooter.downloadContainer"})]})}):(0,R.jsx)(g.ControlledPopover,{content:(0,R.jsx)(g.FileUpload,{onUpload:function(e){if(!e)return;const t=k.formatMessage({id:"fileUpload.largeFileWarning",defaultMessage:"Laetavate failide hulgas esineb suuri faile. Failide laadimine ja töötlemine võib võtta aega. Palun ärge sulgege akent."});a(e,t)},uploadInProgress:!!i,accept:l,maxSizeBytes:2e9},D),placement:"left",open:O,toggle:()=>I(e=>!e),children:(0,R.jsxs)("button",{className:"doc2--icon-button mt-1",disabled:w||!h.canWrite,children:[(0,R.jsx)(yn,{className:"mr-1"}),(0,R.jsx)(g.Link,{text:"tableFooter.upload"})]})}),function(){if(E)return E.map(e=>e.popover?function(e){const t=$[e.popover.id];return(0,R.jsx)(g.ControlledPopover,{content:z(e.popover),placement:"top",open:N[e.popover.id],toggle:()=>{t||B(e.popover.id)},children:(0,R.jsx)(g.Button,{id:e.id,className:"ml-1 mt-1",colourScheme:e.theme,squared:!0,disabled:e.disabled,children:t?(0,R.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):e.text})})}(e):function(e){var t;return(0,R.jsx)(g.Button,{id:e.id,className:"ml-1 mt-1",colourScheme:null!==(t=e.theme)&&void 0!==t?t:"dark",squared:!0,onClick:e.onClick,disabled:e.disabled,children:e.text})}(e))}(),!p||h.canCreateRestrictions?(0,R.jsx)(g.Popover,{content:(0,R.jsxs)("ul",{children:[(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!h.canWrite,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.delete",onClick:function(){u(b)}})})}),h.canAccessFiles&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!(h.canRead||h.canAccessRestrictedFiles)||S&&!h.canAccessRestrictedFiles,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.download",onClick:function(){m(b)}})})}),h.canCreateRestrictions&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:S||!_,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.restrictAccess",onClick:()=>r([...c])})})}),h.canCreateRestrictions&&(0,R.jsx)("li",{children:(0,R.jsx)("button",{className:"doc2--icon-button",type:"reset",disabled:!S||_,children:(0,R.jsx)(g.Link,{text:"tableFooter.manage.releaseRestriction",onClick:()=>o([...c])})})})]}),children:(0,R.jsx)(g.Button,{className:"ml-1 mt-1",colourScheme:"dark",disabled:w||!(h.canRead||h.canWrite)||C<1,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:"tableFooter.manage"})})}):null,(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",squared:!0,onClick:()=>n(!0),disabled:w||C<1,children:(0,R.jsx)(g.Text,{raw:"tableFooter.openSigners"})}),h.canCreateNewVersion&&(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",squared:!0,onClick:y,disabled:w,children:(0,R.jsx)(g.Text,{raw:"tableFooter.makeChangeable"})}),h.canCloneForEditing&&(0,R.jsx)(g.ControlledPopover,{className:"popover-confirm",content:H,open:A,placement:"top-start",toggle:()=>M(e=>!e),children:(0,R.jsx)(g.Button,{className:"ml-2 mt-1",colourScheme:"info",disabled:w,squared:!0,children:(0,R.jsx)(G.FormattedMessage,{id:"tableFooter.makeChangeable"})})})]})});const pr=(0,P.connect)(function(e){const t=new Set(e.projectState.selectedFilesIds),n=e.projectState.projectFiles.filter(e=>!!e.akPiirang).length>0,r=e.projectState.projectFiles.filter(e=>t.has(e.id)&&!!e.akPiirang).length>0,o=e.projectState.projectFiles.filter(e=>t.has(e.id)&&!e.akPiirang).length>0;return{selectedFileIds:e.projectState.selectedFilesIds,requestsInProgress:e.projectState.requestsInProgress,deletionPending:e.projectState.deletionPending,allowedExtensions:e.projectState.allowedExtensions,isLegacyProject:e.projectState.legacy,isAudit:"AUDIT"===e.projectState.applicationType,permissions:e.permissions.permissions,isBlockingRequestInProgress:e.projectState.blockingRequestsInProgress>0,isRestrictedFileSelected:r,isNonRestrictedFilesSelected:o,hasRestrictedFiles:n,fileCount:e.projectState.projectFiles.length}},function(e){return{toggleSignRefusalPopup:t=>{e(D(t))},toggleSignDocumentListPopup:t=>{e(F(t))},toggleRestrictAccessPopupWith:t=>{e(en(t))},toggleReleaseAccessPopupWith:t=>{e(tn(t))},requestDeleteProject:()=>{e(it())},uploadFiles:(t,n)=>{e(mt(t,n))},requestDeleteFile:t=>{e(bt(void 0,t))},downloadFiles:t=>{e(wt(void 0,t))},downloadLegacyContainer:t=>{e(gt(t))},clearSelectedFiles:()=>{e(et())},createProject:()=>{e(rt())},cloneReferencedForEditing:()=>{e(Ne())}}})(dr);var fr=function(e){return e[e.Reference=0]="Reference",e[e.Normal=1]="Normal",e[e.Legacy=2]="Legacy",e[e.Audit=3]="Audit",e}(fr||{});const gr=e=>{let{canAddAudit:t,canReferenceBaseProject:n,baseProjectInfo:r,navigateForwardNormal:o,navigateForwardLegacy:i,navigateForwardReferenceBase:a,navigateForwardAudit:s,isDisabled:l}=e;const[c,u]=(0,d.useState)(fr.Normal);return(0,d.useEffect)(()=>{r&&!r.disabled&&u(fr.Reference)},[r]),(0,R.jsx)("div",{id:"doc2--project-creation-step-1",className:"mt-3",children:(0,R.jsxs)("form",{className:"doc2--project-creation-type-selector",id:"doc2--project-creation-form",onSubmit:function(e){switch(e.preventDefault(),c){case fr.Reference:a();break;case fr.Normal:o();break;case fr.Legacy:i();break;case fr.Audit:s()}},children:[(0,R.jsx)("div",{className:"doc2--project-creation-step-1-intro-text",children:(0,R.jsx)(g.Text,{raw:"intro.buildingProject.text"})}),n&&r?(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsxs)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Reference,onChange:u,onBlur:()=>{},checked:c===fr.Reference,disabled:l||r.disabled,children:[(0,R.jsx)(g.Text,{raw:"intro.reference.title",values:r}),(0,R.jsxs)("a",{className:"link-gray link-no-after cursor-pointer",href:`${window.REACT_APP_URL}${window.REACT_APP_ENDING}/document?docNr=${r.nr}`,target:"_blank",rel:"noopener noreferrer",children:[r.documentTypeName," nr ",r.nr]}),(0,R.jsx)("span",{children:" "}),"(",(0,R.jsx)(g.Text,{raw:r.signatureDate}),")"]}),c===fr.Reference&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.reference.text"})})]}):null,(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Normal,onChange:u,onBlur:()=>{},checked:c===fr.Normal,disabled:l,children:"intro.normal.title"}),c===fr.Normal&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.normal.text"})})]}),(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Legacy,onChange:u,onBlur:()=>{},checked:c===fr.Legacy,disabled:l,children:"intro.container.title"}),c===fr.Legacy&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.container.text"})})]}),t?(0,R.jsxs)("div",{className:"doc2--project-creation-step-1-radio-spaceing",children:[(0,R.jsx)(g.Radio,{name:"doc2--project-creation-type-selector",value:fr.Audit,onChange:u,onBlur:()=>{},checked:c===fr.Audit,disabled:l,children:"intro.audit.title"}),c===fr.Audit&&(0,R.jsx)("div",{className:"doc2--project-creation-type-selector-info-text",children:(0,R.jsx)(g.Text,{raw:"intro.audit.text"})})]}):null,(0,R.jsxs)("div",{className:"doc2--project-creation-form-footer",children:[(0,R.jsx)("div",{}),(0,R.jsx)(g.Button,{colourScheme:"success",squared:!0,disabled:l,children:(0,R.jsx)(g.Text,{raw:"intro.button.verifyBuildingProject"})})]})]})})};let hr=function(e){return e.NORMAL="NORMAL",e.LEGACY="LEGACY",e.AUDIT="AUDIT",e.REFERENCE="REFERENCE",e}({});const mr=[],vr={applicationId:void 0,isProceeding:!1,isPlanningProject:!1,isPlanningView:!1,isLoadingCurrentProject:!0,projectCreation:!1,projectCreationType:void 0,projectCreationStep:0,canAddAudit:!1,canReferenceBaseProject:!1,projectId:void 0,applicationType:void 0,isReference:!1,createProjectSending:!1,legacy:!1,readOnly:!1,allowedExtensions:[],projectFiles:mr,planningFiles:[],filesHaveErrors:!1,requestsInProgress:0,blockingRequestsInProgress:0,openPopoverId:void 0,selectedFilesIds:[],deletionPending:!1};const br=e=>{let{navigateBackward:t,navigateForward:n,allowedExtensions:r,uploadFile:o,uploadInProgress:i,isDisabled:a}=e;const[s,l]=(0,d.useState)(!1);return(0,R.jsxs)("div",{id:"doc2--project-creation-legacy",className:s?"doc2--project-creation--files-added":"",children:[(0,R.jsx)(g.FileUpload,{onUpload:function(e){0!==e.length&&o(e[0],()=>{n()})},customValidateDroppedFiles:function(e){return l(!0),e},accept:r,uploadInProgress:i,limit:1,maxSizeBytes:3e9}),i&&(0,R.jsx)("div",{className:"text-center mt-4",children:(0,R.jsx)(g.Loader,{})}),(0,R.jsx)("div",{className:s?"doc2--project-creation-step--footer mt-4 doc2--position-absolute":"doc2--project-creation-step--footer mt-4",children:(0,R.jsx)(g.Button,{colourScheme:"light",squared:!0,onClick:t,disabled:a||i,children:"Sulgen"})})]})},yr=e=>{let{step:t,endProjectCreation:n,sendCreateProject:r,sendCreateAudit:o,requestsInProgress:i,applicationId:a,canCreateNewVersion:s,baseProjectInfo:l,canAddAudit:c,canReferenceBaseProject:u,type:p,setProjectCreationType:f,uploadContainer:g,loadCreateProjectOptions:h,referenceBaseProject:m}=e;const v=(0,G.useIntl)();(0,d.useEffect)(()=>{h()},[a]),(0,d.useEffect)(()=>{p!==hr.NORMAL&&p!==hr.AUDIT||1!==t||n()},[p,t]);const b=v.formatMessage({id:"fileUpload.largeFileWarning",defaultMessage:"Laetavate failide hulgas esineb suuri faile. Failide laadimine ja töötlemine võib võtta aega. Palun ärge sulgege akent."});return(0,R.jsxs)(R.Fragment,{children:[!p&&(0,R.jsx)(gr,{navigateForwardNormal:function(){f(hr.NORMAL),r()},navigateForwardLegacy:function(){f(hr.LEGACY)},navigateForwardReferenceBase:function(){f(hr.REFERENCE),m().then(()=>n())},navigateForwardAudit:function(){f(hr.AUDIT),o()},canAddAudit:c,canReferenceBaseProject:u,baseProjectInfo:l,isDisabled:!s}),p===hr.LEGACY&&(0,R.jsx)(br,{navigateForward:n,navigateBackward:function(){f(void 0)},allowedExtensions:[".asice",".ddoc",".bdoc"],uploadFile:(e,t)=>g(e,b,t),uploadInProgress:!!i,isDisabled:!s})]})};const xr=(0,P.connect)(function(e){return{applicationId:e.projectState.applicationId,step:e.projectState.projectCreationStep,requestsInProgress:e.projectState.requestsInProgress,type:e.projectState.projectCreationType,canCreateNewVersion:!e.projectState.isProceeding,baseProjectInfo:e.baseProjectState.info,canAddAudit:e.projectState.canAddAudit,canReferenceBaseProject:e.projectState.canReferenceBaseProject}},function(e){return{endProjectCreation:()=>{e(Ve(!1)),e(tt(void 0)),e(V(!0))},addAlert:t=>{e(N(t))},sendCreateProject:()=>{e(rt())},sendCreateAudit:()=>{e(ot())},setProjectCreationType:t=>{e(tt(t))},uploadContainer:(t,n,r)=>{e(ft(t,n,r))},loadCreateProjectOptions:()=>{e(St())},referenceBaseProject:()=>e(Fe())}})(yr),wr=e=>{let{alerts:t,removeAlert:n}=e;return(0,R.jsx)(R.Fragment,{children:t.map(e=>(0,R.jsxs)("div",{className:"alert "+(e.error?"alert-danger":"alert-success"),children:[(0,R.jsx)("a",{className:"close icon-close",onClick:()=>n(e.id)}),"title"in e&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{className:"lead",children:e.title}),e.message&&(0,R.jsx)("p",{children:e.message})]}),"intlTitle"in e&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("p",{className:"lead",children:(0,R.jsx)(g.Text,{raw:e.intlTitle})}),e.intlMessage&&(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:e.intlMessage})})]}),"template"in e&&e.template===Re.FileRestricted&&(0,R.jsx)(qn,{file:e.props.file,titleClassName:"lead"}),!("title"in e)&&!("intlTitle"in e&&!("template"in e))&&(0,R.jsx)("p",{className:"lead",children:(0,R.jsx)(g.Text,{raw:"common.error.unknown"})})]},"doc2--alert-"+e.id))})};const Sr=(0,P.connect)(function(e){return{alerts:e.uiState.alerts}},function(e){return{removeAlert:t=>{e(L(t))}}})(wr);let _r;const jr=e=>{let{applicationId:t,projectCreation:n,projectFiles:r,onFilesChange:o,loadCurrentProject:i,isCurrentProjectLoading:a,loadClassifiers:s,permissions:l,buttonConfig:c}=e;return(0,d.useEffect)(()=>{t&&(i(),s())},[t,i,s]),(0,d.useEffect)(()=>{if(void 0===o)return;if(r===mr)return;const e=JSON.stringify(r);if(e===_r)return;_r=e;const t=JSON.parse(e),n=Object.freeze(t);o(n)},[r]),(0,R.jsxs)("div",{className:"mt-2",children:[l.canRead&&!n&&!a&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Sr,{}),(0,R.jsx)(ar,{}),(0,R.jsx)(pr,{buttonConfig:c})]}),n&&!a&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Sr,{}),(0,R.jsx)(xr,{})]})]})};const Er=(0,P.connect)(function(e){return{applicationId:e.projectState.applicationId,projectCreation:e.projectState.projectCreation,projectFiles:e.projectState.projectFiles,isCurrentProjectLoading:e.projectState.isLoadingCurrentProject,permissions:e.permissions.permissions}},function(e){return{loadCurrentProject:()=>{e(nt())},loadClassifiers:()=>{e(at()),e(st())}}})(jr);var Cr;function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kr.apply(null,arguments)}function Tr(e,t){let{title:n,titleId:r,...o}=e;return d.createElement("svg",kr({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},o),n?d.createElement("title",{id:r},n):null,Cr||(Cr=d.createElement("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zM9 15H7v-2h2v2h2v-2h2v2H9zm0-4H7V5h6v6h-2V5H9v6z",fill:"#FF7373"})))}const Pr=d.forwardRef(Tr),Rr=(a.p,e=>{let{error:t}=e;return(0,R.jsxs)("div",{className:"doc2--edit-file-error my-2",children:[(0,R.jsx)(Pr,{}),(0,R.jsxs)("p",{className:"mb-0 ml-2",children:["message"in t&&t.message,"intlMessage"in t&&(0,R.jsx)(g.Text,{raw:t.intlMessage})]})]})}),Or=e=>{const t=(0,d.useRef)(null);return(0,d.useEffect)(()=>{var n,r;e.type&&"text"!==e.type&&(null===(n=t.current)||void 0===n||null===(r=n.querySelector('input[type="text"]'))||void 0===r||r.setAttribute("type",e.type))}),(0,R.jsx)("div",{ref:t,children:(0,R.jsx)(g.Input,{...e})})},Ir=e=>{let{file:t,errors:n,setFile:r,sendFile:o,clearFile:i,addError:a,clearErrors:s,grupp:l,projektiOsa:c,projektiStaadium:u,ehitised:d,responsePending:p,isAudit:f}=e,h=!1,m=!0;if(t&&t.fileName){let e=t.fileName.split(".").pop();"ifc"===(null==e?void 0:e.toLowerCase())&&(h=!0,m=!1)}function v(e,n){if(!t)return;const o={...t};o[e]=n,r(o)}function b(e){return e.map(e=>({code:e.code,texts:e.text}))}return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsxs)(I,{title:(0,R.jsx)(g.Text,{raw:"popupEditFile.title"}),onAccept:function(){(function(){if(!t)return!0;s();let e=!1;!m||void 0!==t.grupp&&null!==t.grupp&&0!==t.grupp.length||(a({field:"grupp",intlMessage:"popupEditFile.error.groupName"}),e=!0);!h||null!=t.ehitiseSeos&&""!=t.ehitiseSeos||(a({field:"ehitiseSeos",intlMessage:"popupEditFile.error.buildingRelation"}),e=!0);void 0!==t.projektiOsa&&null!==t.projektiOsa&&0!==t.projektiOsa.length||(a({field:"projektiOsa",intlMessage:"popupEditFile.error.projectType"}),e=!0);f||void 0!==t.projektiStaadium&&null!==t.projektiStaadium&&0!==t.projektiStaadium.length||(a({field:"projektiStaadium",intlMessage:"popupEditFile.error.projectStage"}),e=!0);return e})()||o()},onCancel:function(){s(),i()},actionsDisabled:p,children:[(0,R.jsx)("div",{className:"doc2--edit-file--errors",children:n.map((e,t)=>(0,R.jsx)(Rr,{error:e},`doc2--edit-error-${t}`))}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.fileName"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:"popupEditFile.fileName.label"},component:(0,R.jsx)("span",{children:t.fileName})}),h&&(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.ehitiseSeosEhrKood"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:"popupEditFile.ehitiseSeosEhrKood.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"ehitiseSeos"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.ehitiseSeos||"",onChange:e=>v("ehitiseSeos",e),options:[{code:null,texts:"-"},{code:"Kõik",texts:"Kõik"}].concat(b(d))})}),required:h}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:f?"popupEditFile.auditID":"popupEditFile.projectID"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:f?"popupEditFile.auditID.label":"popupEditFile.projectID.label"},component:(0,R.jsx)(Or,{value:t.projektiTunnus||"",onChange:e=>v("projektiTunnus",e),className:n.filter(e=>"projektiTunnus"===e.field).length>0?"doc2--error-input":""})}),(0,R.jsx)(g.FieldWrapper,{className:f&&"d-none",label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.projectStage"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:"popupEditFile.projectStage.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"projektiStaadium"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.projektiStaadium||"",onChange:e=>v("projektiStaadium",e),options:b(u)})}),required:!f}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:f?"popupEditFile.auditType":"popupEditFile.projectType"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width form-required-icon"})]}),info:{content:f?"popupEditFile.auditType.label":"popupEditFile.projectType.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"projektiOsa"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.projektiOsa||"",onChange:e=>v("projektiOsa",e),options:b(c),className:n.filter(e=>"projektiOsa"===e.field).length>0?"doc2--error-input":""})}),required:!0}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.groupName"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width "+(m?"form-required-icon":"")})]}),info:{content:"popupEditFile.groupName.label"},component:(0,R.jsx)("div",{className:n.filter(e=>"grupp"===e.field).length>0?"doc2--error-input":"",children:(0,R.jsx)(g.Select,{value:t.grupp||"",onChange:e=>v("grupp",e),options:b(l)})}),required:m}),(0,R.jsx)(g.FieldWrapper,{label:(0,R.jsxs)("span",{children:[(0,R.jsx)(g.Text,{raw:"popupEditFile.jrkNr"}),(0,R.jsx)("div",{style:{display:"inline-block"},className:"form-required-icon-width"})]}),info:{content:"popupEditFile.jrkNr.label"},component:(0,R.jsx)(Or,{type:"number",value:t.jrkNr||"",onChange:e=>v("jrkNr",e),className:n.filter(e=>"jrkNr"===e.field).length>0?"doc2--error-input":""})})]})})};const Ar=(0,P.connect)(function(e){return{file:e.editFileState.editFile,errors:e.editFileState.errors,projektiOsa:e.codeToTextState.projektiOsa,projektiStaadium:e.codeToTextState.projektiStaadium,grupp:e.codeToTextState.grupp,grupiMarksona:e.codeToTextState.grupiMarksona,ehitised:e.codeToTextState.ehitised,responsePending:e.editFileState.responsePending,isAudit:"AUDIT"===e.projectState.applicationType}},function(e){return{setFile:t=>{e(Jn(t))},clearFile:()=>{e(Xn())},sendFile:()=>{e(nr())},addError:t=>{e(Zn(t))},clearErrors:()=>{e(Qn())}}})(Ir);var Mr=function(e){return e.TRUE="true",e.FALSE="false",e}(Mr||{});const Dr=e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{activeFilters:f,possibleValues:h,clearFilter:m,removeFilter:v,addFilter:b,setFilter:y,projektiOsa:x,projektiStaadium:w,grupp:S}=e;const _=(0,G.useIntl)(),j=[{code:Mr.TRUE,texts:_.formatMessage({id:"filters.true"})},{code:Mr.FALSE,texts:_.formatMessage({id:"filters.false"})}];return(0,R.jsxs)("form",{id:"doc2--filters",children:[(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectID"}),info:{content:"filters.projectID.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--id-select",onChange:function(e){0!==e.length?y({selector:"projTunnus",values:e}):m("projTunnus")},options:null===(t=h.projTunnus)||void 0===t?void 0:t.map(e=>({code:e,texts:e})),value:null===(n=f.filter(e=>"projTunnus"===e.selector)[0])||void 0===n?void 0:n.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectStage"}),info:{content:"filters.projectStage.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--stage-select",onChange:function(e){0!==e.length?y({selector:"projStaadium",values:e}):m("projStaadium")},options:null===(r=h.projStaadium)||void 0===r?void 0:r.map(e=>({code:e,texts:U(w,e)})),value:null===(o=f.filter(e=>"projStaadium"===e.selector)[0])||void 0===o?void 0:o.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.projectType"}),info:{content:"filters.projectType.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--type-select",onChange:function(e){0!==e.length?y({selector:"projOsa",values:e}):m("projOsa")},options:null===(i=h.projOsa)||void 0===i?void 0:i.map(e=>({code:e,texts:U(x,e)})),value:null===(a=f.filter(e=>"projOsa"===e.selector)[0])||void 0===a?void 0:a.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.jrkNr"}),info:{content:"filters.jrkNr.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--group-id-select",onChange:function(e){0!==e.length?y({selector:"jrkNr",values:e}):m("jrkNr")},options:null===(s=h.jrkNr)||void 0===s?void 0:s.map(e=>({code:e,texts:e})),value:null===(l=f.filter(e=>"jrkNr"===e.selector)[0])||void 0===l?void 0:l.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.groupName"}),info:{content:"filters.groupName.label"},component:(0,R.jsx)(g.MultiSelect,{name:"doc2--group-name-select",onChange:function(e){0!==e.length?y({selector:"grupp",values:e}):m("grupp")},options:null===(c=h.grupp)||void 0===c?void 0:c.map(e=>({code:e,texts:U(S,e)})),value:null===(u=f.filter(e=>"grupp"===e.selector)[0])||void 0===u?void 0:u.values})}),(0,R.jsx)(g.FieldWrapper,{label:_.formatMessage({id:"filters.hasChanged"}),info:{content:"filters.hasChanged.label"},component:(0,R.jsx)(g.Select,{name:"doc2--has-changed-select",onChange:function(e){""!==e?y({selector:"hasChanged",values:[e]}):m("hasChanged")},options:j,value:null===(d=f.filter(e=>"hasChanged"===e.selector)[0])||void 0===d||null===(p=d.values)||void 0===p?void 0:p[0]})})]})};const Fr=(0,P.connect)(function(e){return{activeFilters:e.filtersState.filters,possibleValues:e.filtersState.possibleValues,projektiOsa:e.codeToTextState.projektiOsa,grupp:e.codeToTextState.grupp,projektiStaadium:e.codeToTextState.projektiStaadium}},function(e){return{addFilter:t=>{e(function(e){return{type:je.ADD_FILTER,payload:{filter:e}}}(t))},clearFilter:t=>{e(function(e){return{type:je.CLEAR_FILTER,payload:{selector:e}}}(t))},removeFilter:t=>{e(function(e){return{type:je.REMOVE_FILTER,payload:{filter:e}}}(t))},setFilter:t=>{e(function(e){return{type:je.SET_FILTER,payload:{filter:e}}}(t))}}})(Dr),Nr=e=>{let{isOpen:t,togglePopup:n,name:r,uploadInProgress:o,replaceFile:i}=e;return(0,R.jsx)(R.Fragment,{children:t&&(0,R.jsx)(I,{title:r,onCancel:function(){n(!1)},children:(0,R.jsx)(g.FileUpload,{onUpload:function(e){0!==e.length&&i(e[0])},limit:1,uploadInProgress:o})})})};const Lr=(0,P.connect)(function(e){return{isOpen:e.uiState.replaceFileOpen,name:e.replaceFileState.name,uploadInProgress:e.replaceFileState.uploadInProgress}},function(e){return{togglePopup:t=>{e(B(t))},replaceFile:t=>{e(function(e){return(t,n)=>{const r=n().replaceFileState.id;if(0===r.length)return;const o=new FormData;o.append("files",e),o.append("fileId",r),t(ir(!0)),fe()({url:`${window.DOC2_BACKEND_URL}/file/upload/replace`,method:"POST",data:o}).then(e=>{200===e.status&&(t(ir(!1)),t(lt()),t(B(!1)))}).catch(e=>ve(e,t))}}(t))}}})(Nr),$r=require("reactstrap");let Vr=/^\d{7,13}$/;const Br={phonenr:{et:"Väli peab olema korrektne telefoninumber",en:"Value should be phone number",ru:"Введите правильный номер телефона"}},zr=e=>!e||Vr.test(e),Gr=e=>{const t=(0,G.useIntl)(),[n,r]=(0,d.useState)({IsValidPhone:!0,value:e.value||""}),o=(0,R.jsxs)($r.InputGroup,{className:"mb-2",children:[(0,R.jsx)($r.InputGroupAddon,{addonType:"prepend",children:(0,R.jsx)($r.InputGroupText,{children:"+372"})}),(0,R.jsx)($r.Input,{id:e.id,name:"phone",placeholder:t.formatMessage({id:e.placeholder}),onChange:t=>{return n=t.target.value,r({IsValidPhone:!0,value:n}),void e.onChange(e,n,zr(n));var n},onBlur:t=>(t=>{let n=zr(t);r({IsValidPhone:n,value:t}),e.onBlur(e,t,zr(t))})(t.target.value),type:"tel",value:n.value,minLength:6,maxLength:13,pattern:"^[\\s0-9]+$","data-testid":"phone"})]}),{locale:i,useValidation:a}=e;return a&&!n.IsValidPhone?(0,R.jsxs)($r.FormGroup,{className:"has-danger",children:[o,(0,R.jsx)($r.FormFeedback,{className:"form-control-feedback",children:Br.phonenr[i]})]}):(0,R.jsx)($r.FormGroup,{children:o})},Ur=e=>{let{method:t,challenge:n,revision:r,projektiOsa:o,onContinue:i,signInProgress:a,onCancel:s,setSignMethod:l,setMobileNumber:c,mobileNumber:u}=e;const[p,f]=(0,d.useState)(!1);return r?(0,R.jsx)("div",{id:`doc2--popup-modal-${Date.now().toString()}`,className:"doc2--popup-modal",children:(0,R.jsxs)("div",{id:"doc2--sign-popup",className:"doc2--popup-modal--modal compound",children:[(0,R.jsx)("h2",{children:(0,R.jsx)(g.Text,{raw:"signing"})}),(0,R.jsxs)("div",{className:"nav-vertical-wrapper mt-4",children:[(0,R.jsx)("div",{className:"form-header",children:(0,R.jsxs)("ul",{className:"nav nav-vertical form-nav",children:[(0,R.jsx)(Hr,{active:t===ue.ID_CARD,disabled:!window.hwcrypto,onClick:()=>l(ue.ID_CARD),children:(0,R.jsx)(g.Text,{raw:"signPopup.idCard"})}),(0,R.jsx)(Hr,{active:t===ue.MOBILE_ID,onClick:()=>l(ue.MOBILE_ID),children:(0,R.jsx)(g.Text,{raw:"signPopup.mobileId"})}),(0,R.jsx)(Hr,{active:t===ue.SMART_ID,onClick:()=>l(ue.SMART_ID),children:(0,R.jsx)(g.Text,{raw:"signPopup.smartId"})})]})}),(0,R.jsx)("div",{className:"tab-content",children:(0,R.jsxs)("div",{className:"tab-pane fade active show",children:[t===ue.ID_CARD&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.idCard.title"})})}),t===ue.MOBILE_ID&&!n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.mobileId.title"})}),(0,R.jsx)(Gr,{id:"phone-1",placeholder:"signPopup.mobileId.input",value:u||"",onChange:(e,t,n)=>{c(t),f(n)},onBlur:(e,t,n)=>{c(t),f(n)},useValidation:!0,locale:"et","data-testid":"phone"})]}),t===ue.MOBILE_ID&&n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signing.modal.header.mobile_id.step2"})}),(0,R.jsx)("p",{className:"doc2--sign-popup--challenge",children:n})]}),t===ue.SMART_ID&&!n&&(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signPopup.smartId.title"})})}),t===ue.SMART_ID&&n&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("h3",{children:(0,R.jsx)(g.Text,{raw:"signing.modal.header.mobile_id.step2"})}),(0,R.jsx)("p",{className:"doc2--sign-popup--challenge",children:n})]}),(0,R.jsxs)("div",{className:"form-footer",children:[(0,R.jsx)(g.Button,{colourScheme:"light",type:"reset",onClick:s,disabled:a,children:(0,R.jsx)(g.Text,{raw:"button.cancel"})}),(0,R.jsx)(g.Button,{colourScheme:"success",type:"reset",style:{float:"right"},onClick:i,disabled:a||t===ue.MOBILE_ID&&!p,children:(0,R.jsx)(g.Text,{raw:"button.sign"})})]})]})})]})]})}):(0,R.jsx)(R.Fragment,{})},Hr=e=>{let{active:t,onClick:n,className:r,disabled:o,children:i}=e;return(0,R.jsx)("li",{className:"nav-item",children:(0,R.jsx)("button",{className:`doc2--signPopup--nav-button nav-link ${t?"active":""} ${r}`,onClick:n,disabled:o,children:i})})};const Wr=(0,P.connect)(function(e){return{challenge:e.signPopup.challenge,method:e.signPopup.method,revision:e.signPopup.revision,projektiOsa:e.signPopup.projektiOsa,signInProgress:e.signPopup.signInProgress,mobileNumber:e.signPopup.mobileNumber}},function(e){return{onContinue:()=>{e(Xt())},onCancel:()=>{e(Jt())},setSignMethod:t=>{e(Ut(t))},setMobileNumber:t=>{e(qt(t))}}})(Ur),qr=require("redux"),Yr={filters:[],possibleValues:{projTunnus:[],projStaadium:[],projOsa:[],jrkNr:[],grupp:[],hasChanged:[]}};const Kr={referenceCreating:!1,referenceCloning:!1,info:null};const Jr={editFile:void 0,errors:[],responsePending:!1};const Xr={projectTypes:[],projectContainer:{type:"",signed:!1,revision:"",signers:[]}};const Zr={grupiMarksona:[],grupp:[],projektiOsa:[],projektiStaadium:[],ehitised:[],planningFileTypes:[]};const Qr={id:"",name:"",uploadInProgress:!1};const eo={permissions:{canCreateNewVersion:!1,canRead:!1,canAccessFiles:!0,canWrite:!1,canDelete:!1,canSign:!1,canCreateRestrictions:!1,canAccessRestrictedFiles:!0,canCloneForEditing:!1}};const to={fileIds:void 0,releaseFileIds:void 0,requestsInProgress:0};let no=function(e){return e.SET_EDIT_PLANNING_FILE="SET_EDIT_PLANNING_FILE",e.CLEAR_EDIT_PLANNING_FILE="CLEAR_EDIT_PLANNING_FILE",e.ADD_EDIT_PLANNING_ERROR="ADD_EDIT_PLANNING_ERROR",e.REMOVE_EDIT_PLANNING_ERROR="REMOVE_EDIT_PLANNING_ERROR",e.CLEAR_EDIT_PLANNING_ERROR="CLEAR_EDIT_PLANNING_ERROR",e.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING="TOGGLE_EDIT_PLANNING_RESPONSE_PENDING",e}({});function ro(e){return{type:no.SET_EDIT_PLANNING_FILE,payload:{file:e}}}function oo(){return{type:no.CLEAR_EDIT_PLANNING_FILE,payload:{}}}function io(e){return{type:no.ADD_EDIT_PLANNING_ERROR,payload:{error:e}}}function ao(){return{type:no.CLEAR_EDIT_PLANNING_ERROR,payload:{}}}function so(e){return{type:no.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING,payload:{toggled:e}}}const lo={planningFile:void 0,errors:[],responsePending:!1};const co={uiState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case M.TOGGLE_SIGN_REFUSAL_POPUP:return{...e,signRefusalOpen:t.payload.toggled};case M.TOGGLE_MAKE_CONFIDENTIAL_POPUP:return{...e,makeConfidentialOpen:t.payload.toggled};case M.TOGGLE_SIGN_DOCUMENT_LIST:return{...e,signDocumentListOpen:t.payload.toggled};case M.ADD_ALERT:return{...e,alerts:[...e.alerts,Oe(t.payload.alert)]};case M.REMOVE_ALERT:return{...e,alerts:e.alerts.filter(e=>e.id!==t.payload.id)};case M.CLEAR_ALL_ALERTS:return{...e,alerts:[]};case M.TOGGLE_FILTERS:return{...e,enableFilter:t.payload.toggled};case M.TOGGLE_REPLACE_FILE_POPUP:return{...e,replaceFileOpen:t.payload.toggled};case M.CLOSE_ALL_POPUPS:return{...e,signRefusalOpen:!1,makeConfidentialOpen:!1,replaceFileOpen:!1}}return e},filtersState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case je.ADD_FILTER:{const n=[...e.filters];let r=!1;return n.forEach(e=>{e.selector===t.payload.filter.selector&&(e.values.concat(t.payload.filter.values),r=!0)}),r||n.push(t.payload.filter),{...e,filters:n}}case je.REMOVE_FILTER:{const n=[...e.filters];return n.forEach((e,r)=>{e.values.length>1?e.values=e.values.filter(e=>e!==t.payload.filter.values[0]):n.splice(r)}),{...e,filters:n}}case je.SET_FILTER:{const n=[...e.filters];let r=!1;return n.forEach(e=>{e.selector===t.payload.filter.selector&&(e.values=t.payload.filter.values,r=!0)}),r||n.push(t.payload.filter),{...e,filters:n}}case je.POPULATE_FILTER:{const n={...e.possibleValues};return n[t.payload.filter.selector]=t.payload.filter.values,{...e,possibleValues:n}}case je.CLEAR_FILTER:return{...e,filters:e.filters.filter(e=>e.selector!==t.payload.selector)};case je.CLEAR_ALL_FILTERS:return{...e,possibleValues:{projTunnus:[],projStaadium:[],projOsa:[],jrkNr:[],grupp:[]}}}return e},projectState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case $e.TOGGLE_PROJECT_CREATION:return{...e,projectCreation:t.payload.toggled,projectCreationStep:0};case $e.NAVIGATE_FORWARD_PROJECT_CREATION:return{...e,projectCreationStep:e.projectCreationStep+1};case $e.NAVIGATE_BACKWARD_PROJECT_CREATION:return{...e,projectCreationStep:e.projectCreationStep-1};case $e.SET_CREATION_TYPE:return{...e,projectCreationType:t.payload.type};case $e.SET_PROJECT_ID:return{...e,projectId:t.payload.value};case $e.SET_APPLICATION_TYPE:return{...e,applicationType:t.payload.value};case $e.SET_REFERENCE:return{...e,isReference:t.payload.value};case $e.SET_CAN_ADD_AUDIT:return{...e,canAddAudit:t.payload.value};case $e.SET_CAN_REFERENCE_BASE_PROJECT:return{...e,canReferenceBaseProject:t.payload.value};case $e.SET_FILES:{const n=t.payload.files.reduce((e,t)=>e||t.errorMessages.length>0,!1);return t.payload.files.forEach(e=>{null===e.id&&(e.id=Pe("legacy-file"))}),{...e,projectFiles:t.payload.files,filesHaveErrors:n}}case $e.SET_PLANNING_FILES:return t.payload.files.forEach(e=>{null===e.id&&(e.id=Pe("legacy-file"))}),{...e,planningFiles:t.payload.files};case $e.ADD_FILE:return{...e,projectFiles:[t.payload.file,...e.projectFiles]};case $e.EDIT_FILE:return{...e,projectFiles:e.projectFiles.map(e=>e.id===t.payload.file.id?t.payload.file:e)};case $e.SELECT_FILE:{const n=[...e.selectedFilesIds];return-1===n.indexOf(t.payload.id)&&n.push(t.payload.id),{...e,selectedFilesIds:n}}case $e.DESELECT_FILE:{let n=[...e.selectedFilesIds];return-1!==n.indexOf(t.payload.id)&&(n=n.filter(e=>e!==t.payload.id)),{...e,selectedFilesIds:n}}case $e.SELECT_ALL_FILES:return{...e,selectedFilesIds:e.projectFiles.map(e=>e.id)};case $e.CLEAR_SELECTED_FILES:return{...e,selectedFilesIds:[]};case $e.TOGGLE_DELETION_PENDING:return{...e,deletionPending:t.payload.toggled};case $e.MODIFY_REQUESTS_IN_PROGRESS:{let n=e.requestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,requestsInProgress:n}}case $e.MODIFY_BLOCKING_REQUESTS_IN_PROGRESS:{let n=e.blockingRequestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,blockingRequestsInProgress:n}}case $e.TOGGLE_FILE_POPOVER_OPEN:return{...e,openPopoverId:t.payload.id===e.openPopoverId?void 0:t.payload.id};case $e.SET_APPLICATION_ID:return{...e,applicationId:t.payload.value};case $e.INITIALIZATION:var n,r,o,i;return{...e,applicationId:t.payload.value.applicationId,isProceeding:null!==(n=t.payload.value.isProceeding)&&void 0!==n&&n,isBimApplication:null!==(r=t.payload.value.isBimApplication)&&void 0!==r&&r,isPlanningProject:null!==(o=t.payload.value.isPlanningProject)&&void 0!==o&&o,isPlanningView:null!==(i=t.payload.value.isPlanningView)&&void 0!==i&&i};case $e.TOGGLE_IS_LOADING_CURRENT_PROJECT:return{...e,isLoadingCurrentProject:t.payload.toggled};case $e.TOGGLE_PROJECT_NAME_SENDING:return{...e,createProjectSending:t.payload.toggled};case $e.SET_ALLOWED_EXTENSIONS:return{...e,allowedExtensions:t.payload.extensions};case $e.TOGGLE_IS_PROJECT_LEGACY:return{...e,legacy:t.payload.toggled};case $e.TOGGLE_IS_PROJECT_READ_ONLY:return{...e,readOnly:t.payload.toggled}}return e},baseProjectState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ae.SET_INFO:return{...e,info:t.payload.info};case Ae.TOGGLE_REFERENCE_CREATING:return{...e,referenceCreating:t.payload.toggled};case Ae.TOGGLE_REFERENCE_CLONING:return{...e,referenceCloning:t.payload.toggled};default:return e}},editFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Kn.SET_EDIT_FILE:return{...e,editFile:t.payload.file};case Kn.CLEAR_EDIT_FILE:return{...e,editFile:void 0};case Kn.CLEAR_EDIT_ERRORS:return{...e,errors:[]};case Kn.ADD_EDIT_ERROR:return{...e,errors:[...e.errors,(n=t.payload.error,{...n,id:Pe()})]};case Kn.REMOVE_EDIT_ERROR:return{...e,errors:e.errors.filter(e=>e.id!==t.payload.id)};case Kn.TOGGLE_EDIT_RESPONSE_PENDING:return{...e,responsePending:t.payload.toggled}}var n;return e},planningFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case no.SET_EDIT_PLANNING_FILE:return{...e,planningFile:t.payload.file};case no.CLEAR_EDIT_PLANNING_FILE:return{...e,planningFile:void 0};case no.CLEAR_EDIT_PLANNING_ERROR:return{...e,errors:[]};case no.ADD_EDIT_PLANNING_ERROR:return{...e,errors:[...e.errors,(n=t.payload.error,{...n,id:Pe()})]};case no.REMOVE_EDIT_PLANNING_ERROR:return{...e,errors:e.errors.filter(e=>e.id!==t.payload.id)};case no.TOGGLE_EDIT_PLANNING_RESPONSE_PENDING:return{...e,responsePending:t.payload.toggled}}var n;return e},restrictFilesState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:to,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Qt.SET_FILE_IDS:return{...e,fileIds:t.payload.fileIds};case Qt.RELEASE_FILE_IDS:return{...e,releaseFileIds:t.payload.fileIds};case Qt.MODIFY_REQUESTS_IN_PROGRESS:{let n=e.requestsInProgress+t.payload.delta;return n<0&&(console.error(`Unexpected number of requests in progress, expected positive number, got ${n}`),n=0),{...e,requestsInProgress:n}}}return e},signState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case xe.SET_PROJECT_TYPES:return{...e,projectTypes:t.payload.projectType};case xe.SET_PROJECT_CONTAINER:return{...e,projectContainer:t.payload.projectContainer}}return e},codeToTextState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case _e.SET_GRUPI_MARKSONA_CODE_TO_TEXTS:return{...e,grupiMarksona:[...t.payload.codes]};case _e.SET_GRUPP_CODE_TO_TEXTS:return{...e,grupp:[...t.payload.codes]};case _e.SET_PROJEKTI_OSA_CODE_TO_TEXTS:return{...e,projektiOsa:[...t.payload.codes]};case _e.SET_PROJEKTI_STAADIUM_CODE_TO_TEXTS:return{...e,projektiStaadium:[...t.payload.codes]};case _e.SET_EHITISED_CODE_TO_TEXTS:return{...e,ehitised:[...t.payload.codes]};case _e.SET_PLANNING_FATYS_CODE_TO_TEXTS:return{...e,planningFileTypes:[...t.payload.codes]}}return e},replaceFileState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case or.SET_FILE_REPLACE_ID:return{...e,id:t.payload.value};case or.SET_FILE_REPLACE_NAME:return{...e,name:t.payload.value};case or.TOGGLE_FILE_REPLACE_UPLOAD_IN_PROGRESS:return{...e,uploadInProgress:t.payload.toggled};case or.CLEAR_FILE_REPLACE:return{...e,id:"",name:"",uploadInProgress:!1}}return e},signPopup:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case zt.SET_SIGN_METHOD:return{...e,method:t.payload.method};case zt.SET_SIGN_CHALLENGE:return{...e,challenge:t.payload.text};case zt.SET_SIGN_SESSION:return{...e,sessionId:t.payload.text};case zt.SET_MOBILE_NUMBER:return{...e,mobileNumber:t.payload.text};case zt.COMPLETE_SIGNING:return{...e,sessionId:void 0,signInProgress:!1,projektiOsa:void 0,revision:void 0,challenge:void 0};case zt.ENABLE_SIGN_PROJEKTI_OSA:return{...e,method:ue.ID_CARD,revision:t.payload.revision,projektiOsa:t.payload.projektiOsa};case zt.TOGGLE_SIGN_IN_PROGRESS:return{...e,signInProgress:t.payload.toggled};case zt.CANCEL_SIGN_PROJEKTI_OSA:return{...e,sessionId:void 0,signInProgress:!1,projektiOsa:void 0,revision:void 0,challenge:void 0}}return e},permissions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1?arguments[1]:void 0;return t.type===ke.SET_PERMISSIONS?{...e,permissions:{...e.permissions,...t.payload.permissions}}:e},keycloak:Bt.KeycloakReducer,profile:Bt.ProfileReducer},uo=(0,qr.combineReducers)(co);function po(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fo(e){return!!e&&!!e[ni]}function go(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ri}(e)||Array.isArray(e)||!!e[ti]||!!(null===(t=e.constructor)||void 0===t?void 0:t[ti])||wo(e)||So(e))}function ho(e,t,n){void 0===n&&(n=!1),0===mo(e)?(n?Object.keys:oi)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function mo(e){var t=e[ni];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wo(e)?2:So(e)?3:0}function vo(e,t){return 2===mo(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bo(e,t){return 2===mo(e)?e.get(t):e[t]}function yo(e,t,n){var r=mo(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function xo(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function wo(e){return Xo&&e instanceof Map}function So(e){return Zo&&e instanceof Set}function _o(e){return e.o||e.t}function jo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ii(e);delete t[ni];for(var n=oi(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Eo(e,t){return void 0===t&&(t=!1),ko(e)||fo(e)||!go(e)||(mo(e)>1&&(e.set=e.add=e.clear=e.delete=Co),Object.freeze(e),t&&ho(e,function(e,t){return Eo(t,!0)},!0)),e}function Co(){po(2)}function ko(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function To(e){var t=ai[e];return t||po(18,e),t}function Po(e,t){ai[e]||(ai[e]=t)}function Ro(){return Ko}function Oo(e,t){t&&(To("Patches"),e.u=[],e.s=[],e.v=t)}function Io(e){Ao(e),e.p.forEach(Do),e.p=null}function Ao(e){e===Ko&&(Ko=e.l)}function Mo(e){return Ko={p:[],l:Ko,h:e,m:!0,_:0}}function Do(e){var t=e[ni];0===t.i||1===t.i?t.j():t.g=!0}function Fo(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||To("ES5").S(t,e,r),r?(n[ni].P&&(Io(t),po(4)),go(e)&&(e=No(t,e),t.l||$o(t,e)),t.u&&To("Patches").M(n[ni].t,e,t.u,t.s)):e=No(t,n,[]),Io(t),t.u&&t.v(t.u,t.s),e!==ei?e:void 0}function No(e,t,n){if(ko(t))return t;var r=t[ni];if(!r)return ho(t,function(o,i){return Lo(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return $o(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=jo(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),ho(i,function(t,i){return Lo(e,r,o,t,i,n,a)}),$o(e,o,!1),n&&e.u&&To("Patches").N(r,n,e.u,e.s)}return r.o}function Lo(e,t,n,r,o,i,a){if(fo(o)){var s=No(e,o,i&&t&&3!==t.i&&!vo(t.R,r)?i.concat(r):void 0);if(yo(n,r,s),!fo(s))return;e.m=!1}else a&&n.add(o);if(go(o)&&!ko(o)){if(!e.h.D&&e._<1)return;No(e,o),t&&t.A.l||$o(e,o)}}function $o(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Eo(t,n)}function Vo(e,t){var n=e[ni];return(n?_o(n):e)[t]}function Bo(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function zo(e){e.P||(e.P=!0,e.l&&zo(e.l))}function Go(e){e.o||(e.o=jo(e.t))}function Uo(e,t,n){var r=wo(t)?To("MapSet").F(t,n):So(t)?To("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ro(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=si;n&&(o=[r],i=li);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):To("ES5").J(t,n);return(n?n.A:Ro()).p.push(r),r}function Ho(e){return fo(e)||po(22,e),function e(t){if(!go(t))return t;var n,r=t[ni],o=mo(t);if(r){if(!r.P&&(r.i<4||!To("ES5").K(r)))return r.t;r.I=!0,n=Wo(t,o),r.I=!1}else n=Wo(t,o);return ho(n,function(t,o){r&&bo(r.t,t)===o||yo(n,t,e(o))}),3===o?new Set(n):n}(e)}function Wo(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jo(e)}function qo(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[ni];return si.get(t,e)},set:function(t){var n=this[ni];si.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][ni];if(!o.P)switch(o.i){case 5:r(o)&&zo(o);break;case 4:n(o)&&zo(o)}}}function n(e){for(var t=e.t,n=e.k,r=oi(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==ni){var a=t[i];if(void 0===a&&!vo(t,i))return!0;var s=n[i],l=s&&s[ni];if(l?l.t!==a:!xo(s,a))return!0}}var c=!!t[ni];return r.length!==oi(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};Po("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=ii(n);delete i[ni];for(var a=oi(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:Ro(),P:!1,I:!1,R:{},l:n,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,ni,{value:i,writable:!0}),o},S:function(e,n,o){o?fo(n)&&n[ni].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[ni];if(n){var o=n.t,i=n.k,a=n.R,s=n.i;if(4===s)ho(i,function(t){t!==ni&&(void 0!==o[t]||vo(o,t)?a[t]||e(i[t]):(a[t]=!0,zo(n)))}),ho(o,function(e){void 0!==i[e]||vo(i,e)||(a[e]=!1,zo(n))});else if(5===s){if(r(n)&&(zo(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),d=0;d<u;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var Yo,Ko,Jo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Xo="undefined"!=typeof Map,Zo="undefined"!=typeof Set,Qo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ei=Jo?Symbol.for("immer-nothing"):((Yo={})["immer-nothing"]=!0,Yo),ti=Jo?Symbol.for("immer-draftable"):"__$immer_draftable",ni=Jo?Symbol.for("immer-state"):"__$immer_state",ri=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),oi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ii=Object.getOwnPropertyDescriptors||function(e){var t={};return oi(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},ai={},si={get:function(e,t){if(t===ni)return e;var n=_o(e);if(!vo(n,t))return function(e,t,n){var r,o=Bo(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!go(r)?r:r===Vo(e.t,t)?(Go(e),e.o[t]=Uo(e.A.h,r,e)):r},has:function(e,t){return t in _o(e)},ownKeys:function(e){return Reflect.ownKeys(_o(e))},set:function(e,t,n){var r=Bo(_o(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Vo(_o(e),t),i=null==o?void 0:o[ni];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(xo(n,o)&&(void 0!==n||vo(e.t,t)))return!0;Go(e),zo(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Vo(e.t,t)||t in e.t?(e.R[t]=!1,Go(e),zo(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=_o(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){po(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){po(12)}},li={};ho(si,function(e,t){li[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),li.deleteProperty=function(e,t){return li.set.call(this,e,t,void 0)},li.set=function(e,t,n){return si.set.call(this,e[0],t,n,e[0])};var ci=function(){function e(e){var t=this;this.O=Qo,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&po(6),void 0!==r&&"function"!=typeof r&&po(7),go(e)){var s=Mo(t),l=Uo(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?Io(s):Ao(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return Oo(s,r),Fo(e,s)},function(e){throw Io(s),e}):(Oo(s,r),Fo(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ei&&(a=void 0),t.D&&Eo(a,!0),r){var u=[],d=[];To("Patches").M(e,a,u,d),r(u,d)}return a}po(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){go(e)||po(8),fo(e)&&(e=Ho(e));var t=Mo(this),n=Uo(this,e,void 0);return n[ni].C=!0,Ao(t),n},t.finishDraft=function(e,t){var n=(e&&e[ni]).A;return Oo(n,t),Fo(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Qo&&po(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=To("Patches").$;return fo(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),ui=new ci;ui.produce,ui.produceWithPatches.bind(ui),ui.setAutoFreeze.bind(ui),ui.setUseProxies.bind(ui),ui.applyPatches.bind(ui),ui.createDraft.bind(ui),ui.finishDraft.bind(ui);function di(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var pi=di();pi.withExtraArgument=di;const fi=pi;var gi,hi=(gi=function(e,t){return gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},gi(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}gi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mi=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},vi=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},bi=Object.defineProperty,yi=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable,ji=function(e,t,n){return t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ei=function(e,t){for(var n in t||(t={}))Si.call(t,n)&&ji(e,n,t[n]);if(wi)for(var r=0,o=wi(t);r<o.length;r++){n=o[r];_i.call(t,n)&&ji(e,n,t[n])}return e},Ci=function(e,t){return yi(e,xi(t))},ki=function(e,t,n){return new Promise(function(r,o){var i=function(e){try{s(n.next(e))}catch(e){o(e)}},a=function(e){try{s(n.throw(e))}catch(e){o(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())})},Ti="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?qr.compose:qr.compose.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Pi(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function Ri(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ei(Ei({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Oi=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return hi(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vi([void 0],e[0].concat(this)))):new(t.bind.apply(t,vi([void 0],e.concat(this))))},t}(Array),Ii=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return hi(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,vi([void 0],e[0].concat(this)))):new(t.bind.apply(t,vi([void 0],e.concat(this))))},t}(Array);function Ai(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Oi);n&&(!function(e){return"boolean"==typeof e}(n)?r.push(fi.withExtraArgument(n.extraArgument)):r.push(fi));0;return r}(e)}}var Mi=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Di=["name","message","stack","code"],Fi=function(e,t){this.payload=e,this.meta=t},Ni=function(e,t){this.payload=e,this.meta=t},Li=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=Di;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Ri(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:Ci(Ei({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),o=Ri(e+"/pending",function(e,t,n){return{payload:void 0,meta:Ci(Ei({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),i=Ri(e+"/rejected",function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||Li)(e||"Rejected"),meta:Ci(Ei({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign(function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Mi(),p=new a;function f(e){u=e,p.abort()}var g=function(){return ki(this,null,function(){var a,g,h,m,v,b;return mi(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(x=m)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,m];case 1:m=y.sent(),y.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),s(o(d,e,null==(g=null==n?void 0:n.getPendingMeta)?void 0:g.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:p.signal,abort:f,rejectWithValue:function(e,t){return new Fi(e,t)},fulfillWithValue:function(e,t){return new Ni(e,t)}})).then(function(t){if(t instanceof Fi)throw t;return t instanceof Ni?r(t.payload,d,e,t.meta):r(t,d,e)})])];case 3:return h=y.sent(),[3,5];case 4:return b=y.sent(),h=b instanceof Fi?i(null,d,e,b.payload,b.meta):i(b,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||s(h),[2,h]}var x})})}();return Object.assign(g,{abort:f,requestId:d,arg:e,unwrap:function(){return g.then($i)}})}},{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function $i(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Vi="listenerMiddleware";Ri(Vi+"/add"),Ri(Vi+"/removeAll"),Ri(Vi+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:globalThis);var Bi,zi=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:zi(10);qo();const Gi=e=>{const t=function(e){var t,n=Ai(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,f=void 0===p?void 0:p;if("function"==typeof i)t=i;else{if(!Pi(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=(0,qr.combineReducers)(i)}var g=s;"function"==typeof g&&(g=g(n));var h=qr.applyMiddleware.apply(void 0,g),m=qr.compose;c&&(m=Ti(Ei({trace:!1},"object"==typeof c&&c)));var v=new Ii(h),b=v;Array.isArray(f)?b=vi([h],f):"function"==typeof f&&(b=f(v));var y=m.apply(void 0,b);return(0,qr.createStore)(t,d,y)}({reducer:uo,middleware:e=>[Bt.RefreshMiddleware,...e({serializableCheck:!1})],preloadedState:e});return t},Ui=Gi,Hi=e=>{let{closePopup:t,files:n,requestReleaseFiles:r,requestsInProgress:o}=e;(0,G.useIntl)();return(0,R.jsx)(R.Fragment,{children:null!=n&&n.length?(0,R.jsxs)(I,{title:"popupReleaseAccess.title",onCancel:()=>t(),onAccept:function(){null!=n&&n.length&&r(n)},disableAccept:o,css:{width:"unset",minHeight:"unset"},children:[(0,R.jsx)("p",{children:(0,R.jsx)(g.Text,{raw:"popupReleaseAccess.overview"})}),(0,R.jsx)("ul",{className:"list-with-arrows",children:n.map(e=>(0,R.jsx)("li",{children:e.failiNimetus},e.id))})]}):null})};const Wi=(0,P.connect)(function(e){const t=new Set(e.restrictFilesState.releaseFileIds);return{files:t&&e.projectState.projectFiles.filter(e=>t.has(e.id)),permissions:e.permissions.permissions,requestsInProgress:e.restrictFilesState.requestsInProgress}},function(e){return{closePopup:()=>{e(tn(void 0))},requestReleaseFiles:t=>{e(on(t))}}})(Hi),qi=e=>{let{applicationId:t,onFilesChange:n,buttonConfig:r,isProceeding:o}=e;const i=(0,G.useIntl)(),[a,s]=(0,d.useState)(!1),[l]=(0,d.useState)(Ui({projectState:{...vr,applicationId:t,isProceeding:null!=o&&o}})),[c,u]=(0,d.useState)("buildingProject.header.default");return(0,d.useEffect)(()=>{l.subscribe(()=>{var e;s(l.getState().uiState.enableFilter);const t=i.formatMessage({id:"AUDIT"===(null===(n=l.getState().projectState)||void 0===n?void 0:n.applicationType)?"buildingProject.header.audit":"buildingProject.header.default"});var n;const r=null!==(e=l.getState().projectState)&&void 0!==e&&e.isReference?` (${i.formatMessage({id:"buildingProject.header.reference"})})`:"";u(t+r)})},[l]),(0,R.jsx)(P.Provider,{store:l,children:(0,R.jsx)("div",{id:"doc2",children:(0,R.jsxs)(g.Section,{form:!0,title:c,filterContents:(0,R.jsx)(Fr,{}),showSettings:a,children:[(0,R.jsx)(Er,{onFilesChange:n,buttonConfig:r}),(0,R.jsx)(Ar,{}),(0,R.jsx)(z,{}),(0,R.jsx)(Zt,{}),(0,R.jsx)(sn,{}),(0,R.jsx)(Wi,{}),(0,R.jsx)(Lr,{}),(0,R.jsx)(Wr,{})]})},Boolean(a).toString())})};var Yi=a(660),Ki={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Ki);var Ji=Ki.exports;const Xi=(0,Yi.gB)(Ji),Zi={"accordion__item-wrapping-heading":"accordion__item-wrapping-heading-45345260","accordion__item-header":"accordion__item-header-26962561","accordion__item--open":"accordion__item--open-52bf4ec2",accordion__item:"accordion__item-c7a360bc","accordion__item--disabled":"accordion__item--disabled-ca60e759","accordion__item-content":"accordion__item-content-4c915498"},Qi="tedi-vertical-spacing-331d450d",ea="tedi-vertical-spacing__item-cab39001";function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var na="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,ra="object"==typeof self&&self&&self.Object===Object&&self,oa=na||ra||Function("return this")(),ia=function(){return oa.Date.now()},aa=/\s/;var sa=/^\s+/;function la(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&aa.test(e.charAt(t)););return t}(e)+1).replace(sa,"")}var ca=oa.Symbol,ua=Object.prototype,da=ua.hasOwnProperty,pa=ua.toString,fa=ca?ca.toStringTag:void 0;var ga=Object.prototype.toString;var ha=ca?ca.toStringTag:void 0;function ma(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ha&&ha in Object(e)?function(e){var t=da.call(e,fa),n=e[fa];try{e[fa]=void 0;var r=!0}catch{}var o=pa.call(e);return r&&(t?e[fa]=n:delete e[fa]),o}(e):function(e){return ga.call(e)}(e)}function va(e){return null!=e&&"object"==typeof e}function ba(e){return"symbol"==typeof e||va(e)&&"[object Symbol]"==ma(e)}var ya=/^[-+]0x[0-9a-f]+$/i,xa=/^0b[01]+$/i,wa=/^0o[0-7]+$/i,Sa=parseInt;function _a(e){if("number"==typeof e)return e;if(ba(e))return NaN;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=la(e);var n=xa.test(e);return n||wa.test(e)?Sa(e.slice(2),n?2:8):ya.test(e)?NaN:+e}var ja=Math.max,Ea=Math.min;function Ca(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=ia();if(g(e))return m(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?Ea(n,i-(e-c)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=ia(),n=g(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=_a(t)||0,ta(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ja(_a(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:m(ia())},v}const ka=["xs","sm","md","lg","xl","xxl"];function Ta(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Pa(e,t){return e===t||e!=e&&t!=t}function Ra(e,t){for(var n=e.length;n--;)if(Pa(e[n][0],t))return n;return-1}var Oa=Array.prototype.splice;function Ia(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ia.prototype.clear=function(){this.__data__=[],this.size=0},Ia.prototype.delete=function(e){var t=this.__data__,n=Ra(t,e);return!(n<0)&&(n==t.length-1?t.pop():Oa.call(t,n,1),--this.size,!0)},Ia.prototype.get=function(e){var t=this.__data__,n=Ra(t,e);return n<0?void 0:t[n][1]},Ia.prototype.has=function(e){return Ra(this.__data__,e)>-1},Ia.prototype.set=function(e,t){var n=this.__data__,r=Ra(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Aa(e){if(!ta(e))return!1;var t=ma(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Ma=oa["__core-js_shared__"],Da=function(){var e=/[^.]+$/.exec(Ma&&Ma.keys&&Ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Fa=Function.prototype.toString;function Na(e){if(null!=e){try{return Fa.call(e)}catch{}try{return e+""}catch{}}return""}var La=/^\[object .+?Constructor\]$/,$a=Function.prototype,Va=Object.prototype,Ba=$a.toString,za=Va.hasOwnProperty,Ga=RegExp("^"+Ba.call(za).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ua(e){return!(!ta(e)||function(e){return!!Da&&Da in e}(e))&&(Aa(e)?Ga:La).test(Na(e))}function Ha(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ua(n)?n:void 0}var Wa=Ha(oa,"Map"),qa=Ha(Object,"create");var Ya=Object.prototype.hasOwnProperty;var Ka=Object.prototype.hasOwnProperty;function Ja(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xa(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Za(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ja.prototype.clear=function(){this.__data__=qa?qa(null):{},this.size=0},Ja.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ja.prototype.get=function(e){var t=this.__data__;if(qa){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ya.call(t,e)?t[e]:void 0},Ja.prototype.has=function(e){var t=this.__data__;return qa?void 0!==t[e]:Ka.call(t,e)},Ja.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qa&&void 0===t?"__lodash_hash_undefined__":t,this},Za.prototype.clear=function(){this.size=0,this.__data__={hash:new Ja,map:new(Wa||Ia),string:new Ja}},Za.prototype.delete=function(e){var t=Xa(this,e).delete(e);return this.size-=t?1:0,t},Za.prototype.get=function(e){return Xa(this,e).get(e)},Za.prototype.has=function(e){return Xa(this,e).has(e)},Za.prototype.set=function(e,t){var n=Xa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Qa(e){var t=this.__data__=new Ia(e);this.size=t.size}Qa.prototype.clear=function(){this.__data__=new Ia,this.size=0},Qa.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qa.prototype.get=function(e){return this.__data__.get(e)},Qa.prototype.has=function(e){return this.__data__.has(e)},Qa.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ia){var r=n.__data__;if(!Wa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Za(r)}return n.set(e,t),this.size=n.size,this};function es(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Za;++t<n;)this.add(e[t])}function ts(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ns(e,t){return e.has(t)}es.prototype.add=es.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},es.prototype.has=function(e){return this.__data__.has(e)};function rs(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new es:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var g=e[d],h=t[d];if(r)var m=a?r(h,g,d,t,e,i):r(g,h,d,e,t,i);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!ts(t,function(e,t){if(!ns(f,t)&&(g===e||o(g,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(g!==h&&!o(g,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}var os=oa.Uint8Array;function is(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function as(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ss=ca?ca.prototype:void 0,ls=ss?ss.valueOf:void 0;function cs(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var us=Array.isArray;function ds(e,t,n){var r=t(e);return us(e)?r:cs(r,n(e))}function ps(){return[]}var fs=Object.prototype.propertyIsEnumerable,gs=Object.getOwnPropertySymbols,hs=gs?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(gs(e),function(t){return fs.call(e,t)}))}:ps;function ms(e){return va(e)&&"[object Arguments]"==ma(e)}var vs=Object.prototype,bs=vs.hasOwnProperty,ys=vs.propertyIsEnumerable,xs=ms(function(){return arguments}())?ms:function(e){return va(e)&&bs.call(e,"callee")&&!ys.call(e,"callee")};var ws="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ss=ws&&"object"==typeof module&&module&&!module.nodeType&&module,_s=Ss&&Ss.exports===ws?oa.Buffer:void 0,js=(_s?_s.isBuffer:void 0)||function(){return!1},Es=/^(?:0|[1-9]\d*)$/;function Cs(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&Es.test(e))&&e>-1&&e%1==0&&e<t}function ks(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Ts={};function Ps(e){return function(t){return e(t)}}Ts["[object Float32Array]"]=Ts["[object Float64Array]"]=Ts["[object Int8Array]"]=Ts["[object Int16Array]"]=Ts["[object Int32Array]"]=Ts["[object Uint8Array]"]=Ts["[object Uint8ClampedArray]"]=Ts["[object Uint16Array]"]=Ts["[object Uint32Array]"]=!0,Ts["[object Arguments]"]=Ts["[object Array]"]=Ts["[object ArrayBuffer]"]=Ts["[object Boolean]"]=Ts["[object DataView]"]=Ts["[object Date]"]=Ts["[object Error]"]=Ts["[object Function]"]=Ts["[object Map]"]=Ts["[object Number]"]=Ts["[object Object]"]=Ts["[object RegExp]"]=Ts["[object Set]"]=Ts["[object String]"]=Ts["[object WeakMap]"]=!1;var Rs="object"==typeof exports&&exports&&!exports.nodeType&&exports,Os=Rs&&"object"==typeof module&&module&&!module.nodeType&&module,Is=Os&&Os.exports===Rs&&na.process,As=function(){try{return Os&&Os.require&&Os.require("util").types||Is&&Is.binding&&Is.binding("util")}catch{}}(),Ms=As&&As.isTypedArray,Ds=Ms?Ps(Ms):function(e){return va(e)&&ks(e.length)&&!!Ts[ma(e)]},Fs=Object.prototype.hasOwnProperty;function Ns(e,t){var n=us(e),r=!n&&xs(e),o=!n&&!r&&js(e),i=!n&&!r&&!o&&Ds(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)(t||Fs.call(e,c))&&(!a||!("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Cs(c,l)))&&s.push(c);return s}var Ls=Object.prototype;function $s(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ls)}function Vs(e,t){return function(n){return e(t(n))}}var Bs=Vs(Object.keys,Object),zs=Object.prototype.hasOwnProperty;function Gs(e){return null!=e&&ks(e.length)&&!Aa(e)}function Us(e){return Gs(e)?Ns(e):function(e){if(!$s(e))return Bs(e);var t=[];for(var n in Object(e))zs.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function Hs(e){return ds(e,Us,hs)}var Ws=Object.prototype.hasOwnProperty;var qs=Ha(oa,"DataView"),Ys=Ha(oa,"Promise"),Ks=Ha(oa,"Set"),Js=Ha(oa,"WeakMap"),Xs="[object Map]",Zs="[object Promise]",Qs="[object Set]",el="[object WeakMap]",tl="[object DataView]",nl=Na(qs),rl=Na(Wa),ol=Na(Ys),il=Na(Ks),al=Na(Js),sl=ma;(qs&&sl(new qs(new ArrayBuffer(1)))!=tl||Wa&&sl(new Wa)!=Xs||Ys&&sl(Ys.resolve())!=Zs||Ks&&sl(new Ks)!=Qs||Js&&sl(new Js)!=el)&&(sl=function(e){var t=ma(e),n="[object Object]"==t?e.constructor:void 0,r=n?Na(n):"";if(r)switch(r){case nl:return tl;case rl:return Xs;case ol:return Zs;case il:return Qs;case al:return el}return t});var ll="[object Arguments]",cl="[object Array]",ul="[object Object]",dl=Object.prototype.hasOwnProperty;function pl(e,t,n,r,o,i){var a=us(e),s=us(t),l=a?cl:sl(e),c=s?cl:sl(t),u=(l=l==ll?ul:l)==ul,d=(c=c==ll?ul:c)==ul,p=l==c;if(p&&js(e)){if(!js(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Qa),a||Ds(e)?rs(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new os(e),new os(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Pa(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=is;case"[object Set]":var l=1&r;if(s||(s=as),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=rs(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(ls)return ls.call(e)==ls.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&dl.call(e,"__wrapped__"),g=d&&dl.call(t,"__wrapped__");if(f||g){var h=f?e.value():e,m=g?t.value():t;return i||(i=new Qa),o(h,m,n,r,i)}}return!!p&&(i||(i=new Qa),function(e,t,n,r,o,i){var a=1&n,s=Hs(e),l=s.length;if(l!=Hs(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Ws.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var g=a;++c<l;){var h=e[u=s[c]],m=t[u];if(r)var v=a?r(m,h,u,t,e,i):r(h,m,u,e,t,i);if(!(void 0===v?h===m||o(h,m,n,r,i):v)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function fl(e,t,n,r,o){return e===t||(null==e||null==t||!va(e)&&!va(t)?e!=e&&t!=t:pl(e,t,n,r,fl,o))}function gl(e){return e==e&&!ta(e)}function hl(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ml(e){var t=function(e){for(var t=Us(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,gl(o)]}return t}(e);return 1==t.length&&t[0][2]?hl(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var s=(a=n[o])[0],l=e[s],c=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else if(!fl(c,l,3,r,new Qa))return!1}return!0}(n,0,t)}}var vl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bl=/^\w*$/;function yl(e,t){if(us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ba(e))||(bl.test(e)||!vl.test(e)||null!=t&&e in Object(t))}function xl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xl.Cache||Za),n}xl.Cache=Za;var wl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sl=/\\(\\)?/g,_l=function(e){var t=xl(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wl,function(e,n,r,o){t.push(r?o.replace(Sl,"$1"):n||e)}),t}),jl=ca?ca.prototype:void 0,El=jl?jl.toString:void 0;function Cl(e){if("string"==typeof e)return e;if(us(e))return Ta(e,Cl)+"";if(ba(e))return El?El.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function kl(e){return null==e?"":Cl(e)}function Tl(e,t){return us(e)?e:yl(e,t)?[e]:_l(kl(e))}function Pl(e){if("string"==typeof e||ba(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Rl(e,t){for(var n=0,r=(t=Tl(t,e)).length;null!=e&&n<r;)e=e[Pl(t[n++])];return n&&n==r?e:void 0}function Ol(e,t){return null!=e&&t in Object(e)}function Il(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Tl(t,e)).length,i=!1;++r<o;){var a=Pl(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ks(o)&&Cs(a,o)&&(us(e)||xs(e))}(e,t,Ol)}function Al(e,t){return yl(e)&&gl(t)?hl(Pl(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Rl(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Il(n,e):fl(t,r,3)}}function Ml(e){return e}function Dl(e){return yl(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Pl(e)):function(e){return function(t){return Rl(t,e)}}(e)}var Fl=function(){try{var e=Ha(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Nl(e,t,n){"__proto__"==t&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ll=Object.prototype.hasOwnProperty;function $l(e,t,n){var r=e[t];(!Ll.call(e,t)||!Pa(r,n)||void 0===n&&!(t in e))&&Nl(e,t,n)}function Vl(e,t,n,r){if(!ta(e))return e;for(var o=-1,i=(t=Tl(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=Pl(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=void 0)&&(c=ta(u)?u:Cs(t[o+1])?[]:{})}$l(s,l,c),s=s[l]}return e}var Bl=Vs(Object.getPrototypeOf,Object),zl=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)cs(t,hs(e)),e=Bl(e);return t}:ps;var Gl=Object.prototype.hasOwnProperty;function Ul(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=$s(e),n=[];for(var r in e)"constructor"==r&&(t||!Gl.call(e,r))||n.push(r);return n}function Hl(e){return Gs(e)?Ns(e,!0):Ul(e)}function Wl(e){return ds(e,Hl,zl)}function ql(e,t){if(null==e)return{};var n=Ta(Wl(e),function(e){return[e]});return t=function(e){return"function"==typeof e?e:null==e?Ml:"object"==typeof e?us(e)?Al(e[0],e[1]):ml(e):Dl(e)}(t),function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Rl(e,a);n(s,a)&&Vl(i,Tl(a,e),s)}return i}(e,n,function(e,n){return t(e,n[0])})}function Yl(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;void 0===l&&(l=e[s]),o?Nl(n,s,l):$l(n,s,l)}return n}var Kl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jl=Kl&&"object"==typeof module&&module&&!module.nodeType&&module,Xl=Jl&&Jl.exports===Kl?oa.Buffer:void 0,Zl=Xl?Xl.allocUnsafe:void 0;function Ql(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ec=Object.prototype.hasOwnProperty;function tc(e){var t=new e.constructor(e.byteLength);return new os(t).set(new os(e)),t}var nc=/\w*$/;var rc=ca?ca.prototype:void 0,oc=rc?rc.valueOf:void 0;function ic(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return tc(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?tc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?tc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,nc.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return oc?Object(oc.call(e)):{}}(e)}}var ac=Object.create,sc=function(){function e(){}return function(t){if(!ta(t))return{};if(ac)return ac(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var lc=As&&As.isMap,cc=lc?Ps(lc):function(e){return va(e)&&"[object Map]"==sl(e)};var uc=As&&As.isSet,dc=uc?Ps(uc):function(e){return va(e)&&"[object Set]"==sl(e)},pc="[object Arguments]",fc="[object Function]",gc="[object Object]",hc={};function mc(e,t,n,r,o,i){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!ta(e))return e;var u=us(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ec.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Ql(e,a)}else{var d=sl(e),p=d==fc||"[object GeneratorFunction]"==d;if(js(e))return function(e,t){if(t)return e.slice();var n=e.length,r=Zl?Zl(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==gc||d==pc||p&&!o){if(a=l||p?{}:function(e){return"function"!=typeof e.constructor||$s(e)?{}:sc(Bl(e))}(e),!s)return l?function(e,t){return Yl(e,zl(e),t)}(e,function(e,t){return e&&Yl(t,Hl(t),e)}(a,e)):function(e,t){return Yl(e,hs(e),t)}(e,function(e,t){return e&&Yl(t,Us(t),e)}(a,e))}else{if(!hc[d])return o?e:{};a=ic(e,d,s)}}i||(i=new Qa);var f=i.get(e);if(f)return f;i.set(e,a),dc(e)?e.forEach(function(r){a.add(mc(r,t,n,r,e,i))}):cc(e)&&e.forEach(function(r,o){a.set(o,mc(r,t,n,o,e,i))});var g=u?void 0:(c?l?Wl:Hs:l?Hl:Us)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(g||e,function(r,o){g&&(r=e[o=r]),$l(a,o,mc(r,t,n,o,e,i))}),a}function vc(e,t){return t.length<2?e:Rl(e,function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(t,0,-1))}function bc(e,t){return null==(e=vc(e,t=Tl(t,e)))||delete e[Pl(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}hc[pc]=hc["[object Array]"]=hc["[object ArrayBuffer]"]=hc["[object DataView]"]=hc["[object Boolean]"]=hc["[object Date]"]=hc["[object Float32Array]"]=hc["[object Float64Array]"]=hc["[object Int8Array]"]=hc["[object Int16Array]"]=hc["[object Int32Array]"]=hc["[object Map]"]=hc["[object Number]"]=hc[gc]=hc["[object RegExp]"]=hc["[object Set]"]=hc["[object String]"]=hc["[object Symbol]"]=hc["[object Uint8Array]"]=hc["[object Uint8ClampedArray]"]=hc["[object Uint16Array]"]=hc["[object Uint32Array]"]=!0,hc["[object Error]"]=hc[fc]=hc["[object WeakMap]"]=!1;var yc=Function.prototype,xc=Object.prototype,wc=yc.toString,Sc=xc.hasOwnProperty,_c=wc.call(Object);function jc(e){if(!va(e)||"[object Object]"!=ma(e))return!1;var t=Bl(e);if(null===t)return!0;var n=Sc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&wc.call(n)==_c}function Ec(e){return jc(e)?void 0:e}var Cc=ca?ca.isConcatSpreadable:void 0;function kc(e){return us(e)||xs(e)||!!(Cc&&e&&e[Cc])}function Tc(e){return(null==e?0:e.length)?function(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=kc),o||(o=[]);++i<a;){var s=e[i];n(s)?cs(o,s):o[o.length]=s}return o}(e):[]}var Pc=Math.max;function Rc(e){return function(){return e}}var Oc=Fl?function(e,t){return Fl(e,"toString",{configurable:!0,enumerable:!1,value:Rc(t),writable:!0})}:Ml,Ic=Date.now;var Ac=function(e){var t=0,n=0;return function(){var r=Ic(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Oc);var Mc=function(e){return Ac(function(e,t,n){return t=Pc(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Pc(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,void 0,Tc),e+"")}(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ta(t,function(t){return t=Tl(t,e),r||(r=t.length>1),t}),Yl(e,Wl(e),n),r&&(n=mc(n,7,Ec));for(var o=t.length;o--;)bc(n,t[o]);return n});const Dc=(e="xs")=>{const t=((e="xs")=>{const[t,n]=(0,d.useState)(e);return(0,d.useLayoutEffect)(()=>{const e=()=>window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs",t=Ca(()=>{n(e())},20);return n(e()),window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}},[]),t})(e),n=d.useMemo(()=>t?ka.slice(0,ka.indexOf(t)+1):[],[t]);return{getCurrentBreakpointProps:d.useCallback((e,t={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...n.map(t=>ql("xs"===t?l:e[t],e=>void 0!==e))].filter(Boolean);return Object.assign(Mc(t,"defaultServerBreakpoint"),...c)},[n])}},Fc=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,element:o="div",size:i=1,...a}=t(e),s=Xi(ea,r);return(0,R.jsx)(o,{"data-name":"vertical-spacing-item",...a,style:{"--vertical-spacing-internal":`${i}${0!==i?"em":""}`},className:s,children:n})},Nc=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,element:o="div",size:i=1,...a}=t(e),s=Xi(Qi,r);return(0,R.jsx)(o,{"data-name":"vertical-spacing",role:"presentation",...a,className:s,style:{"--vertical-spacing-internal":0!==i?`${i}em`:"0"},children:n})};Nc.Item=Fc;const Lc=d.createContext({isOpen:()=>!0,onToggle:()=>null}),$c=e=>{const{children:t,className:n,openItem:r,gutter:o=.5,onToggleItem:i,defaultOpenItem:a=[],...s}=e,l=r||a,[c,u]=d.useState(l);return(0,R.jsx)(Lc.Provider,{value:{isOpen:e=>(i&&typeof r<"u"?r:c).includes(e),onToggle:t=>{if(i)return i(t);((t=e.openItem)=>!!i&&typeof t<"u")(r)||u(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])}},children:(0,R.jsx)("div",{"data-name":"accordion",...s,className:Xi(Zi.accordion,n),children:(0,R.jsx)(Nc,{size:o,children:t})})})};const Vc=e=>{const{scrollOnMatch:t=!0,onMatch:n,id:r,children:o}=e,i=(0,d.useRef)(!0);return(0,d.useEffect)(()=>{const e=()=>{if(-1!==window.location.hash.split("/").filter(e=>0!==e.indexOf("?")&&1!==e.length&&0!==e.length).map(e=>"#"===e.charAt(0)?e.substring(1):e).indexOf(r)){n&&n(r);const e=document.getElementById(r);t&&e&&!function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)&&e.scrollIntoView(i.current?{behavior:"instant"}:{behavior:"smooth",block:"center"})}};return i.current&&(e(),i.current=!1),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[r,n,t]),(0,d.isValidElement)(o)?(0,d.cloneElement)(o,{id:r}):(0,R.jsx)("div",{id:r,children:o})},Bc={card:"card-1dcacf64","card--borderless":"card--borderless-32e5f5c2","card--no-border-radius-top":"card--no-border-radius-top-b4365e4f",card__content:"card__content-815d48ff","card--no-border-radius-right":"card--no-border-radius-right-3ceb8758","card--no-border-radius-bottom":"card--no-border-radius-bottom-63f3360b","card--no-border-radius-left":"card--no-border-radius-left-a3acce4a","card--border-left":"card--border-left-e9b3151f","card--border-top":"card--border-top-e2a66b39","card__header--default":"card__header--default-90734e02","card__header--primary-main":"card__header--primary-main-8de91e10","card__header--primary-active":"card__header--primary-active-6877b9af","card__header--white":"card__header--white-9243bce2","card__header--bg-muted":"card__header--bg-muted-7904d086",card__header:"card__header-5d78acc3"},zc=d.createContext({}),Gc=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Uc=e=>{const t=e=>"object"==typeof e&&"vertical"in e&&"horizontal"in e;return{"--card-content-padding-top":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.top}rem`,"--card-content-padding-right":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.right}rem`,"--card-content-padding-bottom":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.bottom}rem`,"--card-content-padding-left":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.left}rem`}},Hc=["xs","sm","md","lg","xl","xxl"],Wc=(e="xs")=>{const[t,n]=(0,d.useState)(e);return(0,d.useLayoutEffect)(()=>{const e=()=>window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs",t=Ca(()=>{n(e())},20);return n(e()),window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}},[]),t},qc=(e="xs")=>{const t=Wc(e),n=d.useMemo(()=>t?Hc.slice(0,Hc.indexOf(t)+1):[],[t]);return{getCurrentBreakpointProps:d.useCallback((e,t={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...n.map(t=>ql("xs"===t?l:e[t],e=>void 0!==e))].filter(Boolean);return Object.assign(Mc(t,"defaultServerBreakpoint"),...c)},[n])}},Yc=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=qc(e.defaultServerBreakpoint),{children:r,className:o,padding:i,background:a="bg-default",borderRadius:s,borderless:l,border:c="border-default",...u}=n(e,{padding:1}),[d,p]=Gc(c),f=Xi(Bc.card,o,{[Bc[`card--border-${d}`]]:d,[Bc["card--borderless"]]:l,[Bc["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Bc["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Bc["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Bc["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,R.jsx)(zc.Provider,{value:{padding:i,background:a},children:(0,R.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})});Yc.displayName="Card";const Kc=d.createContext({id:"",disabled:!1}),Jc=e=>{const{children:t,className:n,id:r,disabled:o=!1,borderType:i,selected:a=!1,border:s="border-default",...l}=e,{onToggle:c,isOpen:u}=d.useContext(Lc),p=Xi(Zi.accordion__item,n,{[Zi["accordion__item--disabled"]]:o,[Zi["accordion__item--open"]]:u(r)}),f=a||"primary"===i?"primary-main":s;return(0,R.jsx)(Kc.Provider,{value:{id:r,disabled:o},children:(0,R.jsx)(Vc,{id:r,onMatch:e=>{o||c(e)},children:(0,R.jsx)(Yc,{"data-name":"accordion-item",border:f,className:p,...l,children:t})})})},Xc={"tedi-spinner":"tedi-spinner-e16ceadf","tedi-spinner-outer":"tedi-spinner-outer-2060edd3","tedi-spinner--absolute":"tedi-spinner--absolute-6421650f","tedi-spinner__inner":"tedi-spinner__inner-83130f06","tedi-spinner-inner":"tedi-spinner-inner-86942e7c","tedi-spinner--color-primary":"tedi-spinner--color-primary-a5947db9","tedi-spinner--color-secondary":"tedi-spinner--color-secondary-821e61aa","tedi-spinner--size-10":"tedi-spinner--size-10-53c764a3","tedi-spinner--size-16":"tedi-spinner--size-16-2c5fb546","tedi-spinner--size-18":"tedi-spinner--size-18-73ae5727","tedi-spinner--size-48":"tedi-spinner--size-48-b76b700d"};var Zc=a(353),Qc=a(206),eu=a(981),tu=a(535);Zc.extend(Qc),Zc.extend(eu),Zc.extend(tu);const nu={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class ru{constructor({locale:e,formats:t,instance:n}={}){this.lib="dayjs",this.is12HourCycleInCurrentLocale=()=>{var e,t,n;return/A|a/.test(null!==(n=null===(t=null===(e=this.rawDayJsInstance.Ls[this.locale||"en"])||void 0===e?void 0:e.formats)||void 0===t?void 0:t.LT)&&void 0!==n?n:"")},this.getCurrentLocaleCode=()=>this.locale||"en",this.getFormatHelperText=e=>{var t,n;return null!==(n=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?)|./g))||void 0===t?void 0:t.map(e=>{var t,n;return"L"===e[0]&&null!==(n=null===(t=this.rawDayJsInstance.Ls[this.locale||"en"])||void 0===t?void 0:t.formats[e])&&void 0!==n?n:e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==n?n:e},this.parseISO=e=>this.dayjs(e),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.date=e=>null===e?null:this.dayjs(e),this.toJsDate=e=>e.toDate(),this.isValid=e=>this.dayjs(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,n)=>("string"==typeof t&&(t=this.dayjs(t)),t.isValid()?e.diff(t,n):0),this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.startOf("day"),this.endOfDay=e=>e.endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.getHours=e=>e.hour(),this.addSeconds=(e,t)=>t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second"),this.addMinutes=(e,t)=>t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute"),this.addHours=(e,t)=>t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour"),this.addDays=(e,t)=>t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day"),this.addWeeks=(e,t)=>t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week"),this.addMonths=(e,t)=>t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month"),this.addYears=(e,t)=>t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year"),this.setMonth=(e,t)=>e.set("month",t),this.setHours=(e,t)=>e.set("hour",t),this.getMinutes=e=>e.minute(),this.setMinutes=(e,t)=>e.set("minute",t),this.getSeconds=e=>e.second(),this.setSeconds=(e,t)=>e.set("second",t),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.setDate=(e,t)=>e.set("date",t),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.getMeridiemText=e=>"am"===e?"AM":"PM",this.startOfYear=e=>e.startOf("year"),this.endOfYear=e=>e.endOf("year"),this.startOfMonth=e=>e.startOf("month"),this.endOfMonth=e=>e.endOf("month"),this.startOfWeek=e=>e.startOf("week"),this.endOfWeek=e=>e.endOf("week"),this.getNextMonth=e=>e.add(1,"month"),this.getPreviousMonth=e=>e.subtract(1,"month"),this.getMonthArray=e=>{const t=[e.startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.year(),this.setYear=(e,t)=>e.set("year",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>{const e=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(t=>this.formatByString(e.add(t,"day"),"dd"))},this.isEqual=(e,t)=>null===e&&null===t||this.dayjs(e).isSame(t),this.getWeekArray=e=>{const t=this.dayjs(e).startOf("month").startOf("week"),n=this.dayjs(e).endOf("month").endOf("week");let r=0,o=t;const i=[];for(;o.isBefore(n);){const e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=o.add(1,"day"),r+=1}return i},this.getYearRange=(e,t)=>{const n=this.dayjs(e).startOf("year"),r=this.dayjs(t).endOf("year"),o=[];let i=n;for(;i.isBefore(r);)o.push(i),i=i.add(1,"year");return o},this.isWithinRange=(e,[t,n])=>e.isBetween(t,n,null,"[]"),this.rawDayJsInstance=n||Zc,this.dayjs=((e,t)=>t?(...n)=>e(...n).locale(t):e)(this.rawDayJsInstance,e),this.locale=e,this.formats=Object.assign({},nu,t)}}const ou={YY:"year",YYYY:"year",M:"month",MM:"month",MMM:"month",MMMM:"month",D:"day",DD:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",m:"minute",mm:"minute",s:"second",ss:"second",A:"am-pm",a:"am-pm"};class iu extends ru{constructor(...e){super(...e),this.formatTokenMap=ou,this.expandFormat=e=>{var t;const n=null==(t=this.rawDayJsInstance.Ls[this.locale||"en"])?void 0:t.formats;return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,t,r)=>{const o=r&&r.toUpperCase();return t||n[r]||(e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1)))(n[o])})},this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase()}}var au=a(784),su=a(411),lu=a(512);const cu="https://github.com/mui/mui-x/blob/HEAD/packages/x-date-pickers/src/locales/utils/pickersLocaleTextApi.ts",uu={close:{description:"Used for closing",components:["CloseButton","Collapse","Notification","FileUpload","Dropdown","Tooltip"],et:"Sulge",en:"Close",ru:"Закрыть"},open:{description:"Used for opening",components:["Collapse"],et:"Ava",en:"Open",ru:"Открыть"},remove:{description:"Used for removing",components:["FileUpload"],et:"Eemalda",en:"Remove",ru:"Удалить"},cancel:{description:"For canceling an action",components:["TableFilter"],et:"Tühista",en:"Cancel",ru:"Отмена"},clear:{description:"For clearing a value",components:["TableFilter","TextField"],et:"Tühjenda",en:"Clear",ru:"Очистить"},search:{description:"For searching",components:["TableFilter"],et:"Otsi",en:"Search",ru:"Поиск"},required:{description:"Required field",components:["TableFilter"],et:"Kohustuslik väli",en:"Required field",ru:"Обязательное поле"},breadcrumbs:{description:"Breadcrumbs navigation label",components:["Breadcrumbs"],et:"Jäljerida",en:"Breadcrumbs",ru:"Навигационная цепочка"},"anchor.new-tab":{description:"Label for when anchor opens in new tab",components:["Anchor"],et:"Avaneb uuel vahelehel",en:"Opens in new tab",ru:"Открывается в новой вкладке"},"header.toggle":{description:"Label for header toggle on mobile",components:["Header"],et:e=>e?"Sulge menüü":"Ava menüü",en:e=>e?"Close menu":"Open menu",ru:e=>e?"Закрыть меню":"Открыть меню"},"header.settings":{description:"Label for HeaderSettings Button",components:["HeaderSettings"],et:"Seaded",en:"Settings",ru:"Настройки"},"header.select-lang":{description:"Label for HeaderLanguage label and Modal Heading",components:["HeaderLanguage"],et:"Keel:",en:"Language:",ru:"Язык:"},"header.role-label":{description:"Label for Role selection",components:["HeaderRole"],et:"Mina esindan:",en:"I represent:",ru:"я представляю:"},"header.login":{description:"Label for login button",components:["Header"],et:"Sisene portaali",en:"Log in",ru:"авторизоваться"},"header.logout":{description:"Label for logout button",components:["Header"],et:"Logi välja",en:"Log out",ru:"Выйти"},"header.logo":{description:"Alt Label for logo",components:["Header"],et:"Logo",en:"Logo",ru:"Логотип"},"file-upload.add":{description:"Label for add file button",components:["FileUpload"],et:"Lisa manus",en:"Add attachment",ru:"Загрузить файл"},"file-upload.accept":{description:"Default label for file extensions",components:["FileUpload"],et:"Lubatud faililaiendid:",en:"Allowed file extensions:",ru:"Разрешенные расширения файлов:"},"file-upload.max-size":{description:"Default label for file size restriction",components:["FileUpload"],et:"Maksimaalne suurus:",en:"Maximum size:",ru:"Максимальный размер:"},"file-upload.size-rejected":{description:"Error label for rejected size",components:["FileUpload"],et:e=>`Fail(id) ${e} on liiga suured`,en:e=>`File(s) ${e} are too large`,ru:e=>`Файл(ы) ${e} слишком велики`},"file-upload.extension-rejected":{description:"Error label for rejected extension",components:["FileUpload"],et:e=>`Fail(id) ${e} on vale laiendiga`,en:e=>`File(s) ${e} have the wrong extension`,ru:e=>`Файл(ы) ${e} имеют неправильное расширение`},"file-dropzone.label":{description:"Default label for dropzone",components:["FileDropzone"],et:"Lohista failid siia või klõpsa, et sirvida",en:"Drop files here, or click to browse",ru:"Перетащите файлы сюда или нажмите, чтобы выбрать"},"modal.close":{description:"Label for modals close button",components:["Modal"],et:"Sulge modaal",en:"Close modal",ru:"Закрыть модальное окно"},"select.loading":{description:"Text when select options are loading",components:["select"],et:"Laadimine...",en:"Loading...",ru:"Загрузка..."},"select.no-options":{description:"Text when select has no options",components:["select"],et:"Valikud puuduvad",en:"No options",ru:"Нет вариантов"},"stepper.completed":{description:"Label for screen-reader that this step is completed (visually hidden)",components:["StepperNav"],et:"Lõpetatud",en:"Completed",ru:"Завершено"},"stepper.not-completed":{description:"Label for screen-reader that this step is not completed (visually hidden)",components:["StepperNav"],et:"Lõpetamata",en:"Not completed",ru:"Не завершено"},"skeleton.loading":{description:"Announced by screen-readers when skeleton is loading",components:["Skeleton"],et:"Laadimine",en:"Loading",ru:"Загрузка"},"skeleton.loading-completed":{description:"Announced by screen-readers when skeleton has completed loading",components:["Skeleton"],et:"Laadimine lõpetatud",en:"Loading completed",ru:"Загрузка завершена"},"spinner.loading":{description:"Announced by screen-readers when spinner is loading",components:["Spinner"],et:"Laadimine",en:"Loading",ru:"Загрузка"},"table.loading":{description:"Shown when table is loading",components:["Table"],et:"Tabel laeb",en:"Table is loading",ru:"Таблица загружается"},"table.empty":{description:"Shown when table is empty",components:["Table"],et:"Tulemused puuduvad",en:"No results",ru:"Нет результатов"},"table.error":{description:"Shown when table is in error state",components:["Table"],et:"Tabeli andmete pärimisel tekkis viga",en:"An error occurred while retrieving table data",ru:"Произошла ошибка при получении данных таблицы"},"table.filter":{description:"Label for filter toggle",components:["Table","TableFilter"],et:"Filtreeri",en:"Filter",ru:"Фильтровать"},"table.filter.select-all":{description:"Label for selecting all",components:["Table","TableFilter"],et:"Vali kõik",en:"Select all",ru:"Выбрать все"},"table.filter.remove-all":{description:"Label for removing all",components:["Table","TableFilter"],et:"Eemalda kõik",en:"Remove all",ru:"Удалить все"},"table.filter.no-options":{description:"When select filter has no options",components:["Table","TableFilter"],et:"Valikud puuduvad",en:"No options",ru:"Нет вариантов"},"table.filter.validation.no-spaces":{description:"Filter validation error - Text can not start with spaces",components:["Table","TableFilter"],et:"Tekst ei tohi alata tühikutega",en:"Filter text cant start with spaces",ru:"Текст фильтра не может начинаться с пробелов"},"table.filter.validation.min-length":{description:"Filter validation error - Text is too short",components:["Table","TableFilter"],et:e=>1===e?`Sisesta vähemalt ${e} tähemärk`:`Sisesta vähemalt ${e} tähemärki`,en:e=>1===e?`Min length is ${e} char`:`Min length is ${e} chars`,ru:e=>1===e?`Минимальная длина ${e} знак`:`Минимальная длина ${e} знаков`},"table.filter.validation.to-before-from":{description:"Filter validation error - End date is before start date",components:["Table","TableFilter"],et:"Lõppkuupäev on enne alguskuupäeva",en:"End date must be after start date",ru:"Дата окончания предшествует дате начала"},"table.filter.from":{description:"Label for date filter from",components:["Table","TableFilter"],et:"Kuupäev alates",en:"Date from",ru:"Дата с"},"table.filter.to":{description:"Label for date filter until",components:["Table","TableFilter"],et:"Kuupäev kuni",en:"Date until",ru:"Дата до"},"table.toggle-sub-row":{description:"Toggle sub row button (Visually hidden)",components:["Table"],et:e=>e?"Sulge alamrida":"Ava alamrida",en:e=>e?"Close subrow":"Open subrow",ru:e=>e?"Закрыть подстроку":"Открыть подстроку"},"table.select-all":{description:"Row selection - Label for check in table header",components:["Table"],et:e=>e?"Eemalda kõik":"Vali kõik",en:e=>e?"Deselect all":"Select all",ru:e=>e?"Убрать выделение со всего":"Выбрать все"},"table.select-row":{description:"Row selection - Label for check in table row",components:["Table"],et:e=>e?"Eemalda rida":"Vali rida",en:e=>e?"Deselect row":"Select row",ru:e=>e?"Отменить выбор строки":"Выбрать ряд"},"table.sort":{description:"Label for sort button",components:["Table"],et:e=>"asc"===e?"Sorteeri kahanevalt":"desc"===e?"Eemalda sorteerimine":"Sorteeri kasvavalt",en:e=>"asc"===e?"Sort decending":"desc"===e?"Remove sorting":"Sort ascending",ru:e=>"asc"===e?"Сортировать по убыванию":"desc"===e?"Отменить сортировку":"Сортировать по возрастанию"},"tooltip.icon-trigger":{description:"Label we use for icons that are tooltip triggers",components:["TooltipTrigger"],et:"Kuva tööriistavihje",en:"Show tooltip",ru:"Показать подсказку"},"pagination.title":{description:"Label of the pagination",components:["Table","Pagination"],et:"Pagineerimine",en:"Pagination",ru:"Страницы"},"pagination.page":{description:"Label of individual page numbers",components:["Table","Pagination"],et:(e,t)=>t?`Aktiivne leht, leht ${e}`:`Mine lehele ${e}`,en:(e,t)=>t?`Current page, page ${e}`:`Go to page ${e}`,ru:(e,t)=>t?`Текущая страница, страница ${e}`:`Перейти на страницу ${e}`},"pagination.prev-page":{description:"Previous page button label",components:["Table","Pagination"],et:"Eelmine leht",en:"Previous page",ru:"Предыдущая страница"},"pagination.next-page":{description:"Next page button label",components:["Table","Pagination"],et:"Järgmine leht",en:"Next page",ru:"Следущая страница"},"pagination.results":{description:"Total results text",components:["Table","Pagination"],et:e=>1===e?"tulemus":"tulemust",en:e=>1===e?"result":"results",ru:e=>1===e?"результат":"результа"},"pagination.page-size":{description:"Label of page size select",components:["Table","Pagination"],et:"Lehe suurus",en:"Page size",ru:"Размер страницы"},"table-of-contents.title":{description:"Title of the table of contents",components:["TableOfContents"],et:"Sisukord",en:"Table of contents",ru:"Содержание"},"table-of-contents.valid":{description:"Number of valid steps",components:["TableOfContents"],et:e=>`${e} valiidsed`,en:e=>`${e} valid`,ru:e=>`${e} действительны`},"table-of-contents.invalid":{description:"Number of invalid steps",components:["TableOfContents"],et:e=>`${e} mitte valiidne`,en:e=>`${e} invalid`,ru:e=>`${e} неверный`},"truncate.see-more":{description:"See more button label",components:["Truncate"],et:"Näita rohkem",en:"Show more",ru:"Показать больше"},"truncate.see-less":{description:"See less button label",components:["Truncate"],et:"Näita vähem",en:"Show less",ru:"Скрыть"},"vertical-progress.edit":{description:"Edit button label",components:["VerticalProgressItem"],et:"Muuda",en:"Edit",ru:"редактировать"},"pickers.previousMonth":{description:`Translation for ${cu}`,components:["Pickers"],et:"Eelmine kuu",en:"Previous month",ru:"Прошлый месяц"},"pickers.nextMonth":{description:`Translation for ${cu}`,components:["Pickers"],et:"Järgmine kuu",en:"Next month",ru:"Следующий месяц"},"pickers.openPreviousView":{description:`Translation for ${cu}`,components:["Pickers"],et:"Ava eelmine vaade",en:"Open previous view",ru:"Открыть предыдущий вид"},"pickers.openNextView":{description:`Translation for ${cu}`,components:["Pickers"],et:"Ava järgmine vaade",en:"Open next view",ru:"Открыть следующий вид"},"pickers.cancelButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Tühista",en:"Cancel",ru:"Отмена"},"pickers.clearButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Tühjenda",en:"Clear",ru:"Очистить"},"pickers.okButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Kinnita",en:"Confirm",ru:"Подтвердить"},"pickers.todayButtonLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Täna",en:"Today",ru:" Сегодня"},"pickers.start":{description:`Translation for ${cu}`,components:["Pickers"],et:"Algus",en:"Start",ru:"Начало"},"pickers.end":{description:`Translation for ${cu}`,components:["Pickers"],et:"Lõpp",en:"End",ru:"Конец"},"pickers.calendarViewSwitchingButtonAriaLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>"day"===e?"Kalendri vaade on lahti, lülitu aasta vaatesse":"month"===e?"Kuu vaade on lahti, lülitu aasta vaatesse":"Aasta vaade on lahti, lülitu kalendri vaatesse",en:e=>"day"===e?"Calendar view is open, switch to year view":"month"===e?"Month view is open, switch to year view":"Year view is open, switch to calendar view",ru:e=>"day"===e?"Открыт календарный вид, переключиться на годовой вид":"month"===e?"Открыт месячный вид, переключиться на месячный вид":"Открыт годовой вид, переключиться на календарный вид"},"pickers.inputModeToggleButtonAriaLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>e?`Teksti välja vaade on lahti, mine ${"calendar"===t?"kalendri":"kella"} vaatesse`:("calendar"===t?"Kalendri":"Kella")+" vaade on lahti, mine teksti välja vaatesse",en:(e,t)=>e?`Text input view is open, go to ${"calendar"===t?"calendar":"clock"} view`:("calendar"===t?"Calendar":"Clock")+" view is open, go to text input view",ru:(e,t)=>e?"Вид ввода текста открыт, перейти к виду "+("calendar"===t?"календаря":"времени"):`Вид ${"calendar"===t?"календаря":"времени"} открыт, перейти к виду ввода текста`},"pickers.clockLabelText":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t,n)=>`Vali ${"hours"===e?"tunnid":"minutes"===e?"minutid":"sekundid"}. ${null===t?"Aega pole valitud":`Valitud aeg on ${n.format(t,"fullTime")}`}`,en:(e,t,n)=>`Select ${"hours"===e?"hours":"minutes"===e?"minutes":"seconds"}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,ru:(e,t,n)=>`Выбрать ${"hours"===e?"часы":"minutes"===e?"минуты":"секунды"}. ${null===t?"Время не выбрано":`Выбранное время ${n.format(t,"fullTime")}`}`},"pickers.hoursClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} tundi`,en:e=>`${e} hours`,ru:e=>`${e} часов`},"pickers.minutesClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} minutit`,en:e=>`${e} minutes`,ru:e=>`${e} минут`},"pickers.secondsClockNumberText":{description:`Translation for ${cu}`,components:["Pickers"],et:e=>`${e} sekundit`,en:e=>`${e} seconds`,ru:e=>`${e} секунд`},"pickers.openDatePickerDialogue":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>null!==e&&t.isValid(e)?`Vali kuupäev, valitud kuupäev on ${t.format(e,"fullDate")}`:"Vali kuupäev",en:(e,t)=>null!==e&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",ru:(e,t)=>null!==e&&t.isValid(e)?`Выберите дату, выбранная дата ${t.format(e,"fullDate")}`:"Выберите дату"},"pickers.openTimePickerDialogue":{description:`Translation for ${cu}`,components:["Pickers"],et:(e,t)=>null!==e&&t.isValid(e)?`Vali kellaaeg, valitud kellaaeg on ${t.format(e,"fullTime")}`:"Vali kellaaeg",en:(e,t)=>null!==e&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",ru:(e,t)=>null!==e&&t.isValid(e)?`Выберите время, выбранное время ${t.format(e,"fullTime")}`:"Выберите время"},"pickers.timeTableLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kellaaeg",en:"Pick time",ru:"Выберите время"},"pickers.dateTableLabel":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev",en:"Pick date",ru:"Выберите дату"},"pickers.datePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev",en:"Pick date",ru:"Выберите дату"},"pickers.dateTimePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäev ja kellaaeg",en:"Pick date and time",ru:"Выберите время и дату"},"pickers.timePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kellaaeg",en:"Pick time",ru:"Выберите время"},"pickers.dateRangePickerDefaultToolbarTitle":{description:`Translation for ${cu}`,components:["Pickers"],et:"Vali kuupäeva vahemik",en:"Pick date range",ru:"Выберите даты"},"footer.title":{description:"Label for screen-reader for footer navigation title",components:["Footer"],et:"Jalus",en:"Footer",ru:"Нижний колонтитул"},"numberField.decrement":{description:"Label for screen-reader for number field decrease button",components:["NumberField"],et:e=>`Vähenda ${e} võrra`,en:e=>`Decrease by ${e}`,ru:e=>`Уменьшить на ${e}`},"numberField.increment":{description:"Label for screen-reader for number field increase button",components:["NumberField"],et:e=>`Suurenda ${e} võrra`,en:e=>`Increase by ${e}`,ru:e=>`Увеличить на ${e}`},"numberField.quantityUpdated":{description:"Label for screen-reader when quantity get updated by button click",components:["NumberField"],et:e=>`Uuendatud. Uus väärtus ${e}`,en:e=>`Updated. New value ${e}`,ru:e=>`Ууэндатуд. Уус вяэртус ${e}`},"sidenav.backToMainMenu":{description:"Side navigation label",components:["Sidenav"],et:"Peamenüüsse",en:"Back to main menu",ru:"Назад в главное меню"},"sidenav.backtoMenu":{description:"Side navigation label",components:["Sidenav"],et:"menüüsse",en:"menu",ru:"меню"}};a(941),a(557);function du(){return du=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},du.apply(null,arguments)}function pu(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 fu(e,t){return du({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var gu={},hu={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(hu);var mu=hu.exports;function vu(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const bu=(0,Yi.qT)(t);function yu(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const xu=(0,Yi.qT)(n);var wu=mu;Object.defineProperty(gu,"__esModule",{value:!0});var Su=gu.alpha=Du;gu.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Ru(e),a=Ru(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Iu({type:"rgb",values:s})},gu.colorChannel=void 0;var _u=gu.darken=Fu;gu.decomposeColor=Ru,gu.emphasize=Lu;var ju=gu.getContrastRatio=function(e,t){const n=Mu(e),r=Mu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};gu.getLuminance=Mu,gu.hexToRgb=Pu,gu.hslToRgb=Au;var Eu=gu.lighten=Nu;gu.private_safeAlpha=function(e,t,n){try{return Du(e,t)}catch{return e}},gu.private_safeColorChannel=void 0,gu.private_safeDarken=function(e,t,n){try{return Fu(e,t)}catch{return e}},gu.private_safeEmphasize=function(e,t,n){try{return Lu(e,t)}catch{return e}},gu.private_safeLighten=function(e,t,n){try{return Nu(e,t)}catch{return e}},gu.recomposeColor=Iu,gu.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ru(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var Cu=wu(bu),ku=wu(xu);function Tu(e,t=0,n=1){return(0,ku.default)(e,t,n)}function Pu(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(", ")})`:""}function Ru(e){if(e.type)return e;if("#"===e.charAt(0))return Ru(Pu(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Cu.default)(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)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Cu.default)(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Ou=e=>{const t=Ru(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};gu.colorChannel=Ou;function Iu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Au(e){e=Ru(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Iu({type:s,values:l})}function Mu(e){let t="hsl"===(e=Ru(e)).type||"hsla"===e.type?Ru(Au(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 Du(e,t){return e=Ru(e),t=Tu(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Iu(e)}function Fu(e,t){if(e=Ru(e),t=Tu(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Iu(e)}function Nu(e,t){if(e=Ru(e),t=Tu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Iu(e)}function Lu(e,t=.15){return Mu(e)>.5?Fu(e,t):Nu(e,t)}gu.private_safeColorChannel=(e,t)=>{try{return Ou(e)}catch{return e}};const $u={black:"#000",white:"#fff"},Vu={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"},Bu="#f3e5f5",zu="#ce93d8",Gu="#ba68c8",Uu="#ab47bc",Hu="#9c27b0",Wu="#7b1fa2",qu="#e57373",Yu="#ef5350",Ku="#f44336",Ju="#d32f2f",Xu="#c62828",Zu="#ffb74d",Qu="#ffa726",ed="#ff9800",td="#f57c00",nd="#e65100",rd="#e3f2fd",od="#90caf9",id="#42a5f5",ad="#1976d2",sd="#1565c0",ld="#4fc3f7",cd="#29b6f6",ud="#03a9f4",dd="#0288d1",pd="#01579b",fd="#81c784",gd="#66bb6a",hd="#4caf50",md="#388e3c",vd="#2e7d32",bd="#1b5e20";function yd(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 xd(e){if(d.isValidElement(e)||!yd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xd(e[n])}),t}function wd(e,t,n={clone:!0}){const r=n.clone?du({},e):e;return yd(e)&&yd(t)&&Object.keys(t).forEach(o=>{d.isValidElement(t[o])?r[o]=t[o]:yd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yd(e[o])?r[o]=wd(e[o],t[o],n):n.clone?r[o]=yd(t[o])?xd(t[o]):t[o]:r[o]=t[o]}),r}const Sd=["mode","contrastThreshold","tonalOffset"],_d={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:$u.white,default:$u.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}},jd={text:{primary:$u.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:$u.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}};function Ed(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=Eu(e.main,o):"dark"===t&&(e.dark=_u(e.main,i)))}function Cd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=pu(e,Sd),i=e.primary||function(e="light"){return"dark"===e?{main:od,light:rd,dark:id}:{main:ad,light:id,dark:sd}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zu,light:Bu,dark:Uu}:{main:Hu,light:Gu,dark:Wu}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ku,light:qu,dark:Ju}:{main:Ju,light:Yu,dark:Xu}}(t),l=e.info||function(e="light"){return"dark"===e?{main:cd,light:ld,dark:dd}:{main:dd,light:ud,dark:pd}}(t),c=e.success||function(e="light"){return"dark"===e?{main:gd,light:fd,dark:md}:{main:vd,light:hd,dark:bd}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Qu,light:Zu,dark:td}:{main:"#ed6c02",light:ed,dark:nd}}(t);function d(e){return ju(e,jd.text.primary)>=n?jd.text.primary:_d.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=du({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(vu(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(vu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ed(e,"light",o,r),Ed(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:jd,light:_d};return wd(du({common:du({},$u),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Vu,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const kd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Td(e){return Math.round(1e5*e)/1e5}const Pd={textTransform:"uppercase"},Rd='"Roboto", "Helvetica", "Arial", sans-serif';function Od(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Rd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=pu(n,kd),f=o/14,g=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>du({fontFamily:r,fontWeight:e,fontSize:g(t),lineHeight:n},r===Rd?{letterSpacing:`${Td(o/t)}em`}:{},i,u),m={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Pd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Pd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wd(du({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},m),p,{clone:!1})}function Id(...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 Ad=["none",Id(0,2,1,-1,0,1,1,0,0,1,3,0),Id(0,3,1,-2,0,2,2,0,0,1,5,0),Id(0,3,3,-2,0,3,4,0,0,1,8,0),Id(0,2,4,-1,0,4,5,0,0,1,10,0),Id(0,3,5,-1,0,5,8,0,0,1,14,0),Id(0,3,5,-1,0,6,10,0,0,1,18,0),Id(0,4,5,-2,0,7,10,1,0,2,16,1),Id(0,5,5,-3,0,8,10,1,0,3,14,2),Id(0,5,6,-3,0,9,12,1,0,3,16,2),Id(0,6,6,-3,0,10,14,1,0,4,18,3),Id(0,6,7,-4,0,11,15,1,0,4,20,3),Id(0,7,8,-4,0,12,17,2,0,5,22,4),Id(0,7,8,-4,0,13,19,2,0,5,24,4),Id(0,7,9,-4,0,14,21,2,0,5,26,4),Id(0,8,9,-5,0,15,22,2,0,6,28,5),Id(0,8,10,-5,0,16,24,2,0,6,30,5),Id(0,8,11,-5,0,17,26,2,0,6,32,5),Id(0,9,11,-5,0,18,28,2,0,7,34,6),Id(0,9,12,-6,0,19,29,2,0,7,36,6),Id(0,10,13,-6,0,20,31,3,0,8,38,7),Id(0,10,13,-6,0,21,33,3,0,8,40,7),Id(0,10,14,-6,0,22,35,3,0,8,42,7),Id(0,11,14,-7,0,23,36,3,0,9,44,8),Id(0,11,15,-7,0,24,38,3,0,9,46,8)],Md=["duration","easing","delay"],Dd={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)"},Fd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Nd(e){return`${Math.round(e)}ms`}function Ld(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $d(e){const t=du({},Dd,e.easing),n=du({},Fd,e.duration);return du({getAutoHeightDuration:Ld,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;pu(r,Md);return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Nd(o)} ${i} ${"string"==typeof a?a:Nd(a)}`).join(",")}},e,{easing:t,duration:n})}const Vd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Bd=["values","unit","step"],zd=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)=>du({},e,{[t.key]:t.val}),{})};function Gd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=pu(e,Bd),i=zd(t),a=Object.keys(i);function s(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 c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return du({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Ud={borderRadius:4},Hd={xs:0,sm:600,md:900,lg:1200,xl:1536},Wd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hd[e]}px)`};function qd(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Wd;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Wd;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||Hd).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function Yd(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Kd({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 Jd(e){if("string"!=typeof e)throw new Error(vu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xd(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 Zd(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Xd(e,n)||r,t&&(o=t(o,r,e)),o}function Qd(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],a=Xd(e.theme,r)||{};return qd(e,i,e=>{let r=Zd(a,o,e);return e===r&&"string"==typeof e&&(r=Zd(a,o,`${t}${"default"===e?"":Jd(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}function ep(e,t){return t?wd(e,t,{clone:!1}):e}const tp={m:"margin",p:"padding"},np={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},op=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!rp[e])return[e];e=rp[e]}const[t,n]=e.split(""),r=tp[t],o=np[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ip=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ap=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function sp(e,t,n,r){var o;const i=null!=(o=Xd(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function lp(e){return sp(e,"spacing",8)}function cp(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function up(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=cp(t,n),e),{})}(op(n),r);return qd(e,e[n],o)}function dp(e,t){const n=lp(e.theme);return Object.keys(e).map(r=>up(e,t,r,n)).reduce(ep,{})}function pp(e){return dp(e,ip)}function fp(e){return dp(e,ap)}function gp(...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]?ep(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function hp(e){return"number"!=typeof e?e:`${e}px solid`}function mp(e,t){return Qd({prop:e,themeKey:"borders",transform:t})}pp.propTypes={},pp.filterProps=ip,fp.propTypes={},fp.filterProps=ap;const vp=mp("border",hp),bp=mp("borderTop",hp),yp=mp("borderRight",hp),xp=mp("borderBottom",hp),wp=mp("borderLeft",hp),Sp=mp("borderColor"),_p=mp("borderTopColor"),jp=mp("borderRightColor"),Ep=mp("borderBottomColor"),Cp=mp("borderLeftColor"),kp=mp("outline",hp),Tp=mp("outlineColor"),Pp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=sp(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:cp(t,e)});return qd(e,e.borderRadius,n)}return null};Pp.propTypes={},Pp.filterProps=["borderRadius"],gp(vp,bp,yp,xp,wp,Sp,_p,jp,Ep,Cp,Pp,kp,Tp);const Rp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=sp(e.theme,"spacing",8),n=e=>({gap:cp(t,e)});return qd(e,e.gap,n)}return null};Rp.propTypes={},Rp.filterProps=["gap"];const Op=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=sp(e.theme,"spacing",8),n=e=>({columnGap:cp(t,e)});return qd(e,e.columnGap,n)}return null};Op.propTypes={},Op.filterProps=["columnGap"];const Ip=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=sp(e.theme,"spacing",8),n=e=>({rowGap:cp(t,e)});return qd(e,e.rowGap,n)}return null};Ip.propTypes={},Ip.filterProps=["rowGap"];function Ap(e,t){return"grey"===t?t:e}gp(Rp,Op,Ip,Qd({prop:"gridColumn"}),Qd({prop:"gridRow"}),Qd({prop:"gridAutoFlow"}),Qd({prop:"gridAutoColumns"}),Qd({prop:"gridAutoRows"}),Qd({prop:"gridTemplateColumns"}),Qd({prop:"gridTemplateRows"}),Qd({prop:"gridTemplateAreas"}),Qd({prop:"gridArea"}));function Mp(e){return e<=1&&0!==e?100*e+"%":e}gp(Qd({prop:"color",themeKey:"palette",transform:Ap}),Qd({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ap}),Qd({prop:"backgroundColor",themeKey:"palette",transform:Ap}));const Dp=Qd({prop:"width",transform:Mp}),Fp=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Hd[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mp(t)}};return qd(e,e.maxWidth,t)}return null};Fp.filterProps=["maxWidth"];const Np=Qd({prop:"minWidth",transform:Mp}),Lp=Qd({prop:"height",transform:Mp}),$p=Qd({prop:"maxHeight",transform:Mp}),Vp=Qd({prop:"minHeight",transform:Mp});Qd({prop:"size",cssProperty:"width",transform:Mp}),Qd({prop:"size",cssProperty:"height",transform:Mp});gp(Dp,Fp,Np,Lp,$p,Vp,Qd({prop:"boxSizing"}));const Bp={border:{themeKey:"borders",transform:hp},borderTop:{themeKey:"borders",transform:hp},borderRight:{themeKey:"borders",transform:hp},borderBottom:{themeKey:"borders",transform:hp},borderLeft:{themeKey:"borders",transform:hp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pp},color:{themeKey:"palette",transform:Ap},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ap},backgroundColor:{themeKey:"palette",transform:Ap},p:{style:fp},pt:{style:fp},pr:{style:fp},pb:{style:fp},pl:{style:fp},px:{style:fp},py:{style:fp},padding:{style:fp},paddingTop:{style:fp},paddingRight:{style:fp},paddingBottom:{style:fp},paddingLeft:{style:fp},paddingX:{style:fp},paddingY:{style:fp},paddingInline:{style:fp},paddingInlineStart:{style:fp},paddingInlineEnd:{style:fp},paddingBlock:{style:fp},paddingBlockStart:{style:fp},paddingBlockEnd:{style:fp},m:{style:pp},mt:{style:pp},mr:{style:pp},mb:{style:pp},ml:{style:pp},mx:{style:pp},my:{style:pp},margin:{style:pp},marginTop:{style:pp},marginRight:{style:pp},marginBottom:{style:pp},marginLeft:{style:pp},marginX:{style:pp},marginY:{style:pp},marginInline:{style:pp},marginInlineStart:{style:pp},marginInlineEnd:{style:pp},marginBlock:{style:pp},marginBlockStart:{style:pp},marginBlockEnd:{style:pp},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:Rp},rowGap:{style:Ip},columnGap:{style:Op},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mp},maxWidth:{style:Fp},minWidth:{transform:Mp},height:{transform:Mp},maxHeight:{transform:Mp},minHeight:{transform:Mp},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zp(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Xd(n,s)||{};return c?c(o):qd(o,t,t=>{let n=Zd(u,l,t);return t===n&&"string"==typeof t&&(n=Zd(u,l,`${e}${"default"===t?"":Jd(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:Bp;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(s[n])c=ep(c,e(n,o,i,s));else{const e=qd({theme:i},o,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,o)?c=ep(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=ep(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Yd(l,c)}:Yd(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Gp=zp();function Up(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}Gp.filterProps=["sx"];const Hp=["breakpoints","palette","spacing","shape"];function Wp(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=pu(e,Hp),s=Gd(n),l=function(e=8){if(e.mui)return e;const t=lp({spacing:e}),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}(o);let c=wd({breakpoints:s,direction:"ltr",components:{},palette:du({mode:"light"},r),spacing:l,shape:du({},Ud,i)},a);return c.applyStyles=Up,c=t.reduce((e,t)=>wd(e,t),c),c.unstable_sxConfig=du({},Bp,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Gp({sx:e,theme:this})},c}const qp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Yp=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=pu(e,qp);if(e.vars&&void 0===e.generateCssVars)throw new Error(vu(18));const s=Cd(r),l=Wp(e);let c=wd(l,{mixins:fu(l.breakpoints,n),palette:s,shadows:Ad.slice(),typography:Od(s,i),transitions:$d(o),zIndex:du({},Vd)});return c=wd(c,a),c=t.reduce((e,t)=>wd(e,t),c),c.unstable_sxConfig=du({},Bp,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Gp({sx:e,theme:this})},c}(),Kp="$$material";function Jp(e,t){const n=du({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=du({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=du({},i),Object.keys(o).forEach(e=>{n[r][e]=Jp(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}function Xp(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jp(t.components[n].defaultProps,r):r}var Zp=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{}}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}(),Qp="-ms-",ef="-moz-",tf="-webkit-",nf="comm",rf="rule",of="decl",af="@keyframes",sf=Math.abs,lf=String.fromCharCode,cf=Object.assign;function uf(e){return e.trim()}function df(e,t,n){return e.replace(t,n)}function pf(e,t){return e.indexOf(t)}function ff(e,t){return 0|e.charCodeAt(t)}function gf(e,t,n){return e.slice(t,n)}function hf(e){return e.length}function mf(e){return e.length}function vf(e,t){return t.push(e),e}function bf(e,t){for(var n="",r=mf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function yf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case of:return e.return=e.return||e.value;case nf:return"";case af:return e.return=e.value+"{"+bf(e.children,r)+"}";case rf:e.value=e.props.join(",")}return hf(n=bf(e.children,r))?e.return=e.value+"{"+n+"}":""}var xf=1,wf=1,Sf=0,_f=0,jf=0,Ef="";function Cf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xf,column:wf,length:a,return:""}}function kf(e,t){return cf(Cf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tf(){return jf=_f>0?ff(Ef,--_f):0,wf--,10===jf&&(wf=1,xf--),jf}function Pf(){return jf=_f<Sf?ff(Ef,_f++):0,wf++,10===jf&&(wf=1,xf++),jf}function Rf(){return ff(Ef,_f)}function Of(){return _f}function If(e,t){return gf(Ef,e,t)}function Af(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 Mf(e){return xf=wf=1,Sf=hf(Ef=e),_f=0,[]}function Df(e){return Ef="",e}function Ff(e){return uf(If(_f-1,$f(91===e?e+2:40===e?e+1:e)))}function Nf(e){for(;(jf=Rf())&&jf<33;)Pf();return Af(e)>2||Af(jf)>3?"":" "}function Lf(e,t){for(;--t&&Pf()&&!(jf<48||jf>102||jf>57&&jf<65||jf>70&&jf<97););return If(e,Of()+(t<6&&32==Rf()&&32==Pf()))}function $f(e){for(;Pf();)switch(jf){case e:return _f;case 34:case 39:34!==e&&39!==e&&$f(jf);break;case 40:41===e&&$f(e);break;case 92:Pf()}return _f}function Vf(e,t){for(;Pf()&&e+jf!==57&&(e+jf!==84||47!==Rf()););return"/*"+If(t,_f-1)+"*"+lf(47===e?e:Pf())}function Bf(e){for(;!Af(Rf());)Pf();return If(e,_f)}function zf(e){return Df(Gf("",null,null,null,[""],e=Mf(e),0,[0],e))}function Gf(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,g=0,h=1,m=1,v=1,b=0,y="",x=o,w=i,S=r,_=y;m;)switch(g=b,b=Pf()){case 40:if(108!=g&&58==ff(_,d-1)){-1!=pf(_+=df(Ff(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Ff(b);break;case 9:case 10:case 13:case 32:_+=Nf(g);break;case 92:_+=Lf(Of()-1,7);continue;case 47:switch(Rf()){case 42:case 47:vf(Hf(Vf(Pf(),Of()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=hf(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=df(_,/\f/g,"")),f>0&&hf(_)-d&&vf(f>32?Wf(_+";",r,n,d-1):Wf(df(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(vf(S=Uf(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)Gf(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===ff(_,3)?100:p){case 100:case 108:case 109:case 115:Gf(e,S,S,r&&vf(Uf(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Gf(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+hf(_),f=g;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Tf())continue;switch(_+=lf(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(hf(_)-1)*v,v=1;break;case 64:45===Rf()&&(_+=Ff(Pf())),p=Rf(),u=d=hf(y=_+=Bf(Of())),b++;break;case 45:45===g&&2==hf(_)&&(h=0)}}return i}function Uf(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=mf(p),g=0,h=0,m=0;g<r;++g)for(var v=0,b=gf(e,d+1,d=sf(h=a[g])),y=e;v<f;++v)(y=uf(h>0?p[v]+" "+b:df(b,/&\f/g,p[v])))&&(l[m++]=y);return Cf(e,t,n,0===o?rf:s,l,c,u)}function Hf(e,t,n){return Cf(e,t,n,nf,lf(jf),gf(e,2,-2),0)}function Wf(e,t,n,r){return Cf(e,t,n,of,gf(e,0,r),gf(e,r+1,-1),r)}function qf(e){return function(t){t.root||(t=t.return)&&e(t)}}var Yf=function(e,t,n){for(var r=0,o=0;r=o,o=Rf(),38===r&&12===o&&(t[n]=1),!Af(o);)Pf();return If(e,_f)},Kf=function(e,t){return Df(function(e,t){var n=-1,r=44;do{switch(Af(r)){case 0:38===r&&12===Rf()&&(t[n]=1),e[n]+=Yf(_f-1,t,n);break;case 2:e[n]+=Ff(r);break;case 4:if(44===r){e[++n]=58===Rf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=lf(r)}}while(r=Pf());return e}(Mf(e),t))},Jf=new WeakMap,Xf=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)||Jf.get(n))&&!r){Jf.set(e,!0);for(var o=[],i=Kf(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Zf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Qf(e,t){switch(function(e,t){return 45^ff(e,0)?(((t<<2^ff(e,0))<<2^ff(e,1))<<2^ff(e,2))<<2^ff(e,3):0}(e,t)){case 5103:return tf+"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 tf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return tf+e+ef+e+Qp+e+e;case 6828:case 4268:return tf+e+Qp+e+e;case 6165:return tf+e+Qp+"flex-"+e+e;case 5187:return tf+e+df(e,/(\w+).+(:[^]+)/,tf+"box-$1$2"+Qp+"flex-$1$2")+e;case 5443:return tf+e+Qp+"flex-item-"+df(e,/flex-|-self/,"")+e;case 4675:return tf+e+Qp+"flex-line-pack"+df(e,/align-content|flex-|-self/,"")+e;case 5548:return tf+e+Qp+df(e,"shrink","negative")+e;case 5292:return tf+e+Qp+df(e,"basis","preferred-size")+e;case 6060:return tf+"box-"+df(e,"-grow","")+tf+e+Qp+df(e,"grow","positive")+e;case 4554:return tf+df(e,/([^-])(transform)/g,"$1"+tf+"$2")+e;case 6187:return df(df(df(e,/(zoom-|grab)/,tf+"$1"),/(image-set)/,tf+"$1"),e,"")+e;case 5495:case 3959:return df(e,/(image-set\([^]*)/,tf+"$1$`$1");case 4968:return df(df(e,/(.+:)(flex-)?(.*)/,tf+"box-pack:$3"+Qp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+tf+e+e;case 4095:case 3583:case 4068:case 2532:return df(e,/(.+)-inline(.+)/,tf+"$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(hf(e)-1-t>6)switch(ff(e,t+1)){case 109:if(45!==ff(e,t+4))break;case 102:return df(e,/(.+:)(.+)-([^]+)/,"$1"+tf+"$2-$3$1"+ef+(108==ff(e,t+3)?"$3":"$2-$3"))+e;case 115:return~pf(e,"stretch")?Qf(df(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ff(e,t+1))break;case 6444:switch(ff(e,hf(e)-3-(~pf(e,"!important")&&10))){case 107:return df(e,":",":"+tf)+e;case 101:return df(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+tf+(45===ff(e,14)?"inline-":"")+"box$3$1"+tf+"$2$3$1"+Qp+"$2box$3")+e}break;case 5936:switch(ff(e,t+11)){case 114:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return tf+e+Qp+df(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return tf+e+Qp+e+e}return e}var eg=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case of:e.return=Qf(e.value,e.length);break;case af:return bf([kf(e,{value:df(e.value,"@","@"+tf)})],r);case rf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bf([kf(e,{props:[df(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bf([kf(e,{props:[df(t,/:(plac\w+)/,":"+tf+"input-$1")]}),kf(e,{props:[df(t,/:(plac\w+)/,":-moz-$1")]}),kf(e,{props:[df(t,/:(plac\w+)/,Qp+"input-$1")]})],r)}return""})}}],tg=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=e.stylisPlugins||eg,i={},a=[];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++)i[t[n]]=!0;a.push(e)});var s,l,c=[Xf,Zf],u=[yf,qf(function(e){l.insert(e)})],d=function(e){var t=mf(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(c.concat(o,u));s=function(e,t,n,r){l=n,function(e){bf(zf(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Zp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(a),p};function ng(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var rg=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},og=function(e,t,n){rg(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)}};var ig={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 ag(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var sg=/[A-Z]|^ms/g,lg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cg=function(e){return 45===e.charCodeAt(1)},ug=function(e){return null!=e&&"boolean"!=typeof e},dg=ag(function(e){return cg(e)?e:e.replace(sg,"-$&").toLowerCase()}),pg=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(lg,function(e,t,n){return gg={name:t,styles:n,next:gg},t})}return 1===ig[e]||cg(e)||"number"!=typeof t||0===t?t:t+"px"};function fg(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 gg={name:o.name,styles:o.styles,next:gg},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)gg={name:a.name,styles:a.styles,next:gg},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fg(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ug(s)&&(r+=dg(i)+":"+pg(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=fg(e,t,a);switch(i){case"animation":case"animationName":r+=dg(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ug(a[c])&&(r+=dg(i)+":"+pg(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=gg,l=n(e);return gg=s,fg(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var gg,hg=/label:\s*([^\s;{]+)\s*(;|$)/g;function mg(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="";gg=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=fg(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=fg(n,t,e[a]),r){o+=i[a]}hg.lastIndex=0;for(var s,l="";null!==(s=hg.exec(o));)l+="-"+s[1];var c=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:c,styles:o,next:gg}}var vg=!!d.useInsertionEffect&&d.useInsertionEffect,bg=vg||function(e){return e()},yg=vg||d.useLayoutEffect,xg=d.createContext(typeof HTMLElement<"u"?tg({key:"css"}):null),wg=xg.Provider,Sg=function(e){return(0,d.forwardRef)(function(t,n){var r=(0,d.useContext)(xg);return e(t,r,n)})},_g=d.createContext({}),jg={}.hasOwnProperty,Eg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cg=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rg(t,n,r),bg(function(){return og(t,n,r)}),null},kg=Sg(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Eg],i=[r],a="";"string"==typeof e.className?a=ng(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=mg(i,void 0,d.useContext(_g));a+=t.key+"-"+s.name;var l={};for(var c in e)jg.call(e,c)&&"css"!==c&&c!==Eg&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),d.createElement(d.Fragment,null,d.createElement(Cg,{cache:t,serialized:s,isStringTag:"string"==typeof o}),d.createElement(o,l))}),Tg=kg;function Pg(e=null){const t=d.useContext(_g);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const Rg=Wp();function Og(e=Rg){return Pg(e)}function Ig({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Og(n);return o=o[r]||o,Xp({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Yp,themeId:Kp})}const Ag={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Mg=Ag;(e=>{du({},e)})(Ag);const Dg=d.createContext(null);function Fg(e){const t=Ig({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=d.useMemo(()=>new r({locale:s??a,formats:o,instance:i}),[r,a,s,o,i]),u=d.useMemo(()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")}),[c]),p=d.useMemo(()=>({utils:c,defaultDates:u,localeText:du({},Mg,l??{})}),[u,c,l]);return(0,R.jsx)(Dg.Provider,{value:p,children:n})}Zc.extend(lu),Zc.extend(su),Zc.extend(au),Zc.updateLocale("en",{weekStart:1});const Ng=d.createContext({getLabel:(e,...t)=>(console.error("LabelProvider missing! Application must be wrapped with <LabelProvider>"),e)}),Lg=e=>{const{labels:t={},children:n,locale:r="en"}=e,o=(0,d.useMemo)(()=>{const e={},n=new Set([...Object.keys(uu),...Object.keys(t)]);for(const o of n){const n=o,i=uu[n]?uu[n][r]:void 0,a=t[n]??void 0;let s;s=a?"object"==typeof a?a[r]:a:void 0,e[n]=s??i??n}return e},[t,r]);Zc.locale(r);const i=(0,d.useCallback)((e,...t)=>{const n=o[e];return n?"function"==typeof n?n(...t):n:(console.error(`Label missing for key "${e}".`),e)},[o]),a=Object.keys(o).reduce((e,t)=>({...e,...t.startsWith("pickers.")?{[t.replace("pickers.","")]:o[t]}:{}}),{});return(0,R.jsx)(Ng.Provider,{value:{getLabel:i},children:(0,R.jsx)(Fg,{dateAdapter:iu,dateLibInstance:Zc,localeText:a,adapterLocale:r,children:n})})},$g=()=>d.useContext(Ng),Vg=e=>{const{getLabel:t}=$g(),{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{className:r,size:o=16,color:i="primary",label:a=t("spinner.loading"),position:s}=n(e),l=Xi(Xc["tedi-spinner"],r,s&&Xc[`tedi-spinner--${s}`],o&&Xc[`tedi-spinner--size-${o}`],i&&Xc[`tedi-spinner--color-${i}`]);return(0,R.jsxs)("span",{className:l,role:"status","aria-live":"polite","data-testid":"tedi-spinner",children:[(0,R.jsx)("svg",{viewBox:"22 22 44 44","aria-hidden":"true",children:(0,R.jsx)("circle",{className:Xc["tedi-spinner__inner"],cx:"44",cy:"44",r:"20",fill:"none"})}),(0,R.jsx)("span",{className:"sr-only",children:a})]})},Bg=(0,d.forwardRef)((e,t)=>{const{children:n,visibility:r,breakBefore:o,breakInside:i,breakAfter:a}=e,s=(e,t)=>{var n;const s=Xi(null==(n=null==e?void 0:e.props)?void 0:n.className,{"no-print":"hide"===r,"show-print":"show"===r,[`break-before-${o}`]:o,[`break-after-${a}`]:a,[`break-inside-${i}`]:i});return e?d.cloneElement(e,{...e.props,className:s,key:t}):null};return Array.isArray(n)?(0,R.jsx)(R.Fragment,{children:null==n?void 0:n.map((e,t)=>e?s(e,t):null)}):s(n)});Bg.displayName="Print";const zg={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},Gg=(0,d.forwardRef)((e,t)=>{const{className:n,name:r,filled:o=!1,label:i,type:a="outlined",size:s=24,display:l="block",color:c,...u}=e,d=Xi("notranslate","material-symbols",zg.icon,zg[`icon--${l}`],{[`material-symbols--${a}`]:a,[`text-${c}`]:c},n),p={...s?{"--icon-internal-variation-size":s/16+"rem"}:{},...o?{"--icon-internal-variation-fill":1}:{}};return(0,R.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})});Gg.displayName="Icon";const Ug={btn:"btn-a9ce955b","btn--small":"btn--small-5daaaf3d","btn--icon-only":"btn--icon-only-375cfc7d","btn--tertiary":"btn--tertiary-c1cc08ad","btn--default":"btn--default-eca73b71","btn--primary":"btn--primary-22126c0a","btn--is-active":"btn--is-active-a0b6b950","btn--is-hovered":"btn--is-hovered-4a27da20","btn--secondary":"btn--secondary-a76a0864","btn--important":"btn--important-1a53be26","btn--positive":"btn--positive-46a2598e","btn--inverted":"btn--inverted-3fc5447d","btn--link":"btn--link-92dffb55","btn--text-color":"btn--text-color-2cc027f7",btn__text:"btn__text-7d9d1a13","btn--is-loading":"btn--is-loading-00320401","btn--icon":"btn--icon-456b539f",btn__inner:"btn__inner-804ab13a","btn__icon-standalone--link":"btn__icon-standalone--link-03d2f699",btn__icon:"btn__icon-738969c8","btn__icon--left":"btn__icon--left-50b31870","btn__icon--right":"btn__icon--right-9b9e8607",btn__spinner:"btn__spinner-5ad34e4e","btn--underline":"btn--underline-e2d2c82b","btn--no-style":"btn--no-style-ed081476","btn--full-width":"btn--full-width-9809b856"},Hg=(0,d.forwardRef)(({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:g,renderWrapperElement:h,fullWidth:m,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=g?Xi(Ug["btn--no-style"],r,{[Ug["btn--full-width"]]:m}):Xi(Ug.btn,Ug[`btn--${o}`],Ug[`btn--${i}`],r,{[Ug[`btn--${a}`]]:a},{[Ug["btn--underline"]]:u},{[Ug["btn--is-hovered"]]:d},{[Ug["btn--is-active"]]:p},{[Ug["btn--is-loading"]]:f},{[Ug["btn--icon-only"]]:s},{[Ug["btn--icon"]]:w},{[Ug["btn--full-width"]]:m}),_=(e,t)=>{const n={size:16,className:Xi(Ug.btn__icon,Ug[`btn__icon--${e}`],{[Ug.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Xi(n.className,null==t?void 0:t.className)};return f?(0,R.jsx)(Vg,{className:r.className}):(0,R.jsx)(Gg,{...r})};return(0,R.jsx)(Bg,{visibility:"hide",children:(0,R.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:g?e:(0,R.jsxs)("span",{className:Ug.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,R.jsx)("span",{className:Ug.btn__text,children:e}),f&&!w&&(0,R.jsx)(Vg,{position:"absolute",className:Ug.btn__spinner}),c&&_("right",c)]})})})});Hg.displayName="ButtonContent";const Wg=Hg,qg=(0,d.forwardRef)((e,t)=>{const{children:n,as:r,type:o,formNoValidate:i,visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:g,noStyle:h,...m}=e;return(0,R.jsx)(Wg,{"data-name":"button",...m,type:o||"button",formNoValidate:!!(i??"submit"===o)||void 0,ref:t,as:r||"button",visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:g,noStyle:h,children:n})});qg.displayName="Button";const Yg=qg,Kg="toggle--open-31d6b84d",Jg="toggle--close-8f1101e9",Xg=({openText:e,closeText:t,isOpen:n,iconRight:r,...o})=>{const i=Xi({[Kg]:n},{[Jg]:!n},null==r?void 0:r.className);return(0,R.jsx)(Yg,{"data-name":"button",iconRight:{...r,className:i,name:"expand_more"},...o,children:n?t:e})},Zg=e=>{const{getCurrentBreakpointProps:t}=qc(e.defaultServerBreakpoint),{children:n,className:r,tabIndex:o,element:i="p",modifiers:a,color:s,...l}=t(e,{tabIndex:e.id?-1:void 0}),c="string"==typeof a?[a]:a,u=Xi(r,null==c?void 0:c.map(e=>`text-${e}`),{[`text-${s}`]:s});return(0,R.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Qg=e=>{const{children:t,element:n="h1",...r}=e;return(0,R.jsx)(Zg,{element:n,...r,children:t})},eh=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=qc(e.defaultServerBreakpoint),{padding:o}=d.useContext(zc),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Xi(Bc.card__header,Bc[`card__header--${s}`],a);return(0,R.jsx)("div",{"data-name":"card-header",style:Uc(l),...c,className:u,children:i})};eh.displayName="CardHeader";const th=["xxl","xl","lg","md","sm","xs"],nh={"flex-fill":"flex-fill-d3cb0c7b","flex-row":"flex-row-a5cec7ab","flex-column":"flex-column-4c240f86","flex-row-reverse":"flex-row-reverse-e1952466","flex-column-reverse":"flex-column-reverse-10dff9af","flex-grow-0":"flex-grow-0-38f9494e","flex-grow-1":"flex-grow-1-cfa86456","flex-shrink-0":"flex-shrink-0-19c6cbe8","flex-shrink-1":"flex-shrink-1-01e3dcc2","flex-wrap":"flex-wrap-b3c06e49","flex-nowrap":"flex-nowrap-55575a56","flex-wrap-reverse":"flex-wrap-reverse-b8dc1a6c","justify-content-start":"justify-content-start-c34d6a29","justify-content-end":"justify-content-end-6e0f4bc4","justify-content-center":"justify-content-center-5d443642","justify-content-between":"justify-content-between-c01471ee","justify-content-around":"justify-content-around-3b4af02a","justify-content-evenly":"justify-content-evenly-e9b8648d","align-items-start":"align-items-start-79eed79a","align-items-end":"align-items-end-2a1416a4","align-items-center":"align-items-center-fac7ba36","align-items-baseline":"align-items-baseline-05f7cbb9","align-items-stretch":"align-items-stretch-b2c1f02a","align-self-auto":"align-self-auto-74bc84a2","align-self-start":"align-self-start-d272f17a","align-self-end":"align-self-end-7b23bd10","align-self-center":"align-self-center-d02b77f0","align-self-baseline":"align-self-baseline-57bc5f49","align-self-stretch":"align-self-stretch-b9f117da","order-first":"order-first-42a4f084","order-0":"order-0-05ce57a9","order-1":"order-1-7d073bda","order-2":"order-2-f5401994","order-3":"order-3-b639a5db","order-4":"order-4-02c6eb90","order-5":"order-5-36931bb5","order-last":"order-last-25f05a77","gap-0":"gap-0-b36b974b","gap-1":"gap-1-d7e4fa89","gap-2":"gap-2-f4fc5b0b","gap-3":"gap-3-d8a7691e","gap-4":"gap-4-6232a9e4","gap-5":"gap-5-18b292f5","flex-sm-fill":"flex-sm-fill-4c4f8a55","flex-sm-row":"flex-sm-row-49c51cb2","flex-sm-column":"flex-sm-column-ce7c93a3","flex-sm-row-reverse":"flex-sm-row-reverse-e46a5fab","flex-sm-column-reverse":"flex-sm-column-reverse-b202dfd6","flex-sm-grow-0":"flex-sm-grow-0-cd39f51a","flex-sm-grow-1":"flex-sm-grow-1-04ba2bfe","flex-sm-shrink-0":"flex-sm-shrink-0-f288aca7","flex-sm-shrink-1":"flex-sm-shrink-1-a517bca0","flex-sm-wrap":"flex-sm-wrap-e591553c","flex-sm-nowrap":"flex-sm-nowrap-1bc5f0bf","flex-sm-wrap-reverse":"flex-sm-wrap-reverse-32c44a55","justify-content-sm-start":"justify-content-sm-start-c4529254","justify-content-sm-end":"justify-content-sm-end-f4fcbd71","justify-content-sm-center":"justify-content-sm-center-a64ddae7","justify-content-sm-between":"justify-content-sm-between-c1c69a15","justify-content-sm-around":"justify-content-sm-around-8f15251d","justify-content-sm-evenly":"justify-content-sm-evenly-96878302","align-items-sm-start":"align-items-sm-start-66e2eb40","align-items-sm-end":"align-items-sm-end-8dba6edb","align-items-sm-center":"align-items-sm-center-6221c072","align-items-sm-baseline":"align-items-sm-baseline-1255ac1d","align-items-sm-stretch":"align-items-sm-stretch-cdf10f74","align-self-sm-auto":"align-self-sm-auto-6206c84c","align-self-sm-start":"align-self-sm-start-8f111295","align-self-sm-end":"align-self-sm-end-2a01af03","align-self-sm-center":"align-self-sm-center-52adfbfe","align-self-sm-baseline":"align-self-sm-baseline-c1305ad3","align-self-sm-stretch":"align-self-sm-stretch-5dd09b0e","order-sm-first":"order-sm-first-3fd1d0d6","order-sm-0":"order-sm-0-fac11b93","order-sm-1":"order-sm-1-c2028b51","order-sm-2":"order-sm-2-be7dd9a3","order-sm-3":"order-sm-3-1bad2020","order-sm-4":"order-sm-4-febec940","order-sm-5":"order-sm-5-10506135","order-sm-last":"order-sm-last-686b9c5d","gap-sm-0":"gap-sm-0-303c29ca","gap-sm-1":"gap-sm-1-5d7a840e","gap-sm-2":"gap-sm-2-631f2817","gap-sm-3":"gap-sm-3-969630af","gap-sm-4":"gap-sm-4-5f8959a3","gap-sm-5":"gap-sm-5-0cfb1f34","flex-md-fill":"flex-md-fill-db0debf6","flex-md-row":"flex-md-row-8743869e","flex-md-column":"flex-md-column-548ee2d7","flex-md-row-reverse":"flex-md-row-reverse-1148d647","flex-md-column-reverse":"flex-md-column-reverse-ea0cb7e2","flex-md-grow-0":"flex-md-grow-0-15f6c08b","flex-md-grow-1":"flex-md-grow-1-47648d75","flex-md-shrink-0":"flex-md-shrink-0-c95e9418","flex-md-shrink-1":"flex-md-shrink-1-742c9ff7","flex-md-wrap":"flex-md-wrap-e7a8ea72","flex-md-nowrap":"flex-md-nowrap-a70ba040","flex-md-wrap-reverse":"flex-md-wrap-reverse-b86e66cf","justify-content-md-start":"justify-content-md-start-4614cbf1","justify-content-md-end":"justify-content-md-end-ec931050","justify-content-md-center":"justify-content-md-center-d618b2fe","justify-content-md-between":"justify-content-md-between-306c0adf","justify-content-md-around":"justify-content-md-around-ddb647b1","justify-content-md-evenly":"justify-content-md-evenly-0c8f50c7","align-items-md-start":"align-items-md-start-a719c346","align-items-md-end":"align-items-md-end-92a63305","align-items-md-center":"align-items-md-center-bbe64828","align-items-md-baseline":"align-items-md-baseline-27f90c15","align-items-md-stretch":"align-items-md-stretch-b8bedc2c","align-self-md-auto":"align-self-md-auto-d2a1c919","align-self-md-start":"align-self-md-start-65b481c0","align-self-md-end":"align-self-md-end-e3aa8f40","align-self-md-center":"align-self-md-center-8d297803","align-self-md-baseline":"align-self-md-baseline-8f044d3a","align-self-md-stretch":"align-self-md-stretch-0d6b891d","order-md-first":"order-md-first-f8eecf4f","order-md-0":"order-md-0-b4137c94","order-md-1":"order-md-1-9c8448b5","order-md-2":"order-md-2-9f528b79","order-md-3":"order-md-3-af0caa7b","order-md-4":"order-md-4-d62475e2","order-md-5":"order-md-5-6038f8ef","order-md-last":"order-md-last-cd180560","gap-md-0":"gap-md-0-538bc374","gap-md-1":"gap-md-1-40709ae7","gap-md-2":"gap-md-2-4da9ae94","gap-md-3":"gap-md-3-995869f1","gap-md-4":"gap-md-4-a73c3ca2","gap-md-5":"gap-md-5-f09eed9d","flex-lg-fill":"flex-lg-fill-6bf01aa6","flex-lg-row":"flex-lg-row-cc25e374","flex-lg-column":"flex-lg-column-df0c6b6f","flex-lg-row-reverse":"flex-lg-row-reverse-d9c7b6b9","flex-lg-column-reverse":"flex-lg-column-reverse-b3a92490","flex-lg-grow-0":"flex-lg-grow-0-be8c4a8d","flex-lg-grow-1":"flex-lg-grow-1-7e4345f4","flex-lg-shrink-0":"flex-lg-shrink-0-0d23dbda","flex-lg-shrink-1":"flex-lg-shrink-1-21973945","flex-lg-wrap":"flex-lg-wrap-2f68e553","flex-lg-nowrap":"flex-lg-nowrap-0a49e1e3","flex-lg-wrap-reverse":"flex-lg-wrap-reverse-64db1910","justify-content-lg-start":"justify-content-lg-start-2a0fd6cf","justify-content-lg-end":"justify-content-lg-end-57e471aa","justify-content-lg-center":"justify-content-lg-center-4f243af5","justify-content-lg-between":"justify-content-lg-between-50945c3a","justify-content-lg-around":"justify-content-lg-around-fe09ee92","justify-content-lg-evenly":"justify-content-lg-evenly-69c212ef","align-items-lg-start":"align-items-lg-start-c7d07069","align-items-lg-end":"align-items-lg-end-7422b3f2","align-items-lg-center":"align-items-lg-center-511a9678","align-items-lg-baseline":"align-items-lg-baseline-934ae0ff","align-items-lg-stretch":"align-items-lg-stretch-93efd0f3","align-self-lg-auto":"align-self-lg-auto-e4415052","align-self-lg-start":"align-self-lg-start-08b55a29","align-self-lg-end":"align-self-lg-end-4e78bdf3","align-self-lg-center":"align-self-lg-center-da043fa0","align-self-lg-baseline":"align-self-lg-baseline-fb3b4256","align-self-lg-stretch":"align-self-lg-stretch-06e3e954","order-lg-first":"order-lg-first-92b5e12b","order-lg-0":"order-lg-0-2707889c","order-lg-1":"order-lg-1-7b4820b1","order-lg-2":"order-lg-2-e722b436","order-lg-3":"order-lg-3-05a5324e","order-lg-4":"order-lg-4-f93af939","order-lg-5":"order-lg-5-352218e8","order-lg-last":"order-lg-last-cea5ea86","gap-lg-0":"gap-lg-0-c42bf515","gap-lg-1":"gap-lg-1-7ad6561e","gap-lg-2":"gap-lg-2-96f91531","gap-lg-3":"gap-lg-3-fe46a168","gap-lg-4":"gap-lg-4-05d9ad77","gap-lg-5":"gap-lg-5-0ffc638e","flex-xl-fill":"flex-xl-fill-0c2ee0f7","flex-xl-row":"flex-xl-row-a97355e9","flex-xl-column":"flex-xl-column-3e58c33a","flex-xl-row-reverse":"flex-xl-row-reverse-282ca00f","flex-xl-column-reverse":"flex-xl-column-reverse-a4706fb0","flex-xl-grow-0":"flex-xl-grow-0-55e09dae","flex-xl-grow-1":"flex-xl-grow-1-96a8d3d1","flex-xl-shrink-0":"flex-xl-shrink-0-701f3e1f","flex-xl-shrink-1":"flex-xl-shrink-1-1089bfdc","flex-xl-wrap":"flex-xl-wrap-e7974fe8","flex-xl-nowrap":"flex-xl-nowrap-3272837d","flex-xl-wrap-reverse":"flex-xl-wrap-reverse-8b14911b","justify-content-xl-start":"justify-content-xl-start-4450b506","justify-content-xl-end":"justify-content-xl-end-3c92efde","justify-content-xl-center":"justify-content-xl-center-ff6eff06","justify-content-xl-between":"justify-content-xl-between-91672a54","justify-content-xl-around":"justify-content-xl-around-911a33cd","justify-content-xl-evenly":"justify-content-xl-evenly-6db84783","align-items-xl-start":"align-items-xl-start-ee22e5c7","align-items-xl-end":"align-items-xl-end-943bfd53","align-items-xl-center":"align-items-xl-center-d7e2b89b","align-items-xl-baseline":"align-items-xl-baseline-cef4af8a","align-items-xl-stretch":"align-items-xl-stretch-affcf920","align-self-xl-auto":"align-self-xl-auto-0bda57c7","align-self-xl-start":"align-self-xl-start-7024317f","align-self-xl-end":"align-self-xl-end-d4f7ce9e","align-self-xl-center":"align-self-xl-center-c0086f38","align-self-xl-baseline":"align-self-xl-baseline-4c87db53","align-self-xl-stretch":"align-self-xl-stretch-2940d3b7","order-xl-first":"order-xl-first-abf0a931","order-xl-0":"order-xl-0-a324443c","order-xl-1":"order-xl-1-68c9d9da","order-xl-2":"order-xl-2-df069bef","order-xl-3":"order-xl-3-1d0a2c17","order-xl-4":"order-xl-4-bcb199b0","order-xl-5":"order-xl-5-ca6a3334","order-xl-last":"order-xl-last-d5b5a65d","gap-xl-0":"gap-xl-0-3ae9b2aa","gap-xl-1":"gap-xl-1-fca51044","gap-xl-2":"gap-xl-2-48e3a48b","gap-xl-3":"gap-xl-3-7ed8b6f2","gap-xl-4":"gap-xl-4-4fa7885f","gap-xl-5":"gap-xl-5-cf7f141f","flex-xxl-fill":"flex-xxl-fill-7bd07b38","flex-xxl-row":"flex-xxl-row-c37a4049","flex-xxl-column":"flex-xxl-column-0418b439","flex-xxl-row-reverse":"flex-xxl-row-reverse-60fc0245","flex-xxl-column-reverse":"flex-xxl-column-reverse-d5d6e915","flex-xxl-grow-0":"flex-xxl-grow-0-bfed54d0","flex-xxl-grow-1":"flex-xxl-grow-1-b0db652a","flex-xxl-shrink-0":"flex-xxl-shrink-0-68e8cdfe","flex-xxl-shrink-1":"flex-xxl-shrink-1-6acc938e","flex-xxl-wrap":"flex-xxl-wrap-3d1f4bfe","flex-xxl-nowrap":"flex-xxl-nowrap-157ad2c2","flex-xxl-wrap-reverse":"flex-xxl-wrap-reverse-03ed08b5","justify-content-xxl-start":"justify-content-xxl-start-bb94650c","justify-content-xxl-end":"justify-content-xxl-end-c8d3c0db","justify-content-xxl-center":"justify-content-xxl-center-0306698e","justify-content-xxl-between":"justify-content-xxl-between-6e26b543","justify-content-xxl-around":"justify-content-xxl-around-f0c598ae","justify-content-xxl-evenly":"justify-content-xxl-evenly-11c92263","align-items-xxl-start":"align-items-xxl-start-4136871e","align-items-xxl-end":"align-items-xxl-end-99e148aa","align-items-xxl-center":"align-items-xxl-center-282c18d3","align-items-xxl-baseline":"align-items-xxl-baseline-411d0264","align-items-xxl-stretch":"align-items-xxl-stretch-c4516075","align-self-xxl-auto":"align-self-xxl-auto-8ddad745","align-self-xxl-start":"align-self-xxl-start-da652d0a","align-self-xxl-end":"align-self-xxl-end-7134f077","align-self-xxl-center":"align-self-xxl-center-08d8ecc7","align-self-xxl-baseline":"align-self-xxl-baseline-08cb730a","align-self-xxl-stretch":"align-self-xxl-stretch-b14f77fd","order-xxl-first":"order-xxl-first-009d6564","order-xxl-0":"order-xxl-0-6701a986","order-xxl-1":"order-xxl-1-30f37235","order-xxl-2":"order-xxl-2-226022e8","order-xxl-3":"order-xxl-3-f09b9dea","order-xxl-4":"order-xxl-4-f32a4e20","order-xxl-5":"order-xxl-5-df33a99d","order-xxl-last":"order-xxl-last-f23f5bec","gap-xxl-0":"gap-xxl-0-9494d149","gap-xxl-1":"gap-xxl-1-ab653be1","gap-xxl-2":"gap-xxl-2-bd8c56f7","gap-xxl-3":"gap-xxl-3-31a5758d","gap-xxl-4":"gap-xxl-4-17a236e6","gap-xxl-5":"gap-xxl-5-10753ee7",row:"row-698a686d",col:"col-4cd2c847","row-cols-auto":"row-cols-auto-8432aedd","row-cols-1":"row-cols-1-5386afeb","row-cols-2":"row-cols-2-ccebda62","row-cols-3":"row-cols-3-d8d8b9e1","row-cols-4":"row-cols-4-580039c7","row-cols-5":"row-cols-5-7d4c1995","row-cols-6":"row-cols-6-5f963d08","row-cols-7":"row-cols-7-5a1db6fa","row-cols-8":"row-cols-8-5d71f00f","row-cols-9":"row-cols-9-3686c5af","row-cols-10":"row-cols-10-8d1289f1","row-cols-11":"row-cols-11-cdd80b2d","row-cols-12":"row-cols-12-fd4609c1","col-auto":"col-auto-7d36a9e3","col-1":"col-1-c30c6c21","col-2":"col-2-4a89a844","col-3":"col-3-a3ce071e","col-4":"col-4-a43fc285","col-5":"col-5-681bbe91","col-6":"col-6-27ebf83c","col-7":"col-7-8cceb7ad","col-8":"col-8-fd6c8ee8","col-9":"col-9-7f6877e7","col-10":"col-10-83673f14","col-11":"col-11-3c722a87","col-12":"col-12-b0cca822","offset-1":"offset-1-35a97bf7","offset-2":"offset-2-762925af","offset-3":"offset-3-4782d098","offset-4":"offset-4-db931ca6","offset-5":"offset-5-08cd8ffd","offset-6":"offset-6-81e4a295","offset-7":"offset-7-193cc62d","offset-8":"offset-8-1a77de10","offset-9":"offset-9-ac16d38b","offset-10":"offset-10-b23bfc62","offset-11":"offset-11-7b92334e","g-0":"g-0-0814b780","gx-0":"gx-0-99042afc","gy-0":"gy-0-d8b94310","g-1":"g-1-4061cfad","gx-1":"gx-1-701b9a8c","gy-1":"gy-1-0ca82061","g-2":"g-2-07cae9ac","gx-2":"gx-2-cb565ee2","gy-2":"gy-2-3305743a","g-3":"g-3-93d862dd","gx-3":"gx-3-26cedd9c","gy-3":"gy-3-e7973da8","g-4":"g-4-c551273d","gx-4":"gx-4-1a738034","gy-4":"gy-4-5e3fa5d1","g-5":"g-5-b2a0c701","gx-5":"gx-5-14291089","gy-5":"gy-5-8d16f1de","col-sm":"col-sm-db092b7f","row-cols-sm-auto":"row-cols-sm-auto-3ac183c6","row-cols-sm-1":"row-cols-sm-1-4ee9f367","row-cols-sm-2":"row-cols-sm-2-756274d4","row-cols-sm-3":"row-cols-sm-3-81164c5d","row-cols-sm-4":"row-cols-sm-4-2b0dab58","row-cols-sm-5":"row-cols-sm-5-58343c95","row-cols-sm-6":"row-cols-sm-6-f0351324","row-cols-sm-7":"row-cols-sm-7-2f119222","row-cols-sm-8":"row-cols-sm-8-5cc54fb4","row-cols-sm-9":"row-cols-sm-9-e1a80421","row-cols-sm-10":"row-cols-sm-10-dd3cd827","row-cols-sm-11":"row-cols-sm-11-22fa2f5c","row-cols-sm-12":"row-cols-sm-12-ac270e41","col-sm-auto":"col-sm-auto-0f0c150c","col-sm-1":"col-sm-1-351dc35e","col-sm-2":"col-sm-2-034e3649","col-sm-3":"col-sm-3-20eb1d18","col-sm-4":"col-sm-4-36db3444","col-sm-5":"col-sm-5-f849c414","col-sm-6":"col-sm-6-4bd83c67","col-sm-7":"col-sm-7-2b2deb75","col-sm-8":"col-sm-8-a98936f9","col-sm-9":"col-sm-9-4a93c29d","col-sm-10":"col-sm-10-4b11b498","col-sm-11":"col-sm-11-199ce94a","col-sm-12":"col-sm-12-63065469","offset-sm-0":"offset-sm-0-73fc06d5","offset-sm-1":"offset-sm-1-2e91f942","offset-sm-2":"offset-sm-2-4a65340a","offset-sm-3":"offset-sm-3-c8d171d9","offset-sm-4":"offset-sm-4-0d8c83d3","offset-sm-5":"offset-sm-5-83a8f317","offset-sm-6":"offset-sm-6-2357f031","offset-sm-7":"offset-sm-7-b050af1f","offset-sm-8":"offset-sm-8-4f48e049","offset-sm-9":"offset-sm-9-ace30645","offset-sm-10":"offset-sm-10-1a204eb2","offset-sm-11":"offset-sm-11-809695fe","g-sm-0":"g-sm-0-2e76b9a0","gx-sm-0":"gx-sm-0-26e9dd30","gy-sm-0":"gy-sm-0-9f27ad11","g-sm-1":"g-sm-1-6cb0b694","gx-sm-1":"gx-sm-1-6d971b6c","gy-sm-1":"gy-sm-1-af1f7982","g-sm-2":"g-sm-2-30a06700","gx-sm-2":"gx-sm-2-1152e7f6","gy-sm-2":"gy-sm-2-e965b499","g-sm-3":"g-sm-3-259d2afe","gx-sm-3":"gx-sm-3-43bb6db6","gy-sm-3":"gy-sm-3-a3c54c32","g-sm-4":"g-sm-4-412e081a","gx-sm-4":"gx-sm-4-8a7e8aa2","gy-sm-4":"gy-sm-4-3aca8a23","g-sm-5":"g-sm-5-d48cfc69","gx-sm-5":"gx-sm-5-387d8c10","gy-sm-5":"gy-sm-5-daaada71","col-md":"col-md-eaf8133a","row-cols-md-auto":"row-cols-md-auto-0cd24d97","row-cols-md-1":"row-cols-md-1-17e205a3","row-cols-md-2":"row-cols-md-2-8639c5ea","row-cols-md-3":"row-cols-md-3-dadf279e","row-cols-md-4":"row-cols-md-4-8a55de00","row-cols-md-5":"row-cols-md-5-fe9ae7bf","row-cols-md-6":"row-cols-md-6-a3014dca","row-cols-md-7":"row-cols-md-7-cffcedd1","row-cols-md-8":"row-cols-md-8-4dd3409f","row-cols-md-9":"row-cols-md-9-3e4d5e41","row-cols-md-10":"row-cols-md-10-845192f0","row-cols-md-11":"row-cols-md-11-e0f84470","row-cols-md-12":"row-cols-md-12-e9186d0d","col-md-auto":"col-md-auto-cf436d9e","col-md-1":"col-md-1-a5fccb1b","col-md-2":"col-md-2-b9eae111","col-md-3":"col-md-3-895843e6","col-md-4":"col-md-4-863fc17f","col-md-5":"col-md-5-163cbe8b","col-md-6":"col-md-6-37c9a8c6","col-md-7":"col-md-7-b9cda3fb","col-md-8":"col-md-8-dcb7f7d7","col-md-9":"col-md-9-593702e1","col-md-10":"col-md-10-3b46b0e4","col-md-11":"col-md-11-69192275","col-md-12":"col-md-12-e2e8ed6d","offset-md-0":"offset-md-0-cc63c2df","offset-md-1":"offset-md-1-db058c1f","offset-md-2":"offset-md-2-2382179c","offset-md-3":"offset-md-3-80486487","offset-md-4":"offset-md-4-4f20839b","offset-md-5":"offset-md-5-8765c942","offset-md-6":"offset-md-6-2b567113","offset-md-7":"offset-md-7-956ef73b","offset-md-8":"offset-md-8-5c50b00e","offset-md-9":"offset-md-9-b31ff187","offset-md-10":"offset-md-10-d3a27828","offset-md-11":"offset-md-11-a1cd2f0c","g-md-0":"g-md-0-a664bdb2","gx-md-0":"gx-md-0-1014290d","gy-md-0":"gy-md-0-417ccf01","g-md-1":"g-md-1-39f8a2e1","gx-md-1":"gx-md-1-8f129711","gy-md-1":"gy-md-1-1c901f14","g-md-2":"g-md-2-12bf1851","gx-md-2":"gx-md-2-f3eeda04","gy-md-2":"gy-md-2-8c229f96","g-md-3":"g-md-3-b577ec3f","gx-md-3":"gx-md-3-99b350f5","gy-md-3":"gy-md-3-ac1332d4","g-md-4":"g-md-4-8d42c1cc","gx-md-4":"gx-md-4-ff01a9b9","gy-md-4":"gy-md-4-96a25f17","g-md-5":"g-md-5-705c5c51","gx-md-5":"gx-md-5-1460ce4a","gy-md-5":"gy-md-5-69ba416c","col-lg":"col-lg-cf65fc84","row-cols-lg-auto":"row-cols-lg-auto-c2dec7ea","row-cols-lg-1":"row-cols-lg-1-546e4c6f","row-cols-lg-2":"row-cols-lg-2-cedff3fc","row-cols-lg-3":"row-cols-lg-3-f8a5497d","row-cols-lg-4":"row-cols-lg-4-1d789f5b","row-cols-lg-5":"row-cols-lg-5-e968e7b6","row-cols-lg-6":"row-cols-lg-6-9debcaca","row-cols-lg-7":"row-cols-lg-7-247b053d","row-cols-lg-8":"row-cols-lg-8-c22cae63","row-cols-lg-9":"row-cols-lg-9-9a9859c6","row-cols-lg-10":"row-cols-lg-10-4da43b7d","row-cols-lg-11":"row-cols-lg-11-39a00826","row-cols-lg-12":"row-cols-lg-12-906b832f","col-lg-auto":"col-lg-auto-963e1e5a","col-lg-1":"col-lg-1-6969d81f","col-lg-2":"col-lg-2-ac0ddc34","col-lg-3":"col-lg-3-9994adf2","col-lg-4":"col-lg-4-c9eea701","col-lg-5":"col-lg-5-7baead73","col-lg-6":"col-lg-6-eaefd14c","col-lg-7":"col-lg-7-cb5b3609","col-lg-8":"col-lg-8-b81e0bce","col-lg-9":"col-lg-9-2d836db1","col-lg-10":"col-lg-10-2f6a5af2","col-lg-11":"col-lg-11-822f434a","col-lg-12":"col-lg-12-73b0353d","offset-lg-0":"offset-lg-0-f166aea7","offset-lg-1":"offset-lg-1-9160a67a","offset-lg-2":"offset-lg-2-6de0e1ab","offset-lg-3":"offset-lg-3-5e117cf9","offset-lg-4":"offset-lg-4-123a660f","offset-lg-5":"offset-lg-5-ae571b6d","offset-lg-6":"offset-lg-6-9b903f70","offset-lg-7":"offset-lg-7-a4c359e1","offset-lg-8":"offset-lg-8-9c296cdd","offset-lg-9":"offset-lg-9-ca2d20a7","offset-lg-10":"offset-lg-10-b3915383","offset-lg-11":"offset-lg-11-d29f6ed5","g-lg-0":"g-lg-0-72142794","gx-lg-0":"gx-lg-0-f2510f60","gy-lg-0":"gy-lg-0-588ec44b","g-lg-1":"g-lg-1-952f0678","gx-lg-1":"gx-lg-1-ac8aa27d","gy-lg-1":"gy-lg-1-1a896df5","g-lg-2":"g-lg-2-8fd29a8d","gx-lg-2":"gx-lg-2-a44f12fb","gy-lg-2":"gy-lg-2-2e03d6fe","g-lg-3":"g-lg-3-b082049c","gx-lg-3":"gx-lg-3-1c424c2e","gy-lg-3":"gy-lg-3-405d4cf8","g-lg-4":"g-lg-4-925493fe","gx-lg-4":"gx-lg-4-48e39722","gy-lg-4":"gy-lg-4-a58b1aa6","g-lg-5":"g-lg-5-57885179","gx-lg-5":"gx-lg-5-f133fb07","gy-lg-5":"gy-lg-5-af60e4a7","col-xl":"col-xl-81cffdac","row-cols-xl-auto":"row-cols-xl-auto-e3fe16c5","row-cols-xl-1":"row-cols-xl-1-63c87d9f","row-cols-xl-2":"row-cols-xl-2-ee997d46","row-cols-xl-3":"row-cols-xl-3-a560a6f1","row-cols-xl-4":"row-cols-xl-4-6bbb05a9","row-cols-xl-5":"row-cols-xl-5-4adeb09f","row-cols-xl-6":"row-cols-xl-6-54c5fe93","row-cols-xl-7":"row-cols-xl-7-5e6b6def","row-cols-xl-8":"row-cols-xl-8-b0c9e82c","row-cols-xl-9":"row-cols-xl-9-7cad9b40","row-cols-xl-10":"row-cols-xl-10-ead08b8a","row-cols-xl-11":"row-cols-xl-11-8e7e8e57","row-cols-xl-12":"row-cols-xl-12-53b8f806","col-xl-auto":"col-xl-auto-32e5d2d2","col-xl-1":"col-xl-1-803720cf","col-xl-2":"col-xl-2-d319828c","col-xl-3":"col-xl-3-c78f1b18","col-xl-4":"col-xl-4-f1e0034c","col-xl-5":"col-xl-5-d8ac5af8","col-xl-6":"col-xl-6-64c41268","col-xl-7":"col-xl-7-52c3adb3","col-xl-8":"col-xl-8-6870c3ea","col-xl-9":"col-xl-9-913974df","col-xl-10":"col-xl-10-c31e8042","col-xl-11":"col-xl-11-d672b99a","col-xl-12":"col-xl-12-0dbda239","offset-xl-0":"offset-xl-0-d2c56178","offset-xl-1":"offset-xl-1-6787efc3","offset-xl-2":"offset-xl-2-5b64bfa0","offset-xl-3":"offset-xl-3-6af7854f","offset-xl-4":"offset-xl-4-b6727e1e","offset-xl-5":"offset-xl-5-30ee6da1","offset-xl-6":"offset-xl-6-c3c4a8f4","offset-xl-7":"offset-xl-7-aa8e6d62","offset-xl-8":"offset-xl-8-eb3eb8a9","offset-xl-9":"offset-xl-9-da49c486","offset-xl-10":"offset-xl-10-7f32d644","offset-xl-11":"offset-xl-11-9175fe37","g-xl-0":"g-xl-0-d78ff065","gx-xl-0":"gx-xl-0-ca7899e9","gy-xl-0":"gy-xl-0-9c919865","g-xl-1":"g-xl-1-34dc60cd","gx-xl-1":"gx-xl-1-f5744fa4","gy-xl-1":"gy-xl-1-54088ee3","g-xl-2":"g-xl-2-ee35d915","gx-xl-2":"gx-xl-2-b090126e","gy-xl-2":"gy-xl-2-b5e2f068","g-xl-3":"g-xl-3-c4c7418f","gx-xl-3":"gx-xl-3-cfc865b1","gy-xl-3":"gy-xl-3-cfab963f","g-xl-4":"g-xl-4-782eae79","gx-xl-4":"gx-xl-4-4188dea4","gy-xl-4":"gy-xl-4-efbc61f1","g-xl-5":"g-xl-5-609159b8","gx-xl-5":"gx-xl-5-4f6bb489","gy-xl-5":"gy-xl-5-c5294be9","col-xxl":"col-xxl-3ccd2b5e","row-cols-xxl-auto":"row-cols-xxl-auto-2701a502","row-cols-xxl-1":"row-cols-xxl-1-8fdab92e","row-cols-xxl-2":"row-cols-xxl-2-0ab6477a","row-cols-xxl-3":"row-cols-xxl-3-93102872","row-cols-xxl-4":"row-cols-xxl-4-59563649","row-cols-xxl-5":"row-cols-xxl-5-046df226","row-cols-xxl-6":"row-cols-xxl-6-eff3129f","row-cols-xxl-7":"row-cols-xxl-7-da385ad4","row-cols-xxl-8":"row-cols-xxl-8-5b27fbce","row-cols-xxl-9":"row-cols-xxl-9-35b0bbd6","row-cols-xxl-10":"row-cols-xxl-10-e71b18fc","row-cols-xxl-11":"row-cols-xxl-11-1f7582a7","row-cols-xxl-12":"row-cols-xxl-12-05da5eb3","col-xxl-auto":"col-xxl-auto-13f01bc2","col-xxl-1":"col-xxl-1-32ccf9ec","col-xxl-2":"col-xxl-2-b9fafb1f","col-xxl-3":"col-xxl-3-a9d70c2e","col-xxl-4":"col-xxl-4-442b8d52","col-xxl-5":"col-xxl-5-62fb7e95","col-xxl-6":"col-xxl-6-8c585d57","col-xxl-7":"col-xxl-7-870d6f77","col-xxl-8":"col-xxl-8-539fdb05","col-xxl-9":"col-xxl-9-139c03e2","col-xxl-10":"col-xxl-10-cb4529de","col-xxl-11":"col-xxl-11-a0e6d8b6","col-xxl-12":"col-xxl-12-cd4b2c69","offset-xxl-0":"offset-xxl-0-00c35a24","offset-xxl-1":"offset-xxl-1-b35aab61","offset-xxl-2":"offset-xxl-2-ff685e18","offset-xxl-3":"offset-xxl-3-f9145748","offset-xxl-4":"offset-xxl-4-f35d6b67","offset-xxl-5":"offset-xxl-5-650ce31f","offset-xxl-6":"offset-xxl-6-d3d4c57c","offset-xxl-7":"offset-xxl-7-214f8b0b","offset-xxl-8":"offset-xxl-8-d00a2f42","offset-xxl-9":"offset-xxl-9-4c1a3b68","offset-xxl-10":"offset-xxl-10-30d610e4","offset-xxl-11":"offset-xxl-11-c081914c","g-xxl-0":"g-xxl-0-a33f0415","gx-xxl-0":"gx-xxl-0-dea4c364","gy-xxl-0":"gy-xxl-0-5f46e1bc","g-xxl-1":"g-xxl-1-0b703aa4","gx-xxl-1":"gx-xxl-1-86985839","gy-xxl-1":"gy-xxl-1-c238f8c4","g-xxl-2":"g-xxl-2-7acafb78","gx-xxl-2":"gx-xxl-2-aee6a9f0","gy-xxl-2":"gy-xxl-2-ad9a33c6","g-xxl-3":"g-xxl-3-3501b39c","gx-xxl-3":"gx-xxl-3-38076f10","gy-xxl-3":"gy-xxl-3-6437341d","g-xxl-4":"g-xxl-4-6ea4502a","gx-xxl-4":"gx-xxl-4-12c36d4e","gy-xxl-4":"gy-xxl-4-fcc43d12","g-xxl-5":"g-xxl-5-48f06c86","gx-xxl-5":"gx-xxl-5-a74617a1","gy-xxl-5":"gy-xxl-5-0341c533"},rh=d.createContext({element:"div"}),oh=e=>{const{children:t,className:n,element:r="div",cols:o,alignItems:i,justifyContent:a,gap:s,gutter:l,gutterY:c,gutterX:u,wrap:d,direction:p,xs:f,sm:g,md:h,lg:m,xl:v,xxl:b,...y}=e,x=(e,t="")=>{const{cols:n,justifyContent:r,alignItems:o,gap:i,direction:a,wrap:s,gutter:l,gutterX:c,gutterY:u}=e;return Xi(nh.row,{[nh[`row-cols${t}-${n}`]]:n},{[nh[`justify-content${t}-${r}`]]:r},{[nh[`align-items${t}-${o}`]]:o},{[nh[`gap${t}-${i}`]]:i||0===i},{[nh[`g${t}-${l}`]]:l||0===l},{[nh[`gx${t}-${c}`]]:c||0===c},{[nh[`gy${t}-${u}`]]:u||0===u},{[`flex${t}-${a}`]:a},{[nh[`flex${t}-${s}`]]:s})};return(0,R.jsx)(rh.Provider,{value:{element:r},children:(0,R.jsx)(r,{"data-name":"row",...y,className:(()=>{const e={xs:f,sm:g,md:h,lg:m,xl:v,xxl:b},t=th.map(t=>{const n=e[t],r="xs"!==t?`-${t}`:"";return n?x("object"==typeof n?{...n}:{cols:n},r):void 0});return Xi(...t,n,x({cols:o,justifyContent:a,alignItems:i,gap:s,direction:p,wrap:d,gutter:l,gutterX:u,gutterY:c}))})(),children:t})})},ih=e=>{const{className:t,children:n,element:r,width:o,offset:i,order:a,align:s,grow:l,shrink:c,onClick:u,xs:p,sm:f,md:g,lg:h,xl:m,xxl:v,...b}=e,{element:y}=d.useContext(rh);let x;if(r)x=r;else switch(y){case"ol":case"ul":x="li";break;case"span":x="span";break;default:x="div"}const w=(e,t="")=>{const{align:n,offset:r,order:o,width:i,grow:a,shrink:s}=e;return Xi(nh.col,{[nh[`align-self${t}-${n}`]]:n},{[nh[`offset${t}-${r}`]]:r},{[nh[`order${t}-${o}`]]:o},{[nh[`col${t}-${i}`]]:i},{[nh[`flex${t}-grow-${a}`]]:a},{[nh[`flex${t}-shrink-${s}`]]:s})};return(0,R.jsx)(x,{"data-name":"col",...b,className:(()=>{const e={xs:p,sm:f,md:g,lg:h,xl:m,xxl:v},n=th.map(t=>{const n=e[t],r="xs"!==t?`-${t}`:"";return n?w("object"==typeof n?{...n}:{width:n},r):void 0});return Xi(...n,t,w({width:o,offset:i,order:a,align:s,grow:l,shrink:c}))})(),onClick:u,children:n})},ah=e=>{var t;const{children:n,className:r,background:o="white",openText:i,closeText:a,...s}=e,[l,c]=d.useState(!1),{onToggle:u,isOpen:p}=d.useContext(Lc),{id:f,disabled:g}=d.useContext(Kc),h=()=>{g||u(f)},m=e=>{("Enter"===e.code||"Space"===e.code)&&!e.repeat&&(e.preventDefault(),h())},v=e=>{g||c(e)},b=Xi(Zi["accordion__item-header"],r),y=1===(null==(t=d.Children.toArray(n))?void 0:t.length)?d.Children.toArray(n).find(e=>d.isValidElement(e)&&(e.type===Qg||e.type===Zg&&["h1","h2","h3","h4","h5","h6"].includes(e.props.element))):void 0,x=d.useMemo(()=>{switch(o){case"primary":return p(f)?"primary-active":"primary-main";case"white/primary":return p(f)?"primary-active":"white";case"muted/primary":return p(f)?"primary-active":"bg-muted";default:return o}},[o,f,p]),w="white"===x||"bg-muted"===x?void 0:"inverted",S=e=>(0,R.jsx)(eh,{"data-name":"accordion-item-header",role:"button",tabIndex:g?-1:0,"aria-disabled":g,className:b,onClick:h,onKeyDown:m,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),"aria-expanded":p(f),"aria-controls":`${f}-content`,background:x,...s,children:i&&a&&!g?(0,R.jsxs)(oh,{justifyContent:"between",alignItems:"center",children:[(0,R.jsx)(ih,{children:e}),(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(Xg,{openText:i,closeText:a,isActive:l,isOpen:p(f),color:w,visualType:"link","aria-hidden":!0,tabIndex:-1})})]}):e});return y?(()=>{const{element:e,children:t,...n}=(null==y?void 0:y.props)??{};return(0,R.jsx)(Qg,{element:e,modifiers:"normal",className:Zi["accordion__item-wrapping-heading"],children:S((0,R.jsx)(Zg,{element:"span",...n,children:t}))})})():S(n)};function sh(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function lh(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const ch={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function uh(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}const dh=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],ph=d.forwardRef((e,t)=>{const{animateOpacity:n=!1,animationStateClasses:r={},applyInlineTransitions:o=!0,children:i,className:a="",contentClassName:s,delay:l=0,disableDisplayNone:c=!1,duration:u=500,easing:p="ease",height:f,onHeightAnimationEnd:g,onHeightAnimationStart:h,style:m,contentRef:v}=e,b=Object.assign({},e);dh.forEach(e=>{delete b[e]});const y=(0,d.useRef)(f),x=(0,d.useRef)(null),w=(0,d.useRef)(),S=(0,d.useRef)(),_=(0,d.useRef)(Object.assign(Object.assign({},ch),r)),j=(0,d.useRef)(!!(typeof window<"u"&&window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),E=j.current?0:l,C=j.current?0:u;let k=f,T="visible";"number"==typeof f?(k=f<0?0:f,T="hidden"):sh(k)&&(k="0%"===f?0:f,T="hidden");const[P,R]=(0,d.useState)(k),[O,I]=(0,d.useState)(T),[A,M]=(0,d.useState)(!1),[D,F]=(0,d.useState)(uh(_.current,f));(0,d.useEffect)(()=>{lh(x.current,P,c)},[]),(0,d.useEffect)(()=>{if(f!==y.current&&x.current){(function(e,t){0===t&&null!=e&&e.style&&(e.style.display="")})(x.current,y.current),x.current.style.overflow="hidden";const e=x.current.offsetHeight;x.current.style.overflow="";const t=C+E;let n,r,o,i="hidden";const a="auto"===y.current;"number"==typeof f?(n=f<0?0:f,r=n):sh(f)?(n="0%"===f?0:f,r=n):(n=e,r="auto",i=void 0),a&&(r=n,n=e);const s=[_.current.animating,("auto"===y.current||f<y.current)&&_.current.animatingUp,("auto"===f||f>y.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,"number"==typeof r&&r>0?_.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),l=uh(_.current,r);R(n),I("hidden"),M(!a),F(s),clearTimeout(S.current),clearTimeout(w.current),a?(o=!0,S.current=setTimeout(()=>{R(r),I(i),M(o),null==h||h(r)},50),w.current=setTimeout(()=>{M(!1),F(l),lh(x.current,r,c),null==g||g(r)},t)):(null==h||h(n),S.current=setTimeout(()=>{R(r),I(i),M(!1),F(l),"auto"!==f&&lh(x.current,n,c),null==g||g(n)},t))}return y.current=f,()=>{clearTimeout(S.current),clearTimeout(w.current)}},[f]);const N=Object.assign(Object.assign({},m),{height:P,overflow:O||(null==m?void 0:m.overflow)});A&&o&&(N.transition=`height ${C}ms ${p} ${E}ms`,null!=m&&m.transition&&(N.transition=`${m.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const L={};n&&(L.transition=`opacity ${C}ms ${p} ${E}ms`,L.WebkitTransition=L.transition,0===P&&(L.opacity=0));const $=typeof b["aria-hidden"]<"u"?b["aria-hidden"]:0===f;return d.createElement("div",Object.assign({},b,{"aria-hidden":$,className:`${D} ${a}`,style:N,ref:t}),d.createElement("div",{className:s,style:L,ref:e=>{x.current=e,v&&(v.current=e)}},i))}),fh=require("react-dom"),gh=()=>{const e=typeof window>"u",[t,n]=d.useState(!e&&window.matchMedia("print").matches),r=()=>{fh.flushSync(()=>{n(!0)})},o=()=>{n(!1)};return d.useEffect(()=>(window.addEventListener("beforeprint",r),window.addEventListener("afterprint",o),()=>{window.removeEventListener("beforeprint",r),window.removeEventListener("afterprint",o)}),[]),t},hh={"primary-main":"primary-main-ea0565ff","primary-active":"primary-active-d24cbc9e","primary-active-subtle":"primary-active-subtle-c2ab8b5f","primary-highlight":"primary-highlight-212d11b7","primary-highlight-subtle":"primary-highlight-subtle-715c2641","accent-main":"accent-main-f55c9be5","accent-highlight":"accent-highlight-6810179d","bg-default":"bg-default-099a281c","bg-muted":"bg-muted-13732b1c","bg-subtle":"bg-subtle-e7130c61","bg-disabled":"bg-disabled-eed0584e","bg-inverted":"bg-inverted-2bf8047e","bg-inverted-contrast":"bg-inverted-contrast-304e2c10",black:"black-d9cad7d6",white:"white-5992ce1a","positive-main":"positive-main-dfc533f2","positive-active":"positive-active-f4288715","positive-highlight":"positive-highlight-6594b5a8","important-main":"important-main-67d03aad","important-active":"important-active-5ebf547d","important-highlight":"important-highlight-aa19e975","info-main":"info-main-80c1cd50","info-active":"info-active-5f165e38","info-highlight":"info-highlight-578939bc","warning-main":"warning-main-2fae5383","warning-highlight":"warning-highlight-f87e48b3",transparent:"transparent-74d01799"},mh=e=>e?hh[e]:"",vh=e=>{const{padding:t,background:n}=d.useContext(zc),{getCurrentBreakpointProps:r}=qc(e.defaultServerBreakpoint),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Xi(Bc.card__content,{[mh(s)]:s},i);return(0,R.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Uc(a),...l,className:c,children:o})};vh.displayName="CardContent";const bh=e=>{const{children:t,className:n,...r}=e,{isOpen:o}=d.useContext(Lc),{id:i,disabled:a}=d.useContext(Kc),s=gh(),l=Xi(Zi["accordion__item-content"],n),c=(0,R.jsx)(vh,{"data-name":"accordion-item-content",...r,className:l,children:t});return s&&!a?c:(0,R.jsx)(ph,{duration:300,height:o(i)?"auto":0,role:"region","aria-labelledby":i,id:`${i}-content`,children:c})},yh=e=>{const{children:t}=e;return(0,R.jsx)(R.Fragment,{children:t})},xh=require("@tanstack/react-table");function wh(){return typeof window<"u"}function Sh(e){return Eh(e)?(e.nodeName||"").toLowerCase():"#document"}function _h(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jh(e){var t;return null==(t=(Eh(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Eh(e){return!!wh()&&(e instanceof Node||e instanceof _h(e).Node)}function Ch(e){return!!wh()&&(e instanceof Element||e instanceof _h(e).Element)}function kh(e){return!!wh()&&(e instanceof HTMLElement||e instanceof _h(e).HTMLElement)}function Th(e){return!(!wh()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof _h(e).ShadowRoot)}const Ph=new Set(["inline","contents"]);function Rh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ph.has(o)}const Oh=new Set(["table","td","th"]);function Ih(e){return Oh.has(Sh(e))}const Ah=[":popover-open",":modal"];function Mh(e){return Ah.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dh=["transform","translate","scale","rotate","perspective"],Fh=["transform","translate","scale","rotate","perspective","filter"],Nh=["paint","layout","strict","content"];function Lh(e){const t=$h(),n=Ch(e)?zh(e):e;return Dh.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Fh.some(e=>(n.willChange||"").includes(e))||Nh.some(e=>(n.contain||"").includes(e))}function $h(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Vh=new Set(["html","body","#document"]);function Bh(e){return Vh.has(Sh(e))}function zh(e){return _h(e).getComputedStyle(e)}function Gh(e){return Ch(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uh(e){if("html"===Sh(e))return e;const t=e.assignedSlot||e.parentNode||Th(e)&&e.host||jh(e);return Th(t)?t.host:t}function Hh(e){const t=Uh(e);return Bh(t)?e.ownerDocument?e.ownerDocument.body:e.body:kh(t)&&Rh(t)?t:Hh(t)}function Wh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Hh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=_h(o);if(i){const e=qh(a);return t.concat(a,a.visualViewport||[],Rh(o)?o:[],e&&n?Wh(e):[])}return t.concat(o,Wh(o,[],n))}function qh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yh(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Kh(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Th(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Jh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Xh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Zh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(tm()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Qh(e){return!Xh().includes("jsdom/")&&(!tm()&&0===e.width&&0===e.height||tm()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function em(){return/apple/i.test(navigator.vendor)}function tm(){const e=/android/i;return e.test(Jh())||e.test(Xh())}function nm(){return Jh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function rm(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function om(e){return(null==e?void 0:e.ownerDocument)||document}function im(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function am(e){return"composedPath"in e?e.composedPath()[0]:e.target}function sm(e){return kh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function lm(e){e.preventDefault(),e.stopPropagation()}function cm(e){return!!e&&("combobox"===e.getAttribute("role")&&sm(e))}const um=Math.min,dm=Math.max,pm=Math.round,fm=Math.floor,gm=e=>({x:e,y:e}),hm={left:"right",right:"left",bottom:"top",top:"bottom"},mm={start:"end",end:"start"};function vm(e,t,n){return dm(e,um(t,n))}function bm(e,t){return"function"==typeof e?e(t):e}function ym(e){return e.split("-")[0]}function xm(e){return e.split("-")[1]}function wm(e){return"x"===e?"y":"x"}function Sm(e){return"y"===e?"height":"width"}const _m=new Set(["top","bottom"]);function jm(e){return _m.has(ym(e))?"y":"x"}function Em(e){return wm(jm(e))}function Cm(e){return e.replace(/start|end/g,e=>mm[e])}const km=["left","right"],Tm=["right","left"],Pm=["top","bottom"],Rm=["bottom","top"];function Om(e,t,n,r){const o=xm(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Tm:km:t?km:Tm;case"left":case"right":return t?Pm:Rm;default:return[]}}(ym(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Cm)))),i}function Im(e){return e.replace(/left|right|bottom|top/g,e=>hm[e])}function Am(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Mm(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Dm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Fm=typeof Element>"u",Nm=Fm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lm=!Fm&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$m=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},Vm=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!$m(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{Nm.call(a,Dm)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!$m(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},Bm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Bm(e)?0:e.tabIndex},Gm=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Um=function(e){return"INPUT"===e.tagName},Hm=function(e){return function(e){return Um(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Lm(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},Wm=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},qm=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Nm.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Nm.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Wm(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Lm(e);if(a&&!a.shadowRoot&&!0===r(a))return Wm(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&Lm(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=Lm(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Ym=function(e,t){return!(t.disabled||$m(t)||function(e){return Um(e)&&"hidden"===e.type}(t)||qm(t,e)||function(e){var t="DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName});return t}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Nm.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Km=function(e,t){return!(Hm(t)||zm(t)<0||!Ym(e,t))},Jm=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Xm=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=zm(e);return n<0&&t&&!Bm(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}),r.sort(Gm).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Zm=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Vm([e],t.includeContainer,{filter:Km.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Jm}):function(e,t,n){if($m(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Dm));return t&&Nm.call(e,Dm)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Km.bind(null,t)),Xm(n)};function Qm(e,t,n){let{reference:r,floating:o}=e;const i=jm(t),a=Em(t),s=Sm(a),l=ym(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(xm(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function ev(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=bm(t,e),g=Am(f),h=s[p?"floating"===d?"reference":"floating":d],m=Mm(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Mm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-x.top+g.top)/y.y,bottom:(x.bottom-m.bottom+g.bottom)/y.y,left:(m.left-x.left+g.left)/y.x,right:(x.right-m.right+g.right)/y.x}}const tv=new Set(["left","top"]);function nv(e){const t=zh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kh(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=pm(n)!==i||pm(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function rv(e){return Ch(e)?e:e.contextElement}function ov(e){const t=rv(e);if(!kh(t))return gm(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=nv(t);let a=(i?pm(n.width):n.width)/r,s=(i?pm(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const iv=gm(0);function av(e){const t=_h(e);return $h()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:iv}function sv(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=rv(e);let a=gm(1);t&&(r?Ch(r)&&(a=ov(r)):a=ov(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==_h(e))&&t}(i,n,r)?av(i):gm(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=_h(i),t=r&&Ch(r)?_h(r):r;let n=e,o=qh(n);for(;o&&r&&t!==n;){const e=ov(o),t=o.getBoundingClientRect(),r=zh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=_h(o),o=qh(n)}}return Mm({width:u,height:d,x:l,y:c})}function lv(e,t){const n=Gh(e).scrollLeft;return t?t.left+n:sv(jh(e)).left+n}function cv(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-lv(e,n),y:n.top+t.scrollTop}}const uv=new Set(["absolute","fixed"]);function dv(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=_h(e),r=jh(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=$h();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=lv(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=jh(e),n=Gh(e),r=e.ownerDocument.body,o=dm(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=dm(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+lv(e);const s=-n.scrollTop;return"rtl"===zh(r).direction&&(a+=dm(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(jh(e));else if(Ch(t))r=function(e,t){const n=sv(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=kh(e)?ov(e):gm(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=av(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Mm(r)}function pv(e,t){const n=Uh(e);return!(n===t||!Ch(n)||Bh(n))&&("fixed"===zh(n).position||pv(n,t))}function fv(e,t){const n=t.get(e);if(n)return n;let r=Wh(e,[],!1).filter(e=>Ch(e)&&"body"!==Sh(e)),o=null;const i="fixed"===zh(e).position;let a=i?Uh(e):e;for(;Ch(a)&&!Bh(a);){const t=zh(a),n=Lh(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&uv.has(o.position)||Rh(a)&&!n&&pv(e,a))?r=r.filter(e=>e!==a):o=t,a=Uh(a)}return t.set(e,r),r}function gv(e,t,n){const r=kh(t),o=jh(t),i="fixed"===n,a=sv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=gm(0);function c(){l.x=lv(o)}if(r||!r&&!i)if(("body"!==Sh(t)||Rh(o))&&(s=Gh(t)),r){const e=sv(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?gm(0):cv(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function hv(e){return"static"===zh(e).position}function mv(e,t){if(!kh(e)||"fixed"===zh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return jh(e)===n&&(n=n.ownerDocument.body),n}function vv(e,t){const n=_h(e);if(Mh(e))return n;if(!kh(e)){let t=Uh(e);for(;t&&!Bh(t);){if(Ch(t)&&!hv(t))return t;t=Uh(t)}return n}let r=mv(e,t);for(;r&&Ih(r)&&hv(r);)r=mv(r,t);return r&&Bh(r)&&hv(r)&&!Lh(r)?n:r||function(e){let t=Uh(e);for(;kh(t)&&!Bh(t);){if(Lh(t))return t;if(Mh(t))return null;t=Uh(t)}return null}(e)||n}const bv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=jh(r),s=!!t&&Mh(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=gm(1);const u=gm(0),d=kh(r);if((d||!d&&!i)&&(("body"!==Sh(r)||Rh(a))&&(l=Gh(r)),kh(r))){const e=sv(r);c=ov(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?gm(0):cv(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:jh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Mh(t)?[]:fv(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=dv(t,n,o);return e.top=dm(r.top,e.top),e.right=um(r.right,e.right),e.bottom=um(r.bottom,e.bottom),e.left=dm(r.left,e.left),e},dv(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:vv,getElementRects:async function(e){const t=this.getOffsetParent||vv,n=this.getDimensions,r=await n(e.floating);return{reference:gv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=nv(e);return{width:t,height:n}},getScale:ov,isElement:Ch,isRTL:function(e){return"rtl"===zh(e).direction}};function yv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xv(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=rv(e),u=o||i?[...c?Wh(c):[],...Wh(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=jh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g={rootMargin:-fm(d)+"px "+-fm(o.clientWidth-(u+p))+"px "+-fm(o.clientHeight-(d+f))+"px "+-fm(u)+"px",threshold:dm(0,um(1,l))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1===r&&!yv(c,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,h=l?sv(e):null;return l&&function t(){const r=sv(e);h&&!yv(h,r)&&n(),h=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const wv=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=ym(n),s=xm(n),l="y"===jm(n),c=tv.has(a)?-1:1,u=i&&l?-1:1,d=bm(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(f="end"===s?-1*g:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Sv=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=bm(e,t),c={x:n,y:r},u=await ev(t,l),d=jm(ym(o)),p=wm(d);let f=c[p],g=c[d];if(i){const e="y"===p?"bottom":"right";f=vm(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";g=vm(g+u["y"===d?"top":"left"],g,g-u[e])}const h=s.fn({...t,[p]:f,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[d]:a}}}}}},_v=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=bm(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=ym(o),b=jm(s),y=ym(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[Im(s)]:function(e){const t=Im(e);return[Cm(e),t,Cm(t)]}(s)),S="none"!==g;!p&&S&&w.push(...Om(s,h,g,x));const _=[s,...w],j=await ev(t,m),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(j[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=xm(e),o=Em(e),i=Sm(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Im(a)),[a,Im(a)]}(o,a,x);E.push(j[e[0]],j[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every(e=>e<=0)){var k,T;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=_[e];if(t&&("alignment"!==d||b===jm(t)||C.every(e=>jm(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(T=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(S){const t=jm(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},jv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=bm(e,t)||{};if(null==c)return{};const d=Am(u),p={x:n,y:r},f=Em(o),g=Sm(f),h=await a.getDimensions(c),m="y"===f,v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[f]-p[f]-i.floating[g],w=p[f]-i.reference[f],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=S?S[y]:0;(!_||!await(null==a.isElement?void 0:a.isElement(S)))&&(_=s.floating[y]||i.floating[g]);const j=x/2-w/2,E=_/2-h[g]/2-1,C=um(d[v],E),k=um(d[b],E),T=C,P=_-h[g]-k,R=_/2-h[g]/2+j,O=vm(T,R,P),I=!l.arrow&&null!=xm(o)&&R!==O&&i.reference[g]/2-(R<T?C:k)-h[g]/2<0,A=I?R<T?R-T:R-P:0;return{[f]:p[f]+A,data:{[f]:O,centerOffset:R-O-A,...I&&{alignmentOffset:A}},reset:I}}}),Ev=(e,t,n)=>{const r=new Map,o={platform:bv,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Qm(c,r,l),p=r,f={},g=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:m,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=m??u,d=v??d,f={...f,[i]:{...f[i],...b}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Qm(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var Cv=typeof document<"u"?d.useLayoutEffect:function(){};function kv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!kv(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||kv(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Tv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pv(e,t){const n=Tv(e);return Math.round(t*n)/n}function Rv(e){const t=d.useRef(e);return Cv(()=>{t.current=e}),t}const Ov=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?jv({element:n.current,padding:r}).fn(t):{}:n?jv({element:n,padding:r}).fn(t):{}}}),Iv=(e,t)=>({...wv(e),options:[e,t]}),Av=(e,t)=>({...Sv(e),options:[e,t]}),Mv=(e,t)=>({..._v(e),options:[e,t]}),Dv=(e,t)=>({...Ov(e),options:[e,t]});function Fv(e){return d.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const Nv={...p},Lv=Nv.useInsertionEffect||(e=>e());function $v(e){const t=d.useRef(()=>{0});return Lv(()=>{t.current=e}),d.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Vv="ArrowUp",Bv="ArrowDown",zv="ArrowLeft",Gv="ArrowRight";function Uv(e,t,n){return Math.floor(e/t)!==n}function Hv(e,t){return t<0||t>=e.current.length}function Wv(e,t){return Yv(e,{disabledIndices:t})}function qv(e,t){return Yv(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Yv(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&Xv(a,s,o));return s}function Kv(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Jv(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Xv(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Zv=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}let eb=!1,tb=0;const nb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tb++;const rb=Nv.useId||function(){const[e,t]=d.useState(()=>eb?nb():void 0);return Zv(()=>{null==e&&t(nb())},[]),d.useEffect(()=>{eb=!0},[]),e};const ob=d.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:p,d:f,style:{transform:g,...h}={},...m}=e,v=rb(),[b,y]=d.useState(!1);if(Zv(()=>{r&&"rtl"===zh(r).direction&&y(!0)},[r]),!r)return null;const[x,w]=n.split("-"),S="top"===x||"bottom"===x;let _=u;(S&&null!=i&&i.x||!S&&null!=i&&i.y)&&(_=null);const j=2*c,E=j/2,C=a/2*(l/-8+1),k=s/2*l/4,T=!!f,P=_&&"end"===w?"bottom":"top";let R=_&&"end"===w?"right":"left";_&&b&&(R="end"===w?"left":"right");const O=null!=(null==o?void 0:o.x)?_||o.x:"",I=null!=(null==o?void 0:o.y)?_||o.y:"",A=f||"M0,0 H"+a+" L"+(a-C)+","+(s-k)+" Q"+a/2+","+s+" "+C+","+(s-k)+" Z",M={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[x];return d.createElement("svg",Qv({},m,{"aria-hidden":!0,ref:t,width:T?a:a+j,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[R]:O,[P]:I,[x]:S||T?"100%":"calc(100% - "+j/2+"px)",transform:[M,g].filter(e=>!!e).join(" "),...h}}),j>0&&d.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:j+(f?0:1),d:A}),d.createElement("path",{stroke:j&&!f?m.fill:"none",d:A}),d.createElement("clipPath",{id:v},d.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+j,height:a})))});const ib=d.createContext(null),ab=d.createContext(null),sb=()=>{var e;return(null==(e=d.useContext(ib))?void 0:e.id)||null},lb=()=>d.useContext(ab);function cb(e){return"data-floating-ui-"+e}function ub(e){const t=(0,d.useRef)(e);return Zv(()=>{t.current=e}),t}const db=cb("safe-polygon");function pb(e,t,n){return n&&!rm(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function fb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:p=0,move:f=!0}=t,g=lb(),h=sb(),m=ub(c),v=ub(l),b=ub(n),y=d.useRef(),x=d.useRef(-1),w=d.useRef(),S=d.useRef(-1),_=d.useRef(!0),j=d.useRef(!1),E=d.useRef(()=>{}),C=d.useRef(!1),k=d.useCallback(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[o]);d.useEffect(()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(S.current),_.current=!0,C.current=!1)}},[s,i]),d.useEffect(()=>{if(!s||!m.current||!n)return;function e(e){k()&&r(!1,e,"hover")}const t=om(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,s,m,k]);const T=d.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=pb(v.current,"close",y.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(clearTimeout(x.current),r(!1,e,n))},[v,r]),P=$v(()=>{E.current(),w.current=void 0}),R=$v(()=>{if(j.current){const e=om(a.floating).body;e.style.pointerEvents="",e.removeAttribute(db),j.current=!1}}),O=$v(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));d.useEffect(()=>{if(s&&Ch(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),f&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),f&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(x.current),_.current=!1,u&&!rm(y.current)||p>0&&!pb(v.current,"open"))return;const t=pb(v.current,"open",y.current);t?x.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function i(e){if(O())return;E.current();const t=om(a.floating);if(clearTimeout(S.current),C.current=!1,m.current&&o.current.floatingContext){n||clearTimeout(x.current),w.current=m.current({...o.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),P(),O()||T(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Kh(a.floating,e.relatedTarget))&&T(e)}function l(e){O()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){R(),P(),O()||T(e)}})(e))}},[a,s,e,u,p,f,T,P,R,r,n,b,g,v,m,o,O]),Zv(()=>{var e;if(s&&n&&null!=(e=m.current)&&e.__options.blockPointerEvents&&k()){j.current=!0;const e=a.floating;if(Ch(a.domReference)&&e){var t;const n=om(a.floating).body;n.setAttribute(db,"");const r=a.domReference,o=null==g||null==(t=g.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,h,a,g,m,k]),Zv(()=>{n||(y.current=void 0,C.current=!1,P(),R())},[n,P,R]),d.useEffect(()=>()=>{P(),clearTimeout(x.current),clearTimeout(S.current),R()},[s,a.domReference,P,R]);const I=d.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){!_.current&&!b.current&&r(!0,t,"hover")}u&&!rm(y.current)||n||0===p||C.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(S.current),"touch"===y.current?o():(C.current=!0,S.current=window.setTimeout(o,p)))}}},[u,r,n,b,p]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){O()||T(e.nativeEvent,!1)}}),[T,O]);return d.useMemo(()=>s?{reference:I,floating:A}:{},[s,I,A])}let gb=0;function hb(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(gb);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():gb=requestAnimationFrame(i)}function mb(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let vb=new WeakMap,bb=new WeakSet,yb={},xb=0;const wb=e=>e&&(e.host||wb(e.parentNode));function Sb(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const n=wb(t);return e.contains(n)?n:null}).filter(e=>null!=e))(t,e),s=new Set,l=new Set(a),c=[];yb[o]||(yb[o]=new WeakMap);const u=yb[o];return a.forEach(function e(t){!t||s.has(t)||(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||l.has(t)||[].forEach.call(t.children,t=>{if("script"!==Sh(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(vb.get(t)||0)+1,a=(u.get(t)||0)+1;vb.set(t,r),u.set(t,a),c.push(t),1===r&&n&&bb.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}})}(t),s.clear(),xb++,()=>{c.forEach(e=>{const t=(vb.get(e)||0)-1,n=(u.get(e)||0)-1;vb.set(e,t),u.set(e,n),t||(!bb.has(e)&&i&&e.removeAttribute(i),bb.delete(e)),n||e.removeAttribute(o)}),xb--,xb||(vb=new WeakMap,vb=new WeakMap,bb=new WeakSet,yb={})}}function _b(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=om(e[0]).body;return Sb(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const jb=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Eb(e,t){const n=Zm(e,jb());"prev"===t&&n.reverse();const r=n.indexOf(Yh(om(e)));return n.slice(r+1)[0]}function Cb(){return Eb(document.body,"next")}function kb(){return Eb(document.body,"prev")}function Tb(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kh(n,r)}function Pb(e){Zm(e,jb()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Rb(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const Ob={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ib(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Ab=d.forwardRef(function(e,t){const[n,r]=d.useState();Zv(()=>(em()&&r("button"),document.addEventListener("keydown",Ib),()=>{document.removeEventListener("keydown",Ib)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[cb("focus-guard")]:"",style:Ob};return d.createElement("span",Qv({},e,o))}),Mb=d.createContext(null),Db=cb("portal");function Fb(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=rb(),o=Nb(),[i,a]=d.useState(null),s=d.useRef(null);return Zv(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{s.current=null})},[i]),Zv(()=>{if(!r||s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Db,""),e.appendChild(n),s.current=n,a(n)},[t,r]),Zv(()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Ch(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Db,""),e=i||e,e.appendChild(l),s.current=l,a(l)},[t,n,r,o]),i}({id:n,root:r}),[a,s]=d.useState(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=null==a?void 0:a.modal,g=null==a?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return d.useEffect(()=>{if(i&&o&&!f)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Tb(e)&&("focusin"===e.type?Rb:Pb)(i)}},[i,o,f]),d.useEffect(()=>{i&&(g||Rb(i))},[g,i]),d.createElement(Mb.Provider,{value:d.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:p,portalNode:i,setFocusManagerState:s}),[o,i])},h&&i&&d.createElement(Ab,{"data-type":"outside",ref:l,onFocus:e=>{if(Tb(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=kb()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),h&&i&&d.createElement("span",{"aria-owns":i.id,style:Ob}),i&&fh.createPortal(t,i),h&&i&&d.createElement(Ab,{"data-type":"outside",ref:c,onFocus:e=>{if(Tb(e,i)){var t;null==(t=p.current)||t.focus()}else{const t=Cb()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),null!=a&&a.closeOnFocusOut&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Nb=()=>d.useContext(Mb),Lb="data-floating-ui-focusable";function $b(e){return e?e.hasAttribute(Lb)?e:e.querySelector("["+Lb+"]")||e:null}let Vb=[];function Bb(e){Vb=Vb.filter(e=>e.isConnected);let t=e;if(t&&"body"!==Sh(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Nm.call(e,Dm)&&Km(t,e)}(t,jb())){const e=Zm(t,jb())[0];e&&(t=e)}Vb.push(t),Vb.length>20&&(Vb=Vb.slice(-20))}}function zb(){return Vb.slice().reverse().find(e=>e.isConnected)}const Gb=d.forwardRef(function(e,t){return d.createElement("button",Qv({},e,{type:"button",ref:t,tabIndex:-1,style:Ob}))});function Ub(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:p=!0}=e,{open:f,refs:g,nodeId:h,onOpenChange:m,events:v,dataRef:b,floatingId:y,elements:{domReference:x,floating:w}}=t,S="number"==typeof a&&a<0,_=cm(x)&&S,j=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=ub(o),C=ub(a),k=ub(s),T=lb(),P=Nb(),R=d.useRef(null),O=d.useRef(null),I=d.useRef(!1),A=d.useRef(!1),M=d.useRef(-1),D=null!=P,F=$b(w),N=$v(function(e){return void 0===e&&(e=F),e?Zm(e,jb()):[]}),L=$v(e=>{const t=N(e);return E.current.map(e=>x&&"reference"===e?x:F&&"floating"===e?F:t).filter(Boolean).flat()});function $(e){return!r&&u&&c?d.createElement(Gb,{ref:"start"===e?R:O,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}d.useEffect(()=>{if(r||!c)return;function e(e){if("Tab"===e.key){Kh(F,Yh(om(F)))&&0===N().length&&!_&&lm(e);const t=L(),n=am(e);"reference"===E.current[0]&&n===x&&(lm(e),e.shiftKey?hb(t[t.length-1]):hb(t[1])),"floating"===E.current[1]&&n===F&&e.shiftKey&&(lm(e),hb(t[0]))}}const t=om(F);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,x,F,c,E,_,N,L]),d.useEffect(()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=am(e),n=N().indexOf(t);-1!==n&&(M.current=n)}},[r,w,N]),d.useEffect(()=>{if(!r&&p)return w&&kh(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){A.current=!0,setTimeout(()=>{A.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(Kh(x,t)||Kh(w,t)||Kh(t,w)||Kh(null==P?void 0:P.portalNode,t)||null!=t&&t.hasAttribute(cb("focus-guard"))||T&&(mb(T.nodesRef.current,h).find(e=>{var n,r;return Kh(null==(n=e.context)?void 0:n.elements.floating,t)||Kh(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,h).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(l&&n&&Yh(om(F))===om(F).body){kh(F)&&F.focus();const e=M.current,t=N(),n=t[e]||t[t.length-1]||F;kh(n)&&n.focus()}(_||!c)&&t&&n&&!A.current&&t!==zb()&&(I.current=!0,m(!1,e,"focus-out"))})}},[r,x,w,F,c,h,T,P,m,p,l,N,_]),d.useEffect(()=>{var e;if(r)return;const t=Array.from((null==P||null==(e=P.portalNode)?void 0:e.querySelectorAll("["+cb("portal")+"]"))||[]);if(w){const e=[w,...t,R.current,O.current,E.current.includes("reference")||_?x:null].filter(e=>null!=e),n=c||_?_b(e,j,!j):_b(e);return()=>{n()}}},[r,x,w,c,E,P,_,j]),Zv(()=>{if(r||!kh(F))return;const e=Yh(om(F));queueMicrotask(()=>{const t=L(F),n=C.current,r=("number"==typeof n?t[n]:n.current)||F,o=Kh(F,e);!S&&!o&&f&&hb(r,{preventScroll:r===F})})},[r,f,F,S,L,C]),Zv(()=>{if(r||!F)return;let e=!1;const t=om(F),n=Yh(t);let o=b.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&g.domReference.current&&Bb(g.domReference.current),"hover"===r&&"mouseleave"===i.type&&(I.current=!0),"outside-press"===r&&(a?(I.current=!1,e=!0):I.current=!(Zh(i)||Qh(i)))}Bb(n),v.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Ob),D&&x&&x.insertAdjacentElement("afterend",a),()=>{v.off("openchange",i);const n=Yh(t),r=Kh(w,n)||T&&mb(T.nodesRef.current,h).some(e=>{var t;return Kh(null==(t=e.context)?void 0:t.elements.floating,n)});(r||o&&["click","mousedown"].includes(o.type))&&g.domReference.current&&Bb(g.domReference.current);const s="boolean"==typeof k.current?zb()||a:k.current.current||a;queueMicrotask(()=>{k.current&&!I.current&&kh(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()})}},[r,w,F,k,b,g,v,T,h,D,x]),d.useEffect(()=>{queueMicrotask(()=>{I.current=!1})},[r]),Zv(()=>{if(!r&&P)return P.setFocusManagerState({modal:c,closeOnFocusOut:p,open:f,onOpenChange:m,refs:g}),()=>{P.setFocusManagerState(null)}},[r,P,c,f,m,g,p]),Zv(()=>{if(r||!F||"function"!=typeof MutationObserver||S)return;const e=()=>{const e=F.getAttribute("tabindex"),t=N(),n=Yh(om(w)),r=t.indexOf(n);-1!==r&&(M.current=r),E.current.includes("floating")||n!==g.domReference.current&&0===t.length?"0"!==e&&F.setAttribute("tabindex","0"):"-1"!==e&&F.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,w,F,g,E,N,S]);const V=!r&&j&&(!c||!_)&&(D||c);return d.createElement(d.Fragment,null,V&&d.createElement(Ab,{"data-type":"inside",ref:null==P?void 0:P.beforeInsideRef,onFocus:e=>{if(c){const e=L();hb("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(I.current=!1,Tb(e,P.portalNode)){const e=Cb()||x;null==e||e.focus()}else{var t;null==(t=P.beforeOutsideRef.current)||t.focus()}}}),!_&&$("start"),n,$("end"),V&&d.createElement(Ab,{"data-type":"inside",ref:null==P?void 0:P.afterInsideRef,onFocus:e=>{if(c)hb(L()[0]);else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(p&&(I.current=!0),Tb(e,P.portalNode)){const e=kb()||x;null==e||e.focus()}else{var t;null==(t=P.afterOutsideRef.current)||t.focus()}}}))}let Hb=0;let Wb=()=>{};const qb=d.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return Zv(()=>{if(n)return Hb++,1===Hb&&(Wb=function(){const e=/iP(hone|ad|od)|iOS/.test(Jh()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{Hb--,0===Hb&&Wb()}},[n]),d.createElement("div",Qv({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function Yb(e){return kh(e.target)&&"BUTTON"===e.target.tagName}function Kb(e){return sm(e)}function Jb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:p=!0}=t,f=d.useRef(),g=d.useRef(!1),h=d.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(rm(t,!0)&&c||(!n||!l||o.current.openEvent&&p&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===s&&f.current?f.current=void 0:rm(t,!0)&&c||(!n||!l||o.current.openEvent&&p&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,!e.defaultPrevented&&u&&!Yb(e)&&(" "===e.key&&!Kb(i)&&(e.preventDefault(),g.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Yb(e)||Kb(i)||" "===e.key&&g.current&&(g.current=!1,r(!(n&&l),e.nativeEvent,"click"))}}),[o,i,s,c,u,r,n,p,l]);return d.useMemo(()=>a?{reference:h}:{},[a,h])}const Xb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Zb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ey(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:h}=t,m=lb(),v=$v("function"==typeof l?l:()=>!1),b="function"==typeof l?v:l,y=d.useRef(!1),x=d.useRef(!1),{escapeKey:w,outsidePress:S}=Qb(g),{escapeKey:_,outsidePress:j}=Qb(h),E=d.useRef(!1),C=$v(e=>{var t;if(!n||!a||!s||"Escape"!==e.key||E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=m?mb(m.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),k=$v(e=>{var t;const n=()=>{var t;C(e),null==(t=am(e))||t.removeEventListener("keydown",n)};null==(t=am(e))||t.addEventListener("keydown",n)}),T=$v(e=>{var t;const n=y.current;y.current=!1;const a=x.current;if(x.current=!1,"click"===c&&a||n||"function"==typeof b&&!b(e))return;const s=am(e),l="["+cb("inert")+"]",u=om(o.floating).querySelectorAll(l);let d=Ch(s)?s:null;for(;d&&!Bh(d);){const e=Uh(d);if(Bh(e)||!Ch(e))break;d=e}if(u.length&&Ch(s)&&!function(e){return e.matches("html,body")}(s)&&!Kh(s,o.floating)&&Array.from(u).every(e=>!Kh(d,e)))return;if(kh(s)&&O){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===zh(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=m&&mb(m.nodesRef.current,p).some(t=>{var n;return im(e,null==(n=t.context)?void 0:n.elements.floating)});if(im(e,o.floating)||im(e,o.domReference)||f)return;const g=m?mb(m.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),P=$v(e=>{var t;const n=()=>{var t;T(e),null==(t=am(e))||t.removeEventListener(c,n)};null==(t=am(e))||t.addEventListener(c,n)});d.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=w,i.current.__outsidePressBubbles=S;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),E.current=!0}function u(){e=window.setTimeout(()=>{E.current=!1},$h()?5:0)}const d=om(o.floating);s&&(d.addEventListener("keydown",_?k:C,_),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,j?P:T,j);let p=[];return f&&(Ch(o.domReference)&&(p=Wh(o.domReference)),Ch(o.floating)&&(p=p.concat(Wh(o.floating))),!Ch(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Wh(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(d.removeEventListener("keydown",_?k:C,_),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,j?P:T,j),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,s,b,c,n,r,f,a,w,S,C,_,k,T,j,P]),d.useEffect(()=>{y.current=!1},[b,c]);const R=d.useMemo(()=>({onKeyDown:C,[Xb[p]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}}),[C,r,u,p]),O=d.useMemo(()=>({onKeyDown:C,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Zb[c]]:()=>{y.current=!0}}),[C,c]);return d.useMemo(()=>a?{reference:R,floating:O}:{},[a,R,O])}function ty(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=rb(),i=d.useRef({}),[a]=d.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),s=null!=sb();const[l,c]=d.useState(r.reference),u=$v((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),p=d.useMemo(()=>({setPositionReference:c}),[]),f=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:a,floatingId:o,refs:p}),[t,u,f,a,o,p])}function ny(e){void 0===e&&(e={});const{nodeId:t}=e,n=ty({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=d.useState(null),[s,l]=d.useState(null),c=(null==o?void 0:o.domReference)||i,u=d.useRef(null),p=lb();Zv(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=d.useState(r);kv(f,r)||g(r);const[h,m]=d.useState(null),[v,b]=d.useState(null),y=d.useCallback(e=>{e!==_.current&&(_.current=e,m(e))},[]),x=d.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),w=i||h,S=a||v,_=d.useRef(null),j=d.useRef(null),E=d.useRef(u),C=null!=l,k=Rv(l),T=Rv(o),P=Rv(c),R=d.useCallback(()=>{if(!_.current||!j.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),Ev(_.current,j.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!kv(E.current,t)&&(E.current=t,fh.flushSync(()=>{p(t)}))})},[f,t,n,T,P]);Cv(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);const O=d.useRef(!1);Cv(()=>(O.current=!0,()=>{O.current=!1}),[]),Cv(()=>{if(w&&(_.current=w),S&&(j.current=S),w&&S){if(k.current)return k.current(w,S,R);R()}},[w,S,R,k,C]);const I=d.useMemo(()=>({reference:_,floating:j,setReference:y,setFloating:x}),[y,x]),A=d.useMemo(()=>({reference:w,floating:S}),[w,S]),M=d.useMemo(()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Pv(A.floating,u.x),r=Pv(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Tv(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:R,refs:I,elements:A,floatingStyles:M}),[u,R,I,A,M])}({...e,elements:{...o,...s&&{reference:s}}}),g=d.useCallback(e=>{const t=Ch(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=d.useCallback(e=>{(Ch(e)||null===e)&&(u.current=e,a(e)),(Ch(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Ch(e))&&f.refs.setReference(e)},[f.refs]),m=d.useMemo(()=>({...f.refs,setReference:h,setPositionReference:g,domReference:u}),[f.refs,h,g]),v=d.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=d.useMemo(()=>({...f,...r,refs:m,elements:v,nodeId:t}),[f,m,v,t,r]);return Zv(()=>{r.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),d.useMemo(()=>({...f,context:b,refs:m,elements:v}),[f,m,v,b])}function ry(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=d.useRef(!1),u=d.useRef(),p=d.useRef(!0);d.useEffect(()=>{if(!s)return;const e=_h(a.domReference);function t(){!n&&kh(a.domReference)&&a.domReference===Yh(om(a.domReference))&&(c.current=!0)}function r(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[a.domReference,n,s]),d.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(c.current=!0)}},[o,s]),d.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=d.useMemo(()=>({onPointerDown(e){Qh(e.nativeEvent)||(p.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=am(e.nativeEvent);if(l&&Ch(t))try{if(em()&&nm())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!p.current&&!sm(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Ch(t)&&t.hasAttribute(cb("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const s=Yh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||Kh(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Kh(a.domReference,s)||o||r(!1,n,"focus")})}}),[i,a.domReference,r,l]);return d.useMemo(()=>s?{reference:f}:{},[s,f])}const oy="active",iy="selected";function ay(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[oy]:t,[iy]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Lb]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!o||![oy,iy].includes(n))if(0===n.indexOf("on")){var a;if(r.has(n)||r.set(n,[]),"function"==typeof i)null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}else e[n]=i}),e),{})}}function sy(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=d.useCallback(t=>ay(t,e,"reference"),t),i=d.useCallback(t=>ay(t,e,"floating"),n),a=d.useCallback(t=>ay(t,e,"item"),r);return d.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}let ly=!1;function cy(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function uy(e,t){return cy(t,e===Vv||e===Bv,e===zv||e===Gv)}function dy(e,t,n){return cy(t,e===Bv,n?e===zv:e===Gv)||"Enter"===e||" "===e||""===e}function py(e,t,n){return cy(t,n?e===Gv:e===zv,e===Vv)}function fy(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:a,onNavigate:s=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:p=!1,nested:f=!1,rtl:g=!1,virtual:h=!1,focusItemOnOpen:m="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:b=!0,disabledIndices:y,orientation:x="vertical",cols:w=1,scrollItemIntoView:S=!0,virtualItemRef:_,itemSizes:j,dense:E=!1}=t,C=ub($b(o.floating)),k=sb(),T=lb(),P=$v(s),R=cm(o.domReference),O=d.useRef(m),I=d.useRef(c??-1),A=d.useRef(null),M=d.useRef(!0),D=d.useRef(P),F=d.useRef(!!o.floating),N=d.useRef(n),L=d.useRef(!1),$=d.useRef(!1),V=ub(y),B=ub(n),z=ub(S),G=ub(c),[U,H]=d.useState(),[W,q]=d.useState(),Y=$v(function(e,t,n){function r(e){h?(H(e.id),null==T||T.events.emit("virtualfocus",e),_&&(_.current=e)):hb(e,{preventScroll:!0,sync:!(!nm()||!em())&&(ly||L.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame(()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=z.current;a&&J&&(n||!M.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))})});Zv(()=>{document.createElement("div").focus({get preventScroll(){return ly=!0,!1}})},[]),Zv(()=>{l&&(n&&o.floating?O.current&&null!=c&&($.current=!0,I.current=c,P(c)):F.current&&(I.current=-1,D.current(null)))},[l,n,o.floating,c,P]),Zv(()=>{if(l&&n&&o.floating)if(null==a){if(L.current=!1,null!=G.current)return;if(F.current&&(I.current=-1,Y(i,I)),(!N.current||!F.current)&&O.current&&(null!=A.current||!0===O.current&&null==A.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(I.current=null==A.current||dy(A.current,x,g)||f?Wv(i,V.current):qv(i,V.current),A.current=null,P(I.current))};t()}}else Hv(i,a)||(I.current=a,Y(i,I,$.current),$.current=!1)},[l,n,o.floating,a,G,f,i,x,g,P,Y,V]),Zv(()=>{var e;if(!l||o.floating||!T||h||!F.current)return;const t=T.nodesRef.current,n=null==(e=t.find(e=>e.id===k))||null==(e=e.context)?void 0:e.elements.floating,r=Yh(om(o.floating)),i=t.some(e=>e.context&&Kh(e.context.elements.floating,r));n&&!i&&M.current&&n.focus({preventScroll:!0})},[l,o.floating,T,k,h]),Zv(()=>{if(l&&T&&h&&!k)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){q(e.id),_&&(_.current=e)}},[l,T,h,k,_]),Zv(()=>{D.current=P,F.current=!!o.floating}),Zv(()=>{n||(A.current=null)},[n]),Zv(()=>{N.current=n},[n]);const K=null!=a,J=d.useMemo(()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&P(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;!M.current||"touch"===t||(I.current=-1,Y(i,I),P(null),h||hb(C.current,{preventScroll:!0}))}}}},[n,C,Y,v,i,P,h]),X=$v(e=>{if(M.current=!1,L.current=!0,229===e.which||!B.current&&e.currentTarget===C.current)return;if(f&&py(e.key,x,g))return lm(e),r(!1,e.nativeEvent,"list-navigation"),void(kh(o.domReference)&&(h?null==T||T.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=I.current,a=Wv(i,y),s=qv(i,y);if(R||("Home"===e.key&&(lm(e),I.current=a,P(I.current)),"End"===e.key&&(lm(e),I.current=s,P(I.current))),w>1){const t=j||Array.from({length:i.current.length},()=>({width:1,height:1})),n=function(e,t,n){const r=[];let o=0;return e.forEach((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),l=!0):o++}}),[...r]}(t,w,E),r=n.findIndex(e=>null!=e&&!Xv(i.current,e,y)),o=n.reduce((e,t,n)=>null==t||Xv(i.current,t,y)?e:n,-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===Vv){if(d&&lm(n),-1===u)p=c;else if(p=Yv(e,{startingIndex:p,amount:a,decrement:!0,disabledIndices:s}),o&&(u-a<l||p<0)){const e=u%a,t=c%a,n=c-(t-e);p=t===e?c:t>e?n:n-a}Hv(e,p)&&(p=u)}if(n.key===Bv&&(d&&lm(n),-1===u?p=l:(p=Yv(e,{startingIndex:u,amount:a,disabledIndices:s}),o&&u+a>c&&(p=Yv(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),Hv(e,p)&&(p=u)),"both"===r){const t=fm(u/a);n.key===(i?zv:Gv)&&(d&&lm(n),u%a!==a-1?(p=Yv(e,{startingIndex:u,disabledIndices:s}),o&&Uv(p,a,t)&&(p=Yv(e,{startingIndex:u-u%a-1,disabledIndices:s}))):o&&(p=Yv(e,{startingIndex:u-u%a-1,disabledIndices:s})),Uv(p,a,t)&&(p=u)),n.key===(i?Gv:zv)&&(d&&lm(n),u%a!==0?(p=Yv(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&Uv(p,a,t)&&(p=Yv(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):o&&(p=Yv(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),Uv(p,a,t)&&(p=u));const r=fm(c/a)===t;Hv(e,p)&&(p=o&&r?n.key===(i?Gv:zv)?c:Yv(e,{startingIndex:u-u%a-1,disabledIndices:s}):u)}return p}({current:n.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:x,loop:p,rtl:g,cols:w,disabledIndices:Jv([...y||i.current.map((e,t)=>Xv(i.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:o,prevIndex:Kv(I.current>s?a:I.current,t,n,w,e.key===Bv?"bl":e.key===(g?zv:Gv)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(I.current=l,P(I.current)),"both"===x)return}if(uy(e.key,x)){if(lm(e),n&&!h&&Yh(e.currentTarget.ownerDocument)===e.currentTarget)return I.current=dy(e.key,x,g)?a:s,void P(I.current);dy(e.key,x,g)?I.current=p?t>=s?u&&t!==i.current.length?-1:a:Yv(i,{startingIndex:t,disabledIndices:y}):Math.min(s,Yv(i,{startingIndex:t,disabledIndices:y})):I.current=p?t<=a?u&&-1!==t?i.current.length:s:Yv(i,{startingIndex:t,decrement:!0,disabledIndices:y}):Math.max(a,Yv(i,{startingIndex:t,decrement:!0,disabledIndices:y})),Hv(i,I.current)?P(null):P(I.current)}}),Z=d.useMemo(()=>h&&n&&K&&{"aria-activedescendant":W||U},[h,n,K,W,U]),Q=d.useMemo(()=>({"aria-orientation":"both"===x?void 0:x,...!cm(o.domReference)&&Z,onKeyDown:X,onPointerMove(){M.current=!0}}),[Z,X,o.domReference,x]),ee=d.useMemo(()=>{function e(e){"auto"===m&&Zh(e.nativeEvent)&&(O.current=!0)}return{...Z,onKeyDown(e){M.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,n){return cy(t,n?e===zv:e===Gv,e===Bv)}(e.key,x,g),l=py(e.key,x,g),u=uy(e.key,x),d=(f?s:u)||"Enter"===e.key||""===e.key.trim();if(h&&n){const t=null==T?void 0:T.nodesRef.current.find(e=>null==e.parentId),n=T&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),mb(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(T.nodesRef.current,t.id):null;if(a&&n&&_){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var p,m;const r=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,o=l&&!r?null==(m=n.context)?void 0:m.elements.domReference:s?i.current.find(e=>(null==e?void 0:e.id)===U):null;o&&(lm(e),o.dispatchEvent(t),q(void 0))}var v;if((u||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return lm(e),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(t))}return X(e)}if(n||b||!t){if(d&&(A.current=f&&u?null:e.key),f)return void(s&&(lm(e),n?(I.current=Wv(i,V.current),P(I.current)):r(!0,e.nativeEvent,"list-navigation")));u&&(null!=c&&(I.current=c),lm(e),!n&&b?r(!0,e.nativeEvent,"list-navigation"):X(e),n&&P(I.current))}},onFocus(){n&&!h&&P(null)},onPointerDown:function(e){O.current=m,"auto"===m&&Qh(e.nativeEvent)&&(O.current=!0)},onMouseDown:e,onClick:e}},[U,Z,X,V,m,i,f,P,r,n,b,x,g,c,T,h,_]);return d.useMemo(()=>l?{reference:ee,floating:Q,item:J}:{},[l,ee,Q,J])}const gy=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hy(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=gy.get(a))?n:a,l=rb(),c=null!=sb(),u=d.useMemo(()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[s,o,c,r,l,a]),p=d.useMemo(()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}},[s,o,l,a]),f=d.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[o,a]);return d.useMemo(()=>i?{reference:u,floating:p,item:f}:{},[i,u,p,f])}function my(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function vy(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:g}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:m,clientY:v}=e,b=[m,v],y=am(e),x="mouseleave"===e.type,w=Kh(d.floating,y),S=Kh(d.domReference,y),_=d.domReference.getBoundingClientRect(),j=d.floating.getBoundingClientRect(),E=u.split("-")[0],C=n>j.right-j.width/2,k=c>j.bottom-j.height/2,T=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,_),P=j.width>_.width,R=j.height>_.height,O=(P?_:j).left,I=(P?_:j).right,A=(R?_:j).top,M=(R?_:j).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&Ch(e.relatedTarget)&&Kh(d.floating,e.relatedTarget)||g&&mb(g.nodesRef.current,f).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===E&&c>=_.bottom-1||"bottom"===E&&c<=_.top+1||"left"===E&&n>=_.right-1||"right"===E&&n<=_.left+1)return h();let D=[];switch(E){case"top":D=[[O,_.top+1],[O,j.bottom-1],[I,j.bottom-1],[I,_.top+1]];break;case"bottom":D=[[O,j.top+1],[O,_.bottom-1],[I,_.bottom-1],[I,j.top+1]];break;case"left":D=[[j.right-1,M],[j.right-1,A],[_.left+1,A],[_.left+1,M]];break;case"right":D=[[_.right-1,M],[_.right-1,A],[j.left+1,A],[j.left+1,M]]}if(!my([m,v],D)){if(i&&!T)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i)/r;return a=e,s=t,l=n,c}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}my([m,v],function(e){let[n,r]=e;switch(E){case"top":return[[P?n+t/2:C?n+4*t:n-4*t,r+t+1],[P?n-t/2:C?n+4*t:n-4*t,r+t+1],[j.left,C||P?j.bottom-t:j.top],[j.right,C?P?j.bottom-t:j.top:j.bottom-t]];case"bottom":return[[P?n+t/2:C?n+4*t:n-4*t,r-t],[P?n-t/2:C?n+4*t:n-4*t,r-t],[j.left,C||P?j.top+t:j.bottom],[j.right,C?P?j.top+t:j.bottom:j.top+t]];case"left":{const e=[n+t+1,R?r+t/2:k?r+4*t:r-4*t],o=[n+t+1,R?r-t/2:k?r+4*t:r-4*t];return[[k||R?j.right-t:j.left,j.top],[k?R?j.right-t:j.left:j.right-t,j.bottom],e,o]}case"right":return[[n-t,R?r+t/2:k?r+4*t:r-4*t],[n-t,R?r-t/2:k?r+4*t:r-4*t],[k||R?j.left+t:j.right,j.top],[k?R?j.left+t:j.right:j.left+t,j.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const by=d.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),yy=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=d.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:p}=ny({open:c,onOpenChange:e=>e?m():h()}),{getReferenceProps:f,getFloatingProps:g}=sy([Jb(p),hy(p),ey(p,{enabled:o,escapeKey:i,outsidePress:a})]),h=()=>{typeof e.open>"u"&&l(!1),null==r||r(!1)},m=()=>{typeof e.open>"u"&&l(!0),null==r||r(!0)};return(0,R.jsx)(by.Provider,{value:{isOpen:c,reference:u.setReference,floating:u.setFloating,getReferenceProps:f,getFloatingProps:g,closeModal:h,context:p,isDismissable:o,escapeKey:i,outsidePress:a},children:t})},xy={"tedi-icon__wrapper":"tedi-icon__wrapper-9ebcd2b9","tedi-icon__wrapper--block":"tedi-icon__wrapper--block-c6569c9a","tedi-icon__wrapper--bg":"tedi-icon__wrapper--bg-eecdf75d","tedi-icon__wrapper--inline":"tedi-icon__wrapper--inline-3b529220","tedi-icon__wrapper--bg-primary":"tedi-icon__wrapper--bg-primary-610f32c0","tedi-icon__wrapper--bg-secondary":"tedi-icon__wrapper--bg-secondary-0162c3f4","tedi-icon__wrapper--bg-brand-primary":"tedi-icon__wrapper--bg-brand-primary-b81804e6","tedi-icon__wrapper--bg-brand-secondary":"tedi-icon__wrapper--bg-brand-secondary-f1e0ad91","tedi-icon__wrapper--size-8":"tedi-icon__wrapper--size-8-9d2b31c8","tedi-icon__wrapper--size-12":"tedi-icon__wrapper--size-12-fbbccf16","tedi-icon__wrapper--size-16":"tedi-icon__wrapper--size-16-79f6d6a4","tedi-icon__wrapper--size-18":"tedi-icon__wrapper--size-18-19e79f0c","tedi-icon__wrapper--size-24":"tedi-icon__wrapper--size-24-dad0e422","tedi-icon__wrapper--size-36":"tedi-icon__wrapper--size-36-5db5f717","tedi-icon__wrapper--size-48":"tedi-icon__wrapper--size-48-72e74510","tedi-icon":"tedi-icon-af01e6fb","tedi-icon--block":"tedi-icon--block-b39b3868","tedi-icon--inline":"tedi-icon--inline-f36dc36f","tedi-icon--color-primary":"tedi-icon--color-primary-007b893c","tedi-icon--color-secondary":"tedi-icon--color-secondary-33a32ecf","tedi-icon--color-tertiary":"tedi-icon--color-tertiary-ca6b8bff","tedi-icon--color-brand":"tedi-icon--color-brand-c34b5f15","tedi-icon--color-brand-dark":"tedi-icon--color-brand-dark-b9a4ebc2","tedi-icon--color-success":"tedi-icon--color-success-12a4bdac","tedi-icon--color-warning":"tedi-icon--color-warning-22d5317b","tedi-icon--color-warning-dark":"tedi-icon--color-warning-dark-57a93663","tedi-icon--color-danger":"tedi-icon--color-danger-22384ab6","tedi-icon--color-white":"tedi-icon--color-white-449bf36d","tedi-icon--size-8":"tedi-icon--size-8-5ae94c2a","tedi-icon--size-12":"tedi-icon--size-12-761e2145","tedi-icon--size-16":"tedi-icon--size-16-1921977d","tedi-icon--size-18":"tedi-icon--size-18-53872167","tedi-icon--size-24":"tedi-icon--size-24-a0bf69ef","tedi-icon--size-36":"tedi-icon--size-36-7ca033a7","tedi-icon--size-48":"tedi-icon--size-48-4839c0a5","tedi-icon--filled":"tedi-icon--filled-acd33902"},wy=(0,d.forwardRef)((e,t)=>{const{className:n,name:r,type:o="outlined",size:i=24,filled:a,display:s="block",color:l="primary",background:c,label:u,...d}=e,p=Xi(xy["tedi-icon__wrapper"],{[xy["tedi-icon__wrapper--bg"]]:c,[xy[`tedi-icon__wrapper--bg-${c}`]]:c,[xy[`tedi-icon__wrapper--size-${i}`]]:i,[xy["tedi-icon__wrapper--block"]]:c},c&&n),f=Xi("notranslate","material-symbols",o&&[`material-symbols--${o}`],xy["tedi-icon"],l&&xy[`tedi-icon--color-${l}`],i&&xy[`tedi-icon--size-${i}`],s&&xy[`tedi-icon--${s}`],a&&xy["tedi-icon--filled"],!c&&n),g=(0,R.jsx)("span",{ref:c?null:t,className:f,"data-name":"icon",role:"img","aria-label":u,"aria-hidden":!u,...d,children:r});return c?(0,R.jsx)("div",{className:p,ref:t,children:g}):g});wy.displayName="Icon";const Sy={"tedi-closing-button":"tedi-closing-button-358111e2","tedi-closing-button--medium":"tedi-closing-button--medium-b18535a5","tedi-closing-button--large":"tedi-closing-button--large-52d00b8a"},_y=e=>{const{getLabel:t}=$g(),{title:n=t("close"),onClick:r,size:o="medium",className:i,...a}=e,s=Xi(Sy["tedi-closing-button"],{[Sy[`tedi-closing-button--${o}`]]:o},i);return(0,R.jsx)("button",{"data-name":"closing-button",type:"button",...a,className:s,onClick:r,title:n,"aria-label":n,children:(0,R.jsx)(wy,{name:"close",size:"large"===o?24:18})})},jy={modal:"modal-11cfca5e","modal--center":"modal--center-b671c09c","modal--no-overlay":"modal--no-overlay-a990d10a",modal__inner:"modal__inner-10a95cee","modal--right":"modal--right-d7b9213c","modal--bottom":"modal--bottom-b9033478","modal--10":"modal--10-bc4c5908","modal--8":"modal--8-46477dbb","modal--6":"modal--6-cd8246bc",modal__card:"modal__card-f5ca2013","close-button":"close-button-9544f148"},Ey=e=>{const{children:t}=e,{closeModal:n}=d.useContext(by);return d.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},Cy=e=>{const{children:t,size:n=6,cardProps:r={},hideCloseButton:o,position:i,lockScroll:a=!0,trapFocus:s=!0,returnFocus:l=!0,overlay:c,visuallyHiddenDismiss:u=!1}=e,{getLabel:p}=$g(),f=e["aria-labelledby"],g=e["aria-describedby"],{isOpen:h,floating:m,getFloatingProps:v,context:b,isDismissable:y}=d.useContext(by),x=d.useMemo(()=>{let e=!1;const n=e=>e.type.displayName;return o?t:d.Children.map(t,(t,r)=>e||!d.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,d.cloneElement(t,{...t.props,children:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ey,{children:(0,R.jsx)(_y,{size:"large",className:jy["close-button"]})}),t.props.children]})})))},[t,p,o]);return(0,R.jsx)(Fb,{"data-name":"modal",children:h&&(0,R.jsx)(qb,{lockScroll:a,className:Xi(jy.modal,jy[`modal--${n}`],jy[`modal--${i}`],{[jy["modal--no-overlay"]]:"none"===c}),children:(0,R.jsx)(Ub,{context:b,closeOnFocusOut:!s&&y,visuallyHiddenDismiss:u?p("modal.close"):void 0,returnFocus:l,modal:s,children:(0,R.jsx)("div",{...v({ref:m,className:jy.modal__inner,"aria-labelledby":f,"aria-describedby":g,"aria-modal":s}),children:(0,R.jsx)(Yc,{...r,className:Xi(jy.modal__card,null==r?void 0:r.className),children:x})})})})})},ky=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,className:r,tabIndex:o=(e.id?-1:void 0),element:i="p",modifiers:a,color:s,...l}=t(e),c="string"==typeof a?[a]:a,u=Xi(r,null==c?void 0:c.map(e=>(e=>/^h[1-6]$/.test(e))(e)?`tedi-text--${e}`:`text-${e}`),{[`tedi-text--${s}`]:s});return(0,R.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Ty=e=>{const{children:t,element:n="h1",...r}=e;return(0,R.jsx)(ky,{element:n,...r,children:t})},Py={"tedi-alert":"tedi-alert-8ca3e7b9","tedi-alert__content":"tedi-alert__content-d480ed20","tedi-alert__icon":"tedi-alert__icon-f9ab1feb","tedi-alert--info":"tedi-alert--info-bcd40044","tedi-alert--success":"tedi-alert--success-e6d21f49","tedi-alert--warning":"tedi-alert--warning-88456526","tedi-alert--danger":"tedi-alert--danger-b9a2aa60","tedi-alert--global":"tedi-alert--global-14ff86d0","tedi-alert--no-side-borders":"tedi-alert--no-side-borders-a15a1df0"},Ry=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>(t(!0),()=>{t(!1)}),[]),e},Oy=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{children:n,role:r="alert",title:o,className:i,type:a="info",icon:s,onClose:l,isGlobal:c=!1,noSideBorders:u=!1,titleElement:p="h3",...f}=t(e),g=Xi(Py["tedi-alert"],Py[`tedi-alert--${a}`],{[Py["tedi-alert--global"]]:c,[Py["tedi-alert--no-side-borders"]]:u},i),h=Ry(),m="alert"===r?"assertive":"status"===r?"polite":"off",v=d.useId();return h?(0,R.jsx)("div",{role:r,"data-name":"alert","aria-label":`${a} alert`,"aria-live":m,"aria-labelledby":o?v:void 0,...f,className:g,children:(0,R.jsxs)(Nc,{size:.25,children:[(0,R.jsxs)(oh,{gutterX:2,alignItems:o?"center":"start",children:[(0,R.jsxs)(ih,{grow:1,className:Py["tedi-alert__content"],children:[s&&(e=>{const t={size:18},n="string"==typeof e?{...t,name:e}:{...t,...e};return(0,R.jsx)(wy,{...n,className:Py["tedi-alert__icon"]})})(s),(0,R.jsx)("div",{className:"tedi-alert__content-wrapper",children:o?(0,R.jsx)(Ty,{element:p,id:v,modifiers:["h5"],children:o}):n})]}),l&&(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(_y,{onClick:l})})]}),o&&n&&(0,R.jsx)("div",{className:"tedi-alert__content-wrapper",children:n})]})}):null},Iy="card__notification-content-4c89a40e",Ay="card__notification-b07a1cfd",My=e=>{const{children:t,padding:n,className:r,...o}=e,i=Xi(Ay,r);return(0,R.jsx)(vh,{"data-name":"card-notification",padding:n,className:Iy,children:(0,R.jsx)(Oy,{className:i,...o,children:t})})},Dy={"tedi-separator":"tedi-separator-08861c00","tedi-separator--vertical":"tedi-separator--vertical-fee3a031","tedi-separator--secondary":"tedi-separator--secondary-bb0cc0a1","tedi-separator--accent":"tedi-separator--accent-17878389","tedi-separator--block":"tedi-separator--block-48f7fe7e","tedi-separator--inline":"tedi-separator--inline-9021c8fe","tedi-separator--dotted":"tedi-separator--dotted-e3766e9c","tedi-separator--dotted-small":"tedi-separator--dotted-small-71e3be2e","tedi-separator--is-stretched":"tedi-separator--is-stretched-dfd66f31","tedi-separator--horizontal":"tedi-separator--horizontal-47a3986e","tedi-separator--top-0":"tedi-separator--top-0-677363d3","tedi-separator--bottom-0":"tedi-separator--bottom-0-e8608c44","tedi-separator--spacing-0":"tedi-separator--spacing-0-d3de83fa","tedi-separator--dot-only":"tedi-separator--dot-only-3babc1e5","tedi-separator--top-0-25":"tedi-separator--top-0-25-e87283bc","tedi-separator--bottom-0-25":"tedi-separator--bottom-0-25-c79e8c15","tedi-separator--spacing-0-25":"tedi-separator--spacing-0-25-6773860d","tedi-separator--top-0-5":"tedi-separator--top-0-5-e324a36c","tedi-separator--bottom-0-5":"tedi-separator--bottom-0-5-33887212","tedi-separator--spacing-0-5":"tedi-separator--spacing-0-5-36726d06","tedi-separator--top-0-75":"tedi-separator--top-0-75-e74f255c","tedi-separator--bottom-0-75":"tedi-separator--bottom-0-75-48b41611","tedi-separator--spacing-0-75":"tedi-separator--spacing-0-75-9bb50a77","tedi-separator--top-1":"tedi-separator--top-1-655231b6","tedi-separator--bottom-1":"tedi-separator--bottom-1-7e9cb062","tedi-separator--spacing-1":"tedi-separator--spacing-1-a40c2177","tedi-separator--top-1-25":"tedi-separator--top-1-25-b2261ac9","tedi-separator--bottom-1-25":"tedi-separator--bottom-1-25-0f204938","tedi-separator--spacing-1-25":"tedi-separator--spacing-1-25-d53a5705","tedi-separator--top-1-5":"tedi-separator--top-1-5-a2896e5b","tedi-separator--bottom-1-5":"tedi-separator--bottom-1-5-521ea969","tedi-separator--spacing-1-5":"tedi-separator--spacing-1-5-eec3fd3a","tedi-separator--top-1-75":"tedi-separator--top-1-75-376bb3f5","tedi-separator--bottom-1-75":"tedi-separator--bottom-1-75-601de207","tedi-separator--spacing-1-75":"tedi-separator--spacing-1-75-2738dc67","tedi-separator--top-2":"tedi-separator--top-2-d45b7bb4","tedi-separator--bottom-2":"tedi-separator--bottom-2-e0846020","tedi-separator--spacing-2":"tedi-separator--spacing-2-2b1d21c5","tedi-separator--top-2-5":"tedi-separator--top-2-5-9b0adc94","tedi-separator--bottom-2-5":"tedi-separator--bottom-2-5-3b00b4c4","tedi-separator--spacing-2-5":"tedi-separator--spacing-2-5-28334f74","tedi-separator--top-5":"tedi-separator--top-5-06286d83","tedi-separator--bottom-5":"tedi-separator--bottom-5-44801c7a","tedi-separator--spacing-5":"tedi-separator--spacing-5-86a9da4b","tedi-separator--thickness-1":"tedi-separator--thickness-1-d3383a73","tedi-separator--thickness-2":"tedi-separator--thickness-2-c8739ef3","tedi-separator--dot-only-extra-small":"tedi-separator--dot-only-extra-small-2eed2366","tedi-separator--dot-only-small":"tedi-separator--dot-only-small-fc9bf9ea","tedi-separator--dot-only-medium":"tedi-separator--dot-only-medium-d8c48848","tedi-separator--dot-only-large":"tedi-separator--dot-only-large-37aaffff","tedi-separator--primary":"tedi-separator--primary-9aa696f5"},Fy=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{className:n,element:r="div",isStretched:o,spacing:i,topSpacing:a,bottomSpacing:s,axis:l="horizontal",color:c="default",variant:u,thickness:d=1,height:p,dotSize:f,display:g="block",...h}=t(e),m=Xi(Dy["tedi-separator"],n,{[Dy[`tedi-separator--${c}`]]:c},{[Dy[`tedi-separator--${l}`]]:l},{[Dy[`tedi-separator--${u}`]]:u},{[Dy[`tedi-separator--${g}`]]:g},{[Dy[`tedi-separator--${u}-${f}`]]:u&&f},{[Dy[`tedi-separator--thickness-${d}`]]:d&&!u},{[Dy["tedi-separator--is-stretched"]]:o},{[Dy[`tedi-separator--spacing-${i}`.replace(".","-")]]:i},{[Dy[`tedi-separator--top-${a}`.replace(".","-")]]:!i&&a},{[Dy[`tedi-separator--bottom-${s}`.replace(".","-")]]:!i&&s});return(0,R.jsx)(r,{"data-name":"separator",...h,style:(()=>{const e={};return p&&(e["--vertical-separator-height"]=`${p}rem`),e})(),className:m})},Ny=e=>{var t;let{visible:n,toggleVisible:r,title:o,size:i,primaryText:a,secondaryText:s,tertiaryText:l,onPrimary:c,onSecondary:u,onTertiary:d,children:p,primaryDisabled:f=!1,tertiaryDisabled:g=!1,tertiaryIconLeft:h,primaryColor:m,cardProps:v,withoutCardHeader:b=!1,tertiaryColor:y,tertiaryVisualType:x,notification:w,isLoading:S}=e;const _=(0,G.useIntl)();return(0,R.jsx)(yy,{open:n,onToggle:r,children:(0,R.jsxs)(Cy,{"aria-labelledby":"label",hideCloseButton:!0,size:null!=i?i:6,cardProps:v,children:[!b&&(0,R.jsx)(eh,{background:"white",children:(0,R.jsx)(Qg,{element:"h2",modifiers:"h3",color:"default",children:_.formatMessage({id:o})})}),w&&(0,R.jsx)(My,{title:w.title,type:w.type,children:null!==(t=null==w?void 0:w.children)&&void 0!==t?t:""}),(0,R.jsx)(vh,{children:(0,R.jsxs)(R.Fragment,{children:[b&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Qg,{element:"h2",modifiers:"h3",color:"default",children:_.formatMessage({id:o})}),(0,R.jsx)("br",{})]}),S?(0,R.jsx)(Vg,{color:"primary",label:"Loading...",size:16}):(0,R.jsx)(R.Fragment,{children:p}),(0,R.jsx)(Fy,{spacing:1}),(0,R.jsxs)(oh,{justifyContent:"between",gutter:0,children:[(0,R.jsx)(ih,{xs:"auto",children:(0,R.jsx)(oh,{gutter:0,children:!!s&&!!u&&(0,R.jsx)(Yg,{visualType:"secondary",onClick:()=>u(),children:_.formatMessage({id:s})})})}),(0,R.jsx)(ih,{grow:1,children:(0,R.jsxs)(oh,{justifyContent:"end",gap:3,gutter:0,children:[!!l&&!!d&&(0,R.jsx)(Yg,{iconLeft:h,visualType:null!=x?x:"primary",color:null!=y?y:"default",onClick:()=>d(),disabled:g,children:_.formatMessage({id:l})}),!!a&&!!c&&(0,R.jsx)(Yg,{disabled:f,visualType:"primary",color:null!=m?m:"positive",onClick:()=>c(),children:_.formatMessage({id:a})})]})})]})]})})]})})},Ly=()=>{let e=!1;const[t,n]=(0,d.useState)("");return(0,d.useEffect)(()=>{let e;return a.e(705).then(a.bind(a,705)).then(e=>e.w).then(t=>{t.registerOnChange(n,"intent"),e=()=>t.unRegisterOnChange(n)}),()=>{e&&e()}},[]),typeof window<"u"&&typeof navigator<"u"&&(window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||"ontouchstart"in window)&&(e=!0)),e&&"keyboard"!==t},$y=10,Vy=d.createContext({open:!1,isMounted:!1,openWith:"hover",reference:()=>null,floating:()=>null,focusManager:{},arrowRef:{current:null},x:null,y:null,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{x:0,y:0,centerOffset:0},placement:"top",context:{}}),By=e=>{const{getLabel:t}=$g(),n=Ly(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=$y}=e,{order:p=["reference","content"],modal:f=!1,initialFocus:g=-1,...h}=e.focusManager??{},{visuallyHiddenDismiss:m=!!f&&t("close")}=h??{},[v,b]=d.useState(a),y=d.useRef(null),x=l&&typeof s<"u"?s:v,w=Ry(),{x:S,y:_,refs:j,strategy:E,context:C,middlewareData:k,placement:T}=ny({placement:o,open:x,onOpenChange:e=>{typeof s>"u"&&b(e),null==l||l(e)},middleware:[Iv(u),Mv(),Av({padding:8}),Dv({element:y,padding:4})],whileElementsMounted:xv}),{getReferenceProps:P,getFloatingProps:O}=sy([fb(C,{handleClose:vy(),enabled:"hover"===i}),Jb(C),ry(C,{enabled:"hover"===i}),hy(C,{role:c}),ey(C,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,R.jsx)(Vy.Provider,{value:{open:x,isMounted:w,openWith:i,reference:j.setReference,floating:j.setFloating,arrowRef:y,focusManager:{order:p,initialFocus:g,modal:f,visuallyHiddenDismiss:m,...h},x:S,y:_,strategy:E,getReferenceProps:P,getFloatingProps:O,arrow:{...k.arrow},context:C,placement:T},children:r})},zy={tooltip:"tooltip-413196ab","tooltip--none":"tooltip--none-01bd521a","tooltip--small":"tooltip--small-f23b2c64","tooltip--medium":"tooltip--medium-33ed6e9a","tooltip--large":"tooltip--large-84d7b683",tooltip__arrow:"tooltip__arrow-7d8214bc","tooltip__arrow--stroke":"tooltip__arrow--stroke-092e3c3e",tooltip__trigger:"tooltip__trigger-f6422045","tooltip__trigger--click":"tooltip__trigger--click-bb6703b1"},Gy=e=>{const{children:t}=e,{getLabel:n}=$g(),{getReferenceProps:r,reference:o,openWith:i}=d.useContext(Vy),a=Fv([o,t.ref]);return d.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===Gg?n("tooltip.icon-trigger"):void 0,...t.props,className:Xi(zy.tooltip__trigger,{[zy["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},Uy=e=>{const{children:t,maxWidth:n="medium",cardProps:r,className:o}=e,{open:i,x:a,y:s,strategy:l,focusManager:c,floating:u,arrowRef:p,getFloatingProps:f,placement:g,context:h}=d.useContext(Vy),[m,v]=Gc(null==r?void 0:r.border),b=()=>m&&v?`var(--color-${v})`:"none",y="none"!==b();return(0,R.jsx)(Fb,{"data-name":"tooltip",children:(()=>{const e=(0,R.jsx)(Ub,{...c,context:h,children:(0,R.jsxs)("div",{...f({ref:u,style:{position:l,left:a??0,top:s??0},className:Xi(zy.tooltip,o,{[zy[`tooltip--${n}`]]:n})}),"data-placement":g,children:[(0,R.jsx)(ob,{ref:e=>p.current=e,context:h,fill:null!=r&&r.background?`var(--color-${null==r?void 0:r.background})`:"var(--color-bg-default)",stroke:b(),strokeWidth:y?4:0,className:Xi(zy.tooltip__arrow,{[zy["tooltip__arrow--stroke"]]:y}),height:7,width:14}),(0,R.jsx)(Yc,{padding:.5,borderless:!0,...r,children:(0,R.jsx)(vh,{children:t})})]})});return i?e:null})()})};function Hy(e,t){return"function"==typeof e?e(t):e}function Wy(e,t){return n=>{t.setState(t=>({...t,[e]:Hy(n,t[e])}))}}function qy(e){return e instanceof Function}function Yy(e,t,n){let r,o=[];return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i);if(s.length===o.length&&!s.some((e,t)=>o[t]!==e))return r;let l;if(o=s,n.key&&n.debug&&(l=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Ky(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Jy="debugHeaders";function Xy(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Zy={createTable:e=>{e.getHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[],c=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)));return Qy(t,[...s,...c,...l],e)},Ky(e.options,Jy)),e.getCenterHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),Qy(t,n,e,"center")),Ky(e.options,Jy)),e.getLeftHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Qy(t,i,e,"left")},Ky(e.options,Jy)),e.getRightHeaderGroups=Yy(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Qy(t,i,e,"right")},Ky(e.options,Jy)),e.getFooterGroups=Yy(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getLeftFooterGroups=Yy(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getCenterFooterGroups=Yy(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getRightFooterGroups=Yy(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Ky(e.options,Jy)),e.getFlatHeaders=Yy(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getLeftFlatHeaders=Yy(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getCenterFlatHeaders=Yy(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getRightFlatHeaders=Yy(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Ky(e.options,Jy)),e.getCenterLeafHeaders=Yy(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getLeftLeafHeaders=Yy(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getRightLeafHeaders=Yy(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Ky(e.options,Jy)),e.getLeafHeaders=Yy(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Ky(e.options,Jy))}};function Qy(e,t,n,r){var o,i;let a=0;const s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const a=[...i].reverse()[0];let s,l=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,l=!0),a&&(null==a?void 0:a.column)===s)a.subHeaders.push(e);else{const o=Xy(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Xy(n,e,{depth:a,index:t}));c(u,a-1),l.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}const ex=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Yy(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Yy(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Ky(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Ky(e.options,"debugRows")),_getAllCellsByColumnId:Yy(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Ky(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},tx={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nx=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())||!o.includes(i))};nx.autoRemove=e=>px(e);const rx=(e,t,n)=>{var r;return!(null==(r=e.getValue(t))||null==(r=r.toString())||!r.includes(n))};rx.autoRemove=e=>px(e);const ox=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};ox.autoRemove=e=>px(e);const ix=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};ix.autoRemove=e=>px(e);const ax=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});ax.autoRemove=e=>px(e)||!(null!=e&&e.length);const sx=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});sx.autoRemove=e=>px(e)||!(null!=e&&e.length);const lx=(e,t,n)=>e.getValue(t)===n;lx.autoRemove=e=>px(e);const cx=(e,t,n)=>e.getValue(t)==n;cx.autoRemove=e=>px(e);const ux=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};ux.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},ux.autoRemove=e=>px(e)||px(e[0])&&px(e[1]);const dx={includesString:nx,includesStringSensitive:rx,equalsString:ox,arrIncludes:ix,arrIncludesAll:ax,arrIncludesSome:sx,equals:lx,weakEquals:cx,inNumberRange:ux};function px(e){return null==e||""===e}const fx={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Wy("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?dx.includesString:"number"==typeof r?dx.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?dx.equals:Array.isArray(r)?dx.arrIncludes:dx.weakEquals},e.getFilterFn=()=>{var n,r;return qy(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:dx[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=Hy(n,o?o.value:void 0);var a;if(gx(r,i,e))return null!=(a=null==t?void 0:t.filter(t=>t.id!==e.id))?a:[];const s={id:e.id,value:i};var l;return o?null!=(l=null==t?void 0:t.map(t=>t.id===e.id?s:t))?l:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Hy(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);if(t){if(gx(t.getFilterFn(),e.value,t))return!1}return!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function gx(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||typeof t>"u"||"string"==typeof t&&!t}const hx={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},mx={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Wy("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?hx.sum:"[object Date]"===Object.prototype.toString.call(r)?hx.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return qy(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:hx[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}};const vx={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Wy("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Yy(e=>[jx(t,e)],t=>t.findIndex(t=>t.id===e.id),Ky(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=jx(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=jx(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Yy(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));return"remove"===n?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}(o,t,n)},Ky(e.options,"debugTable"))}},bx={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Wy("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},Ky(t.options,"debugRows")),e.getLeftVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),Ky(t.options,"debugRows")),e.getRightVisibleCells=Yy(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),Ky(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?!(null==(n=r[t])||!n.length):!!(null!=(o=r.left)&&o.length||null!=(i=r.right)&&i.length)},e.getLeftLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Ky(e.options,"debugColumns")),e.getRightLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Ky(e.options,"debugColumns")),e.getCenterLeafColumns=Yy(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},Ky(e.options,"debugColumns"))}};const yx={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},xx={getDefaultColumnDef:()=>yx,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Wy("columnSizing",e),onColumnSizingInfoChange:Wy("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:yx.minSize,null!=(r=i??e.columnDef.size)?r:yx.size),null!=(o=e.columnDef.maxSize)?o:yx.maxSize)},e.getStart=Yy(e=>[e,jx(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Ky(t.options,"debugColumns")),e.getAfter=Yy(e=>[e,jx(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Ky(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o||(null==i.persist||i.persist(),Sx(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=Sx(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),p=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=function(e){return e||(typeof document<"u"?document:null)}(n),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==f||f.removeEventListener("mousemove",g.moveHandler),null==f||f.removeEventListener("mouseup",g.upHandler),p(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==f||f.removeEventListener("touchmove",h.moveHandler),null==f||f.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof wx)return wx;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return wx=e,wx}()&&{passive:!1};Sx(i)?(null==f||f.addEventListener("touchmove",h.moveHandler,m),null==f||f.addEventListener("touchend",h.upHandler,m)):(null==f||f.addEventListener("mousemove",g.moveHandler,m),null==f||f.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let wx=null;function Sx(e){return"touchstart"===e.type}const _x={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Wy("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Yy(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Ky(t.options,"debugRows")),e.getVisibleCells=Yy(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Ky(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Yy(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Ky(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function jx(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Ex={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Cx={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Wy("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>dx.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return qy(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:dx[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},kx={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Wy("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||null!=r&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Tx={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Wy("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>Hy(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=Hy(t,n.pageIndex);const o=typeof e.options.pageCount>"u"||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,Hy(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=Hy(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Yy(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Ky(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Px={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Wy("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,a,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=r??o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?!(null==(n=r[t])||!n.length):!!(null!=(o=r.top)&&o.length||null!=(i=r.bottom)&&i.length)},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(n??[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ky(e.options,"debugRows")),e.getBottomRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ky(e.options,"debugRows")),e.getCenterRows=Yy(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},Ky(e.options,"debugRows"))}},Rx={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Wy("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{Ox(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getFilteredSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getGroupedSelectedRowModel=Yy(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Ix(e,n):{rows:[],flatRows:[],rowsById:{}},Ky(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!(!t.length||!Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Ox(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ax(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Mx(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Mx(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Ox=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>Ox(e,t.id,n,r,o))};function Ix(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const a=Ax(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Ax(e,t){var n;return null!=(n=t[e.id])&&n}function Mx(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(Ax(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Mx(e,t);"all"===n?i=!0:("some"===n&&(i=!0),o=!1)}}),o?"all":!!i&&"some"}const Dx=/([0-9]+)/gm;function Fx(e,t){return e===t?0:e>t?1:-1}function Nx(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Lx(e,t){const n=e.split(Dx).filter(Boolean),r=t.split(Dx).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const $x={alphanumeric:(e,t,n)=>Lx(Nx(e.getValue(n)).toLowerCase(),Nx(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Lx(Nx(e.getValue(n)),Nx(t.getValue(n))),text:(e,t,n)=>Fx(Nx(e.getValue(n)).toLowerCase(),Nx(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Fx(Nx(e.getValue(n)),Nx(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>Fx(e.getValue(n),t.getValue(n))},Vx={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Wy("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return $x.datetime;if("string"==typeof n&&(r=!0,n.split(Dx).length>1))return $x.alphanumeric}return r?$x.text:$x.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return qy(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:$x[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&null!==n;t.setSorting(a=>{const s=null==a?void 0:a.find(t=>t.id===e.id),l=null==a?void 0:a.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var p;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?s?"toggle":"add":null!=a&&a.length&&l!==a.length-1?"replace":s?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?a.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Bx=[Zy,_x,vx,bx,tx,fx,Ex,Cx,Vx,mx,kx,Tx,Px,Rx,xx];function zx(e){var t,n;const r=[...Bx,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let a={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});const s=[];let l=!1;const c={_features:r,options:{...i,...e},initialState:a,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Hy(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:Yy(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},Ky(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Yy(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},s=a.accessorKey;let l,c=null!=(o=null!=(i=a.id)?i:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?l=a.accessorFn:s&&(l=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:l,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:Yy(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Ky(e.options,"debugColumns")),getLeafColumns:Yy(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},Ky(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),a=e;return i.columns=a.columns?t(a.columns,i,r+1):[],i})};return t(e)},Ky(e,"debugColumns")),getAllFlatColumns:Yy(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Ky(e,"debugColumns")),_getAllFlatColumnsById:Yy(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Ky(e,"debugColumns")),getAllLeafColumns:Yy(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>{let n=e.flatMap(e=>e.getLeafColumns());return t(n)},Ky(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function Gx(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Ux(e,t,n){return n.options.filterFromLeafRows?function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){var c;let d=e[u];const p=ex(n,d.id,d.original,d.index,d.depth,0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(c=d.subRows)&&c.length&&r<a){if(p.subRows=s(d.subRows,r+1),d=p,t(d)&&!p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}if(t(d)||p.subRows.length){l.push(d),i[d.id]=d,o.push(d);continue}}else d=p,t(d)&&(l.push(d),i[d.id]=d,o.push(d))}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n):function(e,t,n){var r;const o=[],i={},a=null!=(r=n.options.maxLeafRowFilterDepth)?r:100,s=function(e,r){void 0===r&&(r=0);const l=[];for(let u=0;u<e.length;u++){let d=e[u];if(t(d)){var c;if(null!=(c=d.subRows)&&c.length&&r<a){const e=ex(n,d.id,d.original,d.index,d.depth,0,d.parentId);e.subRows=s(d.subRows,r+1),d=e}l.push(d),o.push(d),i[d.id]=d}}return l};return{rows:s(e),flatRows:o,rowsById:i}}(e,t,n)}function Hx(e,t){return e?function(e){return function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(e)||"function"==typeof e||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(e)}(e)?d.createElement(e,t):e:null}function Wx(e){return Wx="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},Wx(e)}function qx(e){var t=function(e,t){if("object"!=Wx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wx(t)?t:t+""}function Yx(e,t,n){return(t=qx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kx(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 Jx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kx(Object(n),!0).forEach(function(t){Yx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xx(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 Zx(e,t){if(e){if("string"==typeof e)return Xx(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)?Xx(e,t):void 0}}function Qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!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)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Zx(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 ew(e,t){if(null==e)return{};var n,r,o=pu(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}var tw=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nw(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=ew(e,tw),m=Qx((0,d.useState)(void 0!==s?s:n),2),v=m[0],b=m[1],y=Qx((0,d.useState)(void 0!==l?l:o),2),x=y[0],w=y[1],S=Qx((0,d.useState)(void 0!==g?g:a),2),_=S[0],j=S[1],E=(0,d.useCallback)(function(e,t){"function"==typeof c&&c(e,t),j(e)},[c]),C=(0,d.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)},[u]),k=(0,d.useCallback)(function(){"function"==typeof f&&f(),w(!0)},[f]),T=(0,d.useCallback)(function(){"function"==typeof p&&p(),w(!1)},[p]),P=void 0!==s?s:v,R=void 0!==l?l:x,O=void 0!==g?g:_;return Jx(Jx({},h),{},{inputValue:P,menuIsOpen:R,onChange:E,onInputChange:C,onMenuClose:T,onMenuOpen:k,value:O})}function rw(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,qx(r.key),r)}}function ow(e,t){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ow(e,t)}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iw(e)}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aw=function(){return!!e})()}function sw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lw(e){var t=aw();return function(){var n,r=iw(e);if(t){var o=iw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Wx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sw(e)}(this,n)}}function cw(e){return function(e){if(Array.isArray(e))return Xx(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zx(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.")}()}var uw=function(e,t){var n=arguments;if(null==t||!jg.call(t,"css"))return d.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Tg,o[1]=function(e,t){var n={};for(var r in t)jg.call(t,r)&&(n[r]=t[r]);return n[Eg]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return d.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(uw||(uw={}));var dw=Sg(function(e,t){var n=mg([e.styles],void 0,d.useContext(_g)),r=d.useRef();return yg(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),yg(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&og(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function pw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mg(t)}function fw(){var e=pw.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_"}}}var gw=d.useLayoutEffect,hw=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],mw=function(){};function vw(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function bw(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];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(vw(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var yw=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===Wx(e)&&null!==e?[e]:[]},xw=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Jx({},ew(e,hw))},ww=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(n??{},i(t,e),a)}};function Sw(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function _w(e){return Sw(e)?window.pageYOffset:e.scrollTop}function jw(e,t){Sw(e)?window.scrollTo(0,t):e.scrollTop=t}function Ew(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mw,o=_w(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);jw(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function Cw(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?jw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&jw(e,Math.max(t.offsetTop-o,0))}function kw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}var Tw=!1,Pw={get passive(){return Tw=!0}},Rw=typeof window<"u"?window:{};Rw.addEventListener&&Rw.removeEventListener&&(Rw.addEventListener("p",mw,Pw),Rw.removeEventListener("p",mw,!1));var Ow=Tw;function Iw(e){return null!=e}function Aw(e,t,n){return e?t:n}var Mw=["children","innerProps"],Dw=["children","innerProps"];function Fw(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,g=d.top,h=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:function(e){return Sw(e)?window.innerHeight:e.clientHeight}(l),v=_w(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),x=h-y,w=m-g,S=x+v,_=u-v-g,j=p-m+v+b,E=v+g-y,C=160;switch(o){case"auto":case"bottom":if(w>=f)return{placement:"bottom",maxHeight:t};if(_>=f&&!a)return i&&Ew(l,j,C),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return i&&Ew(l,j,C),{placement:"bottom",maxHeight:a?w-b:_-b};if("auto"===o||a){var k=t,T=a?x:S;return T>=r&&(k=Math.min(T-b-s,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return i&&jw(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(x>=f)return{placement:"top",maxHeight:t};if(S>=f&&!a)return i&&Ew(l,E,C),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var P=t;return(!a&&S>=r||a&&x>=r)&&(P=a?x-y:S-y),i&&Ew(l,E,C),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Nw,Lw=function(e){return"auto"===e?"bottom":e},$w=(0,d.createContext)(null),Vw=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,d.useContext)($w)||{}).setPortalPlacement,c=(0,d.useRef)(null),u=Qx((0,d.useState)(r),2),p=u[0],f=u[1],g=Qx((0,d.useState)(null),2),h=g[0],m=g[1],v=s.spacing.controlHeight;return gw(function(){var e=c.current;if(e){var t="fixed"===i,s=Fw({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),m(s.placement),null==l||l(s.placement)}},[r,o,i,a,n,l,v]),t({ref:c,placerProps:Jx(Jx({},e),{},{placement:h||Lw(o),maxHeight:p})})},Bw=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return uw("div",du({},ww(e,"menu",{menu:!0}),{ref:n},r),t)},zw=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Jx({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Gw=zw,Uw=zw,Hw=["size"],Ww=["innerProps","isRtl","size"];var qw={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Yw=function(e){var t=e.size,n=ew(e,Hw);return uw("svg",du({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:qw},n))},Kw=function(e){return uw(Yw,du({size:20},e),uw("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Jw=function(e){return uw(Yw,du({size:20},e),uw("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Xw=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Jx({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Zw=Xw,Qw=Xw,eS=fw(Nw||(Nw=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),tS=function(e){var t=e.delay,n=e.offset;return uw("span",{css:pw({animation:"".concat(eS," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},nS=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return uw("div",du({ref:o},ww(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},rS=["data"],oS=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return uw("div",du({},ww(e,"group",{group:!0}),s),uw(i,du({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),uw("div",null,t))},iS=["innerRef","isDisabled","isHidden","inputClassName"],aS={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},sS={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jx({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},aS)},lS=function(e){return Jx({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},aS)},cS=function(e){var t=e.cx,n=e.value,r=xw(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=ew(r,iS);return uw("div",du({},ww(e,"input",{"input-container":!0}),{"data-value":n||""}),uw("input",du({className:t({input:!0},s),ref:o,style:lS(a),disabled:i},l)))},uS=function(e){var t=e.children,n=e.innerProps;return uw("div",n,t)};var dS=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return uw(l,{data:r,innerProps:Jx(Jx({},ww(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},uw(c,{data:r,innerProps:Jx({},ww(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),uw(u,{data:r,innerProps:Jx(Jx({},ww(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},pS=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return uw("div",du({},ww(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},fS=function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"placeholder",{placeholder:!0}),n),t)},gS=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return uw("div",du({},ww(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},hS={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||uw(Kw,null))},Control:nS,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||uw(Jw,null))},DownChevron:Jw,CrossIcon:Kw,Group:oS,GroupHeading:function(e){var t=xw(e);t.data;var n=ew(t,rS);return uw("div",du({},ww(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return uw("div",du({},ww(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return uw("span",du({},t,ww(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:cS,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=ew(e,Ww);return uw("div",du({},ww(Jx(Jx({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),uw(tS,{delay:0,offset:n}),uw(tS,{delay:160,offset:!0}),uw(tS,{delay:320,offset:!n}))},Menu:Bw,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return uw("div",du({},ww(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,d.useRef)(null),l=(0,d.useRef)(null),c=Qx((0,d.useState)(Lw(i)),2),u=c[0],p=c[1],f=(0,d.useMemo)(function(){return{setPortalPlacement:p}},[]),g=Qx((0,d.useState)(null),2),h=g[0],m=g[1],v=(0,d.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;(n!==(null==h?void 0:h.offset)||e.left!==(null==h?void 0:h.rect.left)||e.width!==(null==h?void 0:h.rect.width))&&m({offset:n,rect:e})}},[r,a,u,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);gw(function(){v()},[v]);var b=(0,d.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=xv(r,s.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);gw(function(){b()},[b]);var y=(0,d.useCallback)(function(e){s.current=e,b()},[b]);if(!t&&"fixed"!==a||!h)return null;var x=uw("div",du({ref:y},ww(Jx(Jx({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return uw($w.Provider,{value:f},t?(0,fh.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=ew(e,Dw);return uw("div",du({},ww(Jx(Jx({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=ew(e,Mw);return uw("div",du({},ww(Jx(Jx({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:dS,MultiValueContainer:uS,MultiValueLabel:uS,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return uw("div",du({role:"button"},n),t||uw(Kw,{size:14}))},Option:pS,Placeholder:fS,SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return uw("div",du({},ww(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:gS,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return uw("div",du({},ww(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},mS=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vS(e,t){return!!(e===t||mS(e)&&mS(t))}function bS(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!vS(e[n],t[n]))return!1;return!0}for(var yS={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},xS=function(e){return uw("span",du({css:yS},e))},wS={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},SS=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,g=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,v=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,S=s["aria-label"],_=s["aria-live"],j=(0,d.useMemo)(function(){return Jx(Jx({},wS),u||{})},[u]),E=(0,d.useMemo)(function(){var e="";if(t&&j.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,s=t.value,l=o||n||function(e){return Array.isArray(e)?null:e}(s),c=l?p(l):"",u=r||i||void 0,d=u?u.map(p):[],f=Jx({isDisabled:l&&h(l,a),label:c,labels:d},t);e=j.onChange(f)}return e},[t,j,h,a,p]),C=(0,d.useMemo)(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&j.onFocus){var s={focused:t,label:p(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=j.onFocus(s)}return e},[n,r,p,h,j,o,a,c]),k=(0,d.useMemo)(function(){var e="";if(v&&b.length&&!w&&j.onFilter){var t=y({count:o.length});e=j.onFilter({inputValue:f,resultsMessage:t})}return e},[o,f,v,j,b,y,w]),T="initial-input-focus"===(null==t?void 0:t.action),P=(0,d.useMemo)(function(){var e="";if(j.guidance){var t=r?"value":v?"menu":"input";e=j.guidance({"aria-label":S,context:t,isDisabled:n&&h(n,a),isMulti:g,isSearchable:m,tabSelectsValue:x,isInitialFocus:T})}return e},[S,n,r,g,h,m,v,j,a,x,T]),R=uw(d.Fragment,null,uw("span",{id:"aria-selection"},E),uw("span",{id:"aria-focused"},C),uw("span",{id:"aria-results"},k),uw("span",{id:"aria-guidance"},P));return uw(d.Fragment,null,uw(xS,{id:l},T&&R),uw(xS,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!T&&R))},_S=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jS=new RegExp("["+_S.map(function(e){return e.letters}).join("")+"]","g"),ES={},CS=0;CS<_S.length;CS++)for(var kS=_S[CS],TS=0;TS<kS.letters.length;TS++)ES[kS.letters[TS]]=kS.base;var PS=function(e){return e.replace(jS,function(e){return ES[e]})},RS=function(e,t){void 0===t&&(t=bS);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(PS),OS=function(e){return e.replace(/^\s+|\s+$/g,"")},IS=function(e){return"".concat(e.label," ").concat(e.value)},AS=["innerRef"];function MS(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=Qx(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=Qx(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(ew(e,AS),"onExited","in","enter","exit","appear");return uw("input",du({ref:t},n,{css:pw({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var DS=["boxSizing","height","overflow","paddingRight","position"],FS={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function NS(e){e.cancelable&&e.preventDefault()}function LS(e){e.stopPropagation()}function $S(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function VS(){return"ontouchstart"in window||navigator.maxTouchPoints}var BS=!!(typeof window<"u"&&window.document&&window.document.createElement),zS=0,GS={capture:!1,passive:!1};var US=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},HS={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function WS(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,d.useRef)(!1),s=(0,d.useRef)(!1),l=(0,d.useRef)(0),c=(0,d.useRef)(null),u=(0,d.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=c.current,g=t>0,h=d-p-u,m=!1;h>t&&a.current&&(r&&r(e),a.current=!1),g&&s.current&&(i&&i(e),s.current=!1),g&&t>h?(n&&!a.current&&n(e),f.scrollTop=d,m=!0,a.current=!0):!g&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),p=(0,d.useCallback)(function(e){u(e,e.deltaY)},[u]),f=(0,d.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),g=(0,d.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),h=(0,d.useCallback)(function(e){if(e){var t=!!Ow&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",g,t)}},[g,f,p]),m=(0,d.useCallback)(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",g,!1))},[g,f,p]);return(0,d.useEffect)(function(){if(t){var e=c.current;return h(e),function(){m(e)}}},[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,d.useRef)({}),i=(0,d.useRef)(null),a=(0,d.useCallback)(function(e){if(BS){var t=document.body,n=t&&t.style;if(r&&DS.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&zS<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(FS).forEach(function(e){var t=FS[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&VS()&&(t.addEventListener("touchmove",NS,GS),e&&(e.addEventListener("touchstart",$S,GS),e.addEventListener("touchmove",LS,GS))),zS+=1}},[r]),s=(0,d.useCallback)(function(e){if(BS){var t=document.body,n=t&&t.style;zS=Math.max(zS-1,0),r&&zS<1&&DS.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&VS()&&(t.removeEventListener("touchmove",NS,GS),e&&(e.removeEventListener("touchstart",$S,GS),e.removeEventListener("touchmove",LS,GS)))}},[r]);return(0,d.useEffect)(function(){if(t){var e=i.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){i.current=e}}({isEnabled:n});return uw(d.Fragment,null,n&&uw("div",{onClick:US,css:HS}),t(function(e){o(e),i(e)}))}var qS={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},YS=function(e){var t=e.name,n=e.onFocus;return uw("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:qS,value:"",onChange:function(){}})};function KS(e){var t;return typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function JS(){return KS(/^Mac/i)}function XS(){return KS(/^iPhone/i)||KS(/^iPad/i)||JS()&&navigator.maxTouchPoints>1}var ZS={clearIndicator:Qw,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Jx({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Zw,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Jx({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Jx({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Jx(Jx({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},sS),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Jx({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Uw,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Jx((Yx(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Yx(n,"position","absolute"),Yx(n,"width","100%"),Yx(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Jx({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Jx({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Jx({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Jx({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Gw,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Jx({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Jx({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Jx({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Jx({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},QS={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},e_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:kw(),captureMenuScroll:!kw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Jx({ignoreCase:!0,ignoreAccents:!0,stringify:IS,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,s=r.trim,l=r.matchFrom,c=s?OS(n):n,u=s?OS(a(t)):a(t);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=RS(c),u=PS(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function t_(e,t,n,r){return{type:"option",data:t,isDisabled:c_(e,t,n),isSelected:u_(e,t,n),label:s_(e,t),value:l_(e,t),index:r}}function n_(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return t_(e,n,t,r)}).filter(function(t){return i_(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=t_(e,n,t,r);return i_(e,i)?i:void 0}).filter(Iw)}function r_(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,cw(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function o_(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,cw(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function i_(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!p_(e)||!i)&&d_(e,{label:a,value:s,data:o},r)}var a_=function(e,t){var n,r=null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id;return r||null},s_=function(e,t){return e.getOptionLabel(t)},l_=function(e,t){return e.getOptionValue(t)};function c_(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function u_(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=l_(e,t);return n.some(function(t){return l_(e,t)===r})}function d_(e,t,n){return!e.filterOption||e.filterOption(t,n)}var p_=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},f_=1,g_=function(e){!function(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&&ow(e,t)}(n,e);var t=lw(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(cw(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=Aw(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Aw(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Aw(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return a_(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return o_(n_(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bw.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return s_(r.props,e)},r.getOptionValue=function(e){return l_(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=ZS[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return function(e){return Jx(Jx({},hS),e.components)}(r.props)},r.buildCategorizedOptions=function(){return n_(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return r_(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Jx({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Sw(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return p_(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,g=f.focusedOption,h=f.focusedValue,m=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing||e.shiftKey||!c||!d||!g||p&&r.isOptionSelected(g,m))return;r.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g||r.isComposing)return;r.selectOption(g);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!g)return;r.selectOption(g);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++f_),r.state.selectValue=yw(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=a_(o,i[a])}return r}return function(e,t,n){t&&rw(e.prototype,t),n&&rw(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Cw(this.menuListRef,this.focusedOptionRef),(JS()||XS())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!o&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Cw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(QS):Jx(Jx({},QS),this.props.theme):QS}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return c_(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return u_(this.props,e,t)}},{key:"filterOption",value:function(e,t){return d_(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,p=u.inputIsHidden,f=u.ariaSelection,g=this.commonProps,h=r||this.getElementId("input"),m=Jx(Jx(Jx({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?d.createElement(c,du({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):d.createElement(MS,du({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:mw,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,g=c.inputValue,h=c.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!u)return g?null:d.createElement(s,du({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return v.map(function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return d.createElement(n,du({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(g)return null;var x=v[0];return d.createElement(a,du({},l,{data:x,isDisabled:p}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,du({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return d.createElement(e,du({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return d.createElement(n,du({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,du({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state.focusedOption,f=this.props,g=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,w=f.menuPlacement,S=f.menuPosition,_=f.menuPortalTarget,j=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,C=f.noOptionsMessage,k=f.onMenuScrollToTop,T=f.onMenuScrollToBottom;if(!x)return null;var P,R=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=p===o,g=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return d.createElement(c,du({},u,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return d.createElement(n,du({},u,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return R(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return R(t,"".concat(t.index))});else if(m){var O=v({inputValue:h});if(null===O)return null;P=d.createElement(s,u,O)}else{var I=C({inputValue:h});if(null===I)return null;P=d.createElement(l,u,I)}var A={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:S,menuShouldScrollIntoView:E},M=d.createElement(Vw,du({},u,A),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return d.createElement(o,du({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),d.createElement(WS,{captureEnabled:g,onTopArrive:k,onBottomArrive:T,lockEnabled:j},function(t){return d.createElement(i,du({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:p}),P)}))});return _||"fixed"===S?d.createElement(a,du({},u,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:S}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return d.createElement(YS,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return d.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return d.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):d.createElement("input",{name:i,type:"hidden",value:""});return d.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return d.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return d.createElement(SS,du({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return d.createElement(r,du({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),d.createElement(t,du({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),d.createElement(o,du({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),d.createElement(n,du({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,g=yw(u),h={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var m=d?function(e,t){return r_(n_(e,t))}(e,g):[],v=d?o_(n_(e,g),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:g,focusedOption:y,focusedOptionId:a_(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,S=a&&s;return a&&!S&&(w={value:Aw(f,g,g[0]||null),options:g,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),Jx(Jx(Jx({},h),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:S})}}]),n}(d.Component);g_.defaultProps=e_;var h_=(0,d.forwardRef)(function(e,t){var n=nw(e);return d.createElement(g_,du({ref:t},n))}),m_=h_,v_=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];var b_=(0,d.forwardRef)(function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var a=e.isLoading,s=void 0!==a&&a,l=e.onInputChange,c=e.filterOption,u=void 0===c?null:c,p=ew(e,v_),f=p.inputValue,g=(0,d.useRef)(void 0),h=(0,d.useRef)(!1),m=Qx((0,d.useState)(Array.isArray(n)?n:void 0),2),v=m[0],b=m[1],y=Qx((0,d.useState)(typeof f<"u"?f:""),2),x=y[0],w=y[1],S=Qx((0,d.useState)(!0===n),2),_=S[0],j=S[1],E=Qx((0,d.useState)(void 0),2),C=E[0],k=E[1],T=Qx((0,d.useState)([]),2),P=T[0],R=T[1],O=Qx((0,d.useState)(!1),2),I=O[0],A=O[1],M=Qx((0,d.useState)({}),2),D=M[0],F=M[1],N=Qx((0,d.useState)(void 0),2),L=N[0],$=N[1],V=Qx((0,d.useState)(void 0),2),B=V[0],z=V[1];o!==B&&(F({}),z(o)),n!==L&&(b(Array.isArray(n)?n:void 0),$(n)),(0,d.useEffect)(function(){return h.current=!0,function(){h.current=!1}},[]);var G=(0,d.useCallback)(function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[i]);(0,d.useEffect)(function(){!0===n&&G(x,function(e){h.current&&(b(e||[]),j(!!g.current))})},[]);var U=(0,d.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n)return g.current=void 0,w(""),k(""),R([]),j(!1),void A(!1);if(o&&D[n])w(n),k(n),R(D[n]),j(!1),A(!1);else{var r=g.current={};w(n),j(!0),A(!C),G(n,function(e){h&&r===g.current&&(g.current=void 0,j(!1),k(n),R(e||[]),A(!1),F(e?Jx(Jx({},D),{},Yx({},n,e)):D))})}},[o,G,C,D,l]),H=I?[]:x&&C?P:v||[];return Jx(Jx({},p),{},{options:H,isLoading:_||s,onInputChange:U,filterOption:u})}(e),r=nw(n);return d.createElement(g_,du({ref:t},r))}),y_=b_;const x_={"tedi-feedback-text":"tedi-feedback-text-832e790c","tedi-feedback-text--valid":"tedi-feedback-text--valid-406b61a2","tedi-feedback-text--error":"tedi-feedback-text--error-06f6742d","tedi-feedback-text--left":"tedi-feedback-text--left-7591cb38","tedi-feedback-text--right":"tedi-feedback-text--right-df4a0ff5"},w_=e=>{const{text:t,id:n,className:r,type:o="hint",position:i="left",...a}=e,s="valid"===o||"error"===o?"alert":void 0,l="error"===o||"valid"===o?"assertive":"polite";return(0,R.jsx)("div",{"data-name":"feedback-text",...a,id:n,className:Xi(x_["tedi-feedback-text"],x_[`tedi-feedback-text--${o}`],x_[`tedi-feedback-text--${i}`],r),role:s,"aria-live":l,children:t})},S_={"tedi-btn":"tedi-btn-f8b478d7","tedi-btn--small":"tedi-btn--small-e94b9068","tedi-btn--icon-only":"tedi-btn--icon-only-ca6a5cf1","tedi-btn--large":"tedi-btn--large-7e783e1a","tedi-btn--neutral":"tedi-btn--neutral-c8726f60","tedi-btn--default":"tedi-btn--default-9fd10888","tedi-btn--danger":"tedi-btn--danger-9c01f2b8","tedi-btn__text":"tedi-btn__text-a9860fef","tedi-btn--primary":"tedi-btn--primary-8ae5fe2e","tedi-btn--is-active":"tedi-btn--is-active-a575ad1a","tedi-btn--is-hovered":"tedi-btn--is-hovered-5b87ccb5","tedi-btn--secondary":"tedi-btn--secondary-770ac807","tedi-btn--success":"tedi-btn--success-92db7606","tedi-btn--inverted":"tedi-btn--inverted-fd168601","tedi-btn--link":"tedi-btn--link-33d9c4c6","tedi-btn--text-color":"tedi-btn--text-color-f85da3c7","tedi-btn__icon--left":"tedi-btn__icon--left-63fdbc12","tedi-btn__icon--right":"tedi-btn__icon--right-67cbf204","tedi-btn--is-loading":"tedi-btn--is-loading-4ead0e89","tedi-btn--icon":"tedi-btn--icon-dbc3eb30","tedi-btn__icon":"tedi-btn__icon-cffac719","tedi-btn__inner":"tedi-btn__inner-ee6403e9","tedi-btn__icon-standalone--link":"tedi-btn__icon-standalone--link-d6b6714d","tedi-btn__spinner":"tedi-btn__spinner-abd3f027","tedi-btn--underline":"tedi-btn--underline-bf1600fb","tedi-btn--no-style":"tedi-btn--no-style-f6dfaa4d","tedi-btn--full-width":"tedi-btn--full-width-f1e5f1b3"},__=(0,d.forwardRef)(({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:g,renderWrapperElement:h,fullWidth:m,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=g?Xi(S_["tedi-btn--no-style"],{[S_["tedi-btn--full-width"]]:m},r):Xi(S_["tedi-btn"],S_[`tedi-btn--${o}`],S_[`tedi-btn--${i}`],{[S_[`tedi-btn--${a}`]]:a},{[S_["tedi-btn--underline"]]:u},{[S_["tedi-btn--is-hovered"]]:d},{[S_["tedi-btn--is-active"]]:p},{[S_["tedi-btn--is-loading"]]:f},{[S_["tedi-btn--icon-only"]]:s},{[S_["tedi-btn--icon"]]:w},{[S_["tedi-btn--full-width"]]:m},r),_=(e,t)=>{const n=Xi(S_["tedi-btn__icon"],S_[`tedi-btn__icon--${e}`],{[S_["tedi-btn__spinner"]]:f}),r={size:"large"===a?24:18,className:n,..."link"===o?{display:"inline"}:{}},i="string"==typeof t?{...r,name:t}:{...r,...t,className:Xi(r.className,null==t?void 0:t.className)};return f?(0,R.jsx)(Vg,{className:i.className,size:18}):(0,R.jsx)(wy,{...i})};return(0,R.jsx)(Bg,{visibility:"hide",children:(0,R.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],"aria-busy":f||void 0,onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:g?e:(()=>{const t=f?(0,R.jsx)(Vg,{position:w?void 0:"absolute",className:Xi(S_["tedi-btn__spinner"],S_["tedi-btn__spinner--left"]),size:18}):l?_("left",l):s?_("center",s):null;return(0,R.jsxs)("span",{className:S_["tedi-btn__inner"],children:[t,(0,R.jsx)("span",{className:S_["tedi-btn__text"],children:e}),!f&&c&&_("right",c)]})})()})})});__.displayName="ButtonContent";const j_=__,E_=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{children:r,as:o,type:i="button",formNoValidate:a="submit"===i||void 0,...s}=n(e);return(0,R.jsx)(j_,{"data-name":"button",...s,type:i,formNoValidate:a,ref:t,as:o||"button",children:r})});E_.displayName="Button";const C_=E_,k_="tedi-info-button-c2972ecd",T_=d.forwardRef(({isSmall:e,...t},n)=>(0,R.jsx)(C_,{className:Xi(k_),"data-name":"info-button",...t,type:"button",icon:{name:"info",size:e?16:18},visualType:"neutral",ref:n,children:t.children}));T_.displayName="InfoButton";const P_=e=>{const{children:t,classNames:n}=e,{open:r,x:o,y:i,strategy:a,focusManager:s,floating:l,arrowRef:c,getFloatingProps:u,placement:p,context:f,arrow:g,scrollLock:h}=(0,d.useContext)(D_);return(0,d.useEffect)(()=>{h&&(r?(document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>window.innerHeight&&(document.body.style.overflow="scroll")):(document.documentElement.style.overflow="",document.body.style.overflow=""))},[r,h]),r?(0,R.jsx)(Fb,{children:(0,R.jsx)(Ub,{modal:(null==s?void 0:s.modal)||!1,...s,context:f,children:(0,R.jsxs)("div",{...u({ref:l,style:{position:a,left:o,top:i},className:null==n?void 0:n.content}),"data-placement":p,"data-testid":"overlay-content",children:[(0,R.jsx)(ob,{ref:e=>c.current=e,context:f,className:null==n?void 0:n.arrow,height:null==g?void 0:g.height,width:null==g?void 0:g.width,"data-testid":"overlay-arrow"}),t]})})}):null},R_="tedi-overlay__trigger-9068fdfb",O_="tedi-overlay__trigger--text-a94924f7",I_="tedi-overlay__trigger--click-b84dbe23",A_=e=>{const{children:t,className:n}=e,{getLabel:r}=$g(),{getReferenceProps:o,reference:i,openWith:a}=(0,d.useContext)(D_),s=Fv([i,t.ref]);return(0,d.isValidElement)(t)?(0,d.cloneElement)(t,o({ref:s,tabIndex:0,label:t.type===wy?r("tooltip.icon-trigger"):void 0,...t.props})):(0,R.jsx)("div",{...o({ref:s,tabIndex:0,className:Xi(R_,O_,{[I_]:"click"===a},n)}),children:t})},M_=3,D_=(0,d.createContext)({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0}),F_=e=>{const t=Ly(),{children:n,placement:r="top",openWith:o=(t?"click":"hover"),defaultOpen:i=!1,open:a,onToggle:s,role:l="tooltip",arrowDimensions:c,offset:u=M_+((null==c?void 0:c.height)??0),focusManager:p,dismissible:f,scrollLock:g}=e,{order:h=["reference","content"],initialFocus:m=-1,...v}=p??{},[b,y]=(0,d.useState)(i),x=(0,d.useRef)(null),w=Ry(),S=(0,d.useMemo)(()=>s&&typeof a<"u"?a:b,[s,a,b]),_=(0,d.useCallback)(e=>{typeof a>"u"&&y(e),null==s||s(e)},[a,y,s]),{x:j,y:E,refs:C,strategy:k,context:T,middlewareData:P,placement:O}=ny({placement:r,open:S,onOpenChange:_,middleware:[Iv(u),Mv(),Av({padding:8}),Dv({element:x,padding:4})],whileElementsMounted:xv}),{getReferenceProps:I,getFloatingProps:A}=sy([fb(T,{enabled:"hover"===o,handleClose:vy()}),Jb(T,{toggle:f}),ry(T,{enabled:"hover"===o}),hy(T,{role:l}),ey(T,{enabled:f,outsidePressEvent:"click"===o?"mousedown":"pointerdown"})]);return(0,R.jsx)(D_.Provider,{value:{open:S,onOpenChange:_,isMounted:w,openWith:o,reference:C.setReference,floating:C.setFloating,arrowRef:x,focusManager:{order:h,initialFocus:m,...v},x:j,y:E,strategy:k,getReferenceProps:I,getFloatingProps:A,arrow:{width:null==c?void 0:c.width,height:null==c?void 0:c.height,...P.arrow},context:T,placement:O,scrollLock:g},children:n})};F_.Trigger=A_,F_.Content=P_;const N_={"tedi-tooltip":"tedi-tooltip-c3e4c246","tedi-tooltip--none":"tedi-tooltip--none-0c9e2f36","tedi-tooltip--small":"tedi-tooltip--small-0773ea3b","tedi-tooltip--medium":"tedi-tooltip--medium-f7620c16","tedi-tooltip--large":"tedi-tooltip--large-f3655082","tedi-tooltip__arrow":"tedi-tooltip__arrow-3f18a7f2"},L_=e=>{const{openWith:t="hover",...n}=e;return(0,R.jsx)(F_,{arrowDimensions:{width:14,height:7},openWith:t,...n})};L_.Trigger=e=>(0,R.jsx)(A_,{...e}),L_.Content=e=>{const{children:t,maxWidth:n="medium",className:r}=e;return(0,R.jsx)(P_,{classNames:{content:Xi(N_["tedi-tooltip"],{[N_[`tedi-tooltip--${n}`]]:n},r),arrow:N_["tedi-tooltip__arrow"]},children:t})};const $_="tedi-label-473ab627",V_="tedi-label--small-20e328dc",B_="tedi-label--bold-9d758835",z_="tedi-label__required-414e3f9d",G_=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{as:r="label",children:o,className:i,isBold:a,isSmall:s,required:l,tooltip:c,...u}=n(e),d=Xi($_,a&&B_,s&&V_,i);return(0,R.jsxs)(r,{ref:t,className:d,...u,children:[o,l&&(0,R.jsx)("span",{className:z_,"aria-hidden":"true",children:"*"}),c&&(0,R.jsxs)(L_,{children:[(0,R.jsx)(L_.Trigger,{children:(0,R.jsx)(T_,{isSmall:s,children:c})}),(0,R.jsx)(L_.Content,{children:c})]})]})});G_.displayName="Label";const U_={"tedi-form-label--hidden":"tedi-form-label--hidden-eb9f0de0","tedi-form-label--hidden-keep-space":"tedi-form-label--hidden-keep-space-b054bd93"},H_=(0,d.forwardRef)(({label:e,hideLabel:t,required:n,id:r,renderWithoutLabel:o,size:i="default",className:a,tooltip:s,...l},c)=>{const u=Xi(U_["tedi-form-label"],U_[`tedi-form-label--${i}`],{[U_["tedi-form-label--hidden"+("keep-space"===t?"-keep-space":"")]]:t},a);return(0,R.jsx)(G_,{as:o?"span":"label",ref:c,className:u,htmlFor:r,required:n,isSmall:"small"===i,tooltip:s,...l,children:e})});H_.displayName="FormLabel";const W_={tag:"tag-de7cd582","tag--default":"tag--default-77443d27","tag--type-ghost":"tag--type-ghost-80dfabdb","tag--large":"tag--large-81928b3e","tag--color-default":"tag--color-default-9aabde81","tag--type-default":"tag--type-default-328f991f","tag--type-secondary":"tag--type-secondary-495a8ed8","tag--color-accent":"tag--color-accent-798040f8","tag--type-borderless":"tag--type-borderless-1c5fcca7","tag--type-invisible":"tag--type-invisible-c8d11eb5","tag--icon-only":"tag--icon-only-1f412944","tag--disabled":"tag--disabled-06b14065","tag--with-arrow":"tag--with-arrow-a7d0d694","tag--color-primary":"tag--color-primary-d4a64cd4","tag--color-positive":"tag--color-positive-f823c0df","tag--color-warning":"tag--color-warning-3efdfe52","tag--color-important":"tag--color-important-81499159","tag--status-error":"tag--status-error-30c88b17","tag--status-success":"tag--status-success-e31be3e2","tag--status-inactive":"tag--status-inactive-09947563","tag--rounded":"tag--rounded-e9419f54"},q_={"tedi-skeleton-block":"tedi-skeleton-block-640dada4","wave-lines":"wave-lines-8fa7cdb7","tedi-skeleton-block--h1":"tedi-skeleton-block--h1-7bedaba2","tedi-skeleton-block--h2":"tedi-skeleton-block--h2-9ff35e9f","tedi-skeleton-block--h3":"tedi-skeleton-block--h3-85dd6ba0","tedi-skeleton-block--h4":"tedi-skeleton-block--h4-965ce4bc","tedi-skeleton-block--h5":"tedi-skeleton-block--h5-7b3d67af","tedi-skeleton-block--h6":"tedi-skeleton-block--h6-2c5770a9","tedi-skeleton-block--p":"tedi-skeleton-block--p-939e6c72"},Y_=e=>{const{getCurrentBreakpointProps:t}=Dc(e.defaultServerBreakpoint),{width:n="auto",height:r="p",className:o,style:i}=t(e);let a;a="number"==typeof n?`${n}%`:"string"==typeof n&&n.endsWith("px")?n:"auto"===n?"auto":`${n}%`;const s={width:a,..."number"==typeof r?{height:`${r}px`}:{}},l="string"==typeof r?q_[`tedi-skeleton-block--${r}`]:null;return(0,R.jsx)("span",{className:Xi(q_["tedi-skeleton-block"],l,o),style:{...s,...i}})},K_=(0,d.forwardRef)((e,t)=>{const{children:n,size:r,className:o,title:i,color:a="default",status:s,type:l="default",rounded:c=!1,hasArrow:u=!1,isLoading:d=!1,isDisabled:p=!1,iconOnly:f=!1,id:g}=e,h=d?Y_:i?"abbr":"div",m=Xi(W_.tag,o,{[W_[`tag--${r}`]]:r},{[W_[`tag--type-${l}`]]:l},{[W_[`tag--color-${a}`]]:a},{[W_[`tag--status-${s}`]]:s},{[W_["tag--rounded"]]:c},{[W_["tag--icon-only"]]:f},{[W_["tag--disabled"]]:p},{[W_["tag--with-arrow"]]:u&&!c});return(0,R.jsx)(h,{id:g,"data-name":"tag",className:m,title:i,ref:t,children:n})});K_.displayName="Tag";const J_="check-48c1869b",X_="check--disabled-3f793e27",Z_="check__input-92dff7a9",Q_="check__indicator-0ac86462",ej="check__indicator--hover-c4064110",tj="check__indicator--indeterminate-33c0c00a",nj="check__icon-e76c1b87",rj="check__icon--check-e0ab9856",oj="check__icon--indeterminate-dc93d769",ij="check__tooltip-icon-e8045891",aj="check__extra-content-7ade4e97",sj=e=>{const{id:t,label:n,value:r,className:o,disabled:i=!1,onChange:a,hideLabel:s=!1,extraContent:l,checked:c,defaultChecked:u,indeterminate:p,hover:f,name:g,tooltip:h,...m}=e,[v,b]=d.useState(u||!1),y=d.useRef(null),x=d.useMemo(()=>p?"mixed":a&&typeof c<"u"?c:v,[p,a,c,v]),w=Xi(J_,{[X_]:i});return(0,R.jsxs)("div",{"data-name":"check",className:o,...m,children:[(0,R.jsxs)(oh,{gutter:0,children:[(0,R.jsxs)(ih,{width:"auto",children:[(0,R.jsx)("input",{id:t,value:r,name:g,type:"checkbox",disabled:i,checked:"mixed"!==x&&x,"aria-checked":x,onChange:e=>{typeof c>"u"&&b(null==e?void 0:e.target.checked),null==a||a(r,null==e?void 0:e.target.checked)},className:Z_}),(0,R.jsxs)("div",{"aria-hidden":"true",onClick:()=>{var e;return null==(e=y.current)?void 0:e.click()},className:Xi(Q_,{[ej]:f,[tj]:p}),children:[(0,R.jsx)(wy,{size:16,name:"remove",className:Xi(nj,oj)}),(0,R.jsx)(wy,{size:16,name:"check",className:Xi(nj,rj)})]})]}),(0,R.jsx)(ih,{children:(0,R.jsxs)("label",{ref:y,className:w,htmlFor:t,children:[(0,R.jsx)("span",{className:Xi({"visually-hidden":s}),children:n}),h&&(0,R.jsxs)(By,{children:[(0,R.jsx)(Gy,{children:(0,R.jsx)(wy,{name:"info",color:"brand",size:16,display:"inline",className:ij})}),(0,R.jsx)(Uy,{children:h})]})]})})]}),l&&(0,R.jsx)("div",{className:aj,children:l})]})},lj={select__control:"select__control-c52fb518","select--invalid":"select--invalid-a28d479c","select__control--focused":"select__control--focused-666f5665",select__arrow:"select__arrow-f088db27","select__menu-portal":"select__menu-portal-83a0138d",select__menu:"select__menu-36546a54","select__menu-list":"select__menu-list-1db27a34","select__menu-list-inner":"select__menu-list-inner-65d1bbd0","select__menu-list-footer":"select__menu-list-footer-8ebb4c1b",select__option:"select__option-a57e0e71","select__option--focused":"select__option--focused-421543c0","select__option--selected":"select__option--selected-3d192b35","select__option--disabled":"select__option--disabled-ffe87ec9","select--small":"select--small-9131190c",select__input:"select__input-ff08a918","select__multi-value-item":"select__multi-value-item-0ca3b242",select__checkbox:"select__checkbox-2412f21a",select:"select-40793e72",select__group:"select__group-4bbb5fe8","select__group-heading":"select__group-heading-e20b5f3f","select__multi-value-clear":"select__multi-value-clear-3603e9b1","select--tags-row":"select--tags-row-8b3eeef0","select--searchable":"select--searchable-c0c07c33","select--tags-stack":"select--tags-stack-8ee56ad9"},cj=e=>{const t=Xi(lj.select__control,e.className,{[lj["select__control--focused"]]:e.isFocused});return(0,R.jsx)(hS.Control,{...e,className:t})},uj=e=>(0,R.jsx)(hS.Input,{...e,className:Xi(e.className,lj.select__input),isHidden:void 0!==e.selectProps.inputIsHidden?e.selectProps.inputIsHidden:e.isHidden}),dj=e=>(0,R.jsx)(hS.Menu,{...e,className:Xi(e.className,lj.select__menu)}),pj=e=>(0,R.jsx)(hS.MenuPortal,{...e,className:Xi(e.className,lj["select__menu-portal"])}),fj=(0,d.forwardRef)((e,t)=>{const{options:n,defaultOptions:r,id:o,name:i,iconName:a="arrow_drop_down",label:s,required:l,value:c,defaultValue:u,tagsDirection:p="row",onChange:f,onInputChange:g,inputValue:h,loadOptions:m,isLoading:v,isTagRemovable:b=!1,openMenuOnFocus:y=!1,openMenuOnClick:x=!0,tabSelectsValue:w=!1,disabled:S=!1,className:_,hideLabel:j=!1,helper:E,placeholder:C,invalid:k,size:T,async:P=!1,renderOption:O,renderMessageListFooter:I,noOptionsMessage:A,loadingMessage:M,multiple:D=!1,closeMenuOnSelect:F=!D,blurInputOnSelect:N=!1,autoFocus:L=!1,isClearable:$=!0,isClearIndicatorVisible:V=!1,isSearchable:B=!0,menuIsOpen:z,onMenuClose:G,onMenuOpen:U,onBlur:H,inputIsHidden:W,optionGroupHeadingText:q={modifiers:"small",color:"subtle"},optionGroupBackgroundColor:Y,cacheOptions:K=!0,...J}=e,X=E?(null==E?void 0:E.id)??`${o}-helper`:void 0,Z=d.useRef(null),{getLabel:Q}=$g();d.useImperativeHandle(t,()=>Z.current);const ee=e=>{var t;null==f||f(e),!N&&Z.current&&(null==(t=Z.current.inputRef)||t.focus())},te=()=>(0,R.jsx)(Gg,{name:a,size:24,className:lj.select__arrow}),ne=e=>(0,R.jsx)(hS.Placeholder,{...e,className:Xi(e.className,"inline-block")}),re=d.useCallback(e=>(0,R.jsxs)("div",{className:lj["select__menu-list-wrapper"],children:[(0,R.jsx)(hS.MenuList,{...e,className:Xi(e.className,lj["select__menu-list"]),children:e.children}),I&&(0,R.jsx)("div",{className:lj["select__menu-list-footer"],children:I(e)})]}),[I]),oe=e=>D?(e=>{const t=Xi(lj.select__option,{[lj["select__option--disabled"]]:e.isDisabled},{[lj["select__option--focused"]]:e.isFocused}),{tabIndex:n,...r}=e.innerProps;return(0,R.jsx)(hS.Option,{...e,innerProps:{...r,role:"option","aria-selected":e.isSelected},className:t,children:O?O(e):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("span",{className:"sr-only",children:e.label}),(0,R.jsx)(sj,{id:e.data.value,label:e.label,"aria-hidden":!0,className:lj.select__checkbox,value:e.data.value,name:e.data.value,checked:e.isSelected,onChange:(e,t)=>null,disabled:e.isDisabled,hover:e.isFocused})]})})})(e):(e=>{const t=Xi(lj.select__option,{[lj["select__option--disabled"]]:e.isDisabled},{[lj["select__option--selected"]]:e.isSelected},{[lj["select__option--focused"]]:e.isFocused}),{tabIndex:n,...r}=e.innerProps;return(0,R.jsx)(hS.Option,{...e,innerProps:{...r,role:"option","aria-selected":e.isSelected},className:t,children:O?O(e):e.children})})(e),ie=({children:e,components:{Remove:t},data:n,selectProps:r,removeProps:o,...i})=>(0,R.jsxs)(K_,{color:"default",type:"secondary",className:Xi(lj["select__multi-value-item"],{[lj["select__multi-value-item--big"]]:"small"!==T}),children:[e,b&&(0,R.jsx)(t,{data:n,selectProps:r,innerProps:o})]}),ae=({data:e,innerProps:t})=>(0,R.jsx)(Yg,{icon:{name:"clear",color:"muted"},className:lj["select__multi-value-clear"],visualType:"link",tabIndex:-1,...t,children:`${Q("remove")} ${e.label}`}),se=({innerProps:{ref:e,...t}})=>V?(0,R.jsx)(Yg,{icon:{name:"clear",color:"muted"},visualType:"link",tabIndex:-1,ref:e,...t,children:Q("clear")}):null,le=e=>{const t=Xi(lj.select__group);return(0,R.jsx)(hS.Group,{...e,className:t,children:e.children})},ce=e=>{const t=Xi(lj["select__group-heading"],mh(e.data.backgroundColor||Y||"transparent")),n=e.data.text||q;return(0,R.jsx)(hS.GroupHeading,{...e,className:t,children:(0,R.jsx)(Zg,{...n,children:e.data.label})})},ue=Xi(lj.select,_,{[lj["select--invalid"]]:k||"error"===(null==E?void 0:E.type)},{[lj[`select--${T}`]]:T},{[lj[`select--tags-${p}`]]:p},{[lj["select--searchable"]]:B});return(0,R.jsxs)("div",{"data-name":"select",...J,className:ue,children:[(0,R.jsxs)("div",{className:lj.select__inner,children:[(0,R.jsx)(H_,{id:`${o}-input`,label:s,required:l,hideLabel:j,size:T}),(()=>{const e={ClearIndicator:se,DropdownIndicator:te,IndicatorSeparator:()=>null,MenuPortal:pj,Menu:dj,MenuList:re,Option:oe,Control:cj,Input:uj,MultiValue:ie,MultiValueRemove:ae,Placeholder:ne,Group:le,GroupHeading:ce},t=P?y_:m_;return(0,R.jsx)(t,{id:o,"aria-describedby":X,autoFocus:L,ref:Z,instanceId:o,className:"select__wrapper",name:i,options:n,defaultOptions:r,value:c,defaultValue:u,cacheOptions:K,onChange:ee,onInputChange:g,onBlur:H,inputValue:h,inputId:`${o}-input`,loadOptions:m,isLoading:v,noOptionsMessage:A||(()=>Q("select.no-options")),loadingMessage:M||(()=>Q("select.loading")),classNamePrefix:"select",components:e,isDisabled:S,isSearchable:B,menuIsOpen:z,openMenuOnFocus:y,openMenuOnClick:x,tabSelectsValue:w,onMenuClose:G,onMenuOpen:U,placeholder:C||"",isClearable:$,backspaceRemovesValue:!0,menuShouldScrollIntoView:!0,isMulti:D,hideSelectedOptions:!1,closeMenuOnSelect:F,blurInputOnSelect:N,menuPosition:"fixed",menuPlacement:"auto",inputIsHidden:W,required:l,theme:e=>({...e,colors:{...e.colors,primary:"#005aa3",danger:"#b50000",dangerLight:"#fceeee"}}),styles:{input:e=>({...e,gridTemplateColumns:"0fr"})}})})()]}),E&&(0,R.jsx)(w_,{...E,id:X})]})});fj.displayName="Select";const gj=d.createContext({isLoading:!1,isError:!1,table:null,id:"",hideRowBorder:!1}),hj={pagination__wrapper:"pagination__wrapper-017154aa",pagination__pages:"pagination__pages-29b0da46",pagination__page:"pagination__page-8588d7aa","pagination__page--current":"pagination__page--current-db7cb2cd","pagination__arrow-item":"pagination__arrow-item-e073424c",pagination__arrow:"pagination__arrow-f7602a28"},mj=({type:e})=>{const{table:t}=d.useContext(gj),{getLabel:n}=$g(),{getCanPreviousPage:r,getCanNextPage:o,nextPage:i,previousPage:a,toggleAllRowsExpanded:s}=t,l="next"===e;return(0,R.jsx)("li",{className:hj["pagination__arrow-item"],children:(0,R.jsxs)("button",{type:"button",className:hj.pagination__arrow,disabled:l?!o():!r(),onClick:()=>{l?i():a(),s(!1)},children:[(0,R.jsx)("span",{className:"visually-hidden",children:n(`pagination.${l?"next":"prev"}-page`)}),(0,R.jsx)(Gg,{name:l?"arrow_forward":"arrow_back",size:16})]})})},vj=({item:e})=>{const{table:t}=d.useContext(gj),{getLabel:n}=$g(),r=e.page||0,o=n("pagination.page",r,e.selected),{setPageIndex:i,toggleAllRowsExpanded:a}=t;return(0,R.jsx)("li",{children:(0,R.jsx)("button",{...e,type:"button",className:Xi(hj.pagination__page,{[hj["pagination__page--current"]]:e.selected}),"aria-label":o,onClick:()=>{i(r-1),a(!1)},children:r})})},bj=e=>{const{getLabel:t}=$g(),{table:n,id:r}=d.useContext(gj),o=t("pagination.results",e.totalRows),{setPageSize:i,getState:a,getPageCount:s}=n,{pageIndex:l,pageSize:c}=a().pagination,u=[{value:"5",label:"5"},{value:"10",label:"10"},{value:"20",label:"20"},{value:"50",label:"50"},{value:"100",label:"100"}],p=Math.ceil(e.totalRows/c),{paginationItems:f}=(e=>{const{boundaryCount:t=1,count:n=5,page:r,siblingCount:o=1}=e,i=(e,t)=>{const n=t-e+1;return Array.from({length:n},(t,n)=>e+n)},a=i(1,Math.min(t,n)),s=i(Math.max(n-t+1,t+1),n),l=Math.max(Math.min(r-o,n-t-2*o-1),t+2),c=Math.min(Math.max(r+o,t+2*o+2),s.length>0?s[0]-2:n-1),u=["previous",...a,...l>t+2?["ellipsis"]:t+1<n-t?[t+1]:[],...i(l,c),...c<n-t-1?["ellipsis"]:n-t>t?[n-t]:[],...s,"next"],d=e=>{switch(e){case"previous":return r-1;case"next":return r+1;default:return null}};return{paginationItems:u.map(e=>"number"==typeof e?{type:"page",page:e,selected:e===r,"aria-current":e===r?"true":void 0}:{type:e,page:d(e),selected:!1})}})({page:l+1,count:p}),g=u.find(e=>e.value===String(c))??{value:String(c),label:String(c)};return(0,R.jsxs)("div",{className:hj.pagination__wrapper,children:[(0,R.jsxs)(Zg,{color:"muted",modifiers:"small",children:[e.totalRows," ",o]}),s()>1&&(0,R.jsx)("nav",{role:"navigation","aria-label":t("pagination.title"),className:hj.pagination,children:(0,R.jsx)("ul",{className:hj.pagination__pages,children:f.map((e,t)=>((e,t)=>"previous"===e.type||"next"===e.type?(0,R.jsx)(mj,{type:e.type},t):"ellipsis"===e.type?(0,R.jsx)("li",{className:Xi(hj.pagination__page),children:"..."},t):(0,R.jsx)(vj,{item:e},t))(e,t))})}),(0,R.jsx)(fj,{id:`page-size-${r}`,label:t("pagination.page-size"),hideLabel:!0,isSearchable:!1,isClearable:!1,onChange:e=>(e=>{const t=parseInt((null==e?void 0:e.value)||"10");i(t)})(e),value:g,size:"small",options:u})]})},yj=(e,t)=>"string"!=typeof t&&"number"!=typeof t||(null==e?void 0:e.toLowerCase().includes(String(t).toLowerCase())),xj=(e,t)=>e===t,wj=(e,t)=>null==e?void 0:e.some(e=>e===t),Sj=(e,t)=>{const n=t?Zc(t):null,r=null!=e&&e.from?Zc(e.from):null,o=null!=e&&e.to?Zc(e.to):null;return!((r||o)&&!n)&&(r&&!o?r.isSameOrBefore(n,"day"):!r&&o?o.isSameOrAfter(n,"day"):!r||!o||r.isSameOrBefore(n,"day")&&o.isSameOrAfter(n,"day"))},_j=(e,t)=>{if("object"!=typeof t||!Object.keys(t).includes("from")||!Object.keys(t).includes("to"))return console.error("Accessor function should return an object { from: Dayjs | Date | string | null | undefined, to: Dayjs | Date | string | null | undefined }"),!0;const n=t,r=null!=e&&e.from?Zc(e.from):null,o=null!=e&&e.to?Zc(e.to):null,i=null==n?void 0:n.from,a=null==n?void 0:n.to;return r&&o?i&&a?r.isSameOrBefore(i,"day")&&o.isSameOrAfter(i,"day")||o.isSameOrAfter(a,"day")&&r.isSameOrBefore(a,"day"):i?r.isSameOrBefore(i,"day")&&o.isSameOrAfter(i,"day"):!!a&&(r.isSameOrBefore(a,"day")&&o.isSameOrAfter(a,"day")):r&&!o?a?r.isSameOrBefore(a,"day"):!!i&&r.isSameOrBefore(i,"day"):!(!r&&o)||(i?o.isSameOrAfter(i,"day"):!!a&&o.isSameOrAfter(a,"day"))},jj=(e,t,n,r)=>{var o;return r(n,null==(o=null==e?void 0:e.getValue)?void 0:o.call(e,t))},Ej=["xs","sm"],Cj=["md"],kj=["lg","xl","xxl"],Tj=e=>{const{icon:t="spa",className:n,children:r,cardProps:o,isNested:i,rowProps:a,...s}=e,l=(e=>{const t=Wc(),n=null==e?void 0:e.reduce((e,t)=>{switch(t){case"desktop":return[...e,...kj];case"tablet":return[...e,...Cj];case"mobile":return[...e,...Ej];default:return[...e,t]}},[]);return!!t&&n.includes(t)})(["mobile","tablet"]),{padding:c=(i?0:l?1:1.5),background:u=(i?void 0:l?"bg-subtle":"white"),...p}=o??{};return(0,R.jsx)(Bg,{breakInside:"avoid",children:(0,R.jsx)(Yc,{"data-name":"placeholder",...s,className:n,borderless:i,padding:c,background:u,...p,children:(0,R.jsx)(vh,{children:(0,R.jsxs)(oh,{direction:"column",alignItems:"center",gutter:2,...a,children:[t&&(0,R.jsx)(ih,{width:"auto",children:(e=>{const t={size:36,className:Xi("text-primary")},n="string"==typeof e?{...t,name:e}:"object"!=typeof e||d.isValidElement(e)?void 0:{...t,...e,className:Xi(t.className,null==e?void 0:e.className)};return n?(0,R.jsx)(Gg,{...n}):e})(t)}),(0,R.jsx)(ih,{width:"auto",children:(0,R.jsx)(Zg,{color:"muted",modifiers:"center",element:"div",children:r})})]})})})})},Pj={table:"table-95e2ce2d","th--sortable":"th--sortable-e9907825",sort__button:"sort__button-98f3f530",sort__icon:"sort__icon-1c37fdff",filter__icon:"filter__icon-a6408ada","sort__icon--active":"sort__icon--active-ed6767d3","filter__icon--active":"filter__icon--active-d14db408","sort__icon--asc":"sort__icon--asc-9ed20154","sort__icon--desc":"sort__icon--desc-24ef5b2b","table__row--border-hidden":"table__row--border-hidden-35904e21","table__row--clickable":"table__row--clickable-43b04ec0","table--vertical-align-base-line":"table--vertical-align-base-line-85bbb2f6","table--hidden-bottom-border":"table--hidden-bottom-border-4334c76e","table--footer-bottom-border":"table--footer-bottom-border-d33045fd","table--small":"table--small-1ae7cbce",table__expand:"table__expand-19801588","table__row--group-header":"table__row--group-header-70657dcd","table__row--group-item":"table__row--group-item-d18f21ab","table__row--last-group-item":"table__row--last-group-item-7b3a8250",filter__content:"filter__content-e28d0f6a",filter__button:"filter__button-0c3bdad8",filter__indeterminate:"filter__indeterminate-f266331a","sticky-column":"sticky-column-c4a00eca","sticky-column--left":"sticky-column--left-4e599e4b","sticky-column--right":"sticky-column--right-3dfd1c9b"};var Rj=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Oj}(e)}(e)};var Oj="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ij(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Mj(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function Aj(e,t,n){return e.concat(t).map(function(e){return Ij(e,n)})}function Mj(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Aj,n.isMergeableObject=n.isMergeableObject||Rj;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Ij(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=Mj(e[o],t[o],n):r[o]=Ij(t[o],n)}),r}(e,t,n):Ij(t,n)}Mj.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Mj(e,n,t)},{})};var Dj=Mj;function Fj(e){return mc(e,5)}var Nj=Array.isArray,Lj=Object.keys,$j=Object.prototype.hasOwnProperty,Vj=typeof Element<"u";function Bj(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Nj(e),a=Nj(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!Bj(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Lj(e);if((r=d.length)!==Lj(t).length)return!1;for(n=r;0!==n--;)if(!$j.call(t,d[n]))return!1;if(Vj&&e instanceof Element&&t instanceof Element)return e===t;for(n=r;0!==n--;)if(!("_owner"===(o=d[n])&&e.$$typeof||Bj(e[o],t[o])))return!1;return!0}return e!=e&&t!=t}var zj=function(e,t){try{return Bj(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}};const Gj=(0,Yi.gB)(zj);function Uj(e){return mc(e,4)}function Hj(e){return us(e)?Ta(e,Pl):ba(e)?[e]:Ql(_l(kl(e)))}function Wj(){return Wj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function qj(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var Yj=(0,d.createContext)(void 0);Yj.displayName="FormikContext",Yj.Provider,Yj.Consumer;var Kj=function(e){return"function"==typeof e},Jj=function(e){return null!==e&&"object"==typeof e},Xj=function(e){return String(Math.floor(Number(e)))===e},Zj=function(e){return"[object String]"===Object.prototype.toString.call(e)},Qj=function(e){return Jj(e)&&Kj(e.then)};function eE(e,t,n,r){void 0===r&&(r=0);for(var o=Hj(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||void 0===e?n:e}function tE(e,t,n){for(var r=Uj(e),o=r,i=0,a=Hj(t);i<a.length-1;i++){var s=a[i],l=eE(e,a.slice(0,i+1));if(l&&(Jj(l)||Array.isArray(l)))o=o[s]=Uj(l);else{var c=a[i+1];o=o[s]=Xj(c)&&Number(c)>=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function nE(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],s=e[a];Jj(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},nE(s,t,n,r[a])):r[a]=t}return r}var rE={},oE={};function iE(e){var t=e.validateOnChange,n=void 0===t||t,r=e.validateOnBlur,o=void 0===r||r,i=e.validateOnMount,a=void 0!==i&&i,s=e.isInitialValid,l=e.enableReinitialize,c=void 0!==l&&l,u=e.onSubmit,p=qj(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Wj({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:u},p),g=(0,d.useRef)(f.initialValues),h=(0,d.useRef)(f.initialErrors||rE),m=(0,d.useRef)(f.initialTouched||oE),v=(0,d.useRef)(f.initialStatus),b=(0,d.useRef)(!1),y=(0,d.useRef)({});(0,d.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var x=(0,d.useState)(0)[1],w=(0,d.useRef)({values:Fj(f.initialValues),errors:Fj(f.initialErrors)||rE,touched:Fj(f.initialTouched)||oE,status:Fj(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=w.current,_=(0,d.useCallback)(function(e){var t=w.current;w.current=function(e,t){switch(t.type){case"SET_VALUES":return Wj({},e,{values:t.payload});case"SET_TOUCHED":return Wj({},e,{touched:t.payload});case"SET_ERRORS":return Gj(e.errors,t.payload)?e:Wj({},e,{errors:t.payload});case"SET_STATUS":return Wj({},e,{status:t.payload});case"SET_ISSUBMITTING":return Wj({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Wj({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Wj({},e,{values:tE(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Wj({},e,{touched:tE(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Wj({},e,{errors:tE(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Wj({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Wj({},e,{touched:nE(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Wj({},e,{isSubmitting:!1});default:return e}}(t,e),t!==w.current&&x(function(e){return e+1})},[]),j=(0,d.useCallback)(function(e,t){return new Promise(function(n,r){var o=f.validate(e,t);null==o?n(rE):Qj(o)?o.then(function(e){n(e||rE)},function(e){r(e)}):n(o)})},[f.validate]),E=(0,d.useCallback)(function(e,t){var n=f.validationSchema,r=Kj(n)?n(t):n,o=t&&r.validateAt?r.validateAt(t,e):function(e,t,n){void 0===n&&(n=!1);var r=aE(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:r})}(e,r);return new Promise(function(e,t){o.then(function(){e(rE)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return tE(t,e.path,e.message);var n=e.inner,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;eE(t,a.path)||(t=tE(t,a.path,a.message))}}return t}(n)):t(n)})})},[f.validationSchema]),C=(0,d.useCallback)(function(e,t){return new Promise(function(n){return n(y.current[e].validate(t))})},[]),k=(0,d.useCallback)(function(e){var t=Object.keys(y.current).filter(function(e){return Kj(y.current[e].validate)}),n=t.length>0?t.map(function(t){return C(t,eE(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=tE(e,t[r],n)),e},{})})},[C]),T=(0,d.useCallback)(function(e){return Promise.all([k(e),f.validationSchema?E(e):{},f.validate?j(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return Dj.all([t,n,r],{arrayMerge:sE})})},[f.validate,f.validationSchema,k,j,E]),P=cE(function(e){return void 0===e&&(e=S.values),_({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})});(0,d.useEffect)(function(){a&&!0===b.current&&Gj(g.current,f.initialValues)&&P(g.current)},[a,P]);var R=(0,d.useCallback)(function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:h.current?h.current:f.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:f.initialTouched||{},o=e&&e.status?e.status:v.current?v.current:f.initialStatus;g.current=t,h.current=n,m.current=r,v.current=o;var i=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(f.onReset){var a=f.onReset(S.values,K);Qj(a)?a.then(i):i()}else i()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);(0,d.useEffect)(function(){!0===b.current&&!Gj(g.current,f.initialValues)&&c&&(g.current=f.initialValues,R(),a&&P(g.current))},[c,f.initialValues,R,a,P]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(h.current,f.initialErrors)&&(h.current=f.initialErrors||rE,_({type:"SET_ERRORS",payload:f.initialErrors||rE}))},[c,f.initialErrors]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(m.current,f.initialTouched)&&(m.current=f.initialTouched||oE,_({type:"SET_TOUCHED",payload:f.initialTouched||oE}))},[c,f.initialTouched]),(0,d.useEffect)(function(){c&&!0===b.current&&!Gj(v.current,f.initialStatus)&&(v.current=f.initialStatus,_({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var O=cE(function(e){if(y.current[e]&&Kj(y.current[e].validate)){var t=eE(S.values,e),n=y.current[e].validate(t);return Qj(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return f.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:eE(t,e)}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),I=(0,d.useCallback)(function(e,t){var n=t.validate;y.current[e]={validate:n}},[]),A=(0,d.useCallback)(function(e){delete y.current[e]},[]),M=cE(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?o:t)?P(S.values):Promise.resolve()}),D=(0,d.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),F=cE(function(e,t){var r=Kj(e)?e(S.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?P(r):Promise.resolve()}),N=(0,d.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),L=cE(function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?P(tE(S.values,e,t)):Promise.resolve()}),$=(0,d.useCallback)(function(e,t){var n,r=t,o=e;if(!Zj(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=(i.outerHTML,i.options),p=i.multiple;r=t||s||l,o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}(eE(S.values,r),u,c):d&&p?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):c}r&&L(r,o)},[L,S.values]),V=cE(function(e){if(Zj(e))return function(t){return $(t,e)};$(e)}),B=cE(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?o:n)?P(S.values):Promise.resolve()}),z=(0,d.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||r||o);B(i,!0)},[B]),G=cE(function(e){if(Zj(e))return function(t){return z(t,e)};z(e)}),U=(0,d.useCallback)(function(e){Kj(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),H=(0,d.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),W=(0,d.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),q=cE(function(){return _({type:"SUBMIT_ATTEMPT"}),P().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=J()))return}catch(e){throw e}return Promise.resolve(n).then(function(e){return b.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e})}),Y=cE(function(e){e&&e.preventDefault&&Kj(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kj(e.stopPropagation)&&e.stopPropagation(),q().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),K={resetForm:R,validateForm:P,validateField:O,setErrors:D,setFieldError:N,setFieldTouched:B,setFieldValue:L,setStatus:H,setSubmitting:W,setTouched:M,setValues:F,setFormikState:U,submitForm:q},J=cE(function(){return u(S.values,K)}),X=cE(function(e){e&&e.preventDefault&&Kj(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Kj(e.stopPropagation)&&e.stopPropagation(),R()}),Z=(0,d.useCallback)(function(e){return{value:eE(S.values,e),error:eE(S.errors,e),touched:!!eE(S.touched,e),initialValue:eE(g.current,e),initialTouched:!!eE(m.current,e),initialError:eE(h.current,e)}},[S.errors,S.touched,S.values]),Q=(0,d.useCallback)(function(e){return{setValue:function(t,n){return L(e,t,n)},setTouched:function(t,n){return B(e,t,n)},setError:function(t){return N(e,t)}}},[L,B,N]),ee=(0,d.useCallback)(function(e){var t=Jj(e),n=t?e.name:e,r=eE(S.values,n),o={name:n,value:r,onChange:V,onBlur:G};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[G,V,S.values]),te=(0,d.useMemo)(function(){return!Gj(g.current,S.values)},[g.current,S.values]),ne=(0,d.useMemo)(function(){return typeof s<"u"?te?S.errors&&0===Object.keys(S.errors).length:!1!==s&&Kj(s)?s(f):s:S.errors&&0===Object.keys(S.errors).length},[s,te,S.errors,f]);return Wj({},S,{initialValues:g.current,initialErrors:h.current,initialTouched:m.current,initialStatus:v.current,handleBlur:G,handleChange:V,handleReset:X,handleSubmit:Y,resetForm:R,setErrors:D,setFormikState:U,setFieldTouched:B,setFieldValue:L,setFieldError:N,setStatus:H,setSubmitting:W,setTouched:M,setValues:F,submitForm:q,validateForm:P,validateField:O,isValid:ne,dirty:te,unregisterField:A,registerField:I,getFieldProps:ee,getFieldMeta:Z,getFieldHelpers:Q,validateOnBlur:o,validateOnChange:n,validateOnMount:a})}function aE(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map(function(e){return!0===Array.isArray(e)||jc(e)?aE(e):""!==e?e:void 0}):jc(e[r])?t[r]=aE(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function sE(e,t,n){var r=e.slice();return t.forEach(function(t,o){if(typeof r[o]>"u"){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?Dj(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=Dj(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var lE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?d.useLayoutEffect:d.useEffect;function cE(e){var t=(0,d.useRef)(e);return lE(function(){t.current=e}),(0,d.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}var uE=(0,d.forwardRef)(function(e,t){var n=e.action,r=qj(e,["action"]),o=n??"#",i=function(){var e=(0,d.useContext)(Yj);return e}(),a=i.handleReset,s=i.handleSubmit;return(0,d.createElement)("form",Wj({onSubmit:s,ref:t,onReset:a,action:o},r))});function dE(e){this._maxSize=e,this.clear()}uE.displayName="Form",dE.prototype.clear=function(){this._size=0,this._values=Object.create(null)},dE.prototype.get=function(e){return this._values[e]},dE.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var pE=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fE=/^\d+$/,gE=/^\d/,hE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,mE=/^\s*(['"]?)(.*?)(\1)\s*$/,vE=new dE(512),bE=new dE(512),yE=new dE(512),xE={Cache:dE,split:SE,normalizePath:wE,setter:function(e){var t=wE(e);return bE.get(e)||bE.set(e,function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=n})},getter:function(e,t){var n=wE(e);return yE.get(e)||yE.set(e,function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(_E(t)||fE.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,a,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(jE(r)&&(r='"'+r+'"'),a=_E(r),i=!a&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}(Array.isArray(e)?e:SE(e),t,n)}};function wE(e){return vE.get(e)||vE.set(e,SE(e).map(function(e){return e.replace(mE,"$2")}))}function SE(e){return e.match(pE)||[""]}function _E(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function jE(e){return!_E(e)&&(function(e){return e.match(gE)&&!e.match(fE)}(e)||function(e){return hE.test(e)}(e))}const EE=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,CE=e=>e.match(EE)||[],kE=(e,t)=>CE(e).join(t).toLowerCase(),TE=e=>CE(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");var PE=TE,RE=e=>kE(e,"_"),OE={exports:{}};function IE(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach(function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}OE.exports=function(e){return IE(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},OE.exports.array=IE;var AE=OE.exports;const ME=(0,Yi.gB)(AE),DE=Object.prototype.toString,FE=Error.prototype.toString,NE=RegExp.prototype.toString,LE=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$E=/^Symbol\((.*)\)(.*)$/;function VE(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return LE.call(e).replace($E,"Symbol($1)");const r=DE.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+FE.call(e)+"]":"RegExp"===r?NE.call(e):null}function BE(e,t){let n=VE(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=VE(this[e],t);return null!==r?r:n},2)}function zE(e){return null==e?[]:[].concat(e)}let GE,UE,HE,WE=/\$\{\s*(\w+)\s*\}/g;GE=Symbol.toStringTag;class qE{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[GE]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],zE(e).forEach(e=>{if(YE.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}UE=Symbol.hasInstance,HE=Symbol.toStringTag;class YE extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"==typeof e?e.replace(WE,(e,n)=>BE(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new qE(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[HE]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,YE)}static[UE](e){return qE[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let KE={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=null!=r&&r!==n?` (cast from the value \`${BE(r,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${BE(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${BE(n,!0)}\``+o}},JE={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},XE={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ZE={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},QE={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${BE(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${BE(n,!0)}\``}return YE.formatError(KE.notType,e)}};Object.assign(Object.create(null),{mixed:KE,string:JE,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:XE,object:ZE,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"},tuple:QE});const eC=e=>e&&e.__isYupSchema__;class tC{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"==typeof n?n:(...e)=>e.every(e=>e===n);return new tC(e,(e,t)=>{var n;let a=i(...e)?r:o;return null!=(n=null==a?void 0:a(t))?n:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!eC(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const nC="$",rC=".";class oC{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===nC,this.isValue=this.key[0]===rC,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?nC:this.isValue?rC:"";this.path=this.key.slice(n.length),this.getter=this.path&&xE.getter(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}oC.prototype.__isYupRef=!0;const iC=e=>null==e;function aC(e){function t({value:t,path:n="",options:r,originalValue:o,schema:i},a,s){const{name:l,test:c,params:u,message:d,skipAbsent:p}=e;let{parent:f,context:g,abortEarly:h=i.spec.abortEarly,disableStackTrace:m=i.spec.disableStackTrace}=r;const v={value:t,parent:f,context:g};function b(e={}){const r=sC(Object.assign({value:t,originalValue:o,label:i.spec.label,path:e.path||n,spec:i.spec,disableStackTrace:e.disableStackTrace||m},u,e.params),v),a=new YE(YE.formatError(e.message||d,r),t,r.path,e.type||l,r.disableStackTrace);return a.params=r,a}const y=h?a:s;let x={path:n,parent:f,type:l,from:r.from,createError:b,resolve:e=>lC(e,v),options:r,originalValue:o,schema:i};const w=e=>{YE.isError(e)?y(e):e?s(null):y(b())},S=e=>{YE.isError(e)?y(e):a(e)};if(p&&iC(t))return w(!0);let _;try{var j;if(_=c.call(x,t,x),"function"==typeof(null==(j=_)?void 0:j.then)){if(r.sync)throw new Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(_).then(w,S)}}catch(e){return void S(e)}w(_)}return t.OPTIONS=e,t}function sC(e,t){if(!e)return e;for(const n of Object.keys(e))e[n]=lC(e[n],t);return e}function lC(e,t){return oC.isRef(e)?e.getValue(t.value,t.parent,t.context):e}function cC(e,t,n,r=n){let o,i,a;return t?(xE.forEach(t,(s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:r,parent:o,value:n})).type,p=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class uC extends Set{describe(){const e=[];for(const t of this.values())e.push(oC.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new uC(this.values())}merge(e,t){const n=this.clone();return e.forEach(e=>n.add(e)),t.forEach(e=>n.delete(e)),n}}function dC(e,t=new Map){if(eC(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=dC(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,dC(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(dC(r,t))}else{if(!(e instanceof Object))throw Error(`Unable to clone ${e}`);n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=dC(o,t)}return n}function pC(e){if(null==e||!e.length)return;const t=[];let n="",r=!1,o=!1;for(let i=0;i<e.length;i++){const a=e[i];"["!==a||o?"]"!==a||o?'"'!==a?"."!==a||r||o?n+=a:n&&(t.push(n),n=""):o=!o:(n&&(/^\d+$/.test(n)?t.push(n):t.push(n.replace(/^"|"$/g,"")),n=""),r=!1):(n&&(t.push(...n.split(".").filter(Boolean)),n=""),r=!0)}return n&&t.push(...n.split(".").filter(Boolean)),t}function fC(e,t){var n;if((null==(n=e.inner)||!n.length)&&e.errors.length)return function(e,t){const n=t?`${t}.${e.path}`:e.path;return e.errors.map(e=>({message:e,path:pC(n)}))}(e,t);const r=t?`${t}.${e.path}`:e.path;return e.inner.flatMap(e=>fC(e,r))}class gC{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new uC,this._blacklist=new uC,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(KE.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=dC(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!!(this.spec.nullable&&null===e||this.spec.optional&&void 0===e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce((t,n)=>n.resolve(t,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e,t={}){let n=this.resolve(Object.assign({},t,{value:e})),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&iC(o))return o;let i=BE(e),a=BE(o);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((n,r)=>r.call(this,n,e,this,t),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e,t={},n,r){let{path:o,originalValue:i=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let e of Object.values(this.internalTests))e&&l.push(e);this.runTests({path:o,value:s,originalValue:i,options:t,tests:l},n,e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:i,options:t,tests:this.tests},n,r)})}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=o.length,p=[];if(!d)return u([]);let f={value:i,originalValue:a,path:s,options:l,schema:this};for(let e=0;e<o.length;e++){(0,o[e])(f,c,function(e){e&&(Array.isArray(e)?p.push(...e):p.push(e)),--d<=0&&u(p)})}}asNestedTest({key:e,index:t,parent:n,parentPath:r,originalParent:o,options:i}){const a=e??t;if(null==a)throw TypeError("Must include `key` or `index` for nested validations");const s="number"==typeof a;let l=n[a];const c=Object.assign({},i,{strict:!0,parent:n,value:l,originalValue:o[a],key:void 0,[s?"index":"key"]:a,path:s||a.includes(".")?`${r||""}[${s?a:`"${a}"`}]`:(r?`${r}.`:"")+e});return(e,t,n)=>this.resolve(c)._validate(l,c,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise((n,i)=>r._validate(e,t,(e,t)=>{YE.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new YE(e,t,void 0,void 0,o)):n(t)}))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw YE.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new YE(t,e,void 0,void 0,i);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(YE.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(YE.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):dC(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=aC({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=aC({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(e=KE.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=KE.notNull){return this.nullability(!1,e)}required(e=KE.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=KE.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=aC(t),o=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>!(e.OPTIONS.name===t.name&&(o||e.OPTIONS.test===r.OPTIONS.test))),n.tests.push(r),n}when(e,t){!Array.isArray(e)&&"string"!=typeof e&&(t=e,e=".");let n=this.clone(),r=zE(e).map(e=>new oC(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push("function"==typeof t?new tC(r,t):tC.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=aC({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=KE.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n.internalTests.whiteList=aC({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e,t=KE.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n.internalTests.blacklist=aC({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.filter((e,t,n)=>n.findIndex(t=>t.OPTIONS.name===e.OPTIONS.name)===t).map(t=>{const n=t.OPTIONS.params&&e?sC(Object.assign({},t.OPTIONS.params),e):t.OPTIONS.params;return{name:t.OPTIONS.name,params:n}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(t){try{return{value:await e.validate(t,{abortEarly:!1})}}catch(e){if(e instanceof YE)return{issues:fC(e)};throw e}}}}}gC.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])gC.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=cC(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])gC.prototype[e]=gC.prototype.oneOf;for(const e of["not","nope"])gC.prototype[e]=gC.prototype.notOneOf;const hC=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function mC(e){var t,n;const r=hC.exec(e);return r?{year:vC(r[1]),month:vC(r[2],1)-1,day:vC(r[3],1),hour:vC(r[4]),minute:vC(r[5]),second:vC(r[6]),millisecond:r[7]?vC(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:vC(r[10]),minuteOffset:vC(r[11])}:null}function vC(e,t=0){return Number(e)||t}let bC=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yC=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xC=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,wC=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"),SC=e=>iC(e)||e===e.trim(),_C={}.toString();function jC(){return new EC}class EC extends gC{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const n=null!=e&&e.toString?e.toString():e;return n===_C?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||KE.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=JE.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=JE.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=JE.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"==typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||JE.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(e=JE.email){return this.matches(bC,{name:"email",message:e,excludeEmptyString:!0})}url(e=JE.url){return this.matches(yC,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=JE.uuid){return this.matches(xC,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"==typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(wC,{name:"datetime",message:r||JE.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||JE.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=mC(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||JE.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||null==n)return!0;const t=mC(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=JE.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:SC})}lowercase(e=JE.lowercase){return this.transform(e=>iC(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>iC(e)||e===e.toLowerCase()})}uppercase(e=JE.uppercase){return this.transform(e=>iC(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>iC(e)||e===e.toUpperCase()})}}jC.prototype=EC.prototype;let CC=new Date("");class kC extends gC{constructor(){super({type:"date",check:e=>(e=>"[object Date]"===Object.prototype.toString.call(e))(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t)=>!this.spec.coerce||this.isType(e)||null===e?e:(e=function(e){const t=mC(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?kC.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let n;if(oC.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=XE.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e,t=XE.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function TC(e,t){let n=1/0;return e.some((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0}),n}function PC(e){return(t,n)=>TC(e,t)-TC(e,n)}kC.INVALID_DATE=CC;const RC=(e,t,n)=>{if("string"!=typeof e)return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function OC(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=OC(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=OC(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(OC)}):"optional"in e?e.optional():e}let IC=e=>"[object Object]"===Object.prototype.toString.call(e);function AC(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}const MC=PC([]);function DC(e){return new FC(e)}class FC extends gC{constructor(e){super({type:"object",check:e=>IC(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=MC,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter(e=>!this._nodes.includes(e))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=o[e],a=e in r,u=r[e];if(n){let o;l.path=(t.path?`${t.path}.`:"")+e,n=n.resolve({value:u,context:t.context,parent:s});let i=n instanceof gC?n.spec:void 0,a=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||e in r;continue}o=t.__validating&&a?u:n.cast(u,l),void 0!==o&&(s[e]=o)}else a&&!i&&(s[e]=u);(a!==e in s||s[e]!==u)&&(c=!0)}return c?s:r}_validate(e,t={},n,r){let{from:o=[],originalValue:i=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,(e,o)=>{if(!a||!IC(o))return void r(e,o);i=i||o;let s=[];for(let e of this._nodes){let n=this.fields[e];!n||oC.isRef(n)||s.push(n.asNestedTest({options:t,key:e,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:o,originalValue:i,options:t},n,t=>{r(t.sort(this._sortErrors).concat(e),o)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];n[e]=void 0===r?t:r}return t.withMutation(t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0}),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([e,t])=>`${e}-${t}`));function i(e,t){let i=xE.split(e)[0];r.add(i),o.has(`${t}-${i}`)||n.push([t,i])}for(const t of Object.keys(e)){let n=e[t];r.add(t),oC.isRef(n)&&n.isSibling?i(n.path,t):eC(n)&&"deps"in n&&n.deps.forEach(e=>i(e,t))}return ME.array(Array.from(r),n).reverse()}(e,t),n._sortErrors=PC(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e,t=[]){return this.clone().withMutation(n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)})}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return OC(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter(([t,n])=>e.includes(t)&&e.includes(n)))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=xE.getter(e,!0);return this.transform(o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...xE.normalizePath(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=xE.getter(xE.join(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i})}json(){return this.transform(RC)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||ZE.exact,test(e){if(null==e)return!0;const t=AC(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=ZE.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=AC(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=ZE.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n})}camelCase(){return this.transformKeys(PE)}snakeCase(){return this.transformKeys(RE)}constantCase(){return this.transformKeys(e=>RE(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}DC.prototype=FC.prototype;const NC=d.createContext({column:null,rows:null,values:null,open:!1,setOpen:null}),LC={"tedi-textfield":"tedi-textfield-376bbeed","tedi-textfield__inner":"tedi-textfield__inner-98791cdd","tedi-textfield__input":"tedi-textfield__input-ade0f9a6","tedi-textfield--invalid":"tedi-textfield--invalid-290ce18d","tedi-textfield--valid":"tedi-textfield--valid-273af8c0","tedi-textfield--clearable":"tedi-textfield--clearable-f47f0508","tedi-textfield--with-icon":"tedi-textfield--with-icon-db2c6f01","textfield--with-icon":"textfield--with-icon-d23a33f0","tedi-textfield__input--hidden-arrows":"tedi-textfield__input--hidden-arrows-609217f7","tedi-textfield__right-area":"tedi-textfield__right-area-6ac81c6b","tedi-textfield--small":"tedi-textfield--small-4ffcc517","tedi-textfield--large":"tedi-textfield--large-0e4d788c","tedi-textfield__separator":"tedi-textfield__separator-63d1ba14","tedi-textfield__icon-wrapper":"tedi-textfield__icon-wrapper-4935814e","tedi-textfield--inline":"tedi-textfield--inline-7ed55c4e","tedi-textfield__icon":"tedi-textfield__icon-05d4adc8","tedi-textfield__feedback-wrapper":"tedi-textfield__feedback-wrapper-9d47f9c6"},$C=(0,d.forwardRef)((e,t)=>{const{getCurrentBreakpointProps:n}=Dc(e.defaultServerBreakpoint),{id:r,label:o,className:i,inputClassName:a,disabled:s,required:l,hideLabel:c,invalid:u,readOnly:p,icon:f,onIconClick:g,size:h,placeholder:m,isArrowsHidden:v=!0,isClearable:b,onClear:y,onChange:x,onChangeEvent:w,onKeyUp:S,onKeyDown:_,onKeyPress:j,defaultValue:E,value:C,onFocus:k,onBlur:T,onClick:P,helper:O,input:I,name:A,isTextArea:M,...D}=n(e)||{},{getLabel:F}=$g(),N=d.useRef(null),L=d.useRef(null),[$,V]=d.useState(C??E??""),B=d.useMemo(()=>{var e;if(O)return Array.isArray(O)?(null==(e=O[0])?void 0:e.id)??`${r}-helper`:O.id??`${r}-helper`},[O,r]),z=d.useMemo(()=>C??$,[C,$]),G=b&&z;d.useImperativeHandle(t,()=>({get input(){return N.current},get inner(){return L.current}}));const U=d.useMemo(()=>Array.isArray(O)?u||O.some(e=>"error"===e.type):u||"error"===(null==O?void 0:O.type),[u,O]),H=d.useMemo(()=>!(!O||Array.isArray(O)&&0===O.length)&&(Array.isArray(O)?!u&&O.every(e=>"valid"===e.type):!u&&"valid"===O.type),[u,O]),W="large"===h?"default":h,q=d.useCallback(e=>{const t={size:"large"===h?24:"small"===h?16:18,className:Xi(LC["tedi-textfield__icon"])},n="string"==typeof e?{...t,name:e}:{...t,...e,className:Xi(t.className,null==e?void 0:e.className)},r=(0,R.jsx)(wy,{...n});return(0,R.jsx)(g?"button":"div",{className:LC["tedi-textfield__icon-wrapper"],type:g?"button":void 0,onClick:s?void 0:g,disabled:s,tabIndex:s?-1:0,children:r})},[s,g,h]),Y=d.useCallback(e=>{const t=e.currentTarget.value;V(t),null==x||x(t),null==w||w(e)},[x,w]),K=d.useCallback(()=>{V(""),null==x||x(""),null==y||y()},[x,y]),J=d.useCallback((e,t)=>!!M,[M]),X=d.useCallback((e,t)=>!M,[M]),Z=d.useMemo(()=>{const t={...I,id:r,name:A,...c?{"aria-label":o}:{},"aria-describedby":B,"aria-disabled":s||void 0,className:Xi(LC["tedi-textfield__input"],a,{[LC["tedi-textfield__input--hidden-arrows"]]:v}),disabled:s,required:l,"aria-invalid":U||void 0,placeholder:m,readOnly:p,onChange:Y,value:z,onBlur:T,onFocus:k};return J(e,N)?(0,R.jsx)("textarea",{...t,ref:N}):X(e,N)?(0,R.jsx)("input",{...t,ref:N}):null},[I,r,A,c,o,B,s,a,v,l,U,m,p,Y,z,T,k,J,e,X]),Q=d.useMemo(()=>{const e={size:"large"===h?"large":"medium",onClick:s?()=>{}:K,disabled:s,"aria-disabled":s||void 0,title:`${F("clear")}`,className:Xi(LC["tedi-textfield__clear-button"])};return(0,R.jsx)(_y,{...e})},[K,s,F,h]),ee=d.useMemo(()=>(0,R.jsxs)("div",{className:LC["tedi-textfield__right-area"],children:[G&&Q,G&&f?(0,R.jsx)(Fy,{color:"primary",axis:"vertical",className:LC["tedi-textfield__separator"]}):null,f&&q(f)]}),[q,f,Q,G]),te=Xi(LC["tedi-textfield"],{[LC[`tedi-textfield--${h}`]]:h},{[LC["tedi-textfield--with-icon"]]:f},{[LC["tedi-textfield--invalid"]]:U},{[LC["tedi-textfield--valid"]]:H},{[LC["tedi-textfield--clearable"]]:G},i);return(0,R.jsxs)("div",{"data-name":"textfield",...D,className:te,children:[(0,R.jsx)(H_,{id:r,label:o,required:l,hideLabel:c,size:W}),(0,R.jsxs)("div",{className:LC["tedi-textfield__inner"],onKeyDown:_,onKeyUp:S,onClick:P,tabIndex:s?-1:0,ref:L,children:[Z,b||f?ee:null]}),!O||Array.isArray(O)&&0===O.length?null:(0,R.jsx)("div",{className:LC["tedi-textfield__feedback-wrapper"],children:Array.isArray(O)?O.map((e,t)=>(0,R.jsx)(w_,{...e,id:`${B}-${t}`},t)):(0,R.jsx)(w_,{...O,id:B})})]})});$C.displayName="TextField";const VC=e=>{var t,n,r,o,i;const{muiTextfieldProps:a,textfieldProps:s,inputFormat:l,onChangeHandler:c,type:u="date"}=e,{ref:p,inputRef:f,inputProps:g,InputProps:h,value:m,size:v,onChange:b,error:y,disabled:x,...w}=a,{readOnly:S,id:_,input:j,...E}=s,C=d.useRef({inner:null,input:null});return d.useEffect(()=>{C.current.input&&(null==f||f(C.current.input))},[f]),(0,R.jsx)($C,{id:_,...w,disabled:x,readOnly:S,...E,value:null==g?void 0:g.value,onChangeEvent:e=>{var t;null==(t=null==g?void 0:g.onChange)||t.call(g,e)},placeholder:(null==s?void 0:s.placeholder)||(null==g?void 0:g.placeholder),defaultValue:void 0,ref:C,input:{...g,...j},invalid:y,icon:{name:"date"===u?"today":"schedule",label:null==(i=null==(o=null==(r=null==(n=null==(t=null==a?void 0:a.InputProps)?void 0:t.endAdornment)?void 0:n.props)?void 0:r.children)?void 0:o.props)?void 0:i["aria-label"]},onBlur:e=>{var t,n,r;null==(t=E.onBlur)||t.call(E,e),null==(n=w.onBlur)||n.call(w,e),Zc(e.currentTarget.value,l,!0).isValid()||(c(null),null==(r=null==g?void 0:g.onChange)||r.call(g,{...e,target:{...e.target,value:""}}))}})},BC=typeof window<"u"?d.useLayoutEffect:d.useEffect;function zC(e,t,n,r,o){const[i,a]=d.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return BC(()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&a(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}},[e,n]),i}const GC=d.useSyncExternalStore;function UC(e,t,n,r,o){const i=d.useCallback(()=>t,[t]),a=d.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i},[i,e,r,o,n]),[s,l]=d.useMemo(()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[i,n,e]);return GC(l,s,a)}function HC(e,t={}){const n=Pg(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Xp({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==GC?UC:zC)(l,o,i,a,s)}const WC=()=>{const e=d.useContext(Dg);if(null===e)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},qC=()=>WC().utils,YC=()=>WC().defaultDates,KC=()=>WC().localeText,JC=()=>{const e=qC();return d.useRef(e.date()).current},XC=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,c=e;for(a.isBefore(e,o)&&(l=a.date(o),c=null),a.isAfter(e,r)&&(c&&(c=a.date(r)),l=null);l||c;){if(l&&a.isAfter(l,r)&&(l=null),c&&a.isBefore(c,o)&&(c=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(c){if(!i(c))return c;c=a.addDays(c,-1)}}return null},ZC=(e,t,n)=>{if(null==t)return n;const r=e.date(t);return e.isValid(r)?r:n},QC=e=>1===e.length&&"year"===e[0],ek=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function tk(e,t){var n;const r=qC(),o=YC(),i=Ig({props:e,name:t}),a=null!=(n=i.views)?n:["year","day"];return du({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>QC(e)?{inputFormat:t.formats.year}:ek(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,r),i,{views:a,minDate:ZC(r,i.minDate,o.minDate),maxDate:ZC(r,i.maxDate,o.maxDate)})}const nk={emptyValue:null,getTodayValue:e=>e.date(),parseInput:(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function rk(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rk(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ok(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rk(e))&&(r&&(r+=" "),r+=t);return r}function ik(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ik(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ak(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ik(e))&&(r&&(r+=" "),r+=t);return r}var sk={};const lk=(0,Yi.qT)(e);var ck,uk={exports:{}};var dk=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,pk=ag(function(e){return dk.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),fk=pk,gk=function(e){return"theme"!==e},hk=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?fk:gk},mk=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},vk=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return rg(t,n,r),bg(function(){return og(t,n,r)}),null},bk=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=mk(t,n,i),l=s||hk(a),c=!l("as");return function(){var u=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var g=u.length,h=1;h<g;h++)p.push(u[h],f[h])}var m=Sg(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var g in f={},e)f[g]=e[g];f.theme=d.useContext(_g)}"string"==typeof e.className?i=ng(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=mg(p.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?hk(r):l,v={};for(var b in e)c&&"as"===b||m(b)&&(v[b]=e[b]);return v.className=i,n&&(v.ref=n),d.createElement(d.Fragment,null,d.createElement(vk,{cache:t,serialized:h,isStringTag:"string"==typeof r}),d.createElement(r,v))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=p,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,du({},n,r,{shouldForwardProp:mk(m,r,!0)})).apply(void 0,p)},m}}.bind(null);["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){bk[e]=bk(e)});const yk=new Map;function xk(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=d.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&yk.has(e))return yk.get(e);const r=function(e,t){const n=tg({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return yk.set(e,r),r},[t,n]);return t||n?(0,R.jsx)(wg,{value:o,children:r}):r}function wk(e){const{styles:t,defaultTheme:n={}}=e;return(0,R.jsx)(dw,{styles:"function"==typeof t?e=>t(function(e){return null==e||0===Object.keys(e).length}(e)?n:e):t})}function Sk(e,t){return bk(e,t)}const _k=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},jk=[];function Ek(e){return jk[0]=e,mg(jk)}const Ck=(0,Yi.qT)(r),kk=(0,Yi.qT)(o),Tk=(0,Yi.qT)(i);var Pk,Rk={exports:{}},Ok={};Rk.exports=function(){if(Pk)return Ok;Pk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(f){if("object"==typeof f&&null!==f){var g=f.$$typeof;switch(g){case e:switch(f=f.type){case n:case o:case r:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return g}}case t:return g}}}return Ok.ContextConsumer=i,Ok.ContextProvider=a,Ok.Element=e,Ok.ForwardRef=s,Ok.Fragment=n,Ok.Lazy=d,Ok.Memo=u,Ok.Portal=t,Ok.Profiler=o,Ok.StrictMode=r,Ok.Suspense=l,Ok.SuspenseList=c,Ok.isContextConsumer=function(e){return g(e)===i},Ok.isContextProvider=function(e){return g(e)===a},Ok.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ok.isForwardRef=function(e){return g(e)===s},Ok.isFragment=function(e){return g(e)===n},Ok.isLazy=function(e){return g(e)===d},Ok.isMemo=function(e){return g(e)===u},Ok.isPortal=function(e){return g(e)===t},Ok.isProfiler=function(e){return g(e)===o},Ok.isStrictMode=function(e){return g(e)===r},Ok.isSuspense=function(e){return g(e)===l},Ok.isSuspenseList=function(e){return g(e)===c},Ok.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Ok.typeOf=g,Ok}();var Ik=Rk.exports;const Ak=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Mk(e){const t=`${e}`.match(Ak);return t&&t[1]||""}function Dk(e,t=""){return e.displayName||e.name||Mk(e)||t}function Fk(e,t,n){const r=Dk(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function Nk(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Dk(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ik.ForwardRef:return Fk(e,e.render,"ForwardRef");case Ik.Memo:return Fk(e,e.type,"memo");default:return}}}const Lk=(0,Yi.qT)(l),$k=(0,Yi.qT)(c),Vk=["sx"],Bk=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Bp;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r};function zk(e){const{sx:t}=e,n=pu(e,Vk),{systemProps:r,otherProps:o}=Bk(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return yd(n)?du({},r,n):r}:du({},r,t),du({},o,{sx:i})}const Gk=(0,Yi.qT)(u);var Uk=mu;Object.defineProperty(sk,"__esModule",{value:!0});var Hk=sk.default=function(e={}){const{themeId:t,defaultTheme:n=oT,rootShouldForwardProp:r=nT,slotShouldForwardProp:o=nT}=e,i=e=>(0,Xk.default)((0,Wk.default)({},e,{theme:aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Yk.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=sT(iT(l))}=a,p=(0,qk.default)(a,eT),f=s&&s.startsWith("Mui")||l?"components":"custom",g=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=nT;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,Yk.default)(e,(0,Wk.default)({shouldForwardProp:m,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Kk.isPlainObject)(e)?r=>{const o=aT({theme:r.theme,defaultTheme:n,themeId:t});return lT(e,(0,Wk.default)({},r,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&d&&l.push(e=>{const r=aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,n])=>{i[t]=lT(n,(0,Wk.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!g&&l.push(e=>{var r;const o=aT((0,Wk.default)({},e,{defaultTheme:n,themeId:t}));return lT({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Wk.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),h||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=v(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(y.withConfig=v.withConfig),y}};sk.shouldForwardProp=nT,sk.systemDefaultTheme=void 0;var Wk=Uk(lk),qk=Uk((ck||(ck=1,function(e){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports}(uk)),uk.exports)),Yk=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=tT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ck),Kk=kk,Jk=(Uk(Tk),Uk(Lk),Uk($k)),Xk=Uk(Gk);const Zk=["ownerState"],Qk=["variants"],eT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(tT=function(e){return e?n:t})(e)}function nT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function rT(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const oT=sk.systemDefaultTheme=(0,Jk.default)(),iT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function aT({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function sT(e){return e?(t,n)=>n[e]:null}function lT(e,t,n){let{ownerState:r}=t,o=(0,qk.default)(t,Zk);const i="function"==typeof e?e((0,Wk.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap(e=>lT(e,(0,Wk.default)({ownerState:r},o),n));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,qk.default)(i,Qk);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Wk.default)({ownerState:r},o,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Wk.default)({ownerState:r},o,r)):e.style;t.push(n?rT((0,Yk.internal_serializeStyles)(i),n):i)}}),t}return n?rT((0,Yk.internal_serializeStyles)(i),n):i}const cT=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,uT=Hk({themeId:Kp,defaultTheme:Yp,rootShouldForwardProp:cT}),dT=e=>e,pT=(()=>{let e=dT;return{configure(t){e=t},generate:t=>e(t),reset(){e=dT}}})(),fT={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 gT(e,t,n="Mui"){const r=fT[t];return r?`${n}-${r}`:`${pT.generate(e)}-${t}`}function hT(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=gT(e,t,n)}),r}function mT(e){return gT("MuiSvgIcon",e)}hT("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vT=d.createContext(void 0);function bT({props:e,name:t}){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?Jp(o.defaultProps,r):o.styleOverrides||o.variants?r:Jp(o,r)}({props:e,name:t,theme:{components:d.useContext(vT)}})}function yT(e){return bT(e)}function xT(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}const wT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ST=uT("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Jd(n.color)}`],t[`fontSize${Jd(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(g=(e.vars||e).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[t.color]}}),_T=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:p="0 0 24 24"}=n,f=pu(n,wT),g=d.isValidElement(r)&&"svg"===r.type,h=du({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g}),m={};c||(m.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return xT({root:["root","inherit"!==t&&`color${Jd(t)}`,`fontSize${Jd(n)}`]},mT,r)})(h);return(0,R.jsxs)(ST,du({as:a,className:ak(v.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,g&&r.props,{ownerState:h,children:[g?r.props.children:r,u?(0,R.jsx)("title",{children:u}):null]}))});function jT(e,t){function n(n,r){return(0,R.jsx)(_T,du({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=_T.muiName,d.memo(d.forwardRef(n))}_T.muiName="SvgIcon";const ET=jT((0,R.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),CT=jT((0,R.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),kT=jT((0,R.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),TT=jT((0,R.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),PT=jT((0,R.jsxs)(d.Fragment,{children:[(0,R.jsx)("path",{d:"M11.99 2C6.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"}),(0,R.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),RT=(jT((0,R.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),jT((0,R.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));jT((0,R.jsxs)(d.Fragment,{children:[(0,R.jsx)("path",{d:"M11.99 2C6.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"}),(0,R.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function OT(e){return gT("MuiPickersToolbar",e)}const IT=hT("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]);function AT(e){return gT("MuiTypography",e)}hT("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MT=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],DT=uT("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${Jd(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>du({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),FT={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},LT=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiTypography"}),r=(e=>NT[e]||e)(n.color),o=zk(du({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=FT}=o,f=pu(o,MT),g=du({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||FT[d])||"span",m=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xT({root:["root",i,"inherit"!==e.align&&`align${Jd(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},AT,a)})(g);return(0,R.jsx)(DT,du({as:h,ref:t,ownerState:g,className:ak(m.root,a)},f))});function $T(){const e=Og(Yp);return e[Kp]||e}const VT=d.createContext();function BT(e){return gT("MuiGrid",e)}const zT=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],GT=hT("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...zT.map(e=>`grid-xs-${e}`),...zT.map(e=>`grid-sm-${e}`),...zT.map(e=>`grid-md-${e}`),...zT.map(e=>`grid-lg-${e}`),...zT.map(e=>`grid-xl-${e}`)]),UT=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function HT(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function WT({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(e=>{""===n&&0!==t[e]&&(n=e)});const r=Object.keys(e).sort((t,n)=>e[t]-e[n]);return r.slice(0,r.indexOf(n))}const qT=uT("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])}),r}(a,c,t));const d=[];return c.forEach(e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>du({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),function({theme:e,ownerState:t}){return qd({theme:e},Kd({values:t.direction,breakpoints:e.breakpoints.values}),e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${GT.item}`]={maxWidth:"none"}),t})},function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Kd({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=WT({breakpoints:e.breakpoints.values,values:t})),o=qd({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${HT(i)}`,[`& > .${GT.item}`]:{paddingTop:HT(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${GT.item}`]:{paddingTop:0}}})}return o},function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Kd({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=WT({breakpoints:e.breakpoints.values,values:t})),o=qd({theme:e},t,(t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${HT(i)})`,marginLeft:`-${HT(i)}`,[`& > .${GT.item}`]:{paddingLeft:HT(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${GT.item}`]:{paddingLeft:0}}})}return o},function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Kd({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return r;const l=Math.round(n/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${l} + ${HT(n)})`;c={flexBasis:e,maxWidth:e}}}i=du({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})});const YT=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}}),n}(i,l));const u=[];l.forEach(t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)});return xT({root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},BT,t)},KT=d.forwardRef(function(e,t){const n=yT({props:e,name:"MuiGrid"}),{breakpoints:r}=$T(),o=zk(n),{className:i,columns:a,columnSpacing:s,component:l="div",container:c=!1,direction:u="row",item:p=!1,rowSpacing:f,spacing:g=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,v=pu(o,UT),b=f||g,y=s||g,x=d.useContext(VT),w=c?a||12:x,S={},_=du({},v);r.keys.forEach(e=>{null!=v[e]&&(S[e]=v[e],delete _[e])});const j=du({},o,{columns:w,container:c,direction:u,item:p,rowSpacing:b,columnSpacing:y,wrap:h,zeroMinWidth:m,spacing:g},S,{breakpoints:r.keys}),E=YT(j);return(0,R.jsx)(VT.Provider,{value:w,children:(0,R.jsx)(qT,du({ownerState:j,className:ak(E.root,i),as:l,ref:t},_))})});function JT(e){return gT("MuiIconButton",e)}const XT=hT("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const ZT=hT("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),QT={};const eP=[];class tP{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tP}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function nP(){const e=function(e,t){const n=d.useRef(QT);return n.current===QT&&(n.current=e(t)),n}(tP.create).current;return function(e){d.useEffect(e,eP)}(e.disposeEffect),e}function rP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ow(e,t)}const oP=d.createContext(null);function iP(e,t){var n=Object.create(null);return e&&d.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,d.isValidElement)(e)?t(e):e}(e)}),n}function aP(e,t,n){return null!=n[t]?n[t]:e.props[t]}function sP(e,t){return iP(e.children,function(n){return(0,d.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:aP(n,"appear",e),enter:aP(n,"enter",e),exit:aP(n,"exit",e)})})}function lP(e,t,n){var r=iP(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if((0,d.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,d.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,d.isValidElement)(c)&&(o[i]=(0,d.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:aP(a,"exit",e),enter:aP(a,"enter",e)})):o[i]=(0,d.cloneElement)(a,{in:!1}):o[i]=(0,d.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:aP(a,"exit",e),enter:aP(a,"enter",e)})}}),o}var cP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},uP=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(sw(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rP(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?sP(e,r):lP(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=iP(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=du({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=pu(e,["component","childFactory"]),o=this.state.contextValue,i=cP(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?d.createElement(oP.Provider,{value:o},i):d.createElement(oP.Provider,{value:o},d.createElement(t,r,i))},t}(d.Component);uP.propTypes={},uP.defaultProps={component:"div",childFactory:function(e){return e}};const dP=["center","classes","className"];let pP,fP,gP,hP,mP=e=>e;const vP=fw(pP||(pP=mP`
|
|
3
3
|
0% {
|
|
4
4
|
transform: scale(0);
|
|
5
5
|
opacity: 0.1;
|