nntc-ui 0.2.20 → 0.2.21

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 CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- (()=>{var e={353(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",s="week",a="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+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,a),i=n-o<0,l=t.clone().add(r+(i?-1:1),a);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:a,y:u,w:s,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]=m;var O="$isDayjsObject",w=function(e){return e instanceof P||!(!e||!e[O])},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 s=t.name;y[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},x=b;x.l=j,x.i=w,x.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function m(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=m.prototype;return g.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()},g.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()},g.$utils=function(){return x},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.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)},h=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)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case a:return c?p(1,g):p(0,g+1);case s:var y=this.$locale().weekStart||0,O=(m<y?m+7:m)-y;return p(c?b-O:b+(6-O),g);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=x.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[l]=f+"Date",s[d]=f+"Date",s[a]=f+"Month",s[u]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],h=c===l?this.$D+(t-this.$W):t;if(c===a||c===u){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[x.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=x.p(c),h=function(e){var t=S(f);return x.w(t.date(t.date()+Math.round(e*n)),f)};if(p===a)return this.set(a,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return h(1);if(p===s)return h(7);var m=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return x.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.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,s=this.$M,a=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")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,a,2);case"ddd":return d(n.weekdaysShort,t.$W,a,3);case"dddd":return a[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 m(i,l,!0);case"A":return m(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(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=this,m=x.p(d),g=S(n),b=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return x.m(h,g)};switch(m){case u:p=y()/12;break;case a:p=y();break;case c:p=y()/3;break;case s: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)},g.daysInMonth=function(){return this.endOf(a).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=j(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return x.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),_=P.prototype;return S.prototype=_,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",a],["$y",u],["$D",d]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,P,S),e.$i=!0),S},S.locale=j,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=y[v],S.Ls=y,S.p={},S}()},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)}()}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const l={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>l[e]=()=>r[e]);return l.default=()=>r,n.d(i,l),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;let r={};(()=>{"use strict";n.r(r),n.d(r,{AddIcon:()=>Yl,Alert:()=>_b,AlertIcon:()=>Aa,ArrowDropDownIcon:()=>Xl,ArrowDropUpIcon:()=>ns,AttachIcon:()=>ls,BarChartIcon:()=>us,BookmarkAddIcon:()=>Uc,BookmarkIcon:()=>qc,Button:()=>He,ButtonsGroup:()=>Tu,Card:()=>Vb,Checkbox:()=>Lt,CheckboxDeselectedIcon:()=>yt,CheckboxIcon:()=>St,CheckboxSeveralIcon:()=>Ct,Checklist:()=>jp,ChevronDownIcon:()=>Na,ChevronLeftIcon:()=>zs,ChevronRightIcon:()=>qs,ChevronUpIcon:()=>Da,Chip:()=>lb,CircleFilledIcon:()=>Us,CloseIcon:()=>nl,Collapse:()=>Xb,ColorPicker:()=>tp,DateRangeIcon:()=>Qs,DateTime:()=>pf,DeleteIcon:()=>ea,Divider:()=>Hv,DoneIcon:()=>oa,DonutIcon:()=>hs,DownloadIcon:()=>eu,DragIcon:()=>aa,EditIcon:()=>Rc,ErrorOutlineIcon:()=>Qi,ExportTableIcon:()=>Qc,FileUploadIcon:()=>fa,FilterClearIcon:()=>Oa,FilterIcon:()=>ga,FullScreenOffIcon:()=>zc,FullScreenOnIcon:()=>Lc,InfoIcon:()=>xa,Input:()=>sp,InputChip:()=>Ol,Layout:()=>Nv,ListIcon:()=>Va,Loader:()=>ub,LooksOneIcon:()=>vs,MapIcon:()=>js,Menu:()=>Sd,Modal:()=>Th,MoreVerticalIcon:()=>Wa,MultiSelect:()=>Ep,Pairs:()=>Hg,PointIcon:()=>au,Popover:()=>Wl,RadioButton:()=>Np,RadioDeselectedIcon:()=>Rs,RadioSelectedIcon:()=>Ls,RegexIcon:()=>Ya,SaveIcon:()=>fu,ScatterPlotIcon:()=>_s,SearchIcon:()=>Xa,Select:()=>Ed,SelectUniqueIcon:()=>nc,SettingsIcon:()=>lc,SortDownIcon:()=>uc,SortUpIcon:()=>hc,Surface:()=>Qh,TableChartIcon:()=>vc,Tabs:()=>kv,ThemeProvider:()=>$v,Tooltip:()=>Ti,TreeView:()=>Dg,Typography:()=>pt,UploadIcon:()=>jc,VirtualTable:()=>Og,VisibilityIcon:()=>ou,WellIcon:()=>_c,WrapForLabel:()=>mp,createCalendarDate:()=>lf,usePortalContainer:()=>bi,useTheme:()=>Zv,useThemeWithFallback:()=>Xv,virtualTableDefaultRowHeight:()=>32});var e=n.cw(function(e,t){var n=o(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,l=n.useEffect,s=n.useLayoutEffect,a=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(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 s(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]),a(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u}),t=n.cw(function(t,n){t.exports=e()}),o=n.cw(function(e,t){e.exports=require("react")}),i={};n.r(i),n.d(i,{active:()=>ye,compact:()=>Oe,elevated:()=>we,extraLarge:()=>je,filled:()=>Se,large:()=>xe,medium:()=>Pe,onlyIcon:()=>_e,outlined:()=>Ce,root:()=>Ae,small:()=>Ee,stateLayer:()=>Re,text:()=>ke,textSecondary:()=>De,tonal:()=>Me,withIcon:()=>Le,withoutIcon:()=>Ie});var l={};n.r(l),n.d(l,{body1:()=>We,body2:()=>Ke,body3:()=>Ue,button:()=>Ge,caption:()=>Ye,caption2:()=>Je,doubleCaption:()=>Qe,h1:()=>Ze,h2:()=>Xe,h3:()=>$e,h4:()=>et,h5:()=>tt,h6:()=>nt,h7:()=>rt,label:()=>ot,overline:()=>it,subtitle1:()=>lt,subtitle2:()=>st,subtitle3:()=>at});var s={};n.r(s),n.d(s,{arrow:()=>zt,bottomArrow:()=>Ft,content:()=>Vt,error:()=>Ht,info:()=>qt,leftArrow:()=>Bt,rightArrow:()=>Wt,success:()=>Kt,topArrow:()=>Ut,trigger:()=>Gt,warning:()=>Yt});var a={};n.r(a),n.d(a,{clickable:()=>rl,disabled:()=>ol,extraLarge:()=>il,filled:()=>ll,icon:()=>sl,large:()=>al,medium:()=>cl,outlined:()=>ul,remove:()=>dl,root:()=>fl,small:()=>pl,text:()=>hl,withIcon:()=>ml});var c={};n.r(c),n.d(c,{divider:()=>$u,extraLarge:()=>ed,item:()=>td,itemActions:()=>nd,itemDescription:()=>rd,itemDisabled:()=>od,itemIcon:()=>id,itemSelected:()=>ld,itemTextBlock:()=>sd,itemTitle:()=>ad,itemTitleTop:()=>cd,large:()=>ud,medium:()=>dd,root:()=>fd,small:()=>pd,stateLayer:()=>hd,virtualItem:()=>md,virtualSpace:()=>gd,virtualized:()=>bd});var u={};n.r(u),n.d(u,{button:()=>Dd,buttonsContainer:()=>Md,calendarContainer:()=>Ld,cell:()=>Id,cellCircle:()=>Nd,cellData:()=>Td,cellSelection:()=>zd,cellSelectionFirst:()=>Fd,cellSelectionLast:()=>Vd,cellsContainer:()=>Hd,dateTimeMode:()=>qd,medium:()=>Bd,month:()=>Wd,monthCellSelection:()=>Kd,monthCellSelectionFirst:()=>Ud,monthCellSelectionLast:()=>Gd,monthView:()=>Yd,navigationArrow:()=>Jd,navigationContainer:()=>Qd,navigationTitle:()=>Zd,navigationValue:()=>Xd,root:()=>$d,small:()=>ef,timeContainer:()=>tf,timeDivider:()=>nf,timeSelectionMarker:()=>rf,year:()=>of});var d={};n.r(d),n.d(d,{medium:()=>ap,root:()=>cp,small:()=>up});var f={};n.r(f),n.d(f,{medium:()=>zh,modal:()=>Fh,overlay1:()=>Vh,overlay2:()=>Hh,panel:()=>qh,primary:()=>Bh,root:()=>Wh,small:()=>Kh});var p={};n.r(p),n.d(p,{alignCenter:()=>Zh,alignLeft:()=>Xh,alignRight:()=>$h,bodyLock:()=>em,borderFrame:()=>tm,borderSpacer:()=>nm,bordersAll:()=>rm,bordersHorizontal:()=>om,bordersVertical:()=>im,bottomBorder:()=>lm,clickable:()=>sm,editable:()=>am,error:()=>cm,evenRow:()=>um,firstThRow:()=>dm,input:()=>fm,label:()=>pm,marginLeftChanging:()=>hm,medium:()=>mm,modalContent:()=>gm,pageLoadingLabel:()=>bm,pageLoadingLane:()=>vm,pageLoadingTrack:()=>ym,pageLoadingUp:()=>Om,rightBorder:()=>wm,rightBorderWithBottom:()=>jm,root:()=>Sm,rowButtonTrigger:()=>xm,rowspanContent:()=>Pm,selectRows:()=>_m,selected:()=>Cm,showInModal:()=>Am,small:()=>Em,sticky:()=>Rm,success:()=>km,table:()=>Dm,tableContainer:()=>Mm,td:()=>Lm,th:()=>Im,thCell:()=>Nm,thHiddenColumn:()=>Tm,thLeftBorder:()=>zm,thRightBorder:()=>Fm,tr:()=>Vm,verticalAlignCenter:()=>Hm,verticalAlignFlexEnd:()=>qm,verticalAlignFlexStart:()=>Bm,viewCell:()=>Wm,viewSpan:()=>Km});var h={};n.r(h),n.d(h,{clickable:()=>qg,filled:()=>Bg,icon:()=>Wg,iconClickable:()=>Kg,iconLeft:()=>Ug,iconRight:()=>Gg,iconRightSlot:()=>Yg,label:()=>Jg,medium:()=>Qg,outlined:()=>Zg,root:()=>Xg,secondary:()=>$g,small:()=>eb,withIcon:()=>tb});var m={};n.r(m),n.d(m,{_default:()=>db,error:()=>fb,icon:()=>pb,info:()=>hb,medium:()=>mb,message:()=>gb,root:()=>bb,small:()=>vb,success:()=>yb,warning:()=>Ob});var g={};n.r(g),n.d(g,{actions:()=>Cb,bodyFullSize:()=>Ab,bodyPadded:()=>Eb,bodyPaddedNoHeader:()=>Rb,header:()=>kb,headerOverlay:()=>Db,medium:()=>Mb,root:()=>Lb,small:()=>Ib});var b={};n.r(b),n.d(b,{content:()=>Hb,header:()=>qb,icon:()=>Bb,medium:()=>Wb,root:()=>Kb,small:()=>Ub,title:()=>Gb});var v={};n.r(v),n.d(v,{disableBorder:()=>$b,disabled:()=>ev,extraLarge:()=>tv,filled:()=>nv,filledTabs:()=>rv,hasActions:()=>ov,iconOnly:()=>iv,large:()=>lv,medium:()=>sv,root:()=>av,scrollable:()=>cv,selected:()=>uv,selectedFilled:()=>dv,selectedItemFilled:()=>fv,small:()=>pv,tab:()=>hv,tabActions:()=>mv,tabBorder:()=>gv,tabBorderVertical:()=>bv,tabFilled:()=>vv,tabIcon:()=>yv,tabItemFilled:()=>Ov,tabTitle:()=>wv,tabVertical:()=>jv,vertical:()=>Sv,verticalLabel:()=>xv,verticalText:()=>Pv});const y=e=>"string"==typeof e,O=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},w=e=>null==e?"":String(e),j=/###/g,S=e=>e&&e.includes("###")?e.replace(j,"."):e,x=e=>!e||y(e),P=(e,t,n)=>{const r=y(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(x(e))return{};const t=S(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return x(e)?{}:{obj:e,k:S(r[o])}},_=(e,t,n)=>{const{obj:r,k:o}=P(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),s=P(e,l,Object);for(;void 0===s.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),s=P(e,l,Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},C=(e,t)=>{const{obj:n,k:r}=P(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},A=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?y(e[r])||e[r]instanceof String||y(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):A(e[r],t[r],n):e[r]=t[r]);return e},E=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},k=e=>y(e)?e.replace(/[&<>"'\/]/g,e=>R[e]):e,D=[" ",",","?","!",";"],M=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),L=(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},I=e=>e?.replace(/_/g,"-"),N={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 T{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||N,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=>y(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),y(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new T(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new T(this.logger,e)}}var z=new T;class F{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 V extends F{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):y(n)&&o?l.push(...n.split(o)):l.push(n)));const s=C(this.data,l);return s||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!s&&i&&y(n)?L(this.data?.[e]?.[t],n,o):s}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),_(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)(y(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 s=C(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?A(s,n,o):s={...s,...n},_(this.data,l,s),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 H={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 q=Symbol("i18next/PATH_KEY");function B(e,t){const{[q]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===q?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(n.length>1&&o){const e=t?.ns,l=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(l&&(i?l:l.length>1?l.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const W=e=>!y(e)&&"boolean"!=typeof e&&"number"!=typeof e;class K extends F{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=z.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=W(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=D.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=M.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:y(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:y(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=B(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?B(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:s}=this.extractFromKey(e[e.length-1],r),a=s[s.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:`${a}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(r)}:`${a}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const h=f?.usedKey||l,m=f?.exactUsedKey||l,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!y(r.count),O=K.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",j=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=v&&!r.ordinal&&0===r.count,x=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${j}`]||r.defaultValue;let P=p;b&&!p&&O&&(P=x);const _=W(P),C=Object.prototype.toString.apply(P);if(!(b&&P&&_)||["[object Number]","[object Function]","[object RegExp]"].includes(C)||y(g)&&Array.isArray(P))if(b&&y(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&O&&(t=!0,p=x),this.isValidLookup(p)||(o=!0,p=l);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=O&&x!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,a,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?x: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=O&&n!==p?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,a,t,o,d,r),this.emit("missingKey",e,a,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&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}`]||x)})}):n(e,l,x))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${a}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}${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(h,P,{...r,ns:s}):`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(P),t=e?[]:{},n=e?m:h;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=O&&!p?this.translate(o,{...r,defaultValue:W(x)?x[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=P[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=y(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 s=n.replace&&!y(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,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=y(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=H.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 y(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?B(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),a=s.key;r=a;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!y(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(y(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=[a];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,a,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(a+e.replace(o,this.options.pluralSeparator)),l.push(a+e),d&&l.push(a+n)),f){const r=`${a}${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 s;for(;s=l.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,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&&!y(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r={...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 U{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=z.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=I(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=I(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(y(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)),y(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.options.fallbackLng,r=Array.isArray(n)?n.join("|"):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);const o=void 0===t||!1===t||y(t),i=void 0===t&&"function"==typeof this.options.fallbackLng;let l=null;if(y(e)&&o&&!i){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${n}`}if(null!==l){const e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}const s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),a=[],c=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return y(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):y(e)&&c(this.formatLanguageCode(e)),s.forEach(e=>{a.includes(e)||c(this.formatLanguageCode(e))}),null!==l?(this.resolveHierarchyCache[l]=a,a.slice()):a}}const G={zero:0,one:1,two:2,few:3,many:4,other:5},Y={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class J{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=z.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=I("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!"),Y;if(!e.match(/-|_/))return Y;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)=>G[e]-G[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 Q=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=C(e,n);return void 0!==r?r:C(t,n)})(e,t,n);return!i&&o&&y(n)&&(i=L(e,n,r),void 0===i&&(i=L(t,n,r))),i},Z=e=>e.replace(/\$/g,"$$$$");class X{constructor(e={}){this.logger=z.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:s,formatSeparator:a,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:k,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?E(o):i||"{{",this.suffix=l?E(l):s||"}}",this.formatSeparator=a||",",this.unescapePrefix=c?"":u?E(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?E(c):"",this.nestingPrefix=d?E(d):f||E("$t("),this.nestingSuffix=p?E(p):h||E(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||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 s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},a=e=>{if(!e.includes(this.formatSeparator)){const o=Q(t,s,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(Q(t,s,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=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=a(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=y(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 y(i)||this.useRawValueToEscape||(i=w(i));const s=t.safeValue(i);if(e=e.replace(o[0],Z(s)),u?(t.regex.lastIndex+=s.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(`${E(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),s=o.match(/"/g);((l?.length??0)%2==0&&!s||(s?.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 s=[];i={...n},i=i.replace&&!y(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const a=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==a&&(s=r[1].slice(a).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,a)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!y(o))return o;y(o)||(o=w(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],Z(w(o))),this.regexp.lastIndex=0}return e}}const $=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 s=t[l];return s||(s=e(I(r),o),t[l]=s),s(n)}},ee=e=>(t,n,r)=>e(I(n),r)(t);class te{constructor(e={}){this.logger=z.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?$:ee;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()]=$(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator),i=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;i.push(t)}const l=i.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]||{},s=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...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 l}}class ne extends F{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=z.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={},s={};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===s[t]&&(s[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(s)}}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}=P(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,s)=>{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&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{const n=s(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();y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),y(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 s={...i,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let o;o=5===a.length?a(e,t,n,r,s):a(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 a(e,t,n,r,l,s)}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 re=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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]),y(e[1])&&(t.defaultValue=e[1]),y(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}),oe=e=>(y(e.ns)&&(e.ns=[e.ns]),y(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),y(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ie=()=>{};class le extends F{constructor(e={},t){var n;if(super(),this.options=oe(e),this.services={},this.logger=z,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&&(y(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=re();this.options={...n,...this.options,...oe(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?z.init(r(this.modules.logger),this.options):z.init(null,this.options),e=this.modules.formatter?this.modules.formatter:te;const t=new U(this.options);this.store=new V(this.options.resources,this.options);const n=this.services;n.logger=z,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new J(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 X(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ne(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 K(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=ie),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=O(),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=ie){let n=t;const r=y(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=O();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=ie),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&&H.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=O();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=y(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(y(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,r){const o=r?.scopeNs,i=(e,t,...r)=>{let l;l="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs;const s=void 0!==l.ns&&null!==l.ns;l.ns=l.ns||i.ns,""!==l.keyPrefix&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const a={...this.options,...l};Array.isArray(o)&&!s&&(a.ns=o),"function"==typeof l.keyPrefix&&(l.keyPrefix=B(l.keyPrefix,a));const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(e)?u=e.map(e=>("function"==typeof e&&(e=B(e,a)),`${l.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=B(e,a)),u=l.keyPrefix?`${l.keyPrefix}${c}${e}`:e),this.t(u,l)};return y(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}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=O();return this.options.ns?(y(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=O();y(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 U(re());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 le(e,t);return n.createInstance=le.createInstance,n}cloneInstance(e={},t=ie){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new le(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 V(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...re().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new X(n)}return o.translator=new K(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 se=le.createInstance(),ae=(se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT,se.t,se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages,/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g),ce={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ue=e=>ce[e];let de,fe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(ae,ue),transDefaultProps:void 0};const pe={type:"3rdParty",init(e){((e={})=>{fe={...fe,...e}})(e.options.react),(e=>{de=e})(e)}},he=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Search..."},"multiSelect":{"selectedItems":"Selected items"},"checklist":{"selected":"Selected","cancel":"Cancel","selectAll":"Select all"},"list":{"loading":"Loading...","notFound":"Nothing found"}},"view":{"virtualTable":{"sort":"Sort","AZ":"Asc","ZA":"Desc","sortAndFiltration":"Sort and filtration","uniqueValues":"Unique values","uniqueOnly":"Unique only","loadingData":"Loading data...","noValue":"< no value >"}}}}'),me=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Поиск..."},"multiSelect":{"selectedItems":"Выбрано элементов"},"checklist":{"selected":"Выбранное","cancel":"Отменить","selectAll":"Выбрать все"},"list":{"loading":"Загрузка...","notFound":"Ничего не найдено"}},"view":{"virtualTable":{"sort":"Сортировка","AZ":"По возрастанию","ZA":"По убыванию","sortAndFiltration":"Сортировка и фильтрация","uniqueValues":"Уникальность значений","uniqueOnly":"Только уникальные","loadingData":"Идёт загрузка данных...","noValue":"< нет значения >"}}}}');se.use(pe).init({resources:{en:{translation:he},ru:{translation:me}},lng:"ru",fallbackLng:"en",interpolation:{escapeValue:!1}});var ge=n(942),be=n.n(ge);function ve(){return ve.c||(ve.c=n.t(o(),2))}o();var ye="button-module__active__J1ZMQ",Oe="button-module__compact___dXxT",we="button-module__elevated__DfXlq",je="button-module__extraLarge__G1XhO",Se="button-module__filled__tpB2J",xe="button-module__large__QVzg5",Pe="button-module__medium__NzTCo",_e="button-module__only-icon__MYlMe",Ce="button-module__outlined__U7Ix5",Ae="button-module__root__d8Qm7",Ee="button-module__small__yTLSt",Re="button-module__state-layer__ZxKUR",ke="button-module__text__ThaTQ",De="button-module__text-secondary__UtgHY",Me="button-module__tonal__LGQFG",Le="button-module__with-icon__JrK73",Ie="button-module__without-icon__xZxlu";const Ne=require("react/jsx-runtime"),Te=["variant","componentSize","icon","textSecondary","isActive","compact","className","children","classes"];function ze(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(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 He=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,textSecondary:l,isActive:s,compact:a,className:c,children:u,classes: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,Te);return(0,Ne.jsx)("button",Fe(Fe({className:be()(Ae,i[n],i[r],o?u?Le:_e:Ie,s?ye:void 0,l?De:void 0,a?Oe:void 0,c,d?.root)},f),{},{ref:t,children:(0,Ne.jsxs)("span",{className:be()(Re,d?.stateLayer),children:[o,u]})}))});function qe(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Be=parseInt(o().version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=qe(r,t),o="function"==typeof e;n.push(o?e:()=>qe(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)qe(n,t)}},We="typography-module__body1__aH5C7",Ke="typography-module__body2__tLnbZ",Ue="typography-module__body3__ArlMM",Ge="typography-module__button__QH0WB",Ye="typography-module__caption__Um0hc",Je="typography-module__caption2__ftlcn",Qe="typography-module__doubleCaption__DKOZy",Ze="typography-module__h1__WhV07",Xe="typography-module__h2__wu3B3",$e="typography-module__h3__g4nW1",et="typography-module__h4__bevKW",tt="typography-module__h5__zljak",nt="typography-module__h6__mAHOd",rt="typography-module__h7__k_Iry",ot="typography-module__label__jNXgm",it="typography-module__overline__LOINe",lt="typography-module__subtitle1__D0BxG",st="typography-module__subtitle2__DLkzN",at="typography-module__subtitle3__Yqzol";const ct=["variant","component","children","className"];function ut(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 dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ft(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 pt=(0,o().forwardRef)(function(e,t){let{variant:n="body2",component:r,children:o,className:i}=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,ct);const a=r||"span";return(0,Ne.jsx)(a,dt(dt({className:be()(l[n],i)},s),{},{ref:t,children:o}))});function ht(){const e=o();return"function"==typeof e.useId?e.useId():(0,o().useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const mt=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,Ne.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 gt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach(function(t){vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vt(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 yt=e=>(0,Ne.jsx)(mt,bt(bt({},e),{},{children:(0,Ne.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 Ot(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 wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach(function(t){jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jt(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 St=e=>(0,Ne.jsx)(mt,wt(wt({},e),{},{children:(0,Ne.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 xt(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach(function(t){_t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _t(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 Ct=e=>(0,Ne.jsx)(mt,Pt(Pt({},e),{},{children:(0,Ne.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 At="checkbox-module__checkbox__yO066",Et="checkbox-module__pressed__lPIee";const Rt=["label","several","componentSize","classes","id"];function kt(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach(function(t){Mt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mt(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 Lt=(0,o().forwardRef)(function(e,t){const{label:n,several:r,componentSize:i="medium",classes:l,id:s}=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,Rt),c=(0,o().useRef)(null),u=ht(),d=s??u;(0,o().useEffect)(()=>{const e=c.current;if(!e)return;const t=()=>e.classList.remove(Et),n=()=>e.classList.add(Et);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const f="large"===i?"subtitle1":"subtitle2";return(0,Ne.jsxs)("div",{className:be()("checkbox-module__root__AzwHw",l?.root),children:[(0,Ne.jsx)("input",Dt({ref:Be([c,t]),type:"checkbox",className:be()("checkbox-module__input__qmuqO",l?.input),id:d,title:n},a)),(0,Ne.jsxs)("label",{htmlFor:d,className:be()("checkbox-module__label__wmkmp",l?.label),title:n,children:[r?(0,Ne.jsx)("span",{className:be()(At,"checkbox-module__several__MIC_C",l?.checkbox),children:(0,Ne.jsx)(Ct,{})}):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("span",{className:be()(At,"checkbox-module__deselected__xrQoR",l?.checkbox),children:(0,Ne.jsx)(yt,{})}),(0,Ne.jsx)("span",{className:be()(At,"checkbox-module__selected__MsgZN",l?.checkbox),children:(0,Ne.jsx)(St,{})})]}),!!n&&(0,Ne.jsx)(pt,{variant:f,className:be()("checkbox-module__label-text__uUcXJ",l?.labelText),children:n})]})]})}),It=new Uint8Array(16),Nt=[];for(let e=0;e<256;++e)Nt.push((e+256).toString(16).slice(1));const Tt=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(It);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(Nt[e[t+0]]+Nt[e[t+1]]+Nt[e[t+2]]+Nt[e[t+3]]+"-"+Nt[e[t+4]]+Nt[e[t+5]]+"-"+Nt[e[t+6]]+Nt[e[t+7]]+"-"+Nt[e[t+8]]+Nt[e[t+9]]+"-"+Nt[e[t+10]]+Nt[e[t+11]]+Nt[e[t+12]]+Nt[e[t+13]]+Nt[e[t+14]]+Nt[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var zt="tooltip-module__arrow__t3qHm",Ft="tooltip-module__bottom-arrow__BY759",Vt="tooltip-module__content__GmJjH",Ht="tooltip-module__error__asP80",qt="tooltip-module__info__SGNDR",Bt="tooltip-module__left-arrow__Wpg7W",Wt="tooltip-module__right-arrow__qwOJk",Kt="tooltip-module__success__f_f_u",Ut="tooltip-module__top-arrow__k7G3S",Gt="tooltip-module__trigger__fBwzk",Yt="tooltip-module__warning__aZtHW";function Jt(){return"undefined"!=typeof window}function Qt(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xt(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!Jt()&&(e instanceof Node||e instanceof Zt(e).Node)}function en(e){return!!Jt()&&(e instanceof Element||e instanceof Zt(e).Element)}function tn(e){return!!Jt()&&(e instanceof HTMLElement||e instanceof Zt(e).HTMLElement)}function nn(e){return!(!Jt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot)}function rn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function on(e){return/^(table|td|th)$/.test(Qt(e))}function ln(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const sn=/transform|translate|scale|rotate|perspective|filter/,an=/paint|layout|strict|content/,cn=e=>!!e&&"none"!==e;let un;function dn(e){const t=en(e)?hn(e):e;return cn(t.transform)||cn(t.translate)||cn(t.scale)||cn(t.rotate)||cn(t.perspective)||!fn()&&(cn(t.backdropFilter)||cn(t.filter))||sn.test(t.willChange||"")||an.test(t.contain||"")}function fn(){return null==un&&(un="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),un}function pn(e){return/^(html|body|#document)$/.test(Qt(e))}function hn(e){return Zt(e).getComputedStyle(e)}function mn(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gn(e){if("html"===Qt(e))return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||Xt(e);return nn(t)?t.host:t}function bn(e){const t=gn(e);return pn(t)?(e.ownerDocument||e).body:tn(t)&&rn(t)?t:bn(t)}function vn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=bn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Zt(o);if(i){const e=yn(l);return t.concat(l,l.visualViewport||[],rn(o)?o:[],e&&n?vn(e):[])}return t.concat(o,vn(o,[],n))}function yn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var On=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[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(","),wn="undefined"==typeof Element,jn=wn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sn=!wn&&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},xn=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]"):xn(e.parentNode))},Pn=function(e,t,n){if(xn(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(On));return t&&jn.call(e,On)&&r.unshift(e),r.filter(n)},_n=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!xn(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=l.length?l:i.children,a=_n(s,!0,n);n.flatten?r.push.apply(r,a):r.push({scopeParent:i,candidates:a})}else{jn.call(i,On)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!xn(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=_n(!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},Cn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},An=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))&&!Cn(e)?0:e.tabIndex},En=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Rn=function(e){return"INPUT"===e.tagName},kn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Dn=function(e,t){return!(t.disabled||function(e){return Rn(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});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=jn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(jn.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return kn(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,a=Sn(e);if(s&&!s.shadowRoot&&!0===r(s))return kn(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=l}if(function(e){var t,n,r,o,i=e&&Sn(e),l=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(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));!s&&l;){var a,c,u;s=!(null===(c=l=null===(a=i=Sn(l))||void 0===a?void 0:a.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return s}(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!!jn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Mn=function(e,t){return!(function(e){return function(e){return Rn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Sn(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)||An(t)<0||!Dn(e,t))},Ln=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},In=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=An(e);return n<0&&t&&!Cn(e)?0:n}(i,o),s=o?In(e.candidates):i;0===l?o?t.push.apply(t,s):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:s})}),n.sort(En).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Nn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?_n([e],t.includeContainer,{filter:Mn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ln}):Pn(e,t.includeContainer,Mn.bind(null,t)),In(n)},Tn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==jn.call(e,On)&&Mn(t,e)};function zn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Fn(){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 Vn(){return/apple/i.test(navigator.vendor)}function Hn(){const e=/android/i;return e.test(zn())||e.test(Fn())}function qn(){return Fn().includes("jsdom/")}const Bn="data-floating-ui-focusable";function Wn(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 Kn(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&nn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Un(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Gn(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 Yn(e){return(null==e?void 0:e.ownerDocument)||document}function Jn(e){return tn(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Qn(e){return!!e&&"combobox"===e.getAttribute("role")&&Jn(e)}function Zn(e){return e?e.hasAttribute(Bn)?e:e.querySelector("["+Bn+"]")||e:null}function Xn(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,...Xn(e,t.id,n)])}function $n(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 er(e){e.preventDefault(),e.stopPropagation()}function tr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var nr="undefined"!=typeof document?o().useLayoutEffect:function(){};function rr(e){const t=o().useRef(e);return nr(()=>{t.current=e}),t}const or={...ve()}.useInsertionEffect||(e=>e());function ir(e){const t=o().useRef(()=>{});return or(()=>{t.current=e}),o().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 lr=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function sr(e,t){const n=Nn(e,lr()),r=n.length;if(0===r)return;const o=Wn(Yn(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function ar(e){return sr(Yn(e).body,1)||e}function cr(e){return sr(Yn(e).body,-1)||e}function ur(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kn(n,r)}function dr(e){Nn(e,lr()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function fr(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 pr=require("react-dom"),hr=Math.min,mr=Math.max,gr=Math.round,br=Math.floor,vr=e=>({x:e,y:e}),yr={left:"right",right:"left",bottom:"top",top:"bottom"};function Or(e,t,n){return mr(e,hr(t,n))}function wr(e,t){return"function"==typeof e?e(t):e}function jr(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function xr(e){return"x"===e?"y":"x"}function Pr(e){return"y"===e?"height":"width"}function _r(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Cr(e){return xr(_r(e))}function Ar(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Er=["left","right"],Rr=["right","left"],kr=["top","bottom"],Dr=["bottom","top"];function Mr(e){const t=jr(e);return yr[t]+e.slice(t.length)}function Lr(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function Ir(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 Nr(e,t,n){let{reference:r,floating:o}=e;const i=_r(t),l=Cr(t),s=Pr(l),a=jr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(a){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}}const h=Sr(t);return h&&(p[l]+=f*("end"===h?1:-1)*(n&&c?-1:1)),p}async function Tr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=wr(t,e),h=Lr(p),m=s[f?"floating"===d?"reference":"floating":d],g=Ir(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),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(s.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},O=Ir(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:a}):b);return{top:(g.top-O.top+h.top)/y.y,bottom:(O.bottom-g.bottom+h.bottom)/y.y,left:(g.left-O.left+h.left)/y.x,right:(O.right-g.right+h.right)/y.x}}const zr=new Set(["left","top"]);function Fr(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=gr(n)!==i||gr(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Vr(e){return en(e)?e:e.contextElement}function Hr(e){const t=Vr(e);if(!tn(t))return vr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fr(t);let l=(i?gr(n.width):n.width)/r,s=(i?gr(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const qr=vr(0);function Br(e){const t=Zt(e);return fn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qr}function Wr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Vr(e);let l=vr(1);t&&(r?en(r)&&(l=Hr(r)):l=Hr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Zt(e)}(i,n,r)?Br(i):vr(0);let a=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i&&r){const e=Zt(i),t=en(r)?Zt(r):r;let n=e,o=yn(n);for(;o&&t!==n;){const e=Hr(o),t=o.getBoundingClientRect(),r=hn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=i,c+=l,n=Zt(o),o=yn(n)}}return Ir({width:u,height:d,x:a,y:c})}function Kr(e,t){const n=mn(e).scrollLeft;return t?t.left+n:Wr(Xt(e)).left+n}function Ur(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kr(e,n),y:n.top+t.scrollTop}}function Gr(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=Zt(e),i=Xt(e),l=o.visualViewport;let s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(l){const e=!fn()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(s=l.width,a=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(Kr(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(s-=l)}return{width:s,height:a,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=mn(e),n=e.ownerDocument.body,r=mr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=mr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Kr(e);const l=-t.scrollTop;return"rtl"===hn(n).direction&&(i+=mr(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(Xt(e));else if(en(t))r=function(e,t){const n=Wr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hr(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Br(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ir(r)}function Yr(e,t,n){const r=tn(t),o=Xt(t),i="fixed"===n,l=Wr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=vr(0);if((r||!i)&&(("body"!==Qt(t)||rn(o))&&(s=mn(t)),r)){const e=Wr(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&o&&(a.x=Kr(o));const c=!o||r||i?vr(0):Ur(o,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}function Jr(e){return"static"===hn(e).position}function Qr(e,t){if(!tn(e)||"fixed"===hn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Xt(e)===n&&(n=n.ownerDocument.body),n}function Zr(e,t){const n=Zt(e);if(ln(e))return n;if(!tn(e)){let t=gn(e);for(;t&&!pn(t);){if(en(t)&&!Jr(t))return t;t=gn(t)}return n}let r=Qr(e,t);for(;r&&on(r)&&Jr(r);)r=Qr(r,t);return r&&pn(r)&&Jr(r)&&!dn(r)?n:r||function(e){let t=gn(e);for(;tn(t)&&!pn(t);){if(dn(t))return t;if(ln(t))return null;t=gn(t)}return null}(e)||n}const Xr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Xt(r),s=!!t&&ln(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},c=vr(1);const u=vr(0),d=tn(r);if((d||!i)&&(("body"!==Qt(r)||rn(l))&&(a=mn(r)),d)){const e=Wr(r);c=Hr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?vr(0):Ur(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}},getDocumentElement:Xt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ln(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=vn(e,[],!1).filter(e=>en(e)&&"body"!==Qt(e)),o=null;const i="fixed"===hn(e).position;let l=i?gn(e):e;for(;en(l)&&!pn(l);){const e=hn(l),t=dn(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=gn(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Gr(t,i[0],o);let s=l.top,a=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Gr(t,i[e],o);s=mr(n.top,s),a=hr(n.right,a),c=hr(n.bottom,c),u=mr(n.left,u)}return{width:a-u,height:c-s,x:u,y:s}},getOffsetParent:Zr,getElementRects:async function(e){const t=this.getOffsetParent||Zr,n=this.getDimensions,r=await n(e.floating);return{reference:Yr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Fr(e);return{width:t,height:n}},getScale:Hr,isElement:en,isRTL:function(e){return"rtl"===hn(e).direction}};function $r(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,c=Vr(e),u=o||i?[...c?vn(c):[],...t?vn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t,n){let r,o=null;const i=Xt(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;const h={rootMargin:-br(d)+"px "+-br(i.clientWidth-(u+f))+"px "+-br(i.clientHeight-(d+p))+"px "+-br(u)+"px",threshold:mr(0,hr(1,a))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!$r(c,e.getBoundingClientRect()))return s();if(n!==a){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}const a=Zt(e),c=()=>s(n);return a.addEventListener("resize",c),s(!0),()=>{a.removeEventListener("resize",c),l()}}(c,n,i):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!a&&h.observe(c),t&&h.observe(t));let m=a?Wr(e):null;return a&&function t(){const r=Wr(e);m&&!$r(m,r)&&n(),m=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=h)||e.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const to=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:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=wr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=jr(o),v=_r(s),y=jr(s)===s,O=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(y||!m?[Mr(s)]:function(e){const t=Mr(e);return[Ar(e),t,Ar(t)]}(s)),j="none"!==h;!f&&j&&w.push(...function(e,t,n,r){const o=Sr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Rr:Er:t?Er:Rr;case"left":case"right":return t?kr:Dr;default:return[]}}(jr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Ar)))),i}(s,m,h,O));const S=[s,...w],x=await a.detectOverflow(t,g),P=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&P.push(x[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Sr(e),o=Cr(e),i=Pr(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Mr(l)),[l,Mr(l)]}(o,l,O);P.push(x[e[0]],x[e[1]])}if(_=[..._,{placement:o,overflows:P}],!P.every(e=>e<=0)){var C,A;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===_r(t)||_.every(e=>_r(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var E;const e=null==(E=_.filter(e=>{if(j){const t=_r(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:E[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},no=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=wr(e,t)||{};if(null==c)return{};const d=Lr(u),f={x:n,y:r},p=Cr(o),h=Pr(p),m=await l.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",O=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=j?j[y]:0;S&&await(null==l.isElement?void 0:l.isElement(j))||(S=s.floating[y]||i.floating[h]);const x=O/2-w/2,P=S/2-m[h]/2-1,_=hr(d[b],P),C=hr(d[v],P),A=S-m[h]-C,E=S/2-m[h]/2+x,R=Or(_,E,A),k=!a.arrow&&null!=Sr(o)&&E!==R&&i.reference[h]/2-(E<_?_:C)-m[h]/2<0,D=k?E<_?E-_:E-A:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:E-R-D,...k&&{alignmentOffset:D}},reset:k}}}),ro=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...Xr,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:Tr},a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Nr(c,r,a),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:b}=m,{x:v,y,data:O,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[g]={...h[g],...O},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Nr(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var oo="undefined"!=typeof document?o().useLayoutEffect:function(){};function io(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(!io(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||io(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lo(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function so(e,t){const n=lo(e);return Math.round(t*n)/n}function ao(e){const t=o().useRef(e);return oo(()=>{t.current=e}),t}const co=(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:s}=t,a=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=jr(n),s=Sr(n),a="y"===_r(n),c=zr.has(l)?-1:1,u=i&&a?-1:1,d=wr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},uo=(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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=wr(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=_r(o),p=xr(f);let h=u[p],m=u[f];const g=(e,t)=>Or(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);l&&(h=g(p,h)),s&&(m=g(f,m));const b=a.fn({...t,[p]:h,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:l,[f]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},fo=(e,t)=>{const n=to(e);return{name:n.name,fn:n.fn,options:[e,t]}},po=(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?no({element:n.current,padding:r}).fn(t):{}:n?no({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function ho(e){const t=o().useRef(void 0),n=o().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 o().useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const mo="data-floating-ui-focusable",go="active",bo="selected",vo={...ve()};let yo=!1,Oo=0;const wo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Oo++,jo=vo.useId||function(){const[e,t]=o().useState(()=>yo?wo():void 0);return nr(()=>{null==e&&t(wo())},[]),o().useEffect(()=>{yo=!0},[]),e};const So=o().createContext(null),xo=o().createContext(null),Po=()=>{var e;return(null==(e=o().useContext(So))?void 0:e.id)||null},_o=()=>o().useContext(xo);function Co(e){return"data-floating-ui-"+e}function Ao(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Eo=Co("safe-polygon");function Ro(e,t,n){if(n&&!tr(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 ko(e){return"function"==typeof e?e():e}let Do=0;function Mo(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Do);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Do=requestAnimationFrame(i)}const Lo={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Io(e){return"inert"===e?Lo.inert:"aria-hidden"===e?Lo["aria-hidden"]:Lo.none}let No=new WeakSet,To={},zo=0;function Fo(e){return e?nn(e)?e.host:Fo(e.parentNode):null}const Vo=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Fo(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ho(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=Vo(t,e),s=new Set,a=new Set(l),c=[];To[o]||(To[o]=new WeakMap);const u=To[o];return l.forEach(function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!a.has(t)&&[].forEach.call(t.children,t=>{if("script"!==Qt(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Io(i),l=(r.get(t)||0)+1,s=(u.get(t)||0)+1;r.set(t,l),u.set(t,s),c.push(t),1===l&&n&&No.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),s.clear(),zo++,()=>{c.forEach(e=>{const t=Io(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!No.has(e)&&i&&e.removeAttribute(i),No.delete(e)),r||e.removeAttribute(o)}),zo--,zo||(Lo.inert=new WeakMap,Lo["aria-hidden"]=new WeakMap,Lo.none=new WeakMap,No=new WeakSet,To={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const qo={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},Bo=o().forwardRef(function(e,t){const[n,r]=o().useState();nr(()=>{Vn()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Co("focus-guard")]:"",style:qo};return(0,Ne.jsx)("span",{...e,...i})}),Wo={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ko=o().createContext(null),Uo=Co("portal");function Go(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,l=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=jo(),i=Yo(),[l,s]=o().useState(null),a=o().useRef(null);return nr(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{a.current=null})},[l]),nr(()=>{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(Uo,""),e.appendChild(n),a.current=n,s(n)},[t,r]),nr(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!$t(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const l=document.createElement("div");l.id=r,l.setAttribute(Uo,""),e=o||e,e.appendChild(l),a.current=l,s(l)},[t,n,r,i]),l}({id:n,root:r}),[s,a]=o().useState(null),c=o().useRef(null),u=o().useRef(null),d=o().useRef(null),f=o().useRef(null),p=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&i&&!(!r&&!l);return o().useEffect(()=>{if(l&&i&&!p)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&ur(e)&&("focusin"===e.type?fr:dr)(l)}},[l,i,p]),o().useEffect(()=>{l&&(h||fr(l))},[h,l]),(0,Ne.jsxs)(Ko.Provider,{value:o().useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:l,setFocusManagerState:a}),[i,l]),children:[m&&l&&(0,Ne.jsx)(Bo,{"data-type":"outside",ref:c,onFocus:e=>{if(ur(e,l)){var t;null==(t=d.current)||t.focus()}else{const e=cr(s?s.domReference:null);null==e||e.focus()}}}),m&&l&&(0,Ne.jsx)("span",{"aria-owns":l.id,style:Wo}),l&&pr.createPortal(t,l),m&&l&&(0,Ne.jsx)(Bo,{"data-type":"outside",ref:u,onFocus:e=>{if(ur(e,l)){var t;null==(t=f.current)||t.focus()}else{const t=ar(s?s.domReference:null);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Yo=()=>o().useContext(Ko);function Jo(e){return o().useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Qo=[];function Zo(){Qo=Qo.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Xo(){Zo();const e=Qo[Qo.length-1];return null==e?void 0:e.deref()}function $o(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=lr(),o=function(e,t){return(t=t||{}).getShadowRoot?_n([e],t.includeContainer,{filter:Dn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Pn(e,t.includeContainer,Dn.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return Tn(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 ei=o().forwardRef(function(e,t){return(0,Ne.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:qo})});function ti(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:l=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0,outsideElementsInert:p=!1,getInsideElements:h=()=>[]}=e,{open:m,onOpenChange:g,events:b,dataRef:v,elements:{domReference:y,floating:O}}=t,w=ir(()=>{var e;return null==(e=v.current.floatingContext)?void 0:e.nodeId}),j=ir(h),S="number"==typeof s&&s<0,x=Qn(y)&&S,P="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,_=!P||l,C=!_||P&&p,A=rr(i),E=rr(s),R=rr(a),k=_o(),D=Yo(),M=o().useRef(null),L=o().useRef(null),I=o().useRef(!1),N=o().useRef(!1),T=o().useRef(-1),z=o().useRef(-1),F=null!=D,V=Zn(O),H=ir(function(e){return void 0===e&&(e=V),e?Nn(e,lr()):[]}),q=ir(e=>{const t=H(e);return A.current.map(e=>y&&"reference"===e?y:V&&"floating"===e?V:t).filter(Boolean).flat()});o().useEffect(()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){Kn(V,Wn(Yn(V)))&&0===H().length&&!x&&er(e);const t=q(),n=Un(e);"reference"===A.current[0]&&n===y&&(er(e),e.shiftKey?Mo(t[t.length-1]):Mo(t[1])),"floating"===A.current[1]&&n===V&&e.shiftKey&&(er(e),Mo(t[0]))}}const t=Yn(V);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,y,V,u,A,x,H,q]),o().useEffect(()=>{if(!r&&O)return O.addEventListener("focusin",e),()=>{O.removeEventListener("focusin",e)};function e(e){const t=Un(e),n=H().indexOf(t);-1!==n&&(T.current=n)}},[r,O,H]),o().useEffect(()=>{if(r)return;if(!f)return;function e(){N.current=!0,setTimeout(()=>{N.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Un(e);queueMicrotask(()=>{const o=w(),i=!(Kn(y,t)||Kn(O,t)||Kn(t,O)||Kn(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(Co("focus-guard"))||k&&(Xn(k.nodesRef.current,o).find(e=>{var n,r;return Kn(null==(n=e.context)?void 0:n.elements.floating,t)||Kn(null==(r=e.context)?void 0:r.elements.domReference,t)})||$n(k.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Zn(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===y&&V&&$o(V,A),c&&n!==y&&(null==r||!r.isConnected)&&Wn(Yn(V))===Yn(V).body){tn(V)&&V.focus();const e=T.current,t=H(),n=t[e]||t[t.length-1]||V;tn(n)&&n.focus()}v.current.insideReactTree?v.current.insideReactTree=!1:!x&&u||!t||!i||N.current||t===Xo()||(I.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!k&&D);function o(){Ao(z),v.current.insideReactTree=!0,z.current=window.setTimeout(()=>{v.current.insideReactTree=!1})}return O&&tn(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),O.addEventListener("focusout",t),n&&O.addEventListener("focusout",o,!0),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),O.removeEventListener("focusout",t),n&&O.removeEventListener("focusout",o,!0)}):void 0},[r,y,O,V,u,k,D,g,f,c,H,x,w,A,v]);const B=o().useRef(null),W=o().useRef(null),K=Jo([B,null==D?void 0:D.beforeInsideRef]),U=Jo([W,null==D?void 0:D.afterInsideRef]);function G(e){return!r&&d&&u?(0,Ne.jsx)(ei,{ref:"start"===e?M:L,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof d?d:"Dismiss"}):null}o().useEffect(()=>{var e,t;if(r)return;if(!O)return;const n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+Co("portal")+"]"))||[]),o=null==(t=(k?$n(k.nodesRef.current,w()):[]).find(e=>{var t;return Qn((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[O,o,...n,...j(),M.current,L.current,B.current,W.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,A.current.includes("reference")||x?y:null].filter(e=>null!=e),l=u||x?Ho(i,!C,C):Ho(i);return()=>{l()}},[r,y,O,u,A,D,x,_,C,k,w,j]),nr(()=>{if(r||!tn(V))return;const e=Wn(Yn(V));queueMicrotask(()=>{const t=q(V),n=E.current,r=("number"==typeof n?t[n]:n.current)||V,o=Kn(V,e);S||o||!m||Mo(r,{preventScroll:r===V})})},[r,m,V,S,q,E]),nr(()=>{if(r||!V)return;const e=Yn(V);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(I.current=!0),"outside-press"===t)if(r)I.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Hn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!qn()&&(!Hn()&&0===e.width&&0===e.height||Hn()&&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))I.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),I.current=!e}}t=Wn(e),Zo(),t&&"body"!==Qt(t)&&(Qo.push(new WeakRef(t)),Qo.length>20&&(Qo=Qo.slice(-20))),b.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,qo),F&&y&&y.insertAdjacentElement("afterend",o),()=>{b.off("openchange",n);const t=Wn(e),r=Kn(O,t)||k&&Xn(k.nodesRef.current,w(),!1).some(e=>{var n;return Kn(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof R.current){const e=y||Xo();return e&&e.isConnected?e:o}return R.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=lr();return Tn(e,t)?e:Nn(e,t)[0]||e}(i);R.current&&!I.current&&tn(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,O,V,R,v,b,k,F,y,w]),o().useEffect(()=>(queueMicrotask(()=>{I.current=!1}),()=>{queueMicrotask(Zo)}),[r]),nr(()=>{if(!r&&D)return D.setFocusManagerState({modal:u,closeOnFocusOut:f,open:m,onOpenChange:g,domReference:y}),()=>{D.setFocusManagerState(null)}},[r,D,u,m,g,f,y]),nr(()=>{r||V&&$o(V,A)},[r,V,A]);const Y=!r&&_&&(!u||!x)&&(F||u);return(0,Ne.jsxs)(Ne.Fragment,{children:[Y&&(0,Ne.jsx)(Bo,{"data-type":"inside",ref:K,onFocus:e=>{if(u){const e=q();Mo("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(I.current=!1,ur(e,D.portalNode)){const e=ar(y);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!x&&G("start"),n,G("end"),Y&&(0,Ne.jsx)(Bo,{"data-type":"inside",ref:U,onFocus:e=>{if(u)Mo(q()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(f&&(I.current=!0),ur(e,D.portalNode)){const e=cr(y);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}function ni(e){return tn(e.target)&&"BUTTON"===e.target.tagName}function ri(e){return Jn(e)}function oi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:s=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=o().useRef(),h=o().useRef(!1),m=o().useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==a&&(tr(t,!0)&&u||(!n||!c||i.current.openEvent&&f&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===a&&p.current?p.current=void 0:tr(t,!0)&&u||(!n||!c||i.current.openEvent&&f&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||ni(e)||(" "!==e.key||ri(l)||(e.preventDefault(),h.current=!0),function(e){return tn(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||ni(e)||ri(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[i,l,a,u,d,r,n,f,c]);return o().useMemo(()=>s?{reference:m}:{},[s,m])}const ii={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},li={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},si=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 ai(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:l}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,g=_o(),b=ir("function"==typeof c?c:()=>!1),v="function"==typeof c?b:c,y=o().useRef(!1),{escapeKey:O,outsidePress:w}=si(h),{escapeKey:j,outsidePress:S}=si(m),x=o().useRef(!1),P=ir(e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(x.current)return;const o=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?Xn(g.nodesRef.current,o):[];if(!O&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.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")}),_=ir(e=>{var t;const n=()=>{var t;P(e),null==(t=Un(e))||t.removeEventListener("keydown",n)};null==(t=Un(e))||t.addEventListener("keydown",n)}),C=ir(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const o=y.current;if(y.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Un(e),a="["+Co("inert")+"]",c=Yn(i.floating).querySelectorAll(a);let d=en(s)?s:null;for(;d&&!pn(d);){const e=gn(d);if(pn(e)||!en(e))break;d=e}if(c.length&&en(s)&&!s.matches("html,body")&&!Kn(s,i.floating)&&Array.from(c).every(e=>!Kn(d,e)))return;if(tn(s)&&R){const t=pn(s),n=hn(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,a=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,u=a&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=l&&e.offsetY>s.clientHeight;if(u||d)return}const f=null==(t=l.current.floatingContext)?void 0:t.nodeId,p=g&&Xn(g.nodesRef.current,f).some(t=>{var n;return Gn(e,null==(n=t.context)?void 0:n.elements.floating)});if(Gn(e,i.floating)||Gn(e,i.domReference)||p)return;const h=g?Xn(g.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),A=ir(e=>{var t;const n=()=>{var t;C(e),null==(t=Un(e))||t.removeEventListener(u,n)};null==(t=Un(e))||t.addEventListener(u,n)});o().useEffect(()=>{if(!n||!s)return;l.current.__escapeKeyBubbles=O,l.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),x.current=!0}function c(){e=window.setTimeout(()=>{x.current=!1},fn()?5:0)}const d=Yn(i.floating);a&&(d.addEventListener("keydown",j?_:P,j),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,S?A:C,S);let f=[];return p&&(en(i.domReference)&&(f=vn(i.domReference)),en(i.floating)&&(f=f.concat(vn(i.floating))),!en(i.reference)&&i.reference&&i.reference.contextElement&&(f=f.concat(vn(i.reference.contextElement)))),f=f.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),f.forEach(e=>{e.addEventListener("scroll",t)}),()=>{a&&(d.removeEventListener("keydown",j?_:P,j),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,S?A:C,S),f.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,i,a,v,u,n,r,p,s,O,w,P,j,_,C,S,A]),o().useEffect(()=>{l.current.insideReactTree=!1},[l,v,u]);const E=o().useMemo(()=>({onKeyDown:P,...d&&{[ii[f]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==f&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,d,f]),R=o().useMemo(()=>{function e(e){0===e.button&&(y.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[li[u]]:()=>{l.current.insideReactTree=!0}}},[P,u,l]);return o().useMemo(()=>s?{reference:E,floating:R}:{},[s,E,R])}function ci(e){var t,n;let{elements:r,...i}=void 0===e?{}:e;const{nodeId:l}=i,s=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=jo(),l=o().useRef({}),[s]=o().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!=Po(),[c,u]=o().useState(r.reference),d=ir((e,t,r)=>{l.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),f=o().useMemo(()=>({setPositionReference:u}),[]),p=o().useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return o().useMemo(()=>({dataRef:l,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[t,d,p,s,i,f])}({...i,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),a=i.rootContext||s,c=a.elements,[u,d]=o().useState(null),[f,p]=o().useState(null),h=(null==c?void 0:c.domReference)||u,m=o().useRef(null),g=_o();nr(()=>{h&&(m.current=h)},[h]);const b=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=o().useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o().useState(r);io(p,r)||h(r);const[m,g]=o().useState(null),[b,v]=o().useState(null),y=o().useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),O=o().useCallback(e=>{e!==x.current&&(x.current=e,v(e))},[]),w=l||m,j=s||b,S=o().useRef(null),x=o().useRef(null),P=o().useRef(d),_=null!=c,C=ao(c),A=ao(i),E=ao(u),R=o().useCallback(()=>{if(!S.current||!x.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),ro(S.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};k.current&&!io(P.current,t)&&(P.current=t,pr.flushSync(()=>{f(t)}))})},[p,t,n,A,E]);oo(()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const k=o().useRef(!1);oo(()=>(k.current=!0,()=>{k.current=!1}),[]),oo(()=>{if(w&&(S.current=w),j&&(x.current=j),w&&j){if(C.current)return C.current(w,j,R);R()}},[w,j,R,C,_]);const D=o().useMemo(()=>({reference:S,floating:x,setReference:y,setFloating:O}),[y,O]),M=o().useMemo(()=>({reference:w,floating:j}),[w,j]),L=o().useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=so(M.floating,d.x),r=so(M.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...lo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,d.x,d.y]);return o().useMemo(()=>({...d,update:R,refs:D,elements:M,floatingStyles:L}),[d,R,D,M,L])}({...i,elements:{...c,...f&&{reference:f}}}),v=o().useCallback(e=>{const t=en(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),b.refs.setReference(t)},[b.refs]),y=o().useCallback(e=>{(en(e)||null===e)&&(m.current=e,d(e)),(en(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!en(e))&&b.refs.setReference(e)},[b.refs]),O=o().useMemo(()=>({...b.refs,setReference:y,setPositionReference:v,domReference:m}),[b.refs,y,v]),w=o().useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),j=o().useMemo(()=>({...b,...a,refs:O,elements:w,nodeId:l}),[b,O,w,l,a]);return nr(()=>{a.dataRef.current.floatingContext=j;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===l);e&&(e.context=j)}),o().useMemo(()=>({...b,context:j,refs:O,elements:w}),[b,O,w,j])}function ui(){return zn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Vn()}function di(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:l,elements:s}=e,{enabled:a=!0,visibleOnly:c=!0}=t,u=o().useRef(!1),d=o().useRef(-1),f=o().useRef(!0);o().useEffect(()=>{if(!a)return;const e=Zt(s.domReference);function t(){!n&&tn(s.domReference)&&s.domReference===Wn(Yn(s.domReference))&&(u.current=!0)}function r(){f.current=!0}function o(){f.current=!1}return e.addEventListener("blur",t),ui()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),ui()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[s.domReference,n,a]),o().useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}},[i,a]),o().useEffect(()=>()=>{Ao(d)},[]);const p=o().useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Un(e.nativeEvent);if(c&&en(t))if(ui()&&!e.relatedTarget){if(!f.current&&!Jn(t))return}else if(!function(e){if(!e||qn())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=en(t)&&t.hasAttribute(Co("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;const i=Wn(s.domReference?s.domReference.ownerDocument:document);(t||i!==s.domReference)&&(Kn(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||Kn(s.domReference,i)||o||r(!1,n,"focus"))})}}),[l,s.domReference,r,c]);return o().useMemo(()=>a?{reference:p}:{},[a,p])}function fi(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[go]:t,[bo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[mo]:""},...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&&[go,bo].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 pi(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),i=o().useCallback(t=>fi(t,e,"reference"),t),l=o().useCallback(t=>fi(t,e,"floating"),n),s=o().useCallback(t=>fi(t,e,"item"),r);return o().useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:s}),[i,l,s])}const hi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function mi(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:l,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,u=jo(),d=(null==(n=l.domReference)?void 0:n.id)||u,f=o().useMemo(()=>{var e;return(null==(e=Zn(l.floating))?void 0:e.id)||s},[l.floating,s]),p=null!=(r=hi.get(c))?r:c,h=null!=Po(),m=o().useMemo(()=>"tooltip"===p||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:i?f:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?f:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&h&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[p,f,h,i,d,c]),g=o().useMemo(()=>{const e={id:f,...p&&{role:p}};return"tooltip"===p||"label"===c?e:{...e,..."menu"===p&&{"aria-labelledby":d}}},[p,f,d,c]),b=o().useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:f+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[f,c]);return o().useMemo(()=>a?{reference:m,floating:g,item:b}:{},[a,m,g,b])}const gi=(0,o().createContext)(null);function bi(){return(0,o().useContext)(gi)}function vi(e,t){return void 0!==e?e:t??void 0}const yi=(0,o().createContext)(null),Oi=["styles","style","children"],wi=["context"];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 Si(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}function Pi(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 _i=(0,o().forwardRef)(function(e,t){let{styles:n,style:r,children:i}=e,l=Pi(e,Oi);const s=bi(),a=(0,o().useContext)(yi);if(!a)return null;const{context:c}=a,u=Pi(a,wi),d=ho([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,h=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",h=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",h=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return(0,Ne.jsx)(Go,{root:vi(u.root,s),children:(0,Ne.jsxs)("div",Si(Si({ref:d,style:Si(Si({},u.floatingStyles),r)},u.getFloatingProps(l)),{},{children:[i,!u.withoutArrow&&(0,Ne.jsx)("div",{className:n&&be()(n.arrow,n[f]),ref:u.arrowRef,style:{position:"absolute",left:null===h&&!1===p?0:u.middlewareData.arrow?.x,right:null===h&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===h?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===h?0:u.middlewareData.arrow?.y}})]}))})});function Ci(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?Ci(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(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=["children"],ki=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,Ri),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:i,withoutArrow:l,arrowRef:s,root:a}=e,[c,u]=(0,o().useState)(t),d=r??c,f=i??u,p=ci({placement:n,open:d,onOpenChange:f,whileElementsMounted:eo,middleware:[co(12),fo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),uo({padding:5}),...!l&&s?.current?[po({element:s})]:[]]}),{context:h}=p,m=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:l,elements:s}=e,{enabled:a=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,h=_o(),m=Po(),g=rr(u),b=rr(c),v=rr(n),y=rr(f),O=o().useRef(),w=o().useRef(-1),j=o().useRef(),S=o().useRef(-1),x=o().useRef(!0),P=o().useRef(!1),_=o().useRef(()=>{}),C=o().useRef(!1),A=ir(()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o().useEffect(()=>{if(a)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(Ao(w),Ao(S),x.current=!0,C.current=!1)}},[a,l]),o().useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){A()&&r(!1,e,"hover")}const t=Yn(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,a,g,A]);const E=o().useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Ro(b.current,"close",O.current);o&&!j.current?(Ao(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Ao(w),r(!1,e,n))},[b,r]),R=ir(()=>{_.current(),j.current=void 0}),k=ir(()=>{if(P.current){const e=Yn(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Eo),P.current=!1}}),D=ir(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));o().useEffect(()=>{if(a&&en(s.domReference)){const r=s.domReference,i=s.floating;return n&&r.addEventListener("mouseleave",o),p&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",o),p&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",c))}}function e(e){if(Ao(w),x.current=!1,d&&!tr(O.current)||ko(y.current)>0&&!Ro(b.current,"open"))return;const t=Ro(b.current,"open",O.current);t?w.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(D())return void k();_.current();const t=Yn(s.floating);if(Ao(S),C.current=!1,g.current&&i.current.floatingContext){n||Ao(w),j.current=g.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==O.current||!Kn(s.floating,e.relatedTarget))&&E(e)}function o(e){D()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||E(e)}})(e))}function l(){Ao(w)}function c(e){D()||E(e,!1)}},[s,a,e,d,p,E,R,k,r,n,v,h,b,g,i,D,y]),nr(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){P.current=!0;const e=s.floating;if(en(s.domReference)&&e){var t;const n=Yn(s.floating).body;n.setAttribute(Eo,"");const r=s.domReference,o=null==h||null==(t=h.nodesRef.current.find(e=>e.id===m))||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,m,s,h,g,A]),nr(()=>{n||(O.current=void 0,C.current=!1,R(),k())},[n,R,k]),o().useEffect(()=>()=>{R(),Ao(w),Ao(S),k()},[a,s.domReference,R,k]);const M=o().useMemo(()=>{function e(e){O.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||v.current||r(!0,t,"hover")}d&&!tr(O.current)||n||0===ko(y.current)||C.current&&e.movementX**2+e.movementY**2<2||(Ao(S),"touch"===O.current?o():(C.current=!0,S.current=window.setTimeout(o,ko(y.current))))}}},[d,r,n,v,y]);return o().useMemo(()=>a?{reference:M}:{},[a,M])}(h,{move:!1,enabled:null==r}),g=pi([m,di(h,{enabled:null==r}),ai(h),mi(h,{role:"tooltip"})]);return(0,o().useMemo)(()=>Ai(Ai({open:d,setOpen:f,withoutArrow:l,arrowRef:s,root:a},g),p),[d,f,g,p,a])}(n);return(0,Ne.jsx)(yi.Provider,{value:r,children:t})},Di=["children","wrapTrigger"];function Mi(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?Mi(Object(n),!0).forEach(function(t){Ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(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 Ni=(0,o().forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Di);const l=(0,o().useContext)(yi),s=n.ref,a=ho([l?.refs.setReference,t,s]);return l?!r&&(0,o().isValidElement)(n)?(0,o().cloneElement)(n,l.getReferenceProps(Li(Li(Li({ref:a},i),n.props),{},{"data-state":l.open?"open":"closed"}))):(0,Ne.jsx)("div",Li(Li({ref:a,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:n})):null});function Ti(e){const{label:t,clickable:n,initialOpen:r,placement:i,withoutArrow:l,wrapTrigger:a,alertType:c="default",root:u,children:d,classes:f}=e,[p,h]=(0,o().useState)(!1),m=(0,o().useRef)(null);return t?d?(0,Ne.jsxs)(ki,{placement:i,initialOpen:r,open:n?p:void 0,onOpenChange:n?h:void 0,withoutArrow:l,arrowRef:m,root:u,children:[(0,Ne.jsx)(Ni,{wrapTrigger:a,onClick:n?()=>h(e=>!e):void 0,className:a?be()(Gt,f?.trigger):void 0,children:d}),(0,Ne.jsx)(_i,{className:be()(Vt,s[c],f?.content),styles:s,children:t})]}):null:d?(0,Ne.jsx)(Ne.Fragment,{children:d}):null}var zi="fieldShell-module__arrow__aEobm",Fi="fieldShell-module__chips__sRJzx",Vi="fieldShell-module__end-icon__b8buW",Hi="fieldShell-module__input__uhnF8";const qi=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","endIconCount","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className","style"];function Bi(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 Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach(function(t){Ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(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 Ui=(0,o().forwardRef)(function(e,t){let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,labelExtra:s,inputId:a,onLabelClick:c,hasStartIcon:u,endIconCount:d=0,hasErrorIcon:f,hasClearButton:p,hasArrow:h,chipsMode:m,children:g,classes:b,className:v,style:y}=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,qi);return(0,Ne.jsxs)("div",{"data-size":r,className:be()("fieldShell-module__root__A1OLC",o&&"fieldShell-module__full-width__TtRHo",b?.root),children:[!!i&&(0,Ne.jsxs)("div",{className:be()("fieldShell-module__label-row__UkRCm",b?.labelRow),children:[(0,Ne.jsxs)(pt,{className:be()("fieldShell-module__label__MW9yk",b?.label),component:"label",variant:"caption",htmlFor:a,onClick:c,children:[i,s]}),!!l&&(0,Ne.jsx)(Ti,{label:l.description,alertType:"error",children:(0,Ne.jsx)("span",{className:be()("fieldShell-module__error-name__WExJs",b?.errorName),children:l.name})})]}),(0,Ne.jsx)("div",Wi(Wi({ref:t,"data-variant":n,"data-error":l?"":void 0,"data-start-icon":u?"":void 0,"data-end-icon":d>0?"":void 0,"data-error-icon":f?"":void 0,"data-clear":p?"":void 0,"data-arrow":h?"":void 0,"data-chips":m?"":void 0,className:be()("fieldShell-module__wrapper__OvvEL",v,b?.wrapper)},O),{},{style:Wi(Wi({},y),{},{"--end-icon-count":d}),children:g}))]})});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 Yi(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){Ji(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 Ji(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,Ne.jsx)(mt,Yi(Yi({},e),{},{children:(0,Ne.jsx)("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Zi(e){return(0,Ne.jsxs)(Ne.Fragment,{children:[e.name,(0,Ne.jsx)("br",{}),e.description]})}function Xi(e){const{error:t,componentSize:n="medium",className:r}=e,o="large"===n||"extraLarge"===n?24:20;return(0,Ne.jsx)(Ti,{label:Zi(t),alertType:"error",children:(0,Ne.jsx)("span",{className:be()(Vi,"fieldShell-module__error-icon__aHf1B",r),children:(0,Ne.jsx)(Qi,{size:o})})})}function $i(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 el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(t){tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tl(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 nl=e=>(0,Ne.jsx)(mt,el(el({},e),{},{children:(0,Ne.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"})}));var rl="inputChip-module__clickable__djl7f",ol="inputChip-module__disabled__YGtsQ",il="inputChip-module__extraLarge__y0_Wa",ll="inputChip-module__filled__pktYJ",sl="inputChip-module__icon__o6UjH",al="inputChip-module__large__zecCF",cl="inputChip-module__medium__T_uhi",ul="inputChip-module__outlined__L0tPF",dl="inputChip-module__remove__k2uuh",fl="inputChip-module__root__PCWqv",pl="inputChip-module__small__XM6yG",hl="inputChip-module__text__LQYEa",ml="inputChip-module__with-icon__J7ekZ";const gl=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];function bl(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 vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yl(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 Ol=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,disabled:i,onClick:l,onRemove:s,children:c,classes:u,className: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,gl);return(0,Ne.jsxs)("div",vl(vl({ref:t,className:be()(fl,a[n],a[r],!!o&&ml,i&&ol,l&&!i&&rl,d,u?.root),tabIndex:l&&!i?0:void 0},f),{},{onClick:i?void 0:l,children:[!!o&&(0,Ne.jsx)("span",{className:be()(sl,u?.icon),children:o}),(0,Ne.jsx)("span",{className:be()(hl,u?.text),children:c}),!!s&&(0,Ne.jsx)("button",{type:"button",className:be()(dl,u?.remove),onClick:e=>{e.stopPropagation(),i||s?.()},disabled:i,"aria-label":"Удалить",children:(0,Ne.jsx)(nl,{})})]}))});var wl="popover-module__content__mHuYG",jl="popover-module__trigger__nPqWJ";const Sl=(0,o().createContext)(null),xl=["style","children"],Pl=["context"];function _l(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?_l(Object(n),!0).forEach(function(t){Al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Al(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 El(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 Rl=(0,o().forwardRef)(function(e,t){let{style:n,children:r}=e,i=El(e,xl);const l=bi(),s=(0,o().useContext)(Sl);if(!s)return null;const{context:a}=s,c=El(s,Pl),u=ho([c.refs.setFloating,t]),d=ht();return(0,o().useLayoutEffect)(()=>(s.setDescriptionId(d),()=>s.setDescriptionId(void 0)),[d,s.setDescriptionId]),a.open?(0,Ne.jsx)(Go,{root:vi(c.root,l),children:(0,Ne.jsx)(ti,{context:a,modal:c.modal,children:(0,Ne.jsx)("div",Cl(Cl({id:d,ref:u,style:Cl(Cl({},c.floatingStyles),n),"aria-describedby":c.descriptionId},c.getFloatingProps(i)),{},{children:r}))})}):null}),kl=["update"];function Dl(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 Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(t){Ll(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(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 Il=["children","modal"];function Nl(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,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 zl=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,Il),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:i,open:l,onOpenChange:s,containerOffset:a=12,layoutVersion:c}=e,[u,d]=(0,o().useState)(t),[f,p]=(0,o().useState)(),h=l??u,m=s??d,g=ci({placement:n,open:h,onOpenChange:m,whileElementsMounted:eo,middleware:[co(a),fo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),uo({padding:5})]}),{update:b}=g,v=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}(g,kl),{context:y}=v;(0,o().useLayoutEffect)(()=>{h&&b()},[h,c,b]);const O=pi([oi(y,{enabled:null==l}),ai(y),mi(y)]);return(0,o().useMemo)(()=>Ml(Ml(Ml({open:h,setOpen:m},O),v),{},{update:b,modal:r,root:i,descriptionId:f,setDescriptionId:p}),[h,m,O,v,b,r,i,f])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach(function(t){Tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,Ne.jsx)(Sl.Provider,{value:i,children:t})},Fl=["children","wrapTrigger"];function Vl(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 Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(t){ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ql(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=(0,o().forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Fl);const l=(0,o().useContext)(Sl),s=n.ref,a=ho([l?.refs.setReference,t,s]);return l?!r&&(0,o().isValidElement)(n)?(0,o().cloneElement)(n,l.getReferenceProps(Hl(Hl(Hl({ref:a},i),n.props),{},{"data-state":l.open?"open":"closed"}))):(0,Ne.jsx)("div",Hl(Hl({ref:a,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:n})):null});function Wl(e){const{description:t,clickable:n,initialOpen:r,placement:i,wrapTrigger:l,containerOffset:s,root:a,open:c,onOpenChange:u,children:d,classes:f,contentStyle:p,layoutVersion:h}=e,[m,g]=(0,o().useState)(!1);return d?t?(0,Ne.jsxs)(zl,{placement:i,initialOpen:r,open:void 0!==c?c:n?m:void 0,onOpenChange:void 0!==u?u:n?g:void 0,containerOffset:s,root:a,layoutVersion:h,children:[(0,Ne.jsx)(Bl,{wrapTrigger:l,onClick:n?()=>g(e=>!e):void 0,className:be()(l?jl:void 0,f?.trigger),children:d}),(0,Ne.jsx)(Rl,{className:be()(wl,f?.content),style:p,children:t})]}):d:null}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 Ul(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){Gl(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 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 Yl=e=>(0,Ne.jsx)(mt,Ul(Ul({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Jl(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?Jl(Object(n),!0).forEach(function(t){Zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zl(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 Xl=e=>(0,Ne.jsx)(mt,Ql(Ql({},e),{},{children:(0,Ne.jsx)("path",{d:"M7 10l5 5 5-5z"})}));function $l(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 es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(t){ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ts(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 ns=e=>(0,Ne.jsx)(mt,es(es({},e),{},{children:(0,Ne.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function rs(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 os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(t){is(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function is(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 ls=e=>(0,Ne.jsx)(mt,os(os({},e),{},{children:(0,Ne.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 ss(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?ss(Object(n),!0).forEach(function(t){cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cs(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 us=e=>(0,Ne.jsx)(mt,as(as({},e),{},{children:(0,Ne.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})}));function ds(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 fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(t){ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ps(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 hs=e=>(0,Ne.jsx)(mt,fs(fs({},e),{},{children:(0,Ne.jsx)("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44\n 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13\n 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"})}));function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bs(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 vs=e=>(0,Ne.jsx)(mt,gs(gs({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0\n 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})}));function ys(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 Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(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 js=e=>(0,Ne.jsx)(mt,Os(Os({},e),{},{children:(0,Ne.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0\n .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M10 5.47l4\n 1.4v11.66l-4-1.4zm-5 .99 3-1.01v11.7l-3 1.16zm14 11.08-3 1.01V6.86l3-1.16z"})}));function Ss(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 xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){Ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ps(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 _s=e=>(0,Ne.jsxs)(mt,xs(xs({},e),{},{children:[(0,Ne.jsx)("circle",{cx:"7",cy:"14",r:"3"}),(0,Ne.jsx)("circle",{cx:"11",cy:"6",r:"3"}),(0,Ne.jsx)("circle",{cx:"16.6",cy:"17.6",r:"3"})]}));function Cs(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?Cs(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(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 Rs=e=>(0,Ne.jsx)(mt,As(As({},e),{},{children:(0,Ne.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 ks(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 Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(t){Ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(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 Ls=e=>(0,Ne.jsx)(mt,Ds(Ds({},e),{},{children:(0,Ne.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 Is(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(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 zs=e=>(0,Ne.jsx)(mt,Ns(Ns({},e),{},{children:(0,Ne.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function Fs(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 Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach(function(t){Hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hs(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 qs=e=>(0,Ne.jsx)(mt,Vs(Vs({},e),{},{children:(0,Ne.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function Bs(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 Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(t){Ks(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ks(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 Us=e=>(0,Ne.jsx)(mt,Ws(Ws({},e),{},{children:(0,Ne.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 Gs(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 Ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Js(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 Qs=e=>(0,Ne.jsx)(mt,Ys(Ys({},e),{},{children:(0,Ne.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 Zs(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 Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach(function(t){$s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(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 ea=e=>(0,Ne.jsx)(mt,Xs(Xs({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function ta(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 na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(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,Ne.jsx)(mt,na(na({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function ia(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 la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(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 aa=e=>(0,Ne.jsx)(mt,la(la({},e),{},{children:(0,Ne.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function ca(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 ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function da(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 fa=e=>(0,Ne.jsx)(mt,ua(ua({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function pa(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?pa(Object(n),!0).forEach(function(t){ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(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 ga=e=>(0,Ne.jsx)(mt,ha(ha({},e),{},{children:(0,Ne.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 ba(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 va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(t){ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ya(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,Ne.jsxs)(mt,va(va({},e),{},{children:[(0,Ne.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,Ne.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,Ne.jsx)("defs",{children:(0,Ne.jsx)("clipPath",{id:"clip0_851_25267",children:(0,Ne.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function wa(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(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 xa=e=>(0,Ne.jsx)(mt,ja(ja({},e),{},{children:(0,Ne.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 Pa(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?Pa(Object(n),!0).forEach(function(t){Ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ca(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 Aa=e=>(0,Ne.jsx)(mt,_a(_a({},e),{},{children:(0,Ne.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 Ea(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?Ea(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ka(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 Da=e=>(0,Ne.jsx)(mt,Ra(Ra({},e),{},{children:(0,Ne.jsx)("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function Ma(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(t){Ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ia(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 Na=e=>(0,Ne.jsx)(mt,La(La({},e),{},{children:(0,Ne.jsx)("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function Ta(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(t){Fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(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 Va=e=>(0,Ne.jsx)(mt,za(za({},e),{},{children:(0,Ne.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function Ha(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 qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){Ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wa=e=>(0,Ne.jsx)(mt,qa(qa({},e),{},{children:(0,Ne.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 Ka(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 Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(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 Ya=e=>(0,Ne.jsx)(mt,Ua(Ua({},e),{},{children:(0,Ne.jsx)("g",{transform:"scale(1.5)",children:(0,Ne.jsx)("path",{d:"M11.498 5H9.705L10.973 3.732C11.168 3.537 11.168 3.22 10.973 3.025C10.778 2.83 10.461 2.83 10.266 3.025L8.998 4.293V2.5C8.998 2.224 8.774 2 8.498 2C8.222 2 7.998 2.224 7.998 2.5V4.293L6.73 3.025C6.535 2.83 6.218 2.83 6.023 3.025C5.828 3.22 5.828 3.537 6.023 3.732L7.291 5H5.498C5.222 5 4.998 5.224 4.998 5.5C4.998 5.776 5.222 6 5.498 6H7.291L6.023 7.268C5.828 7.463 5.828 7.78 6.023 7.975C6.121 8.073 6.249 8.121 6.377 8.121C6.505 8.121 6.633 8.072 6.731 7.975L7.999 6.707V8.5C7.999 8.776 8.223 9 8.499 9C8.775 9 8.999 8.776 8.999 8.5V6.707L10.267 7.975C10.365 8.073 10.493 8.121 10.621 8.121C10.749 8.121 10.877 8.072 10.975 7.975C11.17 7.78 11.17 7.463 10.975 7.268L9.707 6H11.5C11.776 6 12 5.776 12 5.5C12 5.224 11.776 5 11.5 5H11.498ZM5 12C5 12.552 4.552 13 4 13C3.448 13 3 12.552 3 12C3 11.448 3.448 11 4 11C4.552 11 5 11.448 5 12Z"})})}));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 Qa(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){Za(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 Za(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 Xa=e=>(0,Ne.jsx)(mt,Qa(Qa({},e),{},{children:(0,Ne.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 $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 ec(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){tc(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 tc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nc=e=>(0,Ne.jsx)(mt,ec(ec({},e),{},{children:(0,Ne.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function rc(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 oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach(function(t){ic(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ic(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lc=e=>(0,Ne.jsx)(mt,oc(oc({},e),{},{children:(0,Ne.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 sc(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 ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach(function(t){cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cc(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=>(0,Ne.jsx)(mt,ac(ac({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function dc(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 fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach(function(t){pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pc(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 hc=e=>(0,Ne.jsx)(mt,fc(fc({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function mc(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 gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach(function(t){bc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vc=e=>(0,Ne.jsx)(mt,gc(gc({},e),{},{children:(0,Ne.jsx)("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})}));function yc(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach(function(t){wc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wc(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 jc=e=>(0,Ne.jsx)(mt,Oc(Oc({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Sc(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 xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach(function(t){Pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pc(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 _c=e=>(0,Ne.jsx)(mt,xc(xc({},e),{},{children:(0,Ne.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 Cc(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 Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach(function(t){Ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ec(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=e=>(0,Ne.jsx)(mt,Ac(Ac({},e),{},{children:(0,Ne.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 kc(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 Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach(function(t){Mc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lc=e=>(0,Ne.jsx)(mt,Dc(Dc({},e),{},{children:(0,Ne.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 Ic(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 Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zc=e=>(0,Ne.jsx)(mt,Nc(Nc({},e),{},{children:(0,Ne.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function Fc(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 Vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach(function(t){Hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hc(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 qc=e=>(0,Ne.jsx)(mt,Vc(Vc({},e),{},{children:(0,Ne.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 Bc(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 Wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(t){Kc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uc=e=>(0,Ne.jsx)(mt,Wc(Wc({},e),{},{children:(0,Ne.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 Gc(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 Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach(function(t){Jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qc=e=>(0,Ne.jsx)(mt,Yc(Yc({},e),{},{children:(0,Ne.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 Zc(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 Xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach(function(t){$c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $c(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 eu=e=>(0,Ne.jsx)(mt,Xc(Xc({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function tu(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 nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach(function(t){ru(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ru(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 ou=e=>(0,Ne.jsx)(mt,nu(nu({},e),{},{children:(0,Ne.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 iu(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 lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(t){su(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function su(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 au=e=>(0,Ne.jsx)(mt,lu(lu({},e),{},{children:(0,Ne.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 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=e=>(0,Ne.jsx)(mt,uu(uu({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function pu(){const e=(0,o().useContext)(Sl);return e?.open?(0,Ne.jsx)(ns,{}):(0,Ne.jsx)(Xl,{})}function hu(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){const l=e(),s=l.length!==o.length||l.some((e,t)=>o[t]!==e);return s?(o=l,r=t(...l),!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r):r}return l.updateDeps=e=>{o=e},l}function mu(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const gu=(e,t)=>Math.abs(e-t)<1.01,bu=(e,t,n)=>{let r;return Object.assign(function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(r)}})};let vu;const yu=()=>{if(void 0!==vu)return vu;if("undefined"==typeof navigator)return vu=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return vu=!0;const e=navigator.maxTouchPoints;return vu="MacIntel"===navigator.platform&&void 0!==e&&e>0},Ou=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},wu=e=>e,ju=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Su=(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(Ou(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(Ou(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},xu={passive:!0},Pu="undefined"==typeof window||"onscrollend"in window,_u=(e,t)=>((e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&Pu;let l=0;const s=i?null:bu(o,()=>t(n(r),!1),e.options.isScrollingResetDelay),a=e=>()=>{l=n(r),null==s||s(),t(l,e)},c=a(!0),u=a(!1);return r.addEventListener("scroll",c,xu),i&&r.addEventListener("scrollend",u,xu),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u),null==s||s.cancel()}})(e,t,t=>{const{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r?-1:1):t.scrollTop}),Cu=(e,t,n)=>{if(n.options.useCachedMeasurements){const t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Au=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class Eu{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,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);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};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=>{var t;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wu,rangeExtractor:ju,onChange:()=>{},measureElement:Cu,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const r=e[t];void 0!==r&&(n[t]=r)}const r=this.options;let o=null,i=null,l=!1;if(void 0!==r&&r.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=r.count,s=n.count,a=this.getMeasurements(),c=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??a,u=e=>{return"object"==typeof(t=c[e])?t.key:t;var t},d=e>0?u(0):null,f=e>0?u(e-1):null;if(s!==e||e>0&&s>0&&(n.getItemKey(0)!==d||n.getItemKey(s-1)!==f)){l=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??a[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);const c=!0===n.followOnAppend?"auto":n.followOnAppend||null;c&&s>0&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||n.getItemKey(s-1)!==f)&&(s>e||function(e,t,n,r){if(0===t)return!1;const o=r(0),i=new Set;let l=0;for(;l<e;){const e=n(l);if(e===o)break;i.add(e),l++}const s=e-l;if(0===s||s>=t)return!1;for(let e=0;e<s;e++)if(r(e)!==n(l+e))return!1;for(let e=s;e<t;e++)if(i.has(r(e)))return!1;return!0}(e,s,u,n.getItemKey))&&(i=c)}}this.options=n,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let s=!1,a=0;if(o&&null!==this.scrollOffset){const[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:l}=this.options;let c=0;for(;c<r&&l(c)!==e;)c++;if(c<r){const e=n[c];if(e){const n=Math.max(0,e.start+t);i||n===this.scrollOffset||(a=n-this.scrollOffset,this.scrollOffset=n,s=!0)}}}(s||i)&&(this.pendingScrollAnchor=[s?o[0]:null,s?o[1]:0,i,a])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=hu(()=>(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.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n)return void this.maybeNotify();if(this.scrollElement=n,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)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,yu()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,xu),e.addEventListener("touchend",n,xu),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){const[e,n,o,i]=r;null===e||o||(yu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):("smooth"!==(null==(t=this.scrollState)?void 0:t.behavior)||gu(this.getScrollOffset()-i,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),o&&this.scrollToEnd({behavior:o})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;const{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,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.getMeasurementOptions=hu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,l,s)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=hu(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s},a)=>{var c;const u=this.itemSizeCache;if(!o)return this.measurementsCache=[],this._singleLaneMeasurements=null,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._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){const o=2*e;let i=null==(c=this._singleLaneMeasurements)?void 0:c.flat;if(!i||i.length<o){const e=new Float64Array(o);i&&d>0&&e.set(i.subarray(0,2*d)),i=e}const l=0===d?new Array(e):this._singleLaneMeasurements.items.slice();let a;if(0===d)a=t+n;else{const e=d-1;a=i[2*e]+i[2*e+1]+s}for(let t=d;t<e;t++){const e=r(t);l[t]=e;const n=u.get(e),o="number"==typeof n?n:this.options.estimateSize(t);i[2*t]=a,i[2*t+1]=o,a+=o+s}this._singleLaneMeasurements={flat:i,items:l};const f=function(e,t){const n=e.length;return new Proxy(e,{get(e,r,o){if("string"==typeof r){const o=r.charCodeAt(0);if(o>=48&&o<=57){const o=+r;if(Number.isInteger(o)&&o>=0&&o<n){let n=e[o];if("object"!=typeof n){const r=t[2*o];n=e[o]={index:o,key:n,start:r,size:t[2*o+1],end:r+t[2*o+1],lane:0}}return n}}if("length"===r)return n}return Reflect.get(e,r,o)}})}(l,i);return this.measurementsCache=f,f}const f=this.measurementsCache.slice(0,d),p=new Array(i).fill(void 0),h=new Float64Array(i);let m=0;for(let e=0;e<d;e++){const t=f[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,h[t.lane]=t.end)}for(let o=d;o<e;o++){const e=r(o),a=this.laneAssignments.get(o);let c,d;const g="estimate"===l||u.has(e);if(void 0!==a&&this.options.lanes>1){c=a;const e=p[c],r=void 0!==e?f[e]:void 0;d=r?r.end+s:t+n}else if(m===i){let e=0,t=h[0],n=p[0];for(let r=1;r<i;r++){const o=h[r];(o<t||o===t&&p[r]<n)&&(e=r,t=o,n=p[r])}c=e,d=t+s,g&&this.laneAssignments.set(o,c)}else c=o%this.options.lanes,d=t+n,g&&this.laneAssignments.set(o,c);const b=u.get(e),v="number"==typeof b?b:this.options.estimateSize(o),y=d+v;f[o]={index:o,start:d,size:v,end:y,key:e,lane:c},void 0===p[c]&&m++,p[c]=o,h[c]=y}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){const e=function(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,i=e[2*o];if(i<n)r=o+1;else{if(!(i>n))return o;t=o-1}}return r>0?r-1:0}(o,i,n);let r=e;const l=n+t;for(;r<i&&o[2*r]+o[2*r+1]<l;)r++;return{startIndex:e,endIndex:r}}let l=Ru(0,i,t=>e[t].start,n),s=l;if(1===r)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const o=Array(r).fill(0);for(;s<i&&o.some(e=>e<n+t);){const t=e[s];o[t.lane]=t.end,s++}const a=Array(r).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){const t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:l,endIndex:s}}(e,t,n,r,1===r&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hu(()=>{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);if(!this.isIndexInRange(t))return;const 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,r,o;if(!this.isIndexInRange(e))return;let i,l,s;const a=null==(n=this._singleLaneMeasurements)?void 0:n.flat;if(1===this.options.lanes&&null!=a)s=this.options.getItemKey(e),l=a[2*e],i=a[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;s=t.key,l=t.start,i=t.size}const c=this.itemSizeCache.get(s)??i,u=t-c;if(0!==u){const n="end"===this.options.anchorTo&&"smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,a=n?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,f=this.itemSizeCache.has(s)?l+c<=d&&"backward"!==this.scrollDirection:l<d,p="smooth"!==(null==(o=this.scrollState)?void 0:o.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:s,start:l,size:i,end:l+i,lane:0},u,this):f);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(s,t),this.itemSizeCacheVersion++;let h=!1;n?h=this.applyScrollAdjustment(this.getTotalSize()-a):p&&(h=this.applyScrollAdjustment(u)),this.notify(h),this._retryClampedAdjustment()}},this.getVirtualItems=hu(()=>[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=>{var t;const n=this.getMeasurements();if(0===n.length)return;const r=null==(t=this._singleLaneMeasurements)?void 0:t.flat,o=1===this.options.lanes&&null!=r,i=Ru(0,n.length-1,o?e=>r[2*e]:e=>mu(n[e]).start,e);return mu(n[i])},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.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,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"}={})=>{this._iosDeferredAdjustment=0;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"}={})=>{this._iosDeferredAdjustment=0,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.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;const n=this.getMeasurements();let r;if(0===n.length)r=this.options.paddingStart;else if(1===this.options.lanes){const o=n.length-1,i=null==(e=this._singleLaneMeasurements)?void 0:e.flat;r=null!=i?i[2*o]+i[2*o+1]:(null==(t=n[o])?void 0:t.end)??0}else{const e=Array(this.options.lanes).fill(null);let t=n.length-1;for(;t>=0&&e.some(e=>null===e);){const r=n[t];null===e[r.lane]&&(e[r.lane]=r.end),t--}r=Math.max(...e.filter(e=>null!==e))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(yu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{const n=this.getScrollOffset()+this.scrollAdjustments+e,r=this.scrollElement,o=null!==r&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==o&&n>o+.5?{target:n,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}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&&gu(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,n){const e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Ru=(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},ku="undefined"!=typeof document?o().useLayoutEffect:o().useEffect;function Du(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const i=o().useReducer(e=>e+1,0)[1],l=o().useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});l.current.enabled=t,l.current.mode=n;const s=o().useRef(!1),a=e=>{const t=l.current;if(!t.enabled||!t.container)return;const n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;const r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},c=e=>{const t=l.current;if(!t.enabled||!t.container)return;a(e);const n=!!e.options.horizontal,r="transform"===t.mode,o=n?"left":"top",i=e.options.scrollMargin,s=e.getVirtualItems();for(const l of s){const s=l.start-i,a=e.elementsCache.get(l.key);a&&t.lastPositions.get(a)!==s&&(t.lastPositions.set(a,s),r?a.style.transform=n?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:a.style[o]=`${s}px`)}},u={...r,onChange:(t,n)=>{var o;const a=l.current;let u=!0;if(a.enabled){c(t);const e=t.range,n=a.prevRange;u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex),u&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n&&!s.current?(0,pr.flushSync)(i):i()),null==(o=r.onChange)||o.call(r,t,n)}},[d]=o().useState(()=>{const e=new Eu(u),t=e.measureElement;return e.measureElement=e=>{s.current=!0;try{t(e)}finally{s.current=!1}},Object.assign(e,{containerRef:t=>{const n=l.current;if(n.container=t,n.lastSize=null,t&&n.enabled){const r=e.getTotalSize();n.lastSize=r;const o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return d.setOptions(u),ku(()=>d._didMount(),[]),ku(()=>(a(d),d._willUpdate())),ku(()=>{c(d)}),d}({observeElementRect:Su,observeElementOffset:_u,scrollToFn:Au,...e})}const Mu=["children","fillEvenly","classes","className"];function Lu(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 Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach(function(t){Nu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nu(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 Tu=(0,o().forwardRef)(function(e,t){let{children:n,fillEvenly:r,classes:o,className: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,Mu);return(0,Ne.jsx)("div",Iu(Iu({ref:t,className:be()("buttonsGroup-module__root__ajMji",r&&"buttonsGroup-module__fill-evenly__nNjz0",i,o?.root)},l),{},{children:n}))});t();const zu=(0,o().createContext)();class Fu{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Vu={},Hu=(e,t,n,r)=>{Ku(n)&&Vu[n]||(Ku(n)&&(Vu[n]=new Date),((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);Ku(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,n,r))},qu=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Bu=(e,t,n)=>{e.loadNamespaces(t,qu(e,n))},Wu=(e,t,n,r)=>{if(Ku(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Bu(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,qu(e,r))},Ku=e=>"string"==typeof e,Uu={t:(e,t)=>{if(Ku(t))return t;if("object"==typeof(n=t)&&null!==n&&Ku(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},Gu=()=>()=>{},Yu=(t,n={})=>{const{i18n:r}=n,{i18n:i,defaultNS:l}=(0,o().useContext)(zu)||{},s=r||i||de;s&&!s.reportNamespaces&&(s.reportNamespaces=new Fu),s||Hu(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const a=(0,o().useMemo)(()=>({...fe,...s?.options?.react,...n}),[s,n]),{useSuspense:c,keyPrefix:u}=a,d=t||l||s?.options?.defaultNS,f=Ku(d)?[d]:d||["translation"],p=(0,o().useMemo)(()=>f,f);s?.reportNamespaces?.addUsedNamespaces?.(p);const h=(0,o().useRef)(0),m=(0,o().useCallback)(e=>{if(!s)return Gu;const{bindI18n:t,bindI18nStore:n}=a,r=()=>{h.current+=1,e()};return t&&s.on(t,r),n&&s.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>s.off(e,r)),n&&n.split(" ").forEach(e=>s.store.off(e,r))}},[s,a]),g=(0,o().useRef)(),b=(0,o().useCallback)(()=>{if(!s)return Uu;const e=!(!s.isInitialized&&!s.initializedStoreOnce)&&p.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}}):(Hu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,a)),t=n.lng||s.language,r=h.current,o=g.current;if(o&&o.ready===e&&o.lng===t&&o.keyPrefix===u&&o.revision===r)return o;const i={t:s.getFixedT(t,"fallback"===a.nsMode?p:p[0],u,{scopeNs:p}),ready:e,lng:t,keyPrefix:u,revision:r};return g.current=i,i},[s,p,u,a,n.lng]),[v,y]=(0,o().useState)(0),{t:O,ready:w}=(0,e().useSyncExternalStore)(m,b,b);(0,o().useEffect)(()=>{if(s&&!w&&!c){const e=()=>y(e=>e+1);n.lng?Wu(s,n.lng,p,e):Bu(s,p,e)}},[s,n.lng,p,w,c,v]);const j=s||{},S=(0,o().useRef)(null),x=(0,o().useRef)(),P=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},_=(0,o().useMemo)(()=>{const e=j,t=e&&`${(n=e).language}|${n.resolvedLanguage}|${n.languages?.join(",")}`;var n;let r=e;e&&(S.current&&S.current.__original===e?x.current!==t?(r=P(e),S.current=r,x.current=t):r=S.current:(r=P(e),S.current=r,x.current=t));const o=w||c?O:(...e)=>(Hu(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),O(...e)),i=[o,r,w];return i.t=o,i.i18n=r,i.ready=w,i},[O,j,w,j.resolvedLanguage,j.language,j.languages]);if(s&&c&&!w){let e=!1;try{e=!1}catch(e){}throw e&&Hu(s,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{const t=()=>e();n.lng?Wu(s,n.lng,p,t):Bu(s,p,t)})}return _},Ju=()=>{const{t:e,i18n:t}=Yu();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Qu="infiniteListFooter-module__footer__f8lZM";function Zu({loading:e=!1,hasMore:t=!1,empty:n=!1,sentinelRef:r}){const{t:o}=Ju(),i=n&&!e&&!t;return e||i||t?(0,Ne.jsxs)(Ne.Fragment,{children:[e&&(0,Ne.jsx)("div",{className:Qu,role:"status",children:(0,Ne.jsx)(pt,{variant:"caption",children:o("nntc_ui.common.list.loading")})}),i&&(0,Ne.jsx)("div",{className:Qu,role:"status",children:(0,Ne.jsx)(pt,{variant:"caption",children:o("nntc_ui.common.list.notFound")})}),t&&(0,Ne.jsx)("div",{ref:r,className:"infiniteListFooter-module__sentinel__O1XNW","aria-hidden":!0})]}):null}function Xu({scrollRef:e,hasMore:t=!1,loading:n=!1,onLoadMore:r,itemCount:i,resetKey:l="",enabled:s=!0}){const a=(0,o().useRef)(null),c=(0,o().useRef)(!1),u=(0,o().useRef)(!1),d=(0,o().useRef)(r),f=(0,o().useRef)(t),p=(0,o().useRef)(n),h=(0,o().useRef)(s);d.current=r,f.current=t,p.current=n,h.current=s;const m=`${i}:${n}:${t}:${s}:${l}`,g=(0,o().useRef)(m);g.current!==m&&(g.current=m,c.current=!1,u.current=!1);const b=(0,o().useCallback)(()=>{const t=e.current;h.current&&d.current&&f.current&&!p.current&&!c.current&&t&&0!==t.clientHeight&&(c.current=!0,d.current())},[e]),v=(0,o().useCallback)(()=>{const t=e.current;t&&0!==t.clientHeight&&t.scrollHeight<=t.clientHeight+1&&b()},[b,e]);return(0,o().useLayoutEffect)(()=>{s&&t&&r&&!n&&v()},[s,t,r,n,i,l,v]),(0,o().useEffect)(()=>{const n=e.current;if(!(s&&t&&r&&n&&"undefined"!=typeof ResizeObserver))return;const o=new ResizeObserver(()=>{v()});return o.observe(n),()=>o.disconnect()},[s,t,r,i,l,v,e]),(0,o().useEffect)(()=>{const n=e.current,o=a.current;if(!(s&&t&&r&&n&&o))return;const i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)?u.current||(u.current=!0,b()):u.current=!1},{root:n,rootMargin:"48px"});return i.observe(o),()=>i.disconnect()},[s,t,r,i,l,n,b,e]),a}var $u="menu-module__divider__kik9c",ed="menu-module__extraLarge__RIQUR",td="menu-module__item__DO2AJ",nd="menu-module__item-actions__ecU8y",rd="menu-module__item-description__BxxnF",od="menu-module__item-disabled__E7Z4s",id="menu-module__item-icon___HDe4",ld="menu-module__item-selected__m9VFe",sd="menu-module__item-text-block__zgpGT",ad="menu-module__item-title__gcK7P",cd="menu-module__item-title-top__PSYWj",ud="menu-module__large__jYm_Q",dd="menu-module__medium__Jev6c",fd="menu-module__root__pR_5h",pd="menu-module__small__uGqFV",hd="menu-module__state-layer__m8uMf",md="menu-module__virtual-item___RvYR",gd="menu-module__virtual-space__SbY08",bd="menu-module__virtualized__PoNVi";const vd=["items","componentSize","descriptionPosition","virtualize","maxHeight","hasMore","loadingMore","onLoadMore","classes","className","style"];function yd(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 Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach(function(t){wd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jd={small:4,medium:8,large:0,extraLarge:0},Sd=(0,o().forwardRef)(function(e,t){let{items:n,componentSize:r="medium",descriptionPosition:i="right",virtualize:l=!1,maxHeight:s=250,hasMore:a=!1,loadingMore:u=!1,onLoadMore:d,classes:f,className:p,style: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,vd);const g=(0,o().useRef)(null),b=Be([t,g]),v=jd[r],y=l&&!!d,O=(0,o().useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]),w=Du({count:l?n.length:0,enabled:l,getScrollElement:()=>g.current,estimateSize:e=>function(e,t){return t&&"divider"!==t.type?"small"===e?28:"large"===e||"extraLarge"===e?48:36:32}(r,n[e]),overscan:6,paddingStart:l?v:0,paddingEnd:l?v:0,getItemKey:e=>{const t=n[e];return t?"divider"===t.type?`divider-${t.name??""}-${e}`:`item-${t.name}-${e}`:e}}),j=Xu({scrollRef:g,hasMore:a,loading:u,onLoadMore:d,itemCount:n.length,enabled:y}),S=(e,t)=>{const n="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,Ne.jsx)(n,{tabIndex:-10,className:be()(td,e.selected?ld:void 0,e.disabled?od:void 0,f?.item,e.selected?f?.itemSelected:void 0,e.disabled?f?.itemDisabled:void 0),onClick:e.disabled?void 0:O(e),title:e.name,children:(0,Ne.jsxs)("span",{className:be()(hd),children:[!!e.icon&&(0,Ne.jsx)("span",{className:be()(id,f?.itemIcon,e.selected?f?.itemSelectedIcon:void 0,e.disabled?f?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===i&&e.description?(0,Ne.jsxs)("span",{className:be()(sd),children:[(0,Ne.jsx)("span",{className:be()(cd,ad,f?.itemTitle,e.selected?f?.itemSelectedTitle:void 0,e.disabled?f?.itemDisabledTitle:void 0),children:e.name}),(0,Ne.jsx)("span",{className:be()(rd,f?.itemDescription,e.selected?f?.itemSelectedDescription:void 0,e.disabled?f?.itemDisabledDescription:void 0),children:e.description})]}):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("span",{className:be()(ad,f?.itemTitle,e.selected?f?.itemSelectedTitle:void 0,e.disabled?f?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,Ne.jsx)("span",{className:be()(rd,f?.itemDescription,e.selected?f?.itemSelectedDescription:void 0,e.disabled?f?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,Ne.jsx)("div",{className:be()(nd,f?.itemActions,e.selected?f?.itemSelectedActions:void 0,e.disabled?f?.itemDisabledActions:void 0),children:(0,Ne.jsx)(Tu,{children:e.subButtons.map((e,t)=>(0,Ne.jsx)(He,{variant:e.variant,componentSize:r,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,Ne.jsx)("div",{className:be()($u,f?.divider),children:e.name},`menu-divider-${e.name}-${t}`)};if(!l)return(0,Ne.jsxs)("div",Od(Od({ref:b,className:be()(fd,c[r],p,f?.root),style:h},m),{},{children:[" ",n.map((e,t)=>S(e,t))]}));const x=w.getVirtualItems();return(0,Ne.jsxs)("div",Od(Od({ref:b,className:be()(fd,c[r],bd,"styledScroll",p,f?.root),style:Od({maxHeight:s},h)},m),{},{children:[x.length>0?(0,Ne.jsx)("div",{className:gd,style:{height:w.getTotalSize()},children:x.map(e=>{const t=n[e.index];return t?(0,Ne.jsx)("div",{"data-index":e.index,ref:w.measureElement,className:md,style:{transform:`translateY(${e.start}px)`},children:S(t,e.index)},e.key):null})}):(0,Ne.jsx)("div",{style:{paddingTop:v,paddingBottom:v},children:n.map((e,t)=>S(e,t))}),(0,Ne.jsx)(Zu,{loading:u,hasMore:a&&y,sentinelRef:j})]}))});function xd(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:i,hasMore:l,loadingMore:s,onLoadMore:a,classes:c}=e,u=(0,o().useContext)(Sl);return(0,Ne.jsx)(Sd,{virtualize:!0,maxHeight:250,componentSize:n,classes:c?.menu,hasMore:l,loadingMore:s,onLoadMore:a,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:()=>{i(e),u&&u.setOpen(!1)}})})}const Pd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","loadingMore","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function _d(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach(function(t){Ad(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ad(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ed=(0,o().forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:i,fullWidth:l,label:s,error:a,placeholder:c,items:u,onLoadMore:d,hasMore:f=!1,loadingMore:p=!1,defaultValue:h,onValueChange:m,selected:g,chips:b,classes:v,disabled:y,id:O}=e,w=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,Pd),j=void 0!==d,S=(0,o().useMemo)(()=>j?u.filter(e=>"divider"!==e.type):u,[j,u]),x=h&&!g,[P,_]=(0,o().useState)(x?u.find(e=>"item"===e.type&&e.value===h):void 0),C=x?P:g,A=(0,o().useRef)(null),E=(0,o().useRef)(null),R=(0,o().useCallback)(e=>{e.preventDefault(),y||E?.current?.click()},[E]),k=e=>{x&&_(e),m?.(e)};(0,o().useEffect)(()=>{if(j||!C)return;const e=u.find(e=>"item"===e.type&&e.value===C.value);e||k(e)},[j,u,C]);const D=O??Tt(),M=!!a&&!s;return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:l,label:s,error:a,inputId:D,onLabelClick:R,hasStartIcon:!!i||!!C?.icon,hasArrow:!0,hasErrorIcon:M,chipsMode:b&&!!C,classes:Cd(Cd({},v),{},{wrapper:be()(i?"select-module__with-icon__fSXNX":void 0,C?.icon?"select-module__with-item-icon__DQCJ6":void 0,v?.wrapper)}),children:[(0,Ne.jsx)("input",Cd(Cd({ref:Be([A,t]),id:D,className:be()(Hi,"select-module__input__wOpYo",v?.input),placeholder:b&&C?void 0:c},w),{},{value:b?"":C?.name??"",onChange:()=>{},onClick:R,disabled:y})),b&&!!C&&(0,Ne.jsx)("span",{className:be()(Fi,v?.chips),children:(0,Ne.jsx)(Ol,{componentSize:r,disabled:y,onClick:()=>E?.current?.click(),onRemove:()=>k(void 0),children:C.name})}),!!i&&(0,Ne.jsx)("span",{onClick:R,className:be()("select-module__icon___B0Xg",v?.icon),children:i}),!!C?.icon&&(0,Ne.jsx)("span",{onClick:R,className:be()("select-module__item-icon__yL747",v?.itemIcon),children:C?.icon}),(0,Ne.jsx)("span",{onClick:R,className:be()(zi,v?.arrow),children:(0,Ne.jsx)(pu,{})}),M&&a&&(0,Ne.jsx)(Xi,{error:a,componentSize:r,className:v?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",classes:Cd({content:be()("select-module__popover-content__mnDVQ",v?.popoverContent)},v?.popover),containerOffset:4,description:(0,Ne.jsx)(xd,{items:S,classes:v,componentSize:r,selectedValue:C?.value,changeSelectedItem:k,hasMore:f,loadingMore:p,onLoadMore:d}),children:(0,Ne.jsx)("div",{ref:E,className:be()("select-module__popover-target__sZm8R")})})]})});var Rd=n(353),kd=n.n(Rd),Dd="calendarPopover-module__button__OeuOB",Md="calendarPopover-module__buttons-container__AfhIW",Ld="calendarPopover-module__calendar-container__oaYLG",Id="calendarPopover-module__cell__SRzca",Nd="calendarPopover-module__cell-circle__g39W8",Td="calendarPopover-module__cell-data__JaucX",zd="calendarPopover-module__cell-selection__HAjxx",Fd="calendarPopover-module__cell-selection-first__HX9vJ",Vd="calendarPopover-module__cell-selection-last__fKUk_",Hd="calendarPopover-module__cells-container__FRgCG",qd="calendarPopover-module__date-time-mode__VMAyh",Bd="calendarPopover-module__medium__z28wH",Wd="calendarPopover-module__month__PliR3",Kd="calendarPopover-module__month-cell-selection__qFg7g",Ud="calendarPopover-module__month-cell-selection-first__sP5vu",Gd="calendarPopover-module__month-cell-selection-last__qmLPc",Yd="calendarPopover-module__month-view__Lhg3K",Jd="calendarPopover-module__navigation-arrow__Iq9ex",Qd="calendarPopover-module__navigation-container__MnZVh",Zd="calendarPopover-module__navigation-title__U0go2",Xd="calendarPopover-module__navigation-value__abf_Q",$d="calendarPopover-module__root__WSPPf",ef="calendarPopover-module__small__vty_X",tf="calendarPopover-module__time-container___TvPa",nf="calendarPopover-module__time-divider__xebBR",rf="calendarPopover-module__time-selection-marker__WznxQ",of="calendarPopover-module__year__DgFQi";const lf=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function sf(e){const{values:t,selectedValue:n,onSelect:r}=e,i=t.length,l=36*(i+n),s=(0,o().useRef)(null),a=(0,o().useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,o().useEffect)(()=>{const e=s.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,o().useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,o().useCallback)(()=>{const e=s.current;if(!e)return;const t=Math.round(e.scrollTop/36),o=c(t);o!==n&&r(o),(t<i||t>=2*i)&&(e.scrollTop=36*(i+o))},[c,r,n,i]),d=(0,o().useCallback)(e=>()=>{const t=s.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),r(e)):r(e)},[r,i]);return(0,Ne.jsx)("div",{ref:s,className:be()("timeWheelColumn-module__time-wheel__fZDBM"),onScroll:u,tabIndex:-1,children:a.map((e,t)=>(0,Ne.jsx)("button",{type:"button",className:be()("timeWheelColumn-module__time-wheel-button__XHOTH","timeWheelColumn-module__time-wheel-item__YAUHz",e===n&&"timeWheelColumn-module__time-wheel-item-active__fHOGJ"),onClick:d(e),children:(0,Ne.jsx)(pt,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function af(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:i="date",initStartDate:l,initEndDate:s,changeDates:a,onClear:c,useUtc:d=!1,classes:f}=e,p=t??kd(),h="dateTime"===i&&!r,[m,g]=(0,o().useState)("year"===i?"yearsRange":"month"),[b,v]=(0,o().useState)(()=>{if(l){const e=p(l);return{year:e.year(),month:e.month()}}const e=p();return{year:e.year(),month:e.month()}}),[y,O]=(0,o().useState)(l?h?p(l).second(0).millisecond(0).valueOf():p(l).startOf("D").valueOf():void 0),[w,j]=(0,o().useState)(s?p(s).startOf("D").valueOf():void 0),[S,x]=(0,o().useState)(h&&l?p(l).hour():0),[P,_]=(0,o().useState)(h&&l?p(l).minute():0),C=(0,o().useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),A=(0,o().useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),E=(0,o().useMemo)(()=>y?p(y).startOf("D").valueOf():void 0,[y,p]),R=(0,o().useMemo)(()=>w?p(w).startOf("D").valueOf():void 0,[w,p]),k=(0,o().useMemo)(()=>E?p(E).startOf("M").valueOf():void 0,[E,p]),D=(0,o().useMemo)(()=>R?p(R).startOf("M").valueOf():void 0,[R,p]),M=(0,o().useMemo)(()=>E?p(E).year():void 0,[E,p]),L=(0,o().useMemo)(()=>R?p(R).year():void 0,[R,p]),I=(0,o().useMemo)(()=>lf(p,b.year,b.month,1,d).startOf("month"===m?"M":"y"),[b,m,p,d]),N=I.daysInMonth();let T=I.startOf("M").day()-1;T<0&&(T=6),(0,o().useEffect)(()=>y||w?"year"===i?!r&&y?void a(p(y).format("YYYY")):r&&y&&w?void a(p(y).format("YYYY"),p(w).format("YYYY")):void 0:void(h&&y?a(p(y).second(0).millisecond(0).format()):r||!y?r&&y&&w&&a(p(y).format(),p(w).format()):a(p(y).format())):(c?.(),void a()),[y,w,r,i,h,p,a,c]);const z=(0,o().useCallback)((e,t,n)=>p(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[p]);(0,o().useEffect)(()=>{if(!h||!y)return;const e=z(y,S,P);e!==y&&O(e)},[h,y,S,P,z]);const F=(0,o().useCallback)(e=>()=>{const t=lf(p,b.year,b.month,1,d),n="yearsRange"===m?20*e:e,r="month"===m?"month":"year",o=t.add(n,r);v({month:o.month(),year:o.year()})},[m,b,p,d]),V=(0,o().useCallback)(()=>{"year"!==i&&g("month"===m?"year":"year"===m?"yearsRange":"month")},[m,i]),H=(0,o().useCallback)(e=>()=>{v({month:e.month(),year:e.year()}),g("month")},[]),q=(0,o().useCallback)(e=>()=>{const t=lf(p,e,0,1,d).startOf("y").valueOf();if(!r)return O(h&&E===t?void 0:h||y!==t?h?z(t,S,P):t:void 0),void j(void 0);y&&w?t===y?O(void 0):(t===w||O(t),j(void 0)):y?t===y?O(void 0):t<y?(j(y),O(t)):j(t):w?t===w?j(void 0):t<w?O(t):(O(w),j(t)):O(t)},[z,w,h,r,S,P,y,E,p,d]),B=(0,o().useMemo)(()=>{const e=I.year();return 20*Math.floor(e/20)},[I]),W=(0,o().useCallback)(e=>()=>{if(!r)return O(y===e?void 0:e),void j(void 0);y&&w?e===y?O(void 0):(e===w||O(e),j(void 0)):y?e===y?O(void 0):e<y?(j(y),O(e)):j(e):w?e===w?j(void 0):e<w?O(e):(O(w),j(e)):O(e)},[y,w,r]),K=(0,o().useCallback)(e=>{O(void 0),j(void 0),h&&(x(0),_(0)),e.currentTarget.blur()},[h]),U=(0,o().useCallback)(e=>{const t=p();v({year:t.year(),month:t.month()}),e.currentTarget.blur()},[p]);return(0,Ne.jsxs)("div",{className:be()($d,u[n],h&&qd,f?.root),children:[(0,Ne.jsxs)("div",{className:be()(Ld,"month"===m&&Yd),children:[(0,Ne.jsx)("div",{className:be()(Md,f?.buttonsContainer),children:(0,Ne.jsxs)(Tu,{fillEvenly:!0,children:[(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:K,children:"Сбросить"}),"year"!==i&&(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сегодня"})]})}),(0,Ne.jsxs)("div",{className:be()(Qd,f?.navigationContainer),children:[(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Jd,f?.navigationArrow),onClick:F(-1),"aria-label":"Предыдущий период",children:(0,Ne.jsx)(zs,{})}),(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Xd,f?.navigationValue),onClick:V,children:(0,Ne.jsxs)(pt,{variant:"subtitle1",className:be()(Zd,f?.navigationTitle),children:["month"===m&&I.format("MMMM YYYY"),"year"===m&&I.format("YYYY"),"yearsRange"===m&&`${B} - ${B+19}`]})}),(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Jd,f?.navigationArrow),onClick:F(1),"aria-label":"Следующий период",children:(0,Ne.jsx)(qs,{})})]}),(0,Ne.jsxs)("div",{className:be()(Hd,f?.cellsContainer),children:["yearsRange"===m&&(0,Ne.jsx)(Ne.Fragment,{children:[...Array(20)].map((e,t)=>{const n=B+t,o="year"===i?q(n):()=>{v({month:0,year:n}),g("year")},l="year"===i&&void 0!==M&&(n===M||n===L);let s=!1,a=!1,c=!1;return void 0!==M&&(r?void 0!==L&&(M===L?n===M&&(s=!0):n>=M&&n<=L&&(s=!0,n===M?a=!0:n===L&&(c=!0))):"year"!==i&&n===M&&(s=!0)),(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,of,f?.cell,f?.year),onClick:o,children:[l&&(0,Ne.jsx)("span",{className:be()(Nd,f?.cellCircle)}),s&&(0,Ne.jsx)("span",{className:be()(zd,f?.cellSelection,a&&Fd,a&&f?.cellSelectionFirst,c&&Vd,c&&f?.cellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===m&&(0,Ne.jsx)(Ne.Fragment,{children:[...Array(12)].map((e,t)=>{const n=I.add(t,"M"),o=n.valueOf();let l=!1,s=!1,a=!1;return r&&"year"!==i&&void 0!==k&&void 0!==D?k===D?o===k&&(l=!0):o>=k&&o<=D&&(l=!0,o===k?s=!0:o===D&&(a=!0)):r||"year"===i||void 0===k?l=r?void 0!==k&&void 0!==D&&o>=k&&o<=D:void 0!==k&&o===k:o===k&&(l=!0),(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,Wd,f?.cell,f?.month),onClick:H(n),children:[l&&(0,Ne.jsx)("span",{className:be()(Kd,f?.monthCellSelection,s&&Ud,s&&f?.monthCellSelectionFirst,a&&Gd,a&&f?.monthCellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===m&&(0,Ne.jsxs)(Ne.Fragment,{children:[[...Array(T)].map((e,t)=>(0,Ne.jsx)("div",{className:be()(Id,f?.cell)},`empty-cell-${t}`)),[...Array(N)].map((e,t)=>{const n=I.add(t,"d").valueOf();return(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,f?.cell),onClick:W(n),children:[(n===E||n===R)&&(0,Ne.jsx)("span",{className:be()(Nd,f?.cellCircle)}),void 0!==E&&void 0!==R&&n>=E&&n<=R&&(0,Ne.jsx)("span",{className:be()(zd,f?.cellSelection,n===E&&Fd,n===E&&f?.cellSelectionFirst,n===R&&Vd,n===R&&f?.cellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),h&&(0,Ne.jsxs)("div",{className:be()(tf),children:[(0,Ne.jsx)("div",{className:be()(rf)}),(0,Ne.jsx)(sf,{values:C,selectedValue:S,onSelect:x}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(nf),children:":"}),(0,Ne.jsx)(sf,{values:A,selectedValue:P,onSelect:_})]})]})}const cf=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach(function(t){ff(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}function ff(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 pf=(0,o().forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:i="date",defaultOpen:l=!1,componentSize:s="medium",fullWidth:a,label:c,error:u,placeholder:d,defaultValues:f,values:p,onClear:h,onValueChange:m,dayjs:g,useUtc:b=!1,classes:v,id:y,onFocus:O,onBlur:w}=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,cf);const S=g??kd(),[x,P]=(0,o().useState)(void 0!==p?p:f),[_,C]=(0,o().useState)(l),A=(0,o().useRef)(x);(0,o().useEffect)(()=>{void 0!==p&&P(p)},[p]),(0,o().useEffect)(()=>{void 0===p&&void 0!==f&&P(f)},[f,p]),(0,o().useEffect)(()=>{A.current=x},[x]);const E=r&&"dateTime"===i?"date":i,R=(0,o().useRef)(null),k=ht(),D=y??k,M=(0,o().useCallback)(e=>{C(!0),O?.(e)},[O]),L=(0,o().useCallback)(e=>{_||w?.(e)},[_,w]),I=(0,o().useCallback)(e=>{if(C(e),!e){const e=A.current;void 0!==e&&m?.(e);const t=R.current;if(!t)return;if(document.activeElement===t)return void t.blur();w?.({target:t,currentTarget:t})}},[w,m]),N=(0,o().useCallback)(()=>{R.current?.focus()},[]),T=!!u&&!c,z=(0,o().useCallback)((e,t)=>{const n=r?[e,t]:[e],o=A.current,i=(o?.length??0)===n.length&&o?.every((e,t)=>e===n[t]);i||(A.current=n,P(n))},[r]);return(0,Ne.jsxs)(Ui,{variant:n,componentSize:s,fullWidth:a,label:c,error:u,inputId:D,hasArrow:!0,hasErrorIcon:T,classes:v,children:[(0,Ne.jsx)("input",df(df({ref:Be([R,t]),id:D,className:be()(Hi,"dateTime-module__input__kmAiU",v?.input),placeholder:d},j),{},{value:x?.[0]?r&&x[1]?`${S(x[0]).format("year"===E?"YYYY":"DD.MM.YYYY")} - ${S(x[1]).format("year"===E?"YYYY":"DD.MM.YYYY")}`:`${S(x[0]).format("year"===E?"YYYY":"dateTime"===E?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:M,onBlur:L})),(0,Ne.jsx)("span",{onClick:N,className:be()(zi,v?.icon),children:(0,Ne.jsx)(Qs,{})}),T&&u&&(0,Ne.jsx)(Xi,{error:u,componentSize:s,className:v?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",open:_,onOpenChange:I,classes:df(df({},v?.popover),{},{content:"dateTime-module__popover-content__oLd5U"}),containerOffset:4,description:(0,Ne.jsx)(af,{dayjs:S,useUtc:b,classes:v,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:r,valueType:E,initStartDate:x?.[0],initEndDate:x?.[1],changeDates:z,onClear:h}),children:(0,Ne.jsx)("div",{className:be()("dateTime-module__popover-target__KDRaS")})})]})});function hf(){return(hf=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 mf(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 gf(e){var t=(0,o().useRef)(e),n=(0,o().useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var bf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},vf=function(e){return"touches"in e},yf=function(e){return e&&e.ownerDocument.defaultView||self},Of=function(e,t,n){var r=e.getBoundingClientRect(),o=vf(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:bf((o.pageX-(r.left+yf(e).pageXOffset))/r.width),top:bf((o.pageY-(r.top+yf(e).pageYOffset))/r.height)}},wf=function(e){!vf(e)&&e.preventDefault()},jf=o().memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,i=mf(e,["onMove","onKey","onEnd"]),l=(0,o().useRef)(null),s=gf(t),a=gf(n),c=gf(r),u=(0,o().useRef)(null),d=(0,o().useRef)(!1),f=(0,o().useMemo)(function(){var e=function(e){wf(e),(vf(e)?e.touches.length>0:e.buttons>0)&&l.current?s(Of(l.current,e,u.current)):(n(!1),c())},t=function(){n(!1),c()};function n(n){var r=d.current,o=yf(l.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=l.current;if(r&&(wf(t),!function(e,t){return t&&!vf(e)}(t,d.current)&&r)){if(vf(t)){d.current=!0;var o=t.changedTouches||[];o.length&&(u.current=o[0].identifier)}r.focus(),s(Of(r,t,u.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&c()},n]},[a,s,c]),p=f[0],h=f[1],m=f[2],g=f[3];return(0,o().useEffect)(function(){return g},[g]),o().createElement("div",hf({},i,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:l,onKeyDown:h,onKeyUp:m,tabIndex:0,role:"slider"}))}),Sf=function(e){return e.filter(Boolean).join(" ")},xf=function(e){var t=e.color,n=e.left,r=e.top,i=void 0===r?.5:r,l=Sf(["react-colorful__pointer",e.className]);return o().createElement("div",{className:l,style:{top:100*i+"%",left:100*n+"%"}},o().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Pf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},_f=(Math.PI,function(e){return If(Cf(e))}),Cf=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?Pf(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?Pf(parseInt(e.substring(6,8),16)/255,2):1}},Af=function(e){return Lf(Df(e))},Ef=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Pf(e.h),s:Pf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Pf(o/2),a:Pf(r,2)}},Rf=function(e){var t=Ef(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},kf=function(e){var t=Ef(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Df=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),s=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),c=i%6;return{r:Pf(255*[r,s,l,l,a,r][c]),g:Pf(255*[a,r,r,s,l,l][c]),b:Pf(255*[l,l,a,r,r,s][c]),a:Pf(o,2)}},Mf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Lf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Mf(Pf(255*o)):"";return"#"+Mf(t)+Mf(n)+Mf(r)+i},If=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),s=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:o}},Nf=o().memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,i=Sf(["react-colorful__hue",e.className]);return o().createElement("div",{className:i},o().createElement(jf,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:bf(t+360*e.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":Pf(t),"aria-valuemax":"360","aria-valuemin":"0"},o().createElement(xf,{className:"react-colorful__hue-pointer",left:t/360,color:Rf({h:t,s:100,v:100,a:1})})))}),Tf=o().memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,i={backgroundColor:Rf({h:t.h,s:100,v:100,a:1})};return o().createElement("div",{className:"react-colorful__saturation",style:i},o().createElement(jf,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:bf(t.s+100*e.left,0,100),v:bf(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+Pf(t.s)+"%, Brightness "+Pf(t.v)+"%"},o().createElement(xf,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Rf(t)})))}),zf=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ff=function(e,t){return e.toLowerCase()===t.toLowerCase()||zf(Cf(e),Cf(t))};function Vf(e,t,n,r){var i=gf(n),l=gf(r),s=(0,o().useState)(function(){return e.toHsva(t)}),a=s[0],c=s[1],u=(0,o().useRef)({color:t,hsva:a}),d=(0,o().useRef)(!1);(0,o().useEffect)(function(){if(!e.equal(t,u.current.color)){var n=e.toHsva(t);u.current={hsva:n,color:t},c(n),d.current=!1}},[t,e]),(0,o().useEffect)(function(){var t;zf(a,u.current.hsva)||e.equal(t=e.fromHsva(a),u.current.color)||(u.current={hsva:a,color:t},i(t),d.current=!0)},[a,e,i]);var f=(0,o().useCallback)(function(e){c(function(t){return Object.assign({},t,e)})},[]),p=(0,o().useCallback)(function(){d.current&&(d.current=!1,l(u.current.color))},[l]);return[a,f,p]}var Hf="undefined"!=typeof window?o().useLayoutEffect:o().useEffect,qf=new WeakMap,Bf=function(e){Hf(function(){var t=e.current;if("undefined"!=typeof document&&t){var r=t.getRootNode?t.getRootNode():t.ownerDocument,o=r&&("head"in r||"host"in r)?r:t.ownerDocument;if(!qf.has(o)){var i="head"in o?o.head:o,l=(i.ownerDocument||document).createElement("style");l.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}';var s=n.nc;s&&l.setAttribute("nonce",s),qf.set(o,l),i.appendChild(l)}}},[])},Wf=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,l=e.onChange,s=e.onChangeEnd,a=mf(e,["className","colorModel","color","onChange","onChangeEnd"]),c=(0,o().useRef)(null);Bf(c);var u=Vf(n,i,l,s),d=u[0],f=u[1],p=u[2],h=Sf(["react-colorful",t]);return o().createElement("div",hf({},a,{ref:c,className:h}),o().createElement(Tf,{hsva:d,onChange:f,onChangeEnd:p}),o().createElement(Nf,{hue:d.h,onChange:f,onChangeEnd:p,className:"react-colorful__last-control"}))},Kf={defaultColor:"000",toHsva:_f,fromHsva:function(e){return Af({h:e.h,s:e.s,v:e.v,a:1})},equal:Ff},Uf=function(e){return o().createElement(Wf,hf({},e,{colorModel:Kf}))},Gf=function(e){var t=e.className,n=e.hsva,r=e.onChange,i=e.onChangeEnd,l={backgroundImage:"linear-gradient(90deg, "+kf(Object.assign({},n,{a:0}))+", "+kf(Object.assign({},n,{a:1}))+")"},s=Sf(["react-colorful__alpha",t]),a=Pf(100*n.a);return o().createElement("div",{className:s},o().createElement("div",{className:"react-colorful__alpha-gradient",style:l}),o().createElement(jf,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:bf(n.a+e.left)})},onEnd:i,"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},o().createElement(xf,{className:"react-colorful__alpha-pointer",left:n.a,color:kf(n)})))},Yf=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,l=e.onChange,s=e.onChangeEnd,a=mf(e,["className","colorModel","color","onChange","onChangeEnd"]),c=(0,o().useRef)(null);Bf(c);var u=Vf(n,i,l,s),d=u[0],f=u[1],p=u[2],h=Sf(["react-colorful",t]);return o().createElement("div",hf({},a,{ref:c,className:h}),o().createElement(Tf,{hsva:d,onChange:f,onChangeEnd:p}),o().createElement(Nf,{hue:d.h,onChange:f,onChangeEnd:p}),o().createElement(Gf,{hsva:d,onChange:f,onChangeEnd:p,className:"react-colorful__last-control"}))},Jf={defaultColor:"0001",toHsva:_f,fromHsva:Af,equal:Ff},Qf=function(e){return o().createElement(Yf,hf({},e,{colorModel:Jf}))};const Zf=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","enableAlpha","disableLabel","onValueChange"];function Xf(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 $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach(function(t){ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(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 tp=(0,o().forwardRef)(function(e,t){const{variant:n="outlined",componentSize:r="medium",fullWidth:i,label:l,error:s,classes:a,placeholder:c,disabled:u,defaultValue:d,id:f,enableAlpha:p=!1,disableLabel:h=!1,onValueChange:m}=e,g=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,Zf),[b,v]=(0,o().useState)(d?.toString()??"#AABBCC"),y=(0,o().useRef)(null),O=(0,o().useRef)(null),w=(0,o().useCallback)(e=>{v(e.toUpperCase()),m?.(e.toUpperCase())},[]),j=(0,o().useCallback)(e=>{e.preventDefault(),u||O?.current?.click()},[O,u]),S=f??Tt(),x=!!s&&!l&&!h,P=(0,Ne.jsx)(Wl,{placement:"bottom-start",classes:$f({content:be()("colorPicker-module__popover-content___l9Cj",p&&"colorPicker-module__popover-content-alpha__qL4F7",a?.popoverContent)},a?.popover),containerOffset:4,description:p?(0,Ne.jsx)(Qf,{color:b,onChange:w}):(0,Ne.jsx)(Uf,{color:b,onChange:w}),children:(0,Ne.jsx)("div",{ref:O,className:be()("colorPicker-module__popover-target__EZe64")})}),_=(0,Ne.jsx)("span",{onClick:j,className:be()("colorPicker-module__swatch__CJpfS",p&&"colorPicker-module__swatch-alpha__fR5dI",h&&"colorPicker-module__swatch-only__Ssxwd",u&&"colorPicker-module__swatch-disabled__v7mTm",a?.icon),style:{"--swatch-color":b}});return h?(0,Ne.jsxs)("div",{"data-size":r,className:be()("colorPicker-module__root-only__Bqjfa",a?.root),children:[(0,Ne.jsx)("input",$f($f({ref:Be([y,t]),id:S,className:"colorPicker-module__hidden-input__iEwws"},g),{},{value:b,onChange:()=>{},disabled:u,tabIndex:-1,"aria-hidden":!0})),_,P]}):(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:i,label:l,error:s,inputId:S,onLabelClick:j,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:x,classes:$f($f({},a),{},{root:be()("colorPicker-module__root__Ni1Qk",a?.root)}),children:[(0,Ne.jsx)("input",$f($f({ref:Be([y,t]),id:S,className:be()(Hi,"colorPicker-module__input__rwgTH",a?.input),placeholder:c},g),{},{value:b,onChange:()=>{},onClick:j,disabled:u})),_,(0,Ne.jsx)("span",{onClick:j,className:be()(zi,a?.arrow),children:(0,Ne.jsx)(pu,{})}),x&&s&&(0,Ne.jsx)(Xi,{error:s,componentSize:r,className:a?.errorIcon}),P]})});var np="input-module__field-icon__t2MCN";const rp=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function op(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 ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach(function(t){lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lp(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 sp=(0,o().forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:i,label:l,error:s,startIcon:a,endIcon:c,classes:u,placeholder:d,id:f,type:p,onChange: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,rp);const g=(0,o().useRef)(null),[b,v]=(0,o().useState)(""),y=ht(),O=f??y,w="file"===p,j=!!s&&!w&&!l,S=w?[]:function(e){return null==e||!1===e||!0===e?[]:(Array.isArray(e)?e:[e]).filter(e=>null!=e&&!1!==e&&!0!==e)}(c),x=S.length+(j?1:0),P=()=>{g.current?.focus()};return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:i,label:l,error:s,inputId:O,hasStartIcon:!w&&!!a,endIconCount:x,classes:u,children:[w?(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("input",ip({ref:Be([g,t]),id:O,className:be()("input-module__file-input__q2Nqj",u?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];v(t?.name??""),h?.(e)}},m)),(0,Ne.jsxs)("div",{role:"button",tabIndex:0,className:be()(Hi,"input-module__file-display__nDbsE",u?.input),onClick:()=>g.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g.current?.click())},children:[(0,Ne.jsx)("span",{className:be()("input-module__file-name__X3xkl",!b&&"input-module__placeholder__NSfNL"),children:b||d}),(0,Ne.jsx)(ls,{size:20,className:"input-module__attach-icon__l8K5u"})]})]}):(0,Ne.jsx)("input",ip({ref:Be([g,t]),id:O,className:be()(Hi,"input-module__input__kODuu",u?.input),placeholder:d,type:p,autoComplete:"off",onChange:h},m)),!!a&&!w&&(0,Ne.jsx)("span",{onClick:P,className:be()("fieldShell-module__start-icon__fIKEA",np,u?.startIcon),children:a}),S.map((e,t)=>{const n=S.length-1-t+(j?1:0);return(0,Ne.jsx)("span",{onClick:P,className:be()(Vi,np,u?.endIcon),style:{right:`calc(var(--end-icon-edge) + ${n} * var(--end-icon-slot))`},children:e},t)}),j&&s&&(0,Ne.jsx)(Xi,{error:s,componentSize:r,className:u?.errorIcon})]})});var ap="wrapForLabel-module__medium__TMPJd",cp="wrapForLabel-module__root__n2E0p",up="wrapForLabel-module__small__BWNtg";const dp=["componentSize","children","classes","className"];function fp(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 pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(n),!0).forEach(function(t){hp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hp(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 mp=(0,o().forwardRef)(function(e,t){let{componentSize:n="medium",children:r,classes:o,className: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,dp);return(0,Ne.jsx)("div",pp(pp({ref:t,className:be()(cp,d[n],i,o?.root)},l),{},{children:r}))});function gp(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 bp(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 vp=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","onSearchChange","searchValue","hasMore","onSelectAll","loadingMore","onLoadMore","virtualize","classes","className"];function yp(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 Op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(t){wp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wp(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 jp=(0,o().forwardRef)(function(e,t){let{items:n,selected:r,disableSearch:i,isDisabled:l,actionWithSelected:s,onChangeItem:a,onSearchChange:c,searchValue:u,hasMore:d=!1,onSelectAll:f,loadingMore:p=!1,onLoadMore:h,virtualize:m=!1,classes:g,className:b}=e,v=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,vp);const{t:y}=Ju(),O=void 0!==c,w=!i||O,[j,S]=(0,o().useState)(u??""),x=(0,o().useRef)(null),P=(0,o().useRef)(c),_=(0,o().useRef)(!0);P.current=c;const C=(0,o().useRef)(!0);(0,o().useEffect)(()=>{void 0!==u&&S(u)},[u]),(0,o().useEffect)(()=>{C.current?C.current=!1:x.current?.scrollTo({top:0})},[j]),(0,o().useEffect)(()=>{if(!P.current)return;if(_.current)return void(_.current=!1);const e=window.setTimeout(()=>{P.current?.(j)},300);return()=>window.clearTimeout(e)},[j]);const A=(0,o().useMemo)(()=>O?n.filter(e=>!r[e.value]):((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?gp(Object(n),!0).forEach(function(t){bp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(n,j,r),[n,j,O,r]),E=(0,o().useMemo)(()=>n.filter(e=>!!r[e.value]),[n,r]),R=(!d||!!f)&&!l&&A.length>0,k=(0,o().useMemo)(()=>{const e=[];return E.length>0&&(e.push({type:"selected-header",key:"selected-header"}),E.forEach(t=>{e.push({type:"selected",key:`selected-${t.value}`,item:t})})),R&&e.push({type:"select-all",key:"select-all"}),A.forEach(t=>{e.push({type:"option",key:`option-${t.value}`,item:t})}),e},[A,E,R]),D=Du({count:m?k.length:0,enabled:m,getScrollElement:()=>x.current,estimateSize:e=>{return(t=k[e])&&"option"!==t.type&&"selected"!==t.type?36:24;var t},overscan:8,getItemKey:e=>k[e]?.key??e}),M=Xu({scrollRef:x,hasMore:d,loading:p,onLoadMore:h,itemCount:n.length,resetKey:j,enabled:!!h}),L=(0,o().useCallback)(e=>{const t=!r[e.value];a&&a(e);const n=Op(Op({},r),{},{[e.value]:t});s(n)},[r,a,s]),I=(0,o().useCallback)(()=>{if(f)return void f(j);const e=Op({},r);A.forEach(t=>{e[t.value]=!0}),s(e)},[f,j,r,A,s]),N=(0,o().useCallback)(()=>{const e=Op({},r);E.forEach(t=>{delete e[t.value]}),s(e)},[r,E,s]),T=(0,o().useCallback)(e=>{S(e.target.value)},[]),z=(0,o().useCallback)(e=>t=>{t.stopPropagation(),L(e)},[L]),F=(e,t)=>(0,Ne.jsx)(Lt,{label:e.name,checked:!!r[e.value],onChange:z(e),disabled:l,classes:g?.checkbox},`${t}-${e.value}`),V=R||0===A.length,H=()=>(0,Ne.jsxs)("div",{className:be()("checklist-module__action-wrap___WNPp",!V&&"checklist-module__action-wrap-end__nwOQE",g?.actionWrap),children:[V&&(0,Ne.jsx)(pt,{className:be()(g?.typography),children:y("nntc_ui.common.checklist.selected")}),(0,Ne.jsx)(He,{variant:"text",componentSize:"small",compact:!0,disabled:l,onClick:N,className:be()(g?.button),children:y("nntc_ui.common.checklist.cancel")})]}),q=()=>(0,Ne.jsx)(He,{variant:"text",componentSize:"small",compact:!0,disabled:l,onClick:I,className:be()(g?.button),children:y("nntc_ui.common.checklist.selectAll")}),B=e=>"selected-header"===e.type?H():"select-all"===e.type?q():F(e.item,"selected"===e.type?"selected":"filtered"),W=m?D.getVirtualItems():[],K=m&&W.length>0,U=O&&""!==j.trim()&&0===A.length;return(0,Ne.jsxs)("div",Op(Op({ref:t,className:be()("checklist-module__root__rtLgn",b,g?.root)},v),{},{children:[" ",w&&(0,Ne.jsx)(sp,{variant:"outlined",startIcon:(0,Ne.jsx)(Xa,{}),placeholder:y("nntc_ui.common.search.placeholder"),disabled:l,value:j,fullWidth:!0,classes:g?.searchInput,onChange:T}),(0,Ne.jsxs)("div",{ref:x,className:be()("checklist-module__scrolled__t7xdx","styledScroll",g?.scrolled),children:[K?(0,Ne.jsx)("div",{className:"checklist-module__virtual-space__cTHv9",style:{height:D.getTotalSize()},children:W.map(e=>{const t=k[e.index];return t?(0,Ne.jsx)("div",{"data-index":e.index,ref:D.measureElement,className:"checklist-module__virtual-item___Q2fN",style:{transform:`translateY(${e.start}px)`},children:B(t)},e.key):null})}):(0,Ne.jsxs)(Ne.Fragment,{children:[E.length>0&&(0,Ne.jsxs)(Ne.Fragment,{children:[H(),(0,Ne.jsx)("div",{children:E.map(e=>F(e,"selected"))})]}),R&&q(),(0,Ne.jsx)("div",{children:A.map(e=>F(e,"filtered"))})]}),(0,Ne.jsx)(Zu,{loading:p,hasMore:d&&!!h,empty:U,sentinelRef:M})]})]}))}),Sp=["checklistWrapper"];function xp(e){const{items:t,selected:n,onSelectedChange:r,classes:i,enableSearch:l=!1,onSearchChange:s,searchValue:a,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,disabled:p}=e,h=(0,o().useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),m=(0,o().useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),g=(0,o().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]),b=i??{},{checklistWrapper:v}=b,y=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}(b,Sp);return(0,Ne.jsx)("div",{className:be()(v),children:(0,Ne.jsx)(jp,{virtualize:!0,disableSearch:!l,isDisabled:p,items:h,selected:m,actionWithSelected:g,onSearchChange:s,searchValue:a,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,classes:y})})}const Pp=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","onSelectAll","loadingMore","onSearchChange","searchValue","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function _p(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach(function(t){Ap(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ap(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 Ep=(0,o().forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:i,fullWidth:l,label:s,error:a,placeholder:c,items:u,onLoadMore:d,hasMore:f=!1,onSelectAll:p,loadingMore:h=!1,onSearchChange:m,searchValue:g,onValueChange:b,selected:v,classes:y,disabled:O,id:w,titleType:j="allValue",showSelectedCount:S=!1,enableSearch:x=!1,popoverInComponent:P=!1}=e,_=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,Pp),C="chips"===j,{t:A}=Yu(),E=(0,o().useRef)(null),R=(0,o().useRef)(null),k=(0,o().useRef)(null),[D,M]=(0,o().useState)(!1),[L,I]=(0,o().useState)(),[N,T]=(0,o().useState)(0),z=void 0!==d||void 0!==m,{activeItems:F,remember:V}=function(e,t,n){const[r,i]=(0,o().useState)(()=>new Map);(0,o().useEffect)(()=>{n&&i(n=>{const r=new Set(e.map(e=>e.value)),o=new Set(t??[]);let i=!1;const l=new Map(n);return e.forEach(e=>{const t=l.get(e.value);t&&t.name===e.name&&t.description===e.description&&t.disabled===e.disabled||(l.set(e.value,e),i=!0)}),l.forEach((e,t)=>{o.has(t)||r.has(t)||(l.delete(t),i=!0)}),i?l:n})},[n,e,t]);const l=(0,o().useCallback)(e=>{n&&e.length&&i(t=>{const n=new Map(t);return e.forEach(e=>n.set(e.value,e)),n})},[n]);return{activeItems:(0,o().useMemo)(()=>{if(!t?.length)return[];if(!n)return e.filter(e=>t.includes(e.value));const o=new Map(e.map(e=>[e.value,e]));return t.map(e=>o.get(e)??r.get(e)??{name:e,value:e})},[n,e,r,t]),remember:l}}(u,v,z),H=(0,o().useRef)(F);H.current=F;const q=(0,o().useRef)(!1),B=(0,o().useRef)(""),W=(0,o().useMemo)(()=>{if(!z)return u;const e=new Set(u.map(e=>e.value)),t=F.filter(t=>!e.has(t.value));return t.length?[...t,...u]:u},[F,u,z]),K=(0,o().useCallback)(e=>{B.current=e,m?.(e)},[m]),U=(0,o().useCallback)(e=>{M(e),!e&&B.current&&(B.current="",m?.(""))},[m]);(0,o().useLayoutEffect)(()=>{const e=E.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();I(t),T(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,o().useLayoutEffect)(()=>{C&&T(e=>e+1)},[C,F.length]);const G=(0,o().useCallback)(e=>{e.preventDefault(),O||M(e=>!e)},[O]),Y=(0,o().useCallback)(e=>{b?.(e)},[b]),J=(0,o().useCallback)(e=>{p&&!q.current&&(q.current=!0,Promise.resolve(p(e)).then(e=>{if(!Array.isArray(e))return;V(e);const t=new Map(H.current.map(e=>[e.value,e]));e.forEach(e=>{t.has(e.value)||t.set(e.value,e)}),b?.([...t.values()])}).finally(()=>{q.current=!1}))},[p,b,V]),Q=(0,o().useMemo)(()=>F.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("nntc_ui.common.multiSelect.selectedItems")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`;case"chips":return""}})(j,F,A):"",[j,F,A]),Z=w??Tt(),X=!!a&&!s;return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:l,label:s,error:a,labelExtra:S&&F.length>0?(0,Ne.jsx)("span",{className:be()("multiSelect-module__label-selected-count__vykag",y?.labelSelectedCount),children:` (${F.length})`}):void 0,inputId:Z,onLabelClick:G,ref:E,hasStartIcon:!!i,hasArrow:!0,hasErrorIcon:X,hasClearButton:!!F.length,chipsMode:C,classes:y,children:[(0,Ne.jsx)("input",Cp(Cp({ref:Be([R,t]),id:Z,className:be()(Hi,"multiSelect-module__input__vG33L",y?.input),placeholder:C&&F.length?void 0:c},_),{},{value:C?"":Q,onClick:G,disabled:O,readOnly:!0,title:C?void 0:F.map(e=>e.name).join(", "),autoComplete:"off"})),C&&!!F.length&&(0,Ne.jsx)("span",{className:be()(Fi,"multiSelect-module__chips__jJlqe",y?.chips),children:F.map(e=>(0,Ne.jsx)(Ol,{componentSize:r,disabled:O,onClick:()=>{O||M(e=>!e)},onRemove:()=>{const t=F.filter(t=>t.value!==e.value);b?.(t.length?t:null)},children:e.name},e.value))}),!!i&&(0,Ne.jsx)("span",{onClick:G,className:be()("multiSelect-module__icon__f8pIe",y?.icon),children:i}),!!F.length&&(0,Ne.jsx)("span",{onClick:()=>{b?.(null)},className:be()("multiSelect-module__clear__s8X8D",y?.clear),children:(0,Ne.jsx)(nl,{})}),(0,Ne.jsx)("span",{onClick:G,className:be()(zi,y?.arrow),children:(0,Ne.jsx)(pu,{})}),X&&a&&(0,Ne.jsx)(Xi,{error:a,componentSize:r,className:y?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",open:D,onOpenChange:U,contentStyle:L?{width:L,minWidth:L,maxWidth:L}:void 0,classes:Cp({content:be()("multiSelect-module__popover-content__OYXE6",y?.popoverContent)},y?.popover),containerOffset:4,layoutVersion:N,root:P?E.current:void 0,description:(0,Ne.jsx)(xp,{items:W,classes:Cp({searchInput:Cp({root:"multiSelect-module__search-input-root__S2Us8"},y?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__SqDIN",checklistWrapper:be()("multiSelect-module__checklist-wrapper__Fw8O9"),scrolled:"multiSelect-module__checklist-scrolled__XQQba"},y?.selectPopover),componentSize:r,selected:v,onSelectedChange:Y,enableSearch:x||void 0!==m,onSearchChange:m?K:void 0,searchValue:g,hasMore:f,onSelectAll:p?J:void 0,loadingMore:h,onLoadMore:d,disabled:O}),children:(0,Ne.jsx)("div",{ref:k,className:be()("multiSelect-module__popover-target__CM0gG")})})]})});var Rp="radioButton-module__pressed__zYl50",kp="radioButton-module__radio__HJxXO";const Dp=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Mp(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 Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(Object(n),!0).forEach(function(t){Ip(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ip(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 Np=(0,o().forwardRef)(function(e,t){const{label:n,componentSize:r="medium",canUncheck:i,onUncheck:l,classes:s,id:a,onClick:c}=e,u=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,Dp),d=(0,o().useRef)(null),f=(0,o().useRef)(!1),p=ht(),h=a??p;(0,o().useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Rp),n=()=>{e.classList.add(Rp),f.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,o().useCallback)(e=>{i&&f.current&&(d.current.checked=!1,l?.()),c?.(e)},[i,l,c]),g="large"===r?"subtitle1":"subtitle2";return(0,Ne.jsxs)("div",{className:be()("radioButton-module__root__stJhI",s?.root),children:[(0,Ne.jsx)("input",Lp({ref:Be([d,t]),type:"radio",className:be()("radioButton-module__input__EBKKq",s?.input),id:h,title:n,onClick:m},u)),(0,Ne.jsxs)("label",{htmlFor:h,className:be()("radioButton-module__label__E8YrK",s?.label),title:n,children:[(0,Ne.jsx)("span",{className:be()(kp,"radioButton-module__deselected__phKEf",s?.radio),children:(0,Ne.jsx)(Rs,{})}),(0,Ne.jsx)("span",{className:be()(kp,"radioButton-module__selected__KErVW",s?.radio),children:(0,Ne.jsx)(Ls,{})}),!!n&&(0,Ne.jsx)(pt,{variant:g,className:be()("radioButton-module__label-text__JHs3s",s?.labelText),children:n})]})]})});function Tp(e,t){return"function"==typeof e?e(t):e}function zp(e,t){return n=>{t.setState(t=>({...t,[e]:Tp(n,t[e])}))}}function Fp(e){return e instanceof Function}function Vp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const s=e(i),a=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!a)return r;let c;if(o=s,n.key&&n.debug&&(c=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-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 Hp(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 Bp(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 Wp={createTable:e=>{e.getHeaderGroups=Vp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],a=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Kp(t,[...s,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...a],e)},Hp(e.options,qp)),e.getCenterHeaderGroups=Vp(()=>[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"),Hp(e.options,qp)),e.getLeftHeaderGroups=Vp(()=>[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")},Hp(e.options,qp)),e.getRightHeaderGroups=Vp(()=>[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")},Hp(e.options,qp)),e.getFooterGroups=Vp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getLeftFooterGroups=Vp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getCenterFooterGroups=Vp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getRightFooterGroups=Vp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getFlatHeaders=Vp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getLeftFlatHeaders=Vp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getCenterFlatHeaders=Vp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getRightFlatHeaders=Vp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getCenterLeafHeaders=Vp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getLeftLeafHeaders=Vp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getRightLeafHeaders=Vp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getLeafHeaders=Vp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,s,a;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(s=null==(a=n[0])?void 0:a.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Hp(e.options,qp))}};function Kp(e,t,n,r){var o,i;let l=0;const s=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&&s(e.columns,t+1)},0)};s(e);let a=[];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 s,a=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,a=!0),l&&(null==l?void 0:l.column)===s)l.subHeaders.push(e);else{const o=Bp(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:a,placeholderId:a?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),a.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Bp(n,e,{depth:l,index:t}));c(u,l-1),a.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=a[0])?void 0:i.headers)?o:[]),a}const Up=(e,t,n,r,o,i,l)=>{let s={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows: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}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Vp(()=>[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:Vp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Hp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Hp(e.options,"debugRows")),_getAllCellsByColumnId:Vp(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Hp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},Gp={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()}}},Yp=(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))};Yp.autoRemove=e=>oh(e);const Jp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Jp.autoRemove=e=>oh(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=>oh(e);const Zp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Zp.autoRemove=e=>oh(e);const Xp=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Xp.autoRemove=e=>oh(e)||!(null!=e&&e.length);const $p=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});$p.autoRemove=e=>oh(e)||!(null!=e&&e.length);const eh=(e,t,n)=>e.getValue(t)===n;eh.autoRemove=e=>oh(e);const th=(e,t,n)=>e.getValue(t)==n;th.autoRemove=e=>oh(e);const nh=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};nh.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]},nh.autoRemove=e=>oh(e)||oh(e[0])&&oh(e[1]);const rh={includesString:Yp,includesStringSensitive:Jp,equalsString:Qp,arrIncludes:Zp,arrIncludesAll:Xp,arrIncludesSome:$p,equals:eh,weakEquals:th,inNumberRange:nh};function oh(e){return null==e||""===e}const ih={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:zp("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?rh.includesString:"number"==typeof r?rh.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?rh.equals:Array.isArray(r)?rh.arrIncludes:rh.weakEquals},e.getFilterFn=()=>{var n,r;return Fp(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:rh[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=Tp(n,o?o.value:void 0);var l;if(lh(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const s={id:e.id,value:i};var a;return o?null!=(a=null==t?void 0:t.map(t=>t.id===e.id?s:t))?a:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Tp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!lh(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 lh(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const sh={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},ah={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:zp("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?sh.sum:"[object Date]"===Object.prototype.toString.call(r)?sh.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Fp(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:sh[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)}}},ch={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:zp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Vp(e=>[gh(t,e)],t=>t.findIndex(t=>t.id===e.id),Hp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=gh(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=gh(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=Vp(()=>[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)},Hp(e.options,"debugTable"))}},uh={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:zp("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,s,a;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!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(a=null==e?void 0:e.right)?a:[]).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=Vp(()=>[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))},Hp(t.options,"debugRows")),e.getLeftVisibleCells=Vp(()=>[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},Hp(t.options,"debugRows")),e.getRightVisibleCells=Vp(()=>[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},Hp(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=Vp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Hp(e.options,"debugColumns")),e.getRightLeafColumns=Vp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Hp(e.options,"debugColumns")),e.getCenterLeafColumns=Vp(()=>[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))},Hp(e.options,"debugColumns"))}},dh={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fh={getDefaultColumnDef:()=>dh,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:zp("columnSizing",e),onColumnSizingInfoChange:zp("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:dh.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:dh.size),null!=(o=e.columnDef.maxSize)?o:dh.maxSize)},e.getStart=Vp(e=>[e,gh(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Hp(t.options,"debugColumns")),e.getAfter=Vp(e=>[e,gh(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Hp(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(),hh(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],a=hh(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,s=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*s,0))/100}),{...e,deltaOffset:l,deltaPercentage:s}}),"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),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof ph)return ph;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 ph=e,ph}()&&{passive:!1};hh(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let ph=null;function hh(e){return"touchstart"===e.type}const mh={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:zp("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=Vp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Hp(t.options,"debugRows")),e.getVisibleCells=Vp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Hp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Vp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Hp(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 gh(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const bh={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:zp("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=>Tp(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=Tp(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,Tp(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=Tp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Vp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Hp(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}}},vh={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:zp("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}):[],s=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,a;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=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=Vp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Hp(e.options,"debugRows")),e.getBottomRows=Vp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Hp(e.options,"debugRows")),e.getCenterRows=Vp(()=>[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))},Hp(e.options,"debugRows"))}},yh={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:zp("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=>{Oh(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(e.options,"debugTable")),e.getFilteredSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(e.options,"debugTable")),e.getGroupedSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(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 s={...i};return Oh(s,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return jh(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Sh(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Sh(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)}}}},Oh=(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=>Oh(e,t.id,n,r,o))};function wh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=jh(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 jh(e,t){var n;return null!=(n=t[e.id])&&n}function Sh(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()&&(jh(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Sh(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const xh=/([0-9]+)/gm;function Ph(e,t){return e===t?0:e>t?1:-1}function _h(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ch(e,t){const n=e.split(xh).filter(Boolean),r=t.split(xh).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 Ah={alphanumeric:(e,t,n)=>Ch(_h(e.getValue(n)).toLowerCase(),_h(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Ch(_h(e.getValue(n)),_h(t.getValue(n))),text:(e,t,n)=>Ph(_h(e.getValue(n)).toLowerCase(),_h(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Ph(_h(e.getValue(n)),_h(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)=>Ph(e.getValue(n),t.getValue(n))},Eh={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:zp("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 Ah.datetime;if("string"==typeof n&&(r=!0,n.split(xh).length>1))return Ah.alphanumeric}return r?Ah.text:Ah.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 Fp(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:Ah[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const s=null==l?void 0:l.find(t=>t.id===e.id),a=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?s?"toggle":"add":null!=l&&l.length&&a!==l.length-1?"replace":s?"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())}},Rh=[Wp,mh,ch,uh,Gp,ih,{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:zp("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=()=>rh.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Fp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:rh[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Eh,ah,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:zp("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()}}}},bh,vh,yh,fh];function kh(e){var t,n;const r=[...Rh,...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 s=[];let a=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{s.push(e),a||(a=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();a=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Tp(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:Vp(()=>[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}},Hp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Vp(()=>[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},s=l.accessorKey;let a,c=null!=(o=null!=(i=l.id)?i:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?a=l.accessorFn:s&&(a=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:a,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Vp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Hp(e.options,"debugColumns")),getLeafColumns:Vp(()=>[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]},Hp(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)},Hp(e,"debugColumns")),getAllFlatColumns:Vp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Hp(e,"debugColumns")),_getAllFlatColumnsById:Vp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Hp(e,"debugColumns")),getAllLeafColumns:Vp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Hp(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 Dh(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)?o().createElement(e,t):e:null;var n}const Mh=["open","onClose","root","children","classes","className","onClick"];function Lh(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 Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach(function(t){Nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(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 Th=(0,o().forwardRef)(function(e,t){let{open:n,onClose:r,root:i,children:l,classes:s,className:a,onClick:c}=e,u=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,Mh);const d=bi(),f=(0,o().useRef)(null),p=(0,o().useRef)(null);if(!n||!l)return null;const h=(0,Ne.jsx)("div",{ref:f,className:"modal-module__overlay__jUOz9",onClick:e=>{e.target!==f.current&&p.current?.contains(e.target)||(e.stopPropagation(),r?.())},children:(0,Ne.jsx)("div",Ih(Ih({},u),{},{ref:e=>{e&&(p.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:be()("modal-module__modal__MbFDb",a,s?.root),onClick:e=>{e.stopPropagation(),c?.(e)},children:l}))}),m=i&&"current"in i?i.current:i;return(0,pr.createPortal)(h,m??d??document.body)});var zh="surface-module__medium__RDAZM",Fh="surface-module__modal__CR4M1",Vh="surface-module__overlay1__mkcgW",Hh="surface-module__overlay2__SpRc6",qh="surface-module__panel___5TWQ",Bh="surface-module__primary__eubsR",Wh="surface-module__root__NWwiS",Kh="surface-module__small__GMEm1";const Uh=["type","componentSize","children","classes","className"];function Gh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(n),!0).forEach(function(t){Jh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jh(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 Qh=(0,o().forwardRef)(function(e,t){let{type:n="primary",componentSize:r="medium",children:o,classes:i,className:l}=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,Uh);return(0,Ne.jsx)("div",Yh(Yh({ref:t,className:be()(Wh,l,i?.root,f[n],f[r])},s),{},{children:o}))});var Zh="virtualTable-module__align-center__rbiTV",Xh="virtualTable-module__align-left__h55vl",$h="virtualTable-module__align-right__D9XGD",em="virtualTable-module__body-lock__g3lm6",tm="virtualTable-module__border-frame__cK6e3",nm="virtualTable-module__border-spacer__bjkt2",rm="virtualTable-module__borders-all__KkNTI",om="virtualTable-module__borders-horizontal__jR33G",im="virtualTable-module__borders-vertical__uEuZ0",lm="virtualTable-module__bottom-border__WDi6q",sm="virtualTable-module__clickable__e1Fzm",am="virtualTable-module__editable__ykKJ7",cm="virtualTable-module__error__AlQbz",um="virtualTable-module__even-row__G9kZ9",dm="virtualTable-module__first-th-row__gTB11",fm="virtualTable-module__input__woZy1",pm="virtualTable-module__label__MH9F1",hm="virtualTable-module__margin-left-changing__zOfJs",mm="virtualTable-module__medium__ir7ZQ",gm="virtualTable-module__modal-content__x3MRE",bm="virtualTable-module__page-loading-label__GmatN",vm="virtualTable-module__page-loading-lane__dNGr4",ym="virtualTable-module__page-loading-track__fGERG",Om="virtualTable-module__page-loading-up__dNqWK",wm="virtualTable-module__right-border__VUcBZ",jm="virtualTable-module__right-border-with-bottom__RUwY4",Sm="virtualTable-module__root__T5DB8",xm="virtualTable-module__row-button-trigger__GOp1L",Pm="virtualTable-module__rowspan-content__tVYnk",_m="virtualTable-module__select-rows___j564",Cm="virtualTable-module__selected__m1TlO",Am="virtualTable-module__show-in-modal__CRX1n",Em="virtualTable-module__small__Frhxm",Rm="virtualTable-module__sticky__IOXhs",km="virtualTable-module__success__xA9vR",Dm="virtualTable-module__table__DVtV1",Mm="virtualTable-module__table-container__Mg8RS",Lm="virtualTable-module__td__xaUJu",Im="virtualTable-module__th__e9Feh",Nm="virtualTable-module__th-cell__p6rQ6",Tm="virtualTable-module__th-hidden-column__G4mQg",zm="virtualTable-module__th-left-border__VLgUr",Fm="virtualTable-module__th-right-border__bNAS9",Vm="virtualTable-module__tr__zZyk5",Hm="virtualTable-module__vertical-align-center__BgJQa",qm="virtualTable-module__vertical-align-flex-end__tIx0q",Bm="virtualTable-module__vertical-align-flex-start___IFqc",Wm="virtualTable-module__view-cell__eY5xo",Km="virtualTable-module__view-span__SezD2";function Um(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach(function(t){Ym(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ym(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 Jm={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:i},table:l})=>{const s=e(),{meta:a}=i,c=l.options.meta,[u,d]=(0,o().useState)(s),[f,h]=(0,o().useState)(!1),[m,g]=(0,o().useState)(!1),b=(0,o().useRef)();b.current=()=>{g(!1)},(0,o().useEffect)(()=>{d(s)},[s]);const v=c?.additionalColumnsViews?.(r,s,n[r]?.payload);if(f&&a?.editable){const e=()=>{c?.updateData(t,r,u,n),h(!1)},o=(e,o)=>{d(e),o&&(c?.updateData(t,r,e,n),h(!1))};return(0,Ne.jsx)(Ti,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=v?.edit?v.edit(o,e):(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)(sp,{classes:{input:fm},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:u??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const y=null!=v?.view?v.view:a?.valueFormat?a.valueFormat(s):void 0===a?.toFixed||Number.isNaN(parseFloat(s))?s:parseFloat(Number(s).toFixed(a.toFixed)),O=Boolean(a?.editable||a?.showInModal||a?.onClick&&n[r]?.payload);return(0,Ne.jsx)(Ti,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,Ne.jsxs)("div",Gm(Gm({className:be()(Wm,a?.rowsAlign?p[`align${a?.rowsAlign}`]:void 0,a?.showInModal?Am:void 0,a?.onClick&&n[r]?.payload?sm:void 0,n[r]?.fill?p[n[r].fill]:void 0,a?.editable?am:void 0,a?.verticalAlign?p[`verticalAlign${a?.verticalAlign}`]:void 0)},O?{"data-vt-cell-action":""}:void 0),{},{onClick:O?e=>{e.ctrlKey||e.metaKey||e.shiftKey||(a?.editable?h(!0):a?.showInModal?g(!0):a?.onClick&&n[r]?.payload&&a.onClick(n[r]?.payload??{}))}:void 0,children:[(0,Ne.jsx)("span",{className:Km,children:y}),m&&(0,Ne.jsx)(Th,{root:c?.tableContainerRef?.current,open:m,onClose:()=>b.current?.(),children:(0,Ne.jsx)(Qh,{type:"panel",children:(0,Ne.jsx)("div",{className:gm,children:y})})})]}))})}},Qm=(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 Zm(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,i]=(0,o().useState)(t);(0,o().useEffect)(()=>{n(r)},[r]);const l=(0,o().useCallback)(()=>{i([void 0,void 0]),n([void 0,void 0])},[]);return(0,Ne.jsxs)("div",{className:be()("dateFiltration-module__root__q1XLM"),children:[(0,Ne.jsx)(pf,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{i(e)},tabIndex:-1}),(0,Ne.jsx)(Ti,{label:"Сбросить",children:(0,Ne.jsx)(He,{onClick:l,className:be()("dateFiltration-module__button__qR5Az"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,Ne.jsx)(nl,{})})})]})}var Xm="numberFiltration-module__input__a8GyD";const $m=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function eg(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,i]=(0,o().useState)(t[0]===-1/0&&t[1]===1/0?$m[0]:t[0]===t[1]?$m[3]:t[0]===-1/0?$m[2]:t[1]===1/0?$m[1]:$m[0]),[l,s]=(0,o().useState)(t),a=(e,t)=>{s(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])},c=(0,o().useCallback)(()=>{s([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,Ne.jsxs)("div",{className:be()("numberFiltration-module__root__sSnKZ"),children:[(0,Ne.jsx)(Ed,{items:$m,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...l];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}s(t),n(t),i(e)}},classes:{root:"numberFiltration-module__select__KO1Ce"},tabIndex:-1}),(0,Ne.jsx)("div",{className:be()("numberFiltration-module__inputs-container__Eqfwf"),children:"range"===r.value?(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:l[0]>-1/0&&l[0]<1/0?l[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}}),(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:l[1]>-1/0&&l[1]<1/0?l[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}})]}):(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:"more"===r.value?l[0]>-1/0&&l[0]<1/0?l[0]:"":l[1]>-1/0&&l[1]<1/0?l[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}})}),(0,Ne.jsx)(Ti,{label:"Сбросить",children:(0,Ne.jsx)(He,{onClick:c,className:be()("numberFiltration-module__button__PJOUL"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,Ne.jsx)(nl,{})})})]})}function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(t){rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rg(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 og(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:i,filtrationByNumber:l=!1,filtrationByDate:s=!1,filtrationByValue:a=!1,valueFormat:c,toFixed:u},sortBy:d,setSortBy:f,filterBy:p,setFilterBy:h,headerName:m,containerRef:g,showUniqueValuesCount:b,leftAdditionalContent:v,rightAdditionalContent:y,children:O,rows:w,rowsForUniqueCount:j,externalValues:S}=e,x=i??m,{t:P}=Ju(),_=(0,o().useMemo)(()=>{const e=P("nntc_ui.view.virtualTable.noValue"),t=e=>null==e||""===e,n=e=>t(e)?"":String(e),r=n=>t(n)?e:c?c(n)?.toString()||e:void 0===u||Number.isNaN(parseFloat(n))?String(n)||e:parseFloat(Number(n).toFixed(u)).toString(),o=t=>t.sort((t,n)=>{const r=t.name.toString(),o=n.name.toString();return r===e?-1:o===e?1:Qm(r,o)}),i=e=>({name:r(e),value:n(e)});if(S)return o([...S.map(i).reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]);const l=w.map(e=>i(e[x]?.value));o(l);return[...l.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]},[w,x,c,u,S,P]),C=(0,o().useMemo)(()=>{const e=new Set;S?S.forEach(t=>e.add(null==t||""===t?"":String(t))):(j??w).forEach(t=>{const n=t?.[x]?.value;e.add(null==n||""===n?"":String(n))});const t=p.find(e=>e.columnName===x&&"value"===e.type),n=(t?.values??[]).map(e=>null==e||""===e?"":String(e));if(n.length>0){const t=new Set(n);let r=0;return e.forEach(e=>{t.has(e)&&(r+=1)}),r}return e.size},[j,w,x,p,S]),A=(0,o().useMemo)(()=>{const e={};return p.find(e=>e.columnName===x)?.values.forEach(t=>{e[null==t||""===t?"":String(t)]=!0}),e},[p,x]),E=(0,o().useMemo)(()=>p.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[p,x]),R=(0,o().useMemo)(()=>p.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[p,x]),k=e=>()=>{f(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?ng(ng({},t),{},{direction:e}):ng({},t)):t.concat([{columnName:x,direction:e,sortType:r}]))},D=p.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),M=Object.keys(A).length>0||D,L=d.some(e=>e.columnName===x&&"desc"===e.direction),I=d.some(e=>e.columnName===x&&"asc"===e.direction),N=[];return n&&(N.push({type:"divider",name:P("nntc_ui.view.virtualTable.uniqueValues")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.uniqueOnly"),icon:(0,Ne.jsx)(nc,{}),selected:D,onClick:()=>{h(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?ng(ng({},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&&(N.push({type:"divider",name:P("nntc_ui.view.virtualTable.sort")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.AZ"),icon:(0,Ne.jsx)(uc,{}),selected:d.some(e=>e.columnName===x&&"asc"===e.direction),onClick:k("asc")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.ZA"),icon:(0,Ne.jsx)(hc,{}),selected:d.some(e=>e.columnName===x&&"desc"===e.direction),onClick:k("desc")})),(0,Ne.jsxs)("div",{className:be()("headerDropdown-module__root__WMUvA"),children:[v?.(x),O?.(b&&(0,Ne.jsx)("div",{children:`(${C})`})),y?.(x),(t||n||a||s||l)&&(0,Ne.jsx)(Wl,{placement:"bottom-end",wrapTrigger:!0,root:g,description:(0,Ne.jsxs)(Ne.Fragment,{children:[l&&(0,Ne.jsx)(eg,{defaultValues:E,actionWithSelected:e=>{h(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]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),s&&(0,Ne.jsx)(Zm,{defaultValues:R,actionWithSelected:e=>{h(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]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),a&&(0,Ne.jsx)("div",{className:be()("headerDropdown-module__checklist-wrap__P7ADR"),children:(0,Ne.jsx)(jp,{items:_,selected:A,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e).map(e=>""===e?null:e);h(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?ng(ng({},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]=ng(ng({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(t||n)&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)(Sd,{items:N})})]}),children:(0,Ne.jsx)(Ti,{label:P("nntc_ui.view.virtualTable.sortAndFiltration"),placement:"bottom-end",root:g,children:(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!M&&!L&&!I,icon:M?(0,Ne.jsx)(ga,{}):L?(0,Ne.jsx)(hc,{}):I?(0,Ne.jsx)(uc,{}):(0,Ne.jsx)(Xl,{})})})})]})}function ig(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 lg=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}},sg=(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:lg(t?.accessorKey?t:e),columns:e.columns?sg(e.columns,e):void 0})),ag=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(ag(e,t+1,n)):[],cg=(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(cg(e,t-1,n)):[],ug=(e,t,n)=>e[t+1]&&cg(e,t+1,n).length?[e[t+1].headers[n]].concat(ug(e,t+1,n)):[],dg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(dg(e,t-1)):[];function fg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=kd()(t.values[0]),n=kd()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=kd()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}const o=t.values.some(e=>null==e||""===e);return n&&null!=r&&""!==r?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes(r.toString())||t.values.includes(r):o}const pg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>fg(e,n)||1===e.isNew?.value):e;return pg(r,t.slice(0,t.length-1))}return e},hg=(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=Qm(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return hg(r,t.slice(0,t.length-1))}return e},mg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},gg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function bg(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 vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach(function(t){yg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yg(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 Og=(0,o().forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:i,onChangeCell:l,cellWidth:s,rowButtons:a,fixedColumnsCount:c=0,headerRowHeight:u=[32],bodyRowHeight:d=32,rowActionWidth:f=77,classes:h,dynamicRowHeight:m=!1,height:g,scrollToBottom:b,useTableContainerAsRootForPopup:v,componentSize:y="small",borders:O="horizontal",showUniqueValuesCount:w=!1,globalFilters:j,globalSorts:S,onFiltersChange:x,onSortsChange:P,leftAdditionalHeaderContent:_,rightAdditionalHeaderContent:C,showRowsNumbers:A,stripedRows:E=!0,enableSelectRows:R=!1,onSelectRowsChange:k,globalSelectedRows:D,manualRows:M=!1,externalFilterValues:L,windowed:I=!1,totalCount:N,page:T,pageSize:z,onRequestPage:F,loadingPage:V=!1,lockBody:H=!1}=e,{t:q}=Ju(),B=c+(A?1:0),[W,K]=(0,o().useState)(j??[]),[U,G]=(0,o().useState)([...S??[],{columnName:"isNew",direction:"desc"}]),[Y,J]=(0,o().useState)(()=>new Set),Q=(0,o().useRef)(null),Z=(0,o().useRef)(null),X=(0,o().useRef)("down"),$=(0,o().useRef)(0),ee=(0,o().useRef)("down"),te=(0,o().useRef)(Y),ne=(0,o().useRef)(R?D??[]:[]),re=(0,o().useRef)([]),oe=(0,o().useRef)(null),ie=(0,o().useRef)(null),le=(0,o().useRef)(null),se=(0,o().useRef)(k),ae=(0,o().useRef)(R);te.current=Y,se.current=k,ae.current=R;const ce=Boolean(I&&z&&z>0),ue=ce?(T??0)*z:0,de=ce?Math.max(0,N??0):0,fe=(0,o().useMemo)(()=>A?`rowNumber_${Tt()}`:null,[A]),pe=(0,o().useMemo)(()=>{if(!fe)return sg(r);const e=t=>vg(vg({id:fe},t?.columns?.length?void 0:{accessorKey:fe}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return sg(t)},[r,fe]),he=(0,o().useMemo)(()=>{if(M)return n;const e=[...n],t=W.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||n.some(t=>fg(t,e))),r=t.length?pg(e,t):W.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!kd()(e).isSame(kd()(0))&&!kd()(e).isSame(kd()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=U.length?hg(r,U):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=ig(o,e.columnName));return o},[n,U,W,M]),me=(0,o().useMemo)(()=>{const e=fe?he.map((e,t)=>vg(vg({},e),{},{[fe]:{value:ue+t+1}})):he;return M&&ce&&0===e.length&&de>0||window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[he,fe,ue,M,ce,de]);re.current=he;const ge=(0,o().useCallback)((e,t)=>{const n=re.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=te.current,s=o.size===l.size&&r.every(e=>l.has(e));s||(J(o),te.current=o,ne.current=i,se.current?.(i)),null!==t&&n[t]?(oe.current=t,ie.current=n[t]):null===t&&(oe.current=null,ie.current=null)},[]);(0,o().useEffect)(()=>{const e=ie.current;if(e){const t=he.indexOf(e);oe.current=-1===t?null:t,-1===t&&(ie.current=null)}if(0===ne.current.length)return void(te.current.size>0&&ge(new Set,oe.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(he,ne.current),n=t.size>0?Math.max(...t):null;ge(t,oe.current??n)},[he,ge]),(0,o().useEffect)(()=>{!R&&te.current.size>0&&ge(new Set,null)},[R,ge]);const ve=(0,o().useMemo)(()=>{if(M)return[];const e=[...n];return Array.from({length:W.length+1},(t,n)=>pg(e,W.slice(0,n)))},[n,W,M]),ye=(0,o().useMemo)(()=>s??(e=>fe&&0===e?8*(ce?de:me.length).toString().length+24:pe[e]?.meta?.width??200),[s,pe,me,fe,ce,de]),Oe=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o().useState(()=>({current:kh(t)})),[r,i]=o().useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:me,columns:pe,defaultColumn:Jm,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Vp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let a=0;a<t.length;a++){const c=Up(e,e._getRowId(t[a],a,i),t[a],a,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[a],a),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Hp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:pe.filter((e,t)=>t<B).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{l?.(e,t,n,r)},tableContainerRef:Q,additionalColumnsViews:i}}),{rows:we}=Oe.getRowModel(),je=Oe.getHeaderGroups(),Se=Du({count:ce?de:we.length,getScrollElement:()=>Q?.current,estimateSize:()=>d,overscan:5}),xe=Du({horizontal:!0,count:je[0]?.headers.length??1,rangeExtractor:(0,o().useCallback)(e=>{const t=[...Array(B)].map((e,t)=>t);return[...new Set([...t,...ju(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>Q?.current,estimateSize:ye,overscan:5}),Pe=(0,o().useMemo)(()=>[...Array(B)].reduce((e,t,n)=>e+ye(n),0),[B,ye]),_e=(0,o().useMemo)(()=>{const e=je.length-u.length,t=[...u];if(e>0)for(let n=0;n<e;n++)t.push(32);return t},[u,je]),Ce=(0,o().useMemo)(()=>_e.reduce((e,t,n)=>n<je.length?e+t:e,0),[_e,je]),Ae=(0,o().useCallback)(e=>_e.reduce((t,n,r)=>r<e?t+n:t,0),[_e,je]),Ee=Se.getTotalSize(),Re=xe.getTotalSize(),ke=Ee+Ce,De=Re+(a?f:0),Me=()=>{K([])},Le=()=>{G([{columnName:"isNew",direction:"desc"}])};(0,o().useImperativeHandle)(t,()=>({resetFilters:Me,resetSorts:Le})),(0,o().useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${hm}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return Q?.current&&(Q.current.addEventListener("scroll",e),b&&Q.current.scrollTo(0,Q.current.scrollHeight)),()=>{Q?.current&&Q.current.removeEventListener("scroll",e)}},[Q,b]);const Ie=Se.getVirtualItems();(0,o().useEffect)(()=>{if(!ce||!F||V||!z||de<=0||0===Ie.length)return;const e=Q.current;if(!e)return;const{scrollTop:t}=e;t>$.current+1?ee.current="down":t<$.current-1&&(ee.current="up"),$.current=t;const n="up"===ee.current,r=Math.max(0,e.clientHeight-Ce),o=n?1/3:1-1/3,i=Math.max(0,t+r*o-Se.options.scrollMargin),l=Se.getVirtualItemForOffset(i);if(!l)return;const s=Math.floor(l.index/z);s!==(T??0)&&(X.current=s<(T??0)?"up":"down",F(s))},[ce,F,V,z,de,T,Ce,Ie,Se]),(0,o().useLayoutEffect)(()=>{if(!V)return;const e=Q.current,t=Z.current;if(!e||!t)return;const n=()=>{t.style.width=`${e.clientWidth}px`};n();const r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[V]);const Te=xe.getVirtualItems(),ze=Te[Te.length-1]?.index,Fe=(0,o().useMemo)(()=>new Map(Ie.map(e=>[e.index,e.size])),[Ie]),Ve=(0,o().useCallback)(e=>Fe.get(e)??d,[d,Fe]),qe=(0,o().useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=ce?de:we.length,o=Math.min(r-1,e+n-1),i=o-e+1;let l=0;for(let t=e;t<=o;t+=1)l+=Ve(t);const s="all"===O||"horizontal"===O?Math.max(0,i-1):0;return Math.max(0,l-s)},[O,Ve,ce,we.length,de]),Be=(0,o().useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=we[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[we]),We=(0,o().useCallback)(e=>{const t=Q.current,n=ce?de:re.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-Ce;let o;if(r<0)o=0;else if(r>=Se.getTotalSize())o=n-1;else{const e=Se.measurementsCache;if(o=-1,e.length>0){let t=0,i=e.length-1;for(;t<=i;){const l=t+i>>1,s=e[l];if(r<s.start)i=l-1;else{if(!(r>=s.end)){o=Math.min(n-1,s.index);break}t=l+1}}}if(-1===o)if(m){const e=Se.getVirtualItems();if(0===e.length)return null;o=r<e[0].start?e[0].index:e[e.length-1].index}else o=Math.max(0,Math.min(n-1,Math.floor(r/d)))}if(!ce)return o;const i=o-ue,l=re.current.length;return i>=0&&i<l?i:null},[d,m,ce,ue,Se,Ce,de]),Ke=(e,t)=>{const n=le.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:s}=e;if(o&&null!==i){const e=mg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(s){const e=mg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});ge(r.indexes,r.anchor)},Ue=e=>{const t=le.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||Ke(t.startIndex,!1),le.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Ge=(0,o().useCallback)((e,t)=>1===e?.isNew?.value||Y.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[Y]),Ye=(0,o().useMemo)(()=>{const e=we.length,t=new Map;return we.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},[we]),Je=(0,o().useMemo)(()=>we.length*we.length+we.length+10,[we.length]),Qe=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,Ne.jsx)(Ne.Fragment,{children:n.map((t,r)=>(0,Ne.jsxs)(o().Fragment,{children:[t,r<n.length-1&&(0,Ne.jsx)("br",{})]},`${e.id}_${r}`))})}return Dh(e.column.columnDef.header,e.getContext())},Ze=(()=>{if(!V||!ce||0===we.length)return null;const e=X.current,t="up"===e?ue:ue+we.length-1,n=Se.measurementsCache[t],r=n?.start??t*d;return{direction:e,top:Ce+("up"===e?r:r+(n?.size??d))-Se.options.scrollMargin}})(),[Xe,$e]=Te.length>0?[B&&Te[B].index!==B?Te[B].start-Pe:Te[0].start,Re-Te[Te.length-1].end]:[0,0];return(0,o().useEffect)(()=>{x?.(W)},[W]),(0,o().useEffect)(()=>{P?.(U.filter(e=>"isNew"!==e.columnName))},[U]),(0,Ne.jsxs)("div",{className:be()(Sm,p[y],p[`borders${et=O,et[0].toUpperCase()+et.substring(1)}`],h?.root),style:g?{height:g}:void 0,children:[(0,Ne.jsx)("div",{ref:Q,className:be()(Mm,"styledScroll",R&&_m),onPointerDown:R?e=>{if(!ae.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${Vm}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));if(!Number.isFinite(n))return null;if(!ce)return n;const r=n-ue,o=re.current.length;return r>=0&&r<o?r:null})(e.target);if(null===t){if(gg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${Im}`)))return;return void(te.current.size>0&&ge(new Set,null))}if(gg(e.target))return;const n=e.target instanceof Element&&null!==e.target.closest("[data-vt-cell-action]"),r=e.ctrlKey||e.metaKey||e.shiftKey;if(n&&!r)return;const o="mouse"===e.pointerType||"pen"===e.pointerType;le.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(te.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:oe.current,isDragCapable:o&&!n,hasDragged:!1},n?Ke(t,!1):o&&(e.currentTarget.setPointerCapture(e.pointerId),Ke(t,!1))}:void 0,onPointerMove:R?e=>{const t=le.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=Q.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+Ce?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=We(e.clientY);null!==i&&Ke(i,!0)}:void 0,onPointerUp:R?Ue:void 0,onPointerCancel:R?Ue:void 0,onDragStart:R?e=>e.preventDefault():void 0,children:(0,Ne.jsxs)("div",{className:Dm,style:{width:`${De}px`,height:`${ke}px`},children:[(0,Ne.jsx)("div",{style:{position:"sticky",top:0,zIndex:Je},children:je.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=W.findIndex(e=>e.columnName===n),o=M?L?.[n]??[]:void 0,i=o?[]:-1===r?me:ve[r];return(0,Ne.jsx)("div",{className:be()(Nm),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==fe&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&w)?(0,Ne.jsx)(og,{headerMeta:t,sortBy:U,setSortBy:G,filterBy:W,setFilterBy:K,rows:i,rowsForUniqueCount:me,externalValues:o,headerName:e.column.columnDef.id??e.id,containerRef:v?Q:void 0,showUniqueValuesCount:w,leftAdditionalContent:_,rightAdditionalContent:C,children:n=>(0,Ne.jsxs)("div",{className:be()(pm,t?.headerAlign?p[`align${t?.headerAlign}`]:Xh),children:[Qe(e),n]})}):(0,Ne.jsx)("div",{className:be()(pm,t?.headerAlign?p[`align${t?.headerAlign}`]:Xh),children:Qe(e)})})};return(0,Ne.jsxs)(o().Fragment,{children:[[...Array(B)].map((r,o)=>{const i=e.headers[o],l=ag(e.headers,o,ze),s=ug(je,t,o);return(0,Ne.jsx)("div",{className:be()(Im,0===t?dm:void 0,!s.length&&o!==e.headers.length-1&&Fm,0===o&&zm,s.length&&!l.length&&Tm,hm),style:{zIndex:Je+1,width:`${ye(o)}px`,height:`${_e[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>ye(t)).reduce((e,t)=>e+t,0)}px) translateY(${Ae(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),Te.map(r=>{if(r.index>B-1){const o=e.headers[r.index],i=ag(e.headers,r.index,ze),l=dg(e.headers,r.index),s=ug(je,t,r.index),a=cg(je,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?Je+i.length+2:void 0,d=a.length?_e[t]+a.reduce((e,n,r)=>e+(_e[t-r-1]??0),0):_e[t],f=a.length?Ae(t)-a.reduce((e,n,r)=>e+(_e[t-r-1]??0),0):Ae(t);return(0,Ne.jsx)("div",{className:be()(Im,0===t&&dm,!s.length&&r.index!==e.headers.length-1&&Fm,0===r.index&&zm,s.length&&!i.length&&Tm),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(B?-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,Ne.jsx)("div",{className:be()(Im,0===t?dm:void 0),style:{width:`${f}px`,height:`${_e[t]}px`,transform:`translateX(${Re+(B?-2:0)}px) translateY(${Ae(t)}px)`}})]},e.id)})}),Ie.map(e=>{const t=e.index-ue,n=t>=0&&t<we.length?we[t]:void 0;return n?(0,Ne.jsxs)("div",{"data-index":e.index,ref:m?Se.measureElement:void 0,className:be()(Vm,E&&e.index%2!=0&&um,(1===n.original?.isNew?.value||Y.has(t))&&Cm),style:vg(vg({zIndex:Ye.get(t)??1},!m&&{height:e.size}),{},{transform:"translateY("+(Ce+e.start-Se.options.scrollMargin)+"px)"}),children:[(0,Ne.jsx)("div",{style:{width:`${Xe}px`}}),Te.map(r=>{const o=n.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=n.original?.[o.column.id],s=Math.max(1,l?.rowspan??1),a=Be(t,o.column.id),c=s>1&&!a;return(0,Ne.jsx)("div",{"data-col-index":r.index,className:be()(Lm,i&&Rm),style:vg(vg({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(c?(0,Ne.jsx)("div",{className:Pm,style:{height:`${qe(e.index,s)}px`,backgroundColor:Ge(n.original,t)},children:Dh(o.column.columnDef.cell,o.getContext())}):Dh(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!a&&(0,Ne.jsx)("div",{className:be()(Lm),style:vg({width:`${f}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:a?.(n.original)?.map(e=>(0,Ne.jsx)(o().Fragment,{children:e.template?e.template(e):(0,Ne.jsx)(Ti,{label:e.title,placement:"top",wrapTrigger:!0,classes:{trigger:xm},children:(0,Ne.jsx)(He,{onClick:()=>e.onClick?.(t,n.original),componentSize:"small",variant:"text",icon:e.icon})})},e.title))}),(0,Ne.jsx)("div",{style:{width:`${$e}px`}})]},`row-${e.key}`):(0,Ne.jsx)("div",{"data-index":e.index,className:be()(Vm,E&&e.index%2!=0&&um),style:{height:e.size,transform:"translateY("+(Ce+e.start-Se.options.scrollMargin)+"px)"}},`row-${e.key}`)}),Ze&&(0,Ne.jsx)("div",{className:ym,style:{top:Ze.top,zIndex:Je-1},children:(0,Ne.jsx)("div",{ref:Z,className:be()(vm,"up"===Ze.direction&&Om),children:(0,Ne.jsx)("div",{className:bm,role:"status",children:q("nntc_ui.view.virtualTable.loadingData")})})}),("all"===O||"vertical"===O||"horizontal"===O)&&(0,Ne.jsxs)("div",{className:tm,style:{zIndex:Je+2},children:["all"===O||"vertical"===O?(0,Ne.jsx)("div",{className:be()(wm,"all"===O&&jm)}):(0,Ne.jsx)("div",{className:nm}),("all"===O||"horizontal"===O)&&(0,Ne.jsx)("div",{className:lm})]})]})}),H&&(0,Ne.jsx)("div",{className:em,style:{"--body-lock-top":`${Ce}px`}})]});var et});var wg="treeViewItem-module__selectable__ZflaR",jg="treeViewItem-module__selected__JQfHF";const Sg=(0,o().memo)(function e({title:t,value:n,searchValue:r,selected:i,onSelect:l,type:s,isSelectable:a,startIcons:c,children:u}){const[d,f]=(0,o().useState)(!1);(0,o().useEffect)(()=>{f(!!r)},[r]);const p=!!u?.length,h=s&&c?.[s],m=i[n];return(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:be()("treeViewItem-module__item__x24lD",{[wg]:a}),onClick:()=>{a&&l?l(n):f(!d)},children:[p&&(0,Ne.jsx)(Na,{}),(0,Ne.jsxs)("div",{className:be()("treeViewItem-module__title__LS87U",{[jg]:m}),children:[h,(0,Ne.jsx)(pt,{variant:"subtitle2",children:t}),a&&(0,Ne.jsx)("span",{className:"treeViewItem-module__select-icon__Psa6v",children:m?(0,Ne.jsx)(oa,{}):(0,Ne.jsx)(Yl,{})})]})]}),d&&p&&(0,Ne.jsx)("div",{className:"treeViewItem-module__children__zgXjR",children:u.map(t=>(0,Ne.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:i,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:c,onSelect:l},t.id))})]})});function xg(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 Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach(function(t){_g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _g(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 Cg=["data","selected","startIcons","onSelect","withSearch","className"];function Ag(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 Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach(function(t){Rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rg(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 kg=(0,o().forwardRef)(function(e,t){let{data:n,selected:r,startIcons:i,onSelect:l,withSearch:s=!1,className:a}=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,Cg);const[u,d]=(0,o().useState)(""),f=(0,o().useCallback)(e=>d(e.target.value),[]),p=(0,o().useMemo)(()=>r.reduce((e,t)=>(e[t]=!0,e),{}),[r]),h=(0,o().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(Pg(Pg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(n,u),[n,u]);return(0,Ne.jsxs)("div",Eg(Eg({ref:t,className:a},c),{},{children:[s&&(0,Ne.jsx)(sp,{variant:"outlined",startIcon:(0,Ne.jsx)(Xa,{}),value:u,fullWidth:!0,onChange:f,classes:{root:"treeView-module__search__dvz4l"}}),(0,Ne.jsx)("div",{className:"styledScroll",children:h.map(({id:e,name:t,children:n})=>(0,Ne.jsx)(Sg,{title:t,value:e,searchValue:u,children:n,startIcons:i,onSelect:l,selected:p},e))})]}))}),Dg=(0,o().memo)(kg);var Mg="pairs-module__labels-with-borders__R7DHF",Lg="pairs-module__row-container-borders__aZqF4",Ig="pairs-module__values-with-borders__IoG1U";function Ng(e){const{label:t}=e,[n,r]=(0,o().useState)(t);return(0,Ne.jsx)(Ti,{label:n,children:(0,Ne.jsx)(pt,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const Tg=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function zg(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 Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach(function(t){Vg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vg(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 Hg=(0,o().forwardRef)(function(e,t){let{pairs:n,column1Width:r="50%",column2Width:o="50%",showBorder:i,minRowHeight:l,classes:s,className:a,style:c}=e,u=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,Tg);return(0,Ne.jsx)("div",Fg(Fg({ref:t,className:be()(a,s?.root),style:c},u),{},{children:n.map((e,t)=>(0,Ne.jsx)("div",{style:{minHeight:l,display:"flex"},className:be()(s?.rowContainer,{[Lg]:i}),children:e&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("div",{className:be()("pairs-module__labels-container__Sr8b_",s?.labelsContainer,{[Mg]:i}),style:{width:r,minWidth:r},children:(0,Ne.jsx)(pt,{className:"pairs-module__dim-typography__WR4xl",children:e.label})}),(0,Ne.jsx)("div",{style:{width:o,minWidth:o},className:be()("pairs-module__values-container__jB2cJ",s?.valuesContainer,{[Ig]:i}),children:(0,Ne.jsx)(Ng,{label:e.value})})]})},t))}))});var qg="chip-module__clickable__TUTgS",Bg="chip-module__filled__EHPO6",Wg="chip-module__icon__lCVDX",Kg="chip-module__icon-clickable__pVkQ_",Ug="chip-module__icon-left__ErNwI",Gg="chip-module__icon-right__CrocA",Yg="chip-module__icon-right-slot__wpFIw",Jg="chip-module__label__zdrBP",Qg="chip-module__medium__UhEci",Zg="chip-module__outlined__r71l2",Xg="chip-module__root__PRr_w",$g="chip-module__secondary__A_nQw",eb="chip-module__small__dtqpK",tb="chip-module__with-icon__wzJU8";const nb=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function rb(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 ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rb(Object(n),!0).forEach(function(t){ib(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ib(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 lb=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,iconPlacement:i="right",secondary:l,onClick:s,onIconClick:a,children:c,classes:u,className: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,nb);const p=e=>{e.stopPropagation(),a?.()},m=a?"button":"span",g=!!o&&"left"===i,b=!!o&&"right"===i;return(0,Ne.jsxs)("div",ob(ob({ref:t,className:be()(Xg,h[n],h[r],!!o&&tb,g&&Ug,b&&Gg,l&&$g,s&&qg,d,u?.root),tabIndex:s?0:void 0,role:s?"button":void 0},f),{},{onClick:s,children:[g&&(0,Ne.jsx)(m,{className:be()(Wg,a&&Kg,u?.icon),onClick:a?p:void 0,"aria-label":a?"Удалить":void 0,children:o}),c&&(0,Ne.jsx)("span",{className:be()(Jg,u?.label),children:c}),b&&(0,Ne.jsx)(m,{className:be()(Wg,Yg,a&&Kg,u?.icon),onClick:a?p:void 0,"aria-label":a?"Удалить":void 0,children:o})]}))}),sb=["width","height","className","classes","alt"];function ab(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 cb(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 ub=(0,o().forwardRef)(function(e,t){let{width:n=60,height:r=1.5*n,className:o,classes:i,alt:l="loading"}=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,sb);return(0,Ne.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(t){cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:l,width:n,height:r,className:be()("loader-module__root__RU8Ov",o,i?.root)},s))});var db="alert-module__default__Wedqm",fb="alert-module__error__hMcQT",pb="alert-module__icon__E2Ch1",hb="alert-module__info___t4NH",mb="alert-module__medium__Z731x",gb="alert-module__message__RhPdI",bb="alert-module__root__OeAcB",vb="alert-module__small__m75_f",yb="alert-module__success__frW1w",Ob="alert-module__warning__p4tWV";const wb=["alertType","componentSize","icon","children","classes","className","role"];function jb(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 Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach(function(t){xb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xb(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 Pb={success:(0,Ne.jsx)(oa,{}),warning:(0,Ne.jsx)(Aa,{}),error:(0,Ne.jsx)(Qi,{}),info:(0,Ne.jsx)(xa,{}),default:null},_b=(0,o().forwardRef)(function(e,t){let{alertType:n="info",componentSize:r="medium",icon:o,children:i,classes:l,className:s,role:a}=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,wb);const u=!1===o?null:o??Pb[n];return(0,Ne.jsxs)("div",Sb(Sb({ref:t,role:a??"alert",className:be()(bb,m[n],m[r],s,l?.root)},c),{},{children:[null!=u&&(0,Ne.jsx)("span",{className:be()(pb,l?.icon),"aria-hidden":!0,children:u}),null!=i&&!1!==i&&(0,Ne.jsx)("div",{className:be()(gb,l?.message),children:i})]}))});var Cb="card-module__actions__ZJ6UM",Ab="card-module__body-full-size__RmpRw",Eb="card-module__body-padded__l5QS5",Rb="card-module__body-padded-no-header__ZbnPS",kb="card-module__header__n_G4u",Db="card-module__header-overlay__uPDfl",Mb="card-module__medium__pVsKH",Lb="card-module__root__GQS7Y",Ib="card-module__small__wzZOs";const Nb=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Tb(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 zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach(function(t){Fb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fb(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 Vb=(0,o().forwardRef)(function(e,t){let{surfaceType:n="primary",componentSize:r="medium",title:o,actions:i,children:l,classes:s,className:a,headerOverlay:c=!0,fullSizeBody:u=!1}=e,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}(e,Nb);const f=!!o||!!i;return(0,Ne.jsxs)(Qh,zb(zb({ref:t,type:n,className:a,classes:{root:be()(Lb,g[r],s?.root)}},d),{},{children:[f&&(0,Ne.jsxs)("div",{className:be()(kb,c&&Db,s?.header),children:[o??(0,Ne.jsx)("div",{}),!!i&&(0,Ne.jsx)("div",{className:be()(Cb,s?.actions),children:i})]}),(0,Ne.jsx)("div",{className:be()(u?Ab:f?Eb:Rb,s?.body),children:l})]}))});var Hb="collapse-module__content__RPGR6",qb="collapse-module__header__O2tiZ",Bb="collapse-module__icon__nZ6Ep",Wb="collapse-module__medium__L7bmb",Kb="collapse-module__root__FEBYR",Ub="collapse-module__small__oMCcw",Gb="collapse-module__title__lBHNR";const Yb=["title","componentSize","defaultOpen","open","onOpenChange","disabled","children","classes","className"];function Jb(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 Qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jb(Object(n),!0).forEach(function(t){Zb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zb(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 Xb=(0,o().forwardRef)(function(e,t){let{title:n,componentSize:r="medium",defaultOpen:i=!1,open:l,onOpenChange:s,disabled:a=!1,children:c,classes:u,className: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,Yb);const p=ht(),h=`${p}-header`,m=void 0!==l,[g,v]=(0,o().useState)(i),y=m?l:g,O=y?Da:Na;return(0,Ne.jsxs)("div",Qb(Qb({ref:t,className:be()(Kb,b[r],d,u?.root)},f),{},{children:[(0,Ne.jsxs)("button",{type:"button",id:h,className:be()(qb,b[r],u?.header),"aria-expanded":y,"aria-controls":p,disabled:a,onClick:()=>{if(a)return;const e=!y;m||v(e),s?.(e)},children:[(0,Ne.jsx)(pt,{variant:"small"===r?"overline":"subtitle3",className:be()(Gb,b[r],u?.title),children:n}),(0,Ne.jsx)("span",{className:be()(Bb,u?.icon),"aria-hidden":!0,children:(0,Ne.jsx)(O,{size:16})})]}),y&&(0,Ne.jsx)("div",{id:p,role:"region","aria-labelledby":h,className:be()(Hb,b[r],u?.content),children:c})]}))});var $b="tabs-module__disable-border__Vw9nt",ev="tabs-module__disabled__e_X85",tv="tabs-module__extraLarge__Vr50m",nv="tabs-module__filled__Kzrnb",rv="tabs-module__filled-tabs___LvVq",ov="tabs-module__has-actions__OD8xm",iv="tabs-module__icon-only__qDPjH",lv="tabs-module__large__v3OJM",sv="tabs-module__medium__dvN0f",av="tabs-module__root__m7YiQ",cv="tabs-module__scrollable__eR0BR",uv="tabs-module__selected__YEXTT",dv="tabs-module__selected-filled__MkMIt",fv="tabs-module__selected-item-filled__eUWV8",pv="tabs-module__small__hiwdI",hv="tabs-module__tab__NoNie",mv="tabs-module__tab-actions__YBrq0",gv="tabs-module__tab-border__tvFwj",bv="tabs-module__tab-border-vertical__TVo15",vv="tabs-module__tab-filled__Gmwpo",yv="tabs-module__tab-icon__Kj5Oa",Ov="tabs-module__tab-item-filled__JTGlH",wv="tabs-module__tab-title__XsuJP",jv="tabs-module__tab-vertical__WQDkd",Sv="tabs-module__vertical__sPO6h",xv="tabs-module__vertical-label__bjXkb",Pv="tabs-module__vertical-text__XcIh7";const _v=["items","defaultSelected","onChange","componentSize","filled","filledTabs","isVertical","verticalText","disableBorder","allowDeselect","showTooltips","scrollable","useExternalState","value","classes","className"];function Cv(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 Av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(n),!0).forEach(function(t){Ev(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ev(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 Rv(e,t){let{items:n,defaultSelected:r,onChange:i,componentSize:l="medium",filled:s=!1,filledTabs:a=!1,isVertical:c=!1,verticalText:u=!1,disableBorder:d=!1,allowDeselect:f,showTooltips:p=!1,scrollable:h=!1,useExternalState:m=!1,value:g,classes:b,className:y}=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,_v);const[w,j]=(0,o().useState)(!1),[S,x]=(0,o().useState)(r),P=m?g:S,_=c||u,C=f??u,A=e=>()=>{e.isDisabled||(e.onClick?e.onClick():m?C&&P===e.value?i?.(void 0):i?.(e.value):C&&S===e.value?x(void 0):x(e.value))};return(0,o().useEffect)(()=>{w&&!m&&i?.(S),w||j(!0)},[S,m]),(0,Ne.jsx)("div",Av(Av({ref:t,className:be()(av,s&&nv,a&&rv,_&&Sv,u&&Pv,h&&cv,h&&"styledScrollThin",d&&$b,v[l],y,b?.root)},O),{},{children:n.map(e=>{const t=!e.onClick&&P===e.value,n=!!e.subButtons?.length,r=!!e.icon&&(p||null==e.name||""===e.name),o=(0,Ne.jsxs)("div",{className:be()(hv,s&&vv,a&&Ov,_&&jv,d&&$b,t?uv:void 0,t&&s?dv:void 0,t&&a?fv:void 0,e.isDisabled&&ev,b?.tab,t?b?.tabSelected:void 0,e.isDisabled?b?.tabDisabled:void 0),onClick:A(e),children:[(0,Ne.jsxs)("div",{className:be()(wv,r&&iv,n&&ov,b?.tabTitle,t?b?.tabSelectedTitle:void 0),children:[e.icon&&(0,Ne.jsx)("span",{className:yv,children:"string"==typeof e.icon?(0,Ne.jsx)("span",{className:yv,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!p&&("string"==typeof e.name?(0,Ne.jsx)("span",{className:be()(u&&xv),title:e.name,children:e.name}):null!=e.name&&(0,Ne.jsx)("span",{className:be()(u&&xv),children:e.name})),n&&(0,Ne.jsx)("div",{className:be()(mv,b?.tabActions),children:(0,Ne.jsx)(Tu,{children:e.subButtons?.map((e,t)=>(0,Ne.jsx)(He,{variant:e.variant,componentSize:l,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,compact:e.compact,disabled:e.disabled,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]}),!u&&(0,Ne.jsx)("div",{className:be()(gv,_&&bv,d&&$b,b?.tabBorder,t?b?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return p&&e.name?(0,Ne.jsx)(Ti,{label:e.name,placement:_?"right":"top",children:o},`tab-${e.value}`):o})}))}const kv=(0,o().forwardRef)(Rv),Dv=["withoutHeader","children","classes","className"];function Mv(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 Lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mv(Object(n),!0).forEach(function(t){Iv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nv=(0,o().forwardRef)(function(e,t){let{withoutHeader:n,children:r,classes:o,className: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,Dv);return(0,Ne.jsx)("div",Lv(Lv({ref:t,className:be()("layout-module__root__I9KVI",n?void 0:"layout-module__with-header___aKcB",i,o?.root)},l),{},{children:r}))}),Tv=["thickness","width","classes","className","style"];function zv(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zv(Object(n),!0).forEach(function(t){Vv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vv(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 Hv=(0,o().forwardRef)(function(e,t){let{thickness:n=1,width:r,classes:o,className:i,style:l}=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,Tv);const a=Fv(Fv({},l),{},{height:n});return void 0!==r&&(a.width=`${r}%`),(0,Ne.jsx)("hr",Fv({ref:t,className:be()("divider-module__root__IiJ2k",void 0!==r&&"divider-module__centered__iULqz",i,o?.root),style:a},s))}),qv=":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-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\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-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\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: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\n\n --scroll-size: 16px;\n --scroll-size-thin: 8px;\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.styledScrollThin {\n overflow: auto;\n}\n\n.styledScroll {\n --scroll-thickness: var(--scroll-size);\n}\n\n.styledScrollThin {\n --scroll-thickness: var(--scroll-size-thin);\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .styledScroll,\n .styledScrollThin {\n scrollbar-color: var(--theme-thumb) transparent;\n scrollbar-width: auto;\n }\n\n .styledScrollThin {\n scrollbar-width: thin;\n }\n}\n\n/* общая зона скроллбара / thumb / track */\n.styledScroll::-webkit-scrollbar,\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScroll::-webkit-scrollbar-track,\n.styledScrollThin::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: calc(var(--scroll-thickness) / 4) solid transparent;\n border-radius: calc(var(--scroll-thickness) * 0.75);\n}\n\n.styledScroll::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar {\n width: var(--scroll-thickness);\n height: var(--scroll-thickness);\n}\n\n.styledScroll::-webkit-scrollbar-button,\n.styledScrollThin::-webkit-scrollbar-button {\n display: none;\n width: 0;\n height: 0;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner,\n.styledScrollThin::-webkit-scrollbar-corner {\n background: transparent;\n}\n",Bv=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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 --theme-table-loader: rgba(0, 0, 0, 0.45);\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 --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #424242;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Wv=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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 --theme-table-loader: rgba(0, 0, 0, 0.45);\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 --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #14212e;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Kv=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(0, 0, 0, 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 --theme-table-loader: rgba(255, 255, 255, 0.58);\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(0, 0, 0, 0.04);\n --theme-overlay-8: rgba(0, 0, 0, 0.08);\n --theme-overlay-10: rgba(0, 0, 0, 0.1);\n --theme-overlay-12: rgba(0, 0, 0, 0.12);\n --theme-overlay-24: rgba(0, 0, 0, 0.24);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(0, 0, 0, 0.08);\n --theme-chip-subtle-hover: rgba(0, 0, 0, 0.12);\n --theme-chip-subtle-focus: rgba(0, 0, 0, 0.16);\n --theme-chip-subtle-disabled-bg: rgba(0, 0, 0, 0.08);\n\n --theme-input-chip-bg: var(--theme-chip-accent-bg);\n --theme-input-chip-hover: var(--theme-chip-accent-hover);\n --theme-input-chip-focus: var(--theme-chip-accent-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Uv="nntc-ui-base-styles",Gv="nntc-ui-theme-styles";function Yv(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function Jv(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const Qv=(0,o().createContext)(void 0);function Zv(){return(0,o().useContext)(Qv)??null}function Xv(){return Zv()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function $v({children:e,styleContainer:t,portalContainer:n=null}){const[r,i]=(0,o().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,o().useEffect)(()=>{const e=t??document.head;Jv(e,Uv).textContent=Yv(qv,e)},[t]),(0,o().useEffect)(()=>{const e={light:Kv,dark:Bv,darkBlue:Wv},n=t??document.head;Jv(n,Gv).textContent=Yv(e[r]??e.light,n)},[r,t]),(0,o().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 n=e=>{i(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const l={theme:r,toggleTheme:()=>{i(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{i(e);try{localStorage.setItem("theme",e)}catch{}}};return(0,Ne.jsx)(Qv.Provider,{value:l,children:(0,Ne.jsx)(gi.Provider,{value:n,children:e})})}})(),module.exports=r})();
2
+ (()=>{var e={353(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",s="week",a="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+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(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,a),i=n-o<0,l=t.clone().add(r+(i?-1:1),a);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:a,y:u,w:s,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]=m;var O="$isDayjsObject",w=function(e){return e instanceof P||!(!e||!e[O])},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 s=t.name;y[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},x=b;x.l=j,x.i=w,x.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function m(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=m.prototype;return g.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()},g.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()},g.$utils=function(){return x},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.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)},h=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)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case a:return c?p(1,g):p(0,g+1);case s:var y=this.$locale().weekStart||0,O=(m<y?m+7:m)-y;return p(c?b-O:b+(6-O),g);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=x.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[l]=f+"Date",s[d]=f+"Date",s[a]=f+"Month",s[u]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],h=c===l?this.$D+(t-this.$W):t;if(c===a||c===u){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[x.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=x.p(c),h=function(e){var t=S(f);return x.w(t.date(t.date()+Math.round(e*n)),f)};if(p===a)return this.set(a,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return h(1);if(p===s)return h(7);var m=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return x.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.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,s=this.$M,a=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")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,a,2);case"ddd":return d(n.weekdaysShort,t.$W,a,3);case"dddd":return a[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 m(i,l,!0);case"A":return m(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(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=this,m=x.p(d),g=S(n),b=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return x.m(h,g)};switch(m){case u:p=y()/12;break;case a:p=y();break;case c:p=y()/3;break;case s: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)},g.daysInMonth=function(){return this.endOf(a).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=j(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return x.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),_=P.prototype;return S.prototype=_,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",a],["$y",u],["$D",d]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,P,S),e.$i=!0),S},S.locale=j,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=y[v],S.Ls=y,S.p={},S}()},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)}()}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},(()=>{const e=Object.getPrototypeOf;let t;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"==typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"==typeof r.then)return r}const i=Object.create(null);n.r(i);const l={};t=t||[null,e({}),e([]),e(e)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>l[e]=()=>r[e]);return l.default=()=>r,n.d(i,l),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;let r={};(()=>{"use strict";n.r(r),n.d(r,{AddIcon:()=>Yl,Alert:()=>_b,AlertIcon:()=>Ea,ArrowDropDownIcon:()=>Xl,ArrowDropUpIcon:()=>ns,AttachIcon:()=>ls,BarChartIcon:()=>us,BookmarkAddIcon:()=>Uc,BookmarkIcon:()=>qc,Button:()=>He,ButtonsGroup:()=>Tu,Card:()=>Vb,Checkbox:()=>Lt,CheckboxDeselectedIcon:()=>yt,CheckboxIcon:()=>St,CheckboxSeveralIcon:()=>Ct,Checklist:()=>jp,ChevronDownIcon:()=>Na,ChevronLeftIcon:()=>zs,ChevronRightIcon:()=>qs,ChevronUpIcon:()=>Da,Chip:()=>lb,CircleFilledIcon:()=>Us,CloseIcon:()=>nl,Collapse:()=>Xb,ColorPicker:()=>tp,DateRangeIcon:()=>Qs,DateTime:()=>pf,DeleteIcon:()=>ea,Divider:()=>qv,DoneIcon:()=>oa,DonutIcon:()=>hs,DownloadIcon:()=>eu,DragIcon:()=>aa,EditIcon:()=>Rc,ErrorOutlineIcon:()=>Qi,ExportTableIcon:()=>Qc,FileUploadIcon:()=>fa,FilterClearIcon:()=>Oa,FilterIcon:()=>ga,FullScreenOffIcon:()=>zc,FullScreenOnIcon:()=>Lc,InfoIcon:()=>xa,Input:()=>sp,InputChip:()=>Ol,Layout:()=>Tv,ListIcon:()=>Va,Loader:()=>ub,LooksOneIcon:()=>vs,MapIcon:()=>js,Menu:()=>Sd,Modal:()=>Th,MoreVerticalIcon:()=>Wa,MultiSelect:()=>Ap,Pairs:()=>Hg,PointIcon:()=>au,Popover:()=>Wl,RadioButton:()=>Np,RadioDeselectedIcon:()=>Rs,RadioSelectedIcon:()=>Ls,RegexIcon:()=>Ya,SaveIcon:()=>fu,ScatterPlotIcon:()=>_s,SearchIcon:()=>Xa,Select:()=>Ad,SelectUniqueIcon:()=>nc,SettingsIcon:()=>lc,SortDownIcon:()=>uc,SortUpIcon:()=>hc,Surface:()=>Qh,TableChartIcon:()=>vc,Tabs:()=>Dv,ThemeProvider:()=>ey,Tooltip:()=>Ti,TreeView:()=>Dg,Typography:()=>pt,UploadIcon:()=>jc,VirtualTable:()=>Og,VisibilityIcon:()=>ou,WellIcon:()=>_c,WrapForLabel:()=>mp,createCalendarDate:()=>lf,usePortalContainer:()=>bi,useTheme:()=>Xv,useThemeWithFallback:()=>$v,virtualTableDefaultRowHeight:()=>32});var e=n.cw(function(e,t){var n=o(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,l=n.useEffect,s=n.useLayoutEffect,a=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(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 s(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]),a(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u}),t=n.cw(function(t,n){t.exports=e()}),o=n.cw(function(e,t){e.exports=require("react")}),i={};n.r(i),n.d(i,{active:()=>ye,compact:()=>Oe,elevated:()=>we,extraLarge:()=>je,filled:()=>Se,large:()=>xe,medium:()=>Pe,onlyIcon:()=>_e,outlined:()=>Ce,root:()=>Ee,small:()=>Ae,stateLayer:()=>Re,text:()=>ke,textSecondary:()=>De,tonal:()=>Me,withIcon:()=>Le,withoutIcon:()=>Ie});var l={};n.r(l),n.d(l,{body1:()=>We,body2:()=>Ke,body3:()=>Ue,button:()=>Ge,caption:()=>Ye,caption2:()=>Je,doubleCaption:()=>Qe,h1:()=>Ze,h2:()=>Xe,h3:()=>$e,h4:()=>et,h5:()=>tt,h6:()=>nt,h7:()=>rt,label:()=>ot,overline:()=>it,subtitle1:()=>lt,subtitle2:()=>st,subtitle3:()=>at});var s={};n.r(s),n.d(s,{arrow:()=>zt,bottomArrow:()=>Ft,content:()=>Vt,error:()=>Ht,info:()=>qt,leftArrow:()=>Bt,rightArrow:()=>Wt,success:()=>Kt,topArrow:()=>Ut,trigger:()=>Gt,warning:()=>Yt});var a={};n.r(a),n.d(a,{clickable:()=>rl,disabled:()=>ol,extraLarge:()=>il,filled:()=>ll,icon:()=>sl,large:()=>al,medium:()=>cl,outlined:()=>ul,remove:()=>dl,root:()=>fl,small:()=>pl,text:()=>hl,withIcon:()=>ml});var c={};n.r(c),n.d(c,{divider:()=>$u,extraLarge:()=>ed,item:()=>td,itemActions:()=>nd,itemDescription:()=>rd,itemDisabled:()=>od,itemIcon:()=>id,itemSelected:()=>ld,itemTextBlock:()=>sd,itemTitle:()=>ad,itemTitleTop:()=>cd,large:()=>ud,medium:()=>dd,root:()=>fd,small:()=>pd,stateLayer:()=>hd,virtualItem:()=>md,virtualSpace:()=>gd,virtualized:()=>bd});var u={};n.r(u),n.d(u,{button:()=>Dd,buttonsContainer:()=>Md,calendarContainer:()=>Ld,cell:()=>Id,cellCircle:()=>Nd,cellData:()=>Td,cellSelection:()=>zd,cellSelectionFirst:()=>Fd,cellSelectionLast:()=>Vd,cellsContainer:()=>Hd,dateTimeMode:()=>qd,medium:()=>Bd,month:()=>Wd,monthCellSelection:()=>Kd,monthCellSelectionFirst:()=>Ud,monthCellSelectionLast:()=>Gd,monthView:()=>Yd,navigationArrow:()=>Jd,navigationContainer:()=>Qd,navigationTitle:()=>Zd,navigationValue:()=>Xd,root:()=>$d,small:()=>ef,timeContainer:()=>tf,timeDivider:()=>nf,timeSelectionMarker:()=>rf,year:()=>of});var d={};n.r(d),n.d(d,{medium:()=>ap,root:()=>cp,small:()=>up});var f={};n.r(f),n.d(f,{medium:()=>zh,modal:()=>Fh,overlay1:()=>Vh,overlay2:()=>Hh,panel:()=>qh,primary:()=>Bh,root:()=>Wh,small:()=>Kh});var p={};n.r(p),n.d(p,{alignCenter:()=>Zh,alignLeft:()=>Xh,alignRight:()=>$h,bodyLock:()=>em,borderFrame:()=>tm,borderSpacer:()=>nm,bordersAll:()=>rm,bordersHorizontal:()=>om,bordersVertical:()=>im,bottomBorder:()=>lm,clickable:()=>sm,editable:()=>am,error:()=>cm,evenRow:()=>um,firstThRow:()=>dm,input:()=>fm,label:()=>pm,marginLeftChanging:()=>hm,medium:()=>mm,modalContent:()=>gm,pageLoadingLabel:()=>bm,pageLoadingLane:()=>vm,pageLoadingTrack:()=>ym,pageLoadingUp:()=>Om,rightBorder:()=>wm,rightBorderWithBottom:()=>jm,root:()=>Sm,rowButtonTrigger:()=>xm,rowspanContent:()=>Pm,selectRows:()=>_m,selected:()=>Cm,showInModal:()=>Em,small:()=>Am,sticky:()=>Rm,success:()=>km,table:()=>Dm,tableContainer:()=>Mm,td:()=>Lm,th:()=>Im,thCell:()=>Nm,thHiddenColumn:()=>Tm,thLeftBorder:()=>zm,thRightBorder:()=>Fm,tr:()=>Vm,verticalAlignCenter:()=>Hm,verticalAlignFlexEnd:()=>qm,verticalAlignFlexStart:()=>Bm,viewCell:()=>Wm,viewSpan:()=>Km});var h={};n.r(h),n.d(h,{clickable:()=>qg,filled:()=>Bg,icon:()=>Wg,iconClickable:()=>Kg,iconLeft:()=>Ug,iconRight:()=>Gg,iconRightSlot:()=>Yg,label:()=>Jg,medium:()=>Qg,outlined:()=>Zg,root:()=>Xg,secondary:()=>$g,small:()=>eb,withIcon:()=>tb});var m={};n.r(m),n.d(m,{_default:()=>db,error:()=>fb,icon:()=>pb,info:()=>hb,medium:()=>mb,message:()=>gb,root:()=>bb,small:()=>vb,success:()=>yb,warning:()=>Ob});var g={};n.r(g),n.d(g,{actions:()=>Cb,bodyFullSize:()=>Eb,bodyPadded:()=>Ab,bodyPaddedNoHeader:()=>Rb,header:()=>kb,headerOverlay:()=>Db,medium:()=>Mb,root:()=>Lb,small:()=>Ib});var b={};n.r(b),n.d(b,{content:()=>Hb,header:()=>qb,icon:()=>Bb,medium:()=>Wb,root:()=>Kb,small:()=>Ub,title:()=>Gb});var v={};n.r(v),n.d(v,{disableBorder:()=>$b,disabled:()=>ev,extraLarge:()=>tv,fillEvenly:()=>nv,filled:()=>rv,filledTabs:()=>ov,hasActions:()=>iv,iconOnly:()=>lv,large:()=>sv,medium:()=>av,root:()=>cv,scrollable:()=>uv,selected:()=>dv,selectedFilled:()=>fv,selectedItemFilled:()=>pv,small:()=>hv,tab:()=>mv,tabActions:()=>gv,tabBorder:()=>bv,tabBorderVertical:()=>vv,tabFilled:()=>yv,tabIcon:()=>Ov,tabItemFilled:()=>wv,tabTitle:()=>jv,tabVertical:()=>Sv,vertical:()=>xv,verticalLabel:()=>Pv,verticalText:()=>_v});const y=e=>"string"==typeof e,O=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},w=e=>null==e?"":String(e),j=/###/g,S=e=>e&&e.includes("###")?e.replace(j,"."):e,x=e=>!e||y(e),P=(e,t,n)=>{const r=y(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(x(e))return{};const t=S(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return x(e)?{}:{obj:e,k:S(r[o])}},_=(e,t,n)=>{const{obj:r,k:o}=P(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),s=P(e,l,Object);for(;void 0===s.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),s=P(e,l,Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},C=(e,t)=>{const{obj:n,k:r}=P(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},E=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?y(e[r])||e[r]instanceof String||y(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):E(e[r],t[r],n):e[r]=t[r]);return e},A=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},k=e=>y(e)?e.replace(/[&<>"'\/]/g,e=>R[e]):e,D=[" ",",","?","!",";"],M=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),L=(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},I=e=>e?.replace(/_/g,"-"),N={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 T{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||N,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=>y(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),y(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new T(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new T(this.logger,e)}}var z=new T;class F{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 V extends F{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):y(n)&&o?l.push(...n.split(o)):l.push(n)));const s=C(this.data,l);return s||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!s&&i&&y(n)?L(this.data?.[e]?.[t],n,o):s}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),_(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)(y(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 s=C(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?E(s,n,o):s={...s,...n},_(this.data,l,s),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 H={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 q=Symbol("i18next/PATH_KEY");function B(e,t){const{[q]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===q?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(n.length>1&&o){const e=t?.ns,l=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(l&&(i?l:l.length>1?l.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const W=e=>!y(e)&&"boolean"!=typeof e&&"number"!=typeof e;class K extends F{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=z.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=W(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=D.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=M.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:y(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:y(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=B(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?B(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:s}=this.extractFromKey(e[e.length-1],r),a=s[s.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:`${a}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(r)}:`${a}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const h=f?.usedKey||l,m=f?.exactUsedKey||l,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!y(r.count),O=K.hasDefaultValue(r),w=v?this.pluralResolver.getSuffix(u,r.count,r):"",j=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=v&&!r.ordinal&&0===r.count,x=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${j}`]||r.defaultValue;let P=p;b&&!p&&O&&(P=x);const _=W(P),C=Object.prototype.toString.apply(P);if(!(b&&P&&_)||["[object Number]","[object Function]","[object RegExp]"].includes(C)||y(g)&&Array.isArray(P))if(b&&y(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&O&&(t=!0,p=x),this.isValidLookup(p)||(o=!0,p=l);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=O&&x!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,a,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?x: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=O&&n!==p?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,a,t,o,d,r),this.emit("missingKey",e,a,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&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}`]||x)})}):n(e,l,x))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${a}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}${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(h,P,{...r,ns:s}):`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(P),t=e?[]:{},n=e?m:h;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=O&&!p?this.translate(o,{...r,defaultValue:W(x)?x[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=P[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=y(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 s=n.replace&&!y(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,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=y(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=H.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 y(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?B(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),a=s.key;r=a;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!y(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(y(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=[a];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,a,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(a+e.replace(o,this.options.pluralSeparator)),l.push(a+e),d&&l.push(a+n)),f){const r=`${a}${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 s;for(;s=l.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,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&&!y(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r={...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 U{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=z.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=I(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=I(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(y(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)),y(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.options.fallbackLng,r=Array.isArray(n)?n.join("|"):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);const o=void 0===t||!1===t||y(t),i=void 0===t&&"function"==typeof this.options.fallbackLng;let l=null;if(y(e)&&o&&!i){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${n}`}if(null!==l){const e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}const s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),a=[],c=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return y(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):y(e)&&c(this.formatLanguageCode(e)),s.forEach(e=>{a.includes(e)||c(this.formatLanguageCode(e))}),null!==l?(this.resolveHierarchyCache[l]=a,a.slice()):a}}const G={zero:0,one:1,two:2,few:3,many:4,other:5},Y={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class J{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=z.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=I("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!"),Y;if(!e.match(/-|_/))return Y;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)=>G[e]-G[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 Q=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=C(e,n);return void 0!==r?r:C(t,n)})(e,t,n);return!i&&o&&y(n)&&(i=L(e,n,r),void 0===i&&(i=L(t,n,r))),i},Z=e=>e.replace(/\$/g,"$$$$");class X{constructor(e={}){this.logger=z.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:s,formatSeparator:a,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:k,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?A(o):i||"{{",this.suffix=l?A(l):s||"}}",this.formatSeparator=a||",",this.unescapePrefix=c?"":u?A(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?A(c):"",this.nestingPrefix=d?A(d):f||A("$t("),this.nestingSuffix=p?A(p):h||A(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||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 s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},a=e=>{if(!e.includes(this.formatSeparator)){const o=Q(t,s,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(Q(t,s,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=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=a(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=y(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 y(i)||this.useRawValueToEscape||(i=w(i));const s=t.safeValue(i);if(e=e.replace(o[0],Z(s)),u?(t.regex.lastIndex+=s.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(`${A(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),s=o.match(/"/g);((l?.length??0)%2==0&&!s||(s?.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 s=[];i={...n},i=i.replace&&!y(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const a=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==a&&(s=r[1].slice(a).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,a)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!y(o))return o;y(o)||(o=w(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],Z(w(o))),this.regexp.lastIndex=0}return e}}const $=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 s=t[l];return s||(s=e(I(r),o),t[l]=s),s(n)}},ee=e=>(t,n,r)=>e(I(n),r)(t);class te{constructor(e={}){this.logger=z.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?$:ee;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()]=$(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator),i=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;i.push(t)}const l=i.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]||{},s=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...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 l}}class ne extends F{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=z.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={},s={};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===s[t]&&(s[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(s)}}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}=P(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,s)=>{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&&s&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{const n=s(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();y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),y(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 s={...i,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let o;o=5===a.length?a(e,t,n,r,s):a(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 a(e,t,n,r,l,s)}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 re=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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]),y(e[1])&&(t.defaultValue=e[1]),y(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}),oe=e=>(y(e.ns)&&(e.ns=[e.ns]),y(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),y(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ie=()=>{};class le extends F{constructor(e={},t){var n;if(super(),this.options=oe(e),this.services={},this.logger=z,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&&(y(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=re();this.options={...n,...this.options,...oe(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?z.init(r(this.modules.logger),this.options):z.init(null,this.options),e=this.modules.formatter?this.modules.formatter:te;const t=new U(this.options);this.store=new V(this.options.resources,this.options);const n=this.services;n.logger=z,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new J(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 X(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ne(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 K(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=ie),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=O(),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=ie){let n=t;const r=y(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=O();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=ie),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&&H.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=O();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=y(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(y(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,r){const o=r?.scopeNs,i=(e,t,...r)=>{let l;l="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs;const s=void 0!==l.ns&&null!==l.ns;l.ns=l.ns||i.ns,""!==l.keyPrefix&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const a={...this.options,...l};Array.isArray(o)&&!s&&(a.ns=o),"function"==typeof l.keyPrefix&&(l.keyPrefix=B(l.keyPrefix,a));const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(e)?u=e.map(e=>("function"==typeof e&&(e=B(e,a)),`${l.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=B(e,a)),u=l.keyPrefix?`${l.keyPrefix}${c}${e}`:e),this.t(u,l)};return y(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}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=O();return this.options.ns?(y(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=O();y(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 U(re());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 le(e,t);return n.createInstance=le.createInstance,n}cloneInstance(e={},t=ie){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new le(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 V(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...re().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new X(n)}return o.translator=new K(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 se=le.createInstance(),ae=(se.createInstance,se.dir,se.init,se.loadResources,se.reloadResources,se.use,se.changeLanguage,se.getFixedT,se.t,se.exists,se.setDefaultNamespace,se.hasLoadedNamespace,se.loadNamespaces,se.loadLanguages,/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g),ce={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ue=e=>ce[e];let de,fe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(ae,ue),transDefaultProps:void 0};const pe={type:"3rdParty",init(e){((e={})=>{fe={...fe,...e}})(e.options.react),(e=>{de=e})(e)}},he=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Search..."},"multiSelect":{"selectedItems":"Selected items"},"checklist":{"selected":"Selected","cancel":"Cancel","selectAll":"Select all"},"list":{"loading":"Loading...","notFound":"Nothing found"}},"view":{"virtualTable":{"sort":"Sort","AZ":"Asc","ZA":"Desc","sortAndFiltration":"Sort and filtration","uniqueValues":"Unique values","uniqueOnly":"Unique only","loadingData":"Loading data...","noValue":"< no value >"}}}}'),me=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Поиск..."},"multiSelect":{"selectedItems":"Выбрано элементов"},"checklist":{"selected":"Выбранное","cancel":"Отменить","selectAll":"Выбрать все"},"list":{"loading":"Загрузка...","notFound":"Ничего не найдено"}},"view":{"virtualTable":{"sort":"Сортировка","AZ":"По возрастанию","ZA":"По убыванию","sortAndFiltration":"Сортировка и фильтрация","uniqueValues":"Уникальность значений","uniqueOnly":"Только уникальные","loadingData":"Идёт загрузка данных...","noValue":"< нет значения >"}}}}');se.use(pe).init({resources:{en:{translation:he},ru:{translation:me}},lng:"ru",fallbackLng:"en",interpolation:{escapeValue:!1}});var ge=n(942),be=n.n(ge);function ve(){return ve.c||(ve.c=n.t(o(),2))}o();var ye="button-module__active__J1ZMQ",Oe="button-module__compact___dXxT",we="button-module__elevated__DfXlq",je="button-module__extraLarge__G1XhO",Se="button-module__filled__tpB2J",xe="button-module__large__QVzg5",Pe="button-module__medium__NzTCo",_e="button-module__only-icon__MYlMe",Ce="button-module__outlined__U7Ix5",Ee="button-module__root__d8Qm7",Ae="button-module__small__yTLSt",Re="button-module__state-layer__ZxKUR",ke="button-module__text__ThaTQ",De="button-module__text-secondary__UtgHY",Me="button-module__tonal__LGQFG",Le="button-module__with-icon__JrK73",Ie="button-module__without-icon__xZxlu";const Ne=require("react/jsx-runtime"),Te=["variant","componentSize","icon","textSecondary","isActive","compact","className","children","classes"];function ze(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(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 He=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,textSecondary:l,isActive:s,compact:a,className:c,children:u,classes: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,Te);return(0,Ne.jsx)("button",Fe(Fe({className:be()(Ee,i[n],i[r],o?u?Le:_e:Ie,s?ye:void 0,l?De:void 0,a?Oe:void 0,c,d?.root)},f),{},{ref:t,children:(0,Ne.jsxs)("span",{className:be()(Re,d?.stateLayer),children:[o,u]})}))});function qe(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Be=parseInt(o().version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=qe(r,t),o="function"==typeof e;n.push(o?e:()=>qe(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)qe(n,t)}},We="typography-module__body1__aH5C7",Ke="typography-module__body2__tLnbZ",Ue="typography-module__body3__ArlMM",Ge="typography-module__button__QH0WB",Ye="typography-module__caption__Um0hc",Je="typography-module__caption2__ftlcn",Qe="typography-module__doubleCaption__DKOZy",Ze="typography-module__h1__WhV07",Xe="typography-module__h2__wu3B3",$e="typography-module__h3__g4nW1",et="typography-module__h4__bevKW",tt="typography-module__h5__zljak",nt="typography-module__h6__mAHOd",rt="typography-module__h7__k_Iry",ot="typography-module__label__jNXgm",it="typography-module__overline__LOINe",lt="typography-module__subtitle1__D0BxG",st="typography-module__subtitle2__DLkzN",at="typography-module__subtitle3__Yqzol";const ct=["variant","component","children","className"];function ut(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 dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach(function(t){ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ft(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 pt=(0,o().forwardRef)(function(e,t){let{variant:n="body2",component:r,children:o,className:i}=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,ct);const a=r||"span";return(0,Ne.jsx)(a,dt(dt({className:be()(l[n],i)},s),{},{ref:t,children:o}))});function ht(){const e=o();return"function"==typeof e.useId?e.useId():(0,o().useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const mt=({size:e=24,color:t="currentColor",className:n,children:r})=>(0,Ne.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 gt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach(function(t){vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vt(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 yt=e=>(0,Ne.jsx)(mt,bt(bt({},e),{},{children:(0,Ne.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 Ot(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 wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach(function(t){jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jt(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 St=e=>(0,Ne.jsx)(mt,wt(wt({},e),{},{children:(0,Ne.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 xt(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach(function(t){_t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _t(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 Ct=e=>(0,Ne.jsx)(mt,Pt(Pt({},e),{},{children:(0,Ne.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 Et="checkbox-module__checkbox__yO066",At="checkbox-module__pressed__lPIee";const Rt=["label","several","componentSize","classes","id"];function kt(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach(function(t){Mt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mt(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 Lt=(0,o().forwardRef)(function(e,t){const{label:n,several:r,componentSize:i="medium",classes:l,id:s}=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,Rt),c=(0,o().useRef)(null),u=ht(),d=s??u;(0,o().useEffect)(()=>{const e=c.current;if(!e)return;const t=()=>e.classList.remove(At),n=()=>e.classList.add(At);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const f="large"===i?"subtitle1":"subtitle2";return(0,Ne.jsxs)("div",{className:be()("checkbox-module__root__AzwHw",l?.root),children:[(0,Ne.jsx)("input",Dt({ref:Be([c,t]),type:"checkbox",className:be()("checkbox-module__input__qmuqO",l?.input),id:d,title:n},a)),(0,Ne.jsxs)("label",{htmlFor:d,className:be()("checkbox-module__label__wmkmp",l?.label),title:n,children:[r?(0,Ne.jsx)("span",{className:be()(Et,"checkbox-module__several__MIC_C",l?.checkbox),children:(0,Ne.jsx)(Ct,{})}):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("span",{className:be()(Et,"checkbox-module__deselected__xrQoR",l?.checkbox),children:(0,Ne.jsx)(yt,{})}),(0,Ne.jsx)("span",{className:be()(Et,"checkbox-module__selected__MsgZN",l?.checkbox),children:(0,Ne.jsx)(St,{})})]}),!!n&&(0,Ne.jsx)(pt,{variant:f,className:be()("checkbox-module__label-text__uUcXJ",l?.labelText),children:n})]})]})}),It=new Uint8Array(16),Nt=[];for(let e=0;e<256;++e)Nt.push((e+256).toString(16).slice(1));const Tt=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(It);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(Nt[e[t+0]]+Nt[e[t+1]]+Nt[e[t+2]]+Nt[e[t+3]]+"-"+Nt[e[t+4]]+Nt[e[t+5]]+"-"+Nt[e[t+6]]+Nt[e[t+7]]+"-"+Nt[e[t+8]]+Nt[e[t+9]]+"-"+Nt[e[t+10]]+Nt[e[t+11]]+Nt[e[t+12]]+Nt[e[t+13]]+Nt[e[t+14]]+Nt[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var zt="tooltip-module__arrow__t3qHm",Ft="tooltip-module__bottom-arrow__BY759",Vt="tooltip-module__content__GmJjH",Ht="tooltip-module__error__asP80",qt="tooltip-module__info__SGNDR",Bt="tooltip-module__left-arrow__Wpg7W",Wt="tooltip-module__right-arrow__qwOJk",Kt="tooltip-module__success__f_f_u",Ut="tooltip-module__top-arrow__k7G3S",Gt="tooltip-module__trigger__fBwzk",Yt="tooltip-module__warning__aZtHW";function Jt(){return"undefined"!=typeof window}function Qt(e){return $t(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xt(e){var t;return null==(t=($t(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $t(e){return!!Jt()&&(e instanceof Node||e instanceof Zt(e).Node)}function en(e){return!!Jt()&&(e instanceof Element||e instanceof Zt(e).Element)}function tn(e){return!!Jt()&&(e instanceof HTMLElement||e instanceof Zt(e).HTMLElement)}function nn(e){return!(!Jt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot)}function rn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function on(e){return/^(table|td|th)$/.test(Qt(e))}function ln(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const sn=/transform|translate|scale|rotate|perspective|filter/,an=/paint|layout|strict|content/,cn=e=>!!e&&"none"!==e;let un;function dn(e){const t=en(e)?hn(e):e;return cn(t.transform)||cn(t.translate)||cn(t.scale)||cn(t.rotate)||cn(t.perspective)||!fn()&&(cn(t.backdropFilter)||cn(t.filter))||sn.test(t.willChange||"")||an.test(t.contain||"")}function fn(){return null==un&&(un="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),un}function pn(e){return/^(html|body|#document)$/.test(Qt(e))}function hn(e){return Zt(e).getComputedStyle(e)}function mn(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gn(e){if("html"===Qt(e))return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||Xt(e);return nn(t)?t.host:t}function bn(e){const t=gn(e);return pn(t)?(e.ownerDocument||e).body:tn(t)&&rn(t)?t:bn(t)}function vn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=bn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Zt(o);if(i){const e=yn(l);return t.concat(l,l.visualViewport||[],rn(o)?o:[],e&&n?vn(e):[])}return t.concat(o,vn(o,[],n))}function yn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var On=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[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(","),wn="undefined"==typeof Element,jn=wn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sn=!wn&&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},xn=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]"):xn(e.parentNode))},Pn=function(e,t,n){if(xn(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(On));return t&&jn.call(e,On)&&r.unshift(e),r.filter(n)},_n=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!xn(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=l.length?l:i.children,a=_n(s,!0,n);n.flatten?r.push.apply(r,a):r.push({scopeParent:i,candidates:a})}else{jn.call(i,On)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!xn(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=_n(!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},Cn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},En=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))&&!Cn(e)?0:e.tabIndex},An=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Rn=function(e){return"INPUT"===e.tagName},kn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Dn=function(e,t){return!(t.disabled||function(e){return Rn(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});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=jn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(jn.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return kn(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,a=Sn(e);if(s&&!s.shadowRoot&&!0===r(s))return kn(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=l}if(function(e){var t,n,r,o,i=e&&Sn(e),l=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(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));!s&&l;){var a,c,u;s=!(null===(c=l=null===(a=i=Sn(l))||void 0===a?void 0:a.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return s}(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!!jn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Mn=function(e,t){return!(function(e){return function(e){return Rn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Sn(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)||En(t)<0||!Dn(e,t))},Ln=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},In=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=En(e);return n<0&&t&&!Cn(e)?0:n}(i,o),s=o?In(e.candidates):i;0===l?o?t.push.apply(t,s):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:s})}),n.sort(An).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Nn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?_n([e],t.includeContainer,{filter:Mn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ln}):Pn(e,t.includeContainer,Mn.bind(null,t)),In(n)},Tn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==jn.call(e,On)&&Mn(t,e)};function zn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Fn(){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 Vn(){return/apple/i.test(navigator.vendor)}function Hn(){const e=/android/i;return e.test(zn())||e.test(Fn())}function qn(){return Fn().includes("jsdom/")}const Bn="data-floating-ui-focusable";function Wn(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 Kn(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&nn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Un(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Gn(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 Yn(e){return(null==e?void 0:e.ownerDocument)||document}function Jn(e){return tn(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Qn(e){return!!e&&"combobox"===e.getAttribute("role")&&Jn(e)}function Zn(e){return e?e.hasAttribute(Bn)?e:e.querySelector("["+Bn+"]")||e:null}function Xn(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,...Xn(e,t.id,n)])}function $n(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 er(e){e.preventDefault(),e.stopPropagation()}function tr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var nr="undefined"!=typeof document?o().useLayoutEffect:function(){};function rr(e){const t=o().useRef(e);return nr(()=>{t.current=e}),t}const or={...ve()}.useInsertionEffect||(e=>e());function ir(e){const t=o().useRef(()=>{});return or(()=>{t.current=e}),o().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 lr=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function sr(e,t){const n=Nn(e,lr()),r=n.length;if(0===r)return;const o=Wn(Yn(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function ar(e){return sr(Yn(e).body,1)||e}function cr(e){return sr(Yn(e).body,-1)||e}function ur(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kn(n,r)}function dr(e){Nn(e,lr()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function fr(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 pr=require("react-dom"),hr=Math.min,mr=Math.max,gr=Math.round,br=Math.floor,vr=e=>({x:e,y:e}),yr={left:"right",right:"left",bottom:"top",top:"bottom"};function Or(e,t,n){return mr(e,hr(t,n))}function wr(e,t){return"function"==typeof e?e(t):e}function jr(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function xr(e){return"x"===e?"y":"x"}function Pr(e){return"y"===e?"height":"width"}function _r(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Cr(e){return xr(_r(e))}function Er(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ar=["left","right"],Rr=["right","left"],kr=["top","bottom"],Dr=["bottom","top"];function Mr(e){const t=jr(e);return yr[t]+e.slice(t.length)}function Lr(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function Ir(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 Nr(e,t,n){let{reference:r,floating:o}=e;const i=_r(t),l=Cr(t),s=Pr(l),a=jr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(a){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}}const h=Sr(t);return h&&(p[l]+=f*("end"===h?1:-1)*(n&&c?-1:1)),p}async function Tr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=wr(t,e),h=Lr(p),m=s[f?"floating"===d?"reference":"floating":d],g=Ir(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),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(s.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},O=Ir(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:a}):b);return{top:(g.top-O.top+h.top)/y.y,bottom:(O.bottom-g.bottom+h.bottom)/y.y,left:(g.left-O.left+h.left)/y.x,right:(O.right-g.right+h.right)/y.x}}const zr=new Set(["left","top"]);function Fr(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=gr(n)!==i||gr(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function Vr(e){return en(e)?e:e.contextElement}function Hr(e){const t=Vr(e);if(!tn(t))return vr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Fr(t);let l=(i?gr(n.width):n.width)/r,s=(i?gr(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const qr=vr(0);function Br(e){const t=Zt(e);return fn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qr}function Wr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Vr(e);let l=vr(1);t&&(r?en(r)&&(l=Hr(r)):l=Hr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Zt(e)}(i,n,r)?Br(i):vr(0);let a=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i&&r){const e=Zt(i),t=en(r)?Zt(r):r;let n=e,o=yn(n);for(;o&&t!==n;){const e=Hr(o),t=o.getBoundingClientRect(),r=hn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=i,c+=l,n=Zt(o),o=yn(n)}}return Ir({width:u,height:d,x:a,y:c})}function Kr(e,t){const n=mn(e).scrollLeft;return t?t.left+n:Wr(Xt(e)).left+n}function Ur(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kr(e,n),y:n.top+t.scrollTop}}function Gr(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=Zt(e),i=Xt(e),l=o.visualViewport;let s=i.clientWidth,a=i.clientHeight,c=0,u=0;if(l){const e=!fn()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(s=l.width,a=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(Kr(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(s-=l)}return{width:s,height:a,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=mn(e),n=e.ownerDocument.body,r=mr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=mr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Kr(e);const l=-t.scrollTop;return"rtl"===hn(n).direction&&(i+=mr(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(Xt(e));else if(en(t))r=function(e,t){const n=Wr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hr(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Br(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ir(r)}function Yr(e,t,n){const r=tn(t),o=Xt(t),i="fixed"===n,l=Wr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const a=vr(0);if((r||!i)&&(("body"!==Qt(t)||rn(o))&&(s=mn(t)),r)){const e=Wr(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&o&&(a.x=Kr(o));const c=!o||r||i?vr(0):Ur(o,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}function Jr(e){return"static"===hn(e).position}function Qr(e,t){if(!tn(e)||"fixed"===hn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Xt(e)===n&&(n=n.ownerDocument.body),n}function Zr(e,t){const n=Zt(e);if(ln(e))return n;if(!tn(e)){let t=gn(e);for(;t&&!pn(t);){if(en(t)&&!Jr(t))return t;t=gn(t)}return n}let r=Qr(e,t);for(;r&&on(r)&&Jr(r);)r=Qr(r,t);return r&&pn(r)&&Jr(r)&&!dn(r)?n:r||function(e){let t=gn(e);for(;tn(t)&&!pn(t);){if(dn(t))return t;if(ln(t))return null;t=gn(t)}return null}(e)||n}const Xr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=Xt(r),s=!!t&&ln(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},c=vr(1);const u=vr(0),d=tn(r);if((d||!i)&&(("body"!==Qt(r)||rn(l))&&(a=mn(r)),d)){const e=Wr(r);c=Hr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?vr(0):Ur(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-a.scrollTop*c.y+u.y+f.y}},getDocumentElement:Xt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ln(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=vn(e,[],!1).filter(e=>en(e)&&"body"!==Qt(e)),o=null;const i="fixed"===hn(e).position;let l=i?gn(e):e;for(;en(l)&&!pn(l);){const e=hn(l),t=dn(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=gn(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Gr(t,i[0],o);let s=l.top,a=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Gr(t,i[e],o);s=mr(n.top,s),a=hr(n.right,a),c=hr(n.bottom,c),u=mr(n.left,u)}return{width:a-u,height:c-s,x:u,y:s}},getOffsetParent:Zr,getElementRects:async function(e){const t=this.getOffsetParent||Zr,n=this.getDimensions,r=await n(e.floating);return{reference:Yr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Fr(e);return{width:t,height:n}},getScale:Hr,isElement:en,isRTL:function(e){return"rtl"===hn(e).direction}};function $r(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,c=Vr(e),u=o||i?[...c?vn(c):[],...t?vn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t,n){let r,o=null;const i=Xt(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;const h={rootMargin:-br(d)+"px "+-br(i.clientWidth-(u+f))+"px "+-br(i.clientHeight-(d+p))+"px "+-br(u)+"px",threshold:mr(0,hr(1,a))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!$r(c,e.getBoundingClientRect()))return s();if(n!==a){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}const a=Zt(e),c=()=>s(n);return a.addEventListener("resize",c),s(!0),()=>{a.removeEventListener("resize",c),l()}}(c,n,i):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!a&&h.observe(c),t&&h.observe(t));let m=a?Wr(e):null;return a&&function t(){const r=Wr(e);m&&!$r(m,r)&&n(),m=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=h)||e.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const to=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:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=wr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=jr(o),v=_r(s),y=jr(s)===s,O=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(y||!m?[Mr(s)]:function(e){const t=Mr(e);return[Er(e),t,Er(t)]}(s)),j="none"!==h;!f&&j&&w.push(...function(e,t,n,r){const o=Sr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Rr:Ar:t?Ar:Rr;case"left":case"right":return t?kr:Dr;default:return[]}}(jr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Er)))),i}(s,m,h,O));const S=[s,...w],x=await a.detectOverflow(t,g),P=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&P.push(x[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Sr(e),o=Cr(e),i=Pr(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Mr(l)),[l,Mr(l)]}(o,l,O);P.push(x[e[0]],x[e[1]])}if(_=[..._,{placement:o,overflows:P}],!P.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=S[e];if(t&&("alignment"!==d||v===_r(t)||_.every(e=>_r(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(E=_.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 A;const e=null==(A=_.filter(e=>{if(j){const t=_r(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:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},no=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s,middlewareData:a}=t,{element:c,padding:u=0}=wr(e,t)||{};if(null==c)return{};const d=Lr(u),f={x:n,y:r},p=Cr(o),h=Pr(p),m=await l.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",O=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],j=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let S=j?j[y]:0;S&&await(null==l.isElement?void 0:l.isElement(j))||(S=s.floating[y]||i.floating[h]);const x=O/2-w/2,P=S/2-m[h]/2-1,_=hr(d[b],P),C=hr(d[v],P),E=S-m[h]-C,A=S/2-m[h]/2+x,R=Or(_,A,E),k=!a.arrow&&null!=Sr(o)&&A!==R&&i.reference[h]/2-(A<_?_:C)-m[h]/2<0,D=k?A<_?A-_:A-E:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:A-R-D,...k&&{alignmentOffset:D}},reset:k}}}),ro=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...Xr,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:Tr},a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Nr(c,r,a),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:b}=m,{x:v,y,data:O,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[g]={...h[g],...O},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Nr(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var oo="undefined"!=typeof document?o().useLayoutEffect:function(){};function io(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(!io(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||io(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lo(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function so(e,t){const n=lo(e);return Math.round(t*n)/n}function ao(e){const t=o().useRef(e);return oo(()=>{t.current=e}),t}const co=(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:s}=t,a=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=jr(n),s=Sr(n),a="y"===_r(n),c=zr.has(l)?-1:1,u=i&&a?-1:1,d=wr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},uo=(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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=wr(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=_r(o),p=xr(f);let h=u[p],m=u[f];const g=(e,t)=>Or(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);l&&(h=g(p,h)),s&&(m=g(f,m));const b=a.fn({...t,[p]:h,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:l,[f]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},fo=(e,t)=>{const n=to(e);return{name:n.name,fn:n.fn,options:[e,t]}},po=(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?no({element:n.current,padding:r}).fn(t):{}:n?no({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function ho(e){const t=o().useRef(void 0),n=o().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 o().useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const mo="data-floating-ui-focusable",go="active",bo="selected",vo={...ve()};let yo=!1,Oo=0;const wo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Oo++,jo=vo.useId||function(){const[e,t]=o().useState(()=>yo?wo():void 0);return nr(()=>{null==e&&t(wo())},[]),o().useEffect(()=>{yo=!0},[]),e};const So=o().createContext(null),xo=o().createContext(null),Po=()=>{var e;return(null==(e=o().useContext(So))?void 0:e.id)||null},_o=()=>o().useContext(xo);function Co(e){return"data-floating-ui-"+e}function Eo(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Ao=Co("safe-polygon");function Ro(e,t,n){if(n&&!tr(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 ko(e){return"function"==typeof e?e():e}let Do=0;function Mo(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Do);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Do=requestAnimationFrame(i)}const Lo={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Io(e){return"inert"===e?Lo.inert:"aria-hidden"===e?Lo["aria-hidden"]:Lo.none}let No=new WeakSet,To={},zo=0;function Fo(e){return e?nn(e)?e.host:Fo(e.parentNode):null}const Vo=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Fo(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ho(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=Vo(t,e),s=new Set,a=new Set(l),c=[];To[o]||(To[o]=new WeakMap);const u=To[o];return l.forEach(function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!a.has(t)&&[].forEach.call(t.children,t=>{if("script"!==Qt(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Io(i),l=(r.get(t)||0)+1,s=(u.get(t)||0)+1;r.set(t,l),u.set(t,s),c.push(t),1===l&&n&&No.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),s.clear(),zo++,()=>{c.forEach(e=>{const t=Io(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!No.has(e)&&i&&e.removeAttribute(i),No.delete(e)),r||e.removeAttribute(o)}),zo--,zo||(Lo.inert=new WeakMap,Lo["aria-hidden"]=new WeakMap,Lo.none=new WeakMap,No=new WeakSet,To={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const qo={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},Bo=o().forwardRef(function(e,t){const[n,r]=o().useState();nr(()=>{Vn()&&r("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Co("focus-guard")]:"",style:qo};return(0,Ne.jsx)("span",{...e,...i})}),Wo={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ko=o().createContext(null),Uo=Co("portal");function Go(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,l=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=jo(),i=Yo(),[l,s]=o().useState(null),a=o().useRef(null);return nr(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{a.current=null})},[l]),nr(()=>{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(Uo,""),e.appendChild(n),a.current=n,s(n)},[t,r]),nr(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!$t(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const l=document.createElement("div");l.id=r,l.setAttribute(Uo,""),e=o||e,e.appendChild(l),a.current=l,s(l)},[t,n,r,i]),l}({id:n,root:r}),[s,a]=o().useState(null),c=o().useRef(null),u=o().useRef(null),d=o().useRef(null),f=o().useRef(null),p=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&i&&!(!r&&!l);return o().useEffect(()=>{if(l&&i&&!p)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&ur(e)&&("focusin"===e.type?fr:dr)(l)}},[l,i,p]),o().useEffect(()=>{l&&(h||fr(l))},[h,l]),(0,Ne.jsxs)(Ko.Provider,{value:o().useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:l,setFocusManagerState:a}),[i,l]),children:[m&&l&&(0,Ne.jsx)(Bo,{"data-type":"outside",ref:c,onFocus:e=>{if(ur(e,l)){var t;null==(t=d.current)||t.focus()}else{const e=cr(s?s.domReference:null);null==e||e.focus()}}}),m&&l&&(0,Ne.jsx)("span",{"aria-owns":l.id,style:Wo}),l&&pr.createPortal(t,l),m&&l&&(0,Ne.jsx)(Bo,{"data-type":"outside",ref:u,onFocus:e=>{if(ur(e,l)){var t;null==(t=f.current)||t.focus()}else{const t=ar(s?s.domReference:null);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Yo=()=>o().useContext(Ko);function Jo(e){return o().useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Qo=[];function Zo(){Qo=Qo.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function Xo(){Zo();const e=Qo[Qo.length-1];return null==e?void 0:e.deref()}function $o(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=lr(),o=function(e,t){return(t=t||{}).getShadowRoot?_n([e],t.includeContainer,{filter:Dn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Pn(e,t.includeContainer,Dn.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return Tn(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 ei=o().forwardRef(function(e,t){return(0,Ne.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:qo})});function ti(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:l=!0,initialFocus:s=0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0,outsideElementsInert:p=!1,getInsideElements:h=()=>[]}=e,{open:m,onOpenChange:g,events:b,dataRef:v,elements:{domReference:y,floating:O}}=t,w=ir(()=>{var e;return null==(e=v.current.floatingContext)?void 0:e.nodeId}),j=ir(h),S="number"==typeof s&&s<0,x=Qn(y)&&S,P="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,_=!P||l,C=!_||P&&p,E=rr(i),A=rr(s),R=rr(a),k=_o(),D=Yo(),M=o().useRef(null),L=o().useRef(null),I=o().useRef(!1),N=o().useRef(!1),T=o().useRef(-1),z=o().useRef(-1),F=null!=D,V=Zn(O),H=ir(function(e){return void 0===e&&(e=V),e?Nn(e,lr()):[]}),q=ir(e=>{const t=H(e);return E.current.map(e=>y&&"reference"===e?y:V&&"floating"===e?V:t).filter(Boolean).flat()});o().useEffect(()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){Kn(V,Wn(Yn(V)))&&0===H().length&&!x&&er(e);const t=q(),n=Un(e);"reference"===E.current[0]&&n===y&&(er(e),e.shiftKey?Mo(t[t.length-1]):Mo(t[1])),"floating"===E.current[1]&&n===V&&e.shiftKey&&(er(e),Mo(t[0]))}}const t=Yn(V);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,y,V,u,E,x,H,q]),o().useEffect(()=>{if(!r&&O)return O.addEventListener("focusin",e),()=>{O.removeEventListener("focusin",e)};function e(e){const t=Un(e),n=H().indexOf(t);-1!==n&&(T.current=n)}},[r,O,H]),o().useEffect(()=>{if(r)return;if(!f)return;function e(){N.current=!0,setTimeout(()=>{N.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Un(e);queueMicrotask(()=>{const o=w(),i=!(Kn(y,t)||Kn(O,t)||Kn(t,O)||Kn(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(Co("focus-guard"))||k&&(Xn(k.nodesRef.current,o).find(e=>{var n,r;return Kn(null==(n=e.context)?void 0:n.elements.floating,t)||Kn(null==(r=e.context)?void 0:r.elements.domReference,t)})||$n(k.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,Zn(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===y&&V&&$o(V,E),c&&n!==y&&(null==r||!r.isConnected)&&Wn(Yn(V))===Yn(V).body){tn(V)&&V.focus();const e=T.current,t=H(),n=t[e]||t[t.length-1]||V;tn(n)&&n.focus()}v.current.insideReactTree?v.current.insideReactTree=!1:!x&&u||!t||!i||N.current||t===Xo()||(I.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!k&&D);function o(){Eo(z),v.current.insideReactTree=!0,z.current=window.setTimeout(()=>{v.current.insideReactTree=!1})}return O&&tn(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),O.addEventListener("focusout",t),n&&O.addEventListener("focusout",o,!0),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),O.removeEventListener("focusout",t),n&&O.removeEventListener("focusout",o,!0)}):void 0},[r,y,O,V,u,k,D,g,f,c,H,x,w,E,v]);const B=o().useRef(null),W=o().useRef(null),K=Jo([B,null==D?void 0:D.beforeInsideRef]),U=Jo([W,null==D?void 0:D.afterInsideRef]);function G(e){return!r&&d&&u?(0,Ne.jsx)(ei,{ref:"start"===e?M:L,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof d?d:"Dismiss"}):null}o().useEffect(()=>{var e,t;if(r)return;if(!O)return;const n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+Co("portal")+"]"))||[]),o=null==(t=(k?$n(k.nodesRef.current,w()):[]).find(e=>{var t;return Qn((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[O,o,...n,...j(),M.current,L.current,B.current,W.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,E.current.includes("reference")||x?y:null].filter(e=>null!=e),l=u||x?Ho(i,!C,C):Ho(i);return()=>{l()}},[r,y,O,u,E,D,x,_,C,k,w,j]),nr(()=>{if(r||!tn(V))return;const e=Wn(Yn(V));queueMicrotask(()=>{const t=q(V),n=A.current,r=("number"==typeof n?t[n]:n.current)||V,o=Kn(V,e);S||o||!m||Mo(r,{preventScroll:r===V})})},[r,m,V,S,q,A]),nr(()=>{if(r||!V)return;const e=Yn(V);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(I.current=!0),"outside-press"===t)if(r)I.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Hn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!qn()&&(!Hn()&&0===e.width&&0===e.height||Hn()&&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))I.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),I.current=!e}}t=Wn(e),Zo(),t&&"body"!==Qt(t)&&(Qo.push(new WeakRef(t)),Qo.length>20&&(Qo=Qo.slice(-20))),b.on("openchange",n);const o=e.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,qo),F&&y&&y.insertAdjacentElement("afterend",o),()=>{b.off("openchange",n);const t=Wn(e),r=Kn(O,t)||k&&Xn(k.nodesRef.current,w(),!1).some(e=>{var n;return Kn(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof R.current){const e=y||Xo();return e&&e.isConnected?e:o}return R.current.current||o}();queueMicrotask(()=>{const n=function(e){const t=lr();return Tn(e,t)?e:Nn(e,t)[0]||e}(i);R.current&&!I.current&&tn(n)&&(n===t||t===e.body||r)&&n.focus({preventScroll:!0}),o.remove()})}},[r,O,V,R,v,b,k,F,y,w]),o().useEffect(()=>(queueMicrotask(()=>{I.current=!1}),()=>{queueMicrotask(Zo)}),[r]),nr(()=>{if(!r&&D)return D.setFocusManagerState({modal:u,closeOnFocusOut:f,open:m,onOpenChange:g,domReference:y}),()=>{D.setFocusManagerState(null)}},[r,D,u,m,g,f,y]),nr(()=>{r||V&&$o(V,E)},[r,V,E]);const Y=!r&&_&&(!u||!x)&&(F||u);return(0,Ne.jsxs)(Ne.Fragment,{children:[Y&&(0,Ne.jsx)(Bo,{"data-type":"inside",ref:K,onFocus:e=>{if(u){const e=q();Mo("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(I.current=!1,ur(e,D.portalNode)){const e=ar(y);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!x&&G("start"),n,G("end"),Y&&(0,Ne.jsx)(Bo,{"data-type":"inside",ref:U,onFocus:e=>{if(u)Mo(q()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(f&&(I.current=!0),ur(e,D.portalNode)){const e=cr(y);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}function ni(e){return tn(e.target)&&"BUTTON"===e.target.tagName}function ri(e){return Jn(e)}function oi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:l}}=e,{enabled:s=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=o().useRef(),h=o().useRef(!1),m=o().useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==a&&(tr(t,!0)&&u||(!n||!c||i.current.openEvent&&f&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===a&&p.current?p.current=void 0:tr(t,!0)&&u||(!n||!c||i.current.openEvent&&f&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||ni(e)||(" "!==e.key||ri(l)||(e.preventDefault(),h.current=!0),function(e){return tn(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||ni(e)||ri(l)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}}),[i,l,a,u,d,r,n,f,c]);return o().useMemo(()=>s?{reference:m}:{},[s,m])}const ii={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},li={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},si=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 ai(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:l}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:m}=t,g=_o(),b=ir("function"==typeof c?c:()=>!1),v="function"==typeof c?b:c,y=o().useRef(!1),{escapeKey:O,outsidePress:w}=si(h),{escapeKey:j,outsidePress:S}=si(m),x=o().useRef(!1),P=ir(e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(x.current)return;const o=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?Xn(g.nodesRef.current,o):[];if(!O&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.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")}),_=ir(e=>{var t;const n=()=>{var t;P(e),null==(t=Un(e))||t.removeEventListener("keydown",n)};null==(t=Un(e))||t.addEventListener("keydown",n)}),C=ir(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const o=y.current;if(y.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof v&&!v(e))return;const s=Un(e),a="["+Co("inert")+"]",c=Yn(i.floating).querySelectorAll(a);let d=en(s)?s:null;for(;d&&!pn(d);){const e=gn(d);if(pn(e)||!en(e))break;d=e}if(c.length&&en(s)&&!s.matches("html,body")&&!Kn(s,i.floating)&&Array.from(c).every(e=>!Kn(d,e)))return;if(tn(s)&&R){const t=pn(s),n=hn(s),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,a=i&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,u=a&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=l&&e.offsetY>s.clientHeight;if(u||d)return}const f=null==(t=l.current.floatingContext)?void 0:t.nodeId,p=g&&Xn(g.nodesRef.current,f).some(t=>{var n;return Gn(e,null==(n=t.context)?void 0:n.elements.floating)});if(Gn(e,i.floating)||Gn(e,i.domReference)||p)return;const h=g?Xn(g.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.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=ir(e=>{var t;const n=()=>{var t;C(e),null==(t=Un(e))||t.removeEventListener(u,n)};null==(t=Un(e))||t.addEventListener(u,n)});o().useEffect(()=>{if(!n||!s)return;l.current.__escapeKeyBubbles=O,l.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),x.current=!0}function c(){e=window.setTimeout(()=>{x.current=!1},fn()?5:0)}const d=Yn(i.floating);a&&(d.addEventListener("keydown",j?_:P,j),d.addEventListener("compositionstart",o),d.addEventListener("compositionend",c)),v&&d.addEventListener(u,S?E:C,S);let f=[];return p&&(en(i.domReference)&&(f=vn(i.domReference)),en(i.floating)&&(f=f.concat(vn(i.floating))),!en(i.reference)&&i.reference&&i.reference.contextElement&&(f=f.concat(vn(i.reference.contextElement)))),f=f.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),f.forEach(e=>{e.addEventListener("scroll",t)}),()=>{a&&(d.removeEventListener("keydown",j?_:P,j),d.removeEventListener("compositionstart",o),d.removeEventListener("compositionend",c)),v&&d.removeEventListener(u,S?E:C,S),f.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,i,a,v,u,n,r,p,s,O,w,P,j,_,C,S,E]),o().useEffect(()=>{l.current.insideReactTree=!1},[l,v,u]);const A=o().useMemo(()=>({onKeyDown:P,...d&&{[ii[f]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==f&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,d,f]),R=o().useMemo(()=>{function e(e){0===e.button&&(y.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[li[u]]:()=>{l.current.insideReactTree=!0}}},[P,u,l]);return o().useMemo(()=>s?{reference:A,floating:R}:{},[s,A,R])}function ci(e){var t,n;let{elements:r,...i}=void 0===e?{}:e;const{nodeId:l}=i,s=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=jo(),l=o().useRef({}),[s]=o().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!=Po(),[c,u]=o().useState(r.reference),d=ir((e,t,r)=>{l.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),f=o().useMemo(()=>({setPositionReference:u}),[]),p=o().useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return o().useMemo(()=>({dataRef:l,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[t,d,p,s,i,f])}({...i,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),a=i.rootContext||s,c=a.elements,[u,d]=o().useState(null),[f,p]=o().useState(null),h=(null==c?void 0:c.domReference)||u,m=o().useRef(null),g=_o();nr(()=>{h&&(m.current=h)},[h]);const b=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=o().useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o().useState(r);io(p,r)||h(r);const[m,g]=o().useState(null),[b,v]=o().useState(null),y=o().useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),O=o().useCallback(e=>{e!==x.current&&(x.current=e,v(e))},[]),w=l||m,j=s||b,S=o().useRef(null),x=o().useRef(null),P=o().useRef(d),_=null!=c,C=ao(c),E=ao(i),A=ao(u),R=o().useCallback(()=>{if(!S.current||!x.current)return;const e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),ro(S.current,x.current,e).then(e=>{const t={...e,isPositioned:!1!==A.current};k.current&&!io(P.current,t)&&(P.current=t,pr.flushSync(()=>{f(t)}))})},[p,t,n,E,A]);oo(()=>{!1===u&&P.current.isPositioned&&(P.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const k=o().useRef(!1);oo(()=>(k.current=!0,()=>{k.current=!1}),[]),oo(()=>{if(w&&(S.current=w),j&&(x.current=j),w&&j){if(C.current)return C.current(w,j,R);R()}},[w,j,R,C,_]);const D=o().useMemo(()=>({reference:S,floating:x,setReference:y,setFloating:O}),[y,O]),M=o().useMemo(()=>({reference:w,floating:j}),[w,j]),L=o().useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=so(M.floating,d.x),r=so(M.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...lo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,M.floating,d.x,d.y]);return o().useMemo(()=>({...d,update:R,refs:D,elements:M,floatingStyles:L}),[d,R,D,M,L])}({...i,elements:{...c,...f&&{reference:f}}}),v=o().useCallback(e=>{const t=en(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),b.refs.setReference(t)},[b.refs]),y=o().useCallback(e=>{(en(e)||null===e)&&(m.current=e,d(e)),(en(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!en(e))&&b.refs.setReference(e)},[b.refs]),O=o().useMemo(()=>({...b.refs,setReference:y,setPositionReference:v,domReference:m}),[b.refs,y,v]),w=o().useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),j=o().useMemo(()=>({...b,...a,refs:O,elements:w,nodeId:l}),[b,O,w,l,a]);return nr(()=>{a.dataRef.current.floatingContext=j;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===l);e&&(e.context=j)}),o().useMemo(()=>({...b,context:j,refs:O,elements:w}),[b,O,w,j])}function ui(){return zn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Vn()}function di(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:l,elements:s}=e,{enabled:a=!0,visibleOnly:c=!0}=t,u=o().useRef(!1),d=o().useRef(-1),f=o().useRef(!0);o().useEffect(()=>{if(!a)return;const e=Zt(s.domReference);function t(){!n&&tn(s.domReference)&&s.domReference===Wn(Yn(s.domReference))&&(u.current=!0)}function r(){f.current=!0}function o(){f.current=!1}return e.addEventListener("blur",t),ui()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),ui()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[s.domReference,n,a]),o().useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}},[i,a]),o().useEffect(()=>()=>{Eo(d)},[]);const p=o().useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Un(e.nativeEvent);if(c&&en(t))if(ui()&&!e.relatedTarget){if(!f.current&&!Jn(t))return}else if(!function(e){if(!e||qn())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=en(t)&&t.hasAttribute(Co("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;const i=Wn(s.domReference?s.domReference.ownerDocument:document);(t||i!==s.domReference)&&(Kn(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||Kn(s.domReference,i)||o||r(!1,n,"focus"))})}}),[l,s.domReference,r,c]);return o().useMemo(()=>a?{reference:p}:{},[a,p])}function fi(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[go]:t,[bo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[mo]:""},...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&&[go,bo].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 pi(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),i=o().useCallback(t=>fi(t,e,"reference"),t),l=o().useCallback(t=>fi(t,e,"floating"),n),s=o().useCallback(t=>fi(t,e,"item"),r);return o().useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:s}),[i,l,s])}const hi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function mi(e,t){var n,r;void 0===t&&(t={});const{open:i,elements:l,floatingId:s}=e,{enabled:a=!0,role:c="dialog"}=t,u=jo(),d=(null==(n=l.domReference)?void 0:n.id)||u,f=o().useMemo(()=>{var e;return(null==(e=Zn(l.floating))?void 0:e.id)||s},[l.floating,s]),p=null!=(r=hi.get(c))?r:c,h=null!=Po(),m=o().useMemo(()=>"tooltip"===p||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:i?f:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?f:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:d},..."menu"===p&&h&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[p,f,h,i,d,c]),g=o().useMemo(()=>{const e={id:f,...p&&{role:p}};return"tooltip"===p||"label"===c?e:{...e,..."menu"===p&&{"aria-labelledby":d}}},[p,f,d,c]),b=o().useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:f+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[f,c]);return o().useMemo(()=>a?{reference:m,floating:g,item:b}:{},[a,m,g,b])}const gi=(0,o().createContext)(null);function bi(){return(0,o().useContext)(gi)}function vi(e,t){return void 0!==e?e:t??void 0}const yi=(0,o().createContext)(null),Oi=["styles","style","children"],wi=["context"];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 Si(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}function Pi(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 _i=(0,o().forwardRef)(function(e,t){let{styles:n,style:r,children:i}=e,l=Pi(e,Oi);const s=bi(),a=(0,o().useContext)(yi);if(!a)return null;const{context:c}=a,u=Pi(a,wi),d=ho([u.refs.setFloating,t]);if(!c.open)return null;let f="",p=null,h=null;switch(u.placement){case"top":case"top-end":case"top-start":f="topArrow",h=!1;break;case"bottom":case"bottom-end":case"bottom-start":f="bottomArrow",h=!0;break;case"left":case"left-end":case"left-start":f="leftArrow",p=!0;break;case"right":case"right-end":case"right-start":f="rightArrow",p=!1}return(0,Ne.jsx)(Go,{root:vi(u.root,s),children:(0,Ne.jsxs)("div",Si(Si({ref:d,style:Si(Si({},u.floatingStyles),r)},u.getFloatingProps(l)),{},{children:[i,!u.withoutArrow&&(0,Ne.jsx)("div",{className:n&&be()(n.arrow,n[f]),ref:u.arrowRef,style:{position:"absolute",left:null===h&&!1===p?0:u.middlewareData.arrow?.x,right:null===h&&!0===p?0:u.middlewareData.arrow?.x,top:null===p&&!0===h?0:u.middlewareData.arrow?.y,bottom:null===p&&!1===h?0:u.middlewareData.arrow?.y}})]}))})});function Ci(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 Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach(function(t){Ai(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ai(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=["children"],ki=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,Ri),r=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:i,withoutArrow:l,arrowRef:s,root:a}=e,[c,u]=(0,o().useState)(t),d=r??c,f=i??u,p=ci({placement:n,open:d,onOpenChange:f,whileElementsMounted:eo,middleware:[co(12),fo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),uo({padding:5}),...!l&&s?.current?[po({element:s})]:[]]}),{context:h}=p,m=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:l,elements:s}=e,{enabled:a=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:f=0,move:p=!0}=t,h=_o(),m=Po(),g=rr(u),b=rr(c),v=rr(n),y=rr(f),O=o().useRef(),w=o().useRef(-1),j=o().useRef(),S=o().useRef(-1),x=o().useRef(!0),P=o().useRef(!1),_=o().useRef(()=>{}),C=o().useRef(!1),E=ir(()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o().useEffect(()=>{if(a)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(Eo(w),Eo(S),x.current=!0,C.current=!1)}},[a,l]),o().useEffect(()=>{if(!a)return;if(!g.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=Yn(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,n,r,a,g,E]);const A=o().useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Ro(b.current,"close",O.current);o&&!j.current?(Eo(w),w.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Eo(w),r(!1,e,n))},[b,r]),R=ir(()=>{_.current(),j.current=void 0}),k=ir(()=>{if(P.current){const e=Yn(s.floating).body;e.style.pointerEvents="",e.removeAttribute(Ao),P.current=!1}}),D=ir(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));o().useEffect(()=>{if(a&&en(s.domReference)){const r=s.domReference,i=s.floating;return n&&r.addEventListener("mouseleave",o),p&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",o),p&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",c))}}function e(e){if(Eo(w),x.current=!1,d&&!tr(O.current)||ko(y.current)>0&&!Ro(b.current,"open"))return;const t=Ro(b.current,"open",O.current);t?w.current=window.setTimeout(()=>{v.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(D())return void k();_.current();const t=Yn(s.floating);if(Eo(S),C.current=!1,g.current&&i.current.floatingContext){n||Eo(w),j.current=g.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||A(e,!0,"safe-polygon")}});const r=j.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==O.current||!Kn(s.floating,e.relatedTarget))&&A(e)}function o(e){D()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){k(),R(),D()||A(e)}})(e))}function l(){Eo(w)}function c(e){D()||A(e,!1)}},[s,a,e,d,p,A,R,k,r,n,v,h,b,g,i,D,y]),nr(()=>{var e;if(a&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&E()){P.current=!0;const e=s.floating;if(en(s.domReference)&&e){var t;const n=Yn(s.floating).body;n.setAttribute(Ao,"");const r=s.domReference,o=null==h||null==(t=h.nodesRef.current.find(e=>e.id===m))||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,m,s,h,g,E]),nr(()=>{n||(O.current=void 0,C.current=!1,R(),k())},[n,R,k]),o().useEffect(()=>()=>{R(),Eo(w),Eo(S),k()},[a,s.domReference,R,k]);const M=o().useMemo(()=>{function e(e){O.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||v.current||r(!0,t,"hover")}d&&!tr(O.current)||n||0===ko(y.current)||C.current&&e.movementX**2+e.movementY**2<2||(Eo(S),"touch"===O.current?o():(C.current=!0,S.current=window.setTimeout(o,ko(y.current))))}}},[d,r,n,v,y]);return o().useMemo(()=>a?{reference:M}:{},[a,M])}(h,{move:!1,enabled:null==r}),g=pi([m,di(h,{enabled:null==r}),ai(h),mi(h,{role:"tooltip"})]);return(0,o().useMemo)(()=>Ei(Ei({open:d,setOpen:f,withoutArrow:l,arrowRef:s,root:a},g),p),[d,f,g,p,a])}(n);return(0,Ne.jsx)(yi.Provider,{value:r,children:t})},Di=["children","wrapTrigger"];function Mi(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?Mi(Object(n),!0).forEach(function(t){Ii(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ii(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 Ni=(0,o().forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Di);const l=(0,o().useContext)(yi),s=n.ref,a=ho([l?.refs.setReference,t,s]);return l?!r&&(0,o().isValidElement)(n)?(0,o().cloneElement)(n,l.getReferenceProps(Li(Li(Li({ref:a},i),n.props),{},{"data-state":l.open?"open":"closed"}))):(0,Ne.jsx)("div",Li(Li({ref:a,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:n})):null});function Ti(e){const{label:t,clickable:n,initialOpen:r,placement:i,withoutArrow:l,wrapTrigger:a,alertType:c="default",root:u,children:d,classes:f}=e,[p,h]=(0,o().useState)(!1),m=(0,o().useRef)(null);return t?d?(0,Ne.jsxs)(ki,{placement:i,initialOpen:r,open:n?p:void 0,onOpenChange:n?h:void 0,withoutArrow:l,arrowRef:m,root:u,children:[(0,Ne.jsx)(Ni,{wrapTrigger:a,onClick:n?()=>h(e=>!e):void 0,className:a?be()(Gt,f?.trigger):void 0,children:d}),(0,Ne.jsx)(_i,{className:be()(Vt,s[c],f?.content),styles:s,children:t})]}):null:d?(0,Ne.jsx)(Ne.Fragment,{children:d}):null}var zi="fieldShell-module__arrow__aEobm",Fi="fieldShell-module__chips__sRJzx",Vi="fieldShell-module__end-icon__b8buW",Hi="fieldShell-module__input__uhnF8";const qi=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","endIconCount","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className","style"];function Bi(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 Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach(function(t){Ki(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(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 Ui=(0,o().forwardRef)(function(e,t){let{variant:n="outlined",componentSize:r="medium",fullWidth:o,label:i,error:l,labelExtra:s,inputId:a,onLabelClick:c,hasStartIcon:u,endIconCount:d=0,hasErrorIcon:f,hasClearButton:p,hasArrow:h,chipsMode:m,children:g,classes:b,className:v,style:y}=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,qi);return(0,Ne.jsxs)("div",{"data-size":r,className:be()("fieldShell-module__root__A1OLC",o&&"fieldShell-module__full-width__TtRHo",b?.root),children:[!!i&&(0,Ne.jsxs)("div",{className:be()("fieldShell-module__label-row__UkRCm",b?.labelRow),children:[(0,Ne.jsxs)(pt,{className:be()("fieldShell-module__label__MW9yk",b?.label),component:"label",variant:"caption",htmlFor:a,onClick:c,children:[i,s]}),!!l&&(0,Ne.jsx)(Ti,{label:l.description,alertType:"error",children:(0,Ne.jsx)("span",{className:be()("fieldShell-module__error-name__WExJs",b?.errorName),children:l.name})})]}),(0,Ne.jsx)("div",Wi(Wi({ref:t,"data-variant":n,"data-error":l?"":void 0,"data-start-icon":u?"":void 0,"data-end-icon":d>0?"":void 0,"data-error-icon":f?"":void 0,"data-clear":p?"":void 0,"data-arrow":h?"":void 0,"data-chips":m?"":void 0,className:be()("fieldShell-module__wrapper__OvvEL",v,b?.wrapper)},O),{},{style:Wi(Wi({},y),{},{"--end-icon-count":d}),children:g}))]})});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 Yi(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){Ji(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 Ji(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,Ne.jsx)(mt,Yi(Yi({},e),{},{children:(0,Ne.jsx)("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Zi(e){return(0,Ne.jsxs)(Ne.Fragment,{children:[e.name,(0,Ne.jsx)("br",{}),e.description]})}function Xi(e){const{error:t,componentSize:n="medium",className:r}=e,o="large"===n||"extraLarge"===n?24:20;return(0,Ne.jsx)(Ti,{label:Zi(t),alertType:"error",children:(0,Ne.jsx)("span",{className:be()(Vi,"fieldShell-module__error-icon__aHf1B",r),children:(0,Ne.jsx)(Qi,{size:o})})})}function $i(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 el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(t){tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tl(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 nl=e=>(0,Ne.jsx)(mt,el(el({},e),{},{children:(0,Ne.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"})}));var rl="inputChip-module__clickable__djl7f",ol="inputChip-module__disabled__YGtsQ",il="inputChip-module__extraLarge__y0_Wa",ll="inputChip-module__filled__pktYJ",sl="inputChip-module__icon__o6UjH",al="inputChip-module__large__zecCF",cl="inputChip-module__medium__T_uhi",ul="inputChip-module__outlined__L0tPF",dl="inputChip-module__remove__k2uuh",fl="inputChip-module__root__PCWqv",pl="inputChip-module__small__XM6yG",hl="inputChip-module__text__LQYEa",ml="inputChip-module__with-icon__J7ekZ";const gl=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];function bl(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 vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yl(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 Ol=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,disabled:i,onClick:l,onRemove:s,children:c,classes:u,className: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,gl);return(0,Ne.jsxs)("div",vl(vl({ref:t,className:be()(fl,a[n],a[r],!!o&&ml,i&&ol,l&&!i&&rl,d,u?.root),tabIndex:l&&!i?0:void 0},f),{},{onClick:i?void 0:l,children:[!!o&&(0,Ne.jsx)("span",{className:be()(sl,u?.icon),children:o}),(0,Ne.jsx)("span",{className:be()(hl,u?.text),children:c}),!!s&&(0,Ne.jsx)("button",{type:"button",className:be()(dl,u?.remove),onClick:e=>{e.stopPropagation(),i||s?.()},disabled:i,"aria-label":"Удалить",children:(0,Ne.jsx)(nl,{})})]}))});var wl="popover-module__content__mHuYG",jl="popover-module__trigger__nPqWJ";const Sl=(0,o().createContext)(null),xl=["style","children"],Pl=["context"];function _l(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?_l(Object(n),!0).forEach(function(t){El(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function El(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 Al(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 Rl=(0,o().forwardRef)(function(e,t){let{style:n,children:r}=e,i=Al(e,xl);const l=bi(),s=(0,o().useContext)(Sl);if(!s)return null;const{context:a}=s,c=Al(s,Pl),u=ho([c.refs.setFloating,t]),d=ht();return(0,o().useLayoutEffect)(()=>(s.setDescriptionId(d),()=>s.setDescriptionId(void 0)),[d,s.setDescriptionId]),a.open?(0,Ne.jsx)(Go,{root:vi(c.root,l),children:(0,Ne.jsx)(ti,{context:a,modal:c.modal,children:(0,Ne.jsx)("div",Cl(Cl({id:d,ref:u,style:Cl(Cl({},c.floatingStyles),n),"aria-describedby":c.descriptionId},c.getFloatingProps(i)),{},{children:r}))})}):null}),kl=["update"];function Dl(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 Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(t){Ll(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(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 Il=["children","modal"];function Nl(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,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 zl=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,Il),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:i,open:l,onOpenChange:s,containerOffset:a=12,layoutVersion:c}=e,[u,d]=(0,o().useState)(t),[f,p]=(0,o().useState)(),h=l??u,m=s??d,g=ci({placement:n,open:h,onOpenChange:m,whileElementsMounted:eo,middleware:[co(a),fo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),uo({padding:5})]}),{update:b}=g,v=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}(g,kl),{context:y}=v;(0,o().useLayoutEffect)(()=>{h&&b()},[h,c,b]);const O=pi([oi(y,{enabled:null==l}),ai(y),mi(y)]);return(0,o().useMemo)(()=>Ml(Ml(Ml({open:h,setOpen:m},O),v),{},{update:b,modal:r,root:i,descriptionId:f,setDescriptionId:p}),[h,m,O,v,b,r,i,f])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach(function(t){Tl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:n},r));return(0,Ne.jsx)(Sl.Provider,{value:i,children:t})},Fl=["children","wrapTrigger"];function Vl(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 Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(t){ql(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ql(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=(0,o().forwardRef)(function(e,t){let{children:n,wrapTrigger:r=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Fl);const l=(0,o().useContext)(Sl),s=n.ref,a=ho([l?.refs.setReference,t,s]);return l?!r&&(0,o().isValidElement)(n)?(0,o().cloneElement)(n,l.getReferenceProps(Hl(Hl(Hl({ref:a},i),n.props),{},{"data-state":l.open?"open":"closed"}))):(0,Ne.jsx)("div",Hl(Hl({ref:a,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:n})):null});function Wl(e){const{description:t,clickable:n,initialOpen:r,placement:i,wrapTrigger:l,containerOffset:s,root:a,open:c,onOpenChange:u,children:d,classes:f,contentStyle:p,layoutVersion:h}=e,[m,g]=(0,o().useState)(!1);return d?t?(0,Ne.jsxs)(zl,{placement:i,initialOpen:r,open:void 0!==c?c:n?m:void 0,onOpenChange:void 0!==u?u:n?g:void 0,containerOffset:s,root:a,layoutVersion:h,children:[(0,Ne.jsx)(Bl,{wrapTrigger:l,onClick:n?()=>g(e=>!e):void 0,className:be()(l?jl:void 0,f?.trigger),children:d}),(0,Ne.jsx)(Rl,{className:be()(wl,f?.content),style:p,children:t})]}):d:null}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 Ul(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){Gl(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 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 Yl=e=>(0,Ne.jsx)(mt,Ul(Ul({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Jl(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?Jl(Object(n),!0).forEach(function(t){Zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zl(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 Xl=e=>(0,Ne.jsx)(mt,Ql(Ql({},e),{},{children:(0,Ne.jsx)("path",{d:"M7 10l5 5 5-5z"})}));function $l(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 es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(t){ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ts(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 ns=e=>(0,Ne.jsx)(mt,es(es({},e),{},{children:(0,Ne.jsx)("path",{d:"M7 14l5-5 5 5z"})}));function rs(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 os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(t){is(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function is(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 ls=e=>(0,Ne.jsx)(mt,os(os({},e),{},{children:(0,Ne.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 ss(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?ss(Object(n),!0).forEach(function(t){cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cs(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 us=e=>(0,Ne.jsx)(mt,as(as({},e),{},{children:(0,Ne.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})}));function ds(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 fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(t){ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ps(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 hs=e=>(0,Ne.jsx)(mt,fs(fs({},e),{},{children:(0,Ne.jsx)("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44\n 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13\n 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"})}));function ms(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 gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bs(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 vs=e=>(0,Ne.jsx)(mt,gs(gs({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0\n 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})}));function ys(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 Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(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 js=e=>(0,Ne.jsx)(mt,Os(Os({},e),{},{children:(0,Ne.jsx)("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0\n .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M10 5.47l4\n 1.4v11.66l-4-1.4zm-5 .99 3-1.01v11.7l-3 1.16zm14 11.08-3 1.01V6.86l3-1.16z"})}));function Ss(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 xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){Ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ps(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 _s=e=>(0,Ne.jsxs)(mt,xs(xs({},e),{},{children:[(0,Ne.jsx)("circle",{cx:"7",cy:"14",r:"3"}),(0,Ne.jsx)("circle",{cx:"11",cy:"6",r:"3"}),(0,Ne.jsx)("circle",{cx:"16.6",cy:"17.6",r:"3"})]}));function Cs(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 Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach(function(t){As(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function As(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 Rs=e=>(0,Ne.jsx)(mt,Es(Es({},e),{},{children:(0,Ne.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 ks(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 Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(t){Ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(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 Ls=e=>(0,Ne.jsx)(mt,Ds(Ds({},e),{},{children:(0,Ne.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 Is(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(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 zs=e=>(0,Ne.jsx)(mt,Ns(Ns({},e),{},{children:(0,Ne.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function Fs(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 Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach(function(t){Hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hs(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 qs=e=>(0,Ne.jsx)(mt,Vs(Vs({},e),{},{children:(0,Ne.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function Bs(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 Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(t){Ks(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ks(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 Us=e=>(0,Ne.jsx)(mt,Ws(Ws({},e),{},{children:(0,Ne.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 Gs(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 Ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Js(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 Qs=e=>(0,Ne.jsx)(mt,Ys(Ys({},e),{},{children:(0,Ne.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 Zs(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 Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach(function(t){$s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(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 ea=e=>(0,Ne.jsx)(mt,Xs(Xs({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function ta(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 na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(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,Ne.jsx)(mt,na(na({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function ia(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 la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(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 aa=e=>(0,Ne.jsx)(mt,la(la({},e),{},{children:(0,Ne.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function ca(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 ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function da(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 fa=e=>(0,Ne.jsx)(mt,ua(ua({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function pa(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?pa(Object(n),!0).forEach(function(t){ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(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 ga=e=>(0,Ne.jsx)(mt,ha(ha({},e),{},{children:(0,Ne.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 ba(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 va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(t){ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ya(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,Ne.jsxs)(mt,va(va({},e),{},{children:[(0,Ne.jsx)("g",{"clip-path":"url(#clip0_851_25267)",children:(0,Ne.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,Ne.jsx)("defs",{children:(0,Ne.jsx)("clipPath",{id:"clip0_851_25267",children:(0,Ne.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}));function wa(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 ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(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 xa=e=>(0,Ne.jsx)(mt,ja(ja({},e),{},{children:(0,Ne.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 Pa(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?Pa(Object(n),!0).forEach(function(t){Ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ca(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 Ea=e=>(0,Ne.jsx)(mt,_a(_a({},e),{},{children:(0,Ne.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 Aa(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?Aa(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ka(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 Da=e=>(0,Ne.jsx)(mt,Ra(Ra({},e),{},{children:(0,Ne.jsx)("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function Ma(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 La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(t){Ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ia(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 Na=e=>(0,Ne.jsx)(mt,La(La({},e),{},{children:(0,Ne.jsx)("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function Ta(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(t){Fa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(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 Va=e=>(0,Ne.jsx)(mt,za(za({},e),{},{children:(0,Ne.jsx)("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function Ha(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 qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){Ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wa=e=>(0,Ne.jsx)(mt,qa(qa({},e),{},{children:(0,Ne.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 Ka(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 Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(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 Ya=e=>(0,Ne.jsx)(mt,Ua(Ua({},e),{},{children:(0,Ne.jsx)("g",{transform:"scale(1.5)",children:(0,Ne.jsx)("path",{d:"M11.498 5H9.705L10.973 3.732C11.168 3.537 11.168 3.22 10.973 3.025C10.778 2.83 10.461 2.83 10.266 3.025L8.998 4.293V2.5C8.998 2.224 8.774 2 8.498 2C8.222 2 7.998 2.224 7.998 2.5V4.293L6.73 3.025C6.535 2.83 6.218 2.83 6.023 3.025C5.828 3.22 5.828 3.537 6.023 3.732L7.291 5H5.498C5.222 5 4.998 5.224 4.998 5.5C4.998 5.776 5.222 6 5.498 6H7.291L6.023 7.268C5.828 7.463 5.828 7.78 6.023 7.975C6.121 8.073 6.249 8.121 6.377 8.121C6.505 8.121 6.633 8.072 6.731 7.975L7.999 6.707V8.5C7.999 8.776 8.223 9 8.499 9C8.775 9 8.999 8.776 8.999 8.5V6.707L10.267 7.975C10.365 8.073 10.493 8.121 10.621 8.121C10.749 8.121 10.877 8.072 10.975 7.975C11.17 7.78 11.17 7.463 10.975 7.268L9.707 6H11.5C11.776 6 12 5.776 12 5.5C12 5.224 11.776 5 11.5 5H11.498ZM5 12C5 12.552 4.552 13 4 13C3.448 13 3 12.552 3 12C3 11.448 3.448 11 4 11C4.552 11 5 11.448 5 12Z"})})}));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 Qa(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){Za(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 Za(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 Xa=e=>(0,Ne.jsx)(mt,Qa(Qa({},e),{},{children:(0,Ne.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 $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 ec(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){tc(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 tc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nc=e=>(0,Ne.jsx)(mt,ec(ec({},e),{},{children:(0,Ne.jsx)("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function rc(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 oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach(function(t){ic(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ic(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lc=e=>(0,Ne.jsx)(mt,oc(oc({},e),{},{children:(0,Ne.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 sc(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 ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach(function(t){cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cc(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=>(0,Ne.jsx)(mt,ac(ac({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function dc(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 fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach(function(t){pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pc(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 hc=e=>(0,Ne.jsx)(mt,fc(fc({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function mc(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 gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach(function(t){bc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vc=e=>(0,Ne.jsx)(mt,gc(gc({},e),{},{children:(0,Ne.jsx)("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})}));function yc(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach(function(t){wc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wc(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 jc=e=>(0,Ne.jsx)(mt,Oc(Oc({},e),{},{children:(0,Ne.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Sc(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 xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach(function(t){Pc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pc(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 _c=e=>(0,Ne.jsx)(mt,xc(xc({},e),{},{children:(0,Ne.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 Cc(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 Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach(function(t){Ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rc=e=>(0,Ne.jsx)(mt,Ec(Ec({},e),{},{children:(0,Ne.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 kc(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 Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach(function(t){Mc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lc=e=>(0,Ne.jsx)(mt,Dc(Dc({},e),{},{children:(0,Ne.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 Ic(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 Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zc=e=>(0,Ne.jsx)(mt,Nc(Nc({},e),{},{children:(0,Ne.jsx)("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function Fc(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 Vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach(function(t){Hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hc(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 qc=e=>(0,Ne.jsx)(mt,Vc(Vc({},e),{},{children:(0,Ne.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 Bc(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 Wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(t){Kc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uc=e=>(0,Ne.jsx)(mt,Wc(Wc({},e),{},{children:(0,Ne.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 Gc(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 Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach(function(t){Jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qc=e=>(0,Ne.jsx)(mt,Yc(Yc({},e),{},{children:(0,Ne.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 Zc(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 Xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach(function(t){$c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $c(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 eu=e=>(0,Ne.jsx)(mt,Xc(Xc({},e),{},{children:(0,Ne.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function tu(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 nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach(function(t){ru(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ru(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 ou=e=>(0,Ne.jsx)(mt,nu(nu({},e),{},{children:(0,Ne.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 iu(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 lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(t){su(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function su(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 au=e=>(0,Ne.jsx)(mt,lu(lu({},e),{},{children:(0,Ne.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 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=e=>(0,Ne.jsx)(mt,uu(uu({},e),{},{children:(0,Ne.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function pu(){const e=(0,o().useContext)(Sl);return e?.open?(0,Ne.jsx)(ns,{}):(0,Ne.jsx)(Xl,{})}function hu(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){const l=e(),s=l.length!==o.length||l.some((e,t)=>o[t]!==e);return s?(o=l,r=t(...l),!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r):r}return l.updateDeps=e=>{o=e},l}function mu(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const gu=(e,t)=>Math.abs(e-t)<1.01,bu=(e,t,n)=>{let r;return Object.assign(function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(r)}})};let vu;const yu=()=>{if(void 0!==vu)return vu;if("undefined"==typeof navigator)return vu=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return vu=!0;const e=navigator.maxTouchPoints;return vu="MacIntel"===navigator.platform&&void 0!==e&&e>0},Ou=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},wu=e=>e,ju=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Su=(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(Ou(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(Ou(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},xu={passive:!0},Pu="undefined"==typeof window||"onscrollend"in window,_u=(e,t)=>((e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&Pu;let l=0;const s=i?null:bu(o,()=>t(n(r),!1),e.options.isScrollingResetDelay),a=e=>()=>{l=n(r),null==s||s(),t(l,e)},c=a(!0),u=a(!1);return r.addEventListener("scroll",c,xu),i&&r.addEventListener("scrollend",u,xu),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u),null==s||s.cancel()}})(e,t,t=>{const{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r?-1:1):t.scrollTop}),Cu=(e,t,n)=>{if(n.options.useCachedMeasurements){const t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Eu=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class Au{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,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);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};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=>{var t;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wu,rangeExtractor:ju,onChange:()=>{},measureElement:Cu,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const r=e[t];void 0!==r&&(n[t]=r)}const r=this.options;let o=null,i=null,l=!1;if(void 0!==r&&r.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=r.count,s=n.count,a=this.getMeasurements(),c=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??a,u=e=>{return"object"==typeof(t=c[e])?t.key:t;var t},d=e>0?u(0):null,f=e>0?u(e-1):null;if(s!==e||e>0&&s>0&&(n.getItemKey(0)!==d||n.getItemKey(s-1)!==f)){l=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??a[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);const c=!0===n.followOnAppend?"auto":n.followOnAppend||null;c&&s>0&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||n.getItemKey(s-1)!==f)&&(s>e||function(e,t,n,r){if(0===t)return!1;const o=r(0),i=new Set;let l=0;for(;l<e;){const e=n(l);if(e===o)break;i.add(e),l++}const s=e-l;if(0===s||s>=t)return!1;for(let e=0;e<s;e++)if(r(e)!==n(l+e))return!1;for(let e=s;e<t;e++)if(i.has(r(e)))return!1;return!0}(e,s,u,n.getItemKey))&&(i=c)}}this.options=n,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let s=!1,a=0;if(o&&null!==this.scrollOffset){const[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:l}=this.options;let c=0;for(;c<r&&l(c)!==e;)c++;if(c<r){const e=n[c];if(e){const n=Math.max(0,e.start+t);i||n===this.scrollOffset||(a=n-this.scrollOffset,this.scrollOffset=n,s=!0)}}}(s||i)&&(this.pendingScrollAnchor=[s?o[0]:null,s?o[1]:0,i,a])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=hu(()=>(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.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n)return void this.maybeNotify();if(this.scrollElement=n,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)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,yu()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,xu),e.addEventListener("touchend",n,xu),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){const[e,n,o,i]=r;null===e||o||(yu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):("smooth"!==(null==(t=this.scrollState)?void 0:t.behavior)||gu(this.getScrollOffset()-i,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),o&&this.scrollToEnd({behavior:o})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;const{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,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.getMeasurementOptions=hu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,l,s)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=hu(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:s},a)=>{var c;const u=this.itemSizeCache;if(!o)return this.measurementsCache=[],this._singleLaneMeasurements=null,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._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){const o=2*e;let i=null==(c=this._singleLaneMeasurements)?void 0:c.flat;if(!i||i.length<o){const e=new Float64Array(o);i&&d>0&&e.set(i.subarray(0,2*d)),i=e}const l=0===d?new Array(e):this._singleLaneMeasurements.items.slice();let a;if(0===d)a=t+n;else{const e=d-1;a=i[2*e]+i[2*e+1]+s}for(let t=d;t<e;t++){const e=r(t);l[t]=e;const n=u.get(e),o="number"==typeof n?n:this.options.estimateSize(t);i[2*t]=a,i[2*t+1]=o,a+=o+s}this._singleLaneMeasurements={flat:i,items:l};const f=function(e,t){const n=e.length;return new Proxy(e,{get(e,r,o){if("string"==typeof r){const o=r.charCodeAt(0);if(o>=48&&o<=57){const o=+r;if(Number.isInteger(o)&&o>=0&&o<n){let n=e[o];if("object"!=typeof n){const r=t[2*o];n=e[o]={index:o,key:n,start:r,size:t[2*o+1],end:r+t[2*o+1],lane:0}}return n}}if("length"===r)return n}return Reflect.get(e,r,o)}})}(l,i);return this.measurementsCache=f,f}const f=this.measurementsCache.slice(0,d),p=new Array(i).fill(void 0),h=new Float64Array(i);let m=0;for(let e=0;e<d;e++){const t=f[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,h[t.lane]=t.end)}for(let o=d;o<e;o++){const e=r(o),a=this.laneAssignments.get(o);let c,d;const g="estimate"===l||u.has(e);if(void 0!==a&&this.options.lanes>1){c=a;const e=p[c],r=void 0!==e?f[e]:void 0;d=r?r.end+s:t+n}else if(m===i){let e=0,t=h[0],n=p[0];for(let r=1;r<i;r++){const o=h[r];(o<t||o===t&&p[r]<n)&&(e=r,t=o,n=p[r])}c=e,d=t+s,g&&this.laneAssignments.set(o,c)}else c=o%this.options.lanes,d=t+n,g&&this.laneAssignments.set(o,c);const b=u.get(e),v="number"==typeof b?b:this.options.estimateSize(o),y=d+v;f[o]={index:o,start:d,size:v,end:y,key:e,lane:c},void 0===p[c]&&m++,p[c]=o,h[c]=y}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){const e=function(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,i=e[2*o];if(i<n)r=o+1;else{if(!(i>n))return o;t=o-1}}return r>0?r-1:0}(o,i,n);let r=e;const l=n+t;for(;r<i&&o[2*r]+o[2*r+1]<l;)r++;return{startIndex:e,endIndex:r}}let l=Ru(0,i,t=>e[t].start,n),s=l;if(1===r)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const o=Array(r).fill(0);for(;s<i&&o.some(e=>e<n+t);){const t=e[s];o[t.lane]=t.end,s++}const a=Array(r).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){const t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:l,endIndex:s}}(e,t,n,r,1===r&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hu(()=>{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);if(!this.isIndexInRange(t))return;const 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,r,o;if(!this.isIndexInRange(e))return;let i,l,s;const a=null==(n=this._singleLaneMeasurements)?void 0:n.flat;if(1===this.options.lanes&&null!=a)s=this.options.getItemKey(e),l=a[2*e],i=a[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;s=t.key,l=t.start,i=t.size}const c=this.itemSizeCache.get(s)??i,u=t-c;if(0!==u){const n="end"===this.options.anchorTo&&"smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,a=n?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,f=this.itemSizeCache.has(s)?l+c<=d&&"backward"!==this.scrollDirection:l<d,p="smooth"!==(null==(o=this.scrollState)?void 0:o.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:s,start:l,size:i,end:l+i,lane:0},u,this):f);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(s,t),this.itemSizeCacheVersion++;let h=!1;n?h=this.applyScrollAdjustment(this.getTotalSize()-a):p&&(h=this.applyScrollAdjustment(u)),this.notify(h),this._retryClampedAdjustment()}},this.getVirtualItems=hu(()=>[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=>{var t;const n=this.getMeasurements();if(0===n.length)return;const r=null==(t=this._singleLaneMeasurements)?void 0:t.flat,o=1===this.options.lanes&&null!=r,i=Ru(0,n.length-1,o?e=>r[2*e]:e=>mu(n[e]).start,e);return mu(n[i])},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.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,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"}={})=>{this._iosDeferredAdjustment=0;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"}={})=>{this._iosDeferredAdjustment=0,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.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;const n=this.getMeasurements();let r;if(0===n.length)r=this.options.paddingStart;else if(1===this.options.lanes){const o=n.length-1,i=null==(e=this._singleLaneMeasurements)?void 0:e.flat;r=null!=i?i[2*o]+i[2*o+1]:(null==(t=n[o])?void 0:t.end)??0}else{const e=Array(this.options.lanes).fill(null);let t=n.length-1;for(;t>=0&&e.some(e=>null===e);){const r=n[t];null===e[r.lane]&&(e[r.lane]=r.end),t--}r=Math.max(...e.filter(e=>null!==e))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(yu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{const n=this.getScrollOffset()+this.scrollAdjustments+e,r=this.scrollElement,o=null!==r&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==o&&n>o+.5?{target:n,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}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&&gu(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,n){const e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Ru=(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},ku="undefined"!=typeof document?o().useLayoutEffect:o().useEffect;function Du(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const i=o().useReducer(e=>e+1,0)[1],l=o().useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});l.current.enabled=t,l.current.mode=n;const s=o().useRef(!1),a=e=>{const t=l.current;if(!t.enabled||!t.container)return;const n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;const r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},c=e=>{const t=l.current;if(!t.enabled||!t.container)return;a(e);const n=!!e.options.horizontal,r="transform"===t.mode,o=n?"left":"top",i=e.options.scrollMargin,s=e.getVirtualItems();for(const l of s){const s=l.start-i,a=e.elementsCache.get(l.key);a&&t.lastPositions.get(a)!==s&&(t.lastPositions.set(a,s),r?a.style.transform=n?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:a.style[o]=`${s}px`)}},u={...r,onChange:(t,n)=>{var o;const a=l.current;let u=!0;if(a.enabled){c(t);const e=t.range,n=a.prevRange;u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex),u&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n&&!s.current?(0,pr.flushSync)(i):i()),null==(o=r.onChange)||o.call(r,t,n)}},[d]=o().useState(()=>{const e=new Au(u),t=e.measureElement;return e.measureElement=e=>{s.current=!0;try{t(e)}finally{s.current=!1}},Object.assign(e,{containerRef:t=>{const n=l.current;if(n.container=t,n.lastSize=null,t&&n.enabled){const r=e.getTotalSize();n.lastSize=r;const o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return d.setOptions(u),ku(()=>d._didMount(),[]),ku(()=>(a(d),d._willUpdate())),ku(()=>{c(d)}),d}({observeElementRect:Su,observeElementOffset:_u,scrollToFn:Eu,...e})}const Mu=["children","fillEvenly","classes","className"];function Lu(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 Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach(function(t){Nu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nu(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 Tu=(0,o().forwardRef)(function(e,t){let{children:n,fillEvenly:r,classes:o,className: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,Mu);return(0,Ne.jsx)("div",Iu(Iu({ref:t,className:be()("buttonsGroup-module__root__ajMji",r&&"buttonsGroup-module__fill-evenly__nNjz0",i,o?.root)},l),{},{children:n}))});t();const zu=(0,o().createContext)();class Fu{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Vu={},Hu=(e,t,n,r)=>{Ku(n)&&Vu[n]||(Ku(n)&&(Vu[n]=new Date),((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);Ku(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,n,r))},qu=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Bu=(e,t,n)=>{e.loadNamespaces(t,qu(e,n))},Wu=(e,t,n,r)=>{if(Ku(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Bu(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,qu(e,r))},Ku=e=>"string"==typeof e,Uu={t:(e,t)=>{if(Ku(t))return t;if("object"==typeof(n=t)&&null!==n&&Ku(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},Gu=()=>()=>{},Yu=(t,n={})=>{const{i18n:r}=n,{i18n:i,defaultNS:l}=(0,o().useContext)(zu)||{},s=r||i||de;s&&!s.reportNamespaces&&(s.reportNamespaces=new Fu),s||Hu(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const a=(0,o().useMemo)(()=>({...fe,...s?.options?.react,...n}),[s,n]),{useSuspense:c,keyPrefix:u}=a,d=t||l||s?.options?.defaultNS,f=Ku(d)?[d]:d||["translation"],p=(0,o().useMemo)(()=>f,f);s?.reportNamespaces?.addUsedNamespaces?.(p);const h=(0,o().useRef)(0),m=(0,o().useCallback)(e=>{if(!s)return Gu;const{bindI18n:t,bindI18nStore:n}=a,r=()=>{h.current+=1,e()};return t&&s.on(t,r),n&&s.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>s.off(e,r)),n&&n.split(" ").forEach(e=>s.store.off(e,r))}},[s,a]),g=(0,o().useRef)(),b=(0,o().useCallback)(()=>{if(!s)return Uu;const e=!(!s.isInitialized&&!s.initializedStoreOnce)&&p.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}}):(Hu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,s,a)),t=n.lng||s.language,r=h.current,o=g.current;if(o&&o.ready===e&&o.lng===t&&o.keyPrefix===u&&o.revision===r)return o;const i={t:s.getFixedT(t,"fallback"===a.nsMode?p:p[0],u,{scopeNs:p}),ready:e,lng:t,keyPrefix:u,revision:r};return g.current=i,i},[s,p,u,a,n.lng]),[v,y]=(0,o().useState)(0),{t:O,ready:w}=(0,e().useSyncExternalStore)(m,b,b);(0,o().useEffect)(()=>{if(s&&!w&&!c){const e=()=>y(e=>e+1);n.lng?Wu(s,n.lng,p,e):Bu(s,p,e)}},[s,n.lng,p,w,c,v]);const j=s||{},S=(0,o().useRef)(null),x=(0,o().useRef)(),P=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},_=(0,o().useMemo)(()=>{const e=j,t=e&&`${(n=e).language}|${n.resolvedLanguage}|${n.languages?.join(",")}`;var n;let r=e;e&&(S.current&&S.current.__original===e?x.current!==t?(r=P(e),S.current=r,x.current=t):r=S.current:(r=P(e),S.current=r,x.current=t));const o=w||c?O:(...e)=>(Hu(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),O(...e)),i=[o,r,w];return i.t=o,i.i18n=r,i.ready=w,i},[O,j,w,j.resolvedLanguage,j.language,j.languages]);if(s&&c&&!w){let e=!1;try{e=!1}catch(e){}throw e&&Hu(s,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{const t=()=>e();n.lng?Wu(s,n.lng,p,t):Bu(s,p,t)})}return _},Ju=()=>{const{t:e,i18n:t}=Yu();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Qu="infiniteListFooter-module__footer__f8lZM";function Zu({loading:e=!1,hasMore:t=!1,empty:n=!1,sentinelRef:r}){const{t:o}=Ju(),i=n&&!e&&!t;return e||i||t?(0,Ne.jsxs)(Ne.Fragment,{children:[e&&(0,Ne.jsx)("div",{className:Qu,role:"status",children:(0,Ne.jsx)(pt,{variant:"caption",children:o("nntc_ui.common.list.loading")})}),i&&(0,Ne.jsx)("div",{className:Qu,role:"status",children:(0,Ne.jsx)(pt,{variant:"caption",children:o("nntc_ui.common.list.notFound")})}),t&&(0,Ne.jsx)("div",{ref:r,className:"infiniteListFooter-module__sentinel__O1XNW","aria-hidden":!0})]}):null}function Xu({scrollRef:e,hasMore:t=!1,loading:n=!1,onLoadMore:r,itemCount:i,resetKey:l="",enabled:s=!0}){const a=(0,o().useRef)(null),c=(0,o().useRef)(!1),u=(0,o().useRef)(!1),d=(0,o().useRef)(r),f=(0,o().useRef)(t),p=(0,o().useRef)(n),h=(0,o().useRef)(s);d.current=r,f.current=t,p.current=n,h.current=s;const m=`${i}:${n}:${t}:${s}:${l}`,g=(0,o().useRef)(m);g.current!==m&&(g.current=m,c.current=!1,u.current=!1);const b=(0,o().useCallback)(()=>{const t=e.current;h.current&&d.current&&f.current&&!p.current&&!c.current&&t&&0!==t.clientHeight&&(c.current=!0,d.current())},[e]),v=(0,o().useCallback)(()=>{const t=e.current;t&&0!==t.clientHeight&&t.scrollHeight<=t.clientHeight+1&&b()},[b,e]);return(0,o().useLayoutEffect)(()=>{s&&t&&r&&!n&&v()},[s,t,r,n,i,l,v]),(0,o().useEffect)(()=>{const n=e.current;if(!(s&&t&&r&&n&&"undefined"!=typeof ResizeObserver))return;const o=new ResizeObserver(()=>{v()});return o.observe(n),()=>o.disconnect()},[s,t,r,i,l,v,e]),(0,o().useEffect)(()=>{const n=e.current,o=a.current;if(!(s&&t&&r&&n&&o))return;const i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)?u.current||(u.current=!0,b()):u.current=!1},{root:n,rootMargin:"48px"});return i.observe(o),()=>i.disconnect()},[s,t,r,i,l,n,b,e]),a}var $u="menu-module__divider__kik9c",ed="menu-module__extraLarge__RIQUR",td="menu-module__item__DO2AJ",nd="menu-module__item-actions__ecU8y",rd="menu-module__item-description__BxxnF",od="menu-module__item-disabled__E7Z4s",id="menu-module__item-icon___HDe4",ld="menu-module__item-selected__m9VFe",sd="menu-module__item-text-block__zgpGT",ad="menu-module__item-title__gcK7P",cd="menu-module__item-title-top__PSYWj",ud="menu-module__large__jYm_Q",dd="menu-module__medium__Jev6c",fd="menu-module__root__pR_5h",pd="menu-module__small__uGqFV",hd="menu-module__state-layer__m8uMf",md="menu-module__virtual-item___RvYR",gd="menu-module__virtual-space__SbY08",bd="menu-module__virtualized__PoNVi";const vd=["items","componentSize","descriptionPosition","virtualize","maxHeight","hasMore","loadingMore","onLoadMore","classes","className","style"];function yd(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 Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach(function(t){wd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jd={small:4,medium:8,large:0,extraLarge:0},Sd=(0,o().forwardRef)(function(e,t){let{items:n,componentSize:r="medium",descriptionPosition:i="right",virtualize:l=!1,maxHeight:s=250,hasMore:a=!1,loadingMore:u=!1,onLoadMore:d,classes:f,className:p,style: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,vd);const g=(0,o().useRef)(null),b=Be([t,g]),v=jd[r],y=l&&!!d,O=(0,o().useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]),w=Du({count:l?n.length:0,enabled:l,getScrollElement:()=>g.current,estimateSize:e=>function(e,t){return t&&"divider"!==t.type?"small"===e?28:"large"===e||"extraLarge"===e?48:36:32}(r,n[e]),overscan:6,paddingStart:l?v:0,paddingEnd:l?v:0,getItemKey:e=>{const t=n[e];return t?"divider"===t.type?`divider-${t.name??""}-${e}`:`item-${t.name}-${e}`:e}}),j=Xu({scrollRef:g,hasMore:a,loading:u,onLoadMore:d,itemCount:n.length,enabled:y}),S=(e,t)=>{const n="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?(0,Ne.jsx)(n,{tabIndex:-10,className:be()(td,e.selected?ld:void 0,e.disabled?od:void 0,f?.item,e.selected?f?.itemSelected:void 0,e.disabled?f?.itemDisabled:void 0),onClick:e.disabled?void 0:O(e),title:e.name,children:(0,Ne.jsxs)("span",{className:be()(hd),children:[!!e.icon&&(0,Ne.jsx)("span",{className:be()(id,f?.itemIcon,e.selected?f?.itemSelectedIcon:void 0,e.disabled?f?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===i&&e.description?(0,Ne.jsxs)("span",{className:be()(sd),children:[(0,Ne.jsx)("span",{className:be()(cd,ad,f?.itemTitle,e.selected?f?.itemSelectedTitle:void 0,e.disabled?f?.itemDisabledTitle:void 0),children:e.name}),(0,Ne.jsx)("span",{className:be()(rd,f?.itemDescription,e.selected?f?.itemSelectedDescription:void 0,e.disabled?f?.itemDisabledDescription:void 0),children:e.description})]}):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("span",{className:be()(ad,f?.itemTitle,e.selected?f?.itemSelectedTitle:void 0,e.disabled?f?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&(0,Ne.jsx)("span",{className:be()(rd,f?.itemDescription,e.selected?f?.itemSelectedDescription:void 0,e.disabled?f?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&(0,Ne.jsx)("div",{className:be()(nd,f?.itemActions,e.selected?f?.itemSelectedActions:void 0,e.disabled?f?.itemDisabledActions:void 0),children:(0,Ne.jsx)(Tu,{children:e.subButtons.map((e,t)=>(0,Ne.jsx)(He,{variant:e.variant,componentSize:r,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${t}`):(0,Ne.jsx)("div",{className:be()($u,f?.divider),children:e.name},`menu-divider-${e.name}-${t}`)};if(!l)return(0,Ne.jsxs)("div",Od(Od({ref:b,className:be()(fd,c[r],p,f?.root),style:h},m),{},{children:[" ",n.map((e,t)=>S(e,t))]}));const x=w.getVirtualItems();return(0,Ne.jsxs)("div",Od(Od({ref:b,className:be()(fd,c[r],bd,"styledScroll",p,f?.root),style:Od({maxHeight:s},h)},m),{},{children:[x.length>0?(0,Ne.jsx)("div",{className:gd,style:{height:w.getTotalSize()},children:x.map(e=>{const t=n[e.index];return t?(0,Ne.jsx)("div",{"data-index":e.index,ref:w.measureElement,className:md,style:{transform:`translateY(${e.start}px)`},children:S(t,e.index)},e.key):null})}):(0,Ne.jsx)("div",{style:{paddingTop:v,paddingBottom:v},children:n.map((e,t)=>S(e,t))}),(0,Ne.jsx)(Zu,{loading:u,hasMore:a&&y,sentinelRef:j})]}))});function xd(e){const{items:t,componentSize:n,selectedValue:r,changeSelectedItem:i,hasMore:l,loadingMore:s,onLoadMore:a,classes:c}=e,u=(0,o().useContext)(Sl);return(0,Ne.jsx)(Sd,{virtualize:!0,maxHeight:250,componentSize:n,classes:c?.menu,hasMore:l,loadingMore:s,onLoadMore:a,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:()=>{i(e),u&&u.setOpen(!1)}})})}const Pd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","loadingMore","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function _d(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach(function(t){Ed(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ed(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 Ad=(0,o().forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:i,fullWidth:l,label:s,error:a,placeholder:c,items:u,onLoadMore:d,hasMore:f=!1,loadingMore:p=!1,defaultValue:h,onValueChange:m,selected:g,chips:b,classes:v,disabled:y,id:O}=e,w=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,Pd),j=void 0!==d,S=(0,o().useMemo)(()=>j?u.filter(e=>"divider"!==e.type):u,[j,u]),x=h&&!g,[P,_]=(0,o().useState)(x?u.find(e=>"item"===e.type&&e.value===h):void 0),C=x?P:g,E=(0,o().useRef)(null),A=(0,o().useRef)(null),R=(0,o().useCallback)(e=>{e.preventDefault(),y||A?.current?.click()},[A]),k=e=>{x&&_(e),m?.(e)};(0,o().useEffect)(()=>{if(j||!C)return;const e=u.find(e=>"item"===e.type&&e.value===C.value);e||k(e)},[j,u,C]);const D=O??Tt(),M=!!a&&!s;return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:l,label:s,error:a,inputId:D,onLabelClick:R,hasStartIcon:!!i||!!C?.icon,hasArrow:!0,hasErrorIcon:M,chipsMode:b&&!!C,classes:Cd(Cd({},v),{},{wrapper:be()(i?"select-module__with-icon__fSXNX":void 0,C?.icon?"select-module__with-item-icon__DQCJ6":void 0,v?.wrapper)}),children:[(0,Ne.jsx)("input",Cd(Cd({ref:Be([E,t]),id:D,className:be()(Hi,"select-module__input__wOpYo",v?.input),placeholder:b&&C?void 0:c},w),{},{value:b?"":C?.name??"",onChange:()=>{},onClick:R,disabled:y})),b&&!!C&&(0,Ne.jsx)("span",{className:be()(Fi,v?.chips),children:(0,Ne.jsx)(Ol,{componentSize:r,disabled:y,onClick:()=>A?.current?.click(),onRemove:()=>k(void 0),children:C.name})}),!!i&&(0,Ne.jsx)("span",{onClick:R,className:be()("select-module__icon___B0Xg",v?.icon),children:i}),!!C?.icon&&(0,Ne.jsx)("span",{onClick:R,className:be()("select-module__item-icon__yL747",v?.itemIcon),children:C?.icon}),(0,Ne.jsx)("span",{onClick:R,className:be()(zi,v?.arrow),children:(0,Ne.jsx)(pu,{})}),M&&a&&(0,Ne.jsx)(Xi,{error:a,componentSize:r,className:v?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",classes:Cd({content:be()("select-module__popover-content__mnDVQ",v?.popoverContent)},v?.popover),containerOffset:4,description:(0,Ne.jsx)(xd,{items:S,classes:v,componentSize:r,selectedValue:C?.value,changeSelectedItem:k,hasMore:f,loadingMore:p,onLoadMore:d}),children:(0,Ne.jsx)("div",{ref:A,className:be()("select-module__popover-target__sZm8R")})})]})});var Rd=n(353),kd=n.n(Rd),Dd="calendarPopover-module__button__OeuOB",Md="calendarPopover-module__buttons-container__AfhIW",Ld="calendarPopover-module__calendar-container__oaYLG",Id="calendarPopover-module__cell__SRzca",Nd="calendarPopover-module__cell-circle__g39W8",Td="calendarPopover-module__cell-data__JaucX",zd="calendarPopover-module__cell-selection__HAjxx",Fd="calendarPopover-module__cell-selection-first__HX9vJ",Vd="calendarPopover-module__cell-selection-last__fKUk_",Hd="calendarPopover-module__cells-container__FRgCG",qd="calendarPopover-module__date-time-mode__VMAyh",Bd="calendarPopover-module__medium__z28wH",Wd="calendarPopover-module__month__PliR3",Kd="calendarPopover-module__month-cell-selection__qFg7g",Ud="calendarPopover-module__month-cell-selection-first__sP5vu",Gd="calendarPopover-module__month-cell-selection-last__qmLPc",Yd="calendarPopover-module__month-view__Lhg3K",Jd="calendarPopover-module__navigation-arrow__Iq9ex",Qd="calendarPopover-module__navigation-container__MnZVh",Zd="calendarPopover-module__navigation-title__U0go2",Xd="calendarPopover-module__navigation-value__abf_Q",$d="calendarPopover-module__root__WSPPf",ef="calendarPopover-module__small__vty_X",tf="calendarPopover-module__time-container___TvPa",nf="calendarPopover-module__time-divider__xebBR",rf="calendarPopover-module__time-selection-marker__WznxQ",of="calendarPopover-module__year__DgFQi";const lf=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function sf(e){const{values:t,selectedValue:n,onSelect:r}=e,i=t.length,l=36*(i+n),s=(0,o().useRef)(null),a=(0,o().useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,o().useEffect)(()=>{const e=s.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,o().useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,o().useCallback)(()=>{const e=s.current;if(!e)return;const t=Math.round(e.scrollTop/36),o=c(t);o!==n&&r(o),(t<i||t>=2*i)&&(e.scrollTop=36*(i+o))},[c,r,n,i]),d=(0,o().useCallback)(e=>()=>{const t=s.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),r(e)):r(e)},[r,i]);return(0,Ne.jsx)("div",{ref:s,className:be()("timeWheelColumn-module__time-wheel__fZDBM"),onScroll:u,tabIndex:-1,children:a.map((e,t)=>(0,Ne.jsx)("button",{type:"button",className:be()("timeWheelColumn-module__time-wheel-button__XHOTH","timeWheelColumn-module__time-wheel-item__YAUHz",e===n&&"timeWheelColumn-module__time-wheel-item-active__fHOGJ"),onClick:d(e),children:(0,Ne.jsx)(pt,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function af(e){const{dayjs:t,componentSize:n,isPeriod:r=!0,valueType:i="date",initStartDate:l,initEndDate:s,changeDates:a,onClear:c,useUtc:d=!1,classes:f}=e,p=t??kd(),h="dateTime"===i&&!r,[m,g]=(0,o().useState)("year"===i?"yearsRange":"month"),[b,v]=(0,o().useState)(()=>{if(l){const e=p(l);return{year:e.year(),month:e.month()}}const e=p();return{year:e.year(),month:e.month()}}),[y,O]=(0,o().useState)(l?h?p(l).second(0).millisecond(0).valueOf():p(l).startOf("D").valueOf():void 0),[w,j]=(0,o().useState)(s?p(s).startOf("D").valueOf():void 0),[S,x]=(0,o().useState)(h&&l?p(l).hour():0),[P,_]=(0,o().useState)(h&&l?p(l).minute():0),C=(0,o().useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),E=(0,o().useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),A=(0,o().useMemo)(()=>y?p(y).startOf("D").valueOf():void 0,[y,p]),R=(0,o().useMemo)(()=>w?p(w).startOf("D").valueOf():void 0,[w,p]),k=(0,o().useMemo)(()=>A?p(A).startOf("M").valueOf():void 0,[A,p]),D=(0,o().useMemo)(()=>R?p(R).startOf("M").valueOf():void 0,[R,p]),M=(0,o().useMemo)(()=>A?p(A).year():void 0,[A,p]),L=(0,o().useMemo)(()=>R?p(R).year():void 0,[R,p]),I=(0,o().useMemo)(()=>lf(p,b.year,b.month,1,d).startOf("month"===m?"M":"y"),[b,m,p,d]),N=I.daysInMonth();let T=I.startOf("M").day()-1;T<0&&(T=6),(0,o().useEffect)(()=>y||w?"year"===i?!r&&y?void a(p(y).format("YYYY")):r&&y&&w?void a(p(y).format("YYYY"),p(w).format("YYYY")):void 0:void(h&&y?a(p(y).second(0).millisecond(0).format()):r||!y?r&&y&&w&&a(p(y).format(),p(w).format()):a(p(y).format())):(c?.(),void a()),[y,w,r,i,h,p,a,c]);const z=(0,o().useCallback)((e,t,n)=>p(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[p]);(0,o().useEffect)(()=>{if(!h||!y)return;const e=z(y,S,P);e!==y&&O(e)},[h,y,S,P,z]);const F=(0,o().useCallback)(e=>()=>{const t=lf(p,b.year,b.month,1,d),n="yearsRange"===m?20*e:e,r="month"===m?"month":"year",o=t.add(n,r);v({month:o.month(),year:o.year()})},[m,b,p,d]),V=(0,o().useCallback)(()=>{"year"!==i&&g("month"===m?"year":"year"===m?"yearsRange":"month")},[m,i]),H=(0,o().useCallback)(e=>()=>{v({month:e.month(),year:e.year()}),g("month")},[]),q=(0,o().useCallback)(e=>()=>{const t=lf(p,e,0,1,d).startOf("y").valueOf();if(!r)return O(h&&A===t?void 0:h||y!==t?h?z(t,S,P):t:void 0),void j(void 0);y&&w?t===y?O(void 0):(t===w||O(t),j(void 0)):y?t===y?O(void 0):t<y?(j(y),O(t)):j(t):w?t===w?j(void 0):t<w?O(t):(O(w),j(t)):O(t)},[z,w,h,r,S,P,y,A,p,d]),B=(0,o().useMemo)(()=>{const e=I.year();return 20*Math.floor(e/20)},[I]),W=(0,o().useCallback)(e=>()=>{if(!r)return O(y===e?void 0:e),void j(void 0);y&&w?e===y?O(void 0):(e===w||O(e),j(void 0)):y?e===y?O(void 0):e<y?(j(y),O(e)):j(e):w?e===w?j(void 0):e<w?O(e):(O(w),j(e)):O(e)},[y,w,r]),K=(0,o().useCallback)(e=>{O(void 0),j(void 0),h&&(x(0),_(0)),e.currentTarget.blur()},[h]),U=(0,o().useCallback)(e=>{const t=p();v({year:t.year(),month:t.month()}),e.currentTarget.blur()},[p]);return(0,Ne.jsxs)("div",{className:be()($d,u[n],h&&qd,f?.root),children:[(0,Ne.jsxs)("div",{className:be()(Ld,"month"===m&&Yd),children:[(0,Ne.jsx)("div",{className:be()(Md,f?.buttonsContainer),children:(0,Ne.jsxs)(Tu,{fillEvenly:!0,children:[(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:K,children:"Сбросить"}),"year"!==i&&(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сегодня"})]})}),(0,Ne.jsxs)("div",{className:be()(Qd,f?.navigationContainer),children:[(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Jd,f?.navigationArrow),onClick:F(-1),"aria-label":"Предыдущий период",children:(0,Ne.jsx)(zs,{})}),(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Xd,f?.navigationValue),onClick:V,children:(0,Ne.jsxs)(pt,{variant:"subtitle1",className:be()(Zd,f?.navigationTitle),children:["month"===m&&I.format("MMMM YYYY"),"year"===m&&I.format("YYYY"),"yearsRange"===m&&`${B} - ${B+19}`]})}),(0,Ne.jsx)("button",{type:"button",className:be()(Dd,Jd,f?.navigationArrow),onClick:F(1),"aria-label":"Следующий период",children:(0,Ne.jsx)(qs,{})})]}),(0,Ne.jsxs)("div",{className:be()(Hd,f?.cellsContainer),children:["yearsRange"===m&&(0,Ne.jsx)(Ne.Fragment,{children:[...Array(20)].map((e,t)=>{const n=B+t,o="year"===i?q(n):()=>{v({month:0,year:n}),g("year")},l="year"===i&&void 0!==M&&(n===M||n===L);let s=!1,a=!1,c=!1;return void 0!==M&&(r?void 0!==L&&(M===L?n===M&&(s=!0):n>=M&&n<=L&&(s=!0,n===M?a=!0:n===L&&(c=!0))):"year"!==i&&n===M&&(s=!0)),(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,of,f?.cell,f?.year),onClick:o,children:[l&&(0,Ne.jsx)("span",{className:be()(Nd,f?.cellCircle)}),s&&(0,Ne.jsx)("span",{className:be()(zd,f?.cellSelection,a&&Fd,a&&f?.cellSelectionFirst,c&&Vd,c&&f?.cellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:n})]},`cell-year-${n}`)})}),"year"===m&&(0,Ne.jsx)(Ne.Fragment,{children:[...Array(12)].map((e,t)=>{const n=I.add(t,"M"),o=n.valueOf();let l=!1,s=!1,a=!1;return r&&"year"!==i&&void 0!==k&&void 0!==D?k===D?o===k&&(l=!0):o>=k&&o<=D&&(l=!0,o===k?s=!0:o===D&&(a=!0)):r||"year"===i||void 0===k?l=r?void 0!==k&&void 0!==D&&o>=k&&o<=D:void 0!==k&&o===k:o===k&&(l=!0),(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,Wd,f?.cell,f?.month),onClick:H(n),children:[l&&(0,Ne.jsx)("span",{className:be()(Kd,f?.monthCellSelection,s&&Ud,s&&f?.monthCellSelectionFirst,a&&Gd,a&&f?.monthCellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:n.format("MMMM")})]},`cell-month-${t}`)})}),"month"===m&&(0,Ne.jsxs)(Ne.Fragment,{children:[[...Array(T)].map((e,t)=>(0,Ne.jsx)("div",{className:be()(Id,f?.cell)},`empty-cell-${t}`)),[...Array(N)].map((e,t)=>{const n=I.add(t,"d").valueOf();return(0,Ne.jsxs)("button",{type:"button",className:be()(Dd,Id,f?.cell),onClick:W(n),children:[(n===A||n===R)&&(0,Ne.jsx)("span",{className:be()(Nd,f?.cellCircle)}),void 0!==A&&void 0!==R&&n>=A&&n<=R&&(0,Ne.jsx)("span",{className:be()(zd,f?.cellSelection,n===A&&Fd,n===A&&f?.cellSelectionFirst,n===R&&Vd,n===R&&f?.cellSelectionLast)}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(Td,f?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),h&&(0,Ne.jsxs)("div",{className:be()(tf),children:[(0,Ne.jsx)("div",{className:be()(rf)}),(0,Ne.jsx)(sf,{values:C,selectedValue:S,onSelect:x}),(0,Ne.jsx)(pt,{variant:"subtitle1",className:be()(nf),children:":"}),(0,Ne.jsx)(sf,{values:E,selectedValue:P,onSelect:_})]})]})}const cf=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach(function(t){ff(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}function ff(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 pf=(0,o().forwardRef)((e,t)=>{let{variant:n="filled",isPeriod:r=!1,valueType:i="date",defaultOpen:l=!1,componentSize:s="medium",fullWidth:a,label:c,error:u,placeholder:d,defaultValues:f,values:p,onClear:h,onValueChange:m,dayjs:g,useUtc:b=!1,classes:v,id:y,onFocus:O,onBlur:w}=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,cf);const S=g??kd(),[x,P]=(0,o().useState)(void 0!==p?p:f),[_,C]=(0,o().useState)(l),E=(0,o().useRef)(x);(0,o().useEffect)(()=>{void 0!==p&&P(p)},[p]),(0,o().useEffect)(()=>{void 0===p&&void 0!==f&&P(f)},[f,p]),(0,o().useEffect)(()=>{E.current=x},[x]);const A=r&&"dateTime"===i?"date":i,R=(0,o().useRef)(null),k=ht(),D=y??k,M=(0,o().useCallback)(e=>{C(!0),O?.(e)},[O]),L=(0,o().useCallback)(e=>{_||w?.(e)},[_,w]),I=(0,o().useCallback)(e=>{if(C(e),!e){const e=E.current;void 0!==e&&m?.(e);const t=R.current;if(!t)return;if(document.activeElement===t)return void t.blur();w?.({target:t,currentTarget:t})}},[w,m]),N=(0,o().useCallback)(()=>{R.current?.focus()},[]),T=!!u&&!c,z=(0,o().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,P(n))},[r]);return(0,Ne.jsxs)(Ui,{variant:n,componentSize:s,fullWidth:a,label:c,error:u,inputId:D,hasArrow:!0,hasErrorIcon:T,classes:v,children:[(0,Ne.jsx)("input",df(df({ref:Be([R,t]),id:D,className:be()(Hi,"dateTime-module__input__kmAiU",v?.input),placeholder:d},j),{},{value:x?.[0]?r&&x[1]?`${S(x[0]).format("year"===A?"YYYY":"DD.MM.YYYY")} - ${S(x[1]).format("year"===A?"YYYY":"DD.MM.YYYY")}`:`${S(x[0]).format("year"===A?"YYYY":"dateTime"===A?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:M,onBlur:L})),(0,Ne.jsx)("span",{onClick:N,className:be()(zi,v?.icon),children:(0,Ne.jsx)(Qs,{})}),T&&u&&(0,Ne.jsx)(Xi,{error:u,componentSize:s,className:v?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",open:_,onOpenChange:I,classes:df(df({},v?.popover),{},{content:"dateTime-module__popover-content__oLd5U"}),containerOffset:4,description:(0,Ne.jsx)(af,{dayjs:S,useUtc:b,classes:v,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:r,valueType:A,initStartDate:x?.[0],initEndDate:x?.[1],changeDates:z,onClear:h}),children:(0,Ne.jsx)("div",{className:be()("dateTime-module__popover-target__KDRaS")})})]})});function hf(){return(hf=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 mf(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 gf(e){var t=(0,o().useRef)(e),n=(0,o().useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var bf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},vf=function(e){return"touches"in e},yf=function(e){return e&&e.ownerDocument.defaultView||self},Of=function(e,t,n){var r=e.getBoundingClientRect(),o=vf(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:bf((o.pageX-(r.left+yf(e).pageXOffset))/r.width),top:bf((o.pageY-(r.top+yf(e).pageYOffset))/r.height)}},wf=function(e){!vf(e)&&e.preventDefault()},jf=o().memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,i=mf(e,["onMove","onKey","onEnd"]),l=(0,o().useRef)(null),s=gf(t),a=gf(n),c=gf(r),u=(0,o().useRef)(null),d=(0,o().useRef)(!1),f=(0,o().useMemo)(function(){var e=function(e){wf(e),(vf(e)?e.touches.length>0:e.buttons>0)&&l.current?s(Of(l.current,e,u.current)):(n(!1),c())},t=function(){n(!1),c()};function n(n){var r=d.current,o=yf(l.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=l.current;if(r&&(wf(t),!function(e,t){return t&&!vf(e)}(t,d.current)&&r)){if(vf(t)){d.current=!0;var o=t.changedTouches||[];o.length&&(u.current=o[0].identifier)}r.focus(),s(Of(r,t,u.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&c()},n]},[a,s,c]),p=f[0],h=f[1],m=f[2],g=f[3];return(0,o().useEffect)(function(){return g},[g]),o().createElement("div",hf({},i,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:l,onKeyDown:h,onKeyUp:m,tabIndex:0,role:"slider"}))}),Sf=function(e){return e.filter(Boolean).join(" ")},xf=function(e){var t=e.color,n=e.left,r=e.top,i=void 0===r?.5:r,l=Sf(["react-colorful__pointer",e.className]);return o().createElement("div",{className:l,style:{top:100*i+"%",left:100*n+"%"}},o().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Pf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},_f=(Math.PI,function(e){return If(Cf(e))}),Cf=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?Pf(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?Pf(parseInt(e.substring(6,8),16)/255,2):1}},Ef=function(e){return Lf(Df(e))},Af=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Pf(e.h),s:Pf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Pf(o/2),a:Pf(r,2)}},Rf=function(e){var t=Af(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},kf=function(e){var t=Af(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Df=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),s=r*(1-(t-i)*n),a=r*(1-(1-t+i)*n),c=i%6;return{r:Pf(255*[r,s,l,l,a,r][c]),g:Pf(255*[a,r,r,s,l,l][c]),b:Pf(255*[l,l,a,r,r,s][c]),a:Pf(o,2)}},Mf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Lf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Mf(Pf(255*o)):"";return"#"+Mf(t)+Mf(n)+Mf(r)+i},If=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),s=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:o}},Nf=o().memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,i=Sf(["react-colorful__hue",e.className]);return o().createElement("div",{className:i},o().createElement(jf,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:bf(t+360*e.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":Pf(t),"aria-valuemax":"360","aria-valuemin":"0"},o().createElement(xf,{className:"react-colorful__hue-pointer",left:t/360,color:Rf({h:t,s:100,v:100,a:1})})))}),Tf=o().memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,i={backgroundColor:Rf({h:t.h,s:100,v:100,a:1})};return o().createElement("div",{className:"react-colorful__saturation",style:i},o().createElement(jf,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:bf(t.s+100*e.left,0,100),v:bf(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+Pf(t.s)+"%, Brightness "+Pf(t.v)+"%"},o().createElement(xf,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Rf(t)})))}),zf=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ff=function(e,t){return e.toLowerCase()===t.toLowerCase()||zf(Cf(e),Cf(t))};function Vf(e,t,n,r){var i=gf(n),l=gf(r),s=(0,o().useState)(function(){return e.toHsva(t)}),a=s[0],c=s[1],u=(0,o().useRef)({color:t,hsva:a}),d=(0,o().useRef)(!1);(0,o().useEffect)(function(){if(!e.equal(t,u.current.color)){var n=e.toHsva(t);u.current={hsva:n,color:t},c(n),d.current=!1}},[t,e]),(0,o().useEffect)(function(){var t;zf(a,u.current.hsva)||e.equal(t=e.fromHsva(a),u.current.color)||(u.current={hsva:a,color:t},i(t),d.current=!0)},[a,e,i]);var f=(0,o().useCallback)(function(e){c(function(t){return Object.assign({},t,e)})},[]),p=(0,o().useCallback)(function(){d.current&&(d.current=!1,l(u.current.color))},[l]);return[a,f,p]}var Hf="undefined"!=typeof window?o().useLayoutEffect:o().useEffect,qf=new WeakMap,Bf=function(e){Hf(function(){var t=e.current;if("undefined"!=typeof document&&t){var r=t.getRootNode?t.getRootNode():t.ownerDocument,o=r&&("head"in r||"host"in r)?r:t.ownerDocument;if(!qf.has(o)){var i="head"in o?o.head:o,l=(i.ownerDocument||document).createElement("style");l.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}';var s=n.nc;s&&l.setAttribute("nonce",s),qf.set(o,l),i.appendChild(l)}}},[])},Wf=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,l=e.onChange,s=e.onChangeEnd,a=mf(e,["className","colorModel","color","onChange","onChangeEnd"]),c=(0,o().useRef)(null);Bf(c);var u=Vf(n,i,l,s),d=u[0],f=u[1],p=u[2],h=Sf(["react-colorful",t]);return o().createElement("div",hf({},a,{ref:c,className:h}),o().createElement(Tf,{hsva:d,onChange:f,onChangeEnd:p}),o().createElement(Nf,{hue:d.h,onChange:f,onChangeEnd:p,className:"react-colorful__last-control"}))},Kf={defaultColor:"000",toHsva:_f,fromHsva:function(e){return Ef({h:e.h,s:e.s,v:e.v,a:1})},equal:Ff},Uf=function(e){return o().createElement(Wf,hf({},e,{colorModel:Kf}))},Gf=function(e){var t=e.className,n=e.hsva,r=e.onChange,i=e.onChangeEnd,l={backgroundImage:"linear-gradient(90deg, "+kf(Object.assign({},n,{a:0}))+", "+kf(Object.assign({},n,{a:1}))+")"},s=Sf(["react-colorful__alpha",t]),a=Pf(100*n.a);return o().createElement("div",{className:s},o().createElement("div",{className:"react-colorful__alpha-gradient",style:l}),o().createElement(jf,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:bf(n.a+e.left)})},onEnd:i,"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},o().createElement(xf,{className:"react-colorful__alpha-pointer",left:n.a,color:kf(n)})))},Yf=function(e){var t=e.className,n=e.colorModel,r=e.color,i=void 0===r?n.defaultColor:r,l=e.onChange,s=e.onChangeEnd,a=mf(e,["className","colorModel","color","onChange","onChangeEnd"]),c=(0,o().useRef)(null);Bf(c);var u=Vf(n,i,l,s),d=u[0],f=u[1],p=u[2],h=Sf(["react-colorful",t]);return o().createElement("div",hf({},a,{ref:c,className:h}),o().createElement(Tf,{hsva:d,onChange:f,onChangeEnd:p}),o().createElement(Nf,{hue:d.h,onChange:f,onChangeEnd:p}),o().createElement(Gf,{hsva:d,onChange:f,onChangeEnd:p,className:"react-colorful__last-control"}))},Jf={defaultColor:"0001",toHsva:_f,fromHsva:Ef,equal:Ff},Qf=function(e){return o().createElement(Yf,hf({},e,{colorModel:Jf}))};const Zf=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","enableAlpha","disableLabel","onValueChange"];function Xf(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 $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach(function(t){ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(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 tp=(0,o().forwardRef)(function(e,t){const{variant:n="outlined",componentSize:r="medium",fullWidth:i,label:l,error:s,classes:a,placeholder:c,disabled:u,defaultValue:d,id:f,enableAlpha:p=!1,disableLabel:h=!1,onValueChange:m}=e,g=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,Zf),[b,v]=(0,o().useState)(d?.toString()??"#AABBCC"),y=(0,o().useRef)(null),O=(0,o().useRef)(null),w=(0,o().useCallback)(e=>{v(e.toUpperCase()),m?.(e.toUpperCase())},[]),j=(0,o().useCallback)(e=>{e.preventDefault(),u||O?.current?.click()},[O,u]),S=f??Tt(),x=!!s&&!l&&!h,P=(0,Ne.jsx)(Wl,{placement:"bottom-start",classes:$f({content:be()("colorPicker-module__popover-content___l9Cj",p&&"colorPicker-module__popover-content-alpha__qL4F7",a?.popoverContent)},a?.popover),containerOffset:4,description:p?(0,Ne.jsx)(Qf,{color:b,onChange:w}):(0,Ne.jsx)(Uf,{color:b,onChange:w}),children:(0,Ne.jsx)("div",{ref:O,className:be()("colorPicker-module__popover-target__EZe64")})}),_=(0,Ne.jsx)("span",{onClick:j,className:be()("colorPicker-module__swatch__CJpfS",p&&"colorPicker-module__swatch-alpha__fR5dI",h&&"colorPicker-module__swatch-only__Ssxwd",u&&"colorPicker-module__swatch-disabled__v7mTm",a?.icon),style:{"--swatch-color":b}});return h?(0,Ne.jsxs)("div",{"data-size":r,className:be()("colorPicker-module__root-only__Bqjfa",a?.root),children:[(0,Ne.jsx)("input",$f($f({ref:Be([y,t]),id:S,className:"colorPicker-module__hidden-input__iEwws"},g),{},{value:b,onChange:()=>{},disabled:u,tabIndex:-1,"aria-hidden":!0})),_,P]}):(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:i,label:l,error:s,inputId:S,onLabelClick:j,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:x,classes:$f($f({},a),{},{root:be()("colorPicker-module__root__Ni1Qk",a?.root)}),children:[(0,Ne.jsx)("input",$f($f({ref:Be([y,t]),id:S,className:be()(Hi,"colorPicker-module__input__rwgTH",a?.input),placeholder:c},g),{},{value:b,onChange:()=>{},onClick:j,disabled:u})),_,(0,Ne.jsx)("span",{onClick:j,className:be()(zi,a?.arrow),children:(0,Ne.jsx)(pu,{})}),x&&s&&(0,Ne.jsx)(Xi,{error:s,componentSize:r,className:a?.errorIcon}),P]})});var np="input-module__field-icon__t2MCN";const rp=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function op(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 ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach(function(t){lp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lp(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 sp=(0,o().forwardRef)((e,t)=>{let{variant:n="outlined",componentSize:r="medium",fullWidth:i,label:l,error:s,startIcon:a,endIcon:c,classes:u,placeholder:d,id:f,type:p,onChange: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,rp);const g=(0,o().useRef)(null),[b,v]=(0,o().useState)(""),y=ht(),O=f??y,w="file"===p,j=!!s&&!w&&!l,S=w?[]:function(e){return null==e||!1===e||!0===e?[]:(Array.isArray(e)?e:[e]).filter(e=>null!=e&&!1!==e&&!0!==e)}(c),x=S.length+(j?1:0),P=()=>{g.current?.focus()};return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:i,label:l,error:s,inputId:O,hasStartIcon:!w&&!!a,endIconCount:x,classes:u,children:[w?(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("input",ip({ref:Be([g,t]),id:O,className:be()("input-module__file-input__q2Nqj",u?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];v(t?.name??""),h?.(e)}},m)),(0,Ne.jsxs)("div",{role:"button",tabIndex:0,className:be()(Hi,"input-module__file-display__nDbsE",u?.input),onClick:()=>g.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g.current?.click())},children:[(0,Ne.jsx)("span",{className:be()("input-module__file-name__X3xkl",!b&&"input-module__placeholder__NSfNL"),children:b||d}),(0,Ne.jsx)(ls,{size:20,className:"input-module__attach-icon__l8K5u"})]})]}):(0,Ne.jsx)("input",ip({ref:Be([g,t]),id:O,className:be()(Hi,"input-module__input__kODuu",u?.input),placeholder:d,type:p,autoComplete:"off",onChange:h},m)),!!a&&!w&&(0,Ne.jsx)("span",{onClick:P,className:be()("fieldShell-module__start-icon__fIKEA",np,u?.startIcon),children:a}),S.map((e,t)=>{const n=S.length-1-t+(j?1:0);return(0,Ne.jsx)("span",{onClick:P,className:be()(Vi,np,u?.endIcon),style:{right:`calc(var(--end-icon-edge) + ${n} * var(--end-icon-slot))`},children:e},t)}),j&&s&&(0,Ne.jsx)(Xi,{error:s,componentSize:r,className:u?.errorIcon})]})});var ap="wrapForLabel-module__medium__TMPJd",cp="wrapForLabel-module__root__n2E0p",up="wrapForLabel-module__small__BWNtg";const dp=["componentSize","children","classes","className"];function fp(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 pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(n),!0).forEach(function(t){hp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hp(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 mp=(0,o().forwardRef)(function(e,t){let{componentSize:n="medium",children:r,classes:o,className: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,dp);return(0,Ne.jsx)("div",pp(pp({ref:t,className:be()(cp,d[n],i,o?.root)},l),{},{children:r}))});function gp(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 bp(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 vp=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","onSearchChange","searchValue","hasMore","onSelectAll","loadingMore","onLoadMore","virtualize","classes","className"];function yp(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 Op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(t){wp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wp(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 jp=(0,o().forwardRef)(function(e,t){let{items:n,selected:r,disableSearch:i,isDisabled:l,actionWithSelected:s,onChangeItem:a,onSearchChange:c,searchValue:u,hasMore:d=!1,onSelectAll:f,loadingMore:p=!1,onLoadMore:h,virtualize:m=!1,classes:g,className:b}=e,v=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,vp);const{t:y}=Ju(),O=void 0!==c,w=!i||O,[j,S]=(0,o().useState)(u??""),x=(0,o().useRef)(null),P=(0,o().useRef)(c),_=(0,o().useRef)(!0);P.current=c;const C=(0,o().useRef)(!0);(0,o().useEffect)(()=>{void 0!==u&&S(u)},[u]),(0,o().useEffect)(()=>{C.current?C.current=!1:x.current?.scrollTo({top:0})},[j]),(0,o().useEffect)(()=>{if(!P.current)return;if(_.current)return void(_.current=!1);const e=window.setTimeout(()=>{P.current?.(j)},300);return()=>window.clearTimeout(e)},[j]);const E=(0,o().useMemo)(()=>O?n.filter(e=>!r[e.value]):((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?gp(Object(n),!0).forEach(function(t){bp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(n,j,r),[n,j,O,r]),A=(0,o().useMemo)(()=>n.filter(e=>!!r[e.value]),[n,r]),R=(!d||!!f)&&!l&&E.length>0,k=(0,o().useMemo)(()=>{const e=[];return A.length>0&&(e.push({type:"selected-header",key:"selected-header"}),A.forEach(t=>{e.push({type:"selected",key:`selected-${t.value}`,item:t})})),R&&e.push({type:"select-all",key:"select-all"}),E.forEach(t=>{e.push({type:"option",key:`option-${t.value}`,item:t})}),e},[E,A,R]),D=Du({count:m?k.length:0,enabled:m,getScrollElement:()=>x.current,estimateSize:e=>{return(t=k[e])&&"option"!==t.type&&"selected"!==t.type?36:24;var t},overscan:8,getItemKey:e=>k[e]?.key??e}),M=Xu({scrollRef:x,hasMore:d,loading:p,onLoadMore:h,itemCount:n.length,resetKey:j,enabled:!!h}),L=(0,o().useCallback)(e=>{const t=!r[e.value];a&&a(e);const n=Op(Op({},r),{},{[e.value]:t});s(n)},[r,a,s]),I=(0,o().useCallback)(()=>{if(f)return void f(j);const e=Op({},r);E.forEach(t=>{e[t.value]=!0}),s(e)},[f,j,r,E,s]),N=(0,o().useCallback)(()=>{const e=Op({},r);A.forEach(t=>{delete e[t.value]}),s(e)},[r,A,s]),T=(0,o().useCallback)(e=>{S(e.target.value)},[]),z=(0,o().useCallback)(e=>t=>{t.stopPropagation(),L(e)},[L]),F=(e,t)=>(0,Ne.jsx)(Lt,{label:e.name,checked:!!r[e.value],onChange:z(e),disabled:l,classes:g?.checkbox},`${t}-${e.value}`),V=R||0===E.length,H=()=>(0,Ne.jsxs)("div",{className:be()("checklist-module__action-wrap___WNPp",!V&&"checklist-module__action-wrap-end__nwOQE",g?.actionWrap),children:[V&&(0,Ne.jsx)(pt,{className:be()(g?.typography),children:y("nntc_ui.common.checklist.selected")}),(0,Ne.jsx)(He,{variant:"text",componentSize:"small",compact:!0,disabled:l,onClick:N,className:be()(g?.button),children:y("nntc_ui.common.checklist.cancel")})]}),q=()=>(0,Ne.jsx)(He,{variant:"text",componentSize:"small",compact:!0,disabled:l,onClick:I,className:be()(g?.button),children:y("nntc_ui.common.checklist.selectAll")}),B=e=>"selected-header"===e.type?H():"select-all"===e.type?q():F(e.item,"selected"===e.type?"selected":"filtered"),W=m?D.getVirtualItems():[],K=m&&W.length>0,U=O&&""!==j.trim()&&0===E.length;return(0,Ne.jsxs)("div",Op(Op({ref:t,className:be()("checklist-module__root__rtLgn",b,g?.root)},v),{},{children:[" ",w&&(0,Ne.jsx)(sp,{variant:"outlined",startIcon:(0,Ne.jsx)(Xa,{}),placeholder:y("nntc_ui.common.search.placeholder"),disabled:l,value:j,fullWidth:!0,classes:g?.searchInput,onChange:T}),(0,Ne.jsxs)("div",{ref:x,className:be()("checklist-module__scrolled__t7xdx","styledScroll",g?.scrolled),children:[K?(0,Ne.jsx)("div",{className:"checklist-module__virtual-space__cTHv9",style:{height:D.getTotalSize()},children:W.map(e=>{const t=k[e.index];return t?(0,Ne.jsx)("div",{"data-index":e.index,ref:D.measureElement,className:"checklist-module__virtual-item___Q2fN",style:{transform:`translateY(${e.start}px)`},children:B(t)},e.key):null})}):(0,Ne.jsxs)(Ne.Fragment,{children:[A.length>0&&(0,Ne.jsxs)(Ne.Fragment,{children:[H(),(0,Ne.jsx)("div",{children:A.map(e=>F(e,"selected"))})]}),R&&q(),(0,Ne.jsx)("div",{children:E.map(e=>F(e,"filtered"))})]}),(0,Ne.jsx)(Zu,{loading:p,hasMore:d&&!!h,empty:U,sentinelRef:M})]})]}))}),Sp=["checklistWrapper"];function xp(e){const{items:t,selected:n,onSelectedChange:r,classes:i,enableSearch:l=!1,onSearchChange:s,searchValue:a,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,disabled:p}=e,h=(0,o().useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),m=(0,o().useMemo)(()=>{const e={};return n?.forEach(t=>{e[t]=!0}),e},[n]),g=(0,o().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]),b=i??{},{checklistWrapper:v}=b,y=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}(b,Sp);return(0,Ne.jsx)("div",{className:be()(v),children:(0,Ne.jsx)(jp,{virtualize:!0,disableSearch:!l,isDisabled:p,items:h,selected:m,actionWithSelected:g,onSearchChange:s,searchValue:a,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,classes:y})})}const Pp=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","onSelectAll","loadingMore","onSearchChange","searchValue","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function _p(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach(function(t){Ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ep(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 Ap=(0,o().forwardRef)(function(e,t){const{variant:n="filled",componentSize:r="medium",icon:i,fullWidth:l,label:s,error:a,placeholder:c,items:u,onLoadMore:d,hasMore:f=!1,onSelectAll:p,loadingMore:h=!1,onSearchChange:m,searchValue:g,onValueChange:b,selected:v,classes:y,disabled:O,id:w,titleType:j="allValue",showSelectedCount:S=!1,enableSearch:x=!1,popoverInComponent:P=!1}=e,_=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,Pp),C="chips"===j,{t:E}=Yu(),A=(0,o().useRef)(null),R=(0,o().useRef)(null),k=(0,o().useRef)(null),[D,M]=(0,o().useState)(!1),[L,I]=(0,o().useState)(),[N,T]=(0,o().useState)(0),z=void 0!==d||void 0!==m,{activeItems:F,remember:V}=function(e,t,n){const[r,i]=(0,o().useState)(()=>new Map);(0,o().useEffect)(()=>{n&&i(n=>{const r=new Set(e.map(e=>e.value)),o=new Set(t??[]);let i=!1;const l=new Map(n);return e.forEach(e=>{const t=l.get(e.value);t&&t.name===e.name&&t.description===e.description&&t.disabled===e.disabled||(l.set(e.value,e),i=!0)}),l.forEach((e,t)=>{o.has(t)||r.has(t)||(l.delete(t),i=!0)}),i?l:n})},[n,e,t]);const l=(0,o().useCallback)(e=>{n&&e.length&&i(t=>{const n=new Map(t);return e.forEach(e=>n.set(e.value,e)),n})},[n]);return{activeItems:(0,o().useMemo)(()=>{if(!t?.length)return[];if(!n)return e.filter(e=>t.includes(e.value));const o=new Map(e.map(e=>[e.value,e]));return t.map(e=>o.get(e)??r.get(e)??{name:e,value:e})},[n,e,r,t]),remember:l}}(u,v,z),H=(0,o().useRef)(F);H.current=F;const q=(0,o().useRef)(!1),B=(0,o().useRef)(""),W=(0,o().useMemo)(()=>{if(!z)return u;const e=new Set(u.map(e=>e.value)),t=F.filter(t=>!e.has(t.value));return t.length?[...t,...u]:u},[F,u,z]),K=(0,o().useCallback)(e=>{B.current=e,m?.(e)},[m]),U=(0,o().useCallback)(e=>{M(e),!e&&B.current&&(B.current="",m?.(""))},[m]);(0,o().useLayoutEffect)(()=>{const e=A.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();I(t),T(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,o().useLayoutEffect)(()=>{C&&T(e=>e+1)},[C,F.length]);const G=(0,o().useCallback)(e=>{e.preventDefault(),O||M(e=>!e)},[O]),Y=(0,o().useCallback)(e=>{b?.(e)},[b]),J=(0,o().useCallback)(e=>{p&&!q.current&&(q.current=!0,Promise.resolve(p(e)).then(e=>{if(!Array.isArray(e))return;V(e);const t=new Map(H.current.map(e=>[e.value,e]));e.forEach(e=>{t.has(e.value)||t.set(e.value,e)}),b?.([...t.values()])}).finally(()=>{q.current=!1}))},[p,b,V]),Q=(0,o().useMemo)(()=>F.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("nntc_ui.common.multiSelect.selectedItems")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`;case"chips":return""}})(j,F,E):"",[j,F,E]),Z=w??Tt(),X=!!a&&!s;return(0,Ne.jsxs)(Ui,{variant:n,componentSize:r,fullWidth:l,label:s,error:a,labelExtra:S&&F.length>0?(0,Ne.jsx)("span",{className:be()("multiSelect-module__label-selected-count__vykag",y?.labelSelectedCount),children:` (${F.length})`}):void 0,inputId:Z,onLabelClick:G,ref:A,hasStartIcon:!!i,hasArrow:!0,hasErrorIcon:X,hasClearButton:!!F.length,chipsMode:C,classes:y,children:[(0,Ne.jsx)("input",Cp(Cp({ref:Be([R,t]),id:Z,className:be()(Hi,"multiSelect-module__input__vG33L",y?.input),placeholder:C&&F.length?void 0:c},_),{},{value:C?"":Q,onClick:G,disabled:O,readOnly:!0,title:C?void 0:F.map(e=>e.name).join(", "),autoComplete:"off"})),C&&!!F.length&&(0,Ne.jsx)("span",{className:be()(Fi,"multiSelect-module__chips__jJlqe",y?.chips),children:F.map(e=>(0,Ne.jsx)(Ol,{componentSize:r,disabled:O,onClick:()=>{O||M(e=>!e)},onRemove:()=>{const t=F.filter(t=>t.value!==e.value);b?.(t.length?t:null)},children:e.name},e.value))}),!!i&&(0,Ne.jsx)("span",{onClick:G,className:be()("multiSelect-module__icon__f8pIe",y?.icon),children:i}),!!F.length&&(0,Ne.jsx)("span",{onClick:()=>{b?.(null)},className:be()("multiSelect-module__clear__s8X8D",y?.clear),children:(0,Ne.jsx)(nl,{})}),(0,Ne.jsx)("span",{onClick:G,className:be()(zi,y?.arrow),children:(0,Ne.jsx)(pu,{})}),X&&a&&(0,Ne.jsx)(Xi,{error:a,componentSize:r,className:y?.errorIcon}),(0,Ne.jsx)(Wl,{placement:"bottom-start",open:D,onOpenChange:U,contentStyle:L?{width:L,minWidth:L,maxWidth:L}:void 0,classes:Cp({content:be()("multiSelect-module__popover-content__OYXE6",y?.popoverContent)},y?.popover),containerOffset:4,layoutVersion:N,root:P?A.current:void 0,description:(0,Ne.jsx)(xp,{items:W,classes:Cp({searchInput:Cp({root:"multiSelect-module__search-input-root__S2Us8"},y?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__SqDIN",checklistWrapper:be()("multiSelect-module__checklist-wrapper__Fw8O9"),scrolled:"multiSelect-module__checklist-scrolled__XQQba"},y?.selectPopover),componentSize:r,selected:v,onSelectedChange:Y,enableSearch:x||void 0!==m,onSearchChange:m?K:void 0,searchValue:g,hasMore:f,onSelectAll:p?J:void 0,loadingMore:h,onLoadMore:d,disabled:O}),children:(0,Ne.jsx)("div",{ref:k,className:be()("multiSelect-module__popover-target__CM0gG")})})]})});var Rp="radioButton-module__pressed__zYl50",kp="radioButton-module__radio__HJxXO";const Dp=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Mp(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 Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(Object(n),!0).forEach(function(t){Ip(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ip(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 Np=(0,o().forwardRef)(function(e,t){const{label:n,componentSize:r="medium",canUncheck:i,onUncheck:l,classes:s,id:a,onClick:c}=e,u=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,Dp),d=(0,o().useRef)(null),f=(0,o().useRef)(!1),p=ht(),h=a??p;(0,o().useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Rp),n=()=>{e.classList.add(Rp),f.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const m=(0,o().useCallback)(e=>{i&&f.current&&(d.current.checked=!1,l?.()),c?.(e)},[i,l,c]),g="large"===r?"subtitle1":"subtitle2";return(0,Ne.jsxs)("div",{className:be()("radioButton-module__root__stJhI",s?.root),children:[(0,Ne.jsx)("input",Lp({ref:Be([d,t]),type:"radio",className:be()("radioButton-module__input__EBKKq",s?.input),id:h,title:n,onClick:m},u)),(0,Ne.jsxs)("label",{htmlFor:h,className:be()("radioButton-module__label__E8YrK",s?.label),title:n,children:[(0,Ne.jsx)("span",{className:be()(kp,"radioButton-module__deselected__phKEf",s?.radio),children:(0,Ne.jsx)(Rs,{})}),(0,Ne.jsx)("span",{className:be()(kp,"radioButton-module__selected__KErVW",s?.radio),children:(0,Ne.jsx)(Ls,{})}),!!n&&(0,Ne.jsx)(pt,{variant:g,className:be()("radioButton-module__label-text__JHs3s",s?.labelText),children:n})]})]})});function Tp(e,t){return"function"==typeof e?e(t):e}function zp(e,t){return n=>{t.setState(t=>({...t,[e]:Tp(n,t[e])}))}}function Fp(e){return e instanceof Function}function Vp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const s=e(i),a=s.length!==o.length||s.some((e,t)=>o[t]!==e);if(!a)return r;let c;if(o=s,n.key&&n.debug&&(c=Date.now()),r=t(...s),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-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 Hp(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 Bp(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 Wp={createTable:e=>{e.getHeaderGroups=Vp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],a=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Kp(t,[...s,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...a],e)},Hp(e.options,qp)),e.getCenterHeaderGroups=Vp(()=>[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"),Hp(e.options,qp)),e.getLeftHeaderGroups=Vp(()=>[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")},Hp(e.options,qp)),e.getRightHeaderGroups=Vp(()=>[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")},Hp(e.options,qp)),e.getFooterGroups=Vp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getLeftFooterGroups=Vp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getCenterFooterGroups=Vp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getRightFooterGroups=Vp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Hp(e.options,qp)),e.getFlatHeaders=Vp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getLeftFlatHeaders=Vp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getCenterFlatHeaders=Vp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getRightFlatHeaders=Vp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Hp(e.options,qp)),e.getCenterLeafHeaders=Vp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getLeftLeafHeaders=Vp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getRightLeafHeaders=Vp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Hp(e.options,qp)),e.getLeafHeaders=Vp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,s,a;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(s=null==(a=n[0])?void 0:a.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},Hp(e.options,qp))}};function Kp(e,t,n,r){var o,i;let l=0;const s=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&&s(e.columns,t+1)},0)};s(e);let a=[];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 s,a=!1;if(e.column.depth===o.depth&&e.column.parent?s=e.column.parent:(s=e.column,a=!0),l&&(null==l?void 0:l.column)===s)l.subHeaders.push(e);else{const o=Bp(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:a,placeholderId:a?`${i.filter(e=>e.column===s).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),a.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Bp(n,e,{depth:l,index:t}));c(u,l-1),a.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=a[0])?void 0:i.headers)?o:[]),a}const Up=(e,t,n,r,o,i,l)=>{let s={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows: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}(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Vp(()=>[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:Vp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Hp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,s,t,t.id)),Hp(e.options,"debugRows")),_getAllCellsByColumnId:Vp(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Hp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},Gp={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()}}},Yp=(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))};Yp.autoRemove=e=>oh(e);const Jp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Jp.autoRemove=e=>oh(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=>oh(e);const Zp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Zp.autoRemove=e=>oh(e);const Xp=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});Xp.autoRemove=e=>oh(e)||!(null!=e&&e.length);const $p=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});$p.autoRemove=e=>oh(e)||!(null!=e&&e.length);const eh=(e,t,n)=>e.getValue(t)===n;eh.autoRemove=e=>oh(e);const th=(e,t,n)=>e.getValue(t)==n;th.autoRemove=e=>oh(e);const nh=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};nh.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]},nh.autoRemove=e=>oh(e)||oh(e[0])&&oh(e[1]);const rh={includesString:Yp,includesStringSensitive:Jp,equalsString:Qp,arrIncludes:Zp,arrIncludesAll:Xp,arrIncludesSome:$p,equals:eh,weakEquals:th,inNumberRange:nh};function oh(e){return null==e||""===e}const ih={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:zp("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?rh.includesString:"number"==typeof r?rh.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?rh.equals:Array.isArray(r)?rh.arrIncludes:rh.weakEquals},e.getFilterFn=()=>{var n,r;return Fp(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:rh[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=Tp(n,o?o.value:void 0);var l;if(lh(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const s={id:e.id,value:i};var a;return o?null!=(a=null==t?void 0:t.map(t=>t.id===e.id?s:t))?a:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Tp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!lh(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 lh(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const sh={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},ah={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:zp("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?sh.sum:"[object Date]"===Object.prototype.toString.call(r)?sh.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Fp(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:sh[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)}}},ch={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:zp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Vp(e=>[gh(t,e)],t=>t.findIndex(t=>t.id===e.id),Hp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=gh(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=gh(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=Vp(()=>[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)},Hp(e.options,"debugTable"))}},uh={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:zp("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,s,a;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!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(a=null==e?void 0:e.right)?a:[]).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=Vp(()=>[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))},Hp(t.options,"debugRows")),e.getLeftVisibleCells=Vp(()=>[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},Hp(t.options,"debugRows")),e.getRightVisibleCells=Vp(()=>[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},Hp(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=Vp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Hp(e.options,"debugColumns")),e.getRightLeafColumns=Vp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Hp(e.options,"debugColumns")),e.getCenterLeafColumns=Vp(()=>[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))},Hp(e.options,"debugColumns"))}},dh={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fh={getDefaultColumnDef:()=>dh,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:zp("columnSizing",e),onColumnSizingInfoChange:zp("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:dh.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:dh.size),null!=(o=e.columnDef.maxSize)?o:dh.maxSize)},e.getStart=Vp(e=>[e,gh(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Hp(t.options,"debugColumns")),e.getAfter=Vp(e=>[e,gh(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Hp(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(),hh(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],a=hh(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,s=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*s,0))/100}),{...e,deltaOffset:l,deltaPercentage:s}}),"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),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof ph)return ph;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 ph=e,ph}()&&{passive:!1};hh(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let ph=null;function hh(e){return"touchstart"===e.type}const mh={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:zp("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=Vp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Hp(t.options,"debugRows")),e.getVisibleCells=Vp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Hp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Vp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Hp(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 gh(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const bh={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:zp("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=>Tp(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=Tp(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,Tp(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=Tp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Vp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Hp(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}}},vh={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:zp("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}):[],s=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,a;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=s&&s.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=s&&s.has(e))),...Array.from(s)],bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=s&&s.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=s&&s.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=s&&s.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=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=Vp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Hp(e.options,"debugRows")),e.getBottomRows=Vp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Hp(e.options,"debugRows")),e.getCenterRows=Vp(()=>[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))},Hp(e.options,"debugRows"))}},yh={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:zp("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=>{Oh(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(e.options,"debugTable")),e.getFilteredSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(e.options,"debugTable")),e.getGroupedSelectedRowModel=Vp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?wh(e,n):{rows:[],flatRows:[],rowsById:{}},Hp(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 s={...i};return Oh(s,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return jh(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Sh(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Sh(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)}}}},Oh=(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=>Oh(e,t.id,n,r,o))};function wh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=jh(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 jh(e,t){var n;return null!=(n=t[e.id])&&n}function Sh(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()&&(jh(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Sh(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const xh=/([0-9]+)/gm;function Ph(e,t){return e===t?0:e>t?1:-1}function _h(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ch(e,t){const n=e.split(xh).filter(Boolean),r=t.split(xh).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 Eh={alphanumeric:(e,t,n)=>Ch(_h(e.getValue(n)).toLowerCase(),_h(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Ch(_h(e.getValue(n)),_h(t.getValue(n))),text:(e,t,n)=>Ph(_h(e.getValue(n)).toLowerCase(),_h(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Ph(_h(e.getValue(n)),_h(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)=>Ph(e.getValue(n),t.getValue(n))},Ah={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:zp("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 Eh.datetime;if("string"==typeof n&&(r=!0,n.split(xh).length>1))return Eh.alphanumeric}return r?Eh.text:Eh.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 Fp(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:Eh[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const s=null==l?void 0:l.find(t=>t.id===e.id),a=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?s?"toggle":"add":null!=l&&l.length&&a!==l.length-1?"replace":s?"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())}},Rh=[Wp,mh,ch,uh,Gp,ih,{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:zp("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=()=>rh.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Fp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:rh[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ah,ah,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:zp("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()}}}},bh,vh,yh,fh];function kh(e){var t,n;const r=[...Rh,...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 s=[];let a=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{s.push(e),a||(a=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();a=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Tp(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:Vp(()=>[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}},Hp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Vp(()=>[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},s=l.accessorKey;let a,c=null!=(o=null!=(i=l.id)?i:s?"function"==typeof String.prototype.replaceAll?s.replaceAll(".","_"):s.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?a=l.accessorFn:s&&(a=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:a,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Vp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Hp(e.options,"debugColumns")),getLeafColumns:Vp(()=>[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]},Hp(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)},Hp(e,"debugColumns")),getAllFlatColumns:Vp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Hp(e,"debugColumns")),_getAllFlatColumnsById:Vp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Hp(e,"debugColumns")),getAllLeafColumns:Vp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Hp(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 Dh(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)?o().createElement(e,t):e:null;var n}const Mh=["open","onClose","root","children","classes","className","onClick"];function Lh(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 Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(n),!0).forEach(function(t){Nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lh(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 Th=(0,o().forwardRef)(function(e,t){let{open:n,onClose:r,root:i,children:l,classes:s,className:a,onClick:c}=e,u=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,Mh);const d=bi(),f=(0,o().useRef)(null),p=(0,o().useRef)(null);if(!n||!l)return null;const h=(0,Ne.jsx)("div",{ref:f,className:"modal-module__overlay__jUOz9",onClick:e=>{e.target!==f.current&&p.current?.contains(e.target)||(e.stopPropagation(),r?.())},children:(0,Ne.jsx)("div",Ih(Ih({},u),{},{ref:e=>{e&&(p.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:be()("modal-module__modal__MbFDb",a,s?.root),onClick:e=>{e.stopPropagation(),c?.(e)},children:l}))}),m=i&&"current"in i?i.current:i;return(0,pr.createPortal)(h,m??d??document.body)});var zh="surface-module__medium__RDAZM",Fh="surface-module__modal__CR4M1",Vh="surface-module__overlay1__mkcgW",Hh="surface-module__overlay2__SpRc6",qh="surface-module__panel___5TWQ",Bh="surface-module__primary__eubsR",Wh="surface-module__root__NWwiS",Kh="surface-module__small__GMEm1";const Uh=["type","componentSize","children","classes","className"];function Gh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(n),!0).forEach(function(t){Jh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jh(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 Qh=(0,o().forwardRef)(function(e,t){let{type:n="primary",componentSize:r="medium",children:o,classes:i,className:l}=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,Uh);return(0,Ne.jsx)("div",Yh(Yh({ref:t,className:be()(Wh,l,i?.root,f[n],f[r])},s),{},{children:o}))});var Zh="virtualTable-module__align-center__rbiTV",Xh="virtualTable-module__align-left__h55vl",$h="virtualTable-module__align-right__D9XGD",em="virtualTable-module__body-lock__g3lm6",tm="virtualTable-module__border-frame__cK6e3",nm="virtualTable-module__border-spacer__bjkt2",rm="virtualTable-module__borders-all__KkNTI",om="virtualTable-module__borders-horizontal__jR33G",im="virtualTable-module__borders-vertical__uEuZ0",lm="virtualTable-module__bottom-border__WDi6q",sm="virtualTable-module__clickable__e1Fzm",am="virtualTable-module__editable__ykKJ7",cm="virtualTable-module__error__AlQbz",um="virtualTable-module__even-row__G9kZ9",dm="virtualTable-module__first-th-row__gTB11",fm="virtualTable-module__input__woZy1",pm="virtualTable-module__label__MH9F1",hm="virtualTable-module__margin-left-changing__zOfJs",mm="virtualTable-module__medium__ir7ZQ",gm="virtualTable-module__modal-content__x3MRE",bm="virtualTable-module__page-loading-label__GmatN",vm="virtualTable-module__page-loading-lane__dNGr4",ym="virtualTable-module__page-loading-track__fGERG",Om="virtualTable-module__page-loading-up__dNqWK",wm="virtualTable-module__right-border__VUcBZ",jm="virtualTable-module__right-border-with-bottom__RUwY4",Sm="virtualTable-module__root__T5DB8",xm="virtualTable-module__row-button-trigger__GOp1L",Pm="virtualTable-module__rowspan-content__tVYnk",_m="virtualTable-module__select-rows___j564",Cm="virtualTable-module__selected__m1TlO",Em="virtualTable-module__show-in-modal__CRX1n",Am="virtualTable-module__small__Frhxm",Rm="virtualTable-module__sticky__IOXhs",km="virtualTable-module__success__xA9vR",Dm="virtualTable-module__table__DVtV1",Mm="virtualTable-module__table-container__Mg8RS",Lm="virtualTable-module__td__xaUJu",Im="virtualTable-module__th__e9Feh",Nm="virtualTable-module__th-cell__p6rQ6",Tm="virtualTable-module__th-hidden-column__G4mQg",zm="virtualTable-module__th-left-border__VLgUr",Fm="virtualTable-module__th-right-border__bNAS9",Vm="virtualTable-module__tr__zZyk5",Hm="virtualTable-module__vertical-align-center__BgJQa",qm="virtualTable-module__vertical-align-flex-end__tIx0q",Bm="virtualTable-module__vertical-align-flex-start___IFqc",Wm="virtualTable-module__view-cell__eY5xo",Km="virtualTable-module__view-span__SezD2";function Um(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach(function(t){Ym(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ym(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 Jm={cell:({getValue:e,row:{index:t,original:n},column:{id:r,columnDef:i},table:l})=>{const s=e(),{meta:a}=i,c=l.options.meta,[u,d]=(0,o().useState)(s),[f,h]=(0,o().useState)(!1),[m,g]=(0,o().useState)(!1),b=(0,o().useRef)();b.current=()=>{g(!1)},(0,o().useEffect)(()=>{d(s)},[s]);const v=c?.additionalColumnsViews?.(r,s,n[r]?.payload);if(f&&a?.editable){const e=()=>{c?.updateData(t,r,u,n),h(!1)},o=(e,o)=>{d(e),o&&(c?.updateData(t,r,e,n),h(!1))};return(0,Ne.jsx)(Ti,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:null!=v?.edit?v.edit(o,e):(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)(sp,{classes:{input:fm},componentSize:"small",variant:"outlined",onChange:e=>o(e.target.value),onBlur:e,value:u??"",type:a.inputType,fullWidth:!0,autoFocus:!0})})})}const y=null!=v?.view?v.view:a?.valueFormat?a.valueFormat(s):void 0===a?.toFixed||Number.isNaN(parseFloat(s))?s:parseFloat(Number(s).toFixed(a.toFixed)),O=Boolean(a?.editable||a?.showInModal||a?.onClick&&n[r]?.payload);return(0,Ne.jsx)(Ti,{label:n[r]?.tooltip??"",alertType:"error"===n[r]?.fill?"error":"success"===n[r]?.fill?"success":"default",children:(0,Ne.jsxs)("div",Gm(Gm({className:be()(Wm,a?.rowsAlign?p[`align${a?.rowsAlign}`]:void 0,a?.showInModal?Em:void 0,a?.onClick&&n[r]?.payload?sm:void 0,n[r]?.fill?p[n[r].fill]:void 0,a?.editable?am:void 0,a?.verticalAlign?p[`verticalAlign${a?.verticalAlign}`]:void 0)},O?{"data-vt-cell-action":""}:void 0),{},{onClick:O?e=>{e.ctrlKey||e.metaKey||e.shiftKey||(a?.editable?h(!0):a?.showInModal?g(!0):a?.onClick&&n[r]?.payload&&a.onClick(n[r]?.payload??{}))}:void 0,children:[(0,Ne.jsx)("span",{className:Km,children:y}),m&&(0,Ne.jsx)(Th,{root:c?.tableContainerRef?.current,open:m,onClose:()=>b.current?.(),children:(0,Ne.jsx)(Qh,{type:"panel",children:(0,Ne.jsx)("div",{className:gm,children:y})})})]}))})}},Qm=(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 Zm(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:n}=e,[r,i]=(0,o().useState)(t);(0,o().useEffect)(()=>{n(r)},[r]);const l=(0,o().useCallback)(()=>{i([void 0,void 0]),n([void 0,void 0])},[]);return(0,Ne.jsxs)("div",{className:be()("dateFiltration-module__root__q1XLM"),children:[(0,Ne.jsx)(pf,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:r,onValueChange:e=>{i(e)},tabIndex:-1}),(0,Ne.jsx)(Ti,{label:"Сбросить",children:(0,Ne.jsx)(He,{onClick:l,className:be()("dateFiltration-module__button__qR5Az"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,Ne.jsx)(nl,{})})})]})}var Xm="numberFiltration-module__input__a8GyD";const $m=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function eg(e){const{defaultValues:t=[-1/0,1/0],actionWithSelected:n}=e,[r,i]=(0,o().useState)(t[0]===-1/0&&t[1]===1/0?$m[0]:t[0]===t[1]?$m[3]:t[0]===-1/0?$m[2]:t[1]===1/0?$m[1]:$m[0]),[l,s]=(0,o().useState)(t),a=(e,t)=>{s(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])},c=(0,o().useCallback)(()=>{s([-1/0,1/0]),n([-1/0,1/0])},[]);return(0,Ne.jsxs)("div",{className:be()("numberFiltration-module__root__sSnKZ"),children:[(0,Ne.jsx)(Ad,{items:$m,componentSize:"small",variant:"filled",selected:r,onValueChange:e=>{if(e){const t=[...l];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}s(t),n(t),i(e)}},classes:{root:"numberFiltration-module__select__KO1Ce"},tabIndex:-1}),(0,Ne.jsx)("div",{className:be()("numberFiltration-module__inputs-container__Eqfwf"),children:"range"===r.value?(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:l[0]>-1/0&&l[0]<1/0?l[0]:"",onChange:e=>{a("more",e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}}),(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:l[1]>-1/0&&l[1]<1/0?l[1]:"",onChange:e=>{a("less",e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}})]}):(0,Ne.jsx)(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:"more"===r.value?l[0]>-1/0&&l[0]<1/0?l[0]:"":l[1]>-1/0&&l[1]<1/0?l[1]:"",onChange:e=>{a(r.value,e.target.value)},onBlur:()=>n(l),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),n(l))}})}),(0,Ne.jsx)(Ti,{label:"Сбросить",children:(0,Ne.jsx)(He,{onClick:c,className:be()("numberFiltration-module__button__PJOUL"),variant:"text",componentSize:"small",textSecondary:!0,icon:(0,Ne.jsx)(nl,{})})})]})}function tg(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 ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(t){rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rg(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 og(e){const{headerMeta:{sortable:t=!1,selectUnique:n=!1,sortType:r,sortAnotherName:i,filtrationByNumber:l=!1,filtrationByDate:s=!1,filtrationByValue:a=!1,valueFormat:c,toFixed:u},sortBy:d,setSortBy:f,filterBy:p,setFilterBy:h,headerName:m,containerRef:g,showUniqueValuesCount:b,leftAdditionalContent:v,rightAdditionalContent:y,children:O,rows:w,rowsForUniqueCount:j,externalValues:S}=e,x=i??m,{t:P}=Ju(),_=(0,o().useMemo)(()=>{const e=P("nntc_ui.view.virtualTable.noValue"),t=e=>null==e||""===e,n=e=>t(e)?"":String(e),r=n=>t(n)?e:c?c(n)?.toString()||e:void 0===u||Number.isNaN(parseFloat(n))?String(n)||e:parseFloat(Number(n).toFixed(u)).toString(),o=t=>t.sort((t,n)=>{const r=t.name.toString(),o=n.name.toString();return r===e?-1:o===e?1:Qm(r,o)}),i=e=>({name:r(e),value:n(e)});if(S)return o([...S.map(i).reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]);const l=w.map(e=>i(e[x]?.value));o(l);return[...l.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]},[w,x,c,u,S,P]),C=(0,o().useMemo)(()=>{const e=new Set;S?S.forEach(t=>e.add(null==t||""===t?"":String(t))):(j??w).forEach(t=>{const n=t?.[x]?.value;e.add(null==n||""===n?"":String(n))});const t=p.find(e=>e.columnName===x&&"value"===e.type),n=(t?.values??[]).map(e=>null==e||""===e?"":String(e));if(n.length>0){const t=new Set(n);let r=0;return e.forEach(e=>{t.has(e)&&(r+=1)}),r}return e.size},[j,w,x,p,S]),E=(0,o().useMemo)(()=>{const e={};return p.find(e=>e.columnName===x)?.values.forEach(t=>{e[null==t||""===t?"":String(t)]=!0}),e},[p,x]),A=(0,o().useMemo)(()=>p.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[p,x]),R=(0,o().useMemo)(()=>p.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[p,x]),k=e=>()=>{f(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?ng(ng({},t),{},{direction:e}):ng({},t)):t.concat([{columnName:x,direction:e,sortType:r}]))},D=p.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),M=Object.keys(E).length>0||D,L=d.some(e=>e.columnName===x&&"desc"===e.direction),I=d.some(e=>e.columnName===x&&"asc"===e.direction),N=[];return n&&(N.push({type:"divider",name:P("nntc_ui.view.virtualTable.uniqueValues")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.uniqueOnly"),icon:(0,Ne.jsx)(nc,{}),selected:D,onClick:()=>{h(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?ng(ng({},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&&(N.push({type:"divider",name:P("nntc_ui.view.virtualTable.sort")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.AZ"),icon:(0,Ne.jsx)(uc,{}),selected:d.some(e=>e.columnName===x&&"asc"===e.direction),onClick:k("asc")}),N.push({type:"item",name:P("nntc_ui.view.virtualTable.ZA"),icon:(0,Ne.jsx)(hc,{}),selected:d.some(e=>e.columnName===x&&"desc"===e.direction),onClick:k("desc")})),(0,Ne.jsxs)("div",{className:be()("headerDropdown-module__root__WMUvA"),children:[v?.(x),O?.(b&&(0,Ne.jsx)("div",{children:`(${C})`})),y?.(x),(t||n||a||s||l)&&(0,Ne.jsx)(Wl,{placement:"bottom-end",wrapTrigger:!0,root:g,description:(0,Ne.jsxs)(Ne.Fragment,{children:[l&&(0,Ne.jsx)(eg,{defaultValues:A,actionWithSelected:e=>{h(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]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),s&&(0,Ne.jsx)(Zm,{defaultValues:R,actionWithSelected:e=>{h(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]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),a&&(0,Ne.jsx)("div",{className:be()("headerDropdown-module__checklist-wrap__P7ADR"),children:(0,Ne.jsx)(jp,{items:_,selected:E,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e).map(e=>""===e?null:e);h(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?ng(ng({},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]=ng(ng({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(t||n)&&(0,Ne.jsx)("div",{children:(0,Ne.jsx)(Sd,{items:N})})]}),children:(0,Ne.jsx)(Ti,{label:P("nntc_ui.view.virtualTable.sortAndFiltration"),placement:"bottom-end",root:g,children:(0,Ne.jsx)(He,{componentSize:"small",variant:"text",textSecondary:!M&&!L&&!I,icon:M?(0,Ne.jsx)(ga,{}):L?(0,Ne.jsx)(hc,{}):I?(0,Ne.jsx)(uc,{}):(0,Ne.jsx)(Xl,{})})})})]})}function ig(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 lg=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}},sg=(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:lg(t?.accessorKey?t:e),columns:e.columns?sg(e.columns,e):void 0})),ag=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(ag(e,t+1,n)):[],cg=(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(cg(e,t-1,n)):[],ug=(e,t,n)=>e[t+1]&&cg(e,t+1,n).length?[e[t+1].headers[n]].concat(ug(e,t+1,n)):[],dg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(dg(e,t-1)):[];function fg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=kd()(t.values[0]),n=kd()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=kd()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}const o=t.values.some(e=>null==e||""===e);return n&&null!=r&&""!==r?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes(r.toString())||t.values.includes(r):o}const pg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>fg(e,n)||1===e.isNew?.value):e;return pg(r,t.slice(0,t.length-1))}return e},hg=(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=Qm(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return hg(r,t.slice(0,t.length-1))}return e},mg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},gg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function bg(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 vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach(function(t){yg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yg(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 Og=(0,o().forwardRef)((e,t)=>{const{rows:n,columns:r,additionalColumnsViews:i,onChangeCell:l,cellWidth:s,rowButtons:a,fixedColumnsCount:c=0,headerRowHeight:u=[32],bodyRowHeight:d=32,rowActionWidth:f=77,classes:h,dynamicRowHeight:m=!1,height:g,scrollToBottom:b,useTableContainerAsRootForPopup:v,componentSize:y="small",borders:O="horizontal",showUniqueValuesCount:w=!1,globalFilters:j,globalSorts:S,onFiltersChange:x,onSortsChange:P,leftAdditionalHeaderContent:_,rightAdditionalHeaderContent:C,showRowsNumbers:E,stripedRows:A=!0,enableSelectRows:R=!1,onSelectRowsChange:k,globalSelectedRows:D,manualRows:M=!1,externalFilterValues:L,windowed:I=!1,totalCount:N,page:T,pageSize:z,onRequestPage:F,loadingPage:V=!1,lockBody:H=!1}=e,{t:q}=Ju(),B=c+(E?1:0),[W,K]=(0,o().useState)(j??[]),[U,G]=(0,o().useState)([...S??[],{columnName:"isNew",direction:"desc"}]),[Y,J]=(0,o().useState)(()=>new Set),Q=(0,o().useRef)(null),Z=(0,o().useRef)(null),X=(0,o().useRef)("down"),$=(0,o().useRef)(0),ee=(0,o().useRef)("down"),te=(0,o().useRef)(Y),ne=(0,o().useRef)(R?D??[]:[]),re=(0,o().useRef)([]),oe=(0,o().useRef)(null),ie=(0,o().useRef)(null),le=(0,o().useRef)(null),se=(0,o().useRef)(k),ae=(0,o().useRef)(R);te.current=Y,se.current=k,ae.current=R;const ce=Boolean(I&&z&&z>0),ue=ce?(T??0)*z:0,de=ce?Math.max(0,N??0):0,fe=(0,o().useMemo)(()=>E?`rowNumber_${Tt()}`:null,[E]),pe=(0,o().useMemo)(()=>{if(!fe)return sg(r);const e=t=>vg(vg({id:fe},t?.columns?.length?void 0:{accessorKey:fe}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(r[0]),...r];return sg(t)},[r,fe]),he=(0,o().useMemo)(()=>{if(M)return n;const e=[...n],t=W.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||n.some(t=>fg(t,e))),r=t.length?pg(e,t):W.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!kd()(e).isSame(kd()(0))&&!kd()(e).isSame(kd()(Number.MAX_SAFE_INTEGER))))?[]:e;let o=U.length?hg(r,U):r;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(o=ig(o,e.columnName));return o},[n,U,W,M]),me=(0,o().useMemo)(()=>{const e=fe?he.map((e,t)=>vg(vg({},e),{},{[fe]:{value:ue+t+1}})):he;return M&&ce&&0===e.length&&de>0||window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[he,fe,ue,M,ce,de]);re.current=he;const ge=(0,o().useCallback)((e,t)=>{const n=re.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=te.current,s=o.size===l.size&&r.every(e=>l.has(e));s||(J(o),te.current=o,ne.current=i,se.current?.(i)),null!==t&&n[t]?(oe.current=t,ie.current=n[t]):null===t&&(oe.current=null,ie.current=null)},[]);(0,o().useEffect)(()=>{const e=ie.current;if(e){const t=he.indexOf(e);oe.current=-1===t?null:t,-1===t&&(ie.current=null)}if(0===ne.current.length)return void(te.current.size>0&&ge(new Set,oe.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(he,ne.current),n=t.size>0?Math.max(...t):null;ge(t,oe.current??n)},[he,ge]),(0,o().useEffect)(()=>{!R&&te.current.size>0&&ge(new Set,null)},[R,ge]);const ve=(0,o().useMemo)(()=>{if(M)return[];const e=[...n];return Array.from({length:W.length+1},(t,n)=>pg(e,W.slice(0,n)))},[n,W,M]),ye=(0,o().useMemo)(()=>s??(e=>fe&&0===e?8*(ce?de:me.length).toString().length+24:pe[e]?.meta?.width??200),[s,pe,me,fe,ce,de]),Oe=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=o().useState(()=>({current:kh(t)})),[r,i]=o().useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:me,columns:pe,defaultColumn:Jm,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Vp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let a=0;a<t.length;a++){const c=Up(e,e._getRowId(t[a],a,i),t[a],a,o,void 0,null==i?void 0:i.id);var s;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[a],a),null!=(s=c.originalSubRows)&&s.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Hp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:pe.filter((e,t)=>t<B).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{l?.(e,t,n,r)},tableContainerRef:Q,additionalColumnsViews:i}}),{rows:we}=Oe.getRowModel(),je=Oe.getHeaderGroups(),Se=Du({count:ce?de:we.length,getScrollElement:()=>Q?.current,estimateSize:()=>d,overscan:5}),xe=Du({horizontal:!0,count:je[0]?.headers.length??1,rangeExtractor:(0,o().useCallback)(e=>{const t=[...Array(B)].map((e,t)=>t);return[...new Set([...t,...ju(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>Q?.current,estimateSize:ye,overscan:5}),Pe=(0,o().useMemo)(()=>[...Array(B)].reduce((e,t,n)=>e+ye(n),0),[B,ye]),_e=(0,o().useMemo)(()=>{const e=je.length-u.length,t=[...u];if(e>0)for(let n=0;n<e;n++)t.push(32);return t},[u,je]),Ce=(0,o().useMemo)(()=>_e.reduce((e,t,n)=>n<je.length?e+t:e,0),[_e,je]),Ee=(0,o().useCallback)(e=>_e.reduce((t,n,r)=>r<e?t+n:t,0),[_e,je]),Ae=Se.getTotalSize(),Re=xe.getTotalSize(),ke=Ae+Ce,De=Re+(a?f:0),Me=()=>{K([])},Le=()=>{G([{columnName:"isNew",direction:"desc"}])};(0,o().useImperativeHandle)(t,()=>({resetFilters:Me,resetSorts:Le})),(0,o().useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${hm}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return Q?.current&&(Q.current.addEventListener("scroll",e),b&&Q.current.scrollTo(0,Q.current.scrollHeight)),()=>{Q?.current&&Q.current.removeEventListener("scroll",e)}},[Q,b]);const Ie=Se.getVirtualItems();(0,o().useEffect)(()=>{if(!ce||!F||V||!z||de<=0||0===Ie.length)return;const e=Q.current;if(!e)return;const{scrollTop:t}=e;t>$.current+1?ee.current="down":t<$.current-1&&(ee.current="up"),$.current=t;const n="up"===ee.current,r=Math.max(0,e.clientHeight-Ce),o=n?1/3:1-1/3,i=Math.max(0,t+r*o-Se.options.scrollMargin),l=Se.getVirtualItemForOffset(i);if(!l)return;const s=Math.floor(l.index/z);s!==(T??0)&&(X.current=s<(T??0)?"up":"down",F(s))},[ce,F,V,z,de,T,Ce,Ie,Se]),(0,o().useLayoutEffect)(()=>{if(!V)return;const e=Q.current,t=Z.current;if(!e||!t)return;const n=()=>{t.style.width=`${e.clientWidth}px`};n();const r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[V]);const Te=xe.getVirtualItems(),ze=Te[Te.length-1]?.index,Fe=(0,o().useMemo)(()=>new Map(Ie.map(e=>[e.index,e.size])),[Ie]),Ve=(0,o().useCallback)(e=>Fe.get(e)??d,[d,Fe]),qe=(0,o().useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=ce?de:we.length,o=Math.min(r-1,e+n-1),i=o-e+1;let l=0;for(let t=e;t<=o;t+=1)l+=Ve(t);const s="all"===O||"horizontal"===O?Math.max(0,i-1):0;return Math.max(0,l-s)},[O,Ve,ce,we.length,de]),Be=(0,o().useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=we[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[we]),We=(0,o().useCallback)(e=>{const t=Q.current,n=ce?de:re.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-Ce;let o;if(r<0)o=0;else if(r>=Se.getTotalSize())o=n-1;else{const e=Se.measurementsCache;if(o=-1,e.length>0){let t=0,i=e.length-1;for(;t<=i;){const l=t+i>>1,s=e[l];if(r<s.start)i=l-1;else{if(!(r>=s.end)){o=Math.min(n-1,s.index);break}t=l+1}}}if(-1===o)if(m){const e=Se.getVirtualItems();if(0===e.length)return null;o=r<e[0].start?e[0].index:e[e.length-1].index}else o=Math.max(0,Math.min(n-1,Math.floor(r/d)))}if(!ce)return o;const i=o-ue,l=re.current.length;return i>=0&&i<l?i:null},[d,m,ce,ue,Se,Ce,de]),Ke=(e,t)=>{const n=le.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:s}=e;if(o&&null!==i){const e=mg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(s){const e=mg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});ge(r.indexes,r.anchor)},Ue=e=>{const t=le.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||Ke(t.startIndex,!1),le.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Ge=(0,o().useCallback)((e,t)=>1===e?.isNew?.value||Y.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[Y]),Ye=(0,o().useMemo)(()=>{const e=we.length,t=new Map;return we.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},[we]),Je=(0,o().useMemo)(()=>we.length*we.length+we.length+10,[we.length]),Qe=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,Ne.jsx)(Ne.Fragment,{children:n.map((t,r)=>(0,Ne.jsxs)(o().Fragment,{children:[t,r<n.length-1&&(0,Ne.jsx)("br",{})]},`${e.id}_${r}`))})}return Dh(e.column.columnDef.header,e.getContext())},Ze=(()=>{if(!V||!ce||0===we.length)return null;const e=X.current,t="up"===e?ue:ue+we.length-1,n=Se.measurementsCache[t],r=n?.start??t*d;return{direction:e,top:Ce+("up"===e?r:r+(n?.size??d))-Se.options.scrollMargin}})(),[Xe,$e]=Te.length>0?[B&&Te[B].index!==B?Te[B].start-Pe:Te[0].start,Re-Te[Te.length-1].end]:[0,0];return(0,o().useEffect)(()=>{x?.(W)},[W]),(0,o().useEffect)(()=>{P?.(U.filter(e=>"isNew"!==e.columnName))},[U]),(0,Ne.jsxs)("div",{className:be()(Sm,p[y],p[`borders${et=O,et[0].toUpperCase()+et.substring(1)}`],h?.root),style:g?{height:g}:void 0,children:[(0,Ne.jsx)("div",{ref:Q,className:be()(Mm,"styledScroll",R&&_m),onPointerDown:R?e=>{if(!ae.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${Vm}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));if(!Number.isFinite(n))return null;if(!ce)return n;const r=n-ue,o=re.current.length;return r>=0&&r<o?r:null})(e.target);if(null===t){if(gg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${Im}`)))return;return void(te.current.size>0&&ge(new Set,null))}if(gg(e.target))return;const n=e.target instanceof Element&&null!==e.target.closest("[data-vt-cell-action]"),r=e.ctrlKey||e.metaKey||e.shiftKey;if(n&&!r)return;const o="mouse"===e.pointerType||"pen"===e.pointerType;le.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(te.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:oe.current,isDragCapable:o&&!n,hasDragged:!1},n?Ke(t,!1):o&&(e.currentTarget.setPointerCapture(e.pointerId),Ke(t,!1))}:void 0,onPointerMove:R?e=>{const t=le.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=Q.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+Ce?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=We(e.clientY);null!==i&&Ke(i,!0)}:void 0,onPointerUp:R?Ue:void 0,onPointerCancel:R?Ue:void 0,onDragStart:R?e=>e.preventDefault():void 0,children:(0,Ne.jsxs)("div",{className:Dm,style:{width:`${De}px`,height:`${ke}px`},children:[(0,Ne.jsx)("div",{style:{position:"sticky",top:0,zIndex:Je},children:je.map((e,t)=>{const n=e=>{const t=e.column.columnDef.meta,n=t?.sortAnotherName??e.column.columnDef.id??e.id,r=W.findIndex(e=>e.columnName===n),o=M?L?.[n]??[]:void 0,i=o?[]:-1===r?me:ve[r];return(0,Ne.jsx)("div",{className:be()(Nm),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==fe&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&w)?(0,Ne.jsx)(og,{headerMeta:t,sortBy:U,setSortBy:G,filterBy:W,setFilterBy:K,rows:i,rowsForUniqueCount:me,externalValues:o,headerName:e.column.columnDef.id??e.id,containerRef:v?Q:void 0,showUniqueValuesCount:w,leftAdditionalContent:_,rightAdditionalContent:C,children:n=>(0,Ne.jsxs)("div",{className:be()(pm,t?.headerAlign?p[`align${t?.headerAlign}`]:Xh),children:[Qe(e),n]})}):(0,Ne.jsx)("div",{className:be()(pm,t?.headerAlign?p[`align${t?.headerAlign}`]:Xh),children:Qe(e)})})};return(0,Ne.jsxs)(o().Fragment,{children:[[...Array(B)].map((r,o)=>{const i=e.headers[o],l=ag(e.headers,o,ze),s=ug(je,t,o);return(0,Ne.jsx)("div",{className:be()(Im,0===t?dm:void 0,!s.length&&o!==e.headers.length-1&&Fm,0===o&&zm,s.length&&!l.length&&Tm,hm),style:{zIndex:Je+1,width:`${ye(o)}px`,height:`${_e[t]}px`,transform:`translateX(${Array.from({length:o},(e,t)=>ye(t)).reduce((e,t)=>e+t,0)}px) translateY(${Ee(t)}px)`},children:n(i)},`${e.id}-${i.id}`)}),Te.map(r=>{if(r.index>B-1){const o=e.headers[r.index],i=ag(e.headers,r.index,ze),l=dg(e.headers,r.index),s=ug(je,t,r.index),a=cg(je,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?Je+i.length+2:void 0,d=a.length?_e[t]+a.reduce((e,n,r)=>e+(_e[t-r-1]??0),0):_e[t],f=a.length?Ee(t)-a.reduce((e,n,r)=>e+(_e[t-r-1]??0),0):Ee(t);return(0,Ne.jsx)("div",{className:be()(Im,0===t&&dm,!s.length&&r.index!==e.headers.length-1&&Fm,0===r.index&&zm,s.length&&!i.length&&Tm),style:{width:`${c}px`,zIndex:u,height:`${d}px`,transform:`translateX(${r.start+(B?-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,Ne.jsx)("div",{className:be()(Im,0===t?dm:void 0),style:{width:`${f}px`,height:`${_e[t]}px`,transform:`translateX(${Re+(B?-2:0)}px) translateY(${Ee(t)}px)`}})]},e.id)})}),Ie.map(e=>{const t=e.index-ue,n=t>=0&&t<we.length?we[t]:void 0;return n?(0,Ne.jsxs)("div",{"data-index":e.index,ref:m?Se.measureElement:void 0,className:be()(Vm,A&&e.index%2!=0&&um,(1===n.original?.isNew?.value||Y.has(t))&&Cm),style:vg(vg({zIndex:Ye.get(t)??1},!m&&{height:e.size}),{},{transform:"translateY("+(Ce+e.start-Se.options.scrollMargin)+"px)"}),children:[(0,Ne.jsx)("div",{style:{width:`${Xe}px`}}),Te.map(r=>{const o=n.getAllCells()[r.index],i="left"===o.column.getIsPinned(),l=n.original?.[o.column.id],s=Math.max(1,l?.rowspan??1),a=Be(t,o.column.id),c=s>1&&!a;return(0,Ne.jsx)("div",{"data-col-index":r.index,className:be()(Lm,i&&Rm),style:vg(vg({},i&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!m&&!c&&{overflow:"hidden"}),"data-index":e.index,children:!a&&(c?(0,Ne.jsx)("div",{className:Pm,style:{height:`${qe(e.index,s)}px`,backgroundColor:Ge(n.original,t)},children:Dh(o.column.columnDef.cell,o.getContext())}):Dh(o.column.columnDef.cell,o.getContext()))},`cell-${e.key}-${r.key}`)}),!!a&&(0,Ne.jsx)("div",{className:be()(Lm),style:vg({width:`${f}px`,justifyContent:"flex-start",padding:"4px"},!m&&{overflow:"hidden"}),children:a?.(n.original)?.map(e=>(0,Ne.jsx)(o().Fragment,{children:e.template?e.template(e):(0,Ne.jsx)(Ti,{label:e.title,placement:"top",wrapTrigger:!0,classes:{trigger:xm},children:(0,Ne.jsx)(He,{onClick:()=>e.onClick?.(t,n.original),componentSize:"small",variant:"text",icon:e.icon})})},e.title))}),(0,Ne.jsx)("div",{style:{width:`${$e}px`}})]},`row-${e.key}`):(0,Ne.jsx)("div",{"data-index":e.index,className:be()(Vm,A&&e.index%2!=0&&um),style:{height:e.size,transform:"translateY("+(Ce+e.start-Se.options.scrollMargin)+"px)"}},`row-${e.key}`)}),Ze&&(0,Ne.jsx)("div",{className:ym,style:{top:Ze.top,zIndex:Je-1},children:(0,Ne.jsx)("div",{ref:Z,className:be()(vm,"up"===Ze.direction&&Om),children:(0,Ne.jsx)("div",{className:bm,role:"status",children:q("nntc_ui.view.virtualTable.loadingData")})})}),("all"===O||"vertical"===O||"horizontal"===O)&&(0,Ne.jsxs)("div",{className:tm,style:{zIndex:Je+2},children:["all"===O||"vertical"===O?(0,Ne.jsx)("div",{className:be()(wm,"all"===O&&jm)}):(0,Ne.jsx)("div",{className:nm}),("all"===O||"horizontal"===O)&&(0,Ne.jsx)("div",{className:lm})]})]})}),H&&(0,Ne.jsx)("div",{className:em,style:{"--body-lock-top":`${Ce}px`}})]});var et});var wg="treeViewItem-module__selectable__ZflaR",jg="treeViewItem-module__selected__JQfHF";const Sg=(0,o().memo)(function e({title:t,value:n,searchValue:r,selected:i,onSelect:l,type:s,isSelectable:a,startIcons:c,children:u}){const[d,f]=(0,o().useState)(!1);(0,o().useEffect)(()=>{f(!!r)},[r]);const p=!!u?.length,h=s&&c?.[s],m=i[n];return(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:be()("treeViewItem-module__item__x24lD",{[wg]:a}),onClick:()=>{a&&l?l(n):f(!d)},children:[p&&(0,Ne.jsx)(Na,{}),(0,Ne.jsxs)("div",{className:be()("treeViewItem-module__title__LS87U",{[jg]:m}),children:[h,(0,Ne.jsx)(pt,{variant:"subtitle2",children:t}),a&&(0,Ne.jsx)("span",{className:"treeViewItem-module__select-icon__Psa6v",children:m?(0,Ne.jsx)(oa,{}):(0,Ne.jsx)(Yl,{})})]})]}),d&&p&&(0,Ne.jsx)("div",{className:"treeViewItem-module__children__zgXjR",children:u.map(t=>(0,Ne.jsx)(e,{title:t.name,value:t.id,children:t.children,selected:i,searchValue:r,type:t.type,isSelectable:t.isSelectable,startIcons:c,onSelect:l},t.id))})]})});function xg(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 Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach(function(t){_g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _g(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 Cg=["data","selected","startIcons","onSelect","withSearch","className"];function Eg(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 Ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eg(Object(n),!0).forEach(function(t){Rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rg(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 kg=(0,o().forwardRef)(function(e,t){let{data:n,selected:r,startIcons:i,onSelect:l,withSearch:s=!1,className:a}=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,Cg);const[u,d]=(0,o().useState)(""),f=(0,o().useCallback)(e=>d(e.target.value),[]),p=(0,o().useMemo)(()=>r.reduce((e,t)=>(e[t]=!0,e),{}),[r]),h=(0,o().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(Pg(Pg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(n,u),[n,u]);return(0,Ne.jsxs)("div",Ag(Ag({ref:t,className:a},c),{},{children:[s&&(0,Ne.jsx)(sp,{variant:"outlined",startIcon:(0,Ne.jsx)(Xa,{}),value:u,fullWidth:!0,onChange:f,classes:{root:"treeView-module__search__dvz4l"}}),(0,Ne.jsx)("div",{className:"styledScroll",children:h.map(({id:e,name:t,children:n})=>(0,Ne.jsx)(Sg,{title:t,value:e,searchValue:u,children:n,startIcons:i,onSelect:l,selected:p},e))})]}))}),Dg=(0,o().memo)(kg);var Mg="pairs-module__labels-with-borders__R7DHF",Lg="pairs-module__row-container-borders__aZqF4",Ig="pairs-module__values-with-borders__IoG1U";function Ng(e){const{label:t}=e,[n,r]=(0,o().useState)(t);return(0,Ne.jsx)(Ti,{label:n,children:(0,Ne.jsx)(pt,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{r(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const Tg=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function zg(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 Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach(function(t){Vg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vg(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 Hg=(0,o().forwardRef)(function(e,t){let{pairs:n,column1Width:r="50%",column2Width:o="50%",showBorder:i,minRowHeight:l,classes:s,className:a,style:c}=e,u=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,Tg);return(0,Ne.jsx)("div",Fg(Fg({ref:t,className:be()(a,s?.root),style:c},u),{},{children:n.map((e,t)=>(0,Ne.jsx)("div",{style:{minHeight:l,display:"flex"},className:be()(s?.rowContainer,{[Lg]:i}),children:e&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("div",{className:be()("pairs-module__labels-container__Sr8b_",s?.labelsContainer,{[Mg]:i}),style:{width:r,minWidth:r},children:(0,Ne.jsx)(pt,{className:"pairs-module__dim-typography__WR4xl",children:e.label})}),(0,Ne.jsx)("div",{style:{width:o,minWidth:o},className:be()("pairs-module__values-container__jB2cJ",s?.valuesContainer,{[Ig]:i}),children:(0,Ne.jsx)(Ng,{label:e.value})})]})},t))}))});var qg="chip-module__clickable__TUTgS",Bg="chip-module__filled__EHPO6",Wg="chip-module__icon__lCVDX",Kg="chip-module__icon-clickable__pVkQ_",Ug="chip-module__icon-left__ErNwI",Gg="chip-module__icon-right__CrocA",Yg="chip-module__icon-right-slot__wpFIw",Jg="chip-module__label__zdrBP",Qg="chip-module__medium__UhEci",Zg="chip-module__outlined__r71l2",Xg="chip-module__root__PRr_w",$g="chip-module__secondary__A_nQw",eb="chip-module__small__dtqpK",tb="chip-module__with-icon__wzJU8";const nb=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function rb(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 ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rb(Object(n),!0).forEach(function(t){ib(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ib(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 lb=(0,o().forwardRef)(function(e,t){let{variant:n="filled",componentSize:r="medium",icon:o,iconPlacement:i="right",secondary:l,onClick:s,onIconClick:a,children:c,classes:u,className: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,nb);const p=e=>{e.stopPropagation(),a?.()},m=a?"button":"span",g=!!o&&"left"===i,b=!!o&&"right"===i;return(0,Ne.jsxs)("div",ob(ob({ref:t,className:be()(Xg,h[n],h[r],!!o&&tb,g&&Ug,b&&Gg,l&&$g,s&&qg,d,u?.root),tabIndex:s?0:void 0,role:s?"button":void 0},f),{},{onClick:s,children:[g&&(0,Ne.jsx)(m,{className:be()(Wg,a&&Kg,u?.icon),onClick:a?p:void 0,"aria-label":a?"Удалить":void 0,children:o}),c&&(0,Ne.jsx)("span",{className:be()(Jg,u?.label),children:c}),b&&(0,Ne.jsx)(m,{className:be()(Wg,Yg,a&&Kg,u?.icon),onClick:a?p:void 0,"aria-label":a?"Удалить":void 0,children:o})]}))}),sb=["width","height","className","classes","alt"];function ab(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 cb(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 ub=(0,o().forwardRef)(function(e,t){let{width:n=60,height:r=1.5*n,className:o,classes:i,alt:l="loading"}=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,sb);return(0,Ne.jsx)("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(t){cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:l,width:n,height:r,className:be()("loader-module__root__RU8Ov",o,i?.root)},s))});var db="alert-module__default__Wedqm",fb="alert-module__error__hMcQT",pb="alert-module__icon__E2Ch1",hb="alert-module__info___t4NH",mb="alert-module__medium__Z731x",gb="alert-module__message__RhPdI",bb="alert-module__root__OeAcB",vb="alert-module__small__m75_f",yb="alert-module__success__frW1w",Ob="alert-module__warning__p4tWV";const wb=["alertType","componentSize","icon","children","classes","className","role"];function jb(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 Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach(function(t){xb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xb(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 Pb={success:(0,Ne.jsx)(oa,{}),warning:(0,Ne.jsx)(Ea,{}),error:(0,Ne.jsx)(Qi,{}),info:(0,Ne.jsx)(xa,{}),default:null},_b=(0,o().forwardRef)(function(e,t){let{alertType:n="info",componentSize:r="medium",icon:o,children:i,classes:l,className:s,role:a}=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,wb);const u=!1===o?null:o??Pb[n];return(0,Ne.jsxs)("div",Sb(Sb({ref:t,role:a??"alert",className:be()(bb,m[n],m[r],s,l?.root)},c),{},{children:[null!=u&&(0,Ne.jsx)("span",{className:be()(pb,l?.icon),"aria-hidden":!0,children:u}),null!=i&&!1!==i&&(0,Ne.jsx)("div",{className:be()(gb,l?.message),children:i})]}))});var Cb="card-module__actions__ZJ6UM",Eb="card-module__body-full-size__RmpRw",Ab="card-module__body-padded__l5QS5",Rb="card-module__body-padded-no-header__ZbnPS",kb="card-module__header__n_G4u",Db="card-module__header-overlay__uPDfl",Mb="card-module__medium__pVsKH",Lb="card-module__root__GQS7Y",Ib="card-module__small__wzZOs";const Nb=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Tb(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 zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach(function(t){Fb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fb(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 Vb=(0,o().forwardRef)(function(e,t){let{surfaceType:n="primary",componentSize:r="medium",title:o,actions:i,children:l,classes:s,className:a,headerOverlay:c=!0,fullSizeBody:u=!1}=e,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}(e,Nb);const f=!!o||!!i;return(0,Ne.jsxs)(Qh,zb(zb({ref:t,type:n,className:a,classes:{root:be()(Lb,g[r],s?.root)}},d),{},{children:[f&&(0,Ne.jsxs)("div",{className:be()(kb,c&&Db,s?.header),children:[o??(0,Ne.jsx)("div",{}),!!i&&(0,Ne.jsx)("div",{className:be()(Cb,s?.actions),children:i})]}),(0,Ne.jsx)("div",{className:be()(u?Eb:f?Ab:Rb,s?.body),children:l})]}))});var Hb="collapse-module__content__RPGR6",qb="collapse-module__header__O2tiZ",Bb="collapse-module__icon__nZ6Ep",Wb="collapse-module__medium__L7bmb",Kb="collapse-module__root__FEBYR",Ub="collapse-module__small__oMCcw",Gb="collapse-module__title__lBHNR";const Yb=["title","componentSize","defaultOpen","open","onOpenChange","disabled","children","classes","className"];function Jb(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 Qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jb(Object(n),!0).forEach(function(t){Zb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zb(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 Xb=(0,o().forwardRef)(function(e,t){let{title:n,componentSize:r="medium",defaultOpen:i=!1,open:l,onOpenChange:s,disabled:a=!1,children:c,classes:u,className: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,Yb);const p=ht(),h=`${p}-header`,m=void 0!==l,[g,v]=(0,o().useState)(i),y=m?l:g,O=y?Da:Na;return(0,Ne.jsxs)("div",Qb(Qb({ref:t,className:be()(Kb,b[r],d,u?.root)},f),{},{children:[(0,Ne.jsxs)("button",{type:"button",id:h,className:be()(qb,b[r],u?.header),"aria-expanded":y,"aria-controls":p,disabled:a,onClick:()=>{if(a)return;const e=!y;m||v(e),s?.(e)},children:[(0,Ne.jsx)(pt,{variant:"small"===r?"overline":"subtitle3",className:be()(Gb,b[r],u?.title),children:n}),(0,Ne.jsx)("span",{className:be()(Bb,u?.icon),"aria-hidden":!0,children:(0,Ne.jsx)(O,{size:16})})]}),y&&(0,Ne.jsx)("div",{id:p,role:"region","aria-labelledby":h,className:be()(Hb,b[r],u?.content),children:c})]}))});var $b="tabs-module__disable-border__Vw9nt",ev="tabs-module__disabled__e_X85",tv="tabs-module__extraLarge__Vr50m",nv="tabs-module__fill-evenly__N60ct",rv="tabs-module__filled__Kzrnb",ov="tabs-module__filled-tabs___LvVq",iv="tabs-module__has-actions__OD8xm",lv="tabs-module__icon-only__qDPjH",sv="tabs-module__large__v3OJM",av="tabs-module__medium__dvN0f",cv="tabs-module__root__m7YiQ",uv="tabs-module__scrollable__eR0BR",dv="tabs-module__selected__YEXTT",fv="tabs-module__selected-filled__MkMIt",pv="tabs-module__selected-item-filled__eUWV8",hv="tabs-module__small__hiwdI",mv="tabs-module__tab__NoNie",gv="tabs-module__tab-actions__YBrq0",bv="tabs-module__tab-border__tvFwj",vv="tabs-module__tab-border-vertical__TVo15",yv="tabs-module__tab-filled__Gmwpo",Ov="tabs-module__tab-icon__Kj5Oa",wv="tabs-module__tab-item-filled__JTGlH",jv="tabs-module__tab-title__XsuJP",Sv="tabs-module__tab-vertical__WQDkd",xv="tabs-module__vertical__sPO6h",Pv="tabs-module__vertical-label__bjXkb",_v="tabs-module__vertical-text__XcIh7";const Cv=["items","defaultSelected","onChange","componentSize","filled","filledTabs","fillEvenly","isVertical","verticalText","disableBorder","allowDeselect","showTooltips","scrollable","useExternalState","value","classes","className"];function Ev(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 Av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ev(Object(n),!0).forEach(function(t){Rv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ev(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rv(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 kv(e,t){let{items:n,defaultSelected:r,onChange:i,componentSize:l="medium",filled:s=!1,filledTabs:a=!1,fillEvenly:c=!1,isVertical:u=!1,verticalText:d=!1,disableBorder:f=!1,allowDeselect:p,showTooltips:h=!1,scrollable:m=!1,useExternalState:g=!1,value:b,classes:y,className:O}=e,w=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,Cv);const[j,S]=(0,o().useState)(!1),[x,P]=(0,o().useState)(r),_=g?b:x,C=u||d,E=p??d,A=e=>()=>{e.isDisabled||(e.onClick?e.onClick():g?E&&_===e.value?i?.(void 0):i?.(e.value):E&&x===e.value?P(void 0):P(e.value))};return(0,o().useEffect)(()=>{j&&!g&&i?.(x),j||S(!0)},[x,g]),(0,Ne.jsx)("div",Av(Av({ref:t,className:be()(cv,s&&rv,a&&ov,c&&nv,C&&xv,d&&_v,m&&uv,m&&"styledScrollThin",f&&$b,v[l],O,y?.root)},w),{},{children:n.map(e=>{const t=!e.onClick&&_===e.value,n=!!e.subButtons?.length,r=!!e.icon&&(h||null==e.name||""===e.name),o=(0,Ne.jsxs)("div",{className:be()(mv,s&&yv,a&&wv,C&&Sv,f&&$b,t?dv:void 0,t&&s?fv:void 0,t&&a?pv:void 0,e.isDisabled&&ev,y?.tab,t?y?.tabSelected:void 0,e.isDisabled?y?.tabDisabled:void 0),onClick:A(e),children:[(0,Ne.jsxs)("div",{className:be()(jv,r&&lv,n&&iv,y?.tabTitle,t?y?.tabSelectedTitle:void 0),children:[e.icon&&(0,Ne.jsx)("span",{className:Ov,children:"string"==typeof e.icon?(0,Ne.jsx)("span",{className:Ov,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!h&&("string"==typeof e.name?(0,Ne.jsx)("span",{className:be()(d&&Pv),title:e.name,children:e.name}):null!=e.name&&(0,Ne.jsx)("span",{className:be()(d&&Pv),children:e.name})),n&&(0,Ne.jsx)("div",{className:be()(gv,y?.tabActions),children:(0,Ne.jsx)(Tu,{children:e.subButtons?.map((e,t)=>(0,Ne.jsx)(He,{variant:e.variant,componentSize:l,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,compact:e.compact,disabled:e.disabled,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]}),!d&&(0,Ne.jsx)("div",{className:be()(bv,C&&vv,f&&$b,y?.tabBorder,t?y?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return h&&e.name?(0,Ne.jsx)(Ti,{label:e.name,placement:C?"right":"top",children:o},`tab-${e.value}`):o})}))}const Dv=(0,o().forwardRef)(kv),Mv=["withoutHeader","children","classes","className"];function Lv(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 Iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(n),!0).forEach(function(t){Nv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nv(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 Tv=(0,o().forwardRef)(function(e,t){let{withoutHeader:n,children:r,classes:o,className: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,Mv);return(0,Ne.jsx)("div",Iv(Iv({ref:t,className:be()("layout-module__root__I9KVI",n?void 0:"layout-module__with-header___aKcB",i,o?.root)},l),{},{children:r}))}),zv=["thickness","width","classes","className","style"];function Fv(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 Vv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fv(Object(n),!0).forEach(function(t){Hv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hv(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 qv=(0,o().forwardRef)(function(e,t){let{thickness:n=1,width:r,classes:o,className:i,style:l}=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,zv);const a=Vv(Vv({},l),{},{height:n});return void 0!==r&&(a.width=`${r}%`),(0,Ne.jsx)("hr",Vv({ref:t,className:be()("divider-module__root__IiJ2k",void 0!==r&&"divider-module__centered__iULqz",i,o?.root),style:a},s))}),Bv=":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-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\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-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\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: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\n\n --scroll-size: 16px;\n --scroll-size-thin: 8px;\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.styledScrollThin {\n overflow: auto;\n}\n\n.styledScroll {\n --scroll-thickness: var(--scroll-size);\n}\n\n.styledScrollThin {\n --scroll-thickness: var(--scroll-size-thin);\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .styledScroll,\n .styledScrollThin {\n scrollbar-color: var(--theme-thumb) transparent;\n scrollbar-width: auto;\n }\n\n .styledScrollThin {\n scrollbar-width: thin;\n }\n}\n\n/* общая зона скроллбара / thumb / track */\n.styledScroll::-webkit-scrollbar,\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScroll::-webkit-scrollbar-track,\n.styledScrollThin::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: calc(var(--scroll-thickness) / 4) solid transparent;\n border-radius: calc(var(--scroll-thickness) * 0.75);\n}\n\n.styledScroll::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar {\n width: var(--scroll-thickness);\n height: var(--scroll-thickness);\n}\n\n.styledScroll::-webkit-scrollbar-button,\n.styledScrollThin::-webkit-scrollbar-button {\n display: none;\n width: 0;\n height: 0;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner,\n.styledScrollThin::-webkit-scrollbar-corner {\n background: transparent;\n}\n",Wv=":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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 --theme-table-loader: rgba(0, 0, 0, 0.45);\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 --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #424242;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Kv=":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\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 --theme-table-loader: rgba(0, 0, 0, 0.45);\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 --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #14212e;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Uv=":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(0, 0, 0, 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 --theme-table-loader: rgba(255, 255, 255, 0.58);\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(0, 0, 0, 0.04);\n --theme-overlay-8: rgba(0, 0, 0, 0.08);\n --theme-overlay-10: rgba(0, 0, 0, 0.1);\n --theme-overlay-12: rgba(0, 0, 0, 0.12);\n --theme-overlay-24: rgba(0, 0, 0, 0.24);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\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 --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(0, 0, 0, 0.08);\n --theme-chip-subtle-hover: rgba(0, 0, 0, 0.12);\n --theme-chip-subtle-focus: rgba(0, 0, 0, 0.16);\n --theme-chip-subtle-disabled-bg: rgba(0, 0, 0, 0.08);\n\n --theme-input-chip-bg: var(--theme-chip-accent-bg);\n --theme-input-chip-hover: var(--theme-chip-accent-hover);\n --theme-input-chip-focus: var(--theme-chip-accent-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",Gv="nntc-ui-base-styles",Yv="nntc-ui-theme-styles";function Jv(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function Qv(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const Zv=(0,o().createContext)(void 0);function Xv(){return(0,o().useContext)(Zv)??null}function $v(){return Xv()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function ey({children:e,styleContainer:t,portalContainer:n=null}){const[r,i]=(0,o().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,o().useEffect)(()=>{const e=t??document.head;Qv(e,Gv).textContent=Jv(Bv,e)},[t]),(0,o().useEffect)(()=>{const e={light:Uv,dark:Wv,darkBlue:Kv},n=t??document.head;Qv(n,Yv).textContent=Jv(e[r]??e.light,n)},[r,t]),(0,o().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 n=e=>{i(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const l={theme:r,toggleTheme:()=>{i(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{i(e);try{localStorage.setItem("theme",e)}catch{}}};return(0,Ne.jsx)(Zv.Provider,{value:l,children:(0,Ne.jsx)(gi.Provider,{value:n,children:e})})}})(),module.exports=r})();
3
3
  //# sourceMappingURL=index.js.map