nntc-ui 0.1.1 → 0.1.2
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/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={353(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,h={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])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(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,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=h;var w="$isDayjsObject",O=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},_=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},x=b;x.l=j,x.i=O,x.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.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(p);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()},m.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()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!x.u(t)||t,f=x.p(e),p=function(e,t){var r=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},g=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,m):p(0,m+1);case a:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return p(c?b-w:b+(6-w),m);case l:case d:return g(v+"Hours",0);case i:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case r:return g(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=x.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],g=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var h=this.clone().set(d,1);h.$d[p](g),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[x.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=x.p(c),g=function(e){var t=_(f);return x.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return g(1);if(p===a)return g(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*h;return x.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.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=x.z(this),i=this.$H,l=this.$m,a=this.$M,s=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 x.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,l,!0);case"A":return h(i,l,!1);case"m":return String(l);case"mm":return x.s(l,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,g=this,h=x.p(d),m=_(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return x.m(g,m)};switch(h){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:x.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=j(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),P=S.prototype;return _.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,S,_),e.$i=!0),_},_.locale=j,_.isDayjs=O,_.unix=function(e){return _(1e3*e)},_.en=y[v],_.Ls=y,_.p={},_}()},493(e,t,n){"use strict";var r=n(953),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){"use strict";e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},953(e){"use strict";e.exports=require("react")},942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>l[e]=()=>n[e]);return l.default=()=>n,o.d(i,l),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AddIcon:()=>Lo,AlertIcon:()=>Qi,ArrowDropDownIcon:()=>Ao,ArrowDropUpIcon:()=>Bo,AttachIcon:()=>Uo,BarChartIcon:()=>Jo,BookmarkAddIcon:()=>ca,BookmarkIcon:()=>ia,Button:()=>H,ButtonsGroup:()=>Ha,Card:()=>Dm,Checkbox:()=>Fe,CheckboxDeselectedIcon:()=>he,CheckboxIcon:()=>ye,CheckboxSeveralIcon:()=>_e,Checklist:()=>mf,ChevronLeftIcon:()=>ci,ChevronRightIcon:()=>pi,Chip:()=>Um,CircleFilledIcon:()=>bi,CloseIcon:()=>Oi,ColorPicker:()=>Uc,DateRangeIcon:()=>Si,DateTime:()=>rc,DeleteIcon:()=>Ri,DoneIcon:()=>Ii,DownloadIcon:()=>ba,EditIcon:()=>Ul,ExportTableIcon:()=>pa,FileUploadIcon:()=>Fi,FilterClearIcon:()=>qi,FilterIcon:()=>$i,FullScreenOffIcon:()=>ta,FullScreenOnIcon:()=>Jl,InfoIcon:()=>Yi,Input:()=>fu,KeyboardArrowDownIcon:()=>rl,Layout:()=>qf,ListIcon:()=>al,Menu:()=>rs,Modal:()=>rh,MoreVerticalIcon:()=>dl,MultiSelect:()=>xf,Pairs:()=>Cm,PointIcon:()=>Sa,Popover:()=>Do,RadioButton:()=>Ff,RadioDeselectedIcon:()=>ti,RadioSelectedIcon:()=>ii,SearchIcon:()=>hl,SearchInput:()=>Id,Select:()=>cs,SelectUniqueIcon:()=>yl,SettingsIcon:()=>_l,SortDownIcon:()=>Cl,SortUpIcon:()=>Dl,Surface:()=>Hf,TableChartIcon:()=>Ll,Tabs:()=>Ap,ThemeProvider:()=>rb,Tooltip:()=>Op,TreeView:()=>ym,Typography:()=>ce,UploadIcon:()=>Al,VirtualTable:()=>fm,VisibilityIcon:()=>Oa,WellIcon:()=>Bl,WrapForLabel:()=>Fd,useTheme:()=>tb,useThemeWithFallback:()=>nb,virtualTableDefaultRowHeight:()=>Zg});var e={};o.r(e),o.d(e,{active:()=>j,elevated:()=>_,filled:()=>x,link:()=>S,medium:()=>P,onlyIcon:()=>C,outlined:()=>E,root:()=>R,small:()=>k,stateLayer:()=>D,text:()=>M,textSecondary:()=>I,tonal:()=>N,withIcon:()=>L,withoutIcon:()=>T});var t={};o.r(t),o.d(t,{body1:()=>q,body2:()=>G,button:()=>U,caption:()=>K,h1:()=>Y,h2:()=>X,h3:()=>J,h4:()=>Z,h5:()=>Q,h6:()=>ee,h7:()=>te,overline:()=>ne,subtitle1:()=>re,subtitle2:()=>oe});var n={};o.r(n),o.d(n,{arrow:()=>Ca,filled:()=>Ea,icon:()=>Ra,input:()=>ka,itemIcon:()=>Da,label:()=>Ma,medium:()=>Ia,outlined:()=>Na,popoverContent:()=>La,popoverTarget:()=>Ta,root:()=>Fa,small:()=>Va,withIcon:()=>Aa,withItemIcon:()=>za,wrapper:()=>$a});var r={};o.r(r),o.d(r,{divider:()=>Ba,item:()=>Wa,itemActions:()=>qa,itemDescription:()=>Ga,itemDisabled:()=>Ua,itemIcon:()=>Ka,itemSelected:()=>Ya,itemTextBlock:()=>Xa,itemTitle:()=>Ja,itemTitleTop:()=>Za,medium:()=>Qa,root:()=>es,small:()=>ts,stateLayer:()=>ns});var l={};o.r(l),o.d(l,{filled:()=>fs,fullWidth:()=>ps,icon:()=>gs,input:()=>hs,label:()=>ms,medium:()=>bs,outlined:()=>vs,popoverContent:()=>ys,popoverTarget:()=>ws,root:()=>Os,small:()=>js,wrapper:()=>_s});var a={};o.r(a),o.d(a,{button:()=>xs,buttonsContainer:()=>Ss,calendarContainer:()=>Ps,cell:()=>Cs,cellCircle:()=>Es,cellData:()=>Rs,cellSelection:()=>ks,cellSelectionFirst:()=>Ds,cellSelectionLast:()=>Ms,cellsContainer:()=>Is,dateTimeMode:()=>Ns,medium:()=>Ls,month:()=>Ts,monthCellSelection:()=>Fs,monthCellSelectionFirst:()=>Vs,monthCellSelectionLast:()=>As,monthView:()=>zs,navigationArrow:()=>$s,navigationContainer:()=>Hs,navigationTitle:()=>Bs,navigationValue:()=>Ws,root:()=>qs,small:()=>Gs,timeContainer:()=>Us,timeDivider:()=>Ks,timeSelectionMarker:()=>Ys,year:()=>Xs});var s={};o.r(s),o.d(s,{arrow:()=>Mc,icon:()=>Ic,input:()=>Nc,label:()=>Lc,medium:()=>Tc,outlined:()=>Fc,popoverContent:()=>Vc,popoverTarget:()=>Ac,root:()=>zc,small:()=>$c,wrapper:()=>Hc});var c={};o.r(c),o.d(c,{attachIcon:()=>Kc,fileDisplay:()=>Yc,fileInput:()=>Xc,fileName:()=>Jc,filled:()=>Zc,fullWidth:()=>Qc,input:()=>eu,label:()=>tu,medium:()=>nu,outlined:()=>ru,placeholder:()=>ou,root:()=>iu,small:()=>lu,wrapper:()=>au});var u={};o.r(u),o.d(u,{filled:()=>Od,icon:()=>jd,input:()=>_d,medium:()=>xd,outlined:()=>Sd,root:()=>Pd,small:()=>Cd,withIcon:()=>Ed});var d={};o.r(d),o.d(d,{medium:()=>Nd,root:()=>Ld,small:()=>Td});var f={};o.r(f),o.d(f,{arrow:()=>Vd,checklistRoot:()=>Ad,checklistScrolled:()=>zd,checklistWrapper:()=>$d,clear:()=>Hd,filled:()=>Bd,fullWidth:()=>Wd,icon:()=>qd,input:()=>Gd,itemIcon:()=>Ud,label:()=>Kd,labelSelectedCount:()=>Yd,medium:()=>Xd,outlined:()=>Jd,popoverContent:()=>Zd,popoverTarget:()=>Qd,root:()=>ef,searchInputRoot:()=>tf,small:()=>nf,withIcon:()=>rf,withItemIcon:()=>of,wrapper:()=>lf});var p={};o.r(p),o.d(p,{modal:()=>Vf,panel:()=>Af,primary:()=>zf,root:()=>$f});var g={};o.r(g),o.d(g,{arrow:()=>Gf,bottomArrow:()=>Uf,content:()=>Kf,error:()=>Yf,info:()=>Xf,leftArrow:()=>Jf,rightArrow:()=>Zf,success:()=>Qf,topArrow:()=>ep,trigger:()=>tp,warning:()=>np});var h={};o.r(h),o.d(h,{disableBorder:()=>jp,disabled:()=>_p,filled:()=>xp,iconOnly:()=>Sp,medium:()=>Pp,root:()=>Cp,selected:()=>Ep,selectedFilled:()=>Rp,small:()=>kp,tab:()=>Dp,tabBorder:()=>Mp,tabBorderVertical:()=>Ip,tabFilled:()=>Np,tabIcon:()=>Lp,tabTitle:()=>Tp,tabVertical:()=>Fp,vertical:()=>Vp});var m={};o.r(m),o.d(m,{alignCenter:()=>oh,alignLeft:()=>ih,alignRight:()=>lh,bordersAll:()=>ah,bordersHorizontal:()=>sh,bordersVertical:()=>ch,bottomBorder:()=>uh,clickable:()=>dh,editable:()=>fh,error:()=>ph,evenRow:()=>gh,firstThRow:()=>hh,input:()=>mh,label:()=>bh,marginLeftChanging:()=>vh,medium:()=>yh,modalContent:()=>wh,rightBorder:()=>Oh,root:()=>jh,rowButtonTrigger:()=>_h,rowspanContent:()=>xh,selected:()=>Sh,showInModal:()=>Ph,small:()=>Ch,sticky:()=>Eh,success:()=>Rh,table:()=>kh,tableContainer:()=>Dh,td:()=>Mh,th:()=>Ih,thCell:()=>Nh,thHiddenColumn:()=>Lh,thLeftBorder:()=>Th,thRightBorder:()=>Fh,tr:()=>Vh,verticalAlignCenter:()=>Ah,verticalAlignFlexEnd:()=>zh,verticalAlignFlexStart:()=>$h,viewCell:()=>Hh,viewSpan:()=>Bh});var b={};o.r(b),o.d(b,{active:()=>Mm,clickable:()=>Im,filled:()=>Nm,icon:()=>Lm,iconClickable:()=>Tm,iconLeft:()=>Fm,iconRight:()=>Vm,label:()=>Am,medium:()=>zm,outlined:()=>$m,root:()=>Hm,secondary:()=>Bm,small:()=>Wm,stateLayer:()=>qm,withIcon:()=>Gm});var v=o(942),y=o.n(v),w=o(953),O=o.t(w,2),j="button-module__active__hSEWs",_="button-module__elevated__nAlrD",x="button-module__filled__D7eAr",S="button-module__link__F_tgW",P="button-module__medium__v66y0",C="button-module__only-icon__zOzfl",E="button-module__outlined__c_PHO",R="button-module__root__gX6OQ",k="button-module__small__HHNmk",D="button-module__state-layer__t1MJf",M="button-module__text__rG7nD",I="button-module__text-secondary__jXFdx",N="button-module__tonal__u6w_G",L="button-module__with-icon__C4Cw6",T="button-module__without-icon__GOGFF";const F=require("react/jsx-runtime"),V=["variant","size","icon","textSecondary","isActive","className","children","classes"];function A(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const H=(0,w.forwardRef)(function(t,n){let{variant:r="filled",size:o="medium",icon:i,textSecondary:l,isActive:a,className:s,children:c,classes:u}=t,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,V);return(0,F.jsx)("button",z(z({className:y()(R,e[r],e[o],i?c?L:C:T,a?j:void 0,l?I:void 0,s,u?.root)},d),{},{ref:n,children:(0,F.jsxs)("span",{className:y()(D,u?.stateLayer),children:[i,c]})}))});function B(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var W=parseInt(w.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=B(r,t),o="function"==typeof e;n.push(o?e:()=>B(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)B(n,t)}},q="typography-module__body1__x76Hw",G="typography-module__body2__xQKKj",U="typography-module__button__dx69P",K="typography-module__caption__cWpWz",Y="typography-module__h1__pRuCD",X="typography-module__h2__tNSpQ",J="typography-module__h3__YqCF_",Z="typography-module__h4__BCkqi",Q="typography-module__h5__z84mf",ee="typography-module__h6__C2Wqz",te="typography-module__h7__B6VO6",ne="typography-module__overline__IkqBV",re="typography-module__subtitle1__NO_el",oe="typography-module__subtitle2__TKKn5";const ie=["variant","component","children","className"];function le(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ce=(0,w.forwardRef)(function(e,n){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ie);const s=o||"span";return(0,F.jsx)(s,ae(ae({className:y()(t[r],l)},a),{},{ref:n,children:i}))});function ue(){const e=w;return"function"==typeof e.useId?e.useId():(0,w.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const de=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:n,xmlns:"http://www.w3.org/2000/svg",children:r});function fe(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 pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ge(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const he=e=>(0,F.jsx)(de,pe(pe({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function me(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 be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ye=e=>(0,F.jsx)(de,be(be({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e=e=>(0,F.jsx)(de,Oe(Oe({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var xe="checkbox-module__checkbox__x6SCC",Se="checkbox-module__deselected__ZuA24",Pe="checkbox-module__input__SjKVz",Ce="checkbox-module__label__tkrMd",Ee="checkbox-module__label-text__kXha_",Re="checkbox-module__pressed__mLWO0",ke="checkbox-module__root__xJtJG",De="checkbox-module__selected__pLwVq",Me="checkbox-module__several__TYjeg";const Ie=["label","several","componentSize","classes","id","ref"];function Ne(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Te(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){const{label:t,several:n,componentSize:r="medium",classes:o,id:i,ref:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ie),s=(0,w.useRef)(null),c=ue(),u=i??c;(0,w.useEffect)(()=>{const e=s.current;if(!e)return;const t=()=>e.classList.remove(Re),n=()=>e.classList.add(Re);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const d="large"===r?"subtitle1":"subtitle2";return(0,F.jsxs)("div",{className:y()(ke,o?.root),children:[(0,F.jsx)("input",Le({ref:W([s,l]),type:"checkbox",className:y()(Pe,o?.input),id:u,title:t},a)),(0,F.jsxs)("label",{htmlFor:u,className:y()(Ce,o?.label),title:t,children:[n?(0,F.jsx)("span",{className:y()(xe,Me,o?.checkbox),children:(0,F.jsx)(_e,{})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:y()(xe,Se,o?.checkbox),children:(0,F.jsx)(he,{})}),(0,F.jsx)("span",{className:y()(xe,De,o?.checkbox),children:(0,F.jsx)(ye,{})})]}),!!t&&(0,F.jsx)(ce,{variant:d,className:y()(Ee,o?.labelText),children:t})]})]})}const Ve=new Uint8Array(16),Ae=[];for(let e=0;e<256;++e)Ae.push((e+256).toString(16).slice(1));const ze=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Ve);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var $e="popover-module__content__cXVJ_",He="popover-module__trigger__hYNqD";function Be(){return"undefined"!=typeof window}function We(e){return Ue(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ge(e){var t;return null==(t=(Ue(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ue(e){return!!Be()&&(e instanceof Node||e instanceof qe(e).Node)}function Ke(e){return!!Be()&&(e instanceof Element||e instanceof qe(e).Element)}function Ye(e){return!!Be()&&(e instanceof HTMLElement||e instanceof qe(e).HTMLElement)}function Xe(e){return!(!Be()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot)}function Je(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ze(e){return/^(table|td|th)$/.test(We(e))}function Qe(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const et=/transform|translate|scale|rotate|perspective|filter/,tt=/paint|layout|strict|content/,nt=e=>!!e&&"none"!==e;let rt;function ot(e){const t=Ke(e)?at(e):e;return nt(t.transform)||nt(t.translate)||nt(t.scale)||nt(t.rotate)||nt(t.perspective)||!it()&&(nt(t.backdropFilter)||nt(t.filter))||et.test(t.willChange||"")||tt.test(t.contain||"")}function it(){return null==rt&&(rt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rt}function lt(e){return/^(html|body|#document)$/.test(We(e))}function at(e){return qe(e).getComputedStyle(e)}function st(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if("html"===We(e))return e;const t=e.assignedSlot||e.parentNode||Xe(e)&&e.host||Ge(e);return Xe(t)?t.host:t}function ut(e){const t=ct(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Je(t)?t:ut(t)}function dt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ut(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=qe(o);if(i){const e=ft(l);return t.concat(l,l.visualViewport||[],Je(o)?o:[],e&&n?dt(e):[])}return t.concat(o,dt(o,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var pt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),gt="undefined"==typeof Element,ht=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mt=!gt&&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},bt=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):bt(e.parentNode))},vt=function(e,t,n){if(bt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(pt));return t&&ht.call(e,pt)&&r.unshift(e),r.filter(n)},yt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!bt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=yt(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{ht.call(i,pt)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!bt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=yt(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ot=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))&&!wt(e)?0:e.tabIndex},jt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){return"INPUT"===e.tagName},xt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},St=function(e,t){return!(t.disabled||function(e){return _t(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=ht.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ht.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xt(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=mt(e);if(l&&!l.shadowRoot&&!0===r(l))return xt(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,r,o,i=e&&mt(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=mt(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(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!!ht.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Pt=function(e,t){return!(function(e){return function(e){return _t(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||mt(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"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)}(t)||Ot(t)<0||!St(e,t))},Ct=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Et=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=Ot(e);return n<0&&t&&!wt(e)?0:n}(i,o),a=o?Et(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(jt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Rt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?yt([e],t.includeContainer,{filter:Pt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ct}):vt(e,t.includeContainer,Pt.bind(null,t)),Et(n)},kt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ht.call(e,pt)&&Pt(t,e)};function Dt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Mt(){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 It(){return/apple/i.test(navigator.vendor)}function Nt(){const e=/android/i;return e.test(Dt())||e.test(Mt())}function Lt(){return Mt().includes("jsdom/")}const Tt="data-floating-ui-focusable";function Ft(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 Vt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Xe(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function At(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zt(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 $t(e){return(null==e?void 0:e.ownerDocument)||document}function Ht(e){return Ye(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Bt(e){return!!e&&"combobox"===e.getAttribute("role")&&Ht(e)}function Wt(e){return e?e.hasAttribute(Tt)?e:e.querySelector("["+Tt+"]")||e:null}function qt(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...qt(e,t.id,n)])}function Gt(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}function Ut(e){e.preventDefault(),e.stopPropagation()}function Kt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var Yt="undefined"!=typeof document?w.useLayoutEffect:function(){};function Xt(e){const t=w.useRef(e);return Yt(()=>{t.current=e}),t}const Jt={...O}.useInsertionEffect||(e=>e());function Zt(e){const t=w.useRef(()=>{});return Jt(()=>{t.current=e}),w.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 Qt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function en(e,t){const n=Rt(e,Qt()),r=n.length;if(0===r)return;const o=Ft($t(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function tn(e){return en($t(e).body,1)||e}function nn(e){return en($t(e).body,-1)||e}function rn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Vt(n,r)}function on(e){Rt(e,Qt()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function ln(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 an=require("react-dom"),sn=Math.min,cn=Math.max,un=Math.round,dn=Math.floor,fn=e=>({x:e,y:e}),pn={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e,t,n){return cn(e,sn(t,n))}function hn(e,t){return"function"==typeof e?e(t):e}function mn(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function vn(e){return"x"===e?"y":"x"}function yn(e){return"y"===e?"height":"width"}function wn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function On(e){return vn(wn(e))}function jn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const _n=["left","right"],xn=["right","left"],Sn=["top","bottom"],Pn=["bottom","top"];function Cn(e){const t=mn(e);return pn[t]+e.slice(t.length)}function En(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 Rn(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}}function kn(e,t,n){let{reference:r,floating:o}=e;const i=wn(t),l=On(t),a=yn(l),s=mn(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Dn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=hn(t,e),g=En(p),h=a[f?"floating"===d?"reference":"floating":d],m=Rn(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(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-w.top+g.top)/y.y,bottom:(w.bottom-m.bottom+g.bottom)/y.y,left:(m.left-w.left+g.left)/y.x,right:(w.right-m.right+g.right)/y.x}}const Mn=new Set(["left","top"]);function In(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=un(n)!==i||un(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Nn(e){return Ke(e)?e:e.contextElement}function Ln(e){const t=Nn(e);if(!Ye(t))return fn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=In(t);let l=(i?un(n.width):n.width)/r,a=(i?un(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Tn=fn(0);function Fn(e){const t=qe(e);return it()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Tn}function Vn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Nn(e);let l=fn(1);t&&(r?Ke(r)&&(l=Ln(r)):l=Ln(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qe(e))&&t}(i,n,r)?Fn(i):fn(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=qe(i),t=r&&Ke(r)?qe(r):r;let n=e,o=ft(n);for(;o&&r&&t!==n;){const e=Ln(o),t=o.getBoundingClientRect(),r=at(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=qe(o),o=ft(n)}}return Rn({width:u,height:d,x:s,y:c})}function An(e,t){const n=st(e).scrollLeft;return t?t.left+n:Vn(Ge(e)).left+n}function zn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-An(e,n),y:n.top+t.scrollTop}}function $n(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=qe(e),r=Ge(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=it();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=An(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,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ge(e),n=st(e),r=e.ownerDocument.body,o=cn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=cn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+An(e);const a=-n.scrollTop;return"rtl"===at(r).direction&&(l+=cn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Ge(e));else if(Ke(t))r=function(e,t){const n=Vn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ye(e)?Ln(e):fn(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=Fn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Rn(r)}function Hn(e,t){const n=ct(e);return!(n===t||!Ke(n)||lt(n))&&("fixed"===at(n).position||Hn(n,t))}function Bn(e,t,n){const r=Ye(t),o=Ge(t),i="fixed"===n,l=Vn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=fn(0);function c(){s.x=An(o)}if(r||!r&&!i)if(("body"!==We(t)||Je(o))&&(a=st(t)),r){const e=Vn(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?fn(0):zn(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}function Wn(e){return"static"===at(e).position}function qn(e,t){if(!Ye(e)||"fixed"===at(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ge(e)===n&&(n=n.ownerDocument.body),n}function Gn(e,t){const n=qe(e);if(Qe(e))return n;if(!Ye(e)){let t=ct(e);for(;t&&!lt(t);){if(Ke(t)&&!Wn(t))return t;t=ct(t)}return n}let r=qn(e,t);for(;r&&Ze(r)&&Wn(r);)r=qn(r,t);return r&<(r)&&Wn(r)&&!ot(r)?n:r||function(e){let t=ct(e);for(;Ye(t)&&!lt(t);){if(ot(t))return t;if(Qe(t))return null;t=ct(t)}return null}(e)||n}const Un={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Ge(r),a=!!t&&Qe(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=fn(1);const u=fn(0),d=Ye(r);if((d||!d&&!i)&&(("body"!==We(r)||Je(l))&&(s=st(r)),d)){const e=Vn(r);c=Ln(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?fn(0):zn(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Qe(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(e=>Ke(e)&&"body"!==We(e)),o=null;const i="fixed"===at(e).position;let l=i?ct(e):e;for(;Ke(l)&&!lt(l);){const t=at(l),n=ot(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Je(l)&&!n&&Hn(e,l))?r=r.filter(e=>e!==l):o=t,l=ct(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=$n(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=$n(t,i[e],o);a=cn(n.top,a),s=sn(n.right,s),c=sn(n.bottom,c),u=cn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:Gn,getElementRects:async function(e){const t=this.getOffsetParent||Gn,n=this.getDimensions,r=await n(e.floating);return{reference:Bn(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}=In(e);return{width:t,height:n}},getScale:Ln,isElement:Ke,isRTL:function(e){return"rtl"===at(e).direction}};function Kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Nn(e),u=o||i?[...c?dt(c):[],...t?dt(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t){let n,r=null;const o=Ge(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g={rootMargin:-dn(d)+"px "+-dn(o.clientWidth-(u+f))+"px "+-dn(o.clientHeight-(d+p))+"px "+-dn(u)+"px",threshold:cn(0,sn(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||Kn(c,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!s&&g.observe(c),t&&g.observe(t));let h=s?Vn(e):null;return s&&function t(){const r=Vn(e);h&&!Kn(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(f)}}const Xn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=hn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=mn(o),v=wn(a),y=mn(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!h?[Cn(a)]:function(e){const t=Cn(e);return[jn(e),t,jn(t)]}(a)),j="none"!==g;!f&&j&&O.push(...function(e,t,n,r){const o=bn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?xn:_n:t?_n:xn;case"left":case"right":return t?Sn:Pn;default:return[]}}(mn(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(jn)))),i}(a,h,g,w));const _=[a,...O],x=await s.detectOverflow(t,m),S=[];let P=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(x[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=bn(e),o=On(e),i=yn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Cn(l)),[l,Cn(l)]}(o,l,w);S.push(x[e[0]],x[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=_[e];if(t&&("alignment"!==d||v===wn(t)||P.every(e=>wn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(E=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=P.filter(e=>{if(j){const t=wn(e.placement);return t===v||"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:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Jn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=hn(e,t)||{};if(null==c)return{};const d=En(u),f={x:n,y:r},p=On(o),g=yn(p),h=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-f[p]-i.floating[g],O=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let _=j?j[y]:0;_&&await(null==l.isElement?void 0:l.isElement(j))||(_=a.floating[y]||i.floating[g]);const x=w/2-O/2,S=_/2-h[g]/2-1,P=sn(d[b],S),C=sn(d[v],S),E=P,R=_-h[g]-C,k=_/2-h[g]/2+x,D=gn(E,k,R),M=!s.arrow&&null!=bn(o)&&k!==D&&i.reference[g]/2-(k<E?P:C)-h[g]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),Zn=(e,t,n)=>{const r=new Map,o={platform:Un,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Dn},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kn(c,r,s),f=r,p=0;const g={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:m,fn:b}=h,{x:v,y,data:w,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,g[m]={...g[m],...w},O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(c=!0===O.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:u,y:d}=kn(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})};var Qn="undefined"!=typeof document?w.useLayoutEffect:function(){};function er(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(!er(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||er(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function tr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nr(e,t){const n=tr(e);return Math.round(t*n)/n}function rr(e){const t=w.useRef(e);return Qn(()=>{t.current=e}),t}const or=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=mn(n),a=bn(n),s="y"===wn(n),c=Mn.has(l)?-1:1,u=i&&s?-1:1,d=hn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ir=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=hn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=wn(mn(o)),p=vn(f);let g=u[p],h=u[f];if(l){const e="y"===p?"bottom":"right";g=gn(g+d["y"===p?"top":"left"],g,g-d[e])}if(a){const e="y"===f?"bottom":"right";h=gn(h+d["y"===f?"top":"left"],h,h-d[e])}const m=s.fn({...t,[p]:g,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},lr=(e,t)=>{const n=Xn(e);return{name:n.name,fn:n.fn,options:[e,t]}},ar=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Jn({element:n.current,padding:r}).fn(t):{}:n?Jn({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function sr(e){const t=w.useRef(void 0),n=w.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return w.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const cr="data-floating-ui-focusable",ur="active",dr="selected",fr={...O};let pr=!1,gr=0;const hr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gr++,mr=fr.useId||function(){const[e,t]=w.useState(()=>pr?hr():void 0);return Yt(()=>{null==e&&t(hr())},[]),w.useEffect(()=>{pr=!0},[]),e};const br=w.createContext(null),vr=w.createContext(null),yr=()=>{var e;return(null==(e=w.useContext(br))?void 0:e.id)||null},wr=()=>w.useContext(vr);function Or(e){return"data-floating-ui-"+e}function jr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const _r=Or("safe-polygon");function xr(e,t,n){if(n&&!Kt(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function Sr(e){return"function"==typeof e?e():e}let Pr=0;function Cr(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Pr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Pr=requestAnimationFrame(i)}const Er={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Rr(e){return"inert"===e?Er.inert:"aria-hidden"===e?Er["aria-hidden"]:Er.none}let kr=new WeakSet,Dr={},Mr=0;function Ir(e){return e?Xe(e)?e.host:Ir(e.parentNode):null}const Nr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Ir(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Lr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=Nr(t,e),a=new Set,s=new Set(l),c=[];Dr[o]||(Dr[o]=new WeakMap);const u=Dr[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==We(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Rr(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&kr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Mr++,()=>{c.forEach(e=>{const t=Rr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!kr.has(e)&&i&&e.removeAttribute(i),kr.delete(e)),r||e.removeAttribute(o)}),Mr--,Mr||(Er.inert=new WeakMap,Er["aria-hidden"]=new WeakMap,Er.none=new WeakMap,kr=new WeakSet,Dr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Tr={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},Fr=w.forwardRef(function(e,t){const[n,r]=w.useState();Yt(()=>{It()&&r("button")},[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Or("focus-guard")]:"",style:Tr};return(0,F.jsx)("span",{...e,...o})}),Vr={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ar=w.createContext(null),zr=Or("portal");function $r(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=mr(),o=Hr(),[i,l]=w.useState(null),a=w.useRef(null);return Yt(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),Yt(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(zr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),Yt(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Ue(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(zr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:n,root:r}),[l,a]=w.useState(null),s=w.useRef(null),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=null==l?void 0:l.modal,p=null==l?void 0:l.open,g=!!l&&!l.modal&&l.open&&o&&!(!r&&!i);return w.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&&rn(e)&&("focusin"===e.type?ln:on)(i)}},[i,o,f]),w.useEffect(()=>{i&&(p||ln(i))},[p,i]),(0,F.jsxs)(Ar.Provider,{value:w.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i]),children:[g&&i&&(0,F.jsx)(Fr,{"data-type":"outside",ref:s,onFocus:e=>{if(rn(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=nn(l?l.domReference:null);null==e||e.focus()}}}),g&&i&&(0,F.jsx)("span",{"aria-owns":i.id,style:Vr}),i&&an.createPortal(t,i),g&&i&&(0,F.jsx)(Fr,{"data-type":"outside",ref:c,onFocus:e=>{if(rn(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=tn(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Hr=()=>w.useContext(Ar);function Br(e){return w.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Wr=[];function qr(){Wr=Wr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Gr(){qr();const e=Wr[Wr.length-1];return null==e?void 0:e.deref()}function Ur(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=Qt(),o=function(e,t){return(t=t||{}).getShadowRoot?yt([e],t.includeContainer,{filter:St.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):vt(e,t.includeContainer,St.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return kt(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Kr=w.forwardRef(function(e,t){return(0,F.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Tr})});function Yr(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:l=0,returnFocus:a=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0,outsideElementsInert:f=!1,getInsideElements:p=()=>[]}=e,{open:g,onOpenChange:h,events:m,dataRef:b,elements:{domReference:v,floating:y}}=t,O=Zt(()=>{var e;return null==(e=b.current.floatingContext)?void 0:e.nodeId}),j=Zt(p),_="number"==typeof l&&l<0,x=Bt(v)&&_,S="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,P=!S||i,C=!P||S&&f,E=Xt(o),R=Xt(l),k=Xt(a),D=wr(),M=Hr(),I=w.useRef(null),N=w.useRef(null),L=w.useRef(!1),T=w.useRef(!1),V=w.useRef(-1),A=w.useRef(-1),z=null!=M,$=Wt(y),H=Zt(function(e){return void 0===e&&(e=$),e?Rt(e,Qt()):[]}),B=Zt(e=>{const t=H(e);return E.current.map(e=>v&&"reference"===e?v:$&&"floating"===e?$:t).filter(Boolean).flat()});w.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Vt($,Ft($t($)))&&0===H().length&&!x&&Ut(e);const t=B(),n=At(e);"reference"===E.current[0]&&n===v&&(Ut(e),e.shiftKey?Cr(t[t.length-1]):Cr(t[1])),"floating"===E.current[1]&&n===$&&e.shiftKey&&(Ut(e),Cr(t[0]))}}const t=$t($);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,v,$,c,E,x,H,B]),w.useEffect(()=>{if(!r&&y)return y.addEventListener("focusin",e),()=>{y.removeEventListener("focusin",e)};function e(e){const t=At(e),n=H().indexOf(t);-1!==n&&(V.current=n)}},[r,y,H]),w.useEffect(()=>{if(r)return;if(!d)return;function e(){T.current=!0,setTimeout(()=>{T.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=At(e);queueMicrotask(()=>{const o=O(),i=!(Vt(v,t)||Vt(y,t)||Vt(t,y)||Vt(null==M?void 0:M.portalNode,t)||null!=t&&t.hasAttribute(Or("focus-guard"))||D&&(qt(D.nodesRef.current,o).find(e=>{var n,r;return Vt(null==(n=e.context)?void 0:n.elements.floating,t)||Vt(null==(r=e.context)?void 0:r.elements.domReference,t)})||Gt(D.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Wt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===v&&$&&Ur($,E),s&&n!==v&&(null==r||!r.isConnected)&&Ft($t($))===$t($).body){Ye($)&&$.focus();const e=V.current,t=H(),n=t[e]||t[t.length-1]||$;Ye(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:!x&&c||!t||!i||T.current||t===Gr()||(L.current=!0,h(!1,e,"focus-out"))})}const n=Boolean(!D&&M);function o(){jr(A),b.current.insideReactTree=!0,A.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}return y&&Ye(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),y.addEventListener("focusout",t),n&&y.addEventListener("focusout",o,!0),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),y.removeEventListener("focusout",t),n&&y.removeEventListener("focusout",o,!0)}):void 0},[r,v,y,$,c,D,M,h,d,s,H,x,O,E,b]);const W=w.useRef(null),q=w.useRef(null),G=Br([W,null==M?void 0:M.beforeInsideRef]),U=Br([q,null==M?void 0:M.afterInsideRef]);function K(e){return!r&&u&&c?(0,F.jsx)(Kr,{ref:"start"===e?I:N,onClick:e=>h(!1,e.nativeEvent),children:"string"==typeof u?u:"Dismiss"}):null}w.useEffect(()=>{var e,t;if(r)return;if(!y)return;const n=Array.from((null==M||null==(e=M.portalNode)?void 0:e.querySelectorAll("["+Or("portal")+"]"))||[]),o=null==(t=(D?Gt(D.nodesRef.current,O()):[]).find(e=>{var t;return Bt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[y,o,...n,...j(),I.current,N.current,W.current,q.current,null==M?void 0:M.beforeOutsideRef.current,null==M?void 0:M.afterOutsideRef.current,E.current.includes("reference")||x?v:null].filter(e=>null!=e),l=c||x?Lr(i,!C,C):Lr(i);return()=>{l()}},[r,v,y,c,E,M,x,P,C,D,O,j]),Yt(()=>{if(r||!Ye($))return;const e=Ft($t($));queueMicrotask(()=>{const t=B($),n=R.current,r=("number"==typeof n?t[n]:n.current)||$,o=Vt($,e);_||o||!g||Cr(r,{preventScroll:r===$})})},[r,g,$,_,B,R]),Yt(()=>{if(r||!$)return;const e=$t($);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(L.current=!0),"outside-press"===t)if(r)L.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Nt()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Lt()&&(!Nt()&&0===e.width&&0===e.height||Nt()&&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)}(n))L.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),L.current=!e}}t=Ft(e),qr(),t&&"body"!==We(t)&&(Wr.push(new WeakRef(t)),Wr.length>20&&(Wr=Wr.slice(-20))),m.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,Tr),z&&v&&v.insertAdjacentElement("afterend",o),()=>{m.off("openchange",n);const t=Ft(e),r=Vt(y,t)||D&&qt(D.nodesRef.current,O(),!1).some(e=>{var n;return Vt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof k.current){const e=v||Gr();return e&&e.isConnected?e:o}return k.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=Qt();return kt(e,t)?e:Rt(e,t)[0]||e}(i);k.current&&!L.current&&Ye(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,y,$,k,b,m,D,z,v,O]),w.useEffect(()=>(queueMicrotask(()=>{L.current=!1}),()=>{queueMicrotask(qr)}),[r]),Yt(()=>{if(!r&&M)return M.setFocusManagerState({modal:c,closeOnFocusOut:d,open:g,onOpenChange:h,domReference:v}),()=>{M.setFocusManagerState(null)}},[r,M,c,g,h,d,v]),Yt(()=>{r||$&&Ur($,E)},[r,$,E]);const Y=!r&&P&&(!c||!x)&&(z||c);return(0,F.jsxs)(F.Fragment,{children:[Y&&(0,F.jsx)(Fr,{"data-type":"inside",ref:G,onFocus:e=>{if(c){const e=B();Cr("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(L.current=!1,rn(e,M.portalNode)){const e=tn(v);null==e||e.focus()}else{var t;null==(t=M.beforeOutsideRef.current)||t.focus()}}}),!x&&K("start"),n,K("end"),Y&&(0,F.jsx)(Fr,{"data-type":"inside",ref:U,onFocus:e=>{if(c)Cr(B()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(d&&(L.current=!0),rn(e,M.portalNode)){const e=nn(v);null==e||e.focus()}else{var t;null==(t=M.afterOutsideRef.current)||t.focus()}}})]})}function Xr(e){return Ye(e.target)&&"BUTTON"===e.target.tagName}function Jr(e){return Ht(e)}function Zr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=w.useRef(),p=w.useRef(!1),g=w.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(Kt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:Kt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||Xr(e)||(" "!==e.key||Jr(i)||(e.preventDefault(),p.current=!0),function(e){return Ye(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Xr(e)||Jr(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return w.useMemo(()=>l?{reference:g}:{},[l,g])}const Qr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},to=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 no(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:g}=t,h=wr(),m=Zt("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=w.useRef(!1),{escapeKey:y,outsidePress:O}=to(p),{escapeKey:j,outsidePress:_}=to(g),x=w.useRef(!1),S=Zt(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(x.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=h?qt(h.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.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")}),P=Zt(e=>{var t;const n=()=>{var t;S(e),null==(t=At(e))||t.removeEventListener("keydown",n)};null==(t=At(e))||t.addEventListener("keydown",n)}),C=Zt(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=At(e),s="["+Or("inert")+"]",u=$t(o.floating).querySelectorAll(s);let d=Ke(a)?a:null;for(;d&&!lt(d);){const e=ct(d);if(lt(e)||!Ke(e))break;d=e}if(u.length&&Ke(a)&&!a.matches("html,body")&&!Vt(a,o.floating)&&Array.from(u).every(e=>!Vt(d,e)))return;if(Ye(a)&&k){const t=lt(a),n=at(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=h&&qt(h.nodesRef.current,f).some(t=>{var n;return zt(e,null==(n=t.context)?void 0:n.elements.floating)});if(zt(e,o.floating)||zt(e,o.domReference)||p)return;const g=h?qt(h.nodesRef.current,f):[];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")}),E=Zt(e=>{var t;const n=()=>{var t;C(e),null==(t=At(e))||t.removeEventListener(c,n)};null==(t=At(e))||t.addEventListener(c,n)});w.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),x.current=!0}function u(){e=window.setTimeout(()=>{x.current=!1},it()?5:0)}const d=$t(o.floating);a&&(d.addEventListener("keydown",j?P:S,j),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,_?E:C,_);let p=[];return f&&(Ke(o.domReference)&&(p=dt(o.domReference)),Ke(o.floating)&&(p=p.concat(dt(o.floating))),!Ke(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(dt(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})}),()=>{a&&(d.removeEventListener("keydown",j?P:S,j),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,_?E:C,_),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,O,S,j,P,C,_,E]),w.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=w.useMemo(()=>({onKeyDown:S,...u&&{[Qr[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[S,r,u,d]),k=w.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:S,onMouseDown:e,onMouseUp:e,[eo[c]]:()=>{i.current.insideReactTree=!0}}},[S,c,i]);return w.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function ro(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mr(),i=w.useRef({}),[l]=w.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.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=yr(),[s,c]=w.useState(r.reference),u=Zt((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=w.useMemo(()=>({setPositionReference:c}),[]),f=w.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return w.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=w.useState(null),[a,s]=w.useState(null),c=(null==o?void 0:o.domReference)||i,u=w.useRef(null),d=wr();Yt(()=>{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:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);er(f,r)||p(r);const[g,h]=w.useState(null),[m,b]=w.useState(null),v=w.useCallback(e=>{e!==_.current&&(_.current=e,h(e))},[]),y=w.useCallback(e=>{e!==x.current&&(x.current=e,b(e))},[]),O=i||g,j=l||m,_=w.useRef(null),x=w.useRef(null),S=w.useRef(u),P=null!=s,C=rr(s),E=rr(o),R=rr(c),k=w.useCallback(()=>{if(!_.current||!x.current)return;const e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),Zn(_.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==R.current};D.current&&!er(S.current,t)&&(S.current=t,an.flushSync(()=>{d(t)}))})},[f,t,n,E,R]);Qn(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const D=w.useRef(!1);Qn(()=>(D.current=!0,()=>{D.current=!1}),[]),Qn(()=>{if(O&&(_.current=O),j&&(x.current=j),O&&j){if(C.current)return C.current(O,j,k);k()}},[O,j,k,C,P]);const M=w.useMemo(()=>({reference:_,floating:x,setReference:v,setFloating:y}),[v,y]),I=w.useMemo(()=>({reference:O,floating:j}),[O,j]),N=w.useMemo(()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=nr(I.floating,u.x),r=nr(I.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,I.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:k,refs:M,elements:I,floatingStyles:N}),[u,k,M,I,N])}({...e,elements:{...o,...a&&{reference:a}}}),p=w.useCallback(e=>{const t=Ke(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),g=w.useCallback(e=>{(Ke(e)||null===e)&&(u.current=e,l(e)),(Ke(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Ke(e))&&f.refs.setReference(e)},[f.refs]),h=w.useMemo(()=>({...f.refs,setReference:g,setPositionReference:p,domReference:u}),[f.refs,g,p]),m=w.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=w.useMemo(()=>({...f,...r,refs:h,elements:m,nodeId:t}),[f,h,m,t,r]);return Yt(()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),w.useMemo(()=>({...f,context:b,refs:h,elements:m}),[f,h,m,b])}function oo(){return Dt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&It()}function io(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=w.useRef(!1),u=w.useRef(-1),d=w.useRef(!0);w.useEffect(()=>{if(!a)return;const e=qe(l.domReference);function t(){!n&&Ye(l.domReference)&&l.domReference===Ft($t(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),oo()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),oo()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),w.useEffect(()=>{if(a)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,a]),w.useEffect(()=>()=>{jr(u)},[]);const f=w.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=At(e.nativeEvent);if(s&&Ke(t))if(oo()&&!e.relatedTarget){if(!d.current&&!Ht(t))return}else if(!function(e){if(!e||Lt())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Ke(t)&&t.hasAttribute(Or("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Ft(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Vt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Vt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return w.useMemo(()=>a?{reference:f}:{},[a,f])}function lo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ur]:t,[dr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[cr]:""},...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;var l;o&&[ur,dr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.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)})):e[n]=i)}),e):e,{})}}function ao(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=w.useCallback(t=>lo(t,e,"reference"),t),i=w.useCallback(t=>lo(t,e,"floating"),n),l=w.useCallback(t=>lo(t,e,"item"),r);return w.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const so=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function co(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=mr(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=w.useMemo(()=>{var e;return(null==(e=Wt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=so.get(s))?r:s,p=null!=yr(),g=w.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),h=w.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=w.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return w.useMemo(()=>a?{reference:g,floating:h,item:m}:{},[a,g,h,m])}const uo=(0,w.createContext)(null),fo=["style","children"],po=["context"];function go(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 ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach(function(t){mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const vo=(0,w.forwardRef)(function(e,t){let{style:n,children:r}=e,o=bo(e,fo);const i=(0,w.useContext)(uo);if(!i)return null;const{context:l}=i,a=bo(i,po),s=sr([a.refs.setFloating,t]),c=ue();return(0,w.useLayoutEffect)(()=>(i.setDescriptionId(c),()=>i.setDescriptionId(void 0)),[c,i.setDescriptionId]),l.open?(0,F.jsx)($r,{root:a.root,children:(0,F.jsx)(Yr,{context:l,modal:a.modal,children:(0,F.jsx)("div",ho(ho({id:c,ref:s,style:ho(ho({},a.floatingStyles),n),"aria-describedby":a.descriptionId},a.getFloatingProps(o)),{},{children:r}))})}):null});function yo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach(function(t){Oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jo=["children","modal"];function _o(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 xo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const So=e=>{const{children:t,modal:n=!1}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jo),o=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12}=e,[s,c]=(0,w.useState)(t),[u,d]=(0,w.useState)(),f=i??s,p=l??c,g=ro({placement:n,open:f,onOpenChange:p,whileElementsMounted:Yn,middleware:[or(a),lr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),ir({padding:5})]}),{context:h}=g,m=ao([Zr(h,{enabled:null==i}),no(h),co(h)]);return(0,w.useMemo)(()=>wo(wo(wo({open:f,setOpen:p},m),g),{},{modal:r,root:o,descriptionId:u,setDescriptionId:d}),[f,p,m,g,r,o,u])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,F.jsx)(uo.Provider,{value:o,children:t})},Po=["children","wrapTrigger"];function Co(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach(function(t){Ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ro(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ko=(0,w.forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Po);const i=(0,w.useContext)(uo),l=n.ref,a=sr([i?.refs.setReference,t,l]);return i?!r&&(0,w.isValidElement)(n)?(0,w.cloneElement)(n,i.getReferenceProps(Eo(Eo(Eo({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,F.jsx)("div",Eo(Eo({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Do(e){const{description:t,clickable:n,initialOpen:r,placement:o,wrapTrigger:i,containerOffset:l,root:a,open:s,onOpenChange:c,children:u,classes:d,contentStyle:f}=e,[p,g]=(0,w.useState)(!1);return u?t?(0,F.jsxs)(So,{placement:o,initialOpen:r,open:void 0!==s?s:n?p:void 0,onOpenChange:void 0!==c?c:n?g:void 0,containerOffset:l,root:a,children:[(0,F.jsx)(ko,{wrapTrigger:i,onClick:n?()=>g(e=>!e):void 0,className:y()(i?He:void 0,d?.trigger),children:u}),(0,F.jsx)(vo,{className:y()($e,d?.content),style:f,children:t})]}):u:null}function Mo(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lo=e=>(0,F.jsx)(de,Io(Io({},e),{},{children:(0,F.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function To(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 Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(t){Vo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ao=e=>(0,F.jsx)(de,Fo(Fo({},e),{},{children:(0,F.jsx)("path",{d:"M7 10l5 5 5-5z"})}));function zo(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 $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){Ho(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ho(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bo=e=>(0,F.jsx)(de,$o($o({},e),{},{children:(0,F.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function Wo(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach(function(t){Go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uo=e=>(0,F.jsx)(de,qo(qo({},e),{},{children:(0,F.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function Ko(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach(function(t){Xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jo=e=>(0,F.jsx)(de,Yo(Yo({},e),{},{children:(0,F.jsx)("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));function Zo(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 Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ti=e=>(0,F.jsx)(de,Qo(Qo({},e),{},{children:(0,F.jsx)("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.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function ni(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 ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach(function(t){oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ii=e=>(0,F.jsx)(de,ri(ri({},e),{},{children:(0,F.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function li(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach(function(t){si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function si(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ci=e=>(0,F.jsx)(de,ai(ai({},e),{},{children:(0,F.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function ui(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 di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pi=e=>(0,F.jsx)(de,di(di({},e),{},{children:(0,F.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function gi(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 hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bi=e=>(0,F.jsx)(de,hi(hi({},e),{},{children:(0,F.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function vi(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 yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oi=e=>(0,F.jsx)(de,yi(yi({},e),{},{children:(0,F.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));function ji(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 _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Si=e=>(0,F.jsx)(de,_i(_i({},e),{},{children:(0,F.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function Pi(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 Ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ri=e=>(0,F.jsx)(de,Ci(Ci({},e),{},{children:(0,F.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function ki(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 Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ii=e=>(0,F.jsx)(de,Di(Di({},e),{},{children:(0,F.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Ni(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 Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){Ti(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ti(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fi=e=>(0,F.jsx)(de,Li(Li({},e),{},{children:(0,F.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Vi(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $i=e=>(0,F.jsx)(de,Ai(Ai({},e),{},{children:(0,F.jsx)("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function Hi(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach(function(t){Wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qi=e=>(0,F.jsxs)(de,Bi(Bi({},e),{},{children:[(0,F.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),(0,F.jsx)("defs",{children:(0,F.jsx)("clipPath",{id:"clip0_851_25267",children:(0,F.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function Gi(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 Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(t){Ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ki(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yi=e=>(0,F.jsx)(de,Ui(Ui({},e),{},{children:(0,F.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Xi(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 Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(t){Zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qi=e=>(0,F.jsx)(de,Ji(Ji({},e),{},{children:(0,F.jsx)("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function el(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 tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rl=e=>(0,F.jsx)(de,tl(tl({},e),{},{children:(0,F.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}));function ol(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 il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(n),!0).forEach(function(t){ll(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ll(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const al=e=>(0,F.jsx)(de,il(il({},e),{},{children:(0,F.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function sl(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 cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach(function(t){ul(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ul(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dl=e=>(0,F.jsx)(de,cl(cl({},e),{},{children:(0,F.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function fl(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 pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach(function(t){gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hl=e=>(0,F.jsx)(de,pl(pl({},e),{},{children:(0,F.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function ml(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yl=e=>(0,F.jsx)(de,bl(bl({},e),{},{children:(0,F.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function wl(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _l=e=>(0,F.jsx)(de,Ol(Ol({},e),{},{children:(0,F.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function xl(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 Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(n),!0).forEach(function(t){Pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cl=e=>(0,F.jsx)(de,Sl(Sl({},e),{},{children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function El(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 Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach(function(t){kl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dl=e=>(0,F.jsx)(de,Rl(Rl({},e),{},{children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Ml(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 Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ll=e=>(0,F.jsx)(de,Il(Il({},e),{},{children:(0,F.jsx)("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Tl(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach(function(t){Vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Al=e=>(0,F.jsx)(de,Fl(Fl({},e),{},{children:(0,F.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function zl(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 $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bl=e=>(0,F.jsx)(de,$l($l({},e),{},{children:(0,F.jsx)("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 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Wl(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 ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach(function(t){Gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ul=e=>(0,F.jsx)(de,ql(ql({},e),{},{children:(0,F.jsx)("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Kl(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 Yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jl=e=>(0,F.jsx)(de,Yl(Yl({},e),{},{children:(0,F.jsx)("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function Zl(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 Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach(function(t){ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ea(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ta=e=>(0,F.jsx)(de,Ql(Ql({},e),{},{children:(0,F.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach(function(t){oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ia=e=>(0,F.jsx)(de,ra(ra({},e),{},{children:(0,F.jsx)("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function la(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 aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ca=e=>(0,F.jsx)(de,aa(aa({},e),{},{children:(0,F.jsx)("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function ua(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 da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach(function(t){fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pa=e=>(0,F.jsx)(de,da(da({},e),{},{children:(0,F.jsx)("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function ga(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 ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(t){ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ma(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ba=e=>(0,F.jsx)(de,ha(ha({},e),{},{children:(0,F.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function va(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 ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(t){wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oa=e=>(0,F.jsx)(de,ya(ya({},e),{},{children:(0,F.jsx)("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function ja(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 _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sa=e=>(0,F.jsx)(de,_a(_a({},e),{},{children:(0,F.jsx)("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Pa(){const e=(0,w.useContext)(uo);return e?.open?(0,F.jsx)(Bo,{}):(0,F.jsx)(Ao,{})}var Ca="select-module__arrow__hlIMs",Ea="select-module__filled__HCXVQ",Ra="select-module__icon__eKwKi",ka="select-module__input__ajhdt",Da="select-module__item-icon__qWzAS",Ma="select-module__label__b95oB",Ia="select-module__medium__thAU2",Na="select-module__outlined__rTvhS",La="select-module__popover-content__jWbFy",Ta="select-module__popover-target__utEyc",Fa="select-module__root__OCHpB",Va="select-module__small__Fc860",Aa="select-module__with-icon__sdr2r",za="select-module__with-item-icon__j4VL9",$a="select-module__wrapper__wHn5r";const Ha=e=>{const{children:t,fillEvenly:n,classes:r}=e;return(0,F.jsx)("div",{className:y()("buttonsGroup-module__root__rBp1o",n&&"buttonsGroup-module__fill-evenly__J5T6H",r?.root),children:t})};var Ba="menu-module__divider__kik9c",Wa="menu-module__item__DO2AJ",qa="menu-module__item-actions__ecU8y",Ga="menu-module__item-description__BxxnF",Ua="menu-module__item-disabled__E7Z4s",Ka="menu-module__item-icon___HDe4",Ya="menu-module__item-selected__m9VFe",Xa="menu-module__item-text-block__zgpGT",Ja="menu-module__item-title__gcK7P",Za="menu-module__item-title-top__PSYWj",Qa="menu-module__medium__Jev6c",es="menu-module__root__pR_5h",ts="menu-module__small__uGqFV",ns="menu-module__state-layer__m8uMf";function rs(e){const{items:t,size:n="medium",descriptionPosition:o="right",classes:i}=e,l=(0,w.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return(0,F.jsx)("div",{className:y()(es,r[n],i?.root),children:t.map((e,t)=>{const r="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,F.jsx)(r,{tabIndex:-10,className:y()(Wa,e.selected?Ya:void 0,e.disabled?Ua:void 0,i?.item,e.selected?i?.itemSelected:void 0,e.disabled?i?.itemDisabled:void 0),onClick:e.disabled?void 0:l(e),title:e.name,children:(0,F.jsxs)("span",{className:y()(ns),children:[!!e.icon&&(0,F.jsx)("span",{className:y()(Ka,i?.itemIcon,e.selected?i?.itemSelectedIcon:void 0,e.disabled?i?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===o&&e.description?(0,F.jsxs)("span",{className:y()(Xa),children:[(0,F.jsx)("span",{className:y()(Za,Ja,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),(0,F.jsx)("span",{className:y()(Ga,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:y()(Ja,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,F.jsx)("span",{className:y()(Ga,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,F.jsx)("div",{className:y()(qa,i?.itemActions,e.selected?i?.itemSelectedActions:void 0,e.disabled?i?.itemDisabledActions:void 0),children:(0,F.jsx)(Ha,{children:e.subButtons.map((e,t)=>(0,F.jsx)(H,{variant:e.variant,size:n,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,F.jsx)("div",{className:y()(Ba,i?.divider),children:e.name},`menu-divider-${e.name}-${t}`)})})}function os(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:o,classes:i}=e,l=(0,w.useContext)(uo);return(0,F.jsx)(rs,{size:n,classes:i?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===r,onClick:()=>{o(e),l&&l.setOpen(!1)}})})}const is=["variant","componentSize","icon","fullWidth","label","placeholder","items","defaultValue","onValueChange","selected","classes","ref","disabled","id"];function ls(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 as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach(function(t){ss(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ss(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e){const{variant:t="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,placeholder:a,items:s,defaultValue:c,onValueChange:u,selected:d,classes:f,ref:p,disabled:g,id:h}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,is),b=c&&!d,[v,O]=(0,w.useState)(b?s.find(e=>"item"===e.type&&e.value===c):void 0),j=b?v:d,_=(0,w.useRef)(null),x=(0,w.useRef)(null),S=(0,w.useCallback)(e=>{e.preventDefault(),g||x?.current?.click()},[x]),P=e=>{b&&O(e),u?.(e)};(0,w.useEffect)(()=>{if(j){const e=s.find(e=>"item"===e.type&&e.value===j?.value);e||P(e)}},[s,j]);const C=h??ze();return(0,F.jsxs)("div",{className:y()(Fa,n[r],f?.root),style:{maxWidth:i?"100%":void 0},children:[!!l&&(0,F.jsx)(ce,{className:y()(Ma,f?.label),component:"label",variant:"caption",htmlFor:C,onClick:S,children:l}),(0,F.jsxs)("div",{className:y()($a,n[t],o?Aa:void 0,j?.icon?za:void 0,f?.wrapper),children:[(0,F.jsx)("input",as(as({ref:W([_,p]),id:C,className:y()(ka,f?.input),placeholder:a},m),{},{value:j?.name??"",onChange:()=>{},onClick:S,disabled:g})),!!o&&(0,F.jsx)("span",{onClick:S,className:y()(Ra,f?.icon),children:o}),!!j?.icon&&(0,F.jsx)("span",{onClick:S,className:y()(Da,f?.itemIcon),children:j?.icon}),(0,F.jsx)("span",{onClick:S,className:y()(Ca,f?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",classes:as({content:y()(La,"styledScroll",f?.popoverContent)},f?.popover),containerOffset:4,description:(0,F.jsx)(os,{items:s,classes:f,componentSize:r,selectedValue:j?.value,changeSelectedItem:P}),children:(0,F.jsx)("div",{ref:x,className:y()(Ta)})})]})]})}var us=o(353),ds=o.n(us),fs="dateTime-module__filled__nA6CU",ps="dateTime-module__full-width__x5Snf",gs="dateTime-module__icon__H9gzS",hs="dateTime-module__input__p1lxx",ms="dateTime-module__label__FnrxJ",bs="dateTime-module__medium__btb_E",vs="dateTime-module__outlined__MCqbp",ys="dateTime-module__popover-content__I6nGv",ws="dateTime-module__popover-target__PS8vx",Os="dateTime-module__root___CULh",js="dateTime-module__small__bywih",_s="dateTime-module__wrapper__zlOEC",xs="calendarPopover-module__button__Dpl18",Ss="calendarPopover-module__buttons-container__sW9eE",Ps="calendarPopover-module__calendar-container__fGMyq",Cs="calendarPopover-module__cell__fwBxE",Es="calendarPopover-module__cell-circle__PykI1",Rs="calendarPopover-module__cell-data__fnxK0",ks="calendarPopover-module__cell-selection__jmUxe",Ds="calendarPopover-module__cell-selection-first__bRcBr",Ms="calendarPopover-module__cell-selection-last__hyv9Z",Is="calendarPopover-module__cells-container__B6mTs",Ns="calendarPopover-module__date-time-mode__eJCHs",Ls="calendarPopover-module__medium__pk6es",Ts="calendarPopover-module__month__FCpIG",Fs="calendarPopover-module__month-cell-selection__phhRr",Vs="calendarPopover-module__month-cell-selection-first__lSKG9",As="calendarPopover-module__month-cell-selection-last__IKh98",zs="calendarPopover-module__month-view__wNOC9",$s="calendarPopover-module__navigation-arrow__oiWet",Hs="calendarPopover-module__navigation-container__Hut1m",Bs="calendarPopover-module__navigation-title__sp73c",Ws="calendarPopover-module__navigation-value__Ht40y",qs="calendarPopover-module__root__R8QOY",Gs="calendarPopover-module__small__GlV62",Us="calendarPopover-module__time-container__x4jnu",Ks="calendarPopover-module__time-divider__aRbbR",Ys="calendarPopover-module__time-selection-marker__bVI6A",Xs="calendarPopover-module__year__BTz_s";function Js(e){const{values:t,selectedValue:n,onSelect:r}=e,o=t.length,i=36*(o+n),l=(0,w.useRef)(null),a=(0,w.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,w.useEffect)(()=>{const e=l.current;e&&(Math.abs(e.scrollTop-i)<=1||(e.scrollTop=i))},[i]);const s=(0,w.useCallback)(e=>t[(e%o+o)%o],[t,o]),c=(0,w.useCallback)(()=>{const e=l.current;if(!e)return;const t=Math.round(e.scrollTop/36),i=s(t);i!==n&&r(i),(t<o||t>=2*o)&&(e.scrollTop=36*(o+i))},[s,r,n,o]),u=(0,w.useCallback)(e=>()=>{const t=l.current;t?(t.scrollTo({top:36*(o+e),behavior:"smooth"}),r(e)):r(e)},[r,o]);return(0,F.jsx)("div",{ref:l,className:y()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:c,tabIndex:-1,children:a.map((e,t)=>(0,F.jsx)("button",{type:"button",className:y()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===n&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:u(e),children:(0,F.jsx)(ce,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Zs(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:o="date",initStartDate:i,initEndDate:l,changeDates:s,onClear:c,classes:u}=e,d=t??ds(),f="dateTime"===o&&!r,[p,g]=(0,w.useState)("year"===o?"yearsRange":"month"),[h,m]=(0,w.useState)({year:d().year(),month:d().month()}),[b,v]=(0,w.useState)(i?f?d(i).second(0).millisecond(0).valueOf():d(i).startOf("D").valueOf():void 0),[O,j]=(0,w.useState)(l?d(l).startOf("D").valueOf():void 0),[_,x]=(0,w.useState)(f&&i?d(i).hour():0),[S,P]=(0,w.useState)(f&&i?d(i).minute():0),C=(0,w.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),E=(0,w.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),R=(0,w.useMemo)(()=>b?d(b).startOf("D").valueOf():void 0,[b,d]),k=(0,w.useMemo)(()=>O?d(O).startOf("D").valueOf():void 0,[O,d]),D=(0,w.useMemo)(()=>R?d(R).startOf("M").valueOf():void 0,[R,d]),M=(0,w.useMemo)(()=>k?d(k).startOf("M").valueOf():void 0,[k,d]),I=(0,w.useMemo)(()=>R?d(R).year():void 0,[R,d]),N=(0,w.useMemo)(()=>k?d(k).year():void 0,[k,d]),L=(0,w.useMemo)(()=>d(new Date(h.year,h.month,1)).startOf("month"===p?"M":"y"),[h,p,d]),T=L.daysInMonth();let V=L.startOf("M").day()-1;V<0&&(V=6),(0,w.useEffect)(()=>b||O?"year"===o?!r&&b?void s(d(b).format("YYYY")):r&&b&&O?void s(d(b).format("YYYY"),d(O).format("YYYY")):void 0:void(f&&b?s(d(b).second(0).millisecond(0).format()):r||!b?r&&b&&O&&s(d(b).format(),d(O).format()):s(d(b).format())):(c?.(),void s()),[b,O,r,o,f,d,s,c]);const A=(0,w.useCallback)((e,t,n)=>d(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[d]);(0,w.useEffect)(()=>{if(!f||!b)return;const e=A(b,_,S);e!==b&&v(e)},[f,b,_,S,A]);const z=(0,w.useCallback)(e=>()=>{const t=d(new Date(h.year,h.month,1)),n="yearsRange"===p?20*e:e,r="month"===p?"month":"year",o=t.add(n,r);m({month:o.month(),year:o.year()})},[p,h]),$=(0,w.useCallback)(()=>{"year"!==o&&g("month"===p?"year":"year"===p?"yearsRange":"month")},[p,o]),B=(0,w.useCallback)(e=>()=>{m({month:e.month(),year:e.year()}),g("month")},[]),W=(0,w.useCallback)(e=>()=>{const t=d(new Date(e,0,1)).startOf("y").valueOf();if(!r)return v(f&&R===t?void 0:f||b!==t?f?A(t,_,S):t:void 0),void j(void 0);b&&O?t===b?v(void 0):(t===O||v(t),j(void 0)):b?t===b?v(void 0):t<b?(j(b),v(t)):j(t):O?t===O?j(void 0):t<O?v(t):(v(O),j(t)):v(t)},[A,O,f,r,_,S,b,R]),q=(0,w.useMemo)(()=>{const e=L.year();return 20*Math.floor(e/20)},[L]),G=(0,w.useCallback)(e=>()=>{if(!r)return v(b===e?void 0:e),void j(void 0);b&&O?e===b?v(void 0):(e===O||v(e),j(void 0)):b?e===b?v(void 0):e<b?(j(b),v(e)):j(e):O?e===O?j(void 0):e<O?v(e):(v(O),j(e)):v(e)},[b,O,r]),U=(0,w.useCallback)(e=>{v(void 0),j(void 0),f&&(x(0),P(0)),e.currentTarget.blur()},[f]),K=(0,w.useCallback)(e=>{m({year:d().year(),month:d().month()}),e.currentTarget.blur()},[L]);return(0,F.jsxs)("div",{className:y()(qs,a[n],f&&Ns,u?.root),children:[(0,F.jsxs)("div",{className:y()(Ps,"month"===p&&zs),children:[(0,F.jsx)("div",{className:y()(Ss,u?.buttonsContainer),children:(0,F.jsxs)(Ha,{fillEvenly:!0,children:[(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сбросить"}),"year"!==o&&(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:K,children:"Сегодня"})]})}),(0,F.jsxs)("div",{className:y()(Hs,u?.navigationContainer),children:[(0,F.jsx)("button",{type:"button",className:y()(xs,$s,u?.navigationArrow),onClick:z(-1),"aria-label":"Предыдущий период",children:(0,F.jsx)(ci,{})}),(0,F.jsx)("button",{type:"button",className:y()(xs,Ws,u?.navigationValue),onClick:$,children:(0,F.jsxs)(ce,{variant:"subtitle1",className:y()(Bs,u?.navigationTitle),children:["month"===p&&L.format("MMMM YYYY"),"year"===p&&L.format("YYYY"),"yearsRange"===p&&`${q} - ${q+19}`]})}),(0,F.jsx)("button",{type:"button",className:y()(xs,$s,u?.navigationArrow),onClick:z(1),"aria-label":"Следующий период",children:(0,F.jsx)(pi,{})})]}),(0,F.jsxs)("div",{className:y()(Is,u?.cellsContainer),children:["yearsRange"===p&&(0,F.jsx)(F.Fragment,{children:[...Array(20)].map((e,t)=>{const n=q+t,i="year"===o?W(n):()=>{m({month:0,year:n}),g("year")},l="year"===o&&void 0!==I&&(n===I||n===N);let a=!1,s=!1,c=!1;return void 0!==I&&(r?void 0!==N&&(I===N?n===I&&(a=!0):n>=I&&n<=N&&(a=!0,n===I?s=!0:n===N&&(c=!0))):"year"!==o&&n===I&&(a=!0)),(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,Xs,u?.cell,u?.year),onClick:i,children:[l&&(0,F.jsx)("span",{className:y()(Es,u?.cellCircle)}),a&&(0,F.jsx)("span",{className:y()(ks,u?.cellSelection,s&&Ds,s&&u?.cellSelectionFirst,c&&Ms,c&&u?.cellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===p&&(0,F.jsx)(F.Fragment,{children:[...Array(12)].map((e,t)=>{const n=L.add(t,"M"),i=n.valueOf();let l=!1,a=!1,s=!1;return r&&"year"!==o&&void 0!==D&&void 0!==M?D===M?i===D&&(l=!0):i>=D&&i<=M&&(l=!0,i===D?a=!0:i===M&&(s=!0)):r||"year"===o||void 0===D?l=r?void 0!==D&&void 0!==M&&i>=D&&i<=M:void 0!==D&&i===D:i===D&&(l=!0),(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,Ts,u?.cell,u?.month),onClick:B(n),children:[l&&(0,F.jsx)("span",{className:y()(Fs,u?.monthCellSelection,a&&Vs,a&&u?.monthCellSelectionFirst,s&&As,s&&u?.monthCellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===p&&(0,F.jsxs)(F.Fragment,{children:[[...Array(V)].map((e,t)=>(0,F.jsx)("div",{className:y()(Cs,u?.cell)},`empty-cell-${t}`)),[...Array(T)].map((e,t)=>{const n=L.add(t,"d").valueOf();return(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,u?.cell),onClick:G(n),children:[(n===R||n===k)&&(0,F.jsx)("span",{className:y()(Es,u?.cellCircle)}),void 0!==R&&void 0!==k&&n>=R&&n<=k&&(0,F.jsx)("span",{className:y()(ks,u?.cellSelection,n===R&&Ds,n===R&&u?.cellSelectionFirst,n===k&&Ms,n===k&&u?.cellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),f&&(0,F.jsxs)("div",{className:y()(Us),children:[(0,F.jsx)("div",{className:y()(Ys)}),(0,F.jsx)(Js,{values:C,selectedValue:_,onSelect:x}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Ks),children:":"}),(0,F.jsx)(Js,{values:E,selectedValue:S,onSelect:P})]})]})}const Qs=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","placeholder","defaultValues","values","onClear","onValueChange","dayjs","classes","id","onFocus","onBlur"];function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rc=(0,w.forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:o="date",defaultOpen:i=!1,componentSize:a="medium",fullWidth:s,label:c,placeholder:u,defaultValues:d,values:f,onClear:p,onValueChange:g,dayjs:h,classes:m,id:b,onFocus:v,onBlur:O}=e,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qs);const _=h??ds(),[x,S]=(0,w.useState)(void 0!==f?f:d),[P,C]=(0,w.useState)(i),E=(0,w.useRef)(x);(0,w.useEffect)(()=>{void 0!==f&&S(f)},[f]),(0,w.useEffect)(()=>{void 0===f&&void 0!==d&&S(d)},[d,f]),(0,w.useEffect)(()=>{E.current=x},[x]);const R=r&&"dateTime"===o?"date":o,k=(0,w.useRef)(null),D=ue(),M=b??D,I=(0,w.useCallback)(e=>{C(!0),v?.(e)},[v]),N=(0,w.useCallback)(e=>{P||O?.(e)},[P,O]),L=(0,w.useCallback)(e=>{if(C(e),!e){const e=E.current;void 0!==e&&g?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();O?.({target:t,currentTarget:t})}},[O,g]),T=(0,w.useCallback)(()=>{k.current?.focus()},[]),V=(0,w.useCallback)((e,t)=>{const n=r?[e,t]:[e],o=E.current,i=(o?.length??0)===n.length&&o?.every((e,t)=>e===n[t]);i||(E.current=n,S(n))},[r]);return(0,F.jsxs)("div",{className:y()(Os,l[a],s&&ps,m?.root),children:[!!c&&(0,F.jsx)(ce,{className:y()(ms,m?.label),component:"label",variant:"caption",htmlFor:M,children:c}),(0,F.jsxs)("div",{className:y()(_s,l[n],m?.wrapper),children:[(0,F.jsx)("input",tc(tc({ref:W([k,t]),id:M,className:y()(hs,m?.input),placeholder:u},j),{},{value:x?.[0]?r&&x[1]?`${_(x[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${_(x[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${_(x[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:I,onBlur:N})),(0,F.jsx)("span",{onClick:T,className:y()(gs,m?.icon),children:(0,F.jsx)(Si,{})}),(0,F.jsx)(Do,{placement:"bottom-start",open:P,onOpenChange:L,classes:tc(tc({},m?.popover),{},{content:ys}),containerOffset:4,description:(0,F.jsx)(Zs,{dayjs:_,classes:m,componentSize:a,isPeriod:r,valueType:R,initStartDate:x?.[0],initEndDate:x?.[1],changeDates:V,onClear:p}),children:(0,F.jsx)("div",{className:y()(ws)})})]})]})});function oc(){return(oc=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}).apply(this,arguments)}function ic(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function lc(e){var t=(0,w.useRef)(e),n=(0,w.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var ac=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},sc=function(e){return"touches"in e},cc=function(e){return e&&e.ownerDocument.defaultView||self},uc=function(e,t,n){var r=e.getBoundingClientRect(),o=sc(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:ac((o.pageX-(r.left+cc(e).pageXOffset))/r.width),top:ac((o.pageY-(r.top+cc(e).pageYOffset))/r.height)}},dc=function(e){!sc(e)&&e.preventDefault()},fc=w.memo(function(e){var t=e.onMove,n=e.onKey,r=ic(e,["onMove","onKey"]),o=(0,w.useRef)(null),i=lc(t),l=lc(n),a=(0,w.useRef)(null),s=(0,w.useRef)(!1),c=(0,w.useMemo)(function(){var e=function(e){dc(e),(sc(e)?e.touches.length>0:e.buttons>0)&&o.current?i(uc(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=cc(o.current),l=n?i.addEventListener:i.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(dc(t),!function(e,t){return t&&!sc(e)}(t,s.current)&&r)){if(sc(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(uc(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[l,i]),u=c[0],d=c[1],f=c[2];return(0,w.useEffect)(function(){return f},[f]),w.createElement("div",oc({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),pc=function(e){return e.filter(Boolean).join(" ")},gc=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=pc(["react-colorful__pointer",e.className]);return w.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},w.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},hc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},mc=(Math.PI,function(e){return jc(bc(e))}),bc=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?hc(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?hc(parseInt(e.substring(6,8),16)/255,2):1}},vc=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:hc(e.h),s:hc(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:hc(o/2),a:hc(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},yc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:hc(255*[r,a,l,l,s,r][c]),g:hc(255*[s,r,r,a,l,l][c]),b:hc(255*[l,l,s,r,r,a][c]),a:hc(o,2)}},wc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Oc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?wc(hc(255*o)):"";return"#"+wc(t)+wc(n)+wc(r)+i},jc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:hc(60*(a<0?a+6:a)),s:hc(i?l/i*100:0),v:hc(i/255*100),a:o}},_c=w.memo(function(e){var t=e.hue,n=e.onChange,r=pc(["react-colorful__hue",e.className]);return w.createElement("div",{className:r},w.createElement(fc,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:ac(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":hc(t),"aria-valuemax":"360","aria-valuemin":"0"},w.createElement(gc,{className:"react-colorful__hue-pointer",left:t/360,color:vc({h:t,s:100,v:100,a:1})})))}),xc=w.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:vc({h:t.h,s:100,v:100,a:1})};return w.createElement("div",{className:"react-colorful__saturation",style:r},w.createElement(fc,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:ac(t.s+100*e.left,0,100),v:ac(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+hc(t.s)+"%, Brightness "+hc(t.v)+"%"},w.createElement(gc,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:vc(t)})))}),Sc=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Pc(e,t,n){var r=lc(n),o=(0,w.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,w.useRef)({color:t,hsva:i});(0,w.useEffect)(function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},l(n)}},[t,e]),(0,w.useEffect)(function(){var t;Sc(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))},[i,e,r]);var s=(0,w.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var Cc="undefined"!=typeof window?w.useLayoutEffect:w.useEffect,Ec=new Map,Rc=function(e){var t,n=e.className,r=e.colorModel,i=e.color,l=void 0===i?r.defaultColor:i,a=e.onChange,s=ic(e,["className","colorModel","color","onChange"]),c=(0,w.useRef)(null);t=c,Cc(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Ec.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Ec.set(e,n);var r=o.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=Pc(r,l,a),d=u[0],f=u[1],p=pc(["react-colorful",n]);return w.createElement("div",oc({},s,{ref:c,className:p}),w.createElement(xc,{hsva:d,onChange:f}),w.createElement(_c,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},kc={defaultColor:"000",toHsva:mc,fromHsva:function(e){return function(e){return Oc(yc(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||Sc(bc(e),bc(t))}},Dc=function(e){return w.createElement(Rc,oc({},e,{colorModel:kc}))},Mc="colorPicker-module__arrow__iVl5d",Ic="colorPicker-module__icon__IIYmw",Nc="colorPicker-module__input__gaesN",Lc="colorPicker-module__label__PknU4",Tc="colorPicker-module__medium__zOCNs",Fc="colorPicker-module__outlined__Itbqh",Vc="colorPicker-module__popover-content__lql7r",Ac="colorPicker-module__popover-target__M5buG",zc="colorPicker-module__root__yWPxF",$c="colorPicker-module__small___yzV2",Hc="colorPicker-module__wrapper__xpXkA";const Bc=["variant","componentSize","fullWidth","label","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function Wc(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 qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uc=e=>{const{variant:t="outlined",componentSize:n="medium",fullWidth:r,label:o,classes:i,placeholder:l,ref:a,disabled:c,defaultValue:u,id:d,onValueChange:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Bc),[g,h]=(0,w.useState)(u?.toString()??"#AABBCC"),m=(0,w.useRef)(null),b=(0,w.useRef)(null),v=(0,w.useCallback)(e=>{h(e.toUpperCase()),f?.(e.toUpperCase())},[]),O=(0,w.useCallback)(e=>{e.preventDefault(),c||b?.current?.click()},[b]),j=d??ze();return(0,F.jsxs)("div",{className:y()(zc,s[n],i?.root),style:{maxWidth:r?"100%":void 0},children:[!!o&&(0,F.jsx)(ce,{className:y()(Lc,i?.label),component:"label",variant:"caption",htmlFor:j,onClick:O,children:o}),(0,F.jsxs)("div",{className:y()(Hc,s[t],i?.wrapper),children:[(0,F.jsx)("input",qc(qc({ref:W([m,a]),id:j,className:y()(Nc,i?.input),placeholder:l},p),{},{value:g,onChange:()=>{},onClick:O,disabled:c})),(0,F.jsx)("span",{onClick:O,className:y()(Ic,i?.icon),style:{backgroundColor:g}}),(0,F.jsx)("span",{onClick:O,className:y()(Mc,i?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",classes:qc({content:y()(Vc,"styledScroll",i?.popoverContent)},i?.popover),containerOffset:4,description:(0,F.jsx)(Dc,{color:g,onChange:v}),children:(0,F.jsx)("div",{ref:b,className:y()(Ac)})})]})]})};var Kc="input-module__attach-icon__W3URr",Yc="input-module__file-display__GKw0F",Xc="input-module__file-input__Hj1fC",Jc="input-module__file-name__AVwRH",Zc="input-module__filled___69P0",Qc="input-module__full-width__qXDHU",eu="input-module__input__Xce3x",tu="input-module__label__RV8d4",nu="input-module__medium__TdcNA",ru="input-module__outlined___LdLU",ou="input-module__placeholder__QpTXt",iu="input-module__root__QfKhR",lu="input-module__small__kXkJz",au="input-module__wrapper__acqQv";const su=["variant","componentSize","fullWidth","label","classes","placeholder","id","type","onChange"];function cu(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 uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cu(Object(n),!0).forEach(function(t){du(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function du(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fu=(0,w.forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,classes:l,placeholder:a,id:s,type:u,onChange:d}=e,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,su);const p=(0,w.useRef)(null),[g,h]=(0,w.useState)(""),m=ue(),b=s??m,v="file"===u;return(0,F.jsxs)("div",{className:y()(iu,c[r],o&&Qc,l?.root),children:[!!i&&(0,F.jsx)(ce,{className:y()(tu,l?.label),component:"label",variant:"caption",htmlFor:b,children:i}),(0,F.jsx)("div",{className:y()(au,c[n],l?.wrapper),children:v?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("input",uu({ref:W([p,t]),id:b,className:y()(Xc,l?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];h(t?.name??""),d?.(e)}},f)),(0,F.jsxs)("div",{role:"button",tabIndex:0,className:y()(eu,Yc,l?.input),onClick:()=>p.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p.current?.click())},children:[(0,F.jsx)("span",{className:y()(Jc,!g&&ou),children:g||a}),(0,F.jsx)(Uo,{size:20,className:Kc})]})]}):(0,F.jsx)("input",uu({ref:W([p,t]),id:b,className:y()(eu,l?.input),placeholder:a,type:u,autoComplete:"off",onChange:d},f))})]})}),pu=e=>"string"==typeof e,gu=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},hu=e=>null==e?"":String(e),mu=/###/g,bu=e=>e&&e.includes("###")?e.replace(mu,"."):e,vu=e=>!e||pu(e),yu=(e,t,n)=>{const r=pu(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(vu(e))return{};const t=bu(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return vu(e)?{}:{obj:e,k:bu(r[o])}},wu=(e,t,n)=>{const{obj:r,k:o}=yu(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=yu(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=yu(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Ou=(e,t)=>{const{obj:n,k:r}=yu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ju=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?pu(e[r])||e[r]instanceof String||pu(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ju(e[r],t[r],n):e[r]=t[r]);return e},_u=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Su=e=>pu(e)?e.replace(/[&<>"'\/]/g,e=>xu[e]):e,Pu=[" ",",","?","!",";"],Cu=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Eu=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},Ru=e=>e?.replace(/_/g,"-"),ku={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Du{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ku,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>pu(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),pu(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Du(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Du(this.logger,e)}}var Mu=new Du;class Iu{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class Nu extends Iu{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):pu(n)&&o?l.push(...n.split(o)):l.push(n)));const a=Ou(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&pu(n)?Eu(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),wu(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(pu(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=Ou(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ju(a,n,o):a={...a,...n},wu(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Lu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Tu=Symbol("i18next/PATH_KEY");function Fu(e,t){const{[Tu]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Tu?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":";if(n.length>1&&o){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const Vu=e=>!pu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Au extends Iu{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Mu.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Vu(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Pu.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=Cu.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:pu(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:pu(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Fu(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Fu(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const g=f?.usedKey||l,h=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!pu(r.count),y=Au.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",j=v&&!r.ordinal&&0===r.count,_=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let x=p;b&&!p&&y&&(x=_);const S=Vu(x),P=Object.prototype.toString.apply(x);if(!(b&&x&&S)||["[object Number]","[object Function]","[object RegExp]"].includes(P)||pu(m)&&Array.isArray(x))if(b&&pu(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=_),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&_!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?_:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||_)})}):n(e,l,_))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,x,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(x),t=e?[]:{},n=e?h:g;for(const e in x)if(Object.prototype.hasOwnProperty.call(x,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Vu(_)?_[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=x[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=pu(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!pu(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=pu(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=Lu.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return pu(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Fu(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!pu(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(pu(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!pu(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class zu{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mu.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Ru(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Ru(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(pu(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),pu(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return pu(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):pu(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const $u={zero:0,one:1,two:2,few:3,many:4,other:5},Hu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Bu{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Mu.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=Ru("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Hu;if(!e.match(/-|_/))return Hu;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>$u[e]-$u[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Wu=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=Ou(e,n);return void 0!==r?r:Ou(t,n)})(e,t,n);return!i&&o&&pu(n)&&(i=Eu(e,n,r),void 0===i&&(i=Eu(t,n,r))),i},qu=e=>e.replace(/\$/g,"$$$$");class Gu{constructor(e={}){this.logger=Mu.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:Su,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?_u(o):i||"{{",this.suffix=l?_u(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?_u(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?_u(c):"",this.nestingPrefix=d?_u(d):f||_u("$t("),this.nestingSuffix=p?_u(p):g||_u(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=Wu(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(Wu(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>qu(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?qu(this.escape(e)):qu(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=pu(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else pu(i)||this.useRawValueToEscape||(i=hu(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${_u(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!pu(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!pu(o))return o;pu(o)||(o=hu(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Uu=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e(Ru(r),o),t[l]=a),a(n)}},Ku=e=>(t,n,r)=>e(Ru(n),r)(t);class Yu{constructor(e={}){this.logger=Mu.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Uu:Ku;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Uu(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&!o[0].includes(")")&&o.find(e=>e.includes(")"))){const e=o.findIndex(e=>e.includes(")"));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class Xu extends Iu{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Mu.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=yu(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();pu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),pu(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Ju=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),pu(e[1])&&(t.defaultValue=e[1]),pu(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Zu=e=>(pu(e.ns)&&(e.ns=[e.ns]),pu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Qu=()=>{};class ed extends Iu{constructor(e={},t){var n;if(super(),this.options=Zu(e),this.services={},this.logger=Mu,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(pu(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=Ju();this.options={...n,...this.options,...Zu(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Mu.init(r(this.modules.logger),this.options):Mu.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Yu;const t=new zu(this.options);this.store=new Nu(this.options.resources,this.options);const n=this.services;n.logger=Mu,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Bu(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Gu(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Xu(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Au(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Qu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=gu(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=Qu){let n=t;const r=pu(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=gu();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Qu),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Lu.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=gu();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=pu(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(pu(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const l={...this.options,...i};"function"==typeof i.keyPrefix&&(i.keyPrefix=Fu(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Fu(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Fu(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return pu(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=gu();return this.options.ns?(pu(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=gu();pu(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new zu(Ju());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new ed(e,t);return n.createInstance=ed.createInstance,n}cloneInstance(e={},t=Qu){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new ed(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Nu(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Ju().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Gu(n)}return o.translator=new Au(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const td=ed.createInstance();td.createInstance,td.dir,td.init,td.loadResources,td.reloadResources,td.use,td.changeLanguage,td.getFixedT,td.t,td.exists,td.setDefaultNamespace,td.hasLoadedNamespace,td.loadNamespaces,td.loadLanguages,o(915),Object.create(null);const nd=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);sd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},rd={},od=(e,t,n,r)=>{sd(n)&&rd[n]||(sd(n)&&(rd[n]=new Date),nd(e,t,n,r))},id=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ld=(e,t,n)=>{e.loadNamespaces(t,id(e,n))},ad=(e,t,n,r)=>{if(sd(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ld(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,id(e,r))},sd=e=>"string"==typeof e,cd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ud={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dd=e=>ud[e];let fd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(cd,dd),transDefaultProps:void 0};const pd=(0,w.createContext)();class gd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const hd={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"×","÷":"÷","−":"−","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"};new RegExp(Object.keys(hd).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var md=o(888);const bd={t:(e,t)=>{if(sd(t))return t;if("object"==typeof(n=t)&&null!==n&&sd(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},vd=()=>()=>{},yd=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,w.useContext)(pd)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new gd),i||od(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,w.useMemo)(()=>({...fd,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=sd(c)?[c]:c||["translation"],d=(0,w.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,w.useRef)(0),p=(0,w.useCallback)(e=>{if(!i)return vd;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{f.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),g=(0,w.useRef)(),h=(0,w.useCallback)(()=>{if(!i)return bd;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(od(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=f.current,o=g.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?d:d[0],s),ready:e,lng:n,keyPrefix:s,revision:r};return g.current=a,a},[i,d,s,l,t.lng]),[m,b]=(0,w.useState)(0),{t:v,ready:y}=(0,md.useSyncExternalStore)(p,h,h);(0,w.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?ad(i,t.lng,d,e):ld(i,d,e)}},[i,t.lng,d,y,a,m]);const O=i||{},j=(0,w.useRef)(null),_=(0,w.useRef)(),x=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},S=(0,w.useMemo)(()=>{const e=O,t=e?.language;let n=e;e&&(j.current&&j.current.__original===e?_.current!==t?(n=x(e),j.current=n,_.current=t):n=j.current:(n=x(e),j.current=n,_.current=t));const r=y||a?v:(...e)=>(od(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,O,y,O.resolvedLanguage,O.language,O.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?ad(i,t.lng,d,n):ld(i,d,n)});return S},wd=()=>{const{t:e,i18n:t}=yd();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Od="searchInput-module__filled__bFEEy",jd="searchInput-module__icon__zHTol",_d="searchInput-module__input__gX5Td",xd="searchInput-module__medium__ypAHh",Sd="searchInput-module__outlined__x5bUA",Pd="searchInput-module__root__WAhkl",Cd="searchInput-module__small__JmU0u",Ed="searchInput-module__with-icon__fx4_g";const Rd=["variant","componentSize","disableIcon","fullWidth","placeholder","classes","ref"];function kd(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 Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Md(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Id(e){const{variant:t="filled",componentSize:n="medium",disableIcon:r,fullWidth:o,placeholder:i,classes:l,ref:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Rd),{t:c}=wd(),d=(0,w.useRef)(null);return(0,F.jsxs)("div",{className:y()(Pd,u[t],u[n],r?void 0:Ed,l?.root),style:{maxWidth:o?"100%":void 0},children:[!r&&(0,F.jsx)("span",{className:y()(jd,l?.icon),onClick:()=>{d.current?.focus()},children:(0,F.jsx)(hl,{})}),(0,F.jsx)("input",Dd({ref:W([d,a]),className:y()(_d,l?.input),placeholder:i??c("Поиск...")},s))]})}var Nd="wrapForLabel-module__medium__xK1gW",Ld="wrapForLabel-module__root__qo0J8",Td="wrapForLabel-module__small__esSsd";const Fd=e=>{const{componentSize:t="medium",children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()(Ld,d[t],r?.root),children:n})};var Vd="multiSelect-module__arrow__jafPv",Ad="multiSelect-module__checklist-root__hidSo",zd="multiSelect-module__checklist-scrolled__KC8yS",$d="multiSelect-module__checklist-wrapper__EDrnx",Hd="multiSelect-module__clear__CwQiH",Bd="multiSelect-module__filled__Hz9me",Wd="multiSelect-module__full-width__LexBp",qd="multiSelect-module__icon__TnLPX",Gd="multiSelect-module__input__Hk3TU",Ud="multiSelect-module__item-icon__TRHVT",Kd="multiSelect-module__label__hATiI",Yd="multiSelect-module__label-selected-count__gCPqL",Xd="multiSelect-module__medium__BTgaQ",Jd="multiSelect-module__outlined__PSPU8",Zd="multiSelect-module__popover-content__p_jyb",Qd="multiSelect-module__popover-target__x51qe",ef="multiSelect-module__root__J3jt6",tf="multiSelect-module__search-input-root__rCmDl",nf="multiSelect-module__small__l60qu",rf="multiSelect-module__with-icon__eaSrD",of="multiSelect-module__with-item-icon__LfhcF",lf="multiSelect-module__wrapper__lHCC4",af="checklist-module__action-wrap__rW_zg",sf="checklist-module__root__AKDzG",cf="checklist-module__scrolled__mpmGi";function uf(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 df(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ff=(e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach(function(t){df(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]);function pf(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 gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(n),!0).forEach(function(t){hf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e){const{items:t,selected:n,disableSearch:r,isDisabled:o,actionWithSelected:i,onChangeItem:l,classes:a}=e,{t:s}=wd(),[c,u]=(0,w.useState)(""),d=(0,w.useMemo)(()=>ff(t,c,n),[t,c,n]),f=(0,w.useMemo)(()=>t.filter(e=>!!n[e.value]),[t,n]),p=(0,w.useCallback)(e=>{const t=!n[e.value];l&&l(e);const r=gf(gf({},n),{},{[e.value]:t});i(r)},[n,l,i]),g=(0,w.useCallback)(()=>{const e=gf({},n);d.forEach(t=>{e[t.value]=!0}),i(e)},[n,d,i]),h=(0,w.useCallback)(()=>{const e=gf({},n);f.forEach(t=>{delete e[t.value]}),i(e)},[n,f,i]),m=(0,w.useCallback)(e=>{u(e.target.value)},[]),b=(0,w.useCallback)(e=>t=>{t.stopPropagation(),p(e)},[p]);return(0,F.jsxs)("div",{className:y()(sf,a?.root),children:[!r&&(0,F.jsx)(Id,{variant:"outlined",disabled:o,value:c,fullWidth:!0,classes:a?.searchInput,onChange:m}),(0,F.jsxs)("div",{className:y()(cf,"styledScroll",a?.scrolled),children:[f.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:y()(af,a?.actionWrap),children:[(0,F.jsx)(ce,{className:y()(a?.typography),children:s("Выбранное")}),(0,F.jsx)(H,{variant:"link",size:"small",disabled:o,onClick:h,className:y()(a?.button),children:s("Отменить")})]}),(0,F.jsx)("div",{children:f.map(e=>(0,F.jsx)(Fe,{label:e.name,checked:!!n[e.value],onChange:b(e),disabled:o,classes:a?.checkbox},`selected-${e.value}`))})]}),!o&&!!d.length&&(0,F.jsx)(H,{variant:"link",size:"small",disabled:o,onClick:g,className:y()(a?.button),children:s("Выбрать все")}),(0,F.jsx)("div",{children:d.map(e=>(0,F.jsx)(Fe,{label:e.name,checked:!!n[e.value],onChange:b(e),disabled:o,classes:a?.checkbox},`filtered-${e.value}`))})]})]})}const bf=["checklistWrapper"];function vf(e){const{items:t,selected:n,onSelectedChange:r,classes:o,enableSearch:i=!1,disabled:l}=e,a=(0,w.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),s=(0,w.useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),c=(0,w.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);r(n)},[r,t]),u=o??{},{checklistWrapper:d}=u,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(u,bf);return(0,F.jsx)("div",{className:y()(d),children:(0,F.jsx)(mf,{disableSearch:!i,isDisabled:l,items:a,selected:s,actionWithSelected:c,classes:f})})}const yf=(e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("Выбрано элементов")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`}},wf=["variant","componentSize","icon","fullWidth","label","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Of(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 jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(t){_f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _f(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xf(e){const{variant:t="filled",componentSize:n="medium",icon:r,fullWidth:o,label:i,placeholder:l,items:a,onValueChange:s,selected:c,classes:u,ref:d,disabled:p,id:g,titleType:h="allValue",showSelectedCount:m=!1,enableSearch:b=!1,popoverInComponent:v=!1}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,wf),{t:j}=yd(),_=(0,w.useRef)(null),x=(0,w.useRef)(null),S=(0,w.useRef)(null),[P,C]=(0,w.useState)(!1),[E,R]=(0,w.useState)();(0,w.useLayoutEffect)(()=>{const e=_.current;if(!e)return;const t=()=>{R(e.getBoundingClientRect().width)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);const k=(0,w.useMemo)(()=>a.filter(e=>c?.includes(e.value)),[c,a]),D=(0,w.useCallback)(e=>{e.preventDefault(),p||C(e=>!e)},[p]),M=(0,w.useCallback)(e=>{s?.(e)},[s]),I=(0,w.useMemo)(()=>k.length?yf(h,k,j):"",[h,k,j]),N=g??ze();return(0,F.jsxs)("div",{className:y()(ef,f[n],o?Wd:void 0,u?.root),children:[!!i&&(0,F.jsxs)(ce,{className:y()(Kd,u?.label),component:"label",variant:"caption",htmlFor:N,onClick:D,children:[i,m&&k.length>0&&(0,F.jsx)("span",{className:y()(Yd,u?.labelSelectedCount),children:` (${k.length})`})]}),(0,F.jsxs)("div",{ref:_,className:y()(lf,f[t],r?rf:void 0,u?.wrapper),children:[(0,F.jsx)("input",jf(jf({ref:W([x,d]),id:N,className:y()(Gd,u?.input),placeholder:l},O),{},{value:I,onClick:D,disabled:p,readOnly:!0,title:k.map(e=>e.name).join(", "),autoComplete:"off"})),!!r&&(0,F.jsx)("span",{onClick:D,className:y()(qd,u?.icon),children:r}),!!k.length&&(0,F.jsx)("span",{onClick:()=>{s?.(null)},className:y()(Hd,u?.clear),children:(0,F.jsx)(Oi,{})}),(0,F.jsx)("span",{onClick:D,className:y()(Vd,u?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",open:P,onOpenChange:C,contentStyle:E?{width:E,minWidth:E,maxWidth:E}:void 0,classes:jf({content:y()(Zd,u?.popoverContent)},u?.popover),containerOffset:4,root:v?_.current:void 0,description:(0,F.jsx)(vf,{items:a,classes:jf({searchInput:jf({root:tf},u?.selectPopover?.searchInput),root:Ad,checklistWrapper:y()($d),scrolled:zd},u?.selectPopover),componentSize:n,selected:c,onSelectedChange:M,enableSearch:b,disabled:p}),children:(0,F.jsx)("div",{ref:S,className:y()(Qd)})})]})]})}var Sf="radioButton-module__deselected__kGeIi",Pf="radioButton-module__input__O_xQT",Cf="radioButton-module__label__A9fWR",Ef="radioButton-module__label-text__KSEbB",Rf="radioButton-module__pressed__n_bXs",kf="radioButton-module__radio__fDsQH",Df="radioButton-module__root__fxVmv",Mf="radioButton-module__selected__atkc_";const If=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function Nf(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 Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(t){Tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(e){const{label:t,componentSize:n="medium",canUncheck:r,onUncheck:o,classes:i,id:l,ref:a,onClick:s}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,If),u=(0,w.useRef)(null),d=(0,w.useRef)(!1),f=ue(),p=l??f;(0,w.useEffect)(()=>{const e=u.current;if(!e)return;const t=()=>e.classList.remove(Rf),n=()=>{e.classList.add(Rf),d.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g=(0,w.useCallback)(e=>{r&&d.current&&(u.current.checked=!1,o?.()),s?.(e)},[r,o,s]),h="large"===n?"subtitle1":"subtitle2";return(0,F.jsxs)("div",{className:y()(Df,i?.root),children:[(0,F.jsx)("input",Lf({ref:W([u,a]),type:"radio",className:y()(Pf,i?.input),id:p,title:t,onClick:g},c)),(0,F.jsxs)("label",{htmlFor:p,className:y()(Cf,i?.label),title:t,children:[(0,F.jsx)("span",{className:y()(kf,Sf,i?.radio),children:(0,F.jsx)(ti,{})}),(0,F.jsx)("span",{className:y()(kf,Mf,i?.radio),children:(0,F.jsx)(ii,{})}),!!t&&(0,F.jsx)(ce,{variant:h,className:y()(Ef,i?.labelText),children:t})]})]})}var Vf="surface-module__modal__CtpUb",Af="surface-module__panel__WAxUP",zf="surface-module__primary__k8467",$f="surface-module__root__h8d8c";function Hf(e){const{type:t="primary",children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()($f,r?.root,p[t]),children:n})}var Bf="layout-module__root__I9KVI",Wf="layout-module__with-header___aKcB";function qf(e){const{withoutHeader:t,children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()(Bf,t?void 0:Wf,r?.root),children:n})}var Gf="tooltip-module__arrow__SONUP",Uf="tooltip-module__bottom-arrow__GdFYs",Kf="tooltip-module__content__nH6p2",Yf="tooltip-module__error__XWI8s",Xf="tooltip-module__info__un5n7",Jf="tooltip-module__left-arrow__BFwGV",Zf="tooltip-module__right-arrow__ZFRBE",Qf="tooltip-module__success__OXBJT",ep="tooltip-module__top-arrow__UHvch",tp="tooltip-module__trigger__PIfJx",np="tooltip-module__warning__Xb_Wr";const rp=(0,w.createContext)(null),op=["styles","style","children"],ip=["context"];function lp(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(t){sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const up=(0,w.forwardRef)(function(e,t){let{styles:n,style:r,children:o}=e,i=cp(e,op);const l=(0,w.useContext)(rp);if(!l)return null;const{context:a}=l,s=cp(l,ip),c=sr([s.refs.setFloating,t]);if(!a.open)return null;let u="",d=null,f=null;switch(s.placement){case"top":case"top-end":case"top-start":u="topArrow",f=!1;break;case"bottom":case"bottom-end":case"bottom-start":u="bottomArrow",f=!0;break;case"left":case"left-end":case"left-start":u="leftArrow",d=!0;break;case"right":case"right-end":case"right-start":u="rightArrow",d=!1}return(0,F.jsx)($r,{root:s.root,children:(0,F.jsxs)("div",ap(ap({ref:c,style:ap(ap({},s.floatingStyles),r)},s.getFloatingProps(i)),{},{children:[o,!s.withoutArrow&&(0,F.jsx)("div",{className:n&&y()(n.arrow,n[u]),ref:s.arrowRef,style:{position:"absolute",left:null===f&&!1===d?0:s.middlewareData.arrow?.x,right:null===f&&!0===d?0:s.middlewareData.arrow?.x,top:null===d&&!0===f?0:s.middlewareData.arrow?.y,bottom:null===d&&!1===f?0:s.middlewareData.arrow?.y}})]}))})});function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){pp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gp=["children"],hp=e=>{const{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gp),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,w.useState)(t),u=r??s,d=o??c,f=ro({placement:n,open:u,onOpenChange:d,whileElementsMounted:Yn,middleware:[or(12),lr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ir({padding:5}),...!i&&l?.current?[ar({element:l})]:[]]}),{context:p}=f,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=wr(),g=yr(),h=Xt(c),m=Xt(s),b=Xt(n),v=Xt(d),y=w.useRef(),O=w.useRef(-1),j=w.useRef(),_=w.useRef(-1),x=w.useRef(!0),S=w.useRef(!1),P=w.useRef(()=>{}),C=w.useRef(!1),E=Zt(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});w.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(jr(O),jr(_),x.current=!0,C.current=!1)}},[a,i]),w.useEffect(()=>{if(!a)return;if(!h.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=$t(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,h,E]);const R=w.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=xr(m.current,"close",y.current);o&&!j.current?(jr(O),O.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(jr(O),r(!1,e,n))},[m,r]),k=Zt(()=>{P.current(),j.current=void 0}),D=Zt(()=>{if(S.current){const e=$t(l.floating).body;e.style.pointerEvents="",e.removeAttribute(_r),S.current=!1}}),M=Zt(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));w.useEffect(()=>{if(a&&Ke(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(jr(O),x.current=!1,u&&!Kt(y.current)||Sr(v.current)>0&&!xr(m.current,"open"))return;const t=xr(m.current,"open",y.current);t?O.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();P.current();const t=$t(l.floating);if(jr(_),C.current=!1,h.current&&o.current.floatingContext){n||jr(O),j.current=h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(P.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Vt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){jr(O)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,h,o,M,v]),Yt(()=>{var e;if(a&&n&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){S.current=!0;const e=l.floating;if(Ke(l.domReference)&&e){var t;const n=$t(l.floating).body;n.setAttribute(_r,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||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=""}}}},[a,n,g,l,p,h,E]),Yt(()=>{n||(y.current=void 0,C.current=!1,k(),D())},[n,k,D]),w.useEffect(()=>()=>{k(),jr(O),jr(_),D()},[a,l.domReference,k,D]);const I=w.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||b.current||r(!0,t,"hover")}u&&!Kt(y.current)||n||0===Sr(v.current)||C.current&&e.movementX**2+e.movementY**2<2||(jr(_),"touch"===y.current?o():(C.current=!0,_.current=window.setTimeout(o,Sr(v.current))))}}},[u,r,n,b,v]);return w.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),h=ao([g,io(p,{enabled:null==r}),no(p),co(p,{role:"tooltip"})]);return(0,w.useMemo)(()=>fp(fp({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},h),f),[u,d,h,f,a])}(n);return(0,F.jsx)(rp.Provider,{value:r,children:t})},mp=["children","wrapTrigger"];function bp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wp=(0,w.forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,mp);const i=(0,w.useContext)(rp),l=n.ref,a=sr([i?.refs.setReference,t,l]);return i?!r&&(0,w.isValidElement)(n)?(0,w.cloneElement)(n,i.getReferenceProps(vp(vp(vp({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,F.jsx)("div",vp(vp({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Op(e){const{label:t,clickable:n,initialOpen:r,placement:o,withoutArrow:i,wrapTrigger:l,alertType:a="default",root:s,children:c,classes:u}=e,[d,f]=(0,w.useState)(!1),p=(0,w.useRef)(null);return t?c?(0,F.jsxs)(hp,{placement:o,initialOpen:r,open:n?d:void 0,onOpenChange:n?f:void 0,withoutArrow:i,arrowRef:p,root:s,children:[(0,F.jsx)(wp,{wrapTrigger:l,onClick:n?()=>f(e=>!e):void 0,className:l?y()(tp,u?.trigger):void 0,children:c}),(0,F.jsx)(up,{className:y()(Kf,g[a],u?.content),styles:g,children:t})]}):null:c?(0,F.jsx)(F.Fragment,{children:c}):null}var jp="tabs-module__disable-border__Vw9nt",_p="tabs-module__disabled__e_X85",xp="tabs-module__filled__Kzrnb",Sp="tabs-module__icon-only__qDPjH",Pp="tabs-module__medium__dvN0f",Cp="tabs-module__root__m7YiQ",Ep="tabs-module__selected__YEXTT",Rp="tabs-module__selected-filled__MkMIt",kp="tabs-module__small__hiwdI",Dp="tabs-module__tab__NoNie",Mp="tabs-module__tab-border__tvFwj",Ip="tabs-module__tab-border-vertical__TVo15",Np="tabs-module__tab-filled__Gmwpo",Lp="tabs-module__tab-icon__Kj5Oa",Tp="tabs-module__tab-title__XsuJP",Fp="tabs-module__tab-vertical__WQDkd",Vp="tabs-module__vertical__sPO6h";function Ap(e){const{items:t,defaultSelected:n,onChange:r,size:o="medium",filled:i=!1,isVertical:l=!1,disableBorder:a=!1,allowDeselect:s=!1,showTooltips:c=!1,useExternalState:u=!1,value:d,classes:f}=e,[p,g]=(0,w.useState)(!1),[m,b]=(0,w.useState)(n),v=u?d:m,O=e=>()=>{e.isDisabled||(e.onClick?e.onClick():u?s&&v===e.value?r?.(void 0):r?.(e.value):s&&m===e.value?b(void 0):b(e.value))};return(0,w.useEffect)(()=>{p&&!u&&r?.(m),p||g(!0)},[m,u]),(0,F.jsx)("div",{className:y()(Cp,i&&xp,l&&Vp,a&&jp,h[o],f?.root),children:t.map(e=>{const t=!e.onClick&&v===e.value,n=(0,F.jsxs)("div",{className:y()(Dp,i&&Np,l&&Fp,a&&jp,t?Ep:void 0,t&&i?Rp:void 0,e.isDisabled&&_p,f?.tab,t?f?.tabSelected:void 0,e.isDisabled?f?.tabDisabled:void 0),onClick:O(e),children:[(0,F.jsxs)("div",{className:y()(Tp,c&&e.icon&&Sp,f?.tabTitle,t?f?.tabSelectedTitle:void 0),children:[e.icon&&(0,F.jsx)("span",{className:Lp,children:"string"==typeof e.icon?(0,F.jsx)("span",{className:Lp,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!c&&e.name&&(0,F.jsx)("span",{title:e.name,children:e.name})]}),(0,F.jsx)("div",{className:y()(Mp,l&&Ip,a&&jp,f?.tabBorder,t?f?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return c&&e.name?(0,F.jsx)(Op,{label:e.name,placement:l?"right":"top",children:n},`tab-${e.value}`):n})})}function zp(e,t){return"function"==typeof e?e(t):e}function $p(e,t){return n=>{t.setState(t=>({...t,[e]:zp(n,t[e])}))}}function Hp(e){return e instanceof Function}function Bp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/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 Wp(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 qp="debugHeaders";function Gp(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 Up={createTable:e=>{e.getHeaderGroups=Bp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Kp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},Wp(e.options,qp)),e.getCenterHeaderGroups=Bp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Kp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),Wp(e.options,qp)),e.getLeftHeaderGroups=Bp(()=>[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 Kp(t,i,e,"left")},Wp(e.options,qp)),e.getRightHeaderGroups=Bp(()=>[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 Kp(t,i,e,"right")},Wp(e.options,qp)),e.getFooterGroups=Bp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getLeftFooterGroups=Bp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getCenterFooterGroups=Bp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getRightFooterGroups=Bp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getFlatHeaders=Bp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getLeftFlatHeaders=Bp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getCenterFlatHeaders=Bp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getRightFlatHeaders=Bp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getCenterLeafHeaders=Bp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getLeftLeafHeaders=Bp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getRightLeafHeaders=Bp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getLeafHeaders=Bp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},Wp(e.options,qp))}};function Kp(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=Gp(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Gp(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Yp=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],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}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Bp(()=>[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:Bp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Wp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),Wp(e.options,"debugRows")),_getAllCellsByColumnId:Bp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Wp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Xp={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()}}},Jp=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};Jp.autoRemove=e=>ag(e);const Zp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Zp.autoRemove=e=>ag(e);const Qp=(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())};Qp.autoRemove=e=>ag(e);const eg=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};eg.autoRemove=e=>ag(e);const tg=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});tg.autoRemove=e=>ag(e)||!(null!=e&&e.length);const ng=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});ng.autoRemove=e=>ag(e)||!(null!=e&&e.length);const rg=(e,t,n)=>e.getValue(t)===n;rg.autoRemove=e=>ag(e);const og=(e,t,n)=>e.getValue(t)==n;og.autoRemove=e=>ag(e);const ig=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};ig.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,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},ig.autoRemove=e=>ag(e)||ag(e[0])&&ag(e[1]);const lg={includesString:Jp,includesStringSensitive:Zp,equalsString:Qp,arrIncludes:eg,arrIncludesAll:tg,arrIncludesSome:ng,equals:rg,weakEquals:og,inNumberRange:ig};function ag(e){return null==e||""===e}const sg={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:$p("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?lg.includesString:"number"==typeof r?lg.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?lg.equals:Array.isArray(r)?lg.arrIncludes:lg.weakEquals},e.getFilterFn=()=>{var n,r;return Hp(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:lg[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=zp(n,o?o.value:void 0);var l;if(cg(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},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=zp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!cg(t.getFilterFn(),e.value,t)})})},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 cg(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const ug={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},dg={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:$p("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?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?ug.sum:"[object Date]"===Object.prototype.toString.call(r)?ug.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Hp(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:ug[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)}}},fg={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:$p("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Bp(e=>[yg(t,e)],t=>t.findIndex(t=>t.id===e.id),Wp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=yg(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=yg(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=Bp(()=>[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));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},Wp(e.options,"debugTable"))}},pg={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:$p("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,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).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)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"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=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},Wp(t.options,"debugRows")),e.getLeftVisibleCells=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},Wp(t.options,"debugRows")),e.getRightVisibleCells=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},Wp(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?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Wp(e.options,"debugColumns")),e.getRightLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Wp(e.options,"debugColumns")),e.getCenterLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},Wp(e.options,"debugColumns"))}},gg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},hg={getDefaultColumnDef:()=>gg,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:$p("columnSizing",e),onColumnSizingInfoChange:$p("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:gg.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:gg.size),null!=(o=e.columnDef.maxSize)?o:gg.maxSize)},e.getStart=Bp(e=>[e,yg(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Wp(t.options,"debugColumns")),e.getAfter=Bp(e=>[e,yg(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Wp(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)return;if(null==i.persist||i.persist(),bg(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=bg(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,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(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*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",g.moveHandler),null==p||p.removeEventListener("mouseup",g.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof mg)return mg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return mg=e,mg}()&&{passive:!1};bg(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",g.moveHandler,m),null==p||p.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,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 mg=null;function bg(e){return"touchstart"===e.type}const vg={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:$p("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?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=Bp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Wp(t.options,"debugRows")),e.getVisibleCells=Bp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Wp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Bp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Wp(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 yg(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const wg={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:$p("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=>zp(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=zp(t,n.pageIndex);const o=void 0===e.options.pageCount||-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,zp(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=zp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Bp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Wp(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}}},Og={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:$p("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?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)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"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?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Wp(e.options,"debugRows")),e.getBottomRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Wp(e.options,"debugRows")),e.getCenterRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},Wp(e.options,"debugRows"))}},jg={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:$p("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=void 0!==t?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=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{_g(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getFilteredSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getGroupedSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(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 l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return _g(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Sg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Pg(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Pg(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)}}}},_g=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>_g(e,t.id,n,r,o))};function xg(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=Sg(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Sg(e,t){var n;return null!=(n=t[e.id])&&n}function Pg(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()&&(Sg(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Pg(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const Cg=/([0-9]+)/gm;function Eg(e,t){return e===t?0:e>t?1:-1}function Rg(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function kg(e,t){const n=e.split(Cg).filter(Boolean),r=t.split(Cg).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const Dg={alphanumeric:(e,t,n)=>kg(Rg(e.getValue(n)).toLowerCase(),Rg(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>kg(Rg(e.getValue(n)),Rg(t.getValue(n))),text:(e,t,n)=>Eg(Rg(e.getValue(n)).toLowerCase(),Rg(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Eg(Rg(e.getValue(n)),Rg(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)=>Eg(e.getValue(n),t.getValue(n))},Mg={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:$p("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 Dg.datetime;if("string"==typeof n&&(r=!0,n.split(Cg).length>1))return Dg.alphanumeric}return r?Dg.text:Dg.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 Hp(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:Dg[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],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(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"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())}},Ig=[Up,vg,fg,pg,Xp,sg,{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()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:$p("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=()=>lg.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Hp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:lg[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Mg,dg,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:$p("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=>{(null!=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 l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;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?void 0: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()}}}},wg,Og,jg,hg];function Ng(e){var t,n;const r=[...Ig,...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 l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=zp(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:Bp(()=>[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}},Wp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Bp(()=>[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 l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Bp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Wp(e.options,"debugColumns")),getLeafColumns:Bp(()=>[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]},Wp(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},Wp(e,"debugColumns")),getAllFlatColumns:Bp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Wp(e,"debugColumns")),_getAllFlatColumnsById:Bp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Wp(e,"debugColumns")),getAllLeafColumns:Bp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Wp(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 Lg(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?w.createElement(e,t):e:null;var n}function Tg(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){var l,a,s;let c;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some((e,t)=>o[t]!==e);if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/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!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r}return l.updateDeps=e=>{o=e},l}function Fg(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Vg=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Ag=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},zg=e=>e,$g=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},Hg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(Ag(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(Ag(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Bg={passive:!0},Wg="undefined"==typeof window||"onscrollend"in window,qg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&Wg?()=>{}:Vg(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=r=>()=>{const{horizontal:l,isRtl:a}=e.options;o=l?n.scrollLeft*(a?-1:1):n.scrollTop,i(),t(o,r)},a=l(!0),s=l(!1);n.addEventListener("scroll",a,Bg);const c=e.options.useScrollendEvent&&Wg;return c&&n.addEventListener("scrollend",s,Bg),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},Gg=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ug=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class Kg{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:zg,rangeExtractor:$g,onChange:()=>{},measureElement:Gg,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Tg(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=Tg(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,o,i,l)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=Tg(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const c=this.measurementsCache.slice(0,s),u=new Array(i).fill(void 0);for(let e=0;e<s;e++){const t=c[e];t&&(u[t.lane]=e)}for(let o=s;o<e;o++){const e=r(o),i=this.laneAssignments.get(o);let s,d;const f="estimate"===l||a.has(e);if(void 0!==i&&this.options.lanes>1){s=i;const e=u[s],r=void 0!==e?c[e]:void 0;d=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?c[o-1]:this.getFurthestMeasurement(c,o);d=e?e.end+this.options.gap:t+n,s=e?e.lane:o%this.options.lanes,this.options.lanes>1&&f&&this.laneAssignments.set(o,s)}const p=a.get(e),g="number"==typeof p?p:this.options.estimateSize(o),h=d+g;c[o]={index:o,start:d,size:g,end:h,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Tg(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=Yg(0,o,t=>e[t].start,n),l=i;if(1===r)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const a=Array(r).fill(0);for(;l<o&&a.some(e=>e<n+t);){const t=e[l];a[t.lane]=t.end,l++}const s=Array(r).fill(n+t);for(;i>=0&&s.some(e=>e>=n);){const t=e[i];s[t.lane]=t.start,i--}i=Math.max(0,i-i%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Tg(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;const r=this.measurementsCache[e];if(!r)return;const o=t-(this.itemSizeCache.get(r.key)??r.size);0!==o&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.getVirtualItems=Tg(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Fg(t[Yg(0,t.length-1,e=>Fg(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Yg=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Xg="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function Jg(e){return function({useFlushSync:e=!0,...t}){const n=w.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var i;e&&o?(0,an.flushSync)(n):n(),null==(i=t.onChange)||i.call(t,r,o)}},[o]=w.useState(()=>new Kg(r));return o.setOptions(r),Xg(()=>o._didMount(),[]),Xg(()=>o._willUpdate()),o}({observeElementRect:Hg,observeElementOffset:qg,scrollToFn:Ug,...e})}const Zg=32,Qg=["open","onClose","root","children"];function eh(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(t){nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rh=(0,w.forwardRef)(function(e,t){let{open:n,onClose:r,root:o=document.body,children:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qg);const a=(0,w.useRef)(null),s=(0,w.useRef)(null);if(!n||!i)return null;const c=(0,F.jsx)("div",th(th({ref:a,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==a.current&&s.current?.contains(e.target)||(e.stopPropagation(),r?.())}},l),{},{children:(0,F.jsx)("div",{ref:e=>{e&&(s.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:i})}));return(0,an.createPortal)(c,o)});var oh="virtualTable-module__align-center__GE7hn",ih="virtualTable-module__align-left__UwmQP",lh="virtualTable-module__align-right__BgN21",ah="virtualTable-module__borders-all__4E7iX",sh="virtualTable-module__borders-horizontal__sJHrp",ch="virtualTable-module__borders-vertical__vW5hC",uh="virtualTable-module__bottom-border__Aqyxx",dh="virtualTable-module__clickable__rairY",fh="virtualTable-module__editable__vHC_D",ph="virtualTable-module__error__Pc_YH",gh="virtualTable-module__even-row__UtfmY",hh="virtualTable-module__first-th-row__Ic3VG",mh="virtualTable-module__input__URGVM",bh="virtualTable-module__label__RRtAL",vh="virtualTable-module__margin-left-changing__DeOwh",yh="virtualTable-module__medium__fWjBj",wh="virtualTable-module__modal-content__y8dAa",Oh="virtualTable-module__right-border___sLGh",jh="virtualTable-module__root__oT8Aa",_h="virtualTable-module__row-button-trigger__qLWa9",xh="virtualTable-module__rowspan-content__uNqDw",Sh="virtualTable-module__selected__LXpK4",Ph="virtualTable-module__show-in-modal__v55Sn",Ch="virtualTable-module__small__Pbe1H",Eh="virtualTable-module__sticky__kLGF2",Rh="virtualTable-module__success__xPKub",kh="virtualTable-module__table__GccG7",Dh="virtualTable-module__table-container__Z27Uv",Mh="virtualTable-module__td__INgoI",Ih="virtualTable-module__th__xeEGg",Nh="virtualTable-module__th-cell__r6ckx",Lh="virtualTable-module__th-hidden-column__jr_ZK",Th="virtualTable-module__th-left-border__Ns0MX",Fh="virtualTable-module__th-right-border__PR4eS",Vh="virtualTable-module__tr__chmfp",Ah="virtualTable-module__vertical-align-center__Xun5O",zh="virtualTable-module__vertical-align-flex-end__wOSxq",$h="virtualTable-module__vertical-align-flex-start__uBUX9",Hh="virtualTable-module__view-cell__bXl8D",Bh="virtualTable-module__view-span__HfOpN";const Wh={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:o},table:i})=>{const l=e(),{meta:a}=o,s=i.options.meta,[c,u]=(0,w.useState)(l),[d,f]=(0,w.useState)(!1),[p,g]=(0,w.useState)(!1),h=(0,w.useRef)();h.current=()=>{g(!1)},(0,w.useEffect)(()=>{u(l)},[l]);const b=s?.additionalColumnsViews?.(r,l,n[r]?.payload);if(d&&a?.editable){const e=()=>{s?.updateData(t,r,c,n),f(!1)},o=(e,o)=>{u(e),o&&(s?.updateData(t,r,e,n),f(!1))};return(0,F.jsx)(Op,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=b?.edit?b.edit(o,e):(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(fu,{classes:{input:mh},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:c??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const v=null!=b?.view?b.view:a?.valueFormat?a.valueFormat(l):void 0===a?.toFixed||Number.isNaN(parseFloat(l))?l:parseFloat(Number(l).toFixed(a.toFixed));return(0,F.jsx)(Op,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,F.jsxs)("div",{className:y()(Hh,a?.rowsAlign?m[`align${a?.rowsAlign}`]:void 0,a?.showInModal?Ph:void 0,a?.onClick&&n[r]?.payload?dh:void 0,n[r]?.fill?m[n[r].fill]:void 0,a?.editable?fh:void 0,a?.verticalAlign?m[`verticalAlign${a?.verticalAlign}`]:void 0),onClick:a?.editable?()=>{f(!0)}:a?.showInModal?()=>{g(!0)}:a?.onClick&&n[r]?.payload?()=>a?.onClick?.(n[r]?.payload??{}):void 0,children:[(0,F.jsx)("span",{className:Bh,children:v}),p&&(0,F.jsx)(rh,{root:s?.tableContainerRef?.current,open:p,onClose:()=>h.current?.(),children:(0,F.jsx)(Hf,{type:"panel",children:(0,F.jsx)("div",{className:wh,children:v})})})]})})}},qh=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function Gh(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,o]=(0,w.useState)(t);(0,w.useEffect)(()=>{n(r)},[r]);const i=(0,w.useCallback)(()=>{o([void 0,void 0]),n([void 0,void 0])},[]);return(0,F.jsxs)("div",{className:y()("dateFiltration-module__root__hOXOU"),children:[(0,F.jsx)(rc,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{o(e)},tabIndex:-1}),(0,F.jsx)(Op,{label:"Сбросить",children:(0,F.jsx)(H,{onClick:i,className:y()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:(0,F.jsx)(Oi,{})})})]})}var Uh="numberFiltration-module__input___94YM";const Kh=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function Yh(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,o]=(0,w.useState)(t[0]===-1/0&&t[1]===1/0?Kh[0]:t[0]===t[1]?Kh[3]:t[0]===-1/0?Kh[2]:t[1]===1/0?Kh[1]:Kh[0]),[i,l]=(0,w.useState)(t),a=(e,t)=>{l(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},s=(0,w.useCallback)(()=>{l([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,F.jsxs)("div",{className:y()("numberFiltration-module__root__k2DSM"),children:[(0,F.jsx)(cs,{items:Kh,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...i];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}l(t),n(t),o(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),(0,F.jsx)("div",{className:y()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===r.value?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:i[0]>-1/0&&i[0]<1/0?i[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}}),(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})]}):(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:"more"===r.value?i[0]>-1/0&&i[0]<1/0?i[0]:"":i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})}),(0,F.jsx)(Op,{label:"Сбросить",children:(0,F.jsx)(H,{onClick:s,className:y()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:(0,F.jsx)(Oi,{})})})]})}function Xh(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 Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach(function(t){Zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qh(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:o,filtrationByNumber:i=!1,filtrationByDate:l=!1,filtrationByValue:a=!1,valueFormat:s,toFixed:c},sortBy:u,setSortBy:d,filterBy:f,setFilterBy:p,headerName:g,containerRef:h,showUniqueValuesCount:m,leftAdditionalContent:b,rightAdditionalContent:v,children:O,rows:j,rowsForUniqueCount:_}=e,x=o??g,S=(0,w.useMemo)(()=>{const e=j.map(e=>({name:e[x]?s?s(e[x].value):void 0===c||Number.isNaN(parseFloat(e[x].value))?e[x].value?.toString()||"< нет значения >":parseFloat(Number(e[x].value).toFixed(c)).toString():"< нет значения >",value:e[x]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:qh(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,x,s,c]),P=(0,w.useMemo)(()=>{const e=_??j,t=new Set;e.forEach(e=>{const n=e?.[x];t.add(n?(n.value??"")?.toString():"")});const n=f.find(e=>e.columnName===x&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[_,j,x,f]),C=(0,w.useMemo)(()=>{const e={};return f.find(e=>e.columnName===x)?.values.forEach(t=>{e[t]=!0}),e},[f,x]),E=(0,w.useMemo)(()=>f.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[f,x]),R=(0,w.useMemo)(()=>f.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[f,x]),k=e=>()=>{d(t=>t.some(t=>t.columnName===x&&t.direction===e)?t.filter(t=>!(t.columnName===x&&t.direction===e)):t.some(e=>e.columnName===x)?t.map(t=>t.columnName===x?Jh(Jh({},t),{},{direction:e}):Jh({},t)):t.concat([{columnName:x,direction:e,sortType:r}]))},D=f.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),M=Object.keys(C).length>0||D,I=u.some(e=>e.columnName===x&&"desc"===e.direction),N=u.some(e=>e.columnName===x&&"asc"===e.direction),{t:L}=wd(),T=[];return n&&(T.push({type:"divider",name:L("Уникальность значений")}),T.push({type:"item",name:L("Только уникальные"),icon:(0,F.jsx)(yl,{}),selected:D,onClick:()=>{p(e=>{const t=e.findIndex(e=>e.columnName===x&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?Jh(Jh({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:x,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),t&&(T.push({type:"divider",name:L("Сортировка")}),T.push({type:"item",name:L("По возрастанию"),icon:(0,F.jsx)(Cl,{}),selected:u.some(e=>e.columnName===x&&"asc"===e.direction),onClick:k("asc")}),T.push({type:"item",name:L("По убыванию"),icon:(0,F.jsx)(Dl,{}),selected:u.some(e=>e.columnName===x&&"desc"===e.direction),onClick:k("desc")})),(0,F.jsxs)("div",{className:y()("headerDropdown-module__root__vO30T"),children:[b?.(x),O?.(m&&(0,F.jsx)("div",{children:`(${P})`})),v?.(x),(t||n||a||l||i)&&(0,F.jsx)(Do,{placement:"bottom-end",wrapTrigger:!0,root:h,description:(0,F.jsxs)(F.Fragment,{children:[i&&(0,F.jsx)(Yh,{defaultValues:E,actionWithSelected:e=>{p(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===x&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"numberRange"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),l&&(0,F.jsx)(Gh,{defaultValues:R,actionWithSelected:e=>{p(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===x&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"dateRange"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),a&&(0,F.jsx)("div",{className:y()("headerDropdown-module__checklist-wrap__7C0pz"),children:(0,F.jsx)(mf,{items:S,selected:C,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);p(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?Jh(Jh({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===x&&"value"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(t||n)&&(0,F.jsx)("div",{children:(0,F.jsx)(rs,{items:T})})]}),children:(0,F.jsx)(Op,{label:L("Сортировка и фильтрация"),placement:"bottom-end",root:h,children:(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!M&&!I&&!N,icon:M?(0,F.jsx)($i,{}):I?(0,F.jsx)(Dl,{}):N?(0,F.jsx)(Cl,{}):(0,F.jsx)(Ao,{})})})})]})}function em(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const tm=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},nm=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:tm(t?.accessorKey?t:e),columns:e.columns?nm(e.columns,e):void 0})),rm=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(rm(e,t+1,n)):[],om=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(om(e,t-1,n)):[],im=(e,t,n)=>e[t+1]&&om(e,t+1,n).length?[e[t+1].headers[n]].concat(im(e,t+1,n)):[],lm=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(lm(e,t-1)):[],am=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?ds()(n.values[0]):null,o="dateRange"===n.type?ds()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?ds()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return am(i,t.slice(0,t.length-1))}return e},sm=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=qh(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return sm(r,t.slice(0,t.length-1))}return e};function cm(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 um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(t){dm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fm=(0,w.forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:o,onChangeCell:i,cellWidth:l,rowButtons:a,fixedColumnsCount:s=0,headerRowHeight:c=[Zg],bodyRowHeight:u=Zg,rowActionWidth:d=77,classes:f,dynamicRowHeight:p=!1,height:g,scrollToBottom:h,useTableContainerAsRootForPopup:b,size:v="small",borders:O="horizontal",showUniqueValuesCount:j=!1,globalFilters:_,globalSorts:x,onFiltersChange:S,onSortsChange:P,leftAdditionalHeaderContent:C,rightAdditionalHeaderContent:E,showRowsNumbers:R}=e,k=s+(R?1:0),[D,M]=(0,w.useState)(_??[]),[I,N]=(0,w.useState)([...x??[],{columnName:"isNew",direction:"desc"}]),L=(0,w.useRef)(null),T=(0,w.useMemo)(()=>R?`rowNumber_${ze()}`:null,[R]),V=(0,w.useMemo)(()=>{if(!T)return nm(r);const e=t=>um(um({id:T},t?.columns?.length?void 0:{accessorKey:T}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return nm(t)},[r,T]),A=(0,w.useMemo)(()=>{const e=[...n],t=D.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?ds()(e.values[0]):null,r="dateRange"===e.type?ds()(e.values[1]):null;return n.some(n=>{const o="dateRange"===e.type?ds()(n[e.columnName].value):null;return n[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(r)||o.isSame(r)):"numberRange"===e.type?n[e.columnName].value>=e.values[0]&&n[e.columnName].value<=e.values[1]:e.values.includes((n[e.columnName].value||"")?.toString()):e.values.includes("")})}),r=t.length?am(e,t):D.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!ds()(e).isSame(ds()(0))&&!ds()(e).isSame(ds()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=I.length?sm(r,I):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=em(o,e.columnName));const i=T?o.map((e,t)=>um(um({},e),{},{[T]:{value:t+1}})):o;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:i})),i},[n,I,D,T]),z=(0,w.useMemo)(()=>{const e=[...n];return Array.from({length:D.length+1},(t,n)=>am(e,D.slice(0,n)))},[n,D]),$=(0,w.useMemo)(()=>l??(e=>T&&0===e?8*A.length.toString().length+24:V[e]?.meta?.width??200),[l,V,A,T]),B=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:Ng(t)})),[r,o]=w.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:A,columns:V,defaultColumn:Wh,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Bp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Yp(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Wp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:V.filter((e,t)=>t<k).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{i?.(e,t,n,r)},tableContainerRef:L,additionalColumnsViews:o}}),{rows:W}=B.getRowModel(),q=B.getHeaderGroups(),G=Jg({count:W.length,getScrollElement:()=>L?.current,estimateSize:()=>u,overscan:5}),U=Jg({horizontal:!0,count:q[0]?.headers.length??1,rangeExtractor:(0,w.useCallback)(e=>{const t=[...Array(k)].map((e,t)=>t);return[...new Set([...t,...$g(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>L?.current,estimateSize:$,overscan:5}),K=(0,w.useMemo)(()=>[...Array(k)].reduce((e,t,n)=>e+$(n),0),[k,$]),Y=(0,w.useMemo)(()=>{const e=q.length-c.length,t=[...c];if(e>0)for(let n=0;n<e;n++)t.push(Zg);return t},[c,q]),X=(0,w.useMemo)(()=>Y.reduce((e,t,n)=>n<q.length?e+t:e,0),[Y,q]),J=(0,w.useCallback)(e=>Y.reduce((t,n,r)=>r<e?t+n:t,0),[Y,q]),Z=G.getTotalSize(),Q=U.getTotalSize(),ee=()=>{M([])},te=()=>{N([{columnName:"isNew",direction:"desc"}])};(0,w.useImperativeHandle)(t,()=>({resetFilters:ee,resetSorts:te})),(0,w.useEffect)(()=>{if(L?.current){const e=L?.current,t=e.querySelector(`.${Oh}`);if(t){const n=e.clientWidth,r=Q+(a?d:0);t.style.left=`${n>r?r:n}px`}}},[L?.current?.clientWidth,Q,a,d]),(0,w.useEffect)(()=>{if(L?.current){const e=L?.current,t=e.querySelector(`.${uh}`);if(t){const n=e.clientHeight,r=Z+X;t.style.top=`${n>r?r:n}px`}}},[L?.current?.clientHeight,Z]),(0,w.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${vh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return L?.current&&(L.current.addEventListener("scroll",e),h&&L.current.scrollTo(0,L.current.scrollHeight)),()=>{L?.current&&L.current.removeEventListener("scroll",e)}},[L,h]);const ne=G.getVirtualItems(),re=U.getVirtualItems(),oe=re[re.length-1]?.index,ie=(0,w.useMemo)(()=>new Map(ne.map(e=>[e.index,e.size])),[ne]),le=(0,w.useCallback)(e=>ie.get(e)??u,[u,ie]),ae=(0,w.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(W.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=le(t);const l="all"===O||"horizontal"===O?Math.max(0,o-1):0;return Math.max(0,i-l)},[O,le,W.length]),se=(0,w.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=W[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[W]),ce=(0,w.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),ue=(0,w.useMemo)(()=>{const e=W.length,t=new Map;return W.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[W]),de=(0,w.useMemo)(()=>W.length*W.length+W.length+10,[W.length]),fe=e=>{const t=e.column.columnDef.meta?.label;if("string"==typeof t){const n=t.split(/\r\n|\\r\\n|\n|\\n/);if(n.length>1)return(0,F.jsx)(F.Fragment,{children:n.map((t,r)=>(0,F.jsxs)(w.Fragment,{children:[t,r<n.length-1&&(0,F.jsx)("br",{})]},`${e.id}_${r}`))})}return Lg(e.column.columnDef.header,e.getContext())},[pe,ge]=re.length>0?[k&&re[k].index!==k?re[k].start-K:re[0].start,Q-re[re.length-1].end]:[0,0];return(0,w.useEffect)(()=>{S?.(D)},[D]),(0,w.useEffect)(()=>{P?.(I.filter(e=>"isNew"!==e.columnName))},[I]),(0,F.jsx)("div",{className:y()(jh,m[v],m[`borders${he=O,he[0].toUpperCase()+he.substring(1)}`],f?.root),style:g?{height:g}:void 0,children:(0,F.jsxs)("div",{ref:L,className:y()(Dh,"styledScroll"),children:[(0,F.jsxs)("div",{className:kh,style:{height:`${Z+X}px`},children:[(0,F.jsx)("div",{style:{position:"sticky",top:0,zIndex:de},children:q.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=D.findIndex(e=>e.columnName===n),o=-1===r?A:z[r];return(0,F.jsx)("div",{className:y()(Nh),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==T&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?(0,F.jsx)(Qh,{headerMeta:t,sortBy:I,setSortBy:N,filterBy:D,setFilterBy:M,rows:o,rowsForUniqueCount:A,headerName:e.column.columnDef.id??e.id,containerRef:b?L:void 0,showUniqueValuesCount:j,leftAdditionalContent:C,rightAdditionalContent:E,children:n=>(0,F.jsxs)("div",{className:y()(bh,t?.headerAlign?m[`align${t?.headerAlign}`]:ih),children:[fe(e),n]})}):(0,F.jsx)("div",{className:y()(bh,t?.headerAlign?m[`align${t?.headerAlign}`]:ih),children:fe(e)})})};return(0,F.jsxs)(w.Fragment,{children:[[...Array(k)].map((r,o)=>{const i=e.headers[o],l=rm(e.headers,o,oe),a=im(q,t,o);return(0,F.jsx)("div",{className:y()(Ih,0===t?hh:void 0,!a.length&&o!==e.headers.length-1&&Fh,0===o&&Th,a.length&&!l.length&&Lh,vh),style:{zIndex:de+1,width:`${$(o)}px`,height:`${Y[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>$(t)).reduce((e,t)=>e+t,0)}px) translateY(${J(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),re.map(r=>{if(r.index>k-1){const o=e.headers[r.index],i=rm(e.headers,r.index,oe),l=lm(e.headers,r.index),a=im(q,t,r.index),s=om(q,t,r.index),c=i.length||l.length?r.size+i.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,u=i.length||l.length?de+i.length+2:void 0,d=s.length?Y[t]+s.reduce((e,n,r)=>e+(Y[t-r-1]??0),0):Y[t],f=s.length?J(t)-s.reduce((e,n,r)=>e+(Y[t-r-1]??0),0):J(t);return(0,F.jsx)("div",{className:y()(Ih,0===t&&hh,!a.length&&r.index!==e.headers.length-1&&Fh,0===r.index&&Th,a.length&&!i.length&&Lh),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(k?-1:0)}px) translateY(${f}px)`,borderTop:"none"!==O&&0===f?"1px solid var(--border-color)":void 0},children:n(o)},`${e.id}-${o.id}`)}return null}),!!a&&(0,F.jsx)("div",{className:y()(Ih,0===t?hh:void 0),style:{width:`${d}px`,height:`${Y[t]}px`,transform:`translateX(${Q+(k?-2:0)}px) translateY(${J(t)}px)`}})]},e.id)})}),ne.map(e=>{const t=W[e.index];return(0,F.jsxs)("div",{"data-index":e.index,ref:p?G.measureElement:void 0,className:y()(Vh,e.index%2!=0&&gh,1===t.original?.isNew?.value&&Sh),style:um(um({zIndex:ue.get(e.index)??1},!p&&{height:e.size}),{},{transform:"translateY("+(X+e.start-G.options.scrollMargin)+"px)"}),children:[(0,F.jsx)("div",{style:{width:`${pe}px`}}),re.map(n=>{const r=t.getAllCells()[n.index],o="left"===r.column.getIsPinned(),i=t.original?.[r.column.id],l=Math.max(1,i?.rowspan??1),a=se(e.index,r.column.id),s=l>1&&!a;return(0,F.jsx)("div",{"data-col-index":n.index,className:y()(Mh,o&&Eh),style:um(um({},o&&{left:n.start,marginLeft:0===n.index?-1:0}),{},{width:`${n.size}px`},!p&&!s&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(s?(0,F.jsx)("div",{className:xh,style:{height:`${ae(e.index,l)}px`,backgroundColor:ce(t.original,e.index)},children:Lg(r.column.columnDef.cell,r.getContext())}):Lg(r.column.columnDef.cell,r.getContext()))},`cell-${e.key}-${n.key}`)}),!!a&&(0,F.jsx)("div",{className:y()(Mh),style:um({width:`${d}px`,justifyContent:"flex-start",padding:"4px"},!p&&{overflow:"hidden"}),children:a?.(t.original)?.map(n=>(0,F.jsx)(w.Fragment,{children:n.template?n.template(n):(0,F.jsx)(Op,{label:n.title,placement:"top",wrapTrigger:!0,classes:{trigger:_h},children:(0,F.jsx)(H,{onClick:()=>n.onClick?.(e.index,t.original),size:"small",variant:"text",icon:n.icon})})},n.title))}),(0,F.jsx)("div",{style:{width:`${ge}px`}})]},`row-${e.key}`)})]}),"none"!==O&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:Oh,style:{height:`${Z+X}px`}}),(0,F.jsx)("div",{className:uh,style:{width:`${Q}px`}})]})]})});var he});var pm="treeViewItem-module__selectable__ZnWqc",gm="treeViewItem-module__selected__uwOfq";const hm=(0,w.memo)(function e({title:t,value:n,searchValue:r,selected:o,onSelect:i,type:l,isSelectable:a,startIcons:s,children:c}){const[u,d]=(0,w.useState)(!1);(0,w.useEffect)(()=>{d(!!r)},[r]);const f=!!c?.length,p=l&&s?.[l],g=o[n];return(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:y()("treeViewItem-module__item__Ddenr",{[pm]:a}),onClick:()=>{a&&i?i(n):d(!u)},children:[f&&(0,F.jsx)(rl,{}),(0,F.jsxs)("div",{className:y()("treeViewItem-module__title___JZMU",{[gm]:g}),children:[p,(0,F.jsx)(ce,{variant:"subtitle2",children:t}),a&&(0,F.jsx)("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:g?(0,F.jsx)(Ii,{}):(0,F.jsx)(Lo,{})})]})]}),u&&f&&(0,F.jsx)("div",{className:"treeViewItem-module__children__SBb_p",children:c.map(t=>(0,F.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:o,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:s,onSelect:i},t.id))})]})});function mm(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 bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach(function(t){vm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ym=(0,w.memo)(function({data:e,selected:t,startIcons:n,onSelect:r,withSearch:o=!1}){const[i,l]=(0,w.useState)(""),a=(0,w.useCallback)(e=>l(e.target.value),[]),s=(0,w.useMemo)(()=>t.reduce((e,t)=>(e[t]=!0,e),{}),[t]),c=(0,w.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(bm(bm({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,i),[e,i]);return(0,F.jsxs)(F.Fragment,{children:[o&&(0,F.jsx)(Id,{variant:"outlined",value:i,fullWidth:!0,onChange:a,classes:{root:"treeView-module__search__CptHY"}}),(0,F.jsx)("div",{className:"styledScroll",children:c.map(({id:e,name:t,children:o})=>(0,F.jsx)(hm,{title:t,value:e,searchValue:i,children:o,startIcons:n,onSelect:r,selected:s},e))})]})});var wm="pairs-module__dim-typography__CX_Sf",Om="pairs-module__labels-container__AKW8x",jm="pairs-module__labels-with-borders__iC6y_",_m="pairs-module__row-container-borders__H3rCB",xm="pairs-module__values-container__a4t60",Sm="pairs-module__values-with-borders__ssGZ0";function Pm(e){const{label:t}=e,[n,r]=(0,w.useState)(t);return(0,F.jsx)(Op,{label:n,children:(0,F.jsx)(ce,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function Cm(e){const{pairs:t,column1Width:n="50%",column2Width:r="50%",showBorder:o,minRowHeight:i,classes:l}=e;return(0,F.jsx)("div",{className:y()(l?.root),children:t.map((e,t)=>(0,F.jsx)("div",{style:{minHeight:i,display:"flex"},className:y()(l?.rowContainer,{[_m]:o}),children:e&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:y()(Om,l?.labelsContainer,{[jm]:o}),style:{width:n,minWidth:n},children:(0,F.jsx)(ce,{className:wm,children:e.label})}),(0,F.jsx)("div",{style:{width:r,minWidth:r},className:y()(xm,l?.valuesContainer,{[Sm]:o}),children:(0,F.jsx)(Pm,{label:e.value})})]})},t))})}var Em="card-module__actions__ctfFt",Rm="card-module__header__NdV6G",km="card-module__root__uGlLT";function Dm(e){const{surfaceType:t="primary",title:n,actions:r,children:o,classes:i}=e;return(0,F.jsxs)(Hf,{type:t,classes:{root:y()(km,i?.root)},children:[(!!n||!!r)&&(0,F.jsxs)("div",{className:Rm,children:[n??(0,F.jsx)("div",{}),!!r&&(0,F.jsx)("div",{className:y()(Em,i?.actions),children:r})]}),(0,F.jsx)("div",{className:y()(i?.body),children:o})]})}var Mm="chip-module__active__wQcQS",Im="chip-module__clickable__dOcCr",Nm="chip-module__filled__LKP4O",Lm="chip-module__icon__yybCP",Tm="chip-module__icon-clickable__BPoAa",Fm="chip-module__icon-left__LhniG",Vm="chip-module__icon-right__CnqJ6",Am="chip-module__label__RySGy",zm="chip-module__medium__RRnyf",$m="chip-module__outlined__HHje4",Hm="chip-module__root__QN7P0",Bm="chip-module__secondary__yquCM",Wm="chip-module__small__UbquU",qm="chip-module__state-layer__AGbiC",Gm="chip-module__with-icon__ORESD";const Um=e=>{const{variant:t="filled",size:n="medium",icon:r,iconPlacement:o="right",secondary:i,onClick:l,onIconClick:a,children:s,classes:c}=e,u=a?"button":"span";return(0,F.jsx)("div",{className:y()(Hm,b[t],b[n],!!r&&Gm,"left"===o?Fm:Vm,i&&Bm,l&&Im,c?.root),onClick:l,children:(0,F.jsxs)("span",{className:y()(qm,c?.stateLayer),children:[s&&(0,F.jsx)("span",{className:y()(Am,c?.label),children:s}),r&&(0,F.jsx)(u,{className:y()(Lm,a&&Tm,c?.icon),onClick:e=>{e.stopPropagation(),a?.()},"aria-label":"Удалить",children:r})]})})},Km=":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 400;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 16px;\n --text-overline-letter: 1.5px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll {\n margin-right: -16px !important;\n margin-bottom: -16px !important;\n overflow: scroll;\n}\n\n/* общая зона скроллбара */\n.styledScroll::-webkit-scrollbar {\n width: 16px;\n height: 16px;\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb {\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n/* зона трека */\n.styledScroll::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n",Ym="html,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: var(--theme-text-primary);\n background-color: var(--theme-surface-layout);\n transition:\n background-color 0.3s ease,\n color 0.3s ease;\n}\n\nbody {\n font-family: Roboto, sans-serif;\n font-size: var(--text-body2-size);\n font-weight: var(--text-body2-weight);\n line-height: var(--text-body2-height);\n letter-spacing: var(--text-body2-letter);\n}\n",Xm=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #515151;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #515151;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #424242;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Jm=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #515151;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #515151;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #424242;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Zm=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #ffffff;\n\n --theme-modal-shadow-background: rgba(255, 255, 255, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: ##fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(255, 255, 255, 0.04);\n --theme-overlay-8: rgba(255, 255, 255, 0.08);\n --theme-overlay-10: rgba(255, 255, 255, 0.1);\n --theme-overlay-12: rgba(255, 255, 255, 0.12);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #eeeeee;\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Qm="nntc-ui-base-styles",eb=(0,w.createContext)(void 0);function tb(){return(0,w.useContext)(eb)??null}function nb(){return tb()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function rb({children:e}){const[t,n]=(0,w.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,w.useEffect)(()=>{let e=document.getElementById(Qm);e||(e=document.createElement("style"),e.id=Qm,document.head.appendChild(e)),e.textContent=`${Km}\n${Ym}`},[]),(0,w.useEffect)(()=>{const e={light:Zm,dark:Xm,darkBlue:Jm};let n=document.getElementById("theme-style");n||(n=document.createElement("style"),n.id="theme-style",document.head.appendChild(n)),n.textContent=e[t]??e.light},[t]),(0,w.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const r=e=>{n(e.matches?"dark":"light")};return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[]);const r={theme:t,toggleTheme:()=>{n(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{n(e);try{localStorage.setItem("theme",e)}catch{}}};return(0,F.jsx)(eb.Provider,{value:r,children:e})}})(),module.exports=i})();
|
|
2
|
+
(()=>{var e,t,n={353(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,h={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])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(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,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=h;var w="$isDayjsObject",O=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},_=function(e,t){if(O(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},x=b;x.l=j,x.i=O,x.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=h.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.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(p);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()},m.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()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return _(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<_(e)},m.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!x.u(t)||t,f=x.p(e),p=function(e,t){var r=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},g=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,m):p(0,m+1);case a:var y=this.$locale().weekStart||0,w=(h<y?h+7:h)-y;return p(c?b-w:b+(6-w),m);case l:case d:return g(v+"Hours",0);case i:return g(v+"Minutes",1);case o:return g(v+"Seconds",2);case r:return g(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=x.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],g=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var h=this.clone().set(d,1);h.$d[p](g),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[x.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=x.p(c),g=function(e){var t=_(f);return x.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return g(1);if(p===a)return g(7);var h=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*h;return x.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.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=x.z(this),i=this.$H,l=this.$m,a=this.$M,s=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 x.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,l,!0);case"A":return h(i,l,!1);case"m":return String(l);case"mm":return x.s(l,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,g=this,h=x.p(d),m=_(n),b=(m.utcOffset()-this.utcOffset())*e,v=this-m,y=function(){return x.m(g,m)};switch(h){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:x.a(p)},m.daysInMonth=function(){return this.endOf(s).$D},m.$locale=function(){return y[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=j(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},h}(),P=S.prototype;return _.prototype=P,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,S,_),e.$i=!0),_},_.locale=j,_.isDayjs=O,_.unix=function(e){return _(1e3*e)},_.en=y[v],_.Ls=y,_.p={},_}()},493(e,t,n){"use strict";var r=n(953),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,l=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),l(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},888(e,t,n){"use strict";e.exports=n(493)},915(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},953(e){"use strict";e.exports=require("react")},942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var l={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>l[e]=()=>n[e]);return l.default=()=>n,o.d(i,l),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{AddIcon:()=>Lo,AlertIcon:()=>Qi,ArrowDropDownIcon:()=>Ao,ArrowDropUpIcon:()=>Bo,AttachIcon:()=>Uo,BarChartIcon:()=>Jo,BookmarkAddIcon:()=>ca,BookmarkIcon:()=>ia,Button:()=>H,ButtonsGroup:()=>Ha,Card:()=>Dm,Checkbox:()=>Fe,CheckboxDeselectedIcon:()=>he,CheckboxIcon:()=>ye,CheckboxSeveralIcon:()=>_e,Checklist:()=>mf,ChevronLeftIcon:()=>ci,ChevronRightIcon:()=>pi,Chip:()=>Um,CircleFilledIcon:()=>bi,CloseIcon:()=>Oi,ColorPicker:()=>Uc,DateRangeIcon:()=>Si,DateTime:()=>rc,DeleteIcon:()=>Ri,DoneIcon:()=>Ii,DownloadIcon:()=>ba,EditIcon:()=>Ul,ExportTableIcon:()=>pa,FileUploadIcon:()=>Fi,FilterClearIcon:()=>qi,FilterIcon:()=>$i,FullScreenOffIcon:()=>ta,FullScreenOnIcon:()=>Jl,InfoIcon:()=>Yi,Input:()=>fu,KeyboardArrowDownIcon:()=>rl,Layout:()=>qf,ListIcon:()=>al,Menu:()=>rs,Modal:()=>rh,MoreVerticalIcon:()=>dl,MultiSelect:()=>xf,Pairs:()=>Cm,PointIcon:()=>Sa,Popover:()=>Do,RadioButton:()=>Ff,RadioDeselectedIcon:()=>ti,RadioSelectedIcon:()=>ii,SearchIcon:()=>hl,SearchInput:()=>Id,Select:()=>cs,SelectUniqueIcon:()=>yl,SettingsIcon:()=>_l,SortDownIcon:()=>Cl,SortUpIcon:()=>Dl,Surface:()=>Hf,TableChartIcon:()=>Ll,Tabs:()=>Ap,ThemeProvider:()=>rb,Tooltip:()=>Op,TreeView:()=>ym,Typography:()=>ce,UploadIcon:()=>Al,VirtualTable:()=>fm,VisibilityIcon:()=>Oa,WellIcon:()=>Bl,WrapForLabel:()=>Fd,useTheme:()=>tb,useThemeWithFallback:()=>nb,virtualTableDefaultRowHeight:()=>Zg});var e={};o.r(e),o.d(e,{active:()=>j,elevated:()=>_,filled:()=>x,link:()=>S,medium:()=>P,onlyIcon:()=>C,outlined:()=>E,root:()=>R,small:()=>k,stateLayer:()=>D,text:()=>M,textSecondary:()=>I,tonal:()=>N,withIcon:()=>L,withoutIcon:()=>T});var t={};o.r(t),o.d(t,{body1:()=>q,body2:()=>G,button:()=>U,caption:()=>K,h1:()=>Y,h2:()=>X,h3:()=>J,h4:()=>Z,h5:()=>Q,h6:()=>ee,h7:()=>te,overline:()=>ne,subtitle1:()=>re,subtitle2:()=>oe});var n={};o.r(n),o.d(n,{arrow:()=>Ca,filled:()=>Ea,icon:()=>Ra,input:()=>ka,itemIcon:()=>Da,label:()=>Ma,medium:()=>Ia,outlined:()=>Na,popoverContent:()=>La,popoverTarget:()=>Ta,root:()=>Fa,small:()=>Va,withIcon:()=>Aa,withItemIcon:()=>za,wrapper:()=>$a});var r={};o.r(r),o.d(r,{divider:()=>Ba,item:()=>Wa,itemActions:()=>qa,itemDescription:()=>Ga,itemDisabled:()=>Ua,itemIcon:()=>Ka,itemSelected:()=>Ya,itemTextBlock:()=>Xa,itemTitle:()=>Ja,itemTitleTop:()=>Za,medium:()=>Qa,root:()=>es,small:()=>ts,stateLayer:()=>ns});var l={};o.r(l),o.d(l,{filled:()=>fs,fullWidth:()=>ps,icon:()=>gs,input:()=>hs,label:()=>ms,medium:()=>bs,outlined:()=>vs,popoverContent:()=>ys,popoverTarget:()=>ws,root:()=>Os,small:()=>js,wrapper:()=>_s});var a={};o.r(a),o.d(a,{button:()=>xs,buttonsContainer:()=>Ss,calendarContainer:()=>Ps,cell:()=>Cs,cellCircle:()=>Es,cellData:()=>Rs,cellSelection:()=>ks,cellSelectionFirst:()=>Ds,cellSelectionLast:()=>Ms,cellsContainer:()=>Is,dateTimeMode:()=>Ns,medium:()=>Ls,month:()=>Ts,monthCellSelection:()=>Fs,monthCellSelectionFirst:()=>Vs,monthCellSelectionLast:()=>As,monthView:()=>zs,navigationArrow:()=>$s,navigationContainer:()=>Hs,navigationTitle:()=>Bs,navigationValue:()=>Ws,root:()=>qs,small:()=>Gs,timeContainer:()=>Us,timeDivider:()=>Ks,timeSelectionMarker:()=>Ys,year:()=>Xs});var s={};o.r(s),o.d(s,{arrow:()=>Mc,icon:()=>Ic,input:()=>Nc,label:()=>Lc,medium:()=>Tc,outlined:()=>Fc,popoverContent:()=>Vc,popoverTarget:()=>Ac,root:()=>zc,small:()=>$c,wrapper:()=>Hc});var c={};o.r(c),o.d(c,{attachIcon:()=>Kc,fileDisplay:()=>Yc,fileInput:()=>Xc,fileName:()=>Jc,filled:()=>Zc,fullWidth:()=>Qc,input:()=>eu,label:()=>tu,medium:()=>nu,outlined:()=>ru,placeholder:()=>ou,root:()=>iu,small:()=>lu,wrapper:()=>au});var u={};o.r(u),o.d(u,{filled:()=>Od,icon:()=>jd,input:()=>_d,medium:()=>xd,outlined:()=>Sd,root:()=>Pd,small:()=>Cd,withIcon:()=>Ed});var d={};o.r(d),o.d(d,{medium:()=>Nd,root:()=>Ld,small:()=>Td});var f={};o.r(f),o.d(f,{arrow:()=>Vd,checklistRoot:()=>Ad,checklistScrolled:()=>zd,checklistWrapper:()=>$d,clear:()=>Hd,filled:()=>Bd,fullWidth:()=>Wd,icon:()=>qd,input:()=>Gd,itemIcon:()=>Ud,label:()=>Kd,labelSelectedCount:()=>Yd,medium:()=>Xd,outlined:()=>Jd,popoverContent:()=>Zd,popoverTarget:()=>Qd,root:()=>ef,searchInputRoot:()=>tf,small:()=>nf,withIcon:()=>rf,withItemIcon:()=>of,wrapper:()=>lf});var p={};o.r(p),o.d(p,{modal:()=>Vf,panel:()=>Af,primary:()=>zf,root:()=>$f});var g={};o.r(g),o.d(g,{arrow:()=>Gf,bottomArrow:()=>Uf,content:()=>Kf,error:()=>Yf,info:()=>Xf,leftArrow:()=>Jf,rightArrow:()=>Zf,success:()=>Qf,topArrow:()=>ep,trigger:()=>tp,warning:()=>np});var h={};o.r(h),o.d(h,{disableBorder:()=>jp,disabled:()=>_p,filled:()=>xp,iconOnly:()=>Sp,medium:()=>Pp,root:()=>Cp,selected:()=>Ep,selectedFilled:()=>Rp,small:()=>kp,tab:()=>Dp,tabBorder:()=>Mp,tabBorderVertical:()=>Ip,tabFilled:()=>Np,tabIcon:()=>Lp,tabTitle:()=>Tp,tabVertical:()=>Fp,vertical:()=>Vp});var m={};o.r(m),o.d(m,{alignCenter:()=>oh,alignLeft:()=>ih,alignRight:()=>lh,bordersAll:()=>ah,bordersHorizontal:()=>sh,bordersVertical:()=>ch,bottomBorder:()=>uh,clickable:()=>dh,editable:()=>fh,error:()=>ph,evenRow:()=>gh,firstThRow:()=>hh,input:()=>mh,label:()=>bh,marginLeftChanging:()=>vh,medium:()=>yh,modalContent:()=>wh,rightBorder:()=>Oh,root:()=>jh,rowButtonTrigger:()=>_h,rowspanContent:()=>xh,selected:()=>Sh,showInModal:()=>Ph,small:()=>Ch,sticky:()=>Eh,success:()=>Rh,table:()=>kh,tableContainer:()=>Dh,td:()=>Mh,th:()=>Ih,thCell:()=>Nh,thHiddenColumn:()=>Lh,thLeftBorder:()=>Th,thRightBorder:()=>Fh,tr:()=>Vh,verticalAlignCenter:()=>Ah,verticalAlignFlexEnd:()=>zh,verticalAlignFlexStart:()=>$h,viewCell:()=>Hh,viewSpan:()=>Bh});var b={};o.r(b),o.d(b,{active:()=>Mm,clickable:()=>Im,filled:()=>Nm,icon:()=>Lm,iconClickable:()=>Tm,iconLeft:()=>Fm,iconRight:()=>Vm,label:()=>Am,medium:()=>zm,outlined:()=>$m,root:()=>Hm,secondary:()=>Bm,small:()=>Wm,stateLayer:()=>qm,withIcon:()=>Gm});var v=o(942),y=o.n(v),w=o(953),O=o.t(w,2),j="button-module__active__hSEWs",_="button-module__elevated__nAlrD",x="button-module__filled__D7eAr",S="button-module__link__F_tgW",P="button-module__medium__v66y0",C="button-module__only-icon__zOzfl",E="button-module__outlined__c_PHO",R="button-module__root__gX6OQ",k="button-module__small__HHNmk",D="button-module__state-layer__t1MJf",M="button-module__text__rG7nD",I="button-module__text-secondary__jXFdx",N="button-module__tonal__u6w_G",L="button-module__with-icon__C4Cw6",T="button-module__without-icon__GOGFF";const F=require("react/jsx-runtime"),V=["variant","size","icon","textSecondary","isActive","className","children","classes"];function A(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const H=(0,w.forwardRef)(function(t,n){let{variant:r="filled",size:o="medium",icon:i,textSecondary:l,isActive:a,className:s,children:c,classes:u}=t,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,V);return(0,F.jsx)("button",z(z({className:y()(R,e[r],e[o],i?c?L:C:T,a?j:void 0,l?I:void 0,s,u?.root)},d),{},{ref:n,children:(0,F.jsxs)("span",{className:y()(D,u?.stateLayer),children:[i,c]})}))});function B(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var W=parseInt(w.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=B(r,t),o="function"==typeof e;n.push(o?e:()=>B(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)B(n,t)}},q="typography-module__body1__x76Hw",G="typography-module__body2__xQKKj",U="typography-module__button__dx69P",K="typography-module__caption__cWpWz",Y="typography-module__h1__pRuCD",X="typography-module__h2__tNSpQ",J="typography-module__h3__YqCF_",Z="typography-module__h4__BCkqi",Q="typography-module__h5__z84mf",ee="typography-module__h6__C2Wqz",te="typography-module__h7__B6VO6",ne="typography-module__overline__IkqBV",re="typography-module__subtitle1__NO_el",oe="typography-module__subtitle2__TKKn5";const ie=["variant","component","children","className"];function le(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 ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach(function(t){se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ce=(0,w.forwardRef)(function(e,n){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ie);const s=o||"span";return(0,F.jsx)(s,ae(ae({className:y()(t[r],l)},a),{},{ref:n,children:i}))});function ue(){const e=w;return"function"==typeof e.useId?e.useId():(0,w.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const de=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,F.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:n,xmlns:"http://www.w3.org/2000/svg",children:r});function fe(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 pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ge(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const he=e=>(0,F.jsx)(de,pe(pe({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function me(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 be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach(function(t){ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ve(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ye=e=>(0,F.jsx)(de,be(be({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach(function(t){je(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _e=e=>(0,F.jsx)(de,Oe(Oe({},e),{},{children:(0,F.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var xe="checkbox-module__checkbox__x6SCC",Se="checkbox-module__deselected__ZuA24",Pe="checkbox-module__input__SjKVz",Ce="checkbox-module__label__tkrMd",Ee="checkbox-module__label-text__kXha_",Re="checkbox-module__pressed__mLWO0",ke="checkbox-module__root__xJtJG",De="checkbox-module__selected__pLwVq",Me="checkbox-module__several__TYjeg";const Ie=["label","several","componentSize","classes","id","ref"];function Ne(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach(function(t){Te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Te(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){const{label:t,several:n,componentSize:r="medium",classes:o,id:i,ref:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ie),s=(0,w.useRef)(null),c=ue(),u=i??c;(0,w.useEffect)(()=>{const e=s.current;if(!e)return;const t=()=>e.classList.remove(Re),n=()=>e.classList.add(Re);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const d="large"===r?"subtitle1":"subtitle2";return(0,F.jsxs)("div",{className:y()(ke,o?.root),children:[(0,F.jsx)("input",Le({ref:W([s,l]),type:"checkbox",className:y()(Pe,o?.input),id:u,title:t},a)),(0,F.jsxs)("label",{htmlFor:u,className:y()(Ce,o?.label),title:t,children:[n?(0,F.jsx)("span",{className:y()(xe,Me,o?.checkbox),children:(0,F.jsx)(_e,{})}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:y()(xe,Se,o?.checkbox),children:(0,F.jsx)(he,{})}),(0,F.jsx)("span",{className:y()(xe,De,o?.checkbox),children:(0,F.jsx)(ye,{})})]}),!!t&&(0,F.jsx)(ce,{variant:d,className:y()(Ee,o?.labelText),children:t})]})]})}const Ve=new Uint8Array(16),Ae=[];for(let e=0;e<256;++e)Ae.push((e+256).toString(16).slice(1));const ze=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Ve);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var $e="popover-module__content__cXVJ_",He="popover-module__trigger__hYNqD";function Be(){return"undefined"!=typeof window}function We(e){return Ue(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ge(e){var t;return null==(t=(Ue(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ue(e){return!!Be()&&(e instanceof Node||e instanceof qe(e).Node)}function Ke(e){return!!Be()&&(e instanceof Element||e instanceof qe(e).Element)}function Ye(e){return!!Be()&&(e instanceof HTMLElement||e instanceof qe(e).HTMLElement)}function Xe(e){return!(!Be()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot)}function Je(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ze(e){return/^(table|td|th)$/.test(We(e))}function Qe(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const et=/transform|translate|scale|rotate|perspective|filter/,tt=/paint|layout|strict|content/,nt=e=>!!e&&"none"!==e;let rt;function ot(e){const t=Ke(e)?at(e):e;return nt(t.transform)||nt(t.translate)||nt(t.scale)||nt(t.rotate)||nt(t.perspective)||!it()&&(nt(t.backdropFilter)||nt(t.filter))||et.test(t.willChange||"")||tt.test(t.contain||"")}function it(){return null==rt&&(rt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rt}function lt(e){return/^(html|body|#document)$/.test(We(e))}function at(e){return qe(e).getComputedStyle(e)}function st(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ct(e){if("html"===We(e))return e;const t=e.assignedSlot||e.parentNode||Xe(e)&&e.host||Ge(e);return Xe(t)?t.host:t}function ut(e){const t=ct(e);return lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Je(t)?t:ut(t)}function dt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ut(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=qe(o);if(i){const e=ft(l);return t.concat(l,l.visualViewport||[],Je(o)?o:[],e&&n?dt(e):[])}return t.concat(o,dt(o,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var pt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),gt="undefined"==typeof Element,ht=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mt=!gt&&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},bt=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):bt(e.parentNode))},vt=function(e,t,n){if(bt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(pt));return t&&ht.call(e,pt)&&r.unshift(e),r.filter(n)},yt=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!bt(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=yt(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{ht.call(i,pt)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!bt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=yt(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ot=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))&&!wt(e)?0:e.tabIndex},jt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_t=function(e){return"INPUT"===e.tagName},xt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},St=function(e,t){return!(t.disabled||function(e){return _t(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=ht.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ht.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xt(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,a=mt(e);if(l&&!l.shadowRoot&&!0===r(l))return xt(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,r,o,i=e&&mt(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=mt(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(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!!ht.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Pt=function(e,t){return!(function(e){return function(e){return _t(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||mt(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"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)}(t)||Ot(t)<0||!St(e,t))},Ct=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Et=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=Ot(e);return n<0&&t&&!wt(e)?0:n}(i,o),a=o?Et(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(jt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Rt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?yt([e],t.includeContainer,{filter:Pt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ct}):vt(e,t.includeContainer,Pt.bind(null,t)),Et(n)},kt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ht.call(e,pt)&&Pt(t,e)};function Dt(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Mt(){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 It(){return/apple/i.test(navigator.vendor)}function Nt(){const e=/android/i;return e.test(Dt())||e.test(Mt())}function Lt(){return Mt().includes("jsdom/")}const Tt="data-floating-ui-focusable";function Ft(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 Vt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Xe(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function At(e){return"composedPath"in e?e.composedPath()[0]:e.target}function zt(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 $t(e){return(null==e?void 0:e.ownerDocument)||document}function Ht(e){return Ye(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Bt(e){return!!e&&"combobox"===e.getAttribute("role")&&Ht(e)}function Wt(e){return e?e.hasAttribute(Tt)?e:e.querySelector("["+Tt+"]")||e:null}function qt(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...qt(e,t.id,n)])}function Gt(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}function Ut(e){e.preventDefault(),e.stopPropagation()}function Kt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var Yt="undefined"!=typeof document?w.useLayoutEffect:function(){};function Xt(e){const t=w.useRef(e);return Yt(()=>{t.current=e}),t}const Jt={...O}.useInsertionEffect||(e=>e());function Zt(e){const t=w.useRef(()=>{});return Jt(()=>{t.current=e}),w.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 Qt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function en(e,t){const n=Rt(e,Qt()),r=n.length;if(0===r)return;const o=Ft($t(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function tn(e){return en($t(e).body,1)||e}function nn(e){return en($t(e).body,-1)||e}function rn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Vt(n,r)}function on(e){Rt(e,Qt()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function ln(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 an=require("react-dom"),sn=Math.min,cn=Math.max,un=Math.round,dn=Math.floor,fn=e=>({x:e,y:e}),pn={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e,t,n){return cn(e,sn(t,n))}function hn(e,t){return"function"==typeof e?e(t):e}function mn(e){return e.split("-")[0]}function bn(e){return e.split("-")[1]}function vn(e){return"x"===e?"y":"x"}function yn(e){return"y"===e?"height":"width"}function wn(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function On(e){return vn(wn(e))}function jn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const _n=["left","right"],xn=["right","left"],Sn=["top","bottom"],Pn=["bottom","top"];function Cn(e){const t=mn(e);return pn[t]+e.slice(t.length)}function En(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 Rn(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}}function kn(e,t,n){let{reference:r,floating:o}=e;const i=wn(t),l=On(t),a=yn(l),s=mn(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bn(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function Dn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=hn(t,e),g=En(p),h=a[f?"floating"===d?"reference":"floating":d],m=Rn(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(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Rn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(m.top-w.top+g.top)/y.y,bottom:(w.bottom-m.bottom+g.bottom)/y.y,left:(m.left-w.left+g.left)/y.x,right:(w.right-m.right+g.right)/y.x}}const Mn=new Set(["left","top"]);function In(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ye(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=un(n)!==i||un(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Nn(e){return Ke(e)?e:e.contextElement}function Ln(e){const t=Nn(e);if(!Ye(t))return fn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=In(t);let l=(i?un(n.width):n.width)/r,a=(i?un(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Tn=fn(0);function Fn(e){const t=qe(e);return it()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Tn}function Vn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Nn(e);let l=fn(1);t&&(r?Ke(r)&&(l=Ln(r)):l=Ln(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qe(e))&&t}(i,n,r)?Fn(i):fn(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=qe(i),t=r&&Ke(r)?qe(r):r;let n=e,o=ft(n);for(;o&&r&&t!==n;){const e=Ln(o),t=o.getBoundingClientRect(),r=at(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=qe(o),o=ft(n)}}return Rn({width:u,height:d,x:s,y:c})}function An(e,t){const n=st(e).scrollLeft;return t?t.left+n:Vn(Ge(e)).left+n}function zn(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-An(e,n),y:n.top+t.scrollTop}}function $n(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=qe(e),r=Ge(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=it();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}const c=An(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,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ge(e),n=st(e),r=e.ownerDocument.body,o=cn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=cn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+An(e);const a=-n.scrollTop;return"rtl"===at(r).direction&&(l+=cn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(Ge(e));else if(Ke(t))r=function(e,t){const n=Vn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ye(e)?Ln(e):fn(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=Fn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Rn(r)}function Hn(e,t){const n=ct(e);return!(n===t||!Ke(n)||lt(n))&&("fixed"===at(n).position||Hn(n,t))}function Bn(e,t,n){const r=Ye(t),o=Ge(t),i="fixed"===n,l=Vn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=fn(0);function c(){s.x=An(o)}if(r||!r&&!i)if(("body"!==We(t)||Je(o))&&(a=st(t)),r){const e=Vn(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?fn(0):zn(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}function Wn(e){return"static"===at(e).position}function qn(e,t){if(!Ye(e)||"fixed"===at(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ge(e)===n&&(n=n.ownerDocument.body),n}function Gn(e,t){const n=qe(e);if(Qe(e))return n;if(!Ye(e)){let t=ct(e);for(;t&&!lt(t);){if(Ke(t)&&!Wn(t))return t;t=ct(t)}return n}let r=qn(e,t);for(;r&&Ze(r)&&Wn(r);)r=qn(r,t);return r&<(r)&&Wn(r)&&!ot(r)?n:r||function(e){let t=ct(e);for(;Ye(t)&&!lt(t);){if(ot(t))return t;if(Qe(t))return null;t=ct(t)}return null}(e)||n}const Un={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Ge(r),a=!!t&&Qe(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=fn(1);const u=fn(0),d=Ye(r);if((d||!d&&!i)&&(("body"!==We(r)||Je(l))&&(s=st(r)),d)){const e=Vn(r);c=Ln(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?fn(0):zn(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:Ge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Qe(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(e=>Ke(e)&&"body"!==We(e)),o=null;const i="fixed"===at(e).position;let l=i?ct(e):e;for(;Ke(l)&&!lt(l);){const t=at(l),n=ot(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Je(l)&&!n&&Hn(e,l))?r=r.filter(e=>e!==l):o=t,l=ct(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=$n(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=$n(t,i[e],o);a=cn(n.top,a),s=sn(n.right,s),c=sn(n.bottom,c),u=cn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:Gn,getElementRects:async function(e){const t=this.getOffsetParent||Gn,n=this.getDimensions,r=await n(e.floating);return{reference:Bn(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}=In(e);return{width:t,height:n}},getScale:Ln,isElement:Ke,isRTL:function(e){return"rtl"===at(e).direction}};function Kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Nn(e),u=o||i?[...c?dt(c):[],...t?dt(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t){let n,r=null;const o=Ge(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g={rootMargin:-dn(d)+"px "+-dn(o.clientWidth-(u+f))+"px "+-dn(o.clientHeight-(d+p))+"px "+-dn(u)+"px",threshold:cn(0,sn(1,s))||1};let h=!0;function m(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||Kn(c,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(m,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),c&&!s&&g.observe(c),t&&g.observe(t));let h=s?Vn(e):null;return s&&function t(){const r=Vn(e);h&&!Kn(h,r)&&n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(f)}}const Xn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=hn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=mn(o),v=wn(a),y=mn(a)===a,w=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(y||!h?[Cn(a)]:function(e){const t=Cn(e);return[jn(e),t,jn(t)]}(a)),j="none"!==g;!f&&j&&O.push(...function(e,t,n,r){const o=bn(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?xn:_n:t?_n:xn;case"left":case"right":return t?Sn:Pn;default:return[]}}(mn(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(jn)))),i}(a,h,g,w));const _=[a,...O],x=await s.detectOverflow(t,m),S=[];let P=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&S.push(x[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=bn(e),o=On(e),i=yn(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Cn(l)),[l,Cn(l)]}(o,l,w);S.push(x[e[0]],x[e[1]])}if(P=[...P,{placement:o,overflows:S}],!S.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=_[e];if(t&&("alignment"!==d||v===wn(t)||P.every(e=>wn(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(E=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var R;const e=null==(R=P.filter(e=>{if(j){const t=wn(e.placement);return t===v||"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:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Jn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=hn(e,t)||{};if(null==c)return{};const d=En(u),f={x:n,y:r},p=On(o),g=yn(p),h=await l.getDimensions(c),m="y"===p,b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-f[p]-i.floating[g],O=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let _=j?j[y]:0;_&&await(null==l.isElement?void 0:l.isElement(j))||(_=a.floating[y]||i.floating[g]);const x=w/2-O/2,S=_/2-h[g]/2-1,P=sn(d[b],S),C=sn(d[v],S),E=P,R=_-h[g]-C,k=_/2-h[g]/2+x,D=gn(E,k,R),M=!s.arrow&&null!=bn(o)&&k!==D&&i.reference[g]/2-(k<E?P:C)-h[g]/2<0,I=M?k<E?k-E:k-R:0;return{[p]:f[p]+I,data:{[p]:D,centerOffset:k-D-I,...M&&{alignmentOffset:I}},reset:M}}}),Zn=(e,t,n)=>{const r=new Map,o={platform:Un,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Dn},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kn(c,r,s),f=r,p=0;const g={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:m,fn:b}=h,{x:v,y,data:w,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,g[m]={...g[m],...w},O&&p<50&&(p++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(c=!0===O.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:u,y:d}=kn(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})};var Qn="undefined"!=typeof document?w.useLayoutEffect:function(){};function er(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(!er(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||er(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function tr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nr(e,t){const n=tr(e);return Math.round(t*n)/n}function rr(e){const t=w.useRef(e);return Qn(()=>{t.current=e}),t}const or=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=mn(n),a=bn(n),s="y"===wn(n),c=Mn.has(l)?-1:1,u=i&&s?-1:1,d=hn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ir=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=hn(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=wn(mn(o)),p=vn(f);let g=u[p],h=u[f];if(l){const e="y"===p?"bottom":"right";g=gn(g+d["y"===p?"top":"left"],g,g-d[e])}if(a){const e="y"===f?"bottom":"right";h=gn(h+d["y"===f?"top":"left"],h,h-d[e])}const m=s.fn({...t,[p]:g,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},lr=(e,t)=>{const n=Xn(e);return{name:n.name,fn:n.fn,options:[e,t]}},ar=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Jn({element:n.current,padding:r}).fn(t):{}:n?Jn({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function sr(e){const t=w.useRef(void 0),n=w.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return w.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const cr="data-floating-ui-focusable",ur="active",dr="selected",fr={...O};let pr=!1,gr=0;const hr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gr++,mr=fr.useId||function(){const[e,t]=w.useState(()=>pr?hr():void 0);return Yt(()=>{null==e&&t(hr())},[]),w.useEffect(()=>{pr=!0},[]),e};const br=w.createContext(null),vr=w.createContext(null),yr=()=>{var e;return(null==(e=w.useContext(br))?void 0:e.id)||null},wr=()=>w.useContext(vr);function Or(e){return"data-floating-ui-"+e}function jr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const _r=Or("safe-polygon");function xr(e,t,n){if(n&&!Kt(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function Sr(e){return"function"==typeof e?e():e}let Pr=0;function Cr(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Pr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Pr=requestAnimationFrame(i)}const Er={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Rr(e){return"inert"===e?Er.inert:"aria-hidden"===e?Er["aria-hidden"]:Er.none}let kr=new WeakSet,Dr={},Mr=0;function Ir(e){return e?Xe(e)?e.host:Ir(e.parentNode):null}const Nr=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Ir(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Lr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=Nr(t,e),a=new Set,s=new Set(l),c=[];Dr[o]||(Dr[o]=new WeakMap);const u=Dr[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==We(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Rr(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&kr.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Mr++,()=>{c.forEach(e=>{const t=Rr(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!kr.has(e)&&i&&e.removeAttribute(i),kr.delete(e)),r||e.removeAttribute(o)}),Mr--,Mr||(Er.inert=new WeakMap,Er["aria-hidden"]=new WeakMap,Er.none=new WeakMap,kr=new WeakSet,Dr={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Tr={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},Fr=w.forwardRef(function(e,t){const[n,r]=w.useState();Yt(()=>{It()&&r("button")},[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Or("focus-guard")]:"",style:Tr};return(0,F.jsx)("span",{...e,...o})}),Vr={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ar=w.createContext(null),zr=Or("portal");function $r(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=mr(),o=Hr(),[i,l]=w.useState(null),a=w.useRef(null);return Yt(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),Yt(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(zr,""),e.appendChild(n),a.current=n,l(n)},[t,r]),Yt(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Ue(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(zr,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:n,root:r}),[l,a]=w.useState(null),s=w.useRef(null),c=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=null==l?void 0:l.modal,p=null==l?void 0:l.open,g=!!l&&!l.modal&&l.open&&o&&!(!r&&!i);return w.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&&rn(e)&&("focusin"===e.type?ln:on)(i)}},[i,o,f]),w.useEffect(()=>{i&&(p||ln(i))},[p,i]),(0,F.jsxs)(Ar.Provider,{value:w.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:a}),[o,i]),children:[g&&i&&(0,F.jsx)(Fr,{"data-type":"outside",ref:s,onFocus:e=>{if(rn(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=nn(l?l.domReference:null);null==e||e.focus()}}}),g&&i&&(0,F.jsx)("span",{"aria-owns":i.id,style:Vr}),i&&an.createPortal(t,i),g&&i&&(0,F.jsx)(Fr,{"data-type":"outside",ref:c,onFocus:e=>{if(rn(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=tn(l?l.domReference:null);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Hr=()=>w.useContext(Ar);function Br(e){return w.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Wr=[];function qr(){Wr=Wr.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Gr(){qr();const e=Wr[Wr.length-1];return null==e?void 0:e.deref()}function Ur(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=Qt(),o=function(e,t){return(t=t||{}).getShadowRoot?yt([e],t.includeContainer,{filter:St.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):vt(e,t.includeContainer,St.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return kt(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Kr=w.forwardRef(function(e,t){return(0,F.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Tr})});function Yr(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:l=0,returnFocus:a=!0,restoreFocus:s=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0,outsideElementsInert:f=!1,getInsideElements:p=()=>[]}=e,{open:g,onOpenChange:h,events:m,dataRef:b,elements:{domReference:v,floating:y}}=t,O=Zt(()=>{var e;return null==(e=b.current.floatingContext)?void 0:e.nodeId}),j=Zt(p),_="number"==typeof l&&l<0,x=Bt(v)&&_,S="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,P=!S||i,C=!P||S&&f,E=Xt(o),R=Xt(l),k=Xt(a),D=wr(),M=Hr(),I=w.useRef(null),N=w.useRef(null),L=w.useRef(!1),T=w.useRef(!1),V=w.useRef(-1),A=w.useRef(-1),z=null!=M,$=Wt(y),H=Zt(function(e){return void 0===e&&(e=$),e?Rt(e,Qt()):[]}),B=Zt(e=>{const t=H(e);return E.current.map(e=>v&&"reference"===e?v:$&&"floating"===e?$:t).filter(Boolean).flat()});w.useEffect(()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){Vt($,Ft($t($)))&&0===H().length&&!x&&Ut(e);const t=B(),n=At(e);"reference"===E.current[0]&&n===v&&(Ut(e),e.shiftKey?Cr(t[t.length-1]):Cr(t[1])),"floating"===E.current[1]&&n===$&&e.shiftKey&&(Ut(e),Cr(t[0]))}}const t=$t($);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,v,$,c,E,x,H,B]),w.useEffect(()=>{if(!r&&y)return y.addEventListener("focusin",e),()=>{y.removeEventListener("focusin",e)};function e(e){const t=At(e),n=H().indexOf(t);-1!==n&&(V.current=n)}},[r,y,H]),w.useEffect(()=>{if(r)return;if(!d)return;function e(){T.current=!0,setTimeout(()=>{T.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=At(e);queueMicrotask(()=>{const o=O(),i=!(Vt(v,t)||Vt(y,t)||Vt(t,y)||Vt(null==M?void 0:M.portalNode,t)||null!=t&&t.hasAttribute(Or("focus-guard"))||D&&(qt(D.nodesRef.current,o).find(e=>{var n,r;return Vt(null==(n=e.context)?void 0:n.elements.floating,t)||Vt(null==(r=e.context)?void 0:r.elements.domReference,t)})||Gt(D.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Wt(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===v&&$&&Ur($,E),s&&n!==v&&(null==r||!r.isConnected)&&Ft($t($))===$t($).body){Ye($)&&$.focus();const e=V.current,t=H(),n=t[e]||t[t.length-1]||$;Ye(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:!x&&c||!t||!i||T.current||t===Gr()||(L.current=!0,h(!1,e,"focus-out"))})}const n=Boolean(!D&&M);function o(){jr(A),b.current.insideReactTree=!0,A.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}return y&&Ye(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),y.addEventListener("focusout",t),n&&y.addEventListener("focusout",o,!0),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),y.removeEventListener("focusout",t),n&&y.removeEventListener("focusout",o,!0)}):void 0},[r,v,y,$,c,D,M,h,d,s,H,x,O,E,b]);const W=w.useRef(null),q=w.useRef(null),G=Br([W,null==M?void 0:M.beforeInsideRef]),U=Br([q,null==M?void 0:M.afterInsideRef]);function K(e){return!r&&u&&c?(0,F.jsx)(Kr,{ref:"start"===e?I:N,onClick:e=>h(!1,e.nativeEvent),children:"string"==typeof u?u:"Dismiss"}):null}w.useEffect(()=>{var e,t;if(r)return;if(!y)return;const n=Array.from((null==M||null==(e=M.portalNode)?void 0:e.querySelectorAll("["+Or("portal")+"]"))||[]),o=null==(t=(D?Gt(D.nodesRef.current,O()):[]).find(e=>{var t;return Bt((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[y,o,...n,...j(),I.current,N.current,W.current,q.current,null==M?void 0:M.beforeOutsideRef.current,null==M?void 0:M.afterOutsideRef.current,E.current.includes("reference")||x?v:null].filter(e=>null!=e),l=c||x?Lr(i,!C,C):Lr(i);return()=>{l()}},[r,v,y,c,E,M,x,P,C,D,O,j]),Yt(()=>{if(r||!Ye($))return;const e=Ft($t($));queueMicrotask(()=>{const t=B($),n=R.current,r=("number"==typeof n?t[n]:n.current)||$,o=Vt($,e);_||o||!g||Cr(r,{preventScroll:r===$})})},[r,g,$,_,B,R]),Yt(()=>{if(r||!$)return;const e=$t($);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(L.current=!0),"outside-press"===t)if(r)L.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Nt()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Lt()&&(!Nt()&&0===e.width&&0===e.height||Nt()&&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)}(n))L.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),L.current=!e}}t=Ft(e),qr(),t&&"body"!==We(t)&&(Wr.push(new WeakRef(t)),Wr.length>20&&(Wr=Wr.slice(-20))),m.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,Tr),z&&v&&v.insertAdjacentElement("afterend",o),()=>{m.off("openchange",n);const t=Ft(e),r=Vt(y,t)||D&&qt(D.nodesRef.current,O(),!1).some(e=>{var n;return Vt(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof k.current){const e=v||Gr();return e&&e.isConnected?e:o}return k.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=Qt();return kt(e,t)?e:Rt(e,t)[0]||e}(i);k.current&&!L.current&&Ye(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,y,$,k,b,m,D,z,v,O]),w.useEffect(()=>(queueMicrotask(()=>{L.current=!1}),()=>{queueMicrotask(qr)}),[r]),Yt(()=>{if(!r&&M)return M.setFocusManagerState({modal:c,closeOnFocusOut:d,open:g,onOpenChange:h,domReference:v}),()=>{M.setFocusManagerState(null)}},[r,M,c,g,h,d,v]),Yt(()=>{r||$&&Ur($,E)},[r,$,E]);const Y=!r&&P&&(!c||!x)&&(z||c);return(0,F.jsxs)(F.Fragment,{children:[Y&&(0,F.jsx)(Fr,{"data-type":"inside",ref:G,onFocus:e=>{if(c){const e=B();Cr("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(L.current=!1,rn(e,M.portalNode)){const e=tn(v);null==e||e.focus()}else{var t;null==(t=M.beforeOutsideRef.current)||t.focus()}}}),!x&&K("start"),n,K("end"),Y&&(0,F.jsx)(Fr,{"data-type":"inside",ref:U,onFocus:e=>{if(c)Cr(B()[0]);else if(null!=M&&M.preserveTabOrder&&M.portalNode)if(d&&(L.current=!0),rn(e,M.portalNode)){const e=nn(v);null==e||e.focus()}else{var t;null==(t=M.afterOutsideRef.current)||t.focus()}}})]})}function Xr(e){return Ye(e.target)&&"BUTTON"===e.target.tagName}function Jr(e){return Ht(e)}function Zr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=w.useRef(),p=w.useRef(!1),g=w.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(Kt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:Kt(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||Xr(e)||(" "!==e.key||Jr(i)||(e.preventDefault(),p.current=!0),function(e){return Ye(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Xr(e)||Jr(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return w.useMemo(()=>l?{reference:g}:{},[l,g])}const Qr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eo={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},to=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 no(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:g}=t,h=wr(),m=Zt("function"==typeof s?s:()=>!1),b="function"==typeof s?m:s,v=w.useRef(!1),{escapeKey:y,outsidePress:O}=to(p),{escapeKey:j,outsidePress:_}=to(g),x=w.useRef(!1),S=Zt(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(x.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=h?qt(h.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.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")}),P=Zt(e=>{var t;const n=()=>{var t;S(e),null==(t=At(e))||t.removeEventListener("keydown",n)};null==(t=At(e))||t.addEventListener("keydown",n)}),C=Zt(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=At(e),s="["+Or("inert")+"]",u=$t(o.floating).querySelectorAll(s);let d=Ke(a)?a:null;for(;d&&!lt(d);){const e=ct(d);if(lt(e)||!Ke(e))break;d=e}if(u.length&&Ke(a)&&!a.matches("html,body")&&!Vt(a,o.floating)&&Array.from(u).every(e=>!Vt(d,e)))return;if(Ye(a)&&k){const t=lt(a),n=at(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=h&&qt(h.nodesRef.current,f).some(t=>{var n;return zt(e,null==(n=t.context)?void 0:n.elements.floating)});if(zt(e,o.floating)||zt(e,o.domReference)||p)return;const g=h?qt(h.nodesRef.current,f):[];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")}),E=Zt(e=>{var t;const n=()=>{var t;C(e),null==(t=At(e))||t.removeEventListener(c,n)};null==(t=At(e))||t.addEventListener(c,n)});w.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),x.current=!0}function u(){e=window.setTimeout(()=>{x.current=!1},it()?5:0)}const d=$t(o.floating);a&&(d.addEventListener("keydown",j?P:S,j),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,_?E:C,_);let p=[];return f&&(Ke(o.domReference)&&(p=dt(o.domReference)),Ke(o.floating)&&(p=p.concat(dt(o.floating))),!Ke(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(dt(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})}),()=>{a&&(d.removeEventListener("keydown",j?P:S,j),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,_?E:C,_),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,O,S,j,P,C,_,E]),w.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const R=w.useMemo(()=>({onKeyDown:S,...u&&{[Qr[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[S,r,u,d]),k=w.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:S,onMouseDown:e,onMouseUp:e,[eo[c]]:()=>{i.current.insideReactTree=!0}}},[S,c,i]);return w.useMemo(()=>l?{reference:R,floating:k}:{},[l,R,k])}function ro(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mr(),i=w.useRef({}),[l]=w.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.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=yr(),[s,c]=w.useState(r.reference),u=Zt((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=w.useMemo(()=>({setPositionReference:c}),[]),f=w.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return w.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=w.useState(null),[a,s]=w.useState(null),c=(null==o?void 0:o.domReference)||i,u=w.useRef(null),d=wr();Yt(()=>{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:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);er(f,r)||p(r);const[g,h]=w.useState(null),[m,b]=w.useState(null),v=w.useCallback(e=>{e!==_.current&&(_.current=e,h(e))},[]),y=w.useCallback(e=>{e!==x.current&&(x.current=e,b(e))},[]),O=i||g,j=l||m,_=w.useRef(null),x=w.useRef(null),S=w.useRef(u),P=null!=s,C=rr(s),E=rr(o),R=rr(c),k=w.useCallback(()=>{if(!_.current||!x.current)return;const e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),Zn(_.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==R.current};D.current&&!er(S.current,t)&&(S.current=t,an.flushSync(()=>{d(t)}))})},[f,t,n,E,R]);Qn(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const D=w.useRef(!1);Qn(()=>(D.current=!0,()=>{D.current=!1}),[]),Qn(()=>{if(O&&(_.current=O),j&&(x.current=j),O&&j){if(C.current)return C.current(O,j,k);k()}},[O,j,k,C,P]);const M=w.useMemo(()=>({reference:_,floating:x,setReference:v,setFloating:y}),[v,y]),I=w.useMemo(()=>({reference:O,floating:j}),[O,j]),N=w.useMemo(()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=nr(I.floating,u.x),r=nr(I.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,I.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:k,refs:M,elements:I,floatingStyles:N}),[u,k,M,I,N])}({...e,elements:{...o,...a&&{reference:a}}}),p=w.useCallback(e=>{const t=Ke(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),f.refs.setReference(t)},[f.refs]),g=w.useCallback(e=>{(Ke(e)||null===e)&&(u.current=e,l(e)),(Ke(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Ke(e))&&f.refs.setReference(e)},[f.refs]),h=w.useMemo(()=>({...f.refs,setReference:g,setPositionReference:p,domReference:u}),[f.refs,g,p]),m=w.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),b=w.useMemo(()=>({...f,...r,refs:h,elements:m,nodeId:t}),[f,h,m,t,r]);return Yt(()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),w.useMemo(()=>({...f,context:b,refs:h,elements:m}),[f,h,m,b])}function oo(){return Dt().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&It()}function io(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=w.useRef(!1),u=w.useRef(-1),d=w.useRef(!0);w.useEffect(()=>{if(!a)return;const e=qe(l.domReference);function t(){!n&&Ye(l.domReference)&&l.domReference===Ft($t(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),oo()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),oo()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),w.useEffect(()=>{if(a)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,a]),w.useEffect(()=>()=>{jr(u)},[]);const f=w.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=At(e.nativeEvent);if(s&&Ke(t))if(oo()&&!e.relatedTarget){if(!d.current&&!Ht(t))return}else if(!function(e){if(!e||Lt())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Ke(t)&&t.hasAttribute(Or("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Ft(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Vt(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Vt(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return w.useMemo(()=>a?{reference:f}:{},[a,f])}function lo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[ur]:t,[dr]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[cr]:""},...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;var l;o&&[ur,dr].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.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)})):e[n]=i)}),e):e,{})}}function ao(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=w.useCallback(t=>lo(t,e,"reference"),t),i=w.useCallback(t=>lo(t,e,"floating"),n),l=w.useCallback(t=>lo(t,e,"item"),r);return w.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const so=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function co(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=mr(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=w.useMemo(()=>{var e;return(null==(e=Wt(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=so.get(s))?r:s,p=null!=yr(),g=w.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),h=w.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),m=w.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return w.useMemo(()=>a?{reference:g,floating:h,item:m}:{},[a,g,h,m])}const uo=(0,w.createContext)(null),fo=["style","children"],po=["context"];function go(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 ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach(function(t){mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const vo=(0,w.forwardRef)(function(e,t){let{style:n,children:r}=e,o=bo(e,fo);const i=(0,w.useContext)(uo);if(!i)return null;const{context:l}=i,a=bo(i,po),s=sr([a.refs.setFloating,t]),c=ue();return(0,w.useLayoutEffect)(()=>(i.setDescriptionId(c),()=>i.setDescriptionId(void 0)),[c,i.setDescriptionId]),l.open?(0,F.jsx)($r,{root:a.root,children:(0,F.jsx)(Yr,{context:l,modal:a.modal,children:(0,F.jsx)("div",ho(ho({id:c,ref:s,style:ho(ho({},a.floatingStyles),n),"aria-describedby":a.descriptionId},a.getFloatingProps(o)),{},{children:r}))})}):null});function yo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach(function(t){Oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jo=["children","modal"];function _o(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 xo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const So=e=>{const{children:t,modal:n=!1}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jo),o=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12}=e,[s,c]=(0,w.useState)(t),[u,d]=(0,w.useState)(),f=i??s,p=l??c,g=ro({placement:n,open:f,onOpenChange:p,whileElementsMounted:Yn,middleware:[or(a),lr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),ir({padding:5})]}),{context:h}=g,m=ao([Zr(h,{enabled:null==i}),no(h),co(h)]);return(0,w.useMemo)(()=>wo(wo(wo({open:f,setOpen:p},m),g),{},{modal:r,root:o,descriptionId:u,setDescriptionId:d}),[f,p,m,g,r,o,u])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,F.jsx)(uo.Provider,{value:o,children:t})},Po=["children","wrapTrigger"];function Co(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach(function(t){Ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ro(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ko=(0,w.forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Po);const i=(0,w.useContext)(uo),l=n.ref,a=sr([i?.refs.setReference,t,l]);return i?!r&&(0,w.isValidElement)(n)?(0,w.cloneElement)(n,i.getReferenceProps(Eo(Eo(Eo({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,F.jsx)("div",Eo(Eo({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Do(e){const{description:t,clickable:n,initialOpen:r,placement:o,wrapTrigger:i,containerOffset:l,root:a,open:s,onOpenChange:c,children:u,classes:d,contentStyle:f}=e,[p,g]=(0,w.useState)(!1);return u?t?(0,F.jsxs)(So,{placement:o,initialOpen:r,open:void 0!==s?s:n?p:void 0,onOpenChange:void 0!==c?c:n?g:void 0,containerOffset:l,root:a,children:[(0,F.jsx)(ko,{wrapTrigger:i,onClick:n?()=>g(e=>!e):void 0,className:y()(i?He:void 0,d?.trigger),children:u}),(0,F.jsx)(vo,{className:y()($e,d?.content),style:f,children:t})]}):u:null}function Mo(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 Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(n),!0).forEach(function(t){No(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function No(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lo=e=>(0,F.jsx)(de,Io(Io({},e),{},{children:(0,F.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function To(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 Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach(function(t){Vo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ao=e=>(0,F.jsx)(de,Fo(Fo({},e),{},{children:(0,F.jsx)("path",{d:"M7 10l5 5 5-5z"})}));function zo(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 $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach(function(t){Ho(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ho(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bo=e=>(0,F.jsx)(de,$o($o({},e),{},{children:(0,F.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function Wo(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach(function(t){Go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uo=e=>(0,F.jsx)(de,qo(qo({},e),{},{children:(0,F.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function Ko(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach(function(t){Xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xo(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jo=e=>(0,F.jsx)(de,Yo(Yo({},e),{},{children:(0,F.jsx)("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"})}));function Zo(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 Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ti=e=>(0,F.jsx)(de,Qo(Qo({},e),{},{children:(0,F.jsx)("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.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function ni(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 ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach(function(t){oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ii=e=>(0,F.jsx)(de,ri(ri({},e),{},{children:(0,F.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function li(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach(function(t){si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function si(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ci=e=>(0,F.jsx)(de,ai(ai({},e),{},{children:(0,F.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function ui(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 di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach(function(t){fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pi=e=>(0,F.jsx)(de,di(di({},e),{},{children:(0,F.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function gi(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 hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bi=e=>(0,F.jsx)(de,hi(hi({},e),{},{children:(0,F.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function vi(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 yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oi=e=>(0,F.jsx)(de,yi(yi({},e),{},{children:(0,F.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));function ji(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 _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach(function(t){xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Si=e=>(0,F.jsx)(de,_i(_i({},e),{},{children:(0,F.jsx)("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function Pi(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 Ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ri=e=>(0,F.jsx)(de,Ci(Ci({},e),{},{children:(0,F.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}));function ki(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 Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ii=e=>(0,F.jsx)(de,Di(Di({},e),{},{children:(0,F.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function Ni(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 Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){Ti(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ti(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fi=e=>(0,F.jsx)(de,Li(Li({},e),{},{children:(0,F.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Vi(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $i=e=>(0,F.jsx)(de,Ai(Ai({},e),{},{children:(0,F.jsx)("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function Hi(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 Bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach(function(t){Wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qi=e=>(0,F.jsxs)(de,Bi(Bi({},e),{},{children:[(0,F.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),(0,F.jsx)("defs",{children:(0,F.jsx)("clipPath",{id:"clip0_851_25267",children:(0,F.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function Gi(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 Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(t){Ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ki(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yi=e=>(0,F.jsx)(de,Ui(Ui({},e),{},{children:(0,F.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Xi(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 Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(t){Zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qi=e=>(0,F.jsx)(de,Ji(Ji({},e),{},{children:(0,F.jsx)("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function el(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 tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rl=e=>(0,F.jsx)(de,tl(tl({},e),{},{children:(0,F.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})}));function ol(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 il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(n),!0).forEach(function(t){ll(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ll(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const al=e=>(0,F.jsx)(de,il(il({},e),{},{children:(0,F.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function sl(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 cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach(function(t){ul(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ul(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dl=e=>(0,F.jsx)(de,cl(cl({},e),{},{children:(0,F.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function fl(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 pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach(function(t){gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hl=e=>(0,F.jsx)(de,pl(pl({},e),{},{children:(0,F.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function ml(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 bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yl=e=>(0,F.jsx)(de,bl(bl({},e),{},{children:(0,F.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function wl(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _l=e=>(0,F.jsx)(de,Ol(Ol({},e),{},{children:(0,F.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function xl(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 Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(n),!0).forEach(function(t){Pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cl=e=>(0,F.jsx)(de,Sl(Sl({},e),{},{children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function El(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 Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach(function(t){kl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dl=e=>(0,F.jsx)(de,Rl(Rl({},e),{},{children:(0,F.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function Ml(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 Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ll=e=>(0,F.jsx)(de,Il(Il({},e),{},{children:(0,F.jsx)("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"})}));function Tl(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 Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach(function(t){Vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Al=e=>(0,F.jsx)(de,Fl(Fl({},e),{},{children:(0,F.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function zl(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 $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bl=e=>(0,F.jsx)(de,$l($l({},e),{},{children:(0,F.jsx)("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 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Wl(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 ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach(function(t){Gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ul=e=>(0,F.jsx)(de,ql(ql({},e),{},{children:(0,F.jsx)("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Kl(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 Yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jl=e=>(0,F.jsx)(de,Yl(Yl({},e),{},{children:(0,F.jsx)("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function Zl(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 Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach(function(t){ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ea(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ta=e=>(0,F.jsx)(de,Ql(Ql({},e),{},{children:(0,F.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function na(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 ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach(function(t){oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ia=e=>(0,F.jsx)(de,ra(ra({},e),{},{children:(0,F.jsx)("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function la(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 aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ca=e=>(0,F.jsx)(de,aa(aa({},e),{},{children:(0,F.jsx)("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function ua(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 da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach(function(t){fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pa=e=>(0,F.jsx)(de,da(da({},e),{},{children:(0,F.jsx)("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function ga(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 ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(t){ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ma(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ba=e=>(0,F.jsx)(de,ha(ha({},e),{},{children:(0,F.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function va(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 ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(t){wa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oa=e=>(0,F.jsx)(de,ya(ya({},e),{},{children:(0,F.jsx)("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function ja(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 _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sa=e=>(0,F.jsx)(de,_a(_a({},e),{},{children:(0,F.jsx)("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function Pa(){const e=(0,w.useContext)(uo);return e?.open?(0,F.jsx)(Bo,{}):(0,F.jsx)(Ao,{})}var Ca="select-module__arrow__hlIMs",Ea="select-module__filled__HCXVQ",Ra="select-module__icon__eKwKi",ka="select-module__input__ajhdt",Da="select-module__item-icon__qWzAS",Ma="select-module__label__b95oB",Ia="select-module__medium__thAU2",Na="select-module__outlined__rTvhS",La="select-module__popover-content__jWbFy",Ta="select-module__popover-target__utEyc",Fa="select-module__root__OCHpB",Va="select-module__small__Fc860",Aa="select-module__with-icon__sdr2r",za="select-module__with-item-icon__j4VL9",$a="select-module__wrapper__wHn5r";const Ha=e=>{const{children:t,fillEvenly:n,classes:r}=e;return(0,F.jsx)("div",{className:y()("buttonsGroup-module__root__rBp1o",n&&"buttonsGroup-module__fill-evenly__J5T6H",r?.root),children:t})};var Ba="menu-module__divider__kik9c",Wa="menu-module__item__DO2AJ",qa="menu-module__item-actions__ecU8y",Ga="menu-module__item-description__BxxnF",Ua="menu-module__item-disabled__E7Z4s",Ka="menu-module__item-icon___HDe4",Ya="menu-module__item-selected__m9VFe",Xa="menu-module__item-text-block__zgpGT",Ja="menu-module__item-title__gcK7P",Za="menu-module__item-title-top__PSYWj",Qa="menu-module__medium__Jev6c",es="menu-module__root__pR_5h",ts="menu-module__small__uGqFV",ns="menu-module__state-layer__m8uMf";function rs(e){const{items:t,size:n="medium",descriptionPosition:o="right",classes:i}=e,l=(0,w.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]);return(0,F.jsx)("div",{className:y()(es,r[n],i?.root),children:t.map((e,t)=>{const r="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,F.jsx)(r,{tabIndex:-10,className:y()(Wa,e.selected?Ya:void 0,e.disabled?Ua:void 0,i?.item,e.selected?i?.itemSelected:void 0,e.disabled?i?.itemDisabled:void 0),onClick:e.disabled?void 0:l(e),title:e.name,children:(0,F.jsxs)("span",{className:y()(ns),children:[!!e.icon&&(0,F.jsx)("span",{className:y()(Ka,i?.itemIcon,e.selected?i?.itemSelectedIcon:void 0,e.disabled?i?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===o&&e.description?(0,F.jsxs)("span",{className:y()(Xa),children:[(0,F.jsx)("span",{className:y()(Za,Ja,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),(0,F.jsx)("span",{className:y()(Ga,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:y()(Ja,i?.itemTitle,e.selected?i?.itemSelectedTitle:void 0,e.disabled?i?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,F.jsx)("span",{className:y()(Ga,i?.itemDescription,e.selected?i?.itemSelectedDescription:void 0,e.disabled?i?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,F.jsx)("div",{className:y()(qa,i?.itemActions,e.selected?i?.itemSelectedActions:void 0,e.disabled?i?.itemDisabledActions:void 0),children:(0,F.jsx)(Ha,{children:e.subButtons.map((e,t)=>(0,F.jsx)(H,{variant:e.variant,size:n,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,F.jsx)("div",{className:y()(Ba,i?.divider),children:e.name},`menu-divider-${e.name}-${t}`)})})}function os(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:o,classes:i}=e,l=(0,w.useContext)(uo);return(0,F.jsx)(rs,{size:n,classes:i?.menu,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===r,onClick:()=>{o(e),l&&l.setOpen(!1)}})})}const is=["variant","componentSize","icon","fullWidth","label","placeholder","items","defaultValue","onValueChange","selected","classes","ref","disabled","id"];function ls(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 as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach(function(t){ss(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ss(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e){const{variant:t="filled",componentSize:r="medium",icon:o,fullWidth:i,label:l,placeholder:a,items:s,defaultValue:c,onValueChange:u,selected:d,classes:f,ref:p,disabled:g,id:h}=e,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,is),b=c&&!d,[v,O]=(0,w.useState)(b?s.find(e=>"item"===e.type&&e.value===c):void 0),j=b?v:d,_=(0,w.useRef)(null),x=(0,w.useRef)(null),S=(0,w.useCallback)(e=>{e.preventDefault(),g||x?.current?.click()},[x]),P=e=>{b&&O(e),u?.(e)};(0,w.useEffect)(()=>{if(j){const e=s.find(e=>"item"===e.type&&e.value===j?.value);e||P(e)}},[s,j]);const C=h??ze();return(0,F.jsxs)("div",{className:y()(Fa,n[r],f?.root),style:{maxWidth:i?"100%":void 0},children:[!!l&&(0,F.jsx)(ce,{className:y()(Ma,f?.label),component:"label",variant:"caption",htmlFor:C,onClick:S,children:l}),(0,F.jsxs)("div",{className:y()($a,n[t],o?Aa:void 0,j?.icon?za:void 0,f?.wrapper),children:[(0,F.jsx)("input",as(as({ref:W([_,p]),id:C,className:y()(ka,f?.input),placeholder:a},m),{},{value:j?.name??"",onChange:()=>{},onClick:S,disabled:g})),!!o&&(0,F.jsx)("span",{onClick:S,className:y()(Ra,f?.icon),children:o}),!!j?.icon&&(0,F.jsx)("span",{onClick:S,className:y()(Da,f?.itemIcon),children:j?.icon}),(0,F.jsx)("span",{onClick:S,className:y()(Ca,f?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",classes:as({content:y()(La,"styledScroll",f?.popoverContent)},f?.popover),containerOffset:4,description:(0,F.jsx)(os,{items:s,classes:f,componentSize:r,selectedValue:j?.value,changeSelectedItem:P}),children:(0,F.jsx)("div",{ref:x,className:y()(Ta)})})]})]})}var us=o(353),ds=o.n(us),fs="dateTime-module__filled__nA6CU",ps="dateTime-module__full-width__x5Snf",gs="dateTime-module__icon__H9gzS",hs="dateTime-module__input__p1lxx",ms="dateTime-module__label__FnrxJ",bs="dateTime-module__medium__btb_E",vs="dateTime-module__outlined__MCqbp",ys="dateTime-module__popover-content__I6nGv",ws="dateTime-module__popover-target__PS8vx",Os="dateTime-module__root___CULh",js="dateTime-module__small__bywih",_s="dateTime-module__wrapper__zlOEC",xs="calendarPopover-module__button__Dpl18",Ss="calendarPopover-module__buttons-container__sW9eE",Ps="calendarPopover-module__calendar-container__fGMyq",Cs="calendarPopover-module__cell__fwBxE",Es="calendarPopover-module__cell-circle__PykI1",Rs="calendarPopover-module__cell-data__fnxK0",ks="calendarPopover-module__cell-selection__jmUxe",Ds="calendarPopover-module__cell-selection-first__bRcBr",Ms="calendarPopover-module__cell-selection-last__hyv9Z",Is="calendarPopover-module__cells-container__B6mTs",Ns="calendarPopover-module__date-time-mode__eJCHs",Ls="calendarPopover-module__medium__pk6es",Ts="calendarPopover-module__month__FCpIG",Fs="calendarPopover-module__month-cell-selection__phhRr",Vs="calendarPopover-module__month-cell-selection-first__lSKG9",As="calendarPopover-module__month-cell-selection-last__IKh98",zs="calendarPopover-module__month-view__wNOC9",$s="calendarPopover-module__navigation-arrow__oiWet",Hs="calendarPopover-module__navigation-container__Hut1m",Bs="calendarPopover-module__navigation-title__sp73c",Ws="calendarPopover-module__navigation-value__Ht40y",qs="calendarPopover-module__root__R8QOY",Gs="calendarPopover-module__small__GlV62",Us="calendarPopover-module__time-container__x4jnu",Ks="calendarPopover-module__time-divider__aRbbR",Ys="calendarPopover-module__time-selection-marker__bVI6A",Xs="calendarPopover-module__year__BTz_s";function Js(e){const{values:t,selectedValue:n,onSelect:r}=e,o=t.length,i=36*(o+n),l=(0,w.useRef)(null),a=(0,w.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,w.useEffect)(()=>{const e=l.current;e&&(Math.abs(e.scrollTop-i)<=1||(e.scrollTop=i))},[i]);const s=(0,w.useCallback)(e=>t[(e%o+o)%o],[t,o]),c=(0,w.useCallback)(()=>{const e=l.current;if(!e)return;const t=Math.round(e.scrollTop/36),i=s(t);i!==n&&r(i),(t<o||t>=2*o)&&(e.scrollTop=36*(o+i))},[s,r,n,o]),u=(0,w.useCallback)(e=>()=>{const t=l.current;t?(t.scrollTo({top:36*(o+e),behavior:"smooth"}),r(e)):r(e)},[r,o]);return(0,F.jsx)("div",{ref:l,className:y()("timeWheelColumn-module__time-wheel__fk6Jj"),onScroll:c,tabIndex:-1,children:a.map((e,t)=>(0,F.jsx)("button",{type:"button",className:y()("timeWheelColumn-module__time-wheel-button__c61An","timeWheelColumn-module__time-wheel-item__Gjqub",e===n&&"timeWheelColumn-module__time-wheel-item-active__PLWg9"),onClick:u(e),children:(0,F.jsx)(ce,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function Zs(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:o="date",initStartDate:i,initEndDate:l,changeDates:s,onClear:c,classes:u}=e,d=t??ds(),f="dateTime"===o&&!r,[p,g]=(0,w.useState)("year"===o?"yearsRange":"month"),[h,m]=(0,w.useState)({year:d().year(),month:d().month()}),[b,v]=(0,w.useState)(i?f?d(i).second(0).millisecond(0).valueOf():d(i).startOf("D").valueOf():void 0),[O,j]=(0,w.useState)(l?d(l).startOf("D").valueOf():void 0),[_,x]=(0,w.useState)(f&&i?d(i).hour():0),[S,P]=(0,w.useState)(f&&i?d(i).minute():0),C=(0,w.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),E=(0,w.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),R=(0,w.useMemo)(()=>b?d(b).startOf("D").valueOf():void 0,[b,d]),k=(0,w.useMemo)(()=>O?d(O).startOf("D").valueOf():void 0,[O,d]),D=(0,w.useMemo)(()=>R?d(R).startOf("M").valueOf():void 0,[R,d]),M=(0,w.useMemo)(()=>k?d(k).startOf("M").valueOf():void 0,[k,d]),I=(0,w.useMemo)(()=>R?d(R).year():void 0,[R,d]),N=(0,w.useMemo)(()=>k?d(k).year():void 0,[k,d]),L=(0,w.useMemo)(()=>d(new Date(h.year,h.month,1)).startOf("month"===p?"M":"y"),[h,p,d]),T=L.daysInMonth();let V=L.startOf("M").day()-1;V<0&&(V=6),(0,w.useEffect)(()=>b||O?"year"===o?!r&&b?void s(d(b).format("YYYY")):r&&b&&O?void s(d(b).format("YYYY"),d(O).format("YYYY")):void 0:void(f&&b?s(d(b).second(0).millisecond(0).format()):r||!b?r&&b&&O&&s(d(b).format(),d(O).format()):s(d(b).format())):(c?.(),void s()),[b,O,r,o,f,d,s,c]);const A=(0,w.useCallback)((e,t,n)=>d(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[d]);(0,w.useEffect)(()=>{if(!f||!b)return;const e=A(b,_,S);e!==b&&v(e)},[f,b,_,S,A]);const z=(0,w.useCallback)(e=>()=>{const t=d(new Date(h.year,h.month,1)),n="yearsRange"===p?20*e:e,r="month"===p?"month":"year",o=t.add(n,r);m({month:o.month(),year:o.year()})},[p,h]),$=(0,w.useCallback)(()=>{"year"!==o&&g("month"===p?"year":"year"===p?"yearsRange":"month")},[p,o]),B=(0,w.useCallback)(e=>()=>{m({month:e.month(),year:e.year()}),g("month")},[]),W=(0,w.useCallback)(e=>()=>{const t=d(new Date(e,0,1)).startOf("y").valueOf();if(!r)return v(f&&R===t?void 0:f||b!==t?f?A(t,_,S):t:void 0),void j(void 0);b&&O?t===b?v(void 0):(t===O||v(t),j(void 0)):b?t===b?v(void 0):t<b?(j(b),v(t)):j(t):O?t===O?j(void 0):t<O?v(t):(v(O),j(t)):v(t)},[A,O,f,r,_,S,b,R]),q=(0,w.useMemo)(()=>{const e=L.year();return 20*Math.floor(e/20)},[L]),G=(0,w.useCallback)(e=>()=>{if(!r)return v(b===e?void 0:e),void j(void 0);b&&O?e===b?v(void 0):(e===O||v(e),j(void 0)):b?e===b?v(void 0):e<b?(j(b),v(e)):j(e):O?e===O?j(void 0):e<O?v(e):(v(O),j(e)):v(e)},[b,O,r]),U=(0,w.useCallback)(e=>{v(void 0),j(void 0),f&&(x(0),P(0)),e.currentTarget.blur()},[f]),K=(0,w.useCallback)(e=>{m({year:d().year(),month:d().month()}),e.currentTarget.blur()},[L]);return(0,F.jsxs)("div",{className:y()(qs,a[n],f&&Ns,u?.root),children:[(0,F.jsxs)("div",{className:y()(Ps,"month"===p&&zs),children:[(0,F.jsx)("div",{className:y()(Ss,u?.buttonsContainer),children:(0,F.jsxs)(Ha,{fillEvenly:!0,children:[(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сбросить"}),"year"!==o&&(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:K,children:"Сегодня"})]})}),(0,F.jsxs)("div",{className:y()(Hs,u?.navigationContainer),children:[(0,F.jsx)("button",{type:"button",className:y()(xs,$s,u?.navigationArrow),onClick:z(-1),"aria-label":"Предыдущий период",children:(0,F.jsx)(ci,{})}),(0,F.jsx)("button",{type:"button",className:y()(xs,Ws,u?.navigationValue),onClick:$,children:(0,F.jsxs)(ce,{variant:"subtitle1",className:y()(Bs,u?.navigationTitle),children:["month"===p&&L.format("MMMM YYYY"),"year"===p&&L.format("YYYY"),"yearsRange"===p&&`${q} - ${q+19}`]})}),(0,F.jsx)("button",{type:"button",className:y()(xs,$s,u?.navigationArrow),onClick:z(1),"aria-label":"Следующий период",children:(0,F.jsx)(pi,{})})]}),(0,F.jsxs)("div",{className:y()(Is,u?.cellsContainer),children:["yearsRange"===p&&(0,F.jsx)(F.Fragment,{children:[...Array(20)].map((e,t)=>{const n=q+t,i="year"===o?W(n):()=>{m({month:0,year:n}),g("year")},l="year"===o&&void 0!==I&&(n===I||n===N);let a=!1,s=!1,c=!1;return void 0!==I&&(r?void 0!==N&&(I===N?n===I&&(a=!0):n>=I&&n<=N&&(a=!0,n===I?s=!0:n===N&&(c=!0))):"year"!==o&&n===I&&(a=!0)),(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,Xs,u?.cell,u?.year),onClick:i,children:[l&&(0,F.jsx)("span",{className:y()(Es,u?.cellCircle)}),a&&(0,F.jsx)("span",{className:y()(ks,u?.cellSelection,s&&Ds,s&&u?.cellSelectionFirst,c&&Ms,c&&u?.cellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===p&&(0,F.jsx)(F.Fragment,{children:[...Array(12)].map((e,t)=>{const n=L.add(t,"M"),i=n.valueOf();let l=!1,a=!1,s=!1;return r&&"year"!==o&&void 0!==D&&void 0!==M?D===M?i===D&&(l=!0):i>=D&&i<=M&&(l=!0,i===D?a=!0:i===M&&(s=!0)):r||"year"===o||void 0===D?l=r?void 0!==D&&void 0!==M&&i>=D&&i<=M:void 0!==D&&i===D:i===D&&(l=!0),(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,Ts,u?.cell,u?.month),onClick:B(n),children:[l&&(0,F.jsx)("span",{className:y()(Fs,u?.monthCellSelection,a&&Vs,a&&u?.monthCellSelectionFirst,s&&As,s&&u?.monthCellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===p&&(0,F.jsxs)(F.Fragment,{children:[[...Array(V)].map((e,t)=>(0,F.jsx)("div",{className:y()(Cs,u?.cell)},`empty-cell-${t}`)),[...Array(T)].map((e,t)=>{const n=L.add(t,"d").valueOf();return(0,F.jsxs)("button",{type:"button",className:y()(xs,Cs,u?.cell),onClick:G(n),children:[(n===R||n===k)&&(0,F.jsx)("span",{className:y()(Es,u?.cellCircle)}),void 0!==R&&void 0!==k&&n>=R&&n<=k&&(0,F.jsx)("span",{className:y()(ks,u?.cellSelection,n===R&&Ds,n===R&&u?.cellSelectionFirst,n===k&&Ms,n===k&&u?.cellSelectionLast)}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Rs,u?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),f&&(0,F.jsxs)("div",{className:y()(Us),children:[(0,F.jsx)("div",{className:y()(Ys)}),(0,F.jsx)(Js,{values:C,selectedValue:_,onSelect:x}),(0,F.jsx)(ce,{variant:"subtitle1",className:y()(Ks),children:":"}),(0,F.jsx)(Js,{values:E,selectedValue:S,onSelect:P})]})]})}const Qs=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","placeholder","defaultValues","values","onClear","onValueChange","dayjs","classes","id","onFocus","onBlur"];function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rc=(0,w.forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:o="date",defaultOpen:i=!1,componentSize:a="medium",fullWidth:s,label:c,placeholder:u,defaultValues:d,values:f,onClear:p,onValueChange:g,dayjs:h,classes:m,id:b,onFocus:v,onBlur:O}=e,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qs);const _=h??ds(),[x,S]=(0,w.useState)(void 0!==f?f:d),[P,C]=(0,w.useState)(i),E=(0,w.useRef)(x);(0,w.useEffect)(()=>{void 0!==f&&S(f)},[f]),(0,w.useEffect)(()=>{void 0===f&&void 0!==d&&S(d)},[d,f]),(0,w.useEffect)(()=>{E.current=x},[x]);const R=r&&"dateTime"===o?"date":o,k=(0,w.useRef)(null),D=ue(),M=b??D,I=(0,w.useCallback)(e=>{C(!0),v?.(e)},[v]),N=(0,w.useCallback)(e=>{P||O?.(e)},[P,O]),L=(0,w.useCallback)(e=>{if(C(e),!e){const e=E.current;void 0!==e&&g?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();O?.({target:t,currentTarget:t})}},[O,g]),T=(0,w.useCallback)(()=>{k.current?.focus()},[]),V=(0,w.useCallback)((e,t)=>{const n=r?[e,t]:[e],o=E.current,i=(o?.length??0)===n.length&&o?.every((e,t)=>e===n[t]);i||(E.current=n,S(n))},[r]);return(0,F.jsxs)("div",{className:y()(Os,l[a],s&&ps,m?.root),children:[!!c&&(0,F.jsx)(ce,{className:y()(ms,m?.label),component:"label",variant:"caption",htmlFor:M,children:c}),(0,F.jsxs)("div",{className:y()(_s,l[n],m?.wrapper),children:[(0,F.jsx)("input",tc(tc({ref:W([k,t]),id:M,className:y()(hs,m?.input),placeholder:u},j),{},{value:x?.[0]?r&&x[1]?`${_(x[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${_(x[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${_(x[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:I,onBlur:N})),(0,F.jsx)("span",{onClick:T,className:y()(gs,m?.icon),children:(0,F.jsx)(Si,{})}),(0,F.jsx)(Do,{placement:"bottom-start",open:P,onOpenChange:L,classes:tc(tc({},m?.popover),{},{content:ys}),containerOffset:4,description:(0,F.jsx)(Zs,{dayjs:_,classes:m,componentSize:a,isPeriod:r,valueType:R,initStartDate:x?.[0],initEndDate:x?.[1],changeDates:V,onClear:p}),children:(0,F.jsx)("div",{className:y()(ws)})})]})]})});function oc(){return(oc=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}).apply(this,arguments)}function ic(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function lc(e){var t=(0,w.useRef)(e),n=(0,w.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var ac=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},sc=function(e){return"touches"in e},cc=function(e){return e&&e.ownerDocument.defaultView||self},uc=function(e,t,n){var r=e.getBoundingClientRect(),o=sc(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:ac((o.pageX-(r.left+cc(e).pageXOffset))/r.width),top:ac((o.pageY-(r.top+cc(e).pageYOffset))/r.height)}},dc=function(e){!sc(e)&&e.preventDefault()},fc=w.memo(function(e){var t=e.onMove,n=e.onKey,r=ic(e,["onMove","onKey"]),o=(0,w.useRef)(null),i=lc(t),l=lc(n),a=(0,w.useRef)(null),s=(0,w.useRef)(!1),c=(0,w.useMemo)(function(){var e=function(e){dc(e),(sc(e)?e.touches.length>0:e.buttons>0)&&o.current?i(uc(o.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=s.current,i=cc(o.current),l=n?i.addEventListener:i.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(dc(t),!function(e,t){return t&&!sc(e)}(t,s.current)&&r)){if(sc(t)){s.current=!0;var l=t.changedTouches||[];l.length&&(a.current=l[0].identifier)}r.focus(),i(uc(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),l({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[l,i]),u=c[0],d=c[1],f=c[2];return(0,w.useEffect)(function(){return f},[f]),w.createElement("div",oc({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),pc=function(e){return e.filter(Boolean).join(" ")},gc=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=pc(["react-colorful__pointer",e.className]);return w.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},w.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},hc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},mc=(Math.PI,function(e){return jc(bc(e))}),bc=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?hc(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?hc(parseInt(e.substring(6,8),16)/255,2):1}},vc=function(e){var t=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:hc(e.h),s:hc(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:hc(o/2),a:hc(r,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},yc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:hc(255*[r,a,l,l,s,r][c]),g:hc(255*[s,r,r,a,l,l][c]),b:hc(255*[l,l,s,r,r,a][c]),a:hc(o,2)}},wc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Oc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?wc(hc(255*o)):"";return"#"+wc(t)+wc(n)+wc(r)+i},jc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:hc(60*(a<0?a+6:a)),s:hc(i?l/i*100:0),v:hc(i/255*100),a:o}},_c=w.memo(function(e){var t=e.hue,n=e.onChange,r=pc(["react-colorful__hue",e.className]);return w.createElement("div",{className:r},w.createElement(fc,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:ac(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":hc(t),"aria-valuemax":"360","aria-valuemin":"0"},w.createElement(gc,{className:"react-colorful__hue-pointer",left:t/360,color:vc({h:t,s:100,v:100,a:1})})))}),xc=w.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:vc({h:t.h,s:100,v:100,a:1})};return w.createElement("div",{className:"react-colorful__saturation",style:r},w.createElement(fc,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:ac(t.s+100*e.left,0,100),v:ac(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+hc(t.s)+"%, Brightness "+hc(t.v)+"%"},w.createElement(gc,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:vc(t)})))}),Sc=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Pc(e,t,n){var r=lc(n),o=(0,w.useState)(function(){return e.toHsva(t)}),i=o[0],l=o[1],a=(0,w.useRef)({color:t,hsva:i});(0,w.useEffect)(function(){if(!e.equal(t,a.current.color)){var n=e.toHsva(t);a.current={hsva:n,color:t},l(n)}},[t,e]),(0,w.useEffect)(function(){var t;Sc(i,a.current.hsva)||e.equal(t=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:t},r(t))},[i,e,r]);var s=(0,w.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]);return[i,s]}var Cc="undefined"!=typeof window?w.useLayoutEffect:w.useEffect,Ec=new Map,Rc=function(e){var t,n=e.className,r=e.colorModel,i=e.color,l=void 0===i?r.defaultColor:i,a=e.onChange,s=ic(e,["className","colorModel","color","onChange"]),c=(0,w.useRef)(null);t=c,Cc(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Ec.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Ec.set(e,n);var r=o.nc;r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[]);var u=Pc(r,l,a),d=u[0],f=u[1],p=pc(["react-colorful",n]);return w.createElement("div",oc({},s,{ref:c,className:p}),w.createElement(xc,{hsva:d,onChange:f}),w.createElement(_c,{hue:d.h,onChange:f,className:"react-colorful__last-control"}))},kc={defaultColor:"000",toHsva:mc,fromHsva:function(e){return function(e){return Oc(yc(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||Sc(bc(e),bc(t))}},Dc=function(e){return w.createElement(Rc,oc({},e,{colorModel:kc}))},Mc="colorPicker-module__arrow__iVl5d",Ic="colorPicker-module__icon__IIYmw",Nc="colorPicker-module__input__gaesN",Lc="colorPicker-module__label__PknU4",Tc="colorPicker-module__medium__zOCNs",Fc="colorPicker-module__outlined__Itbqh",Vc="colorPicker-module__popover-content__lql7r",Ac="colorPicker-module__popover-target__M5buG",zc="colorPicker-module__root__yWPxF",$c="colorPicker-module__small___yzV2",Hc="colorPicker-module__wrapper__xpXkA";const Bc=["variant","componentSize","fullWidth","label","classes","placeholder","ref","disabled","defaultValue","id","onValueChange"];function Wc(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 qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uc=e=>{const{variant:t="outlined",componentSize:n="medium",fullWidth:r,label:o,classes:i,placeholder:l,ref:a,disabled:c,defaultValue:u,id:d,onValueChange:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Bc),[g,h]=(0,w.useState)(u?.toString()??"#AABBCC"),m=(0,w.useRef)(null),b=(0,w.useRef)(null),v=(0,w.useCallback)(e=>{h(e.toUpperCase()),f?.(e.toUpperCase())},[]),O=(0,w.useCallback)(e=>{e.preventDefault(),c||b?.current?.click()},[b]),j=d??ze();return(0,F.jsxs)("div",{className:y()(zc,s[n],i?.root),style:{maxWidth:r?"100%":void 0},children:[!!o&&(0,F.jsx)(ce,{className:y()(Lc,i?.label),component:"label",variant:"caption",htmlFor:j,onClick:O,children:o}),(0,F.jsxs)("div",{className:y()(Hc,s[t],i?.wrapper),children:[(0,F.jsx)("input",qc(qc({ref:W([m,a]),id:j,className:y()(Nc,i?.input),placeholder:l},p),{},{value:g,onChange:()=>{},onClick:O,disabled:c})),(0,F.jsx)("span",{onClick:O,className:y()(Ic,i?.icon),style:{backgroundColor:g}}),(0,F.jsx)("span",{onClick:O,className:y()(Mc,i?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",classes:qc({content:y()(Vc,"styledScroll",i?.popoverContent)},i?.popover),containerOffset:4,description:(0,F.jsx)(Dc,{color:g,onChange:v}),children:(0,F.jsx)("div",{ref:b,className:y()(Ac)})})]})]})};var Kc="input-module__attach-icon__W3URr",Yc="input-module__file-display__GKw0F",Xc="input-module__file-input__Hj1fC",Jc="input-module__file-name__AVwRH",Zc="input-module__filled___69P0",Qc="input-module__full-width__qXDHU",eu="input-module__input__Xce3x",tu="input-module__label__RV8d4",nu="input-module__medium__TdcNA",ru="input-module__outlined___LdLU",ou="input-module__placeholder__QpTXt",iu="input-module__root__QfKhR",lu="input-module__small__kXkJz",au="input-module__wrapper__acqQv";const su=["variant","componentSize","fullWidth","label","classes","placeholder","id","type","onChange"];function cu(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 uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cu(Object(n),!0).forEach(function(t){du(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function du(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fu=(0,w.forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,classes:l,placeholder:a,id:s,type:u,onChange:d}=e,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,su);const p=(0,w.useRef)(null),[g,h]=(0,w.useState)(""),m=ue(),b=s??m,v="file"===u;return(0,F.jsxs)("div",{className:y()(iu,c[r],o&&Qc,l?.root),children:[!!i&&(0,F.jsx)(ce,{className:y()(tu,l?.label),component:"label",variant:"caption",htmlFor:b,children:i}),(0,F.jsx)("div",{className:y()(au,c[n],l?.wrapper),children:v?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("input",uu({ref:W([p,t]),id:b,className:y()(Xc,l?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];h(t?.name??""),d?.(e)}},f)),(0,F.jsxs)("div",{role:"button",tabIndex:0,className:y()(eu,Yc,l?.input),onClick:()=>p.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p.current?.click())},children:[(0,F.jsx)("span",{className:y()(Jc,!g&&ou),children:g||a}),(0,F.jsx)(Uo,{size:20,className:Kc})]})]}):(0,F.jsx)("input",uu({ref:W([p,t]),id:b,className:y()(eu,l?.input),placeholder:a,type:u,autoComplete:"off",onChange:d},f))})]})}),pu=e=>"string"==typeof e,gu=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},hu=e=>null==e?"":String(e),mu=/###/g,bu=e=>e&&e.includes("###")?e.replace(mu,"."):e,vu=e=>!e||pu(e),yu=(e,t,n)=>{const r=pu(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(vu(e))return{};const t=bu(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return vu(e)?{}:{obj:e,k:bu(r[o])}},wu=(e,t,n)=>{const{obj:r,k:o}=yu(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=yu(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=yu(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Ou=(e,t)=>{const{obj:n,k:r}=yu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},ju=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?pu(e[r])||e[r]instanceof String||pu(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ju(e[r],t[r],n):e[r]=t[r]);return e},_u=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xu={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Su=e=>pu(e)?e.replace(/[&<>"'\/]/g,e=>xu[e]):e,Pu=[" ",",","?","!",";"],Cu=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Eu=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},Ru=e=>e?.replace(/_/g,"-"),ku={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Du{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ku,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>pu(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),pu(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Du(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Du(this.logger,e)}}var Mu=new Du;class Iu{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class Nu extends Iu{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):pu(n)&&o?l.push(...n.split(o)):l.push(n)));const a=Ou(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&pu(n)?Eu(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),wu(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(pu(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=Ou(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?ju(a,n,o):a={...a,...n},wu(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Lu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Tu=Symbol("i18next/PATH_KEY");function Fu(e,t){const{[Tu]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Tu?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":";if(n.length>1&&o){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const Vu=e=>!pu(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Au extends Iu{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Mu.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Vu(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Pu.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=Cu.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:pu(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:pu(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Fu(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Fu(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const g=f?.usedKey||l,h=f?.exactUsedKey||l,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!pu(r.count),y=Au.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",O=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",j=v&&!r.ordinal&&0===r.count,_=j&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${O}`]||r.defaultValue;let x=p;b&&!p&&y&&(x=_);const S=Vu(x),P=Object.prototype.toString.apply(x);if(!(b&&x&&S)||["[object Number]","[object Function]","[object RegExp]"].includes(P)||pu(m)&&Array.isArray(x))if(b&&pu(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=_),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&_!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?_:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);j&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||_)})}):n(e,l,_))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,x,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(x),t=e?[]:{},n=e?h:g;for(const e in x)if(Object.prototype.hasOwnProperty.call(x,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Vu(_)?_[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=x[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=pu(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!pu(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=pu(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=Lu.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return pu(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Fu(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!pu(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(pu(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!pu(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class zu{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mu.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Ru(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Ru(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(pu(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),pu(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return pu(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):pu(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}}const $u={zero:0,one:1,two:2,few:3,many:4,other:5},Hu={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Bu{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Mu.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=Ru("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Hu;if(!e.match(/-|_/))return Hu;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>$u[e]-$u[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Wu=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=Ou(e,n);return void 0!==r?r:Ou(t,n)})(e,t,n);return!i&&o&&pu(n)&&(i=Eu(e,n,r),void 0===i&&(i=Eu(t,n,r))),i},qu=e=>e.replace(/\$/g,"$$$$");class Gu{constructor(e={}){this.logger=Mu.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:Su,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?_u(o):i||"{{",this.suffix=l?_u(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?_u(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?_u(c):"",this.nestingPrefix=d?_u(d):f||_u("$t("),this.nestingSuffix=p?_u(p):g||_u(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=Wu(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(Wu(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>qu(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?qu(this.escape(e)):qu(e)}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=pu(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else pu(i)||this.useRawValueToEscape||(i=hu(i));const a=t.safeValue(i);if(e=e.replace(o[0],a),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${_u(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!pu(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!pu(o))return o;pu(o)||(o=hu(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Uu=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e(Ru(r),o),t[l]=a),a(n)}},Ku=e=>(t,n,r)=>e(Ru(n),r)(t);class Yu{constructor(e={}){this.logger=Mu.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Uu:Ku;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Uu(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&!o[0].includes(")")&&o.find(e=>e.includes(")"))){const e=o.findIndex(e=>e.includes(")"));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class Xu extends Iu{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Mu.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=yu(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();pu(e)&&(e=this.languageUtils.toResolveHierarchy(e)),pu(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Ju=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),pu(e[1])&&(t.defaultValue=e[1]),pu(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Zu=e=>(pu(e.ns)&&(e.ns=[e.ns]),pu(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pu(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Qu=()=>{};class ed extends Iu{constructor(e={},t){var n;if(super(),this.options=Zu(e),this.services={},this.logger=Mu,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(pu(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=Ju();this.options={...n,...this.options,...Zu(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Mu.init(r(this.modules.logger),this.options):Mu.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Yu;const t=new zu(this.options);this.store=new Nu(this.options.resources,this.options);const n=this.services;n.logger=Mu,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Bu(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Gu(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Xu(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Au(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Qu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=gu(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=Qu){let n=t;const r=pu(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=gu();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Qu),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Lu.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=gu();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=pu(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(pu(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const l={...this.options,...i};"function"==typeof i.keyPrefix&&(i.keyPrefix=Fu(i.keyPrefix,l));const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Fu(e,l)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Fu(e,l)),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return pu(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=gu();return this.options.ns?(pu(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=gu();pu(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new zu(Ju());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new ed(e,t);return n.createInstance=ed.createInstance,n}cloneInstance(e={},t=Qu){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new ed(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Nu(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Ju().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Gu(n)}return o.translator=new Au(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const td=ed.createInstance();td.createInstance,td.dir,td.init,td.loadResources,td.reloadResources,td.use,td.changeLanguage,td.getFixedT,td.t,td.exists,td.setDefaultNamespace,td.hasLoadedNamespace,td.loadNamespaces,td.loadLanguages,o(915),Object.create(null);const nd=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);sd(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},rd={},od=(e,t,n,r)=>{sd(n)&&rd[n]||(sd(n)&&(rd[n]=new Date),nd(e,t,n,r))},id=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ld=(e,t,n)=>{e.loadNamespaces(t,id(e,n))},ad=(e,t,n,r)=>{if(sd(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return ld(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,id(e,r))},sd=e=>"string"==typeof e,cd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ud={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dd=e=>ud[e];let fd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(cd,dd),transDefaultProps:void 0};const pd=(0,w.createContext)();class gd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}Error;const hd={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"§","¶":"¶","·":"·"," ":" "," ":" "," ":" ","€":"€","£":"£","¥":"¥","¢":"¢","¤":"¤","×":"×","÷":"÷","−":"−","±":"±","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"°","µ":"µ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"};new RegExp(Object.keys(hd).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var md=o(888);const bd={t:(e,t)=>{if(sd(t))return t;if("object"==typeof(n=t)&&null!==n&&sd(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},vd=()=>()=>{},yd=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,w.useContext)(pd)||{},i=n||r||void 0;i&&!i.reportNamespaces&&(i.reportNamespaces=new gd),i||od(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=(0,w.useMemo)(()=>({...fd,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,c=e||o||i?.options?.defaultNS,u=sd(c)?[c]:c||["translation"],d=(0,w.useMemo)(()=>u,u);i?.reportNamespaces?.addUsedNamespaces?.(d);const f=(0,w.useRef)(0),p=(0,w.useCallback)(e=>{if(!i)return vd;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{f.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),g=(0,w.useRef)(),h=(0,w.useCallback)(()=>{if(!i)return bd;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&d.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(od(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=f.current,o=g.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?d:d[0],s),ready:e,lng:n,keyPrefix:s,revision:r};return g.current=a,a},[i,d,s,l,t.lng]),[m,b]=(0,w.useState)(0),{t:v,ready:y}=(0,md.useSyncExternalStore)(p,h,h);(0,w.useEffect)(()=>{if(i&&!y&&!a){const e=()=>b(e=>e+1);t.lng?ad(i,t.lng,d,e):ld(i,d,e)}},[i,t.lng,d,y,a,m]);const O=i||{},j=(0,w.useRef)(null),_=(0,w.useRef)(),x=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},S=(0,w.useMemo)(()=>{const e=O,t=e?.language;let n=e;e&&(j.current&&j.current.__original===e?_.current!==t?(n=x(e),j.current=n,_.current=t):n=j.current:(n=x(e),j.current=n,_.current=t));const r=y||a?v:(...e)=>(od(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...e)),o=[r,n,y];return o.t=r,o.i18n=n,o.ready=y,o},[v,O,y,O.resolvedLanguage,O.language,O.languages]);if(i&&a&&!y)throw new Promise(e=>{const n=()=>e();t.lng?ad(i,t.lng,d,n):ld(i,d,n)});return S},wd=()=>{const{t:e,i18n:t}=yd();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Od="searchInput-module__filled__bFEEy",jd="searchInput-module__icon__zHTol",_d="searchInput-module__input__gX5Td",xd="searchInput-module__medium__ypAHh",Sd="searchInput-module__outlined__x5bUA",Pd="searchInput-module__root__WAhkl",Cd="searchInput-module__small__JmU0u",Ed="searchInput-module__with-icon__fx4_g";const Rd=["variant","componentSize","disableIcon","fullWidth","placeholder","classes","ref"];function kd(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 Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Md(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Id(e){const{variant:t="filled",componentSize:n="medium",disableIcon:r,fullWidth:o,placeholder:i,classes:l,ref:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Rd),{t:c}=wd(),d=(0,w.useRef)(null);return(0,F.jsxs)("div",{className:y()(Pd,u[t],u[n],r?void 0:Ed,l?.root),style:{maxWidth:o?"100%":void 0},children:[!r&&(0,F.jsx)("span",{className:y()(jd,l?.icon),onClick:()=>{d.current?.focus()},children:(0,F.jsx)(hl,{})}),(0,F.jsx)("input",Dd({ref:W([d,a]),className:y()(_d,l?.input),placeholder:i??c("Поиск...")},s))]})}var Nd="wrapForLabel-module__medium__xK1gW",Ld="wrapForLabel-module__root__qo0J8",Td="wrapForLabel-module__small__esSsd";const Fd=e=>{const{componentSize:t="medium",children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()(Ld,d[t],r?.root),children:n})};var Vd="multiSelect-module__arrow__jafPv",Ad="multiSelect-module__checklist-root__hidSo",zd="multiSelect-module__checklist-scrolled__KC8yS",$d="multiSelect-module__checklist-wrapper__EDrnx",Hd="multiSelect-module__clear__CwQiH",Bd="multiSelect-module__filled__Hz9me",Wd="multiSelect-module__full-width__LexBp",qd="multiSelect-module__icon__TnLPX",Gd="multiSelect-module__input__Hk3TU",Ud="multiSelect-module__item-icon__TRHVT",Kd="multiSelect-module__label__hATiI",Yd="multiSelect-module__label-selected-count__gCPqL",Xd="multiSelect-module__medium__BTgaQ",Jd="multiSelect-module__outlined__PSPU8",Zd="multiSelect-module__popover-content__p_jyb",Qd="multiSelect-module__popover-target__x51qe",ef="multiSelect-module__root__J3jt6",tf="multiSelect-module__search-input-root__rCmDl",nf="multiSelect-module__small__l60qu",rf="multiSelect-module__with-icon__eaSrD",of="multiSelect-module__with-item-icon__LfhcF",lf="multiSelect-module__wrapper__lHCC4",af="checklist-module__action-wrap__rW_zg",sf="checklist-module__root__AKDzG",cf="checklist-module__scrolled__mpmGi";function uf(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 df(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ff=(e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach(function(t){df(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]);function pf(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 gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(n),!0).forEach(function(t){hf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e){const{items:t,selected:n,disableSearch:r,isDisabled:o,actionWithSelected:i,onChangeItem:l,classes:a}=e,{t:s}=wd(),[c,u]=(0,w.useState)(""),d=(0,w.useMemo)(()=>ff(t,c,n),[t,c,n]),f=(0,w.useMemo)(()=>t.filter(e=>!!n[e.value]),[t,n]),p=(0,w.useCallback)(e=>{const t=!n[e.value];l&&l(e);const r=gf(gf({},n),{},{[e.value]:t});i(r)},[n,l,i]),g=(0,w.useCallback)(()=>{const e=gf({},n);d.forEach(t=>{e[t.value]=!0}),i(e)},[n,d,i]),h=(0,w.useCallback)(()=>{const e=gf({},n);f.forEach(t=>{delete e[t.value]}),i(e)},[n,f,i]),m=(0,w.useCallback)(e=>{u(e.target.value)},[]),b=(0,w.useCallback)(e=>t=>{t.stopPropagation(),p(e)},[p]);return(0,F.jsxs)("div",{className:y()(sf,a?.root),children:[!r&&(0,F.jsx)(Id,{variant:"outlined",disabled:o,value:c,fullWidth:!0,classes:a?.searchInput,onChange:m}),(0,F.jsxs)("div",{className:y()(cf,"styledScroll",a?.scrolled),children:[f.length>0&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:y()(af,a?.actionWrap),children:[(0,F.jsx)(ce,{className:y()(a?.typography),children:s("Выбранное")}),(0,F.jsx)(H,{variant:"link",size:"small",disabled:o,onClick:h,className:y()(a?.button),children:s("Отменить")})]}),(0,F.jsx)("div",{children:f.map(e=>(0,F.jsx)(Fe,{label:e.name,checked:!!n[e.value],onChange:b(e),disabled:o,classes:a?.checkbox},`selected-${e.value}`))})]}),!o&&!!d.length&&(0,F.jsx)(H,{variant:"link",size:"small",disabled:o,onClick:g,className:y()(a?.button),children:s("Выбрать все")}),(0,F.jsx)("div",{children:d.map(e=>(0,F.jsx)(Fe,{label:e.name,checked:!!n[e.value],onChange:b(e),disabled:o,classes:a?.checkbox},`filtered-${e.value}`))})]})]})}const bf=["checklistWrapper"];function vf(e){const{items:t,selected:n,onSelectedChange:r,classes:o,enableSearch:i=!1,disabled:l}=e,a=(0,w.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),s=(0,w.useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),c=(0,w.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);r(n)},[r,t]),u=o??{},{checklistWrapper:d}=u,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(u,bf);return(0,F.jsx)("div",{className:y()(d),children:(0,F.jsx)(mf,{disableSearch:!i,isDisabled:l,items:a,selected:s,actionWithSelected:c,classes:f})})}const yf=(e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("Выбрано элементов")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`}},wf=["variant","componentSize","icon","fullWidth","label","placeholder","items","onValueChange","selected","classes","ref","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Of(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 jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(t){_f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _f(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xf(e){const{variant:t="filled",componentSize:n="medium",icon:r,fullWidth:o,label:i,placeholder:l,items:a,onValueChange:s,selected:c,classes:u,ref:d,disabled:p,id:g,titleType:h="allValue",showSelectedCount:m=!1,enableSearch:b=!1,popoverInComponent:v=!1}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,wf),{t:j}=yd(),_=(0,w.useRef)(null),x=(0,w.useRef)(null),S=(0,w.useRef)(null),[P,C]=(0,w.useState)(!1),[E,R]=(0,w.useState)();(0,w.useLayoutEffect)(()=>{const e=_.current;if(!e)return;const t=()=>{R(e.getBoundingClientRect().width)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]);const k=(0,w.useMemo)(()=>a.filter(e=>c?.includes(e.value)),[c,a]),D=(0,w.useCallback)(e=>{e.preventDefault(),p||C(e=>!e)},[p]),M=(0,w.useCallback)(e=>{s?.(e)},[s]),I=(0,w.useMemo)(()=>k.length?yf(h,k,j):"",[h,k,j]),N=g??ze();return(0,F.jsxs)("div",{className:y()(ef,f[n],o?Wd:void 0,u?.root),children:[!!i&&(0,F.jsxs)(ce,{className:y()(Kd,u?.label),component:"label",variant:"caption",htmlFor:N,onClick:D,children:[i,m&&k.length>0&&(0,F.jsx)("span",{className:y()(Yd,u?.labelSelectedCount),children:` (${k.length})`})]}),(0,F.jsxs)("div",{ref:_,className:y()(lf,f[t],r?rf:void 0,u?.wrapper),children:[(0,F.jsx)("input",jf(jf({ref:W([x,d]),id:N,className:y()(Gd,u?.input),placeholder:l},O),{},{value:I,onClick:D,disabled:p,readOnly:!0,title:k.map(e=>e.name).join(", "),autoComplete:"off"})),!!r&&(0,F.jsx)("span",{onClick:D,className:y()(qd,u?.icon),children:r}),!!k.length&&(0,F.jsx)("span",{onClick:()=>{s?.(null)},className:y()(Hd,u?.clear),children:(0,F.jsx)(Oi,{})}),(0,F.jsx)("span",{onClick:D,className:y()(Vd,u?.arrow),children:(0,F.jsx)(Pa,{})}),(0,F.jsx)(Do,{placement:"bottom-start",open:P,onOpenChange:C,contentStyle:E?{width:E,minWidth:E,maxWidth:E}:void 0,classes:jf({content:y()(Zd,u?.popoverContent)},u?.popover),containerOffset:4,root:v?_.current:void 0,description:(0,F.jsx)(vf,{items:a,classes:jf({searchInput:jf({root:tf},u?.selectPopover?.searchInput),root:Ad,checklistWrapper:y()($d),scrolled:zd},u?.selectPopover),componentSize:n,selected:c,onSelectedChange:M,enableSearch:b,disabled:p}),children:(0,F.jsx)("div",{ref:S,className:y()(Qd)})})]})]})}var Sf="radioButton-module__deselected__kGeIi",Pf="radioButton-module__input__O_xQT",Cf="radioButton-module__label__A9fWR",Ef="radioButton-module__label-text__KSEbB",Rf="radioButton-module__pressed__n_bXs",kf="radioButton-module__radio__fDsQH",Df="radioButton-module__root__fxVmv",Mf="radioButton-module__selected__atkc_";const If=["label","componentSize","canUncheck","onUncheck","classes","id","ref","onClick"];function Nf(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 Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(t){Tf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ff(e){const{label:t,componentSize:n="medium",canUncheck:r,onUncheck:o,classes:i,id:l,ref:a,onClick:s}=e,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,If),u=(0,w.useRef)(null),d=(0,w.useRef)(!1),f=ue(),p=l??f;(0,w.useEffect)(()=>{const e=u.current;if(!e)return;const t=()=>e.classList.remove(Rf),n=()=>{e.classList.add(Rf),d.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g=(0,w.useCallback)(e=>{r&&d.current&&(u.current.checked=!1,o?.()),s?.(e)},[r,o,s]),h="large"===n?"subtitle1":"subtitle2";return(0,F.jsxs)("div",{className:y()(Df,i?.root),children:[(0,F.jsx)("input",Lf({ref:W([u,a]),type:"radio",className:y()(Pf,i?.input),id:p,title:t,onClick:g},c)),(0,F.jsxs)("label",{htmlFor:p,className:y()(Cf,i?.label),title:t,children:[(0,F.jsx)("span",{className:y()(kf,Sf,i?.radio),children:(0,F.jsx)(ti,{})}),(0,F.jsx)("span",{className:y()(kf,Mf,i?.radio),children:(0,F.jsx)(ii,{})}),!!t&&(0,F.jsx)(ce,{variant:h,className:y()(Ef,i?.labelText),children:t})]})]})}var Vf="surface-module__modal__CtpUb",Af="surface-module__panel__WAxUP",zf="surface-module__primary__k8467",$f="surface-module__root__h8d8c";function Hf(e){const{type:t="primary",children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()($f,r?.root,p[t]),children:n})}var Bf="layout-module__root__I9KVI",Wf="layout-module__with-header___aKcB";function qf(e){const{withoutHeader:t,children:n,classes:r}=e;return(0,F.jsx)("div",{className:y()(Bf,t?void 0:Wf,r?.root),children:n})}var Gf="tooltip-module__arrow__SONUP",Uf="tooltip-module__bottom-arrow__GdFYs",Kf="tooltip-module__content__nH6p2",Yf="tooltip-module__error__XWI8s",Xf="tooltip-module__info__un5n7",Jf="tooltip-module__left-arrow__BFwGV",Zf="tooltip-module__right-arrow__ZFRBE",Qf="tooltip-module__success__OXBJT",ep="tooltip-module__top-arrow__UHvch",tp="tooltip-module__trigger__PIfJx",np="tooltip-module__warning__Xb_Wr";const rp=(0,w.createContext)(null),op=["styles","style","children"],ip=["context"];function lp(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(t){sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const up=(0,w.forwardRef)(function(e,t){let{styles:n,style:r,children:o}=e,i=cp(e,op);const l=(0,w.useContext)(rp);if(!l)return null;const{context:a}=l,s=cp(l,ip),c=sr([s.refs.setFloating,t]);if(!a.open)return null;let u="",d=null,f=null;switch(s.placement){case"top":case"top-end":case"top-start":u="topArrow",f=!1;break;case"bottom":case"bottom-end":case"bottom-start":u="bottomArrow",f=!0;break;case"left":case"left-end":case"left-start":u="leftArrow",d=!0;break;case"right":case"right-end":case"right-start":u="rightArrow",d=!1}return(0,F.jsx)($r,{root:s.root,children:(0,F.jsxs)("div",ap(ap({ref:c,style:ap(ap({},s.floatingStyles),r)},s.getFloatingProps(i)),{},{children:[o,!s.withoutArrow&&(0,F.jsx)("div",{className:n&&y()(n.arrow,n[u]),ref:s.arrowRef,style:{position:"absolute",left:null===f&&!1===d?0:s.middlewareData.arrow?.x,right:null===f&&!0===d?0:s.middlewareData.arrow?.x,top:null===d&&!0===f?0:s.middlewareData.arrow?.y,bottom:null===d&&!1===f?0:s.middlewareData.arrow?.y}})]}))})});function dp(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 fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){pp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gp=["children"],hp=e=>{const{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gp),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,w.useState)(t),u=r??s,d=o??c,f=ro({placement:n,open:u,onOpenChange:d,whileElementsMounted:Yn,middleware:[or(12),lr({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ir({padding:5}),...!i&&l?.current?[ar({element:l})]:[]]}),{context:p}=f,g=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=wr(),g=yr(),h=Xt(c),m=Xt(s),b=Xt(n),v=Xt(d),y=w.useRef(),O=w.useRef(-1),j=w.useRef(),_=w.useRef(-1),x=w.useRef(!0),S=w.useRef(!1),P=w.useRef(()=>{}),C=w.useRef(!1),E=Zt(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});w.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(jr(O),jr(_),x.current=!0,C.current=!1)}},[a,i]),w.useEffect(()=>{if(!a)return;if(!h.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=$t(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,h,E]);const R=w.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=xr(m.current,"close",y.current);o&&!j.current?(jr(O),O.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(jr(O),r(!1,e,n))},[m,r]),k=Zt(()=>{P.current(),j.current=void 0}),D=Zt(()=>{if(S.current){const e=$t(l.floating).body;e.style.pointerEvents="",e.removeAttribute(_r),S.current=!1}}),M=Zt(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));w.useEffect(()=>{if(a&&Ke(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(jr(O),x.current=!1,u&&!Kt(y.current)||Sr(v.current)>0&&!xr(m.current,"open"))return;const t=xr(m.current,"open",y.current);t?O.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(M())return void D();P.current();const t=$t(l.floating);if(jr(_),C.current=!1,h.current&&o.current.floatingContext){n||jr(O),j.current=h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(P.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Vt(l.floating,e.relatedTarget))&&R(e)}function i(e){M()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){D(),k(),M()||R(e)}})(e))}function s(){jr(O)}function c(e){M()||R(e,!1)}},[l,a,e,u,f,R,k,D,r,n,b,p,m,h,o,M,v]),Yt(()=>{var e;if(a&&n&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){S.current=!0;const e=l.floating;if(Ke(l.domReference)&&e){var t;const n=$t(l.floating).body;n.setAttribute(_r,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===g))||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=""}}}},[a,n,g,l,p,h,E]),Yt(()=>{n||(y.current=void 0,C.current=!1,k(),D())},[n,k,D]),w.useEffect(()=>()=>{k(),jr(O),jr(_),D()},[a,l.domReference,k,D]);const I=w.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||b.current||r(!0,t,"hover")}u&&!Kt(y.current)||n||0===Sr(v.current)||C.current&&e.movementX**2+e.movementY**2<2||(jr(_),"touch"===y.current?o():(C.current=!0,_.current=window.setTimeout(o,Sr(v.current))))}}},[u,r,n,b,v]);return w.useMemo(()=>a?{reference:I}:{},[a,I])}(p,{move:!1,enabled:null==r}),h=ao([g,io(p,{enabled:null==r}),no(p),co(p,{role:"tooltip"})]);return(0,w.useMemo)(()=>fp(fp({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},h),f),[u,d,h,f,a])}(n);return(0,F.jsx)(rp.Provider,{value:r,children:t})},mp=["children","wrapTrigger"];function bp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wp=(0,w.forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,mp);const i=(0,w.useContext)(rp),l=n.ref,a=sr([i?.refs.setReference,t,l]);return i?!r&&(0,w.isValidElement)(n)?(0,w.cloneElement)(n,i.getReferenceProps(vp(vp(vp({ref:a},o),n.props),{},{"data-state":i.open?"open":"closed"}))):(0,F.jsx)("div",vp(vp({ref:a,"data-state":i.open?"open":"closed"},i.getReferenceProps(o)),{},{children:n})):null});function Op(e){const{label:t,clickable:n,initialOpen:r,placement:o,withoutArrow:i,wrapTrigger:l,alertType:a="default",root:s,children:c,classes:u}=e,[d,f]=(0,w.useState)(!1),p=(0,w.useRef)(null);return t?c?(0,F.jsxs)(hp,{placement:o,initialOpen:r,open:n?d:void 0,onOpenChange:n?f:void 0,withoutArrow:i,arrowRef:p,root:s,children:[(0,F.jsx)(wp,{wrapTrigger:l,onClick:n?()=>f(e=>!e):void 0,className:l?y()(tp,u?.trigger):void 0,children:c}),(0,F.jsx)(up,{className:y()(Kf,g[a],u?.content),styles:g,children:t})]}):null:c?(0,F.jsx)(F.Fragment,{children:c}):null}var jp="tabs-module__disable-border__Vw9nt",_p="tabs-module__disabled__e_X85",xp="tabs-module__filled__Kzrnb",Sp="tabs-module__icon-only__qDPjH",Pp="tabs-module__medium__dvN0f",Cp="tabs-module__root__m7YiQ",Ep="tabs-module__selected__YEXTT",Rp="tabs-module__selected-filled__MkMIt",kp="tabs-module__small__hiwdI",Dp="tabs-module__tab__NoNie",Mp="tabs-module__tab-border__tvFwj",Ip="tabs-module__tab-border-vertical__TVo15",Np="tabs-module__tab-filled__Gmwpo",Lp="tabs-module__tab-icon__Kj5Oa",Tp="tabs-module__tab-title__XsuJP",Fp="tabs-module__tab-vertical__WQDkd",Vp="tabs-module__vertical__sPO6h";function Ap(e){const{items:t,defaultSelected:n,onChange:r,size:o="medium",filled:i=!1,isVertical:l=!1,disableBorder:a=!1,allowDeselect:s=!1,showTooltips:c=!1,useExternalState:u=!1,value:d,classes:f}=e,[p,g]=(0,w.useState)(!1),[m,b]=(0,w.useState)(n),v=u?d:m,O=e=>()=>{e.isDisabled||(e.onClick?e.onClick():u?s&&v===e.value?r?.(void 0):r?.(e.value):s&&m===e.value?b(void 0):b(e.value))};return(0,w.useEffect)(()=>{p&&!u&&r?.(m),p||g(!0)},[m,u]),(0,F.jsx)("div",{className:y()(Cp,i&&xp,l&&Vp,a&&jp,h[o],f?.root),children:t.map(e=>{const t=!e.onClick&&v===e.value,n=(0,F.jsxs)("div",{className:y()(Dp,i&&Np,l&&Fp,a&&jp,t?Ep:void 0,t&&i?Rp:void 0,e.isDisabled&&_p,f?.tab,t?f?.tabSelected:void 0,e.isDisabled?f?.tabDisabled:void 0),onClick:O(e),children:[(0,F.jsxs)("div",{className:y()(Tp,c&&e.icon&&Sp,f?.tabTitle,t?f?.tabSelectedTitle:void 0),children:[e.icon&&(0,F.jsx)("span",{className:Lp,children:"string"==typeof e.icon?(0,F.jsx)("span",{className:Lp,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!c&&e.name&&(0,F.jsx)("span",{title:e.name,children:e.name})]}),(0,F.jsx)("div",{className:y()(Mp,l&&Ip,a&&jp,f?.tabBorder,t?f?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return c&&e.name?(0,F.jsx)(Op,{label:e.name,placement:l?"right":"top",children:n},`tab-${e.value}`):n})})}function zp(e,t){return"function"==typeof e?e(t):e}function $p(e,t){return n=>{t.setState(t=>({...t,[e]:zp(n,t[e])}))}}function Hp(e){return e instanceof Function}function Bp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/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 Wp(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 qp="debugHeaders";function Gp(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 Up={createTable:e=>{e.getHeaderGroups=Bp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Kp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},Wp(e.options,qp)),e.getCenterHeaderGroups=Bp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Kp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),Wp(e.options,qp)),e.getLeftHeaderGroups=Bp(()=>[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 Kp(t,i,e,"left")},Wp(e.options,qp)),e.getRightHeaderGroups=Bp(()=>[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 Kp(t,i,e,"right")},Wp(e.options,qp)),e.getFooterGroups=Bp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getLeftFooterGroups=Bp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getCenterFooterGroups=Bp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getRightFooterGroups=Bp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Wp(e.options,qp)),e.getFlatHeaders=Bp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getLeftFlatHeaders=Bp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getCenterFlatHeaders=Bp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getRightFlatHeaders=Bp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Wp(e.options,qp)),e.getCenterLeafHeaders=Bp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getLeftLeafHeaders=Bp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getRightLeafHeaders=Bp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Wp(e.options,qp)),e.getLeafHeaders=Bp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},Wp(e.options,qp))}};function Kp(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=Gp(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Gp(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Yp=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],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}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Bp(()=>[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:Bp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Wp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),Wp(e.options,"debugRows")),_getAllCellsByColumnId:Bp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Wp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Xp={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()}}},Jp=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};Jp.autoRemove=e=>ag(e);const Zp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Zp.autoRemove=e=>ag(e);const Qp=(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())};Qp.autoRemove=e=>ag(e);const eg=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};eg.autoRemove=e=>ag(e);const tg=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});tg.autoRemove=e=>ag(e)||!(null!=e&&e.length);const ng=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});ng.autoRemove=e=>ag(e)||!(null!=e&&e.length);const rg=(e,t,n)=>e.getValue(t)===n;rg.autoRemove=e=>ag(e);const og=(e,t,n)=>e.getValue(t)==n;og.autoRemove=e=>ag(e);const ig=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};ig.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,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},ig.autoRemove=e=>ag(e)||ag(e[0])&&ag(e[1]);const lg={includesString:Jp,includesStringSensitive:Zp,equalsString:Qp,arrIncludes:eg,arrIncludesAll:tg,arrIncludesSome:ng,equals:rg,weakEquals:og,inNumberRange:ig};function ag(e){return null==e||""===e}const sg={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:$p("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?lg.includesString:"number"==typeof r?lg.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?lg.equals:Array.isArray(r)?lg.arrIncludes:lg.weakEquals},e.getFilterFn=()=>{var n,r;return Hp(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:lg[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=zp(n,o?o.value:void 0);var l;if(cg(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},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=zp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!cg(t.getFilterFn(),e.value,t)})})},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 cg(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const ug={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},dg={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:$p("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?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?ug.sum:"[object Date]"===Object.prototype.toString.call(r)?ug.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Hp(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:ug[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)}}},fg={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:$p("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Bp(e=>[yg(t,e)],t=>t.findIndex(t=>t.id===e.id),Wp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=yg(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=yg(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=Bp(()=>[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));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},Wp(e.options,"debugTable"))}},pg={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:$p("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,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).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)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"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=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},Wp(t.options,"debugRows")),e.getLeftVisibleCells=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},Wp(t.options,"debugRows")),e.getRightVisibleCells=Bp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},Wp(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?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Wp(e.options,"debugColumns")),e.getRightLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Wp(e.options,"debugColumns")),e.getCenterLeafColumns=Bp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},Wp(e.options,"debugColumns"))}},gg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},hg={getDefaultColumnDef:()=>gg,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:$p("columnSizing",e),onColumnSizingInfoChange:$p("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:gg.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:gg.size),null!=(o=e.columnDef.maxSize)?o:gg.maxSize)},e.getStart=Bp(e=>[e,yg(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Wp(t.options,"debugColumns")),e.getAfter=Bp(e=>[e,yg(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Wp(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)return;if(null==i.persist||i.persist(),bg(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=bg(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,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(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*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),g={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",g.moveHandler),null==p||p.removeEventListener("mouseup",g.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof mg)return mg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return mg=e,mg}()&&{passive:!1};bg(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",g.moveHandler,m),null==p||p.addEventListener("mouseup",g.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,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 mg=null;function bg(e){return"touchstart"===e.type}const vg={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:$p("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?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=Bp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Wp(t.options,"debugRows")),e.getVisibleCells=Bp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Wp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Bp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Wp(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 yg(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const wg={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:$p("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=>zp(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=zp(t,n.pageIndex);const o=void 0===e.options.pageCount||-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,zp(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=zp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Bp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Wp(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}}},Og={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:$p("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?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)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"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?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Wp(e.options,"debugRows")),e.getBottomRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Wp(e.options,"debugRows")),e.getCenterRows=Bp(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},Wp(e.options,"debugRows"))}},jg={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:$p("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=void 0!==t?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=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{_g(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getFilteredSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getGroupedSelectedRowModel=Bp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?xg(e,n):{rows:[],flatRows:[],rowsById:{}},Wp(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(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 l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return _g(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Sg(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Pg(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Pg(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)}}}},_g=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>_g(e,t.id,n,r,o))};function xg(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=Sg(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Sg(e,t){var n;return null!=(n=t[e.id])&&n}function Pg(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()&&(Sg(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Pg(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const Cg=/([0-9]+)/gm;function Eg(e,t){return e===t?0:e>t?1:-1}function Rg(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function kg(e,t){const n=e.split(Cg).filter(Boolean),r=t.split(Cg).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const Dg={alphanumeric:(e,t,n)=>kg(Rg(e.getValue(n)).toLowerCase(),Rg(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>kg(Rg(e.getValue(n)),Rg(t.getValue(n))),text:(e,t,n)=>Eg(Rg(e.getValue(n)).toLowerCase(),Rg(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Eg(Rg(e.getValue(n)),Rg(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)=>Eg(e.getValue(n),t.getValue(n))},Mg={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:$p("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 Dg.datetime;if("string"==typeof n&&(r=!0,n.split(Cg).length>1))return Dg.alphanumeric}return r?Dg.text:Dg.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 Hp(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:Dg[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],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(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"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())}},Ig=[Up,vg,fg,pg,Xp,sg,{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()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:$p("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=()=>lg.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Hp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:lg[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Mg,dg,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:$p("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=>{(null!=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 l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;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?void 0: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()}}}},wg,Og,jg,hg];function Ng(e){var t,n;const r=[...Ig,...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 l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=zp(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:Bp(()=>[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}},Wp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Bp(()=>[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 l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Bp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Wp(e.options,"debugColumns")),getLeafColumns:Bp(()=>[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]},Wp(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},Wp(e,"debugColumns")),getAllFlatColumns:Bp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Wp(e,"debugColumns")),_getAllFlatColumnsById:Bp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Wp(e,"debugColumns")),getAllLeafColumns:Bp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Wp(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 Lg(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?w.createElement(e,t):e:null;var n}function Tg(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){var l,a,s;let c;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now());const u=e(),d=u.length!==o.length||u.some((e,t)=>o[t]!==e);if(!d)return r;let f;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(f=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-f))/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!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r}return l.updateDeps=e=>{o=e},l}function Fg(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const Vg=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},Ag=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},zg=e=>e,$g=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},Hg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(Ag(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(Ag(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Bg={passive:!0},Wg="undefined"==typeof window||"onscrollend"in window,qg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&Wg?()=>{}:Vg(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=r=>()=>{const{horizontal:l,isRtl:a}=e.options;o=l?n.scrollLeft*(a?-1:1):n.scrollTop,i(),t(o,r)},a=l(!0),s=l(!1);n.addEventListener("scroll",a,Bg);const c=e.options.useScrollendEvent&&Wg;return c&&n.addEventListener("scrollend",s,Bg),()=>{n.removeEventListener("scroll",a),c&&n.removeEventListener("scrollend",s)}},Gg=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ug=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const l=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class Kg{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:zg,rangeExtractor:$g,onChange:()=>{},measureElement:Gg,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Tg(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=Tg(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,o,i,l)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=Tg(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l},a)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const c=this.measurementsCache.slice(0,s),u=new Array(i).fill(void 0);for(let e=0;e<s;e++){const t=c[e];t&&(u[t.lane]=e)}for(let o=s;o<e;o++){const e=r(o),i=this.laneAssignments.get(o);let s,d;const f="estimate"===l||a.has(e);if(void 0!==i&&this.options.lanes>1){s=i;const e=u[s],r=void 0!==e?c[e]:void 0;d=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?c[o-1]:this.getFurthestMeasurement(c,o);d=e?e.end+this.options.gap:t+n,s=e?e.lane:o%this.options.lanes,this.options.lanes>1&&f&&this.laneAssignments.set(o,s)}const p=a.get(e),g="number"==typeof p?p:this.options.estimateSize(o),h=d+g;c[o]={index:o,start:d,size:g,end:h,key:e,lane:s},u[s]=o}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Tg(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const o=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:o};let i=Yg(0,o,t=>e[t].start,n),l=i;if(1===r)for(;l<o&&e[l].end<n+t;)l++;else if(r>1){const a=Array(r).fill(0);for(;l<o&&a.some(e=>e<n+t);){const t=e[l];a[t.lane]=t.end,l++}const s=Array(r).fill(n+t);for(;i>=0&&s.some(e=>e>=n);){const t=e[i];s[t.lane]=t.start,i--}i=Math.max(0,i-i%r),l=Math.min(o,l+(r-1-l%r))}return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Tg(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;const r=this.measurementsCache[e];if(!r)return;const o=t-(this.itemSizeCache.get(r.key)??r.size);0!==o&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,t)),this.notify(!1))},this.getVirtualItems=Tg(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Fg(t[Yg(0,t.length-1,e=>Fg(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Yg=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Xg="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function Jg(e){return function({useFlushSync:e=!0,...t}){const n=w.useReducer(()=>({}),{})[1],r={...t,onChange:(r,o)=>{var i;e&&o?(0,an.flushSync)(n):n(),null==(i=t.onChange)||i.call(t,r,o)}},[o]=w.useState(()=>new Kg(r));return o.setOptions(r),Xg(()=>o._didMount(),[]),Xg(()=>o._willUpdate()),o}({observeElementRect:Hg,observeElementOffset:qg,scrollToFn:Ug,...e})}const Zg=32,Qg=["open","onClose","root","children"];function eh(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(t){nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rh=(0,w.forwardRef)(function(e,t){let{open:n,onClose:r,root:o=document.body,children:i}=e,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qg);const a=(0,w.useRef)(null),s=(0,w.useRef)(null);if(!n||!i)return null;const c=(0,F.jsx)("div",th(th({ref:a,className:"modal-module__overlay__qGmy7",onClick:e=>{e.target!==a.current&&s.current?.contains(e.target)||(e.stopPropagation(),r?.())}},l),{},{children:(0,F.jsx)("div",{ref:e=>{e&&(s.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:"modal-module__modal__SyCF2",onClick:e=>e.stopPropagation(),children:i})}));return(0,an.createPortal)(c,o)});var oh="virtualTable-module__align-center__GE7hn",ih="virtualTable-module__align-left__UwmQP",lh="virtualTable-module__align-right__BgN21",ah="virtualTable-module__borders-all__4E7iX",sh="virtualTable-module__borders-horizontal__sJHrp",ch="virtualTable-module__borders-vertical__vW5hC",uh="virtualTable-module__bottom-border__Aqyxx",dh="virtualTable-module__clickable__rairY",fh="virtualTable-module__editable__vHC_D",ph="virtualTable-module__error__Pc_YH",gh="virtualTable-module__even-row__UtfmY",hh="virtualTable-module__first-th-row__Ic3VG",mh="virtualTable-module__input__URGVM",bh="virtualTable-module__label__RRtAL",vh="virtualTable-module__margin-left-changing__DeOwh",yh="virtualTable-module__medium__fWjBj",wh="virtualTable-module__modal-content__y8dAa",Oh="virtualTable-module__right-border___sLGh",jh="virtualTable-module__root__oT8Aa",_h="virtualTable-module__row-button-trigger__qLWa9",xh="virtualTable-module__rowspan-content__uNqDw",Sh="virtualTable-module__selected__LXpK4",Ph="virtualTable-module__show-in-modal__v55Sn",Ch="virtualTable-module__small__Pbe1H",Eh="virtualTable-module__sticky__kLGF2",Rh="virtualTable-module__success__xPKub",kh="virtualTable-module__table__GccG7",Dh="virtualTable-module__table-container__Z27Uv",Mh="virtualTable-module__td__INgoI",Ih="virtualTable-module__th__xeEGg",Nh="virtualTable-module__th-cell__r6ckx",Lh="virtualTable-module__th-hidden-column__jr_ZK",Th="virtualTable-module__th-left-border__Ns0MX",Fh="virtualTable-module__th-right-border__PR4eS",Vh="virtualTable-module__tr__chmfp",Ah="virtualTable-module__vertical-align-center__Xun5O",zh="virtualTable-module__vertical-align-flex-end__wOSxq",$h="virtualTable-module__vertical-align-flex-start__uBUX9",Hh="virtualTable-module__view-cell__bXl8D",Bh="virtualTable-module__view-span__HfOpN";const Wh={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:o},table:i})=>{const l=e(),{meta:a}=o,s=i.options.meta,[c,u]=(0,w.useState)(l),[d,f]=(0,w.useState)(!1),[p,g]=(0,w.useState)(!1),h=(0,w.useRef)();h.current=()=>{g(!1)},(0,w.useEffect)(()=>{u(l)},[l]);const b=s?.additionalColumnsViews?.(r,l,n[r]?.payload);if(d&&a?.editable){const e=()=>{s?.updateData(t,r,c,n),f(!1)},o=(e,o)=>{u(e),o&&(s?.updateData(t,r,e,n),f(!1))};return(0,F.jsx)(Op,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=b?.edit?b.edit(o,e):(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(fu,{classes:{input:mh},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:c??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const v=null!=b?.view?b.view:a?.valueFormat?a.valueFormat(l):void 0===a?.toFixed||Number.isNaN(parseFloat(l))?l:parseFloat(Number(l).toFixed(a.toFixed));return(0,F.jsx)(Op,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,F.jsxs)("div",{className:y()(Hh,a?.rowsAlign?m[`align${a?.rowsAlign}`]:void 0,a?.showInModal?Ph:void 0,a?.onClick&&n[r]?.payload?dh:void 0,n[r]?.fill?m[n[r].fill]:void 0,a?.editable?fh:void 0,a?.verticalAlign?m[`verticalAlign${a?.verticalAlign}`]:void 0),onClick:a?.editable?()=>{f(!0)}:a?.showInModal?()=>{g(!0)}:a?.onClick&&n[r]?.payload?()=>a?.onClick?.(n[r]?.payload??{}):void 0,children:[(0,F.jsx)("span",{className:Bh,children:v}),p&&(0,F.jsx)(rh,{root:s?.tableContainerRef?.current,open:p,onClose:()=>h.current?.(),children:(0,F.jsx)(Hf,{type:"panel",children:(0,F.jsx)("div",{className:wh,children:v})})})]})})}},qh=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function Gh(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,o]=(0,w.useState)(t);(0,w.useEffect)(()=>{n(r)},[r]);const i=(0,w.useCallback)(()=>{o([void 0,void 0]),n([void 0,void 0])},[]);return(0,F.jsxs)("div",{className:y()("dateFiltration-module__root__hOXOU"),children:[(0,F.jsx)(rc,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{o(e)},tabIndex:-1}),(0,F.jsx)(Op,{label:"Сбросить",children:(0,F.jsx)(H,{onClick:i,className:y()("dateFiltration-module__button__kboWN"),variant:"text",size:"small",textSecondary:!0,icon:(0,F.jsx)(Oi,{})})})]})}var Uh="numberFiltration-module__input___94YM";const Kh=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function Yh(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,o]=(0,w.useState)(t[0]===-1/0&&t[1]===1/0?Kh[0]:t[0]===t[1]?Kh[3]:t[0]===-1/0?Kh[2]:t[1]===1/0?Kh[1]:Kh[0]),[i,l]=(0,w.useState)(t),a=(e,t)=>{l(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},s=(0,w.useCallback)(()=>{l([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,F.jsxs)("div",{className:y()("numberFiltration-module__root__k2DSM"),children:[(0,F.jsx)(cs,{items:Kh,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...i];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}l(t),n(t),o(e)}},classes:{root:"numberFiltration-module__select__vQqEg"},tabIndex:-1}),(0,F.jsx)("div",{className:y()("numberFiltration-module__inputs-container__tjcwf"),children:"range"===r.value?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:i[0]>-1/0&&i[0]<1/0?i[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}}),(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})]}):(0,F.jsx)(fu,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Uh},value:"more"===r.value?i[0]>-1/0&&i[0]<1/0?i[0]:"":i[1]>-1/0&&i[1]<1/0?i[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(i),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(i))}})}),(0,F.jsx)(Op,{label:"Сбросить",children:(0,F.jsx)(H,{onClick:s,className:y()("numberFiltration-module__button__GIxRq"),variant:"text",size:"small",textSecondary:!0,icon:(0,F.jsx)(Oi,{})})})]})}function Xh(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 Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach(function(t){Zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qh(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:o,filtrationByNumber:i=!1,filtrationByDate:l=!1,filtrationByValue:a=!1,valueFormat:s,toFixed:c},sortBy:u,setSortBy:d,filterBy:f,setFilterBy:p,headerName:g,containerRef:h,showUniqueValuesCount:m,leftAdditionalContent:b,rightAdditionalContent:v,children:O,rows:j,rowsForUniqueCount:_}=e,x=o??g,S=(0,w.useMemo)(()=>{const e=j.map(e=>({name:e[x]?s?s(e[x].value):void 0===c||Number.isNaN(parseFloat(e[x].value))?e[x].value?.toString()||"< нет значения >":parseFloat(Number(e[x].value).toFixed(c)).toString():"< нет значения >",value:e[x]?.value?.toString()||""})).sort((e,t)=>{const n=e.name.toString(),r=t.name.toString(),o="< нет значения >";return n===o?-1:r===o?1:qh(n,r)}),t=[...e.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()];return t},[j,x,s,c]),P=(0,w.useMemo)(()=>{const e=_??j,t=new Set;e.forEach(e=>{const n=e?.[x];t.add(n?(n.value??"")?.toString():"")});const n=f.find(e=>e.columnName===x&&"value"===e.type),r=(n?.values??[]).map(e=>(e??"")?.toString());if(r.length>0){const e=new Set(r);let n=0;return t.forEach(t=>{e.has(t)&&(n+=1)}),n}return t.size},[_,j,x,f]),C=(0,w.useMemo)(()=>{const e={};return f.find(e=>e.columnName===x)?.values.forEach(t=>{e[t]=!0}),e},[f,x]),E=(0,w.useMemo)(()=>f.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[f,x]),R=(0,w.useMemo)(()=>f.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[f,x]),k=e=>()=>{d(t=>t.some(t=>t.columnName===x&&t.direction===e)?t.filter(t=>!(t.columnName===x&&t.direction===e)):t.some(e=>e.columnName===x)?t.map(t=>t.columnName===x?Jh(Jh({},t),{},{direction:e}):Jh({},t)):t.concat([{columnName:x,direction:e,sortType:r}]))},D=f.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),M=Object.keys(C).length>0||D,I=u.some(e=>e.columnName===x&&"desc"===e.direction),N=u.some(e=>e.columnName===x&&"asc"===e.direction),{t:L}=wd(),T=[];return n&&(T.push({type:"divider",name:L("Уникальность значений")}),T.push({type:"item",name:L("Только уникальные"),icon:(0,F.jsx)(yl,{}),selected:D,onClick:()=>{p(e=>{const t=e.findIndex(e=>e.columnName===x&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?Jh(Jh({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:x,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),t&&(T.push({type:"divider",name:L("Сортировка")}),T.push({type:"item",name:L("По возрастанию"),icon:(0,F.jsx)(Cl,{}),selected:u.some(e=>e.columnName===x&&"asc"===e.direction),onClick:k("asc")}),T.push({type:"item",name:L("По убыванию"),icon:(0,F.jsx)(Dl,{}),selected:u.some(e=>e.columnName===x&&"desc"===e.direction),onClick:k("desc")})),(0,F.jsxs)("div",{className:y()("headerDropdown-module__root__vO30T"),children:[b?.(x),O?.(m&&(0,F.jsx)("div",{children:`(${P})`})),v?.(x),(t||n||a||l||i)&&(0,F.jsx)(Do,{placement:"bottom-end",wrapTrigger:!0,root:h,description:(0,F.jsxs)(F.Fragment,{children:[i&&(0,F.jsx)(Yh,{defaultValues:E,actionWithSelected:e=>{p(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===x&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"numberRange"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),l&&(0,F.jsx)(Gh,{defaultValues:R,actionWithSelected:e=>{p(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===x&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"dateRange"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),a&&(0,F.jsx)("div",{className:y()("headerDropdown-module__checklist-wrap__7C0pz"),children:(0,F.jsx)(mf,{items:S,selected:C,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);p(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?Jh(Jh({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===x&&"value"===e.type);return-1!==r?n[r]=Jh(Jh({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(t||n)&&(0,F.jsx)("div",{children:(0,F.jsx)(rs,{items:T})})]}),children:(0,F.jsx)(Op,{label:L("Сортировка и фильтрация"),placement:"bottom-end",root:h,children:(0,F.jsx)(H,{size:"small",variant:"text",textSecondary:!M&&!I&&!N,icon:M?(0,F.jsx)($i,{}):I?(0,F.jsx)(Dl,{}):N?(0,F.jsx)(Cl,{}):(0,F.jsx)(Ao,{})})})})]})}function em(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const tm=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},nm=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:tm(t?.accessorKey?t:e),columns:e.columns?nm(e.columns,e):void 0})),rm=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(rm(e,t+1,n)):[],om=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(om(e,t-1,n)):[],im=(e,t,n)=>e[t+1]&&om(e,t+1,n).length?[e[t+1].headers[n]].concat(im(e,t+1,n)):[],lm=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(lm(e,t-1)):[],am=(e,t)=>{if(t.length){const n=t[t.length-1],r="dateRange"===n.type?ds()(n.values[0]):null,o="dateRange"===n.type?ds()(n.values[1]):null,i=n.values.length?e.filter(e=>{const t="dateRange"===n.type?ds()(e[n.columnName].value):null;return(e[n.columnName]?"dateRange"===n.type?(t.isAfter(r)||t.isSame(r))&&(t.isBefore(o)||t.isSame(o)):"numberRange"===n.type?e[n.columnName].value>=n.values[0]&&e[n.columnName].value<=n.values[1]:n.values.includes((e[n.columnName].value||"")?.toString()):n.values.includes(""))||1===e.isNew?.value}):e;return am(i,t.slice(0,t.length-1))}return e},sm=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=qh(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return sm(r,t.slice(0,t.length-1))}return e};function cm(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 um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(t){dm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fm=(0,w.forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:o,onChangeCell:i,cellWidth:l,rowButtons:a,fixedColumnsCount:s=0,headerRowHeight:c=[Zg],bodyRowHeight:u=Zg,rowActionWidth:d=77,classes:f,dynamicRowHeight:p=!1,height:g,scrollToBottom:h,useTableContainerAsRootForPopup:b,size:v="small",borders:O="horizontal",showUniqueValuesCount:j=!1,globalFilters:_,globalSorts:x,onFiltersChange:S,onSortsChange:P,leftAdditionalHeaderContent:C,rightAdditionalHeaderContent:E,showRowsNumbers:R}=e,k=s+(R?1:0),[D,M]=(0,w.useState)(_??[]),[I,N]=(0,w.useState)([...x??[],{columnName:"isNew",direction:"desc"}]),L=(0,w.useRef)(null),T=(0,w.useMemo)(()=>R?`rowNumber_${ze()}`:null,[R]),V=(0,w.useMemo)(()=>{if(!T)return nm(r);const e=t=>um(um({id:T},t?.columns?.length?void 0:{accessorKey:T}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return nm(t)},[r,T]),A=(0,w.useMemo)(()=>{const e=[...n],t=D.filter(e=>{if("value"===e.type&&e.uniqueFirstPerValue&&0===e.values.length)return!0;const t="dateRange"===e.type?ds()(e.values[0]):null,r="dateRange"===e.type?ds()(e.values[1]):null;return n.some(n=>{const o="dateRange"===e.type?ds()(n[e.columnName].value):null;return n[e.columnName]?"dateRange"===e.type?(o.isAfter(t)||o.isSame(t))&&(o.isBefore(r)||o.isSame(r)):"numberRange"===e.type?n[e.columnName].value>=e.values[0]&&n[e.columnName].value<=e.values[1]:e.values.includes((n[e.columnName].value||"")?.toString()):e.values.includes("")})}),r=t.length?am(e,t):D.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!ds()(e).isSame(ds()(0))&&!ds()(e).isSame(ds()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=I.length?sm(r,I):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=em(o,e.columnName));const i=T?o.map((e,t)=>um(um({},e),{},{[T]:{value:t+1}})):o;return window.dispatchEvent(new CustomEvent("filteringRows",{detail:i})),i},[n,I,D,T]),z=(0,w.useMemo)(()=>{const e=[...n];return Array.from({length:D.length+1},(t,n)=>am(e,D.slice(0,n)))},[n,D]),$=(0,w.useMemo)(()=>l??(e=>T&&0===e?8*A.length.toString().length+24:V[e]?.meta?.width??200),[l,V,A,T]),B=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:Ng(t)})),[r,o]=w.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:A,columns:V,defaultColumn:Wh,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Bp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Yp(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Wp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:V.filter((e,t)=>t<k).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{i?.(e,t,n,r)},tableContainerRef:L,additionalColumnsViews:o}}),{rows:W}=B.getRowModel(),q=B.getHeaderGroups(),G=Jg({count:W.length,getScrollElement:()=>L?.current,estimateSize:()=>u,overscan:5}),U=Jg({horizontal:!0,count:q[0]?.headers.length??1,rangeExtractor:(0,w.useCallback)(e=>{const t=[...Array(k)].map((e,t)=>t);return[...new Set([...t,...$g(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>L?.current,estimateSize:$,overscan:5}),K=(0,w.useMemo)(()=>[...Array(k)].reduce((e,t,n)=>e+$(n),0),[k,$]),Y=(0,w.useMemo)(()=>{const e=q.length-c.length,t=[...c];if(e>0)for(let n=0;n<e;n++)t.push(Zg);return t},[c,q]),X=(0,w.useMemo)(()=>Y.reduce((e,t,n)=>n<q.length?e+t:e,0),[Y,q]),J=(0,w.useCallback)(e=>Y.reduce((t,n,r)=>r<e?t+n:t,0),[Y,q]),Z=G.getTotalSize(),Q=U.getTotalSize(),ee=()=>{M([])},te=()=>{N([{columnName:"isNew",direction:"desc"}])};(0,w.useImperativeHandle)(t,()=>({resetFilters:ee,resetSorts:te})),(0,w.useEffect)(()=>{if(L?.current){const e=L?.current,t=e.querySelector(`.${Oh}`);if(t){const n=e.clientWidth,r=Q+(a?d:0);t.style.left=`${n>r?r:n}px`}}},[L?.current?.clientWidth,Q,a,d]),(0,w.useEffect)(()=>{if(L?.current){const e=L?.current,t=e.querySelector(`.${uh}`);if(t){const n=e.clientHeight,r=Z+X;t.style.top=`${n>r?r:n}px`}}},[L?.current?.clientHeight,Z]),(0,w.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${vh}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return L?.current&&(L.current.addEventListener("scroll",e),h&&L.current.scrollTo(0,L.current.scrollHeight)),()=>{L?.current&&L.current.removeEventListener("scroll",e)}},[L,h]);const ne=G.getVirtualItems(),re=U.getVirtualItems(),oe=re[re.length-1]?.index,ie=(0,w.useMemo)(()=>new Map(ne.map(e=>[e.index,e.size])),[ne]),le=(0,w.useCallback)(e=>ie.get(e)??u,[u,ie]),ae=(0,w.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=Math.min(W.length-1,e+n-1),o=r-e+1;let i=0;for(let t=e;t<=r;t+=1)i+=le(t);const l="all"===O||"horizontal"===O?Math.max(0,o-1):0;return Math.max(0,i-l)},[O,le,W.length]),se=(0,w.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=W[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[W]),ce=(0,w.useCallback)((e,t)=>1===e?.isNew?.value?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[]),ue=(0,w.useMemo)(()=>{const e=W.length,t=new Map;return W.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[W]),de=(0,w.useMemo)(()=>W.length*W.length+W.length+10,[W.length]),fe=e=>{const t=e.column.columnDef.meta?.label;if("string"==typeof t){const n=t.split(/\r\n|\\r\\n|\n|\\n/);if(n.length>1)return(0,F.jsx)(F.Fragment,{children:n.map((t,r)=>(0,F.jsxs)(w.Fragment,{children:[t,r<n.length-1&&(0,F.jsx)("br",{})]},`${e.id}_${r}`))})}return Lg(e.column.columnDef.header,e.getContext())},[pe,ge]=re.length>0?[k&&re[k].index!==k?re[k].start-K:re[0].start,Q-re[re.length-1].end]:[0,0];return(0,w.useEffect)(()=>{S?.(D)},[D]),(0,w.useEffect)(()=>{P?.(I.filter(e=>"isNew"!==e.columnName))},[I]),(0,F.jsx)("div",{className:y()(jh,m[v],m[`borders${he=O,he[0].toUpperCase()+he.substring(1)}`],f?.root),style:g?{height:g}:void 0,children:(0,F.jsxs)("div",{ref:L,className:y()(Dh,"styledScroll"),children:[(0,F.jsxs)("div",{className:kh,style:{height:`${Z+X}px`},children:[(0,F.jsx)("div",{style:{position:"sticky",top:0,zIndex:de},children:q.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=D.findIndex(e=>e.columnName===n),o=-1===r?A:z[r];return(0,F.jsx)("div",{className:y()(Nh),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==T&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?(0,F.jsx)(Qh,{headerMeta:t,sortBy:I,setSortBy:N,filterBy:D,setFilterBy:M,rows:o,rowsForUniqueCount:A,headerName:e.column.columnDef.id??e.id,containerRef:b?L:void 0,showUniqueValuesCount:j,leftAdditionalContent:C,rightAdditionalContent:E,children:n=>(0,F.jsxs)("div",{className:y()(bh,t?.headerAlign?m[`align${t?.headerAlign}`]:ih),children:[fe(e),n]})}):(0,F.jsx)("div",{className:y()(bh,t?.headerAlign?m[`align${t?.headerAlign}`]:ih),children:fe(e)})})};return(0,F.jsxs)(w.Fragment,{children:[[...Array(k)].map((r,o)=>{const i=e.headers[o],l=rm(e.headers,o,oe),a=im(q,t,o);return(0,F.jsx)("div",{className:y()(Ih,0===t?hh:void 0,!a.length&&o!==e.headers.length-1&&Fh,0===o&&Th,a.length&&!l.length&&Lh,vh),style:{zIndex:de+1,width:`${$(o)}px`,height:`${Y[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>$(t)).reduce((e,t)=>e+t,0)}px) translateY(${J(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),re.map(r=>{if(r.index>k-1){const o=e.headers[r.index],i=rm(e.headers,r.index,oe),l=lm(e.headers,r.index),a=im(q,t,r.index),s=om(q,t,r.index),c=i.length||l.length?r.size+i.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,u=i.length||l.length?de+i.length+2:void 0,d=s.length?Y[t]+s.reduce((e,n,r)=>e+(Y[t-r-1]??0),0):Y[t],f=s.length?J(t)-s.reduce((e,n,r)=>e+(Y[t-r-1]??0),0):J(t);return(0,F.jsx)("div",{className:y()(Ih,0===t&&hh,!a.length&&r.index!==e.headers.length-1&&Fh,0===r.index&&Th,a.length&&!i.length&&Lh),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(k?-1:0)}px) translateY(${f}px)`,borderTop:"none"!==O&&0===f?"1px solid var(--border-color)":void 0},children:n(o)},`${e.id}-${o.id}`)}return null}),!!a&&(0,F.jsx)("div",{className:y()(Ih,0===t?hh:void 0),style:{width:`${d}px`,height:`${Y[t]}px`,transform:`translateX(${Q+(k?-2:0)}px) translateY(${J(t)}px)`}})]},e.id)})}),ne.map(e=>{const t=W[e.index];return(0,F.jsxs)("div",{"data-index":e.index,ref:p?G.measureElement:void 0,className:y()(Vh,e.index%2!=0&&gh,1===t.original?.isNew?.value&&Sh),style:um(um({zIndex:ue.get(e.index)??1},!p&&{height:e.size}),{},{transform:"translateY("+(X+e.start-G.options.scrollMargin)+"px)"}),children:[(0,F.jsx)("div",{style:{width:`${pe}px`}}),re.map(n=>{const r=t.getAllCells()[n.index],o="left"===r.column.getIsPinned(),i=t.original?.[r.column.id],l=Math.max(1,i?.rowspan??1),a=se(e.index,r.column.id),s=l>1&&!a;return(0,F.jsx)("div",{"data-col-index":n.index,className:y()(Mh,o&&Eh),style:um(um({},o&&{left:n.start,marginLeft:0===n.index?-1:0}),{},{width:`${n.size}px`},!p&&!s&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(s?(0,F.jsx)("div",{className:xh,style:{height:`${ae(e.index,l)}px`,backgroundColor:ce(t.original,e.index)},children:Lg(r.column.columnDef.cell,r.getContext())}):Lg(r.column.columnDef.cell,r.getContext()))},`cell-${e.key}-${n.key}`)}),!!a&&(0,F.jsx)("div",{className:y()(Mh),style:um({width:`${d}px`,justifyContent:"flex-start",padding:"4px"},!p&&{overflow:"hidden"}),children:a?.(t.original)?.map(n=>(0,F.jsx)(w.Fragment,{children:n.template?n.template(n):(0,F.jsx)(Op,{label:n.title,placement:"top",wrapTrigger:!0,classes:{trigger:_h},children:(0,F.jsx)(H,{onClick:()=>n.onClick?.(e.index,t.original),size:"small",variant:"text",icon:n.icon})})},n.title))}),(0,F.jsx)("div",{style:{width:`${ge}px`}})]},`row-${e.key}`)})]}),"none"!==O&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:Oh,style:{height:`${Z+X}px`}}),(0,F.jsx)("div",{className:uh,style:{width:`${Q}px`}})]})]})});var he});var pm="treeViewItem-module__selectable__ZnWqc",gm="treeViewItem-module__selected__uwOfq";const hm=(0,w.memo)(function e({title:t,value:n,searchValue:r,selected:o,onSelect:i,type:l,isSelectable:a,startIcons:s,children:c}){const[u,d]=(0,w.useState)(!1);(0,w.useEffect)(()=>{d(!!r)},[r]);const f=!!c?.length,p=l&&s?.[l],g=o[n];return(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:y()("treeViewItem-module__item__Ddenr",{[pm]:a}),onClick:()=>{a&&i?i(n):d(!u)},children:[f&&(0,F.jsx)(rl,{}),(0,F.jsxs)("div",{className:y()("treeViewItem-module__title___JZMU",{[gm]:g}),children:[p,(0,F.jsx)(ce,{variant:"subtitle2",children:t}),a&&(0,F.jsx)("span",{className:"treeViewItem-module__select-icon__Ma7T6",children:g?(0,F.jsx)(Ii,{}):(0,F.jsx)(Lo,{})})]})]}),u&&f&&(0,F.jsx)("div",{className:"treeViewItem-module__children__SBb_p",children:c.map(t=>(0,F.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:o,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:s,onSelect:i},t.id))})]})});function mm(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 bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach(function(t){vm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ym=(0,w.memo)(function({data:e,selected:t,startIcons:n,onSelect:r,withSearch:o=!1}){const[i,l]=(0,w.useState)(""),a=(0,w.useCallback)(e=>l(e.target.value),[]),s=(0,w.useMemo)(()=>t.reduce((e,t)=>(e[t]=!0,e),{}),[t]),c=(0,w.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(bm(bm({},t),{},{children:n}))}return e};return e.reduce(r,[])})(e,i),[e,i]);return(0,F.jsxs)(F.Fragment,{children:[o&&(0,F.jsx)(Id,{variant:"outlined",value:i,fullWidth:!0,onChange:a,classes:{root:"treeView-module__search__CptHY"}}),(0,F.jsx)("div",{className:"styledScroll",children:c.map(({id:e,name:t,children:o})=>(0,F.jsx)(hm,{title:t,value:e,searchValue:i,children:o,startIcons:n,onSelect:r,selected:s},e))})]})});var wm="pairs-module__dim-typography__CX_Sf",Om="pairs-module__labels-container__AKW8x",jm="pairs-module__labels-with-borders__iC6y_",_m="pairs-module__row-container-borders__H3rCB",xm="pairs-module__values-container__a4t60",Sm="pairs-module__values-with-borders__ssGZ0";function Pm(e){const{label:t}=e,[n,r]=(0,w.useState)(t);return(0,F.jsx)(Op,{label:n,children:(0,F.jsx)(ce,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}function Cm(e){const{pairs:t,column1Width:n="50%",column2Width:r="50%",showBorder:o,minRowHeight:i,classes:l}=e;return(0,F.jsx)("div",{className:y()(l?.root),children:t.map((e,t)=>(0,F.jsx)("div",{style:{minHeight:i,display:"flex"},className:y()(l?.rowContainer,{[_m]:o}),children:e&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:y()(Om,l?.labelsContainer,{[jm]:o}),style:{width:n,minWidth:n},children:(0,F.jsx)(ce,{className:wm,children:e.label})}),(0,F.jsx)("div",{style:{width:r,minWidth:r},className:y()(xm,l?.valuesContainer,{[Sm]:o}),children:(0,F.jsx)(Pm,{label:e.value})})]})},t))})}var Em="card-module__actions__ctfFt",Rm="card-module__header__NdV6G",km="card-module__root__uGlLT";function Dm(e){const{surfaceType:t="primary",title:n,actions:r,children:o,classes:i}=e;return(0,F.jsxs)(Hf,{type:t,classes:{root:y()(km,i?.root)},children:[(!!n||!!r)&&(0,F.jsxs)("div",{className:Rm,children:[n??(0,F.jsx)("div",{}),!!r&&(0,F.jsx)("div",{className:y()(Em,i?.actions),children:r})]}),(0,F.jsx)("div",{className:y()(i?.body),children:o})]})}var Mm="chip-module__active__wQcQS",Im="chip-module__clickable__dOcCr",Nm="chip-module__filled__LKP4O",Lm="chip-module__icon__yybCP",Tm="chip-module__icon-clickable__BPoAa",Fm="chip-module__icon-left__LhniG",Vm="chip-module__icon-right__CnqJ6",Am="chip-module__label__RySGy",zm="chip-module__medium__RRnyf",$m="chip-module__outlined__HHje4",Hm="chip-module__root__QN7P0",Bm="chip-module__secondary__yquCM",Wm="chip-module__small__UbquU",qm="chip-module__state-layer__AGbiC",Gm="chip-module__with-icon__ORESD";const Um=e=>{const{variant:t="filled",size:n="medium",icon:r,iconPlacement:o="right",secondary:i,onClick:l,onIconClick:a,children:s,classes:c}=e,u=a?"button":"span";return(0,F.jsx)("div",{className:y()(Hm,b[t],b[n],!!r&&Gm,"left"===o?Fm:Vm,i&&Bm,l&&Im,c?.root),onClick:l,children:(0,F.jsxs)("span",{className:y()(qm,c?.stateLayer),children:[s&&(0,F.jsx)("span",{className:y()(Am,c?.label),children:s}),r&&(0,F.jsx)(u,{className:y()(Lm,a&&Tm,c?.icon),onClick:e=>{e.stopPropagation(),a?.()},"aria-label":"Удалить",children:r})]})})},Km=":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 400;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 16px;\n --text-overline-letter: 1.5px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll {\n margin-right: -16px !important;\n margin-bottom: -16px !important;\n overflow: scroll;\n}\n\n/* общая зона скроллбара */\n.styledScroll::-webkit-scrollbar {\n width: 16px;\n height: 16px;\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb {\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n/* зона трека */\n.styledScroll::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: 4px solid transparent;\n border-radius: 12px;\n}\n",Ym="html,\nbody {\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n color: var(--theme-text-primary);\n background-color: var(--theme-surface-layout);\n transition:\n background-color 0.3s ease,\n color 0.3s ease;\n}\n\nbody {\n font-family: Roboto, sans-serif;\n font-size: var(--text-body2-size);\n font-weight: var(--text-body2-weight);\n line-height: var(--text-body2-height);\n letter-spacing: var(--text-body2-letter);\n}\n",Xm=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-background: #2b2b2b;\n --theme-surface-modal: #373737;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #515151;\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #373737;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #424242;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Jm=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-background: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: rgba(255, 255, 255, 0.08);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #14212e;\n\n --theme-divider: rgba(255, 255, 255, 0.12);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.12);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #14212e;\n --theme-table-header: #28323e;\n --theme-table-even-row: #1f2a36;\n --theme-table-hover-row: #1f2a36;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n\n --theme-button-elevated: #14212e;\n --theme-button-tonal: #435864;\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.16);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Zm=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-background: #ffffff;\n --theme-surface-modal: #ffffff;\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-surface-dropdown: #ffffff;\n\n --theme-modal-shadow-background: rgba(255, 255, 255, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: ##fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(255, 255, 255, 0.04);\n --theme-overlay-8: rgba(255, 255, 255, 0.08);\n --theme-overlay-10: rgba(255, 255, 255, 0.1);\n --theme-overlay-12: rgba(255, 255, 255, 0.12);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #eeeeee;\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n\n.styledScroll::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n",Qm="nntc-ui-base-styles",eb=(0,w.createContext)(void 0);function tb(){return(0,w.useContext)(eb)??null}function nb(){return tb()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function rb({children:e}){const[t,n]=(0,w.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,w.useEffect)(()=>{let e=document.getElementById(Qm);e||(e=document.createElement("style"),e.id=Qm,document.head.appendChild(e)),e.textContent=`${Km}\n${Ym}`},[]),(0,w.useEffect)(()=>{const e={light:Zm,dark:Xm,darkBlue:Jm};let n=document.getElementById("theme-style");n||(n=document.createElement("style"),n.id="theme-style",document.head.appendChild(n)),n.textContent=e[t]??e.light},[t]),(0,w.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const r=e=>{n(e.matches?"dark":"light")};return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[]);const r={theme:t,toggleTheme:()=>{n(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{n(e);try{localStorage.setItem("theme",e)}catch{}}};return(0,F.jsx)(eb.Provider,{value:r,children:e})}})(),module.exports=i})();
|
|
3
3
|
//# sourceMappingURL=index.js.map
|