@nebula.js/sn-pivot-table 6.0.21 → 6.0.22
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/api-specifications/properties.json +1 -1
- package/core/esm/index.js +12 -87
- package/dist/sn-pivot-table.js +13 -98
- package/dist/sn-pivot-table.systemjs.js +10 -85
- package/package.json +3 -3
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +13 -98
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v6.0.
|
|
2
|
+
* @nebula.js/sn-pivot-table v6.0.22
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["react","react-dom","@qlik-trial/sprout-css-modules","@nebula.js/stardust","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,M,A,I,k,L,P,D,_,O,T,q,j,N,F,z,$,W,B,G,H,V,U;return{setters:[function(e){r=e.default,n=e.useContext,o=e.createElement,i=e,a=e.isValidElement,s=e.cloneElement,l=e.Children,u=e.useRef,c=e.createContext,d=e.useReducer,p=e.useEffect,f=e.useDebugValue,h=e.useCallback,m=e.useLayoutEffect,g=e.useMemo,b=e.useState,v=e.startTransition,y=e.memo,x=e.forwardRef,S=e.useImperativeHandle,w=e.PureComponent},function(e){C=e.default,E=e,R=e.flushSync},function(e){M=e.default},function(e){A=e.useMemo,I=e.useOptions,k=e.usePromise,L=e.useState,P=e.useEffect,D=e.useTheme,_=e.useInteractionState,O=e.onContextMenu,T=e.onTakeSnapshot,q=e.useImperativeHandle,j=e.useTranslator,N=e.useElement,F=e.useStaleLayout,z=e.useModel,$=e.useApp,W=e.useEmbed,B=e.useKeyboard,G=e.useSelections,H=e.useRect},function(e){V=e.default},function(e){U=e.default}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:JQ()},data:qz(e)},ext:wB(e),component(){KQ(e)}}}));const Y={black:"#000",white:"#fff"},K="#e57373",X="#ef5350",J="#f44336",Z="#d32f2f",Q="#c62828",ee="#f3e5f5",te="#ce93d8",re="#ba68c8",ne="#ab47bc",oe="#9c27b0",ie="#7b1fa2",ae="#e3f2fd",se="#90caf9",le="#42a5f5",ue="#1976d2",ce="#1565c0",de="#4fc3f7",pe="#29b6f6",fe="#03a9f4",he="#0288d1",me="#01579b",ge="#81c784",be="#66bb6a",ve="#4caf50",ye="#388e3c",xe="#2e7d32",Se="#1b5e20",we="#ffb74d",Ce="#ffa726",Ee="#ff9800",Re="#f57c00",Me="#e65100",Ae={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ie(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var ke=Object.freeze({__proto__:null,default:Ie}),Le="$$material";function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pe.apply(this,arguments)}function De(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var _e=function(){return _e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};function Oe(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function Te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qe(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}"function"==typeof SuppressedError&&SuppressedError;var je="-ms-",Ne="-moz-",Fe="-webkit-",ze="comm",$e="rule",We="decl",Be="@keyframes",Ge=Math.abs,He=String.fromCharCode,Ve=Object.assign;function Ue(e){return e.trim()}function Ye(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,r){return e.replace(t,r)}function Xe(e,t,r){return e.indexOf(t,r)}function Je(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,r){return e.slice(t,r)}function Qe(e){return e.length}function et(e){return e.length}function tt(e,t){return t.push(e),e}function rt(e,t){return e.filter((function(e){return!Ye(e,t)}))}var nt=1,ot=1,it=0,at=0,st=0,lt="";function ut(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:nt,column:ot,length:a,return:"",siblings:s}}function ct(e,t){return Ve(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dt(e){for(;e.root;)e=ct(e.root,{children:[e]});tt(e,e.siblings)}function pt(){return st=at>0?Je(lt,--at):0,ot--,10===st&&(ot=1,nt--),st}function ft(){return st=at<it?Je(lt,at++):0,ot++,10===st&&(ot=1,nt++),st}function ht(){return Je(lt,at)}function mt(){return at}function gt(e,t){return Ze(lt,e,t)}function bt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vt(e){return Ue(gt(at-1,St(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(st=ht())&&st<33;)ft();return bt(e)>2||bt(st)>3?"":" "}function xt(e,t){for(;--t&&ft()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return gt(e,mt()+(t<6&&32==ht()&&32==ft()))}function St(e){for(;ft();)switch(st){case e:return at;case 34:case 39:34!==e&&39!==e&&St(st);break;case 40:41===e&&St(e);break;case 92:ft()}return at}function wt(e,t){for(;ft()&&e+st!==57&&(e+st!==84||47!==ht()););return"/*"+gt(t,at-1)+"*"+He(47===e?e:ft())}function Ct(e){for(;!bt(ht());)ft();return gt(e,at)}function Et(e){return function(e){return lt="",e}(Rt("",null,null,null,[""],e=function(e){return nt=ot=1,it=Qe(lt=e),at=0,[]}(e),0,[0],e))}function Rt(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=ft()){case 40:if(108!=h&&58==Je(C,d-1)){-1!=Xe(C+=Ke(vt(v),"&","&\f"),"&\f",Ge(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=vt(v);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=xt(mt()-1,7);continue;case 47:switch(ht()){case 42:case 47:tt(At(wt(ft(),mt()),t,r,l),l);break;default:C+="/"}break;case 123*m:s[u++]=Qe(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Ke(C,/\f/g,"")),f>0&&Qe(C)-d&&tt(f>32?It(C+";",n,r,d-1,l):It(Ke(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(tt(w=Mt(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Rt(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===Je(C,3)?100:p){case 100:case 108:case 109:case 115:Rt(e,w,w,n&&tt(Mt(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Rt(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Qe(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==pt())continue;switch(C+=He(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Qe(C)-1)*b,b=1;break;case 64:45===ht()&&(C+=vt(ft())),p=ht(),c=d=Qe(y=C+=Ct(mt())),v++;break;case 45:45===h&&2==Qe(C)&&(m=0)}}return i}function Mt(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=et(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Ze(e,p+1,p=Ge(g=a[m])),x=e;v<h;++v)(x=Ue(g>0?f[v]+" "+y:Ke(y,/&\f/g,f[v])))&&(l[b++]=x);return ut(e,t,r,0===o?$e:s,l,u,c,d)}function At(e,t,r,n){return ut(e,t,r,ze,He(st),Ze(e,2,-2),0,n)}function It(e,t,r,n,o){return ut(e,t,r,We,Ze(e,0,n),Ze(e,n+1,-1),n,o)}function kt(e,t,r){switch(function(e,t){return 45^Je(e,0)?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ne+e+je+e+e;case 5936:switch(Je(e,t+11)){case 114:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+je+e+e;case 6165:return Fe+e+je+"flex-"+e+e;case 5187:return Fe+e+Ke(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return Fe+e+je+"flex-item-"+Ke(e,/flex-|-self/g,"")+(Ye(e,/flex-|baseline/)?"":je+"grid-row-"+Ke(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+je+"flex-line-pack"+Ke(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+je+Ke(e,"shrink","negative")+e;case 5292:return Fe+e+je+Ke(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ke(e,"-grow","")+Fe+e+je+Ke(e,"grow","positive")+e;case 4554:return Fe+Ke(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Ye(e,/flex-|baseline/))return je+"grid-column-align"+Ze(e,t)+e;break;case 2592:case 3360:return je+Ke(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ye(e.props,/grid-\w+-end/)}))?~Xe(e+(r=r[t].value),"span",0)?e:je+Ke(e,"-start","")+e+je+"grid-row-span:"+(~Xe(r,"span",0)?Ye(r,/\d+/):+Ye(r,/\d+/)-+Ye(e,/\d+/))+";":je+Ke(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ye(e.props,/grid-\w+-start/)}))?e:je+Ke(Ke(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qe(e)-1-t>6)switch(Je(e,t+1)){case 109:if(45!==Je(e,t+4))break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ne+(108==Je(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xe(e,"stretch",0)?kt(Ke(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ke(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return je+r+":"+n+s+(o?je+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Je(e,t+6))return Ke(e,":",":"+Fe)+e;break;case 6444:switch(Je(e,45===Je(e,14)?18:11)){case 120:return Ke(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(45===Je(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+je+"$2box$3")+e;case 100:return Ke(e,":",":"+je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ke(e,"scroll-","scroll-snap-")+e}return e}function Lt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Pt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case We:return e.return=e.return||e.value;case ze:return"";case Be:return e.return=e.value+"{"+Lt(e.children,n)+"}";case $e:if(!Qe(e.value=e.props.join(",")))return""}return Qe(r=Lt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Dt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case We:return void(e.return=kt(e.value,e.length,r));case Be:return Lt([ct(e,{value:Ke(e.value,"@","@"+Fe)})],n);case $e:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ye(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dt(ct(e,{props:[Ke(t,/:(read-\w+)/,":-moz-$1")]})),dt(ct(e,{props:[t]})),Ve(e,{props:rt(r,n)});break;case"::placeholder":dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":"+Fe+"input-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":-moz-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,je+"input-$1")]})),dt(ct(e,{props:[t]})),Ve(e,{props:rt(r,n)})}return""}))}}var _t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ot="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tt="active",qt="data-styled-version",jt="6.1.18",Nt="/*!sc*/\n",Ft="undefined"!=typeof window&&"undefined"!=typeof document,zt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),$t={},Wt=Object.freeze([]),Bt=Object.freeze({});function Gt(e,t,r){return void 0===r&&(r=Bt),e.theme!==r.theme&&e.theme||t||r.theme}var Ht=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Vt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ut=/(^-|-$)/g;function Yt(e){return e.replace(Vt,"-").replace(Ut,"")}var Kt=/(a)(d)/gi,Xt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Xt(t%52)+r;return(Xt(t%52)+r).replace(Kt,"$1-$2")}var Zt,Qt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},er=function(e){return Qt(5381,e)};function tr(e){return Jt(er(e)>>>0)}function rr(e){return"string"==typeof e&&!0}var nr="function"==typeof Symbol&&Symbol.for,or=nr?Symbol.for("react.memo"):60115,ir=nr?Symbol.for("react.forward_ref"):60112,ar={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ur=((Zt={})[ir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[or]=lr,Zt);function cr(e){return("type"in(t=e)&&t.type.$$typeof)===or?lr:"$$typeof"in e?ur[e.$$typeof]:ar;var t}var dr=Object.defineProperty,pr=Object.getOwnPropertyNames,fr=Object.getOwnPropertySymbols,hr=Object.getOwnPropertyDescriptor,mr=Object.getPrototypeOf,gr=Object.prototype;function br(e,t,r){if("string"!=typeof t){if(gr){var n=mr(t);n&&n!==gr&&br(e,n,r)}var o=pr(t);fr&&(o=o.concat(fr(t)));for(var i=cr(e),a=cr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in sr||r&&r[l]||a&&l in a||i&&l in i)){var u=hr(t,l);try{dr(e,l,u)}catch(e){}}}}return e}function vr(e){return"function"==typeof e}function yr(e){return"object"==typeof e&&"styledComponentId"in e}function xr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sr(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function wr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Cr(e,t,r){if(void 0===r&&(r=!1),!r&&!wr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Cr(e[n],t[n]);else if(wr(t))for(var n in t)e[n]=Cr(e[n],t[n]);return e}function Er(e,t){Object.defineProperty(e,"toString",{value:t})}function Rr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Mr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Rr(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Nt);return t},e}(),Ar=new Map,Ir=new Map,kr=1,Lr=function(e){if(Ar.has(e))return Ar.get(e);for(;Ir.has(kr);)kr++;var t=kr++;return Ar.set(e,t),Ir.set(t,e),t},Pr=function(e,t){kr=t+1,Ar.set(e,t),Ir.set(t,e)},Dr="style[".concat(Ot,"][").concat(qt,'="').concat(jt,'"]'),_r=new RegExp("^".concat(Ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Or=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Tr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Nt),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(_r);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Pr(c,u),Or(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},qr=function(e){for(var t=document.querySelectorAll(Dr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ot)!==Tt&&(Tr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var jr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ot,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ot,Tt),n.setAttribute(qt,jt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Nr=function(){function e(e){this.element=jr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Rr(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Fr=function(){function e(e){this.element=jr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),zr=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$r=Ft,Wr={isServer:!Ft,useCSSOMInjection:!zt},Br=function(){function e(e,t,r){void 0===e&&(e=Bt),void 0===t&&(t={});var n=this;this.options=_e(_e({},Wr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ft&&$r&&($r=!1,qr(this)),Er(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ir.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Ot,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Nt)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Lr(e)},e.prototype.rehydrate=function(){!this.server&&Ft&&qr(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(_e(_e({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new zr(r):t?new Nr(r):new Fr(r)}(this.options),new Mr(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Lr(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Lr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Lr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Gr=/&/g,Hr=/^\s*\/\/.*$/gm;function Vr(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Vr(e.children,t)),e}))}var Ur=new Br,Yr=function(){var e,t,r,n=Bt,o=n.options,i=void 0===o?Bt:o,a=n.plugins,s=void 0===a?Wt:a,l=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=s.slice();u.push((function(e){e.type===$e&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Gr,t).replace(r,l))})),i.prefix&&u.push(Dt),u.push(Pt);var c=function(n,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var l=n.replace(Hr,""),c=Et(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);i.namespace&&(c=Vr(c,i.namespace));var d,p=[];return Lt(c,function(e){var t=et(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=s.length?s.reduce((function(e,t){return t.name||Rr(15),Qt(e,t.name)}),5381).toString():"",c}(),Kr=r.createContext({shouldForwardProp:void 0,styleSheet:Ur,stylis:Yr});function Xr(){return n(Kr)}Kr.Consumer;var Jr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Yr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Er(this,(function(){throw Rr(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Yr),this.name+e.hash},e}(),Zr=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Zr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var en=function(e){return null==e||!1===e||""===e},tn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!en(i)&&(Array.isArray(i)&&i.isCss||vr(i)?n.push("".concat(Qr(o),":"),i,";"):wr(i)?n.push.apply(n,Oe(Oe(["".concat(o," {")],tn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in _t||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function rn(e,t,r,n){return en(e)?[]:yr(e)?[".".concat(e.styledComponentId)]:vr(e)?!vr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rn(e(t),t,r,n):e instanceof Jr?r?(e.inject(r,n),[e.getName(n)]):[e]:wr(e)?tn(e):Array.isArray(e)?Array.prototype.concat.apply(Wt,e.map((function(e){return rn(e,t,r,n)}))):[e.toString()];var o}function nn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(vr(r)&&!yr(r))return!1}return!0}var on=er(jt),an=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nn(e),this.componentId=t,this.baseHash=Qt(on,t),this.baseStyle=r,Br.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=xr(n,this.staticRulesId);else{var o=Sr(rn(this.rules,e,t,r)),i=Jt(Qt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=xr(n,i),this.staticRulesId=i}else{for(var s=Qt(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Sr(rn(c,e,t,r));s=Qt(s,d+u),l+=d}}if(l){var p=Jt(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=xr(n,p)}}return n},e}(),sn=r.createContext(void 0);sn.Consumer;var ln={};function un(e,t,n){var i=yr(e),a=e,s=!rr(e),l=t.attrs,u=void 0===l?Wt:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Yt(e);ln[r]=(ln[r]||0)+1;var n="".concat(r,"-").concat(tr(jt+r+ln[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return rr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Yt(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(e,t){return b(e,t)&&v(e,t)}}else g=b}var y=new an(n,h,i?a.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(sn),p=Xr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Gt(t,d,s)||Bt,m=function(e,t,r){for(var n,o=_e(_e({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=vr(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?xr(o[s],a[s]):"style"===s?_e(_e({},o[s]),a[s]):a[s]}return t.className&&(o.className=xr(o.className,t.className)),o}(i,t,h),g=m.as||c,b={};for(var v in m)void 0===m[v]||"$"===v[0]||"as"===v||"theme"===v&&m.theme===h||("forwardedAs"===v?b.as=m.forwardedAs:f&&!f(v,g)||(b[v]=m[v]));var y=function(e,t){var r=Xr();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=xr(l,u);return y&&(x+=" "+y),m.className&&(x+=" "+m.className),b[rr(g)&&!Ht.has(g)?"class":"className"]=x,n&&(b.ref=n),o(g,b)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=y,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?xr(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Cr(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Er(S,(function(){return".".concat(S.styledComponentId)})),s&&br(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function cn(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var dn=function(e){return Object.assign(e,{isCss:!0})};function pn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(vr(e)||wr(e))return dn(rn(cn(Wt,Oe([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rn(n):dn(rn(cn(n,t)))}function fn(e,t,r){if(void 0===r&&(r=Bt),!t)throw Rr(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,pn.apply(void 0,Oe([n],o,!1)))};return n.attrs=function(n){return fn(e,t,_e(_e({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return fn(e,t,_e(_e({},r),n))},n}var hn=function(e){return fn(un,e)},mn=hn;Ht.forEach((function(e){mn[e]=hn(e)}));var gn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nn(e),Br.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Sr(rn(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Br.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function bn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Sr(pn.apply(void 0,Oe([e],t,!1))),o=tr(n);return new Jr(o,n)}var vn={exports:{}};function yn(){}function xn(){}xn.resetWarningCache=yn;vn.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xn,resetWarningCache:yn};return r.PropTypes=r,r}();var Sn=Te(vn.exports);function wn(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}wn.propTypes={children:Sn.node,injectFirst:Sn.bool};const Cn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=pn.apply(void 0,Oe([e],t,!1)),i="sc-global-".concat(tr(JSON.stringify(o))),a=new gn(o,i),s=function(e){var t=Xr(),n=r.useContext(sn),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&l(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect((function(){if(!t.styleSheet.server)return l(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}}),[o,e,t.styleSheet,n,t.stylis]),null};function l(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,$t,r,o);else{var i=_e(_e({},t),{theme:Gt(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
7
|
+
System.register(["react","react-dom","@qlik-trial/sprout-css-modules","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,M,P,R,L,A,k,T,O,q,_,j,N,F,z,W,$,H,V,B,G,U;return{setters:[function(e){r=e.default,n=e.useContext,o=e.createElement,i=e,a=e.isValidElement,s=e.cloneElement,l=e.Children,u=e.useRef,c=e.createContext,d=e.useReducer,p=e.useEffect,f=e.useDebugValue,h=e.useCallback,m=e.useLayoutEffect,g=e.useMemo,v=e.useState,y=e.startTransition,b=e.memo,x=e.forwardRef,S=e.useImperativeHandle,w=e.PureComponent},function(e){C=e.default,E=e,I=e.flushSync},function(e){D=e.default},function(e){M=e.useMemo,P=e.useOptions,R=e.usePromise,L=e.useState,A=e.useEffect,k=e.useTheme,T=e.useInteractionState,O=e.onContextMenu,q=e.onTakeSnapshot,_=e.useImperativeHandle,j=e.useTranslator,N=e.useElement,F=e.useStaleLayout,z=e.useModel,W=e.useApp,$=e.useEmbed,H=e.useKeyboard,V=e.useSelections,B=e.useRect},function(e){G=e.default},function(e){U=e.default}],execute:function(){e("default",function(e){return{qae:{properties:{initial:HV()},data:Cq(e)},ext:q_(e),component(){WV(e)}}});const Y={black:"#000",white:"#fff"},K="#e57373",X="#ef5350",J="#f44336",Z="#d32f2f",Q="#c62828",ee="#f3e5f5",te="#ce93d8",re="#ba68c8",ne="#ab47bc",oe="#9c27b0",ie="#7b1fa2",ae="#e3f2fd",se="#90caf9",le="#42a5f5",ue="#1976d2",ce="#1565c0",de="#4fc3f7",pe="#29b6f6",fe="#03a9f4",he="#0288d1",me="#01579b",ge="#81c784",ve="#66bb6a",ye="#4caf50",be="#388e3c",xe="#2e7d32",Se="#1b5e20",we="#ffb74d",Ce="#ffa726",Ee="#ff9800",Ie="#f57c00",De="#e65100",Me={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Pe(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Re=Object.freeze({__proto__:null,default:Pe}),Le="$$material";function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(null,arguments)}function ke(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Te=function(){return Te=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Te.apply(this,arguments)};function Oe(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}"function"==typeof SuppressedError&&SuppressedError;var je="-ms-",Ne="-moz-",Fe="-webkit-",ze="comm",We="rule",$e="decl",He="@keyframes",Ve=Math.abs,Be=String.fromCharCode,Ge=Object.assign;function Ue(e){return e.trim()}function Ye(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,r){return e.replace(t,r)}function Xe(e,t,r){return e.indexOf(t,r)}function Je(e,t){return 0|e.charCodeAt(t)}function Ze(e,t,r){return e.slice(t,r)}function Qe(e){return e.length}function et(e){return e.length}function tt(e,t){return t.push(e),e}function rt(e,t){return e.filter(function(e){return!Ye(e,t)})}var nt=1,ot=1,it=0,at=0,st=0,lt="";function ut(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:nt,column:ot,length:a,return:"",siblings:s}}function ct(e,t){return Ge(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dt(e){for(;e.root;)e=ct(e.root,{children:[e]});tt(e,e.siblings)}function pt(){return st=at>0?Je(lt,--at):0,ot--,10===st&&(ot=1,nt--),st}function ft(){return st=at<it?Je(lt,at++):0,ot++,10===st&&(ot=1,nt++),st}function ht(){return Je(lt,at)}function mt(){return at}function gt(e,t){return Ze(lt,e,t)}function vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yt(e){return Ue(gt(at-1,St(91===e?e+2:40===e?e+1:e)))}function bt(e){for(;(st=ht())&&st<33;)ft();return vt(e)>2||vt(st)>3?"":" "}function xt(e,t){for(;--t&&ft()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return gt(e,mt()+(t<6&&32==ht()&&32==ft()))}function St(e){for(;ft();)switch(st){case e:return at;case 34:case 39:34!==e&&39!==e&&St(st);break;case 40:41===e&&St(e);break;case 92:ft()}return at}function wt(e,t){for(;ft()&&e+st!==57&&(e+st!==84||47!==ht()););return"/*"+gt(t,at-1)+"*"+Be(47===e?e:ft())}function Ct(e){for(;!vt(ht());)ft();return gt(e,at)}function Et(e){return function(e){return lt="",e}(It("",null,null,null,[""],e=function(e){return nt=ot=1,it=Qe(lt=e),at=0,[]}(e),0,[0],e))}function It(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,S=i,w=n,C=b;g;)switch(h=y,y=ft()){case 40:if(108!=h&&58==Je(C,d-1)){-1!=Xe(C+=Ke(yt(y),"&","&\f"),"&\f",Ve(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=yt(y);break;case 9:case 10:case 13:case 32:C+=bt(h);break;case 92:C+=xt(mt()-1,7);continue;case 47:switch(ht()){case 42:case 47:tt(Mt(wt(ft(),mt()),t,r,l),l);break;default:C+="/"}break;case 123*m:s[u++]=Qe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ke(C,/\f/g,"")),f>0&&Qe(C)-d&&tt(f>32?Pt(C+";",n,r,d-1,l):Pt(Ke(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(tt(w=Dt(C,t,r,u,c,o,s,b,x=[],S=[],d,i),i),123===y)if(0===c)It(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===Je(C,3)?100:p){case 100:case 108:case 109:case 115:It(e,w,w,n&&tt(Dt(e,w,w,0,0,o,s,b,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:It(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Qe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==pt())continue;switch(C+=Be(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Qe(C)-1)*v,v=1;break;case 64:45===ht()&&(C+=yt(ft())),p=ht(),c=d=Qe(b=C+=Ct(mt())),y++;break;case 45:45===h&&2==Qe(C)&&(m=0)}}return i}function Dt(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=et(f),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Ze(e,p+1,p=Ve(g=a[m])),x=e;y<h;++y)(x=Ue(g>0?f[y]+" "+b:Ke(b,/&\f/g,f[y])))&&(l[v++]=x);return ut(e,t,r,0===o?We:s,l,u,c,d)}function Mt(e,t,r,n){return ut(e,t,r,ze,Be(st),Ze(e,2,-2),0,n)}function Pt(e,t,r,n,o){return ut(e,t,r,$e,Ze(e,0,n),Ze(e,n+1,-1),n,o)}function Rt(e,t,r){switch(function(e,t){return 45^Je(e,0)?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ne+e+je+e+e;case 5936:switch(Je(e,t+11)){case 114:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+je+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+je+e+e;case 6165:return Fe+e+je+"flex-"+e+e;case 5187:return Fe+e+Ke(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return Fe+e+je+"flex-item-"+Ke(e,/flex-|-self/g,"")+(Ye(e,/flex-|baseline/)?"":je+"grid-row-"+Ke(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+je+"flex-line-pack"+Ke(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+je+Ke(e,"shrink","negative")+e;case 5292:return Fe+e+je+Ke(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ke(e,"-grow","")+Fe+e+je+Ke(e,"grow","positive")+e;case 4554:return Fe+Ke(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Ye(e,/flex-|baseline/))return je+"grid-column-align"+Ze(e,t)+e;break;case 2592:case 3360:return je+Ke(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,Ye(e.props,/grid-\w+-end/)})?~Xe(e+(r=r[t].value),"span",0)?e:je+Ke(e,"-start","")+e+je+"grid-row-span:"+(~Xe(r,"span",0)?Ye(r,/\d+/):+Ye(r,/\d+/)-+Ye(e,/\d+/))+";":je+Ke(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return Ye(e.props,/grid-\w+-start/)})?e:je+Ke(Ke(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qe(e)-1-t>6)switch(Je(e,t+1)){case 109:if(45!==Je(e,t+4))break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ne+(108==Je(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xe(e,"stretch",0)?Rt(Ke(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ke(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return je+r+":"+n+s+(o?je+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===Je(e,t+6))return Ke(e,":",":"+Fe)+e;break;case 6444:switch(Je(e,45===Je(e,14)?18:11)){case 120:return Ke(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(45===Je(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+je+"$2box$3")+e;case 100:return Ke(e,":",":"+je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ke(e,"scroll-","scroll-snap-")+e}return e}function Lt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function At(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case $e:return e.return=e.return||e.value;case ze:return"";case He:return e.return=e.value+"{"+Lt(e.children,n)+"}";case We:if(!Qe(e.value=e.props.join(",")))return""}return Qe(r=Lt(e.children,n))?e.return=e.value+"{"+r+"}":""}function kt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case $e:return void(e.return=Rt(e.value,e.length,r));case He:return Lt([ct(e,{value:Ke(e.value,"@","@"+Fe)})],n);case We:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(Ye(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dt(ct(e,{props:[Ke(t,/:(read-\w+)/,":-moz-$1")]})),dt(ct(e,{props:[t]})),Ge(e,{props:rt(r,n)});break;case"::placeholder":dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":"+Fe+"input-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,":-moz-$1")]})),dt(ct(e,{props:[Ke(t,/:(plac\w+)/,je+"input-$1")]})),dt(ct(e,{props:[t]})),Ge(e,{props:rt(r,n)})}return""})}}var Tt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ot="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qt="active",_t="data-styled-version",jt="6.1.18",Nt="/*!sc*/\n",Ft="undefined"!=typeof window&&"undefined"!=typeof document,zt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Wt={},$t=Object.freeze([]),Ht=Object.freeze({});function Vt(e,t,r){return void 0===r&&(r=Ht),e.theme!==r.theme&&e.theme||t||r.theme}var Bt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Gt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ut=/(^-|-$)/g;function Yt(e){return e.replace(Gt,"-").replace(Ut,"")}var Kt=/(a)(d)/gi,Xt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Xt(t%52)+r;return(Xt(t%52)+r).replace(Kt,"$1-$2")}var Zt,Qt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},er=function(e){return Qt(5381,e)};function tr(e){return Jt(er(e)>>>0)}function rr(e){return"string"==typeof e&&!0}var nr="function"==typeof Symbol&&Symbol.for,or=nr?Symbol.for("react.memo"):60115,ir=nr?Symbol.for("react.forward_ref"):60112,ar={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ur=((Zt={})[ir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[or]=lr,Zt);function cr(e){return("type"in(t=e)&&t.type.$$typeof)===or?lr:"$$typeof"in e?ur[e.$$typeof]:ar;var t}var dr=Object.defineProperty,pr=Object.getOwnPropertyNames,fr=Object.getOwnPropertySymbols,hr=Object.getOwnPropertyDescriptor,mr=Object.getPrototypeOf,gr=Object.prototype;function vr(e,t,r){if("string"!=typeof t){if(gr){var n=mr(t);n&&n!==gr&&vr(e,n,r)}var o=pr(t);fr&&(o=o.concat(fr(t)));for(var i=cr(e),a=cr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in sr||r&&r[l]||a&&l in a||i&&l in i)){var u=hr(t,l);try{dr(e,l,u)}catch(e){}}}}return e}function yr(e){return"function"==typeof e}function br(e){return"object"==typeof e&&"styledComponentId"in e}function xr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sr(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function wr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Cr(e,t,r){if(void 0===r&&(r=!1),!r&&!wr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Cr(e[n],t[n]);else if(wr(t))for(var n in t)e[n]=Cr(e[n],t[n]);return e}function Er(e,t){Object.defineProperty(e,"toString",{value:t})}function Ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Dr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ir(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Nt);return t},e}(),Mr=new Map,Pr=new Map,Rr=1,Lr=function(e){if(Mr.has(e))return Mr.get(e);for(;Pr.has(Rr);)Rr++;var t=Rr++;return Mr.set(e,t),Pr.set(t,e),t},Ar=function(e,t){Rr=t+1,Mr.set(e,t),Pr.set(t,e)},kr="style[".concat(Ot,"][").concat(_t,'="').concat(jt,'"]'),Tr=new RegExp("^".concat(Ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Or=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},qr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Nt),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Tr);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ar(c,u),Or(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},_r=function(e){for(var t=document.querySelectorAll(kr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ot)!==qt&&(qr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var jr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ot,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ot,qt),n.setAttribute(_t,jt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Nr=function(){function e(e){this.element=jr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Ir(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Fr=function(){function e(e){this.element=jr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),zr=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Wr=Ft,$r={isServer:!Ft,useCSSOMInjection:!zt},Hr=function(){function e(e,t,r){void 0===e&&(e=Ht),void 0===t&&(t={});var n=this;this.options=Te(Te({},$r),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ft&&Wr&&(Wr=!1,_r(this)),Er(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Pr.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Ot,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Nt)},i=0;i<r;i++)o(i);return n}(n)})}return e.registerId=function(e){return Lr(e)},e.prototype.rehydrate=function(){!this.server&&Ft&&_r(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Te(Te({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new zr(r):t?new Nr(r):new Fr(r)}(this.options),new Dr(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Lr(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Lr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Lr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Vr=/&/g,Br=/^\s*\/\/.*$/gm;function Gr(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Gr(e.children,t)),e})}var Ur=new Hr,Yr=function(){var e,t,r,n=Ht,o=n.options,i=void 0===o?Ht:o,a=n.plugins,s=void 0===a?$t:a,l=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=s.slice();u.push(function(e){e.type===We&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Vr,t).replace(r,l))}),i.prefix&&u.push(kt),u.push(At);var c=function(n,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,r=new RegExp("\\".concat(t,"\\b"),"g");var l=n.replace(Br,""),c=Et(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);i.namespace&&(c=Gr(c,i.namespace));var d,p=[];return Lt(c,function(e){var t=et(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return c.hash=s.length?s.reduce(function(e,t){return t.name||Ir(15),Qt(e,t.name)},5381).toString():"",c}(),Kr=r.createContext({shouldForwardProp:void 0,styleSheet:Ur,stylis:Yr});function Xr(){return n(Kr)}Kr.Consumer;var Jr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Yr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Er(this,function(){throw Ir(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Yr),this.name+e.hash},e}(),Zr=function(e){return e>="A"&&e<="Z"};function Qr(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Zr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var en=function(e){return null==e||!1===e||""===e},tn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!en(i)&&(Array.isArray(i)&&i.isCss||yr(i)?n.push("".concat(Qr(o),":"),i,";"):wr(i)?n.push.apply(n,Oe(Oe(["".concat(o," {")],tn(i),!1),["}"],!1)):n.push("".concat(Qr(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Tt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function rn(e,t,r,n){return en(e)?[]:br(e)?[".".concat(e.styledComponentId)]:yr(e)?!yr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rn(e(t),t,r,n):e instanceof Jr?r?(e.inject(r,n),[e.getName(n)]):[e]:wr(e)?tn(e):Array.isArray(e)?Array.prototype.concat.apply($t,e.map(function(e){return rn(e,t,r,n)})):[e.toString()];var o}function nn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(yr(r)&&!br(r))return!1}return!0}var on=er(jt),an=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nn(e),this.componentId=t,this.baseHash=Qt(on,t),this.baseStyle=r,Hr.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=xr(n,this.staticRulesId);else{var o=Sr(rn(this.rules,e,t,r)),i=Jt(Qt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=xr(n,i),this.staticRulesId=i}else{for(var s=Qt(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Sr(rn(c,e,t,r));s=Qt(s,d+u),l+=d}}if(l){var p=Jt(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=xr(n,p)}}return n},e}(),sn=r.createContext(void 0);sn.Consumer;var ln={};function un(e,t,n){var i=br(e),a=e,s=!rr(e),l=t.attrs,u=void 0===l?$t:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Yt(e);ln[r]=(ln[r]||0)+1;var n="".concat(r,"-").concat(tr(jt+r+ln[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return rr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Yt(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new an(n,h,i?a.componentStyle:void 0);function x(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=r.useContext(sn),p=Xr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Vt(t,d,s)||Ht,m=function(e,t,r){for(var n,o=Te(Te({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=yr(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?xr(o[s],a[s]):"style"===s?Te(Te({},o[s]),a[s]):a[s]}return t.className&&(o.className=xr(o.className,t.className)),o}(i,t,h),g=m.as||c,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var r=Xr();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=xr(l,u);return b&&(x+=" "+b),m.className&&(x+=" "+m.className),v[rr(g)&&!Bt.has(g)?"class":"className"]=x,n&&(v.ref=n),o(g,v)}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?xr(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Cr(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Er(S,function(){return".".concat(S.styledComponentId)}),s&&vr(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function cn(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var dn=function(e){return Object.assign(e,{isCss:!0})};function pn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(yr(e)||wr(e))return dn(rn(cn($t,Oe([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rn(n):dn(rn(cn(n,t)))}function fn(e,t,r){if(void 0===r&&(r=Ht),!t)throw Ir(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,pn.apply(void 0,Oe([n],o,!1)))};return n.attrs=function(n){return fn(e,t,Te(Te({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return fn(e,t,Te(Te({},r),n))},n}var hn=function(e){return fn(un,e)},mn=hn;Bt.forEach(function(e){mn[e]=hn(e)});var gn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nn(e),Hr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Sr(rn(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Hr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function vn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Sr(pn.apply(void 0,Oe([e],t,!1))),o=tr(n);return new Jr(o,n)}var yn,bn,xn,Sn,wn,Cn={exports:{}};function En(){if(bn)return yn;bn=1;return yn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function In(){if(Sn)return xn;Sn=1;var e=En();function t(){}function r(){}return r.resetWarningCache=t,xn=function(){function n(t,r,n,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function Dn(){return wn||(wn=1,Cn.exports=In()()),Cn.exports}var Mn=qe(Dn());function Pn(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Pn.propTypes={children:Mn.node,injectFirst:Mn.bool};const Rn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=pn.apply(void 0,Oe([e],t,!1)),i="sc-global-".concat(tr(JSON.stringify(o))),a=new gn(o,i),s=function(e){var t=Xr(),n=r.useContext(sn),o=r.useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&l(o,e,t.styleSheet,n,t.stylis),r.useLayoutEffect(function(){if(!t.styleSheet.server)return l(o,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(o,t.styleSheet)}},[o,e,t.styleSheet,n,t.stylis]),null};function l(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Wt,r,o);else{var i=Te(Te({},t),{theme:Vt(t,n,s.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(s)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine-sc v6.4.2
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ System.register(["react","react-dom","@qlik-trial/sprout-css-modules","@nebula.j
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):mn(e),r}function Rn(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Mn(e){return e}Cn.propTypes={defaultTheme:Sn.object,styles:Sn.oneOfType([Sn.array,Sn.string,Sn.object,Sn.func])};var An=Object.freeze({__proto__:null,GlobalStyles:Cn,StyledEngineProvider:wn,ThemeContext:sn,css:pn,default:En,internal_mutateStyles:Rn,internal_processStyles:function(e,t){return Rn(e,t)},internal_serializeStyles:Mn,keyframes:bn});function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(null,arguments)}function kn(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Ln(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Pn(e){if(i.isValidElement(e)||!Ln(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Pn(e[r])})),t}function Dn(e,t,r={clone:!0}){const n=r.clone?In({},e):e;return Ln(e)&&Ln(t)&&Object.keys(t).forEach((o=>{i.isValidElement(t[o])?n[o]=t[o]:Ln(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ln(e[o])?n[o]=Dn(e[o],t[o],r):r.clone?n[o]=Ln(t[o])?Pn(t[o]):t[o]:n[o]=t[o]})),n}var _n=Object.freeze({__proto__:null,default:Dn,isPlainObject:Ln});const On=["values","unit","step"];function Tn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=kn(e,On),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>In({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return In({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const qn={borderRadius:4};function jn(e,t){return t?Dn(e,t,{clone:!1}):e}const Nn={xs:0,sm:600,md:900,lg:1200,xl:1536},Fn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nn[e]}px)`};function zn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Fn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Fn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Nn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function $n(e){if("string"!=typeof e)throw new Error(Ie(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Wn=Object.freeze({__proto__:null,default:$n});function Bn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Gn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Bn(e,r)||n,t&&(o=t(o,n,e)),o}function Hn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Bn(e.theme,n)||{};return zn(e,i,(e=>{let n=Gn(a,o,e);return e===n&&"string"==typeof e&&(n=Gn(a,o,`${t}${"default"===e?"":$n(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Vn={m:"margin",p:"padding"},Un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Yn[e])return[e];e=Yn[e]}const[t,r]=e.split(""),n=Vn[t],o=Un[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Xn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Jn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Zn(e,t,r,n){var o;const i=null!=(o=Bn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Qn(e){return Zn(e,"spacing",8)}function eo(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function to(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=eo(t,r),e)),{})}(Kn(r),n);return zn(e,e[r],o)}function ro(e,t){const r=Qn(e.theme);return Object.keys(e).map((n=>to(e,t,n,r))).reduce(jn,{})}function no(e){return ro(e,Xn)}function oo(e){return ro(e,Jn)}function io(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?jn(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ao(e){return"number"!=typeof e?e:`${e}px solid`}function so(e,t){return Hn({prop:e,themeKey:"borders",transform:t})}no.propTypes={},no.filterProps=Xn,oo.propTypes={},oo.filterProps=Jn;const lo=so("border",ao),uo=so("borderTop",ao),co=so("borderRight",ao),po=so("borderBottom",ao),fo=so("borderLeft",ao),ho=so("borderColor"),mo=so("borderTopColor"),go=so("borderRightColor"),bo=so("borderBottomColor"),vo=so("borderLeftColor"),yo=so("outline",ao),xo=so("outlineColor"),So=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Zn(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:eo(t,e)});return zn(e,e.borderRadius,r)}return null};So.propTypes={},So.filterProps=["borderRadius"],io(lo,uo,co,po,fo,ho,mo,go,bo,vo,So,yo,xo);const wo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Zn(e.theme,"spacing",8),r=e=>({gap:eo(t,e)});return zn(e,e.gap,r)}return null};wo.propTypes={},wo.filterProps=["gap"];const Co=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Zn(e.theme,"spacing",8),r=e=>({columnGap:eo(t,e)});return zn(e,e.columnGap,r)}return null};Co.propTypes={},Co.filterProps=["columnGap"];const Eo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Zn(e.theme,"spacing",8),r=e=>({rowGap:eo(t,e)});return zn(e,e.rowGap,r)}return null};Eo.propTypes={},Eo.filterProps=["rowGap"];function Ro(e,t){return"grey"===t?t:e}io(wo,Co,Eo,Hn({prop:"gridColumn"}),Hn({prop:"gridRow"}),Hn({prop:"gridAutoFlow"}),Hn({prop:"gridAutoColumns"}),Hn({prop:"gridAutoRows"}),Hn({prop:"gridTemplateColumns"}),Hn({prop:"gridTemplateRows"}),Hn({prop:"gridTemplateAreas"}),Hn({prop:"gridArea"}));function Mo(e){return e<=1&&0!==e?100*e+"%":e}io(Hn({prop:"color",themeKey:"palette",transform:Ro}),Hn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ro}),Hn({prop:"backgroundColor",themeKey:"palette",transform:Ro}));const Ao=Hn({prop:"width",transform:Mo}),Io=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Nn[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mo(t)}};return zn(e,e.maxWidth,t)}return null};Io.filterProps=["maxWidth"];const ko=Hn({prop:"minWidth",transform:Mo}),Lo=Hn({prop:"height",transform:Mo}),Po=Hn({prop:"maxHeight",transform:Mo}),Do=Hn({prop:"minHeight",transform:Mo});Hn({prop:"size",cssProperty:"width",transform:Mo}),Hn({prop:"size",cssProperty:"height",transform:Mo});io(Ao,Io,ko,Lo,Po,Do,Hn({prop:"boxSizing"}));const _o={border:{themeKey:"borders",transform:ao},borderTop:{themeKey:"borders",transform:ao},borderRight:{themeKey:"borders",transform:ao},borderBottom:{themeKey:"borders",transform:ao},borderLeft:{themeKey:"borders",transform:ao},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ao},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:So},color:{themeKey:"palette",transform:Ro},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ro},backgroundColor:{themeKey:"palette",transform:Ro},p:{style:oo},pt:{style:oo},pr:{style:oo},pb:{style:oo},pl:{style:oo},px:{style:oo},py:{style:oo},padding:{style:oo},paddingTop:{style:oo},paddingRight:{style:oo},paddingBottom:{style:oo},paddingLeft:{style:oo},paddingX:{style:oo},paddingY:{style:oo},paddingInline:{style:oo},paddingInlineStart:{style:oo},paddingInlineEnd:{style:oo},paddingBlock:{style:oo},paddingBlockStart:{style:oo},paddingBlockEnd:{style:oo},m:{style:no},mt:{style:no},mr:{style:no},mb:{style:no},ml:{style:no},mx:{style:no},my:{style:no},margin:{style:no},marginTop:{style:no},marginRight:{style:no},marginBottom:{style:no},marginLeft:{style:no},marginX:{style:no},marginY:{style:no},marginInline:{style:no},marginInlineStart:{style:no},marginInlineEnd:{style:no},marginBlock:{style:no},marginBlockStart:{style:no},marginBlockEnd:{style:no},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wo},rowGap:{style:Eo},columnGap:{style:Co},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mo},maxWidth:{style:Io},minWidth:{transform:Mo},height:{transform:Mo},maxHeight:{transform:Mo},minHeight:{transform:Mo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Oo(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Bn(r,s)||{};if(u)return u(o);return zn(o,t,(t=>{let r=Gn(c,l,t);return t===r&&"string"==typeof t&&(r=Gn(c,l,`${e}${"default"===t?"":$n(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:_o;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=jn(l,e(r,o,i,a));else{const e=zn({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=jn(l,e):l[r]=t({sx:o,theme:i})}else l=jn(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const To=Oo();function qo(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}To.filterProps=["sx"];const jo=["breakpoints","palette","spacing","shape"];function No(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=kn(e,jo),s=Tn(r),l=function(e=8){if(e.mui)return e;const t=Qn({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Dn({breakpoints:s,direction:"ltr",components:{},palette:In({mode:"light"},n),spacing:l,shape:In({},qn,i)},a);return u.applyStyles=qo,u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=In({},_o,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return To({sx:e,theme:this})},u}var Fo=Object.freeze({__proto__:null,default:No,private_createBreakpoints:Tn,unstable_applyStyles:qo});function zo(e=null){const t=i.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const $o=No();function Wo(e=$o){return zo(e)}var Bo={exports:{}},Go={},Ho=r,Vo=Symbol.for("react.element"),Uo=Symbol.for("react.fragment"),Yo=Object.prototype.hasOwnProperty,Ko=Ho.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xo={key:!0,ref:!0,__self:!0,__source:!0};function Jo(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Yo.call(t,n)&&!Xo.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Vo,type:e,key:i,ref:a,props:o,_owner:Ko.current}}Go.Fragment=Uo,Go.jsx=Jo,Go.jsxs=Jo,Bo.exports=Go;var Zo=Bo.exports;function Qo({styles:e,themeId:t,defaultTheme:r={}}){const n=Wo(r),o="function"==typeof e?e(t&&n[t]||n):e;return Zo.jsx(Cn,{styles:o})}const ei=["sx"];function ti(e){const{sx:t}=e,r=kn(e,ei),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:_o;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ln(r)?In({},n,r):n}:In({},n,t),In({},o,{sx:i})}var ri=Object.freeze({__proto__:null,default:To,extendSxProp:ti,unstable_createStyleFunctionSx:Oo,unstable_defaultSxConfig:_o});const ni=e=>e,oi=(()=>{let e=ni;return{configure(t){e=t},generate:t=>e(t),reset(){e=ni}}})();function ii(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ii(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ai(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ii(e))&&(n&&(n+=" "),n+=t);return n}const si=["className","component"];const li={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ui(e,t,r="Mui"){const n=li[t];return n?`${r}-${n}`:`${oi.generate(e)}-${t}`}function ci(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ui(e,t,r)})),n}var di={exports:{}},pi={},fi=Symbol.for("react.transitional.element"),hi=Symbol.for("react.portal"),mi=Symbol.for("react.fragment"),gi=Symbol.for("react.strict_mode"),bi=Symbol.for("react.profiler"),vi=Symbol.for("react.consumer"),yi=Symbol.for("react.context"),xi=Symbol.for("react.forward_ref"),Si=Symbol.for("react.suspense"),wi=Symbol.for("react.suspense_list"),Ci=Symbol.for("react.memo"),Ei=Symbol.for("react.lazy"),Ri=Symbol.for("react.offscreen"),Mi=Symbol.for("react.client.reference");function Ai(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fi:switch(e=e.type){case mi:case bi:case gi:case Si:case wi:return e;default:switch(e=e&&e.$$typeof){case yi:case xi:case Ei:case Ci:case vi:return e;default:return t}}case hi:return t}}}pi.ContextConsumer=vi,pi.ContextProvider=yi,pi.Element=fi,pi.ForwardRef=xi,pi.Fragment=mi,pi.Lazy=Ei,pi.Memo=Ci,pi.Portal=hi,pi.Profiler=bi,pi.StrictMode=gi,pi.Suspense=Si,pi.SuspenseList=wi,pi.isContextConsumer=function(e){return Ai(e)===vi},pi.isContextProvider=function(e){return Ai(e)===yi},pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fi},pi.isForwardRef=function(e){return Ai(e)===xi},pi.isFragment=function(e){return Ai(e)===mi},pi.isLazy=function(e){return Ai(e)===Ei},pi.isMemo=function(e){return Ai(e)===Ci},pi.isPortal=function(e){return Ai(e)===hi},pi.isProfiler=function(e){return Ai(e)===bi},pi.isStrictMode=function(e){return Ai(e)===gi},pi.isSuspense=function(e){return Ai(e)===Si},pi.isSuspenseList=function(e){return Ai(e)===wi},pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mi||e===bi||e===gi||e===Si||e===wi||e===Ri||"object"==typeof e&&null!==e&&(e.$$typeof===Ei||e.$$typeof===Ci||e.$$typeof===yi||e.$$typeof===vi||e.$$typeof===xi||e.$$typeof===Mi||void 0!==e.getModuleId)},pi.typeOf=Ai,di.exports=pi;var Ii=di.exports;const ki=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Li(e){const t=`${e}`.match(ki);return t&&t[1]||""}function Pi(e,t=""){return e.displayName||e.name||Li(e)||t}function Di(e,t,r){const n=Pi(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var _i=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Pi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ii.ForwardRef:return Di(e,e.render,"ForwardRef");case Ii.Memo:return Di(e,e.type,"memo");default:return}}},getFunctionName:Li});function Oi(e,t){const r=In({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=In({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=In({},i),Object.keys(o).forEach((e=>{r[n][e]=Oi(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ti="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function qi(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ji=Object.freeze({__proto__:null,default:qi});function Ni(e){if(e.type)return e;if("#"===e.charAt(0))return Ni(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Ie(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Ie(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Fi(e,t){return e=Ni(e),t=function(e,t=0,r=1){return qi(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function zi(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function $i(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Wi(e){return e&&e.ownerDocument||document}function Bi(e){return Wi(e).defaultView||window}function Gi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Hi=0;const Vi=i["useId".toString()];function Ui(e){if(void 0!==Vi){return Vi()}return function(e){const[t,r]=i.useState(e),n=t;return i.useEffect((()=>{null==t&&(Hi+=1,r(`mui-${Hi}`))}),[t]),n}(e)}function Yi({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback((e=>{o||s(e)}),[])]}function Ki(e){const t=i.useRef(e);return Ti((()=>{t.current=e})),i.useRef(((...e)=>(0,t.current)(...e))).current}function Xi(...e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Gi(e,t)}))}),e)}const Ji={};const Zi=[];class Qi{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qi}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ea(){const e=function(e,t){const r=i.useRef(Ji);return r.current===Ji&&(r.current=e(t)),r}(Qi.create).current;return function(e){i.useEffect(e,Zi)}(e.disposeEffect),e}let ta=!0,ra=!1;const na=new Qi,oa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ia(e){e.metaKey||e.altKey||e.ctrlKey||(ta=!0)}function aa(){ta=!1}function sa(){"hidden"===this.visibilityState&&ra&&(ta=!0)}function la(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ta||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!oa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ua(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ia,!0),t.addEventListener("mousedown",aa,!0),t.addEventListener("pointerdown",aa,!0),t.addEventListener("touchstart",aa,!0),t.addEventListener("visibilitychange",sa,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!la(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ra=!0,na.start(100,(()=>{ra=!1})),t.current=!1,!0)},ref:e}}function ca(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function da(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function pa(e){return"string"==typeof e}function fa(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function ha(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const ma=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ga(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=kn(e,ma),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=ai(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=In({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=In({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=fa(In({},o,n)),s=ha(n),l=ha(o),u=t(a),c=ai(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=In({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=In({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(In({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||pa(e)?t:In({},t,{ownerState:In({},t.ownerState,r)})}(r,In({},l,{ref:Xi(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ba(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const va=i.createContext(null);function ya(){return i.useContext(va)}var xa="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sa(e){const{children:t,theme:r}=e,n=ya(),o=i.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return In({},e,t)}(n,r);return null!=e&&(e[xa]=null!==n),e}),[r,n]);return Zo.jsx(va.Provider,{value:o,children:t})}const wa=["value"],Ca=i.createContext();function Ea(e){let{value:t}=e,r=kn(e,wa);return Zo.jsx(Ca.Provider,In({value:null==t||t},r))}const Ra=i.createContext(void 0);function Ma({value:e,children:t}){return Zo.jsx(Ra.Provider,{value:e,children:t})}function Aa({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Oi(o.defaultProps,n):o.styleOverrides||o.variants?n:Oi(o,n)}({props:e,name:t,theme:{components:i.useContext(Ra)}})}const Ia={};function ka(e,t,r,n=!1){return i.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?In({},t,{[e]:i}):i;return n?()=>a:a}return In({},t,e?{[e]:r}:r)}),[e,t,r,n])}function La(e){const{children:t,theme:r,themeId:n}=e,o=zo(Ia),i=ya()||Ia,a=ka(n,o,r),s=ka(n,i,r,!0),l="rtl"===a.direction;return Zo.jsx(Sa,{theme:s,children:Zo.jsx(sn.Provider,{value:a,children:Zo.jsx(Ea,{value:l,children:Zo.jsx(Ma,{value:null==a?void 0:a.components,children:t})})})})}function Pa(e){return Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pa(e)}function Da(e){var t=function(e,t){if("object"!=Pa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Pa(t)?t:t+""}function _a(e,t){return Pe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Oa={},Ta={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ta);var qa=Ta.exports,ja=qe(ke),Na=qe(ji),Fa=qa;Object.defineProperty(Oa,"__esModule",{value:!0});var za=Oa.alpha=Qa;Oa.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ya(e),a=Ya(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Xa({type:"rgb",values:s})},Oa.colorChannel=void 0;var $a=Oa.darken=es;Oa.decomposeColor=Ya,Oa.emphasize=rs;var Wa=Oa.getContrastRatio=function(e,t){const r=Za(e),n=Za(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Oa.getLuminance=Za,Oa.hexToRgb=Ua,Oa.hslToRgb=Ja;var Ba=Oa.lighten=ts;Oa.private_safeAlpha=function(e,t,r){try{return Qa(e,t)}catch(t){return e}},Oa.private_safeColorChannel=void 0,Oa.private_safeDarken=function(e,t,r){try{return es(e,t)}catch(t){return e}},Oa.private_safeEmphasize=function(e,t,r){try{return rs(e,t)}catch(t){return e}},Oa.private_safeLighten=function(e,t,r){try{return ts(e,t)}catch(t){return e}},Oa.recomposeColor=Xa,Oa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ya(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Ga=Fa(ja),Ha=Fa(Na);function Va(e,t=0,r=1){return(0,Ha.default)(e,t,r)}function Ua(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Ya(e){if(e.type)return e;if("#"===e.charAt(0))return Ya(Ua(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ga.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Ga.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Ka=e=>{const t=Ya(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Oa.colorChannel=Ka;function Xa(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Ja(e){e=Ya(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Xa({type:s,values:l})}function Za(e){let t="hsl"===(e=Ya(e)).type||"hsla"===e.type?Ya(Ja(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qa(e,t){return e=Ya(e),t=Va(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Xa(e)}function es(e,t){if(e=Ya(e),t=Va(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Xa(e)}function ts(e,t){if(e=Ya(e),t=Va(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Xa(e)}function rs(e,t=.15){return Za(e)>.5?es(e,t):ts(e,t)}Oa.private_safeColorChannel=(e,t)=>{try{return Ka(e)}catch(t){return e}};const ns=["mode","contrastThreshold","tonalOffset"],os={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Y.white,default:Y.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},is={text:{primary:Y.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Y.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function as(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ba(e.main,o):"dark"===t&&(e.dark=$a(e.main,i)))}function ss(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=De(e,ns),i=e.primary||function(e="light"){return"dark"===e?{main:se,light:ae,dark:le}:{main:ue,light:le,dark:ce}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:te,light:ee,dark:ne}:{main:oe,light:re,dark:ie}}(t),s=e.error||function(e="light"){return"dark"===e?{main:J,light:K,dark:Z}:{main:Z,light:X,dark:Q}}(t),l=e.info||function(e="light"){return"dark"===e?{main:pe,light:de,dark:he}:{main:he,light:fe,dark:me}}(t),u=e.success||function(e="light"){return"dark"===e?{main:be,light:ge,dark:ye}:{main:xe,light:ve,dark:Se}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ce,light:we,dark:Re}:{main:"#ed6c02",light:Ee,dark:Me}}(t);function d(e){return Wa(e,is.text.primary)>=r?is.text.primary:os.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Pe({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ie(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ie(12,t?` (${t})`:"",JSON.stringify(e.main)));return as(e,"light",o,n),as(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:is,light:os};return Dn(Pe({common:Pe({},Y),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Ae,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const ls=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const us={textTransform:"uppercase"},cs='"Roboto", "Helvetica", "Arial", sans-serif';function ds(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=cs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=De(r,ls),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Pe({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===cs?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,us),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,us),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn(Pe({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ps(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const fs=["none",ps(0,2,1,-1,0,1,1,0,0,1,3,0),ps(0,3,1,-2,0,2,2,0,0,1,5,0),ps(0,3,3,-2,0,3,4,0,0,1,8,0),ps(0,2,4,-1,0,4,5,0,0,1,10,0),ps(0,3,5,-1,0,5,8,0,0,1,14,0),ps(0,3,5,-1,0,6,10,0,0,1,18,0),ps(0,4,5,-2,0,7,10,1,0,2,16,1),ps(0,5,5,-3,0,8,10,1,0,3,14,2),ps(0,5,6,-3,0,9,12,1,0,3,16,2),ps(0,6,6,-3,0,10,14,1,0,4,18,3),ps(0,6,7,-4,0,11,15,1,0,4,20,3),ps(0,7,8,-4,0,12,17,2,0,5,22,4),ps(0,7,8,-4,0,13,19,2,0,5,24,4),ps(0,7,9,-4,0,14,21,2,0,5,26,4),ps(0,8,9,-5,0,15,22,2,0,6,28,5),ps(0,8,10,-5,0,16,24,2,0,6,30,5),ps(0,8,11,-5,0,17,26,2,0,6,32,5),ps(0,9,11,-5,0,18,28,2,0,7,34,6),ps(0,9,12,-6,0,19,29,2,0,7,36,6),ps(0,10,13,-6,0,20,31,3,0,8,38,7),ps(0,10,13,-6,0,21,33,3,0,8,40,7),ps(0,10,14,-6,0,22,35,3,0,8,42,7),ps(0,11,14,-7,0,23,36,3,0,9,44,8),ps(0,11,15,-7,0,24,38,3,0,9,46,8)],hs=["duration","easing","delay"],ms={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bs(e){return`${Math.round(e)}ms`}function vs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ys(e){const t=Pe({},ms,e.easing),r=Pe({},gs,e.duration);return Pe({getAutoHeightDuration:vs,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return De(n,hs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:bs(o)} ${i} ${"string"==typeof a?a:bs(a)}`)).join(",")}},e,{easing:t,duration:r})}const xs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ss=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ws(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=De(e,Ss);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ie(18));const s=ss(n),l=No(e);let u=Dn(l,{mixins:_a(l.breakpoints,r),palette:s,shadows:fs.slice(),typography:ds(s,i),transitions:ys(o),zIndex:Pe({},xs)});return u=Dn(u,a),u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Pe({},_o,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return To({sx:e,theme:this})},u}const Cs=ws();function Es(){const e=Wo(Cs);return e[Le]||e}var Rs,Ms={},As={exports:{}};var Is,ks={exports:{}};var Ls=qe(An),Ps=qe(_n),Ds=qe(Wn),_s=qe(_i),Os=qe(Fo),Ts=qe(ri),qs=qa;Object.defineProperty(Ms,"__esModule",{value:!0});var js=Ms.default=function(e={}){const{themeId:t,defaultTheme:r=Ks,rootShouldForwardProp:n=Ys,slotShouldForwardProp:o=Ys}=e,i=e=>(0,Bs.default)((0,Ns.default)({},e,{theme:Js((0,Ns.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,zs.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Zs(Xs(l))}=a,p=(0,Fs.default)(a,Vs),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=Ys;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,zs.default)(e,(0,Ns.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$s.isPlainObject)(e)?n=>Qs(e,(0,Ns.default)({},n,{theme:Js({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Js((0,Ns.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Qs(r,(0,Ns.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Js((0,Ns.default)({},e,{defaultTheme:r,themeId:t}));return Qs({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ns.default)({},e,{theme:o}))})),h||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Ms.shouldForwardProp=Ys,Ms.systemDefaultTheme=void 0;var Ns=qs((Rs||(Rs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(As)),As.exports)),Fs=qs((Is||(Is=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(ks)),ks.exports)),zs=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Us(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Ls),$s=Ps;qs(Ds),qs(_s);var Ws=qs(Os),Bs=qs(Ts);const Gs=["ownerState"],Hs=["variants"],Vs=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Us(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Us=function(e){return e?r:t})(e)}function Ys(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ks=Ms.systemDefaultTheme=(0,Ws.default)(),Xs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Js({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Zs(e){return e?(t,r)=>r[e]:null}function Qs(e,t){let{ownerState:r}=t,n=(0,Fs.default)(t,Gs);const o="function"==typeof e?e((0,Ns.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Qs(e,(0,Ns.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Fs.default)(o,Hs);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Ns.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Ns.default)({ownerState:r},n,r)):e.style))})),t}return o}function el(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tl=e=>el(e)&&"classes"!==e,rl=js({themeId:Le,defaultTheme:Cs,rootShouldForwardProp:tl}),nl=["theme"];function ol(e){let{theme:t}=e,r=De(e,nl);const n=t[Le];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Pe({},n,{vars:null}):t&&!t.vars&&(o=Pe({},t,{vars:null}))),Zo.jsx(La,Pe({},r,{themeId:n?Le:void 0,theme:o}))}const il=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function al(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=al(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=al(e))&&(n&&(n+=" "),n+=t);return n}function ll(e){return Aa(e)}function ul(e){return ui("MuiSvgIcon",e)}ci("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dl=rl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${$n(r.color)}`],t[`fontSize${$n(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),pl=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,f=De(r,cl),h=i.isValidElement(n)&&"svg"===n.type,m=Pe({},r,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return da({root:["root","inherit"!==t&&`color${$n(t)}`,`fontSize${$n(r)}`]},ul,n)})(m);return Zo.jsxs(dl,Pe({as:s,className:sl(b.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?Zo.jsx("title",{children:d}):null]}))}));function fl(e,t){function r(r,n){return Zo.jsx(pl,Pe({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=pl.muiName,i.memo(i.forwardRef(r))}function hl(e,t){return hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hl(e,t)}function ml(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hl(e,t)}pl.muiName="SvgIcon";var gl=!1,bl=r.createContext(null),vl="unmounted",yl="exited",xl="entering",Sl="entered",wl="exiting",Cl=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=yl,n.appearStatus=xl):o=Sl:o=t.unmountOnExit||t.mountOnEnter?vl:yl,n.state={status:o},n.nextCallback=null,n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vl?{status:yl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==xl&&r!==Sl&&(t=xl):r!==xl&&r!==Sl||(t=wl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:vl})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[C.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||gl?this.safeSetState({status:Sl},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Sl},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:C.findDOMNode(this);t&&!gl?(this.props.onExit(n),this.safeSetState({status:wl},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:yl},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:yl},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===vl)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=kn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(bl.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function El(){}function Rl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ml(e,t){var r=Object.create(null);return e&&l.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a(e)?t(e):e}(e)})),r}function Al(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Il(e,t,r){var n=Ml(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var l=o[i];if(a(l)){var u=i in t,c=i in n,d=t[i],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(o[i]=s(l,{onExited:r.bind(null,l),in:d.props.in,exit:Al(l,"exit",e),enter:Al(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:r.bind(null,l),in:!0,exit:Al(l,"exit",e),enter:Al(l,"enter",e)})}})),o}Cl.contextType=bl,Cl.propTypes={},Cl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:El,onEntering:El,onEntered:El,onExit:El,onExiting:El,onExited:El},Cl.UNMOUNTED=vl,Cl.EXITED=yl,Cl.ENTERING=xl,Cl.ENTERED=Sl,Cl.EXITING=wl;var kl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ll=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rl(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ml(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Ml(r.children,(function(e){return s(e,{onExited:n.bind(null,e),in:!0,appear:Al(e,"appear",r),enter:Al(e,"enter",r),exit:Al(e,"exit",r)})}))):Il(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Ml(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=In({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=kn(e,["component","childFactory"]),i=this.state.contextValue,a=kl(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(bl.Provider,{value:i},a):r.createElement(bl.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Ll.propTypes={},Ll.defaultProps={component:"div",childFactory:function(e){return e}};const Pl=e=>e.scrollTop;function Dl(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function _l(e){return ui("MuiPaper",e)}ci("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ol=["className","component","elevation","square","variant"],Tl=rl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Pe({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Pe({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${za("#fff",il(t.elevation))}, ${za("#fff",il(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),ql=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=De(r,Ol),u=Pe({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return da({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},_l,o)})(u);return Zo.jsx(Tl,Pe({as:o,ownerState:u,className:sl(c.root,n),ref:t},l))}));const jl=ci("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Nl=["center","classes","className"];let Fl,zl,$l,Wl,Bl=e=>e;const Gl=bn(Fl||(Fl=Bl`
|
|
15
|
+
function Ln(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):mn(e),r}function An(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function kn(e){return e}Rn.propTypes={defaultTheme:Mn.object,styles:Mn.oneOfType([Mn.array,Mn.string,Mn.object,Mn.func])};var Tn=Object.freeze({__proto__:null,GlobalStyles:Rn,StyledEngineProvider:Pn,ThemeContext:sn,css:pn,default:Ln,internal_mutateStyles:An,internal_processStyles:function(e,t){return An(e,t)},internal_serializeStyles:kn,keyframes:vn});function On(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function qn(e){if(i.isValidElement(e)||!On(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=qn(e[r])}),t}function _n(e,t,r={clone:!0}){const n=r.clone?Ae({},e):e;return On(e)&&On(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])?n[o]=t[o]:On(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&On(e[o])?n[o]=_n(e[o],t[o],r):r.clone?n[o]=On(t[o])?qn(t[o]):t[o]:n[o]=t[o]}),n}var jn=Object.freeze({__proto__:null,default:_n,isPlainObject:On});const Nn=["values","unit","step"];function Fn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ke(e,Nn),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Ae({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Ae({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const zn={borderRadius:4};function Wn(e,t){return t?_n(e,t,{clone:!1}):e}const $n={xs:0,sm:600,md:900,lg:1200,xl:1536},Hn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$n[e]}px)`};function Vn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Hn;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||Hn;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||$n).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function Bn(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function Gn(e){if("string"!=typeof e)throw new Error(Pe(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Un=Object.freeze({__proto__:null,default:Gn});function Yn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Kn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Yn(e,r)||n,t&&(o=t(o,n,e)),o}function Xn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Yn(e.theme,n)||{};return Vn(e,i,e=>{let n=Kn(a,o,e);return e===n&&"string"==typeof e&&(n=Kn(a,o,`${t}${"default"===e?"":Gn(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Jn={m:"margin",p:"padding"},Zn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eo=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Qn[e])return[e];e=Qn[e]}const[t,r]=e.split(""),n=Jn[t],o=Zn[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),to=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ro=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function no(e,t,r,n){var o;const i=null!=(o=Yn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function oo(e){return no(e,"spacing",8)}function io(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function ao(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=io(t,r),e),{})}(eo(r),n);return Vn(e,e[r],o)}function so(e,t){const r=oo(e.theme);return Object.keys(e).map(n=>ao(e,t,n,r)).reduce(Wn,{})}function lo(e){return so(e,to)}function uo(e){return so(e,ro)}function co(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?Wn(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function po(e){return"number"!=typeof e?e:`${e}px solid`}function fo(e,t){return Xn({prop:e,themeKey:"borders",transform:t})}lo.propTypes={},lo.filterProps=to,uo.propTypes={},uo.filterProps=ro;const ho=fo("border",po),mo=fo("borderTop",po),go=fo("borderRight",po),vo=fo("borderBottom",po),yo=fo("borderLeft",po),bo=fo("borderColor"),xo=fo("borderTopColor"),So=fo("borderRightColor"),wo=fo("borderBottomColor"),Co=fo("borderLeftColor"),Eo=fo("outline",po),Io=fo("outlineColor"),Do=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=no(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:io(t,e)});return Vn(e,e.borderRadius,r)}return null};Do.propTypes={},Do.filterProps=["borderRadius"],co(ho,mo,go,vo,yo,bo,xo,So,wo,Co,Do,Eo,Io);const Mo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=no(e.theme,"spacing",8),r=e=>({gap:io(t,e)});return Vn(e,e.gap,r)}return null};Mo.propTypes={},Mo.filterProps=["gap"];const Po=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=no(e.theme,"spacing",8),r=e=>({columnGap:io(t,e)});return Vn(e,e.columnGap,r)}return null};Po.propTypes={},Po.filterProps=["columnGap"];const Ro=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=no(e.theme,"spacing",8),r=e=>({rowGap:io(t,e)});return Vn(e,e.rowGap,r)}return null};Ro.propTypes={},Ro.filterProps=["rowGap"];function Lo(e,t){return"grey"===t?t:e}co(Mo,Po,Ro,Xn({prop:"gridColumn"}),Xn({prop:"gridRow"}),Xn({prop:"gridAutoFlow"}),Xn({prop:"gridAutoColumns"}),Xn({prop:"gridAutoRows"}),Xn({prop:"gridTemplateColumns"}),Xn({prop:"gridTemplateRows"}),Xn({prop:"gridTemplateAreas"}),Xn({prop:"gridArea"}));function Ao(e){return e<=1&&0!==e?100*e+"%":e}co(Xn({prop:"color",themeKey:"palette",transform:Lo}),Xn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Lo}),Xn({prop:"backgroundColor",themeKey:"palette",transform:Lo}));const ko=Xn({prop:"width",transform:Ao}),To=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||$n[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ao(t)}};return Vn(e,e.maxWidth,t)}return null};To.filterProps=["maxWidth"];const Oo=Xn({prop:"minWidth",transform:Ao}),qo=Xn({prop:"height",transform:Ao}),_o=Xn({prop:"maxHeight",transform:Ao}),jo=Xn({prop:"minHeight",transform:Ao});Xn({prop:"size",cssProperty:"width",transform:Ao}),Xn({prop:"size",cssProperty:"height",transform:Ao});co(ko,To,Oo,qo,_o,jo,Xn({prop:"boxSizing"}));const No={border:{themeKey:"borders",transform:po},borderTop:{themeKey:"borders",transform:po},borderRight:{themeKey:"borders",transform:po},borderBottom:{themeKey:"borders",transform:po},borderLeft:{themeKey:"borders",transform:po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:po},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Do},color:{themeKey:"palette",transform:Lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Lo},backgroundColor:{themeKey:"palette",transform:Lo},p:{style:uo},pt:{style:uo},pr:{style:uo},pb:{style:uo},pl:{style:uo},px:{style:uo},py:{style:uo},padding:{style:uo},paddingTop:{style:uo},paddingRight:{style:uo},paddingBottom:{style:uo},paddingLeft:{style:uo},paddingX:{style:uo},paddingY:{style:uo},paddingInline:{style:uo},paddingInlineStart:{style:uo},paddingInlineEnd:{style:uo},paddingBlock:{style:uo},paddingBlockStart:{style:uo},paddingBlockEnd:{style:uo},m:{style:lo},mt:{style:lo},mr:{style:lo},mb:{style:lo},ml:{style:lo},mx:{style:lo},my:{style:lo},margin:{style:lo},marginTop:{style:lo},marginRight:{style:lo},marginBottom:{style:lo},marginLeft:{style:lo},marginX:{style:lo},marginY:{style:lo},marginInline:{style:lo},marginInlineStart:{style:lo},marginInlineEnd:{style:lo},marginBlock:{style:lo},marginBlockStart:{style:lo},marginBlockEnd:{style:lo},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Mo},rowGap:{style:Ro},columnGap:{style:Po},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ao},maxWidth:{style:To},minWidth:{transform:Ao},height:{transform:Ao},maxHeight:{transform:Ao},minHeight:{transform:Ao},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fo(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Yn(r,s)||{};if(u)return u(o);return Vn(o,t,t=>{let r=Kn(c,l,t);return t===r&&"string"==typeof t&&(r=Kn(c,l,`${e}${"default"===t?"":Gn(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:No;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=Wn(u,e(r,o,i,s));else{const e=Vn({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?u=Wn(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Wn(u,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Bn(l,u)}:Bn(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const zo=Fo();function Wo(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}zo.filterProps=["sx"];const $o=["breakpoints","palette","spacing","shape"];function Ho(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ke(e,$o),s=Fn(r),l=function(e=8){if(e.mui)return e;const t=oo({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let u=_n({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},n),spacing:l,shape:Ae({},zn,i)},a);return u.applyStyles=Wo,u=t.reduce((e,t)=>_n(e,t),u),u.unstable_sxConfig=Ae({},No,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zo({sx:e,theme:this})},u}var Vo=Object.freeze({__proto__:null,default:Ho,private_createBreakpoints:Fn,unstable_applyStyles:Wo});function Bo(e=null){const t=i.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Go=Ho();function Uo(e=Go){return Bo(e)}var Yo,Ko,Xo={exports:{}},Jo={};var Zo=(Ko||(Ko=1,Xo.exports=function(){if(Yo)return Jo;Yo=1;var e=r,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,n){var s,l={},u=null,c=null;for(s in void 0!==n&&(u=""+n),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(c=r.ref),r)o.call(r,s)&&!a.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return Jo.Fragment=n,Jo.jsx=s,Jo.jsxs=s,Jo}()),Xo.exports);function Qo(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ei({styles:e,themeId:t,defaultTheme:r={}}){const n=Uo(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Qo("function"==typeof e?e(o):e)):Qo(i)),Zo.jsx(Rn,{styles:i})}const ti=["sx"];function ri(e){const{sx:t}=e,r=ke(e,ti),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:No;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return On(r)?Ae({},n,r):n}:Ae({},n,t),Ae({},o,{sx:i})}var ni=Object.freeze({__proto__:null,default:zo,extendSxProp:ri,unstable_createStyleFunctionSx:Fo,unstable_defaultSxConfig:No});const oi=e=>e,ii=(()=>{let e=oi;return{configure(t){e=t},generate:t=>e(t),reset(){e=oi}}})();function ai(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ai(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function si(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ai(e))&&(n&&(n+=" "),n+=t);return n}const li=["className","component"];const ui={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ci(e,t,r="Mui"){const n=ui[t];return n?`${r}-${n}`:`${ii.generate(e)}-${t}`}function di(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=ci(e,t,r)}),n}var pi,fi,hi={exports:{}},mi={};function gi(){if(pi)return mi;pi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case r:case o:case n:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return h}}case t:return h}}}return mi.ContextConsumer=i,mi.ContextProvider=a,mi.Element=e,mi.ForwardRef=s,mi.Fragment=r,mi.Lazy=d,mi.Memo=c,mi.Portal=t,mi.Profiler=o,mi.StrictMode=n,mi.Suspense=l,mi.SuspenseList=u,mi.isContextConsumer=function(e){return h(e)===i},mi.isContextProvider=function(e){return h(e)===a},mi.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},mi.isForwardRef=function(e){return h(e)===s},mi.isFragment=function(e){return h(e)===r},mi.isLazy=function(e){return h(e)===d},mi.isMemo=function(e){return h(e)===c},mi.isPortal=function(e){return h(e)===t},mi.isProfiler=function(e){return h(e)===o},mi.isStrictMode=function(e){return h(e)===n},mi.isSuspense=function(e){return h(e)===l},mi.isSuspenseList=function(e){return h(e)===u},mi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},mi.typeOf=h,mi}function vi(){return fi||(fi=1,hi.exports=gi()),hi.exports}var yi=vi();const bi=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function xi(e){const t=`${e}`.match(bi);return t&&t[1]||""}function Si(e,t=""){return e.displayName||e.name||xi(e)||t}function wi(e,t,r){const n=Si(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ci=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Si(e,"Component");if("object"==typeof e)switch(e.$$typeof){case yi.ForwardRef:return wi(e,e.render,"ForwardRef");case yi.Memo:return wi(e,e.type,"memo");default:return}}},getFunctionName:xi});function Ei(e,t){const r=Ae({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Ae({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Ae({},i),Object.keys(o).forEach(e=>{r[n][e]=Ei(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const Ii="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Di(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Mi=Object.freeze({__proto__:null,default:Di});function Pi(e){if(e.type)return e;if("#"===e.charAt(0))return Pi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Pe(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Pe(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function Ri(e,t){return e=Pi(e),t=function(e,t=0,r=1){return Di(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Li(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function Ai(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function ki(e){return e&&e.ownerDocument||document}function Ti(e){return ki(e).defaultView||window}function Oi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let qi=0;const _i=i["useId".toString()];function ji(e){if(void 0!==_i){return _i()}return function(e){const[t,r]=i.useState(e),n=t;return i.useEffect(()=>{null==t&&(qi+=1,r(`mui-${qi}`))},[t]),n}(e)}function Ni({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback(e=>{o||s(e)},[])]}function Fi(e){const t=i.useRef(e);return Ii(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function zi(...e){return i.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Oi(e,t)})},e)}const Wi={};const $i=[];class Hi{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Hi}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Vi(){const e=function(e,t){const r=i.useRef(Wi);return r.current===Wi&&(r.current=e(t)),r}(Hi.create).current;return function(e){i.useEffect(e,$i)}(e.disposeEffect),e}let Bi=!0,Gi=!1;const Ui=new Hi,Yi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ki(e){e.metaKey||e.altKey||e.ctrlKey||(Bi=!0)}function Xi(){Bi=!1}function Ji(){"hidden"===this.visibilityState&&Gi&&(Bi=!0)}function Zi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Bi||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Yi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Qi(){const e=i.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ki,!0),t.addEventListener("mousedown",Xi,!0),t.addEventListener("pointerdown",Xi,!0),t.addEventListener("touchstart",Xi,!0),t.addEventListener("visibilitychange",Ji,!0))},[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Zi(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Gi=!0,Ui.start(100,()=>{Gi=!1}),t.current=!1,!0)},ref:e}}function ea(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ta(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function ra(e){return"string"==typeof e}function na(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function oa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const ia=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function aa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ke(e,ia),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=si(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Ae({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Ae({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=na(Ae({},o,n)),s=oa(n),l=oa(o),u=t(a),c=si(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Ae({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Ae({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ae({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||ra(e)?t:Ae({},t,{ownerState:Ae({},t.ownerState,r)})}(r,Ae({},l,{ref:zi(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function sa(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const la=i.createContext(null);function ua(){return i.useContext(la)}var ca="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function da(e){const{children:t,theme:r}=e,n=ua(),o=i.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Ae({},e,t)}(n,r);return null!=e&&(e[ca]=null!==n),e},[r,n]);return Zo.jsx(la.Provider,{value:o,children:t})}const pa=["value"],fa=i.createContext();function ha(e){let{value:t}=e,r=ke(e,pa);return Zo.jsx(fa.Provider,Ae({value:null==t||t},r))}const ma=i.createContext(void 0);function ga({value:e,children:t}){return Zo.jsx(ma.Provider,{value:e,children:t})}function va({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ei(o.defaultProps,n):o.styleOverrides||o.variants?n:Ei(o,n)}({props:e,name:t,theme:{components:i.useContext(ma)}})}const ya={};function ba(e,t,r,n=!1){return i.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Ae({},t,{[e]:i}):i;return n?()=>a:a}return Ae({},t,e?{[e]:r}:r)},[e,t,r,n])}function xa(e){const{children:t,theme:r,themeId:n}=e,o=Bo(ya),i=ua()||ya,a=ba(n,o,r),s=ba(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Bo(),r=ji()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ii(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?Zo.jsx(ei,{styles:o}):null}(a);return Zo.jsx(da,{theme:s,children:Zo.jsx(sn.Provider,{value:a,children:Zo.jsx(ha,{value:l,children:Zo.jsxs(ga,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Sa(e){return Sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sa(e)}function wa(e){var t=function(e,t){if("object"!=Sa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Sa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sa(t)?t:t+""}function Ca(e,t){return Ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ea,Ia={},Da={exports:{}};function Ma(){return Ea||(Ea=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Da)),Da.exports}var Pa,Ra=_e(Re),La=_e(Mi);function Aa(){if(Pa)return Ia;Pa=1;var e=Ma();Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.alpha=c,Ia.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=i(e),l=i(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:u})},Ia.colorChannel=void 0,Ia.darken=d,Ia.decomposeColor=i,Ia.emphasize=f,Ia.getContrastRatio=function(e,t){const r=u(e),n=u(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Ia.getLuminance=u,Ia.hexToRgb=o,Ia.hslToRgb=l,Ia.lighten=p,Ia.private_safeAlpha=function(e,t,r){try{return c(e,t)}catch(t){return e}},Ia.private_safeColorChannel=void 0,Ia.private_safeDarken=function(e,t,r){try{return d(e,t)}catch(t){return e}},Ia.private_safeEmphasize=function(e,t,r){try{return f(e,t)}catch(t){return e}},Ia.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},Ia.recomposeColor=s,Ia.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(Ra),r=e(La);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let a,s=e.substring(r+1,e.length-1);if("color"===n){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:n,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Ia.colorChannel=a;function s(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return Ia.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Ia}var ka=Aa();const Ta=["mode","contrastThreshold","tonalOffset"],Oa={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Y.white,default:Y.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},qa={text:{primary:Y.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Y.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _a(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=ka.lighten(e.main,o):"dark"===t&&(e.dark=ka.darken(e.main,i)))}function ja(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ke(e,Ta),i=e.primary||function(e="light"){return"dark"===e?{main:se,light:ae,dark:le}:{main:ue,light:le,dark:ce}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:te,light:ee,dark:ne}:{main:oe,light:re,dark:ie}}(t),s=e.error||function(e="light"){return"dark"===e?{main:J,light:K,dark:Z}:{main:Z,light:X,dark:Q}}(t),l=e.info||function(e="light"){return"dark"===e?{main:pe,light:de,dark:he}:{main:he,light:fe,dark:me}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ve,light:ge,dark:be}:{main:xe,light:ye,dark:Se}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ce,light:we,dark:Ie}:{main:"#ed6c02",light:Ee,dark:De}}(t);function d(e){return ka.getContrastRatio(e,qa.text.primary)>=r?qa.text.primary:Oa.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ae({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Pe(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Pe(12,t?` (${t})`:"",JSON.stringify(e.main)));return _a(e,"light",o,n),_a(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:qa,light:Oa};return _n(Ae({common:Ae({},Y),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Me,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Na=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Fa={textTransform:"uppercase"},za='"Roboto", "Helvetica", "Arial", sans-serif';function Wa(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=za,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=ke(r,Na),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Ae({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===za?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Fa),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Fa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _n(Ae({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function $a(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ha=["none",$a(0,2,1,-1,0,1,1,0,0,1,3,0),$a(0,3,1,-2,0,2,2,0,0,1,5,0),$a(0,3,3,-2,0,3,4,0,0,1,8,0),$a(0,2,4,-1,0,4,5,0,0,1,10,0),$a(0,3,5,-1,0,5,8,0,0,1,14,0),$a(0,3,5,-1,0,6,10,0,0,1,18,0),$a(0,4,5,-2,0,7,10,1,0,2,16,1),$a(0,5,5,-3,0,8,10,1,0,3,14,2),$a(0,5,6,-3,0,9,12,1,0,3,16,2),$a(0,6,6,-3,0,10,14,1,0,4,18,3),$a(0,6,7,-4,0,11,15,1,0,4,20,3),$a(0,7,8,-4,0,12,17,2,0,5,22,4),$a(0,7,8,-4,0,13,19,2,0,5,24,4),$a(0,7,9,-4,0,14,21,2,0,5,26,4),$a(0,8,9,-5,0,15,22,2,0,6,28,5),$a(0,8,10,-5,0,16,24,2,0,6,30,5),$a(0,8,11,-5,0,17,26,2,0,6,32,5),$a(0,9,11,-5,0,18,28,2,0,7,34,6),$a(0,9,12,-6,0,19,29,2,0,7,36,6),$a(0,10,13,-6,0,20,31,3,0,8,38,7),$a(0,10,13,-6,0,21,33,3,0,8,40,7),$a(0,10,14,-6,0,22,35,3,0,8,42,7),$a(0,11,14,-7,0,23,36,3,0,9,44,8),$a(0,11,15,-7,0,24,38,3,0,9,46,8)],Va=["duration","easing","delay"],Ba={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ga={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ua(e){return`${Math.round(e)}ms`}function Ya(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ka(e){const t=Ae({},Ba,e.easing),r=Ae({},Ga,e.duration);return Ae({getAutoHeightDuration:Ya,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ke(n,Va),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ua(o)} ${i} ${"string"==typeof a?a:Ua(a)}`).join(",")}},e,{easing:t,duration:r})}const Xa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ja=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Za(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ke(e,Ja);if(e.vars&&void 0===e.generateCssVars)throw new Error(Pe(18));const s=ja(n),l=Ho(e);let u=_n(l,{mixins:Ca(l.breakpoints,r),palette:s,shadows:Ha.slice(),typography:Wa(s,i),transitions:Ka(o),zIndex:Ae({},Xa)});return u=_n(u,a),u=t.reduce((e,t)=>_n(e,t),u),u.unstable_sxConfig=Ae({},No,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zo({sx:e,theme:this})},u}const Qa=Za();function es(){const e=Uo(Qa);return e[Le]||e}var ts,rs={},ns={exports:{}};function os(){return ts||(ts=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ns)),ns.exports}var is,as={exports:{}};function ss(){return is||(is=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(as)),as.exports}var ls,us=_e(Tn),cs=_e(jn),ds=_e(Un),ps=_e(Ci),fs=_e(Vo),hs=_e(ni);function ms(){if(ls)return rs;ls=1;var e=Ma();Object.defineProperty(rs,"__esModule",{value:!0}),rs.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,n.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(h(y))}=a,w=(0,r.default)(a,u),C=f&&f.startsWith("Mui")||y?"components":"custom",E=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,I=x||!1;let D=d;"Root"===y||"root"===y?D=l:y?D=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(D=void 0);const M=(0,n.default)(e,(0,t.default)({shouldForwardProp:D,label:void 0},w)),P=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>{const n=m({theme:r.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},r,{theme:n}),n.modularCssLayers?C:void 0)}:e,R=(r,...n)=>{let o=P(r);const a=n?n.map(P):[];f&&S&&a.push(e=>{const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!r.components||!r.components[f]||!r.components[f].styleOverrides)return null;const n=r.components[f].styleOverrides,o={};return Object.entries(n).forEach(([n,i])=>{o[n]=v(i,(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var r;const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return v({variants:null==n||null==(r=n.components)||null==(r=r[f])?void 0:r.variants},(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),I||a.push(p);const l=a.length-n.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const u=M(o,...a);return e.muiName&&(u.muiName=e.muiName),u};return M.withConfig&&(R.withConfig=M.withConfig),R}},rs.shouldForwardProp=d,rs.systemDefaultTheme=void 0;var t=e(os()),r=e(ss()),n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(us),o=cs;e(ds),e(ps);var i=e(fs),a=e(hs);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=rs.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function g(e){return e?(t,r)=>r[e]:null}function v(e,o,i){let{ownerState:a}=o,u=(0,r.default)(o,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,t.default)({ownerState:a},u),i));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let o=(0,r.default)(c,l);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(o)||(o=[o]);const r="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;o.push(i?p((0,n.internal_serializeStyles)(r),i):r)}}),o}return i?p((0,n.internal_serializeStyles)(c),i):c}return rs}function gs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vs=e=>gs(e)&&"classes"!==e,ys=qe(ms())({themeId:Le,defaultTheme:Qa,rootShouldForwardProp:vs}),bs=["theme"];function xs(e){let{theme:t}=e,r=ke(e,bs);const n=t[Le];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Ae({},n,{vars:null}):t&&!t.vars&&(o=Ae({},t,{vars:null}))),Zo.jsx(xa,Ae({},r,{themeId:n?Le:void 0,theme:o}))}const Ss=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ws(e){return va(e)}function Cs(e){return ci("MuiSvgIcon",e)}di("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Es=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Is=ys("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Gn(r.color)}`],t[`fontSize${Gn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Ds=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,f=ke(r,Es),h=i.isValidElement(n)&&"svg"===n.type,m=Ae({},r,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return ta({root:["root","inherit"!==t&&`color${Gn(t)}`,`fontSize${Gn(r)}`]},Cs,n)})(m);return Zo.jsxs(Is,Ae({as:s,className:si(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?Zo.jsx("title",{children:d}):null]}))});function Ms(e,t){function r(r,n){return Zo.jsx(Ds,Ae({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ds.muiName,i.memo(i.forwardRef(r))}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ps(e,t)}function Rs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ps(e,t)}Ds.muiName="SvgIcon";var Ls=!1,As=r.createContext(null),ks="unmounted",Ts="exited",Os="entering",qs="entered",_s="exiting",js=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ts,n.appearStatus=Os):o=qs:o=t.unmountOnExit||t.mountOnEnter?ks:Ts,n.state={status:o},n.nextCallback=null,n}Rs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ks?{status:Ts}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Os&&r!==qs&&(t=Os):r!==Os&&r!==qs||(t=_s)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Os){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ts&&this.setState({status:ks})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[C.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Ls?this.safeSetState({status:qs},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Os},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:qs},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:C.findDOMNode(this);t&&!Ls?(this.props.onExit(n),this.safeSetState({status:_s},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Ts},function(){e.props.onExited(n)})})})):this.safeSetState({status:Ts},function(){e.props.onExited(n)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:C.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ks)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=ke(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(As.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Ns(){}function Fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zs(e,t){var r=Object.create(null);return e&&l.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&a(e)?t(e):e}(e)}),r}function Ws(e,t,r){return null!=r[t]?r[t]:e.props[t]}function $s(e,t,r){var n=zs(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var l=o[i];if(a(l)){var u=i in t,c=i in n,d=t[i],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(o[i]=s(l,{onExited:r.bind(null,l),in:d.props.in,exit:Ws(l,"exit",e),enter:Ws(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:r.bind(null,l),in:!0,exit:Ws(l,"exit",e),enter:Ws(l,"enter",e)})}}),o}js.contextType=As,js.propTypes={},js.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ns,onEntering:Ns,onEntered:Ns,onExit:Ns,onExiting:Ns,onExited:Ns},js.UNMOUNTED=ks,js.EXITED=Ts,js.ENTERING=Os,js.ENTERED=qs,js.EXITING=_s;var Hs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Vs=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Fs(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Rs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,zs(r.children,function(e){return s(e,{onExited:n.bind(null,e),in:!0,appear:Ws(e,"appear",r),enter:Ws(e,"enter",r),exit:Ws(e,"exit",r)})})):$s(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=zs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Ae({},t.children);return delete r[e.key],{children:r}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=ke(e,["component","childFactory"]),i=this.state.contextValue,a=Hs(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(As.Provider,{value:i},a):r.createElement(As.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Vs.propTypes={},Vs.defaultProps={component:"div",childFactory:function(e){return e}};const Bs=e=>e.scrollTop;function Gs(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Us(e){return ci("MuiPaper",e)}di("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ys=["className","component","elevation","square","variant"],Ks=ys("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Ae({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ae({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ka.alpha("#fff",Ss(t.elevation))}, ${ka.alpha("#fff",Ss(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Xs=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=ke(r,Ys),u=Ae({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ta({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Us,o)})(u);return Zo.jsx(Ks,Ae({as:o,ownerState:u,className:si(c.root,n),ref:t},l))});const Js=di("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Zs=["center","classes","className"];let Qs,el,tl,rl,nl=e=>e;const ol=vn(Qs||(Qs=nl`
|
|
16
16
|
0% {
|
|
17
17
|
transform: scale(0);
|
|
18
18
|
opacity: 0.1;
|
|
@@ -22,7 +22,7 @@ function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldFo
|
|
|
22
22
|
transform: scale(1);
|
|
23
23
|
opacity: 0.3;
|
|
24
24
|
}
|
|
25
|
-
`)),
|
|
25
|
+
`)),il=vn(el||(el=nl`
|
|
26
26
|
0% {
|
|
27
27
|
opacity: 1;
|
|
28
28
|
}
|
|
@@ -30,7 +30,7 @@ function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldFo
|
|
|
30
30
|
100% {
|
|
31
31
|
opacity: 0;
|
|
32
32
|
}
|
|
33
|
-
`)),
|
|
33
|
+
`)),al=vn(tl||(tl=nl`
|
|
34
34
|
0% {
|
|
35
35
|
transform: scale(1);
|
|
36
36
|
}
|
|
@@ -42,7 +42,7 @@ function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldFo
|
|
|
42
42
|
100% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
}
|
|
45
|
-
`)),
|
|
45
|
+
`)),sl=ys("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ll=ys(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,p]=i.useState(!1),f=si(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+o},m=si(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||p(!0),i.useEffect(()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}},[u,l,c]),Zo.jsx("span",{className:f,style:h,children:Zo.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(rl||(rl=nl`
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
|
|
@@ -85,93 +85,18 @@ function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldFo
|
|
|
85
85
|
animation-iteration-count: infinite;
|
|
86
86
|
animation-delay: 200ms;
|
|
87
87
|
}
|
|
88
|
-
`),jl.rippleVisible,Gl,550,(({theme:e})=>e.transitions.easing.easeInOut),jl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jl.child,jl.childLeaving,Hl,550,(({theme:e})=>e.transitions.easing.easeInOut),jl.childPulsate,Vl,(({theme:e})=>e.transitions.easing.easeInOut)),Kl=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=De(r,Nl),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=i.useRef(!1),f=ea(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;u((e=>[...e,Zo.jsx(Yl,{classes:{ripple:sl(o.ripple,jl.ripple),rippleVisible:sl(o.rippleVisible,jl.rippleVisible),ripplePulsate:sl(o.ripplePulsate,jl.ripplePulsate),child:sl(o.child,jl.child),childLeaving:sl(o.childLeaving,jl.childLeaving),childPulsate:sl(o.childPulsate,jl.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),b=i.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,g,f]),v=i.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=i.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{y(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return i.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Zo.jsx(Ul,Pe({className:sl(jl.root,o.root,a),ref:m},s,{children:Zo.jsx(Ll,{component:null,exit:!0,children:l})}))}));function Xl(e){return ui("MuiButtonBase",e)}const Jl=ci("MuiButtonBase",["root","disabled","focusVisible"]),Zl=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ql=rl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),eu=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:M,onTouchStart:A,tabIndex:I=0,TouchRippleProps:k,touchRippleRef:L,type:P}=r,D=De(r,Zl),_=i.useRef(null),O=i.useRef(null),T=Xi(O,L),{isFocusVisibleRef:q,onFocus:j,onBlur:N,ref:F}=ua(),[z,$]=i.useState(!1);u&&z&&$(!1),i.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),_.current.focus()}})),[]);const[W,B]=i.useState(!1);i.useEffect((()=>{B(!0)}),[]);const G=W&&!c&&!u;function H(e,t,r=d){return Ki((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}i.useEffect((()=>{z&&p&&!c&&W&&O.current.pulsate()}),[c,p,z,W]);const V=H("start",w),U=H("stop",g),Y=H("stop",b),K=H("stop",E),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",A),Z=H("stop",R),Q=H("stop",M),ee=H("stop",(e=>{N(e),!1===q.current&&$(!1),h&&h(e)}),!1),te=Ki((e=>{_.current||(_.current=e.currentTarget),j(e),!0===q.current&&($(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=Ki((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=Ki((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(D.href||D.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===P?"button":P,se.disabled=u):(D.href||D.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=Xi(t,F,_),ue=Pe({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=da({root:["root",t&&"disabled",r&&"focusVisible"]},Xl,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Zo.jsxs(Ql,Pe({as:ae,className:sl(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:I,type:P},se,D,{children:[a,G?Zo.jsx(Kl,Pe({ref:T,center:o},k)):null]}))}));function tu(e){return ui("MuiTypography",e)}ci("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ru=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nu=rl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${$n(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Pe({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),ou={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},iu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},au=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiTypography"}),n=(e=>iu[e]||e)(r.color),o=ti(Pe({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ou}=o,f=De(o,ru),h=Pe({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||ou[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return da({root:["root",i,"inherit"!==e.align&&`align${$n(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},tu,a)})(h);return Zo.jsx(nu,Pe({as:m,ref:t,ownerState:h,className:sl(g.root,a)},f))}));const su=i.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=Xi(i.isValidElement(r)?ba(r):null,t);if(Ti((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ti((()=>{if(a&&!o)return Gi(t,a),()=>{Gi(t,null)}}),[t,a,o]),o){if(i.isValidElement(r)){const e={ref:l};return i.cloneElement(r,e)}return Zo.jsx(i.Fragment,{children:r})}return Zo.jsx(i.Fragment,{children:a?E.createPortal(r,a):a})})),lu=["onChange","maxRows","minRows","style","value"];function uu(e){return parseInt(e,10)||0}const cu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function du(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const pu=i.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:s}=e,l=De(e,lu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=Xi(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback((()=>{const t=c.current,r=f.current;if(!t||!r)return;const i=Bi(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=uu(i.paddingBottom)+uu(i.paddingTop),l=uu(i.borderBottomWidth)+uu(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),m=Ki((()=>{const e=c.current,t=h();if(!e||!t||du(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r})),g=i.useCallback((()=>{const e=c.current,t=h();if(!e||!t||du(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),b=i.useRef(-1);Ti((()=>{const e=$i(g),t=null==c?void 0:c.current;if(!t)return;const r=Bi(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(b.current),g(),b.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,g,m]),Ti((()=>{g()}));return Zo.jsxs(i.Fragment,{children:[Zo.jsx("textarea",Pe({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:a},l)),Zo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Pe({},cu,a,{paddingTop:0,paddingBottom:0})})]})}));function fu({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const hu=i.createContext(void 0);function mu(){return i.useContext(hu)}function gu(e){return Zo.jsx(Qo,Pe({},e,{defaultTheme:Cs,themeId:Le}))}function bu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function vu(e,t=!1){return e&&(bu(e.value)&&""!==e.value||t&&bu(e.defaultValue)&&""!==e.defaultValue)}function yu(e){return ui("MuiInputBase",e)}const xu=ci("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Su=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],wu=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${$n(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Cu=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Eu=rl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wu})((({theme:e,ownerState:t})=>Pe({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${xu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Pe({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ru=rl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Cu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Pe({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Pe({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${xu.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${xu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Mu=Zo.jsx(gu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Au=i.forwardRef((function(e,t){var r;const n=ll({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:M,onFocus:A,onKeyDown:I,onKeyUp:k,placeholder:L,readOnly:P,renderSuffix:D,rows:_,slotProps:O={},slots:T={},startAdornment:q,type:j="text",value:N}=n,F=De(n,Su),z=null!=v.value?v.value:N,{current:$}=i.useRef(null!=z),W=i.useRef(),B=i.useCallback((e=>{}),[]),G=Xi(W,y,v.ref,B),[H,V]=i.useState(!1),U=mu(),Y=fu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:H,i.useEffect((()=>{!U&&p&&H&&(V(!1),E&&E())}),[U,p,H,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=i.useCallback((e=>{vu(e)?K&&K():X&&X()}),[K,X]);Ti((()=>{$&&J({value:z})}),[z,J,$]);i.useEffect((()=>{J(W.current)}),[]);let Z=b,Q=v;w&&"input"===Z&&(Q=Pe(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:x,minRows:S},Q),Z=pu);i.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Pe({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:q,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return da({root:["root",`color${$n(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${$n(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},yu,t)})(ee),re=T.root||u.Root||Eu,ne=O.root||c.root||{},oe=T.input||u.Input||Ru;return Q=Pe({},Q,null!=(r=O.input)?r:c.input),Zo.jsxs(i.Fragment,{children:[!f&&Mu,Zo.jsxs(re,Pe({},ne,!pa(re)&&{ownerState:Pe({},ee,ne.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),M&&M(e)}},F,{className:sl(te.root,ne.className,l,P&&"MuiInputBase-readOnly"),children:[q,Zo.jsx(hu.Provider,{value:null,children:Zo.jsx(oe,Pe({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:C,placeholder:L,readOnly:P,required:Y.required,rows:_,value:z,onKeyDown:I,onKeyUp:k,type:j},Q,!pa(oe)&&{as:Z,ownerState:Pe({},ee,Q.ownerState)},{ref:G,className:sl(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||W.current;if(null==t)throw new Error(Ie(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),v.onFocus&&v.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),h,D?D(Pe({},Y,{startAdornment:q})):null]}))]})}));function Iu(e){return ui("MuiInput",e)}const ku=Pe({},xu,ci("MuiInput",["root","underline","input"]));function Lu(e){return ui("MuiOutlinedInput",e)}const Pu=Pe({},xu,ci("MuiOutlinedInput",["root","notchedOutline","input"]));function Du(e){return ui("MuiFilledInput",e)}const _u=Pe({},xu,ci("MuiFilledInput",["root","underline","input"]));var Ou=fl(Zo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Tu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qu={entering:{opacity:1},entered:{opacity:1}},ju=i.forwardRef((function(e,t){const r=Es(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=n,TransitionComponent:v=Cl}=e,y=De(e,Tu),x=i.useRef(null),S=Xi(x,ba(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w(((e,t)=>{Pl(e);const n=Dl({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=w(d),M=w(m),A=w((e=>{const t=Dl({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=w(h);return Zo.jsx(v,Pe({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:M,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>i.cloneElement(s,Pe({style:Pe({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},qu[e],g,s.props.style),ref:S},t))}))}));function Nu(e){return ui("MuiBackdrop",e)}ci("MuiBackdrop",["root","invisible"]);const Fu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zu=rl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Pe({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),$u=i.forwardRef((function(e,t){var r,n,o;const i=ll({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ju,transitionDuration:g}=i,b=De(i,Fu),v=Pe({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return da({root:["root",r&&"invisible"]},Nu,t)})(v),x=null!=(r=f.root)?r:c.root;return Zo.jsx(m,Pe({in:p,timeout:g},b,{children:Zo.jsx(zu,Pe({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:sl(y.root,s,null==x?void 0:x.className),ownerState:Pe({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Wu=ci("MuiBox",["root"]),Bu=ws(),Gu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=En("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(To);return i.forwardRef((function(e,i){const s=Wo(r),l=ti(e),{className:u,component:c="div"}=l,d=kn(l,si);return Zo.jsx(a,In({as:c,ref:i,className:ai(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Le,defaultTheme:Bu,defaultClassName:Wu.root,generateClassName:oi.generate});function Hu(e){return ui("MuiButton",e)}const Vu=ci("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Uu=i.createContext({}),Yu=i.createContext(void 0),Ku=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Xu=e=>Pe({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ju=rl(eu,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${$n(r.color)}`],t[`size${$n(r.size)}`],t[`${r.variant}Size${$n(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Pe({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Pe({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:za(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:za(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:za(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Pe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vu.focusVisible}`]:Pe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vu.disabled}`]:Pe({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${za(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vu.disabled}`]:{boxShadow:"none"}})),Zu=rl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${$n(r.size)}`]]}})((({ownerState:e})=>Pe({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Xu(e)))),Qu=rl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${$n(r.size)}`]]}})((({ownerState:e})=>Pe({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Xu(e)))),ec=i.forwardRef((function(e,t){const r=i.useContext(Uu),n=i.useContext(Yu),o=ll({props:Oi(r,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:b,type:v,variant:y="text"}=o,x=De(o,Ku),S=Pe({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:v,variant:y}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Pe({},a,da({root:["root",i,`${i}${$n(t)}`,`size${$n(o)}`,`${i}Size${$n(o)}`,`color${$n(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$n(o)}`],endIcon:["icon","endIcon",`iconSize${$n(o)}`]},Hu,a))})(S),C=b&&Zo.jsx(Zu,{className:w.startIcon,ownerState:S,children:b}),E=f&&Zo.jsx(Qu,{className:w.endIcon,ownerState:S,children:f}),R=n||"";return Zo.jsxs(Ju,Pe({ownerState:S,className:sl(r.className,w.root,u,R),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:sl(w.focusVisible,h),ref:t,type:v},x,{classes:w,children:[C,a,E]}))}));function tc(e){return ui("PrivateSwitchBase",e)}ci("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nc=rl(eu)((({ownerState:e})=>Pe({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),oc=rl("input",{shouldForwardProp:tl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ic=i.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=De(e,rc),[E,R]=Yi({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),M=mu();let A=s;M&&void 0===A&&(A=M.disabled);const I="checkbox"===S||"radio"===S,k=Pe({},e,{checked:E,disabled:A,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return da({root:["root",r&&"checked",n&&"disabled",o&&`edge${$n(o)}`],input:["input"]},tc,t)})(k);return Zo.jsxs(nc,Pe({component:"span",className:sl(L.root,i),centerRipple:!0,focusRipple:!l,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),M&&M.onFocus&&M.onFocus(e)},onBlur:e=>{m&&m(e),M&&M.onBlur&&M.onBlur(e)},ownerState:k,ref:t},C,{children:[Zo.jsx(oc,Pe({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:A,id:I?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:k,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))}));var ac=fl(Zo.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),sc=fl(Zo.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lc=fl(Zo.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uc(e){return ui("MuiCheckbox",e)}const cc=ci("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],pc=rl(ic,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${$n(r.size)}`],"default"!==r.color&&t[`color${$n(r.color)}`]]}})((({theme:e,ownerState:t})=>Pe({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:za("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${cc.checked}, &.${cc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),fc=Zo.jsx(sc,{}),hc=Zo.jsx(ac,{}),mc=Zo.jsx(lc,{}),gc=i.forwardRef((function(e,t){var r,n;const o=ll({props:e,name:"MuiCheckbox"}),{checkedIcon:a=fc,color:s="primary",icon:l=hc,indeterminate:u=!1,indeterminateIcon:c=mc,inputProps:d,size:p="medium",className:f}=o,h=De(o,dc),m=u?c:l,g=u?c:a,b=Pe({},o,{color:s,indeterminate:u,size:p}),v=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return Pe({},t,da({root:["root",r&&"indeterminate",`color${$n(n)}`,`size${$n(o)}`]},uc,t))})(b);return Zo.jsx(pc,Pe({type:"checkbox",inputProps:Pe({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:b,ref:t,className:sl(v.root,f)},h,{classes:v}))}));function bc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vc(e){return parseInt(Bi(e).getComputedStyle(e).paddingRight,10)||0}function yc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&bc(e,o)}))}function xc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Sc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Wi(e);return t.body===e?Bi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ca(Wi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vc(n)+e}px`;const t=Wi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Wi(n).body;else{const t=n.parentElement,r=Bi(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const wc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cc(e){const t=[],r=[];return Array.from(e.querySelectorAll(wc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Ec(){return!0}function Rc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=Cc,isEnabled:s=Ec,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=Xi(ba(t),m),b=i.useRef(null);i.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=Wi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=Wi(m.current),t=t=>{b.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,s,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Zo.jsxs(i.Fragment,{children:[Zo.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Zo.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Mc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&bc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yc(t,e.mount,e.modalRef,n,!0);const o=xc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=xc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Sc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=xc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&bc(e.modalRef,t),yc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&bc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ac(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Mc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=Xi(m,p),[b,v]=i.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Ki((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Wi(h.current).body;o.add(S(),e),m.current&&w()})),E=i.useCallback((()=>o.isTopModal(S())),[o]),R=Ki((e=>{h.current=e,e&&(d&&E()?w():m.current&&bc(m.current,x))})),M=i.useCallback((()=>{o.remove(S(),x)}),[x,o]);i.useEffect((()=>()=>{M()}),[M]),i.useEffect((()=>{d?C():y&&a||M()}),[d,M,y,a,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=fa(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Pe({},r,t);return Pe({role:"presentation"},n,{onKeyDown:A(n),ref:g})},getBackdropProps:(e={})=>Pe({"aria-hidden":!0},e,{onClick:I(e),open:d}),getTransitionProps:()=>({onEnter:zi((()=>{v(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:zi((()=>{v(!0),l&&l(),a&&M()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:E,exited:b,hasTransition:y}}function Ic(e){return ui("MuiModal",e)}ci("MuiModal",["root","hidden","backdrop"]);const kc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Lc=rl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Pe({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Pc=rl($u,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dc=i.forwardRef((function(e,t){var r,n,o,a,s,l;const u=ll({name:"MuiModal",props:e}),{BackdropComponent:c=Pc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:A,open:I,slotProps:k,slots:L}=u,P=De(u,kc),D=Pe({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:M}),{getRootProps:_,getBackdropProps:O,getTransitionProps:T,portalRef:q,isTopModal:j,exited:N,hasTransition:F}=Ac(Pe({},D,{rootRef:t})),z=Pe({},D,{exited:N}),$=(e=>{const{open:t,exited:r,classes:n}=e;return da({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ic,n)})(z),W={};if(void 0===h.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();W.onEnter=e,W.onExited=t}const B=null!=(r=null!=(n=null==L?void 0:L.root)?n:b.Root)?r:Lc,G=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:b.Backdrop)?o:c,H=null!=(s=null==k?void 0:k.root)?s:v.root,V=null!=(l=null==k?void 0:k.backdrop)?l:v.backdrop,U=ga({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:_,additionalProps:{ref:t,as:g},ownerState:z,className:sl(p,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),Y=ga({elementType:G,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(Pe({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:sl(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:z});return M||I||F&&!N?Zo.jsx(su,{ref:q,container:m,disablePortal:w,children:Zo.jsxs(B,Pe({},U,{children:[!R&&c?Zo.jsx(G,Pe({},Y)):null,Zo.jsx(Rc,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:j,open:I,children:i.cloneElement(h,W)})]}))}):null}));function _c(e){return ui("MuiDivider",e)}const Oc=ci("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Tc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qc=rl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Pe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:za(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Pe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Pe({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Pe({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Pe({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),jc=rl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Pe({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Nc=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=De(r,Tc),h=Pe({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return da({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},_c,n)})(h);return Zo.jsx(qc,Pe({as:a,className:sl(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Zo.jsx(jc,{className:m.wrapper,ownerState:h,children:o}):null}))}));Nc.muiSkipListHighlight=!0;const Fc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zc=rl(Eu,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...wu(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Pe({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${_u.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${_u.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_u.disabled}, .${_u.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_u.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Pe({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),$c=rl(Ru,{name:"MuiFilledInput",slot:"Input",overridesResolver:Cu})((({theme:e,ownerState:t})=>Pe({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Wc=i.forwardRef((function(e,t){var r,n,o,i;const a=ll({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=De(a,Fc),g=Pe({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Pe({},t,da({root:["root",!r&&"underline"],input:["input"]},Du,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Dn(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:zc,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:$c;return Zo.jsx(Au,Pe({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Wc.muiName="Input";const Bc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Gc(e){return`scale(${e}, ${e**2})`}const Hc={entering:{opacity:1,transform:Gc(1)},entered:{opacity:1,transform:"none"}},Vc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Uc=i.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Cl}=e,b=De(e,Bc),v=ea(),y=i.useRef(),x=Es(),S=i.useRef(null),w=Xi(S,ba(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C(((e,t)=>{Pl(e);const{duration:r,delay:n,easing:o}=Dl({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:Vc?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),M=C(u),A=C(f),I=C((e=>{const{duration:t,delay:r,easing:n}=Dl({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Vc?o:.666*o,delay:Vc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Gc(.75),d&&d(e)})),k=C(p);return Zo.jsx(g,Pe({appear:n,in:s,nodeRef:S,onEnter:R,onEntered:M,onEntering:E,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{"auto"===m&&v.start(y.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,t)=>i.cloneElement(o,Pe({style:Pe({opacity:0,transform:Gc(.75),visibility:"exited"!==e||s?void 0:"hidden"},Hc[e],h,o.props.style),ref:w},t))}))}));Uc.muiSupportAuto=!0;const Yc=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Kc=rl(Eu,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...wu(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Pe({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ku.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ku.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ku.disabled}, .${ku.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ku.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Xc=rl(Ru,{name:"MuiInput",slot:"Input",overridesResolver:Cu})({}),Jc=i.forwardRef((function(e,t){var r,n,o,i;const a=ll({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=De(a,Yc),b=(e=>{const{classes:t,disableUnderline:r}=e;return Pe({},t,da({root:["root",!r&&"underline"],input:["input"]},Iu,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Dn(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Kc,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Xc;return Zo.jsx(Au,Pe({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Zc(e){return ui("MuiInputAdornment",e)}Jc.muiName="Input";const Qc=ci("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ed;const td=["children","className","component","disablePointerEvents","disableTypography","position","variant"],rd=rl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${$n(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>Pe({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Qc.positionStart}&:not(.${Qc.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),nd=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=De(r,td),p=mu()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Pe({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return da({root:["root",r&&"disablePointerEvents",o&&`position${$n(o)}`,a,n&&"hiddenLabel",i&&`size${$n(i)}`]},Zc,t)})(h);return Zo.jsx(hu.Provider,{value:null,children:Zo.jsx(rd,Pe({as:a,ownerState:h,className:sl(m.root,o),ref:t},d,{children:"string"!=typeof n||l?Zo.jsxs(i.Fragment,{children:["start"===u?ed||(ed=Zo.jsx("span",{className:"notranslate",children:""})):null,n]}):Zo.jsx(au,{color:"text.secondary",children:n})}))})}));function od(e){return ui("MuiLink",e)}const id=ci("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ad={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sd=({theme:e,ownerState:t})=>{const r=(e=>ad[e]||e)(t.color),n=Bn(e,`palette.${r}`,!1)||t.color,o=Bn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:za(n,.4)},ld=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ud=rl(au,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${$n(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Pe({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Pe({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:sd({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${id.focusVisible}`]:{outline:"auto"}}))),cd=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=De(r,ld),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:b}=ua(),[v,y]=i.useState(!1),x=Xi(t,b),S=Pe({},r,{color:o,component:a,focusVisible:v,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return da({root:["root",`underline${$n(o)}`,"button"===r&&"button",n&&"focusVisible"]},od,t)})(S);return Zo.jsx(ud,Pe({color:o,className:sl(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&y(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&y(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(ad).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),dd=i.createContext({});function pd(e){return ui("MuiList",e)}ci("MuiList",["root","padding","dense","subheader"]);const fd=["children","className","component","dense","disablePadding","subheader"],hd=rl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Pe({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),md=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=De(r,fd),d=i.useMemo((()=>({dense:s})),[s]),p=Pe({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return da({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},pd,t)})(p);return Zo.jsx(dd.Provider,{value:d,children:Zo.jsxs(hd,Pe({as:a,className:sl(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})}));function gd(e){return ui("MuiListItemIcon",e)}const bd=ci("MuiListItemIcon",["root","alignItemsFlexStart"]),vd=["className"],yd=rl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Pe({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),xd=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=De(r,vd),a=Pe({},r,{alignItems:i.useContext(dd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return da({root:["root","flex-start"===t&&"alignItemsFlexStart"]},gd,r)})(a);return Zo.jsx(yd,Pe({className:sl(s.root,n),ownerState:a,ref:t},o))})),Sd=ci("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),wd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ed(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Rd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Md(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Rd(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Ad=i.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=De(e,wd),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ti((()=>{n&&f.current.focus()}),[n]),i.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ca(Wi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=Xi(f,t);let g=-1;i.Children.forEach(a,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=i.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return Zo.jsx(md,Pe({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Wi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Md(t,n,u,l,Cd);else if("ArrowUp"===r)e.preventDefault(),Md(t,n,u,l,Ed);else if("Home"===r)e.preventDefault(),Md(t,null,u,l,Cd);else if("End"===r)e.preventDefault(),Md(t,null,u,l,Ed);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Rd(n,o);o.previousKeyMatched&&(s||Md(t,n,!1,l,Cd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:b}))}));function Id(e){return ui("MuiPopover",e)}ci("MuiPopover",["root","paper"]);const kd=["onEntering"],Ld=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pd=["slotProps"];function Dd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function _d(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Od(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Td(e){return"function"==typeof e?e():e}const qd=rl(Dc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jd=rl(ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nd=i.forwardRef((function(e,t){var r,n,o;const a=ll({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Uc,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=a,M=De(a.TransitionProps,kd),A=De(a,Ld),I=null!=(r=null==x?void 0:x.paper)?r:v,k=i.useRef(),L=Xi(k,I.ref),P=Pe({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:M}),D=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"]},Id,t)})(P),_=i.useCallback((()=>{if("anchorPosition"===d)return c;const e=Td(l),t=(e&&1===e.nodeType?e:Wi(k.current).body).getBoundingClientRect();return{top:t.top+Dd(t,u.vertical),left:t.left+_d(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),O=i.useCallback((e=>({vertical:Dd(e,S.vertical),horizontal:_d(e,S.horizontal)})),[S.horizontal,S.vertical]),T=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Od(r)};const n=_();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Bi(Td(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Od(r)}}),[l,d,_,O,g]),[q,j]=i.useState(b),N=i.useCallback((()=>{const e=k.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[T]);i.useEffect((()=>(R&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,R,N]);i.useEffect((()=>{b&&N()})),i.useImperativeHandle(s,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),i.useEffect((()=>{if(!b)return;const e=$i((()=>{N()})),t=Bi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Wi(Td(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:qd,W=null!=(o=null==y?void 0:y.paper)?o:jd,B=ga({elementType:W,externalSlotProps:Pe({},I,{style:q?I.style:Pe({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:P,className:sl(D.paper,null==I?void 0:I.className)}),G=ga({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:sl(D.root,f)}),{slotProps:H}=G,V=De(G,Pd);return Zo.jsx($,Pe({},V,!pa($)&&{slotProps:H,disableScrollLock:R},{children:Zo.jsx(w,Pe({appear:!0,in:b,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},M,{children:Zo.jsx(W,Pe({},B,{children:p}))}))}))}));function Fd(e){return ui("MuiMenu",e)}ci("MuiMenu",["root","paper","list"]);const zd=["onEntering"],$d=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Wd={vertical:"top",horizontal:"right"},Bd={vertical:"top",horizontal:"left"},Gd=rl(Nd,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hd=rl(jd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Vd=rl(Ad,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ud=i.forwardRef((function(e,t){var r,n;const o=ll({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=o,x=De(o.TransitionProps,zd),S=De(o,$d),w=(()=>{const e=i.useContext(Ca);return null!=e&&e})(),C=Pe({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:b}),E=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"],list:["list"]},Fd,t)})(C),R=a&&!u&&p,M=i.useRef(null);let A=-1;i.Children.map(s,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=v.paper)?r:Hd,k=null!=(n=y.paper)?n:f,L=ga({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[E.root,l]}),P=ga({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return Zo.jsx(Gd,Pe({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Wd:Bd,slots:{paper:I,root:v.root},slotProps:{root:L,paper:P},open:p,ref:t,transitionDuration:m,TransitionProps:Pe({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:Zo.jsx(Vd,Pe({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===A||u),autoFocusItem:R,variant:b},c,{className:sl(E.list,c.className),children:s}))}))}));function Yd(e){return ui("MuiMenuItem",e)}const Kd=ci("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jd=rl(eu,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Pe({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:za(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:za(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:za(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:za(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Oc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Oc.inset}`]:{marginLeft:52},[`& .${Sd.root}`]:{marginTop:0,marginBottom:0},[`& .${Sd.inset}`]:{paddingLeft:36},[`& .${bd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Pe({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${bd.root} svg`]:{fontSize:"1.25rem"}})))),Zd=i.forwardRef((function(e,t){const r=ll({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=De(r,Xd),h=i.useContext(dd),m=i.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=i.useRef(null);Ti((()=>{n&&g.current&&g.current.focus()}),[n]);const b=Pe({},r,{dense:m.dense,divider:s,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Pe({},a,da({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Yd,a))})(r),y=Xi(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Zo.jsx(dd.Provider,{value:m,children:Zo.jsx(Jd,Pe({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:sl(v.focusVisible,u),className:sl(v.root,p)},f,{ownerState:b,classes:v}))})}));function Qd(e){return ui("MuiNativeSelect",e)}const ep=ci("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tp=["className","disabled","error","IconComponent","inputRef","variant"],rp=({ownerState:e,theme:t})=>Pe({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Pe({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ep.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),np=rl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:tl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ep.multiple}`]:t.multiple}]}})(rp),op=({ownerState:e,theme:t})=>Pe({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ep.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ip=rl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${$n(r.variant)}`],r.open&&t.iconOpen]}})(op),ap=i.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=De(e,tp),c=Pe({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return da({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$n(r)}`,i&&"iconOpen",n&&"disabled"]},Qd,t)})(c);return Zo.jsxs(i.Fragment,{children:[Zo.jsx(np,Pe({ownerState:c,className:sl(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Zo.jsx(ip,{as:a,ownerState:c,className:d.icon})]})}));var sp;const lp=["children","classes","className","label","notched"],up=rl("fieldset",{shouldForwardProp:tl})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cp=rl("legend",{shouldForwardProp:tl})((({ownerState:e,theme:t})=>Pe({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Pe({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const dp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],pp=rl(Eu,{shouldForwardProp:e=>tl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:wu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Pe({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Pu.focused} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pu.error} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pu.disabled} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Pe({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),fp=rl((function(e){const{className:t,label:r,notched:n}=e,o=De(e,lp),i=null!=r&&""!==r,a=Pe({},e,{notched:n,withLabel:i});return Zo.jsx(up,Pe({"aria-hidden":!0,className:t,ownerState:a},o,{children:Zo.jsx(cp,{ownerState:a,children:i?Zo.jsx("span",{children:r}):sp||(sp=Zo.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),hp=rl(Ru,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Cu})((({theme:e,ownerState:t})=>Pe({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),mp=i.forwardRef((function(e,t){var r,n,o,a,s;const l=ll({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,b=De(l,dp),v=(e=>{const{classes:t}=e;return Pe({},t,da({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Lu,t))})(l),y=mu(),x=fu({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Pe({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(r=null!=(n=m.root)?n:u.Root)?r:pp,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:hp;return Zo.jsx(Au,Pe({slots:{root:w,input:C},renderSuffix:e=>Zo.jsx(fp,{ownerState:S,className:v.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=Zo.jsxs(i.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},b,{classes:Pe({},v,{notchedOutline:null})}))}));function gp(e){return ui("MuiSelect",e)}mp.muiName="Input";const bp=ci("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vp;const yp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],xp=rl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bp.select}`]:t.select},{[`&.${bp.select}`]:t[r.variant]},{[`&.${bp.error}`]:t.error},{[`&.${bp.multiple}`]:t.multiple}]}})(rp,{[`&.${bp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sp=rl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${$n(r.variant)}`],r.open&&t.iconOpen]}})(op),wp=rl("input",{shouldForwardProp:e=>el(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ep(e){return null==e||"string"==typeof e&&!e.trim()}const Rp=i.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:M,readOnly:A,renderValue:I,SelectDisplayProps:k={},tabIndex:L,value:P,variant:D="standard"}=e,_=De(e,yp),[O,T]=Yi({controlled:P,default:d,name:"Select"}),[q,j]=Yi({controlled:M,default:c,name:"Select"}),N=i.useRef(null),F=i.useRef(null),[z,$]=i.useState(null),{current:W}=i.useRef(null!=M),[B,G]=i.useState(),H=Xi(t,g),V=i.useCallback((e=>{F.current=e,e&&$(e)}),[]),U=null==z?void 0:z.parentNode;i.useImperativeHandle(H,(()=>({focus:()=>{F.current.focus()},node:N.current,value:O})),[O]),i.useEffect((()=>{c&&q&&z&&!W&&(G(s?null:U.clientWidth),F.current.focus())}),[z,s]),i.useEffect((()=>{a&&F.current.focus()}),[a]),i.useEffect((()=>{if(!b)return;const e=Wi(F.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),W||(G(s?null:U.clientWidth),j(e))},K=i.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(T(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}y||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete _["aria-invalid"];const ee=[];let te=!1;(vu({value:O})||f)&&(I?Z=I(O):te=!0);const re=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(y){if(!Array.isArray(O))throw new Error(Ie(2));t=O.some((t=>Cp(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Cp(O,e.props.value),t&&te&&(Q=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!s&&W&&z&&(oe=U.clientWidth),ne=void 0!==L?L:p?null:0;const ie=k.id||(x?`mui-component-select-${x}`:void 0),ae=Pe({},e,{variant:D,value:O,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return da({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${$n(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},gp,t)})(ae),le=Pe({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=Ui();return Zo.jsxs(i.Fragment,{children:[Zo.jsx(xp,Pe({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||A?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:E},k,{ownerState:ae,className:sl(k.className,se.select,u),id:ie,children:Ep(Z)?vp||(vp=Zo.jsx("span",{className:"notranslate",children:""})):Z})),Zo.jsx(wp,Pe({"aria-invalid":h,value:Array.isArray(O)?O.join(","):O,name:x,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},_)),Zo.jsx(Sp,{as:m,className:se.icon,ownerState:ae}),Zo.jsx(Ud,Pe({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Pe({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Pe({},v.slotProps,{paper:Pe({},le,{style:Pe({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Mp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ap=["root"],Ip={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>tl(e)&&"variant"!==e,slot:"Root"},kp=rl(Jc,Ip)(""),Lp=rl(mp,Ip)(""),Pp=rl(Wc,Ip)(""),Dp=i.forwardRef((function(e,t){const r=ll({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ou,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=De(r,Mp),M=v?ap:Rp,A=fu({props:r,muiFormControl:mu(),states:["variant","error"]}),I=A.variant||E,k=Pe({},r,{variant:I,classes:a}),L=(e=>{const{classes:t}=e;return t})(k),P=De(L,Ap),D=p||{standard:Zo.jsx(kp,{ownerState:k}),outlined:Zo.jsx(Lp,{label:h,ownerState:k}),filled:Zo.jsx(Pp,{ownerState:k})}[I],_=Xi(t,ba(D));return Zo.jsx(i.Fragment,{children:i.cloneElement(D,Pe({inputComponent:M,inputProps:Pe({children:o,error:A.error,IconComponent:c,variant:I,type:void 0,multiple:b},v?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Pe({id:d},C)},f,{classes:f?Dn(P,f.classes):P},p?p.props.inputProps:{})},(b&&v||u)&&"outlined"===I?{notched:!0}:{},{ref:_,className:sl(D.props.className,s,L.root)},!p&&{variant:I},R))})}));function _p(e,t){return function(){return null}}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Op.apply(null,arguments)}function Tp(e){return Tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tp(e)}function qp(e){return e&&"object"===Tp(e)&&e.constructor===Object}function jp(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Op({},e):e;return qp(e)&&qp(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(qp(t[o])&&o in e?n[o]=jp(e[o],t[o],r):n[o]=t[o])})),n}Dp.muiName="Select";var Np=(Sn.element,function(){return null});Np.isRequired=(Sn.element.isRequired,function(){return null});var Fp=function(){return null};function zp(e){var t=function(e,t){if("object"!=Tp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Tp(t)?t:t+""}function $p(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var Wp={exports:{}},Bp={},Gp=60103,Hp=60106,Vp=60107,Up=60108,Yp=60114,Kp=60109,Xp=60110,Jp=60112,Zp=60113,Qp=60120,ef=60115,tf=60116,rf=60121,nf=60122,of=60117,af=60129,sf=60131;if("function"==typeof Symbol&&Symbol.for){var lf=Symbol.for;Gp=lf("react.element"),Hp=lf("react.portal"),Vp=lf("react.fragment"),Up=lf("react.strict_mode"),Yp=lf("react.profiler"),Kp=lf("react.provider"),Xp=lf("react.context"),Jp=lf("react.forward_ref"),Zp=lf("react.suspense"),Qp=lf("react.suspense_list"),ef=lf("react.memo"),tf=lf("react.lazy"),rf=lf("react.block"),nf=lf("react.server.block"),of=lf("react.fundamental"),af=lf("react.debug_trace_mode"),sf=lf("react.legacy_hidden")}function uf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Gp:switch(e=e.type){case Vp:case Yp:case Up:case Zp:case Qp:return e;default:switch(e=e&&e.$$typeof){case Xp:case Jp:case tf:case ef:case Kp:return e;default:return t}}case Hp:return t}}}var cf=Kp,df=Gp,pf=Jp,ff=Vp,hf=tf,mf=ef,gf=Hp,bf=Yp,vf=Up,yf=Zp;Bp.ContextConsumer=Xp,Bp.ContextProvider=cf,Bp.Element=df,Bp.ForwardRef=pf,Bp.Fragment=ff,Bp.Lazy=hf,Bp.Memo=mf,Bp.Portal=gf,Bp.Profiler=bf,Bp.StrictMode=vf,Bp.Suspense=yf,Bp.isAsyncMode=function(){return!1},Bp.isConcurrentMode=function(){return!1},Bp.isContextConsumer=function(e){return uf(e)===Xp},Bp.isContextProvider=function(e){return uf(e)===Kp},Bp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Gp},Bp.isForwardRef=function(e){return uf(e)===Jp},Bp.isFragment=function(e){return uf(e)===Vp},Bp.isLazy=function(e){return uf(e)===tf},Bp.isMemo=function(e){return uf(e)===ef},Bp.isPortal=function(e){return uf(e)===Hp},Bp.isProfiler=function(e){return uf(e)===Yp},Bp.isStrictMode=function(e){return uf(e)===Up},Bp.isSuspense=function(e){return uf(e)===Zp},Bp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vp||e===Yp||e===af||e===Up||e===Zp||e===Qp||e===sf||"object"==typeof e&&null!==e&&(e.$$typeof===tf||e.$$typeof===ef||e.$$typeof===Kp||e.$$typeof===Xp||e.$$typeof===Jp||e.$$typeof===of||e.$$typeof===rf||e[0]===nf)},Bp.typeOf=uf,Wp.exports=Bp;var xf=Wp.exports,Sf=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function wf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Sf);return t&&t[1]||""}(e)||t}function Cf(e,t,r){var n=wf(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Ef="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rf=Sn.oneOfType([Sn.func,Sn.object]),Mf=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:_p,deepmerge:jp,elementAcceptingRef:Np,elementTypeAcceptingRef:Fp,exactProp:function(e){return e},formatMuiErrorMessage:$p,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return wf(e,"Component");if("object"===Tp(e))switch(e.$$typeof){case xf.ForwardRef:return Cf(e,e.render,"ForwardRef");case xf.Memo:return Cf(e,e.type,"memo");default:return}}},ponyfillGlobal:Ef,refType:Rf});function Af(e){if(e.type)return e;if("#"===e.charAt(0))return Af(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error($p(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function If(e,t){return e=Af(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function kf(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function Lf(e,t){if(null==e)return{};var r,n,o=kf(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Pf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Df(e,t){if(e){if("string"==typeof e)return Pf(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pf(e,t):void 0}}function _f(e){return function(e){if(Array.isArray(e))return Pf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Df(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Of(e,t){return t?jp(e,t,{clone:!1}):e}var Tf={xs:0,sm:600,md:960,lg:1280,xl:1920},qf={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Tf[e],"px)")}};function jf(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||qf;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Tp(t)){var o=e.theme.breakpoints||qf;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Nf(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Ff(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Nf(e.theme,o)||{};return jf(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Nf(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=zp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function zf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?Of(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function $f(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Wf=Ff({prop:"border",themeKey:"borders",transform:$f}),Bf=Ff({prop:"borderTop",themeKey:"borders",transform:$f}),Gf=Ff({prop:"borderRight",themeKey:"borders",transform:$f}),Hf=Ff({prop:"borderBottom",themeKey:"borders",transform:$f}),Vf=Ff({prop:"borderLeft",themeKey:"borders",transform:$f}),Uf=Ff({prop:"borderColor",themeKey:"palette"}),Yf=Ff({prop:"borderRadius",themeKey:"shape"}),Kf=zf(Wf,Bf,Gf,Hf,Vf,Uf,Yf);function Xf(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Jf(e){var t=function(t){var r=e(t);return t.css?Op({},Of(r,e(Op({theme:t.theme},t.css))),Xf(t.css,[e.filterProps])):t.sx?Op({},Of(r,e(Op({theme:t.theme},t.sx))),Xf(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(_f(e.filterProps)),t}var Zf=zf(Ff({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Ff({prop:"display"}),Ff({prop:"overflow"}),Ff({prop:"textOverflow"}),Ff({prop:"visibility"}),Ff({prop:"whiteSpace"})),Qf=Ff({prop:"flexBasis"}),eh=Ff({prop:"flexDirection"}),th=Ff({prop:"flexWrap"}),rh=Ff({prop:"justifyContent"}),nh=Ff({prop:"alignItems"}),oh=Ff({prop:"alignContent"}),ih=Ff({prop:"order"}),ah=Ff({prop:"flex"}),sh=Ff({prop:"flexGrow"}),lh=Ff({prop:"flexShrink"}),uh=Ff({prop:"alignSelf"}),ch=Ff({prop:"justifyItems"}),dh=Ff({prop:"justifySelf"}),ph=zf(Qf,eh,th,rh,nh,oh,ih,ah,sh,lh,uh,ch,dh),fh=Ff({prop:"gridGap"}),hh=Ff({prop:"gridColumnGap"}),mh=Ff({prop:"gridRowGap"}),gh=Ff({prop:"gridColumn"}),bh=Ff({prop:"gridRow"}),vh=Ff({prop:"gridAutoFlow"}),yh=Ff({prop:"gridAutoColumns"}),xh=Ff({prop:"gridAutoRows"}),Sh=Ff({prop:"gridTemplateColumns"}),wh=Ff({prop:"gridTemplateRows"}),Ch=Ff({prop:"gridTemplateAreas"}),Eh=Ff({prop:"gridArea"}),Rh=zf(fh,hh,mh,gh,bh,vh,yh,xh,Sh,wh,Ch,Eh),Mh=Ff({prop:"color",themeKey:"palette"}),Ah=Ff({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Ih=zf(Mh,Ah),kh=Ff({prop:"position"}),Lh=Ff({prop:"zIndex",themeKey:"zIndex"}),Ph=Ff({prop:"top"}),Dh=Ff({prop:"right"}),_h=Ff({prop:"bottom"}),Oh=Ff({prop:"left"}),Th=zf(kh,Lh,Ph,Dh,_h,Oh),qh=Ff({prop:"boxShadow",themeKey:"shadows"});function jh(e){return e<=1?"".concat(100*e,"%"):e}var Nh=Ff({prop:"width",transform:jh}),Fh=Ff({prop:"maxWidth",transform:jh}),zh=Ff({prop:"minWidth",transform:jh}),$h=Ff({prop:"height",transform:jh}),Wh=Ff({prop:"maxHeight",transform:jh}),Bh=Ff({prop:"minHeight",transform:jh}),Gh=Ff({prop:"size",cssProperty:"width",transform:jh}),Hh=Ff({prop:"size",cssProperty:"height",transform:jh}),Vh=Ff({prop:"boxSizing"}),Uh=zf(Nh,Fh,zh,$h,Wh,Bh,Vh);function Yh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Df(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kh={m:"margin",p:"padding"},Xh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Zh=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!Jh[e])return[e];e=Jh[e]}var t=Yh(e.split(""),2),r=t[0],n=t[1],o=Kh[r],i=Xh[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Qh=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function em(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function tm(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function rm(e){var t=em(e.theme);return Object.keys(e).map((function(r){if(-1===Qh.indexOf(r))return null;var n=tm(Zh(r),t),o=e[r];return jf(e,o,n)})).reduce(Of,{})}rm.propTypes={},rm.filterProps=Qh;var nm=Ff({prop:"fontFamily",themeKey:"typography"}),om=Ff({prop:"fontSize",themeKey:"typography"}),im=Ff({prop:"fontStyle",themeKey:"typography"}),am=Ff({prop:"fontWeight",themeKey:"typography"}),sm=Ff({prop:"letterSpacing"}),lm=Ff({prop:"lineHeight"}),um=Ff({prop:"textAlign"}),cm=zf(nm,om,im,am,sm,lm,um),dm=Object.freeze({__proto__:null,alignContent:oh,alignItems:nh,alignSelf:uh,bgcolor:Ah,border:Wf,borderBottom:Hf,borderColor:Uf,borderLeft:Vf,borderRadius:Yf,borderRight:Gf,borderTop:Bf,borders:Kf,bottom:_h,boxSizing:Vh,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||qf,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Op({theme:t.theme},t[o]))),r}),null);return Of(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(_f(e.filterProps)),t},color:Mh,compose:zf,createUnarySpacing:em,css:function(e){return Jf(e)},display:Zf,flex:ah,flexBasis:Qf,flexDirection:eh,flexGrow:sh,flexShrink:lh,flexWrap:th,flexbox:ph,fontFamily:nm,fontSize:om,fontStyle:im,fontWeight:am,grid:Rh,gridArea:Eh,gridAutoColumns:yh,gridAutoFlow:vh,gridAutoRows:xh,gridColumn:gh,gridColumnGap:hh,gridGap:fh,gridRow:bh,gridRowGap:mh,gridTemplateAreas:Ch,gridTemplateColumns:Sh,gridTemplateRows:wh,height:$h,justifyContent:rh,justifyItems:ch,justifySelf:dh,left:Oh,letterSpacing:sm,lineHeight:lm,maxHeight:Wh,maxWidth:Fh,minHeight:Bh,minWidth:zh,order:ih,palette:Ih,position:kh,positions:Th,right:Dh,shadows:qh,sizeHeight:Hh,sizeWidth:Gh,sizing:Uh,spacing:rm,style:Ff,styleFunctionSx:Jf,textAlign:um,top:Ph,typography:cm,width:Nh,zIndex:Lh}),pm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",fm=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function hm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==fm.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[pm]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function mm(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bm="object"===("undefined"==typeof window?"undefined":gm(window))&&"object"===("undefined"==typeof document?"undefined":gm(document))&&9===document.nodeType;function vm(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Da(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ym={}.constructor;function xm(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(xm);if(e.constructor!==ym)return e;var t={};for(var r in e)t[r]=xm(e[r]);return t}function Sm(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=xm(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var wm=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Cm=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=wm(e[r]," ");else t=wm(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Em(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Rm(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Mm(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Em(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Rm(p+":"+u+Cm(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Rm(h+":"+u+Cm(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Rm(g+":"+u+Cm(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Rm(""+e+u+"{"+n,--i)+Rm("}",i)):n}var Am=/([[\].#*$><+~=|^:(),"'`\s])/g,Im="undefined"!=typeof CSS&&CSS.escape,km=function(e){return Im?Im(e):e.replace(Am,"\\$1")},Lm=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Pm=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Rl(Rl(o)),s),o.selectorText="."+km(o.id)),o}ml(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Cm(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?In({},e,{allowEmpty:!0}):e;return Mm(this.selectorText,this.style,r)},vm(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Lm),Dm={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Pm(e,t,r)}},_m={indent:1,children:!0},Om=/@([\w-]+)/,Tm=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Om);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ig(In({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=_m);var t=Em(e).linebreak;if(null==e.indent&&(e.indent=_m.indent),null==e.children&&(e.children=_m.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),qm=/@container|@media|@supports\s+/,jm={onCreateRule:function(e,t,r){return qm.test(e)?new Tm(e,t,r):null}},Nm={indent:1,children:!0},Fm=/@keyframes\s+([\w-]+)/,zm=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Fm);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:km(a(this,i)),this.rules=new ig(In({},r,{parent:this})),t)this.rules.add(s,t[s],In({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Nm);var t=Em(e).linebreak;if(null==e.indent&&(e.indent=Nm.indent),null==e.children&&(e.children=Nm.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),$m=/@keyframes\s+/,Wm=/\$([\w-]+)/g,Bm=function(e,t){return"string"==typeof e?e.replace(Wm,(function(e,r){return r in t?t[r]:e})):e},Gm=function(e,t,r){var n=e[t],o=Bm(n,r);o!==n&&(e[t]=o)},Hm={onCreateRule:function(e,t,r){return"string"==typeof e&&$m.test(e)?new zm(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Gm(e,"animation-name",r.keyframes),"animation"in e&&Gm(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Bm(e,n.keyframes);default:return e}}},Vm=function(e){function t(){return e.apply(this,arguments)||this}return ml(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?In({},e,{allowEmpty:!0}):e;return Mm(this.key,this.style,r)},t}(Lm),Um={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Vm(e,t,r):null}},Ym=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Em(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Mm(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Mm(this.at,this.style,e)},e}(),Km=/@font-face/,Xm={onCreateRule:function(e,t,r){return Km.test(e)?new Ym(e,t,r):null}},Jm=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Mm(this.key,this.style,e)},e}(),Zm={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Jm(e,t,r):null}},Qm=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),eg={"@charset":!0,"@import":!0,"@namespace":!0},tg={onCreateRule:function(e,t,r){return e in eg?new Qm(e,t,r):null}},rg=[Dm,jm,Hm,Um,Xm,Zm,tg],ng={process:!0},og={force:!0,process:!0},ig=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=In({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+km(this.classes[d]));var p=Sm(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=In({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Pm?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof zm&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Pm?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof zm&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ng);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,og)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,og)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Em(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),ag=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=In({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ig(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),sg=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),lg=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=kn(t,["attached"]),o=Em(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},vm(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ug=new lg,cg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dg="2f1acc6c3a606b082e5eef5e54414ffb";null==cg[dg]&&(cg[dg]=0);var pg=cg[dg]++,fg=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+pg+o+t:i+r.key+"-"+pg+(o?"-"+o:"")+"-"+t}},hg=function(e){var t;return function(){return t||(t=e()),t}},mg=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gg=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Cm(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},bg=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vg=function(e,t){return e.selectorText=t,e.selectorText===t},yg=hg((function(){return document.querySelector("head")}));function xg(e){var t=ug.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=yg(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Sg=hg((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),wg=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Cg=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Eg=function(){function e(e){this.getPropertyValue=mg,this.setProperty=gg,this.removeProperty=bg,this.setSelector=vg,this.hasInsertedRules=!1,this.cssRules=[],e&&ug.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Sg();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=xg(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else yg().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Cg(r,t);if(!1===(o=wg(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Cg(r,t),l=wg(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ag&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Rg=0,Mg=function(){function e(e){this.id=Rg++,this.version="10.10.0",this.plugins=new sg,this.options={id:{minify:!1},createGenerateId:fg,Renderer:bm?Eg:null,plugins:[]},this.generateId=fg({minify:!1});for(var t=0;t<rg.length;t++)this.plugins.use(rg[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=In({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ug.index?0:ug.index+1);var n=new ag(e,In({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ug.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=In({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Sm(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ag=function(e){return new Mg(e)},Ig="object"==typeof CSS&&null!=CSS&&"number"in CSS;function kg(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=kg(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
88
|
+
`),Js.rippleVisible,ol,550,({theme:e})=>e.transitions.easing.easeInOut,Js.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Js.child,Js.childLeaving,il,550,({theme:e})=>e.transitions.easing.easeInOut,Js.childPulsate,al,({theme:e})=>e.transitions.easing.easeInOut),ul=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=ke(r,Zs),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=i.useRef(!1),f=Vi(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;u(e=>[...e,Zo.jsx(ll,{classes:{ripple:si(o.ripple,Js.ripple),rippleVisible:si(o.rippleVisible,Js.rippleVisible),ripplePulsate:si(o.ripplePulsate,Js.ripplePulsate),child:si(o.child,Js.child),childLeaving:si(o.childLeaving,Js.childLeaving),childPulsate:si(o.childPulsate,Js.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=i.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},[n,g,f]),y=i.useCallback(()=>{v({},{pulsate:!0})},[v]),b=i.useCallback((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,()=>{b(e,t)});h.current=null,u(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return i.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),Zo.jsx(sl,Ae({className:si(Js.root,o.root,a),ref:m},s,{children:Zo.jsx(Vs,{component:null,exit:!0,children:l})}))});function cl(e){return ci("MuiButtonBase",e)}const dl=di("MuiButtonBase",["root","disabled","focusVisible"]),pl=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],fl=ys("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),hl=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:M,tabIndex:P=0,TouchRippleProps:R,touchRippleRef:L,type:A}=r,k=ke(r,pl),T=i.useRef(null),O=i.useRef(null),q=zi(O,L),{isFocusVisibleRef:_,onFocus:j,onBlur:N,ref:F}=Qi(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(n,()=>({focusVisible:()=>{W(!0),T.current.focus()}}),[]);const[$,H]=i.useState(!1);i.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,r=d){return Fi(n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0})}i.useEffect(()=>{z&&p&&!c&&$&&O.current.pulsate()},[c,p,z,$]);const G=B("start",w),U=B("stop",g),Y=B("stop",v),K=B("stop",E),X=B("stop",e=>{z&&e.preventDefault(),C&&C(e)}),J=B("start",M),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{N(e),!1===_.current&&W(!1),h&&h(e)},!1),te=Fi(e=>{T.current||(T.current=e.currentTarget),j(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)}),re=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=Fi(e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),ie=Fi(e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(k.href||k.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=u):(k.href||k.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=zi(t,F,T),ue=Ae({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ta({root:["root",t&&"disabled",r&&"focusVisible"]},cl,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Zo.jsxs(fl,Ae({as:ae,className:si(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:P,type:A},se,k,{children:[a,V?Zo.jsx(ul,Ae({ref:q,center:o},R)):null]}))});function ml(e){return ci("MuiTypography",e)}di("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gl=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vl=ys("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Gn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ae({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),yl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bl={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xl=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiTypography"}),n=(e=>bl[e]||e)(r.color),o=ri(Ae({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=yl}=o,f=ke(o,gl),h=Ae({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||yl[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ta({root:["root",i,"inherit"!==e.align&&`align${Gn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ml,a)})(h);return Zo.jsx(vl,Ae({as:m,ref:t,ownerState:h,className:si(g.root,a)},f))});const Sl=i.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=zi(i.isValidElement(r)?sa(r):null,t);if(Ii(()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ii(()=>{if(a&&!o)return Oi(t,a),()=>{Oi(t,null)}},[t,a,o]),o){if(i.isValidElement(r)){const e={ref:l};return i.cloneElement(r,e)}return Zo.jsx(i.Fragment,{children:r})}return Zo.jsx(i.Fragment,{children:a?E.createPortal(r,a):a})}),wl=["onChange","maxRows","minRows","style","value"];function Cl(e){return parseInt(e,10)||0}const El={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Il(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Dl=i.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:s}=e,l=ke(e,wl),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=zi(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback(()=>{const t=c.current,r=f.current;if(!t||!r)return;const i=Ti(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Cl(i.paddingBottom)+Cl(i.paddingTop),l=Cl(i.borderBottomWidth)+Cl(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[n,o,e.placeholder]),m=Fi(()=>{const e=c.current,t=h();if(!e||!t||Il(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r}),g=i.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Il(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=i.useRef(-1);Ii(()=>{const e=Ai(g),t=null==c?void 0:c.current;if(!t)return;const r=Ti(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[h,g,m]),Ii(()=>{g()});return Zo.jsxs(i.Fragment,{children:[Zo.jsx("textarea",Ae({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:a},l)),Zo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Ae({},El,a,{paddingTop:0,paddingBottom:0})})]})});function Ml({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Pl=i.createContext(void 0);function Rl(){return i.useContext(Pl)}function Ll(e){return Zo.jsx(ei,Ae({},e,{defaultTheme:Qa,themeId:Le}))}function Al(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kl(e,t=!1){return e&&(Al(e.value)&&""!==e.value||t&&Al(e.defaultValue)&&""!==e.defaultValue)}function Tl(e){return ci("MuiInputBase",e)}const Ol=di("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ql=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],_l=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Gn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jl=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Nl=ys("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_l})(({theme:e,ownerState:t})=>Ae({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ol.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ae({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fl=ys("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jl})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Ae({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Ae({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ol.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ol.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),zl=Zo.jsx(Ll,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Wl=i.forwardRef(function(e,t){var r;const n=ws({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:M,onKeyDown:P,onKeyUp:R,placeholder:L,readOnly:A,renderSuffix:k,rows:T,slotProps:O={},slots:q={},startAdornment:_,type:j="text",value:N}=n,F=ke(n,ql),z=null!=y.value?y.value:N,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback(e=>{},[]),V=zi($,b,y.ref,H),[B,G]=i.useState(!1),U=Rl(),Y=Ml({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,i.useEffect(()=>{!U&&p&&B&&(G(!1),E&&E())},[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=i.useCallback(e=>{kl(e)?K&&K():X&&X()},[K,X]);Ii(()=>{W&&J({value:z})},[z,J,W]);i.useEffect(()=>{J($.current)},[]);let Z=v,Q=y;w&&"input"===Z&&(Q=Ae(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=Dl);i.useEffect(()=>{U&&U.setAdornedStart(Boolean(_))},[U,_]);const ee=Ae({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:_,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ta({root:["root",`color${Gn(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Gn(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Tl,t)})(ee),re=q.root||u.Root||Nl,ne=O.root||c.root||{},oe=q.input||u.Input||Fl;return Q=Ae({},Q,null!=(r=O.input)?r:c.input),Zo.jsxs(i.Fragment,{children:[!f&&zl,Zo.jsxs(re,Ae({},ne,!ra(re)&&{ownerState:Ae({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:si(te.root,ne.className,l,A&&"MuiInputBase-readOnly"),children:[_,Zo.jsx(Pl.Provider,{value:null,children:Zo.jsx(oe,Ae({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:A,required:Y.required,rows:T,value:z,onKeyDown:P,onKeyUp:R,type:j},Q,!ra(oe)&&{as:Z,ownerState:Ae({},ee,Q.ownerState)},{ref:V,className:si(te.input,Q.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||$.current;if(null==t)throw new Error(Pe(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(M&&M(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(Ae({},Y,{startAdornment:_})):null]}))]})});function $l(e){return ci("MuiInput",e)}const Hl=Ae({},Ol,di("MuiInput",["root","underline","input"]));function Vl(e){return ci("MuiOutlinedInput",e)}const Bl=Ae({},Ol,di("MuiOutlinedInput",["root","notchedOutline","input"]));function Gl(e){return ci("MuiFilledInput",e)}const Ul=Ae({},Ol,di("MuiFilledInput",["root","underline","input"]));var Yl=Ms(Zo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Kl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Xl={entering:{opacity:1},entered:{opacity:1}},Jl=i.forwardRef(function(e,t){const r=es(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=n,TransitionComponent:y=js}=e,b=ke(e,Kl),x=i.useRef(null),S=zi(x,sa(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w((e,t)=>{Bs(e);const n=Gs({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),I=w(d),D=w(m),M=w(e=>{const t=Gs({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)}),P=w(h);return Zo.jsx(y,Ae({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:M,onExited:P,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(s,Ae({style:Ae({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Xl[e],g,s.props.style),ref:S},t))}))});function Zl(e){return ci("MuiBackdrop",e)}di("MuiBackdrop",["root","invisible"]);const Ql=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],eu=ys("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Ae({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),tu=i.forwardRef(function(e,t){var r,n,o;const i=ws({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Jl,transitionDuration:g}=i,v=ke(i,Ql),y=Ae({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return ta({root:["root",r&&"invisible"]},Zl,t)})(y),x=null!=(r=f.root)?r:c.root;return Zo.jsx(m,Ae({in:p,timeout:g},v,{children:Zo.jsx(eu,Ae({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:si(b.root,s,null==x?void 0:x.className),ownerState:Ae({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),ru=di("MuiBox",["root"]),nu=Za(),ou=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=Ln("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(zo);return i.forwardRef(function(e,i){const s=Uo(r),l=ri(e),{className:u,component:c="div"}=l,d=ke(l,li);return Zo.jsx(a,Ae({as:c,ref:i,className:si(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Le,defaultTheme:nu,defaultClassName:ru.root,generateClassName:ii.generate});function iu(e){return ci("MuiButton",e)}const au=di("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),su=i.createContext({}),lu=i.createContext(void 0),uu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cu=e=>Ae({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),du=ys(hl,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Gn(r.color)}`],t[`size${Gn(r.size)}`],t[`${r.variant}Size${Gn(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ae({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ae({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ka.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ka.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ka.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${au.focusVisible}`]:Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${au.disabled}`]:Ae({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ka.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${au.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${au.disabled}`]:{boxShadow:"none"}}),pu=ys("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Gn(r.size)}`]]}})(({ownerState:e})=>Ae({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},cu(e))),fu=ys("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Gn(r.size)}`]]}})(({ownerState:e})=>Ae({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},cu(e))),hu=i.forwardRef(function(e,t){const r=i.useContext(su),n=i.useContext(lu),o=ws({props:Ei(r,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=o,x=ke(o,uu),S=Ae({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Ae({},a,ta({root:["root",i,`${i}${Gn(t)}`,`size${Gn(o)}`,`${i}Size${Gn(o)}`,`color${Gn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Gn(o)}`],endIcon:["icon","endIcon",`iconSize${Gn(o)}`]},iu,a))})(S),C=v&&Zo.jsx(pu,{className:w.startIcon,ownerState:S,children:v}),E=f&&Zo.jsx(fu,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return Zo.jsxs(du,Ae({ownerState:S,className:si(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:si(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function mu(e){return ci("PrivateSwitchBase",e)}di("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const gu=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],vu=ys(hl,{name:"MuiSwitchBase"})(({ownerState:e})=>Ae({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),yu=ys("input",{name:"MuiSwitchBase",shouldForwardProp:vs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bu=i.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,C=ke(e,gu),[E,I]=Ni({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Rl();let M=s;D&&void 0===M&&(M=D.disabled);const P="checkbox"===S||"radio"===S,R=Ae({},e,{checked:E,disabled:M,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return ta({root:["root",r&&"checked",n&&"disabled",o&&`edge${Gn(o)}`],input:["input"]},mu,t)})(R);return Zo.jsxs(vu,Ae({component:"span",className:si(L.root,i),centerRipple:!0,focusRipple:!l,disabled:M,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},ownerState:R,ref:t},C,{children:[Zo.jsx(yu,Ae({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:M,id:P?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:R,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))});var xu=Ms(Zo.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Su=Ms(Zo.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wu=Ms(Zo.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Cu(e){return ci("MuiCheckbox",e)}const Eu=di("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Iu=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Du=ys(bu,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Gn(r.size)}`],"default"!==r.color&&t[`color${Gn(r.color)}`]]}})(({theme:e,ownerState:t})=>Ae({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ka.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Eu.checked}, &.${Eu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Eu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Mu=Zo.jsx(Su,{}),Pu=Zo.jsx(xu,{}),Ru=Zo.jsx(wu,{}),Lu=i.forwardRef(function(e,t){var r,n;const o=ws({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Mu,color:s="primary",icon:l=Pu,indeterminate:u=!1,indeterminateIcon:c=Ru,inputProps:d,size:p="medium",className:f}=o,h=ke(o,Iu),m=u?c:l,g=u?c:a,v=Ae({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return Ae({},t,ta({root:["root",r&&"indeterminate",`color${Gn(n)}`,`size${Gn(o)}`]},Cu,t))})(v);return Zo.jsx(Du,Ae({type:"checkbox",inputProps:Ae({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:v,ref:t,className:si(y.root,f)},h,{classes:y}))});function Au(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ku(e){return parseInt(Ti(e).getComputedStyle(e).paddingRight,10)||0}function Tu(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Au(e,o)})}function Ou(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function qu(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ki(e);return t.body===e?Ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ea(ki(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ku(n)+e}px`;const t=ki(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ku(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=ki(n).body;else{const t=n.parentElement,r=Ti(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const _u=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ju(e){const t=[],r=[];return Array.from(e.querySelectorAll(_u)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Nu(){return!0}function Fu(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=ju,isEnabled:s=Nu,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=zi(sa(t),m),v=i.useRef(null);i.useEffect(()=>{l&&m.current&&(h.current=!r)},[r,l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ki(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ki(m.current),t=t=>{v.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Zo.jsxs(i.Fragment,{children:[Zo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Zo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const zu=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Au(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Tu(t,e.mount,e.modalRef,n,!0);const o=Ou(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ou(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=qu(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ou(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Au(e.modalRef,t),Tu(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Au(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Wu(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=zu,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=zi(m,p),[v,y]=i.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Fi(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ki(h.current).body;o.add(S(),e),m.current&&w()}),E=i.useCallback(()=>o.isTopModal(S()),[o]),I=Fi(e=>{h.current=e,e&&(d&&E()?w():m.current&&Au(m.current,x))}),D=i.useCallback(()=>{o.remove(S(),x)},[x,o]);i.useEffect(()=>()=>{D()},[D]),i.useEffect(()=>{d?C():b&&a||D()},[d,D,b,a,C]);const M=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=na(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Ae({},r,t);return Ae({role:"presentation"},n,{onKeyDown:M(n),ref:g})},getBackdropProps:(e={})=>Ae({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:Li(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:Li(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function $u(e){return ci("MuiModal",e)}di("MuiModal",["root","hidden","backdrop"]);const Hu=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Vu=ys("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ae({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Bu=ys(tu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gu=i.forwardRef(function(e,t){var r,n,o,a,s,l;const u=ws({name:"MuiModal",props:e}),{BackdropComponent:c=Bu,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:M,open:P,slotProps:R,slots:L}=u,A=ke(u,Hu),k=Ae({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:T,getBackdropProps:O,getTransitionProps:q,portalRef:_,isTopModal:j,exited:N,hasTransition:F}=Wu(Ae({},k,{rootRef:t})),z=Ae({},k,{exited:N}),W=(e=>{const{open:t,exited:r,classes:n}=e;return ta({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},$u,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:Vu,V=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?o:c,B=null!=(s=null==R?void 0:R.root)?s:y.root,G=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop,U=aa({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:T,additionalProps:{ref:t,as:g},ownerState:z,className:si(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=aa({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>O(Ae({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:si(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||P||F&&!N?Zo.jsx(Sl,{ref:_,container:m,disablePortal:w,children:Zo.jsxs(H,Ae({},U,{children:[!I&&c?Zo.jsx(V,Ae({},Y)):null,Zo.jsx(Fu,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:P,children:i.cloneElement(h,$)})]}))}):null});function Uu(e){return ci("MuiDivider",e)}const Yu=di("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ku=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xu=ys("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ae({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ka.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ae({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ae({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Ae({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ae({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ju=ys("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ae({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Zu=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=ke(r,Ku),h=Ae({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ta({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Uu,n)})(h);return Zo.jsx(Xu,Ae({as:a,className:si(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Zo.jsx(Ju,{className:m.wrapper,ownerState:h,children:o}):null}))});Zu.muiSkipListHighlight=!0;const Qu=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ec=ys(Nl,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._l(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ae({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ul.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ul.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ul.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ul.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ul.disabled}, .${Ul.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ul.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ae({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),tc=ys(Fl,{name:"MuiFilledInput",slot:"Input",overridesResolver:jl})(({theme:e,ownerState:t})=>Ae({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),rc=i.forwardRef(function(e,t){var r,n,o,i;const a=ws({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=ke(a,Qu),g=Ae({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return Ae({},t,ta({root:["root",!r&&"underline"],input:["input"]},Gl,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?_n(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:ec,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:tc;return Zo.jsx(Wl,Ae({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});rc.muiName="Input";const nc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oc(e){return`scale(${e}, ${e**2})`}const ic={entering:{opacity:1,transform:oc(1)},entered:{opacity:1,transform:"none"}},ac="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sc=i.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=js}=e,v=ke(e,nc),y=Vi(),b=i.useRef(),x=es(),S=i.useRef(null),w=zi(S,sa(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),I=C((e,t)=>{Bs(e);const{duration:r,delay:n,easing:o}=Gs({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:ac?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)}),D=C(u),M=C(f),P=C(e=>{const{duration:t,delay:r,easing:n}=Gs({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ac?o:.666*o,delay:ac?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=oc(.75),d&&d(e)}),R=C(p);return Zo.jsx(g,Ae({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:P,onExited:R,onExiting:M,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,Ae({style:Ae({opacity:0,transform:oc(.75),visibility:"exited"!==e||s?void 0:"hidden"},ic[e],h,o.props.style),ref:w},t))}))});sc.muiSupportAuto=!0;const lc=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],uc=ys(Nl,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._l(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ae({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Hl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Hl.disabled}, .${Hl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),cc=ys(Fl,{name:"MuiInput",slot:"Input",overridesResolver:jl})({}),dc=i.forwardRef(function(e,t){var r,n,o,i;const a=ws({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=ke(a,lc),v=(e=>{const{classes:t,disableUnderline:r}=e;return Ae({},t,ta({root:["root",!r&&"underline"],input:["input"]},$l,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?_n(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:uc,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:cc;return Zo.jsx(Wl,Ae({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function pc(e){return ci("MuiInputAdornment",e)}dc.muiName="Input";const fc=di("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var hc;const mc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gc=ys("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Gn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>Ae({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${fc.positionStart}&:not(.${fc.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),vc=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=ke(r,mc),p=Rl()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Ae({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return ta({root:["root",r&&"disablePointerEvents",o&&`position${Gn(o)}`,a,n&&"hiddenLabel",i&&`size${Gn(i)}`]},pc,t)})(h);return Zo.jsx(Pl.Provider,{value:null,children:Zo.jsx(gc,Ae({as:a,ownerState:h,className:si(m.root,o),ref:t},d,{children:"string"!=typeof n||l?Zo.jsxs(i.Fragment,{children:["start"===u?hc||(hc=Zo.jsx("span",{className:"notranslate",children:""})):null,n]}):Zo.jsx(xl,{color:"text.secondary",children:n})}))})});function yc(e){return ci("MuiLink",e)}const bc=di("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),xc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sc=({theme:e,ownerState:t})=>{const r=(e=>xc[e]||e)(t.color),n=Yn(e,`palette.${r}`,!1)||t.color,o=Yn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ka.alpha(n,.4)},wc=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Cc=ys(xl,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Gn(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Ae({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ae({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Sc({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bc.focusVisible}`]:{outline:"auto"}})),Ec=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=ke(r,wc),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=Qi(),[y,b]=i.useState(!1),x=zi(t,v),S=Ae({},r,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ta({root:["root",`underline${Gn(o)}`,"button"===r&&"button",n&&"focusVisible"]},yc,t)})(S);return Zo.jsx(Cc,Ae({color:o,className:si(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(xc).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),Ic=i.createContext({});function Dc(e){return ci("MuiList",e)}di("MuiList",["root","padding","dense","subheader"]);const Mc=["children","className","component","dense","disablePadding","subheader"],Pc=ys("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Ae({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Rc=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=ke(r,Mc),d=i.useMemo(()=>({dense:s}),[s]),p=Ae({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ta({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Dc,t)})(p);return Zo.jsx(Ic.Provider,{value:d,children:Zo.jsxs(Pc,Ae({as:a,className:si(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})});function Lc(e){return ci("MuiListItem",e)}const Ac=di("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),kc=di("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Tc(e){return ci("MuiListItemSecondaryAction",e)}di("MuiListItemSecondaryAction",["root","disableGutters"]);const Oc=["className"],qc=ys("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Ae({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),_c=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=ke(r,Oc),a=Ae({},r,{disableGutters:i.useContext(Ic).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return ta({root:["root",t&&"disableGutters"]},Tc,r)})(a);return Zo.jsx(qc,Ae({className:si(s.root,n),ownerState:a,ref:t},o))});_c.muiName="ListItemSecondaryAction";const jc=["className"],Nc=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Fc=ys("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Ae({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Ae({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${kc.root}`]:{paddingRight:48}},{[`&.${Ac.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ac.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ac.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ac.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ac.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),zc=ys("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Wc=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=r,E=ke(r.ContainerProps,jc),I=ke(r,Nc),D=i.useContext(Ic),M=i.useMemo(()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g}),[n,D.dense,h,g]),P=i.useRef(null);Ii(()=>{o&&P.current&&P.current.focus()},[o]);const R=i.Children.toArray(s),L=R.length&&(A=R[R.length-1],k=["ListItemSecondaryAction"],i.isValidElement(A)&&-1!==k.indexOf(null!=(T=A.type.muiName)?T:null==(O=A.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var A,k,T,O;const q=Ae({},r,{alignItems:n,autoFocus:o,button:a,dense:M.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),_=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ta({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Lc,n)})(q),j=zi(P,t),N=C.root||c.Root||Fc,F=w.root||d.root||{},z=Ae({className:si(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=si(Ac.focusVisible,b),W=hl),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),Zo.jsx(Ic.Provider,{value:M,children:Zo.jsxs(zc,Ae({as:p,className:si(_.container,f),ref:j,ownerState:q},E,{children:[Zo.jsx(N,Ae({},F,!ra(N)&&{as:W,ownerState:Ae({},q,F.ownerState)},z,{children:R})),R.pop()]}))})):Zo.jsx(Ic.Provider,{value:M,children:Zo.jsxs(N,Ae({},F,{as:W,ref:j},!ra(N)&&{ownerState:Ae({},q,F.ownerState)},z,{children:[R,x&&Zo.jsx(_c,{children:x})]}))})});function $c(e){return ci("MuiListItemIcon",e)}const Hc=di("MuiListItemIcon",["root","alignItemsFlexStart"]),Vc=["className"],Bc=ys("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Ae({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Gc=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=ke(r,Vc),a=Ae({},r,{alignItems:i.useContext(Ic).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return ta({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$c,r)})(a);return Zo.jsx(Bc,Ae({className:si(s.root,n),ownerState:a,ref:t},o))}),Uc=di("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Yc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Xc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Jc(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Zc(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Jc(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Qc=i.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=ke(e,Yc),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ii(()=>{n&&f.current.focus()},[n]),i.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ea(ki(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}}),[]);const m=zi(f,t);let g=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=i.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return Zo.jsx(Rc,Ae({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=ki(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Zc(t,n,u,l,Kc);else if("ArrowUp"===r)e.preventDefault(),Zc(t,n,u,l,Xc);else if("Home"===r)e.preventDefault(),Zc(t,null,u,l,Kc);else if("End"===r)e.preventDefault(),Zc(t,null,u,l,Xc);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Jc(n,o);o.previousKeyMatched&&(s||Zc(t,n,!1,l,Kc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))});function ed(e){return ci("MuiPopover",e)}di("MuiPopover",["root","paper"]);const td=["onEntering"],rd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],nd=["slotProps"];function od(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function id(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ad(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function sd(e){return"function"==typeof e?e():e}const ld=ys(Gu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ud=ys(Xs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),cd=i.forwardRef(function(e,t){var r,n,o;const a=ws({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=sc,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=ke(a.TransitionProps,td),M=ke(a,rd),P=null!=(r=null==x?void 0:x.paper)?r:y,R=i.useRef(),L=zi(R,P.ref),A=Ae({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return ta({root:["root"],paper:["paper"]},ed,t)})(A),T=i.useCallback(()=>{if("anchorPosition"===d)return c;const e=sd(l),t=(e&&1===e.nodeType?e:ki(R.current).body).getBoundingClientRect();return{top:t.top+od(t,u.vertical),left:t.left+id(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),O=i.useCallback(e=>({vertical:od(e,S.vertical),horizontal:id(e,S.horizontal)}),[S.horizontal,S.vertical]),q=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:ad(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Ti(sd(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ad(r)}},[l,d,T,O,g]),[_,j]=i.useState(v),N=i.useCallback(()=>{const e=R.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[q]);i.useEffect(()=>(I&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[l,I,N]);i.useEffect(()=>{v&&N()}),i.useImperativeHandle(s,()=>v?{updatePosition:()=>{N()}}:null,[v,N]),i.useEffect(()=>{if(!v)return;const e=Ai(()=>{N()}),t=Ti(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,N]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?ki(sd(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:ld,$=null!=(o=null==b?void 0:b.paper)?o:ud,H=aa({elementType:$,externalSlotProps:Ae({},P,{style:_?P.style:Ae({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:si(k.paper,null==P?void 0:P.className)}),V=aa({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:si(k.root,f)}),{slotProps:B}=V,G=ke(V,nd);return Zo.jsx(W,Ae({},G,!ra(W)&&{slotProps:B,disableScrollLock:I},{children:Zo.jsx(w,Ae({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},D,{children:Zo.jsx($,Ae({},H,{children:p}))}))}))});function dd(e){return ci("MuiMenu",e)}di("MuiMenu",["root","paper","list"]);const pd=["onEntering"],fd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],hd={vertical:"top",horizontal:"right"},md={vertical:"top",horizontal:"left"},gd=ys(cd,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vd=ys(ud,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yd=ys(Qc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),bd=i.forwardRef(function(e,t){var r,n;const o=ws({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=o,x=ke(o.TransitionProps,pd),S=ke(o,fd),w=(()=>{const e=i.useContext(fa);return null!=e&&e})(),C=Ae({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return ta({root:["root"],paper:["paper"],list:["list"]},dd,t)})(C),I=a&&!u&&p,D=i.useRef(null);let M=-1;i.Children.map(s,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===M)&&(M=t))});const P=null!=(r=y.paper)?r:vd,R=null!=(n=b.paper)?n:f,L=aa({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=aa({elementType:P,externalSlotProps:R,ownerState:C,className:E.paper});return Zo.jsx(gd,Ae({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?hd:md,slots:{paper:P,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:Ae({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:Zo.jsx(yd,Ae({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===M||u),autoFocusItem:I,variant:v},c,{className:si(E.list,c.className),children:s}))}))});function xd(e){return ci("MuiMenuItem",e)}const Sd=di("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Cd=ys(hl,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Ae({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Sd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Sd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ka.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Sd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yu.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yu.inset}`]:{marginLeft:52},[`& .${Uc.root}`]:{marginTop:0,marginBottom:0},[`& .${Uc.inset}`]:{paddingLeft:36},[`& .${Hc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ae({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hc.root} svg`]:{fontSize:"1.25rem"}}))),Ed=i.forwardRef(function(e,t){const r=ws({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=ke(r,wd),h=i.useContext(Ic),m=i.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=i.useRef(null);Ii(()=>{n&&g.current&&g.current.focus()},[n]);const v=Ae({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Ae({},a,ta({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},xd,a))})(r),b=zi(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Zo.jsx(Ic.Provider,{value:m,children:Zo.jsx(Cd,Ae({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:si(y.focusVisible,u),className:si(y.root,p)},f,{ownerState:v,classes:y}))})});function Id(e){return ci("MuiNativeSelect",e)}const Dd=di("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Md=["className","disabled","error","IconComponent","inputRef","variant"],Pd=({ownerState:e,theme:t})=>Ae({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ae({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Dd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Rd=ys("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vs,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Dd.multiple}`]:t.multiple}]}})(Pd),Ld=({ownerState:e,theme:t})=>Ae({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Dd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Ad=ys("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Gn(r.variant)}`],r.open&&t.iconOpen]}})(Ld),kd=i.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=ke(e,Md),c=Ae({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ta({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Gn(r)}`,i&&"iconOpen",n&&"disabled"]},Id,t)})(c);return Zo.jsxs(i.Fragment,{children:[Zo.jsx(Rd,Ae({ownerState:c,className:si(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Zo.jsx(Ad,{as:a,ownerState:c,className:d.icon})]})});var Td;const Od=["children","classes","className","label","notched"],qd=ys("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:vs})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),_d=ys("legend",{name:"MuiNotchedOutlined",shouldForwardProp:vs})(({ownerState:e,theme:t})=>Ae({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ae({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const jd=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Nd=ys(Nl,{shouldForwardProp:e=>vs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_l})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ae({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Bl.focused} .${Bl.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bl.error} .${Bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bl.disabled} .${Bl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ae({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),Fd=ys(function(e){const{className:t,label:r,notched:n}=e,o=ke(e,Od),i=null!=r&&""!==r,a=Ae({},e,{notched:n,withLabel:i});return Zo.jsx(qd,Ae({"aria-hidden":!0,className:t,ownerState:a},o,{children:Zo.jsx(_d,{ownerState:a,children:i?Zo.jsx("span",{children:r}):Td||(Td=Zo.jsx("span",{className:"notranslate",children:""}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),zd=ys(Fl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jl})(({theme:e,ownerState:t})=>Ae({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Wd=i.forwardRef(function(e,t){var r,n,o,a,s;const l=ws({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=ke(l,jd),y=(e=>{const{classes:t}=e;return Ae({},t,ta({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vl,t))})(l),b=Rl(),x=Ml({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Ae({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(r=null!=(n=m.root)?n:u.Root)?r:Nd,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:zd;return Zo.jsx(Wl,Ae({slots:{root:w,input:C},renderSuffix:e=>Zo.jsx(Fd,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=Zo.jsxs(i.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:Ae({},y,{notchedOutline:null})}))});function $d(e){return ci("MuiSelect",e)}Wd.muiName="Input";const Hd=di("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vd;const Bd=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Gd=ys("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hd.select}`]:t.select},{[`&.${Hd.select}`]:t[r.variant]},{[`&.${Hd.error}`]:t.error},{[`&.${Hd.multiple}`]:t.multiple}]}})(Pd,{[`&.${Hd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ud=ys("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Gn(r.variant)}`],r.open&&t.iconOpen]}})(Ld),Yd=ys("input",{shouldForwardProp:e=>gs(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kd(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Xd(e){return null==e||"string"==typeof e&&!e.trim()}const Jd=i.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:M,renderValue:P,SelectDisplayProps:R={},tabIndex:L,value:A,variant:k="standard"}=e,T=ke(e,Bd),[O,q]=Ni({controlled:A,default:d,name:"Select"}),[_,j]=Ni({controlled:D,default:c,name:"Select"}),N=i.useRef(null),F=i.useRef(null),[z,W]=i.useState(null),{current:$}=i.useRef(null!=D),[H,V]=i.useState(),B=zi(t,g),G=i.useCallback(e=>{F.current=e,e&&W(e)},[]),U=null==z?void 0:z.parentNode;i.useImperativeHandle(B,()=>({focus:()=>{F.current.focus()},node:N.current,value:O}),[O]),i.useEffect(()=>{c&&_&&z&&!$&&(V(s?null:U.clientWidth),F.current.focus())},[z,s]),i.useEffect(()=>{a&&F.current.focus()},[a]),i.useEffect(()=>{if(!v)return;const e=ki(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[v]);const Y=(e,t)=>{e?I&&I(t):C&&C(t),$||(V(s?null:U.clientWidth),j(e))},K=i.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(kl({value:O})||f)&&(P?Z=P(O):te=!0);const re=K.map(e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(O))throw new Error(Pe(2));t=O.some(t=>Kd(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Kd(O,e.props.value),t&&te&&(Q=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=H;!s&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:p?null:0;const ie=R.id||(x?`mui-component-select-${x}`:void 0),ae=Ae({},e,{variant:k,value:O,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ta({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Gn(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},$d,t)})(ae),le=Ae({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=ji();return Zo.jsxs(i.Fragment,{children:[Zo.jsx(Gd,Ae({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||M?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:si(R.className,se.select,u),id:ie,children:Xd(Z)?Vd||(Vd=Zo.jsx("span",{className:"notranslate",children:""})):Z})),Zo.jsx(Yd,Ae({"aria-invalid":h,value:Array.isArray(O)?O.join(","):O,name:x,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},T)),Zo.jsx(Ud,{as:m,className:se.icon,ownerState:ae}),Zo.jsx(bd,Ae({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:Ae({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:Ae({},y.slotProps,{paper:Ae({},le,{style:Ae({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Zd=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Qd=["root"],ep={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>vs(e)&&"variant"!==e,slot:"Root"},tp=ys(dc,ep)(""),rp=ys(Wd,ep)(""),np=ys(rc,ep)(""),op=i.forwardRef(function(e,t){const r=ws({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Yl,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,I=ke(r,Zd),D=y?kd:Jd,M=Ml({props:r,muiFormControl:Rl(),states:["variant","error"]}),P=M.variant||E,R=Ae({},r,{variant:P,classes:a}),L=(e=>{const{classes:t}=e;return t})(R),A=ke(L,Qd),k=p||{standard:Zo.jsx(tp,{ownerState:R}),outlined:Zo.jsx(rp,{label:h,ownerState:R}),filled:Zo.jsx(np,{ownerState:R})}[P],T=zi(t,sa(k));return Zo.jsx(i.Fragment,{children:i.cloneElement(k,Ae({inputComponent:D,inputProps:Ae({children:o,error:M.error,IconComponent:c,variant:P,type:void 0,multiple:v},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Ae({id:d},C)},f,{classes:f?_n(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===P?{notched:!0}:{},{ref:T,className:si(k.props.className,s,L.root)},!p&&{variant:P},I))})});op.muiName="Select";const ip={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},ap={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ip,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},sp=12,lp=14,up=16,cp=24,dp=3,pp=300,fp=400,hp=600,mp=700,gp={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function vp(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var yp=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Zo.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function bp(e={}){return Zo.jsx(yp,{...e,children:Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Zo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Zo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function xp(e={}){return Zo.jsx(yp,{fontSize:"medium",...e,children:Zo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Zo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Sp(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function wp(e={}){return Zo.jsx(yp,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Zo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Zo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Cp(e={}){return Zo.jsx(yp,{fontSize:"medium",...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ep({className:e}){return Zo.jsx(yp,{fontSize:"small",className:e,children:Zo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Zo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Zo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Zo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Ip(e={}){return Zo.jsx(yp,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("rect",{stroke:ap.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Dp={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Mp=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ap.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ap.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(vp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${ap.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ap.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ap.MISC_FOCUS_BORDER}`,borderRadius:dp,backgroundColor:ap.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${ap.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ap.WHITE,color:ap.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:dp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ap.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ap.GREYSCALE_0_15,backgroundColor:ap.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ap.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ap.GREEN_PALE},"&:active":{backgroundColor:ap.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ap.GREEN_PALE,boxShadow:`0 0 0 3px ${Ri(ap.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ap.BLUE_PALE},"&:active":{backgroundColor:ap.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ap.BLUE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ap.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ap.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ap.GREYSCALE_0_15,backgroundColor:ap.GREYSCALE_100_60,"&:active":{backgroundColor:ap.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ap.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ap.PURPLE,"&.Mui-focusVisible":{borderColor:ap.PURPLE,boxShadow:`0 0 0 3px ${Ri(ap.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ap.GREEN,"&.Mui-focusVisible":{borderColor:ap.GREEN,boxShadow:`0 0 0 3px ${Ri(ap.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ap.BLUE,"&.Mui-focusVisible":{borderColor:ap.BLUE,boxShadow:`0 0 0 3px ${Ri(ap.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ap.ORANGE,"&.Mui-focusVisible":{borderColor:ap.ORANGE,boxShadow:`0 0 0 3px ${Ri(ap.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ap.RED,"&.Mui-focusVisible":{borderColor:ap.RED,boxShadow:`0 0 0 3px ${Ri(ap.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ap.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ap.PURPLE_PALE},"&:active":{backgroundColor:ap.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ap.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ap.GREEN_PALE},"&:active":{backgroundColor:ap.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ap.GREEN_PALE,boxShadow:`0 0 0 3px ${Ri(ap.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ap.BLUE_PALE},"&:active":{backgroundColor:ap.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ap.BLUE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ap.ORANGE_PALE},"&:active":{backgroundColor:ap.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ap.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ap.RED_PALE},"&:active":{backgroundColor:ap.RED_DARK},"&.Mui-focusVisible":{borderColor:ap.RED_PALE,boxShadow:`0 0 0 3px ${Ri(ap.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:ap.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ap.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:dp,boxShadow:`inset 0 0 0 2px ${ap.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(Sp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sp,borderRadius:dp,color:ap.TEXT_PRIMARY,backgroundColor:ap.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ap.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ap.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ap.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ap.GREYSCALE_0_05,color:ap.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ap.GREEN,borderColor:ap.GREEN},"&.MuiChip-outlinedInfo":{color:ap.BLUE,borderColor:ap.BLUE},"&.MuiChip-outlinedWarning":{color:ap.ORANGE,borderColor:ap.ORANGE},"&.MuiChip-outlinedError":{color:ap.RED,borderColor:ap.RED}},outlined:{border:`solid 1px ${ap.GREYSCALE_0_15}`,backgroundColor:ap.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:dp,boxShadow:"none",backgroundColor:ap.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ap.GREEN,borderColor:ap.GREEN},outlinedSecondary:{color:ap.BLUE,borderColor:ap.BLUE},label:{fontFamily:gp.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(Sp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(vp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:dp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:dp,fontSize:lp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ap.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ap.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ap.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ap.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ap.GREYSCALE_0_05}}},popupIndicator:{borderRadius:dp,border:`solid 1px ${ap.GREYSCALE_0_15}`,color:ap.GREYSCALE_0_60,marginRight:0,width:cp,height:cp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ap.GREYSCALE_0_15}`},clearIndicator:{borderRadius:dp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ap.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ap.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ap.GREYSCALE_25,fontSize:sp,fontFamily:gp.FONT_FAMILY,fontWeight:hp,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ap.TEXT_PRIMARY},"&.Mui-error":{color:ap.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ap.TEXT_SECONDARY,content:"'(optional)'",fontWeight:fp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ap.TEXT_SECONDARY,content:"'(required)'",fontWeight:fp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lp,lineHeight:"16px",backgroundColor:ap.WHITE,borderRadius:dp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ap.GREYSCALE_0_05}`,borderColor:ap.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ap.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ap.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ap.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ap.RED}`,boxShadow:`0px 0px 0px 1px ${ap.RED}, inset 0 2px 0 0 ${ap.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ap.GREYSCALE_0_10}`,borderColor:ap.GREYSCALE_0_10,backgroundColor:ap.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ap.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ap.GREYSCALE_0_15,borderRadius:dp,boxShadow:`inset 0 2px 0 0 ${ap.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(vp,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:ap.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ap.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ap.GREYSCALE_0_03},"&:active":{backgroundColor:ap.GREYSCALE_0_10},"&:focus":{backgroundColor:ap.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ap.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ap.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ap.GREYSCALE_0_30,"&:hover":{backgroundColor:ap.GREYSCALE_0_0,borderColor:ap.GREYSCALE_0_15},"& ~svg":{color:ap.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ap.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:dp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ap.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ap.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ap.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sp,fontWeight:hp,color:ap.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:hp}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ap.GREYSCALE_0_15}, 0px 0px 0px 1px ${ap.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(Cp,{}),checkedIcon:Zo.jsx(xp,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ap.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ap.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ap.GREEN_PALE,boxShadow:`0 0 0 3px ${Ri(ap.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ap.BLUE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ap.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ap.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(Ip,{}),checkedIcon:Zo.jsx(bp,{}),indeterminateIcon:Zo.jsx(wp,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:dp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ap.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ap.GREYSCALE_0_55,color:ap.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:ap.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ap.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ap.GREYSCALE_0_55,"&:hover":{color:ap.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:ap.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ap.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lp,color:ap.TEXT_PRIMARY,lineHeight:"16px",fontWeight:hp},secondary:{fontSize:sp,color:ap.GREYSCALE_45,fontWeight:fp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ap.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sp,borderBottom:`solid 1px ${ap.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lp,color:ap.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ap.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ap.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ap.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:ap.RED}}},"&.Mui-focusVisible":{backgroundColor:ap.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:ap.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:ap.GREEN,height:"24px","&.Mui-disabled":{color:ap.GREYSCALE_0_15}},rail:{backgroundColor:ap.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ap.GREYSCALE_0_05}`,borderRadius:dp,boxShadow:`inset 0px 0px 0px 1px ${ap.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ap.GREYSCALE_0_05}`,borderRadius:dp},thumb:{height:"16px",width:"16px",borderRadius:dp,backgroundColor:ap.WHITE,boxShadow:`0px 1px 2px 0px ${ap.GREYSCALE_0_15}, 0px 0px 0px 1px ${ap.GREYSCALE_0_05}`,"&:hover":{borderRadius:dp,boxShadow:`0 2px 4px 0 ${ap.GREYSCALE_0_30}, 0 0 0 1px ${ap.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ap.GREYSCALE_0_15}, 0 0 0 1px ${ap.GREYSCALE_0_06}, 0 0 0 2px ${ap.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ap.GREYSCALE_0_15}, 0 0 0 1px ${ap.GREYSCALE_0_06}, 0 0 0 2px ${ap.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ap.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ap.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ap.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ap.GREYSCALE_0_15},markLabel:{color:ap.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ap.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ap.WHITE,color:ap.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:ap.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ap.GREEN_PALE,boxShadow:`0 0 0 3px ${Ri(ap.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ap.BLUE_PALE,boxShadow:`0 0 0 3px ${Ri(ap.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ap.GREYSCALE_0_15,borderRadius:dp},thumb:{height:"16px",width:"16px",borderRadius:dp,backgroundColor:ap.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:lp,fontWeight:hp,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ap.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ap.MISC_FOCUS_BORDER}`,backgroundColor:ap.GREYSCALE_0_03,borderRadius:dp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ap.GREYSCALE_25,"&.Mui-selected":{color:ap.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:dp,"&:hover":{backgroundColor:ap.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ap.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ap.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:dp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ap.GREYSCALE_0_05},"&:hover":{backgroundColor:ap.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ap.GREYSCALE_85}`,borderRight:`1px solid ${ap.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:hp,backgroundColor:ap.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:ap.GREYSCALE_98,borderBottom:`1px solid ${ap.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ap.GREYSCALE_85}`,borderTop:`1px solid ${ap.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ap.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ap.GREYSCALE_0_05,"&:hover":{backgroundColor:ap.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ap.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(Ep,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${ap.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lp,borderRadius:dp,padding:"7px 16px",border:`1px solid ${ap.GREYSCALE_0_15}`,backgroundColor:ap.GREYSCALE_100_60,color:ap.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ap.GREYSCALE_0_10,border:`1px solid ${ap.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ap.GREYSCALE_0_03,border:`1px solid ${ap.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ap.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ap.MISC_FOCUS_BORDER}`,border:`1px solid ${ap.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ap.GREYSCALE_25,backgroundColor:ap.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ap.GREYSCALE_0_10,border:`1px solid ${ap.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sp,height:24,width:24,padding:7},sizeLarge:{fontSize:up,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lp,borderRadius:dp}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:ap.GREYSCALE_20},tooltip:{backgroundColor:ap.GREYSCALE_20,fontSize:sp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Dp}:{}}),Pp=(e,t)=>Mp(t);var Rp=()=>({mode:"light",primary:{ultraLight:ap.GREEN_ULTRA_LIGHT,light:ap.GREEN_PALE,main:ap.GREEN,dark:ap.GREEN_DARK,extraDark:ap.GREEN_EXTRA_DARK,contrastText:ap.WHITE},secondary:{ultraLight:ap.BLUE_ULTRA_LIGHT,light:ap.BLUE_PALE,main:ap.BLUE,dark:ap.BLUE_DARK,extraDark:ap.BLUE_EXTRA_DARK,contrastText:ap.WHITE},error:{ultraLight:ap.RED_ULTRA_LIGHT,light:ap.RED_PALE,main:ap.RED,dark:ap.RED_DARK,extraDark:ap.RED_EXTRA_DARK,contrastText:ap.WHITE},warning:{ultraLight:ap.ORANGE_ULTRA_LIGHT,light:ap.ORANGE_PALE,main:ap.ORANGE,dark:ap.ORANGE_DARK,extraDark:ap.ORANGE_EXTRA_DARK,contrastText:ap.WHITE},success:{ultraLight:ap.GREEN_ULTRA_LIGHT,light:ap.GREEN_PALE,main:ap.GREEN,dark:ap.GREEN_DARK,extraDark:ap.GREEN_EXTRA_DARK,contrastText:ap.WHITE},info:{ultraLight:ap.BLUE_ULTRA_LIGHT,light:ap.BLUE_PALE,main:ap.BLUE,dark:ap.BLUE_DARK,extraDark:ap.BLUE_EXTRA_DARK,contrastText:ap.WHITE},text:{primary:ap.TEXT_PRIMARY,secondary:ap.TEXT_SECONDARY,disabled:ap.GREYSCALE_0_30},action:{hover:ap.GREYSCALE_0_03,hoverOpacity:.03,selected:ap.GREYSCALE_0_05,selectedOpacity:.05,focus:ap.MISC_FOCUS_BORDER},amethyst:{ultraLight:ap.WHITE,main:ap.PURPLE,light:ap.PURPLE_PALE,dark:ap.PURPLE_DARK,extraDark:ap.GREYSCALE_0_0,contrastText:ap.WHITE},background:{paper:ap.WHITE,default:ap.GREYSCALE_95},divider:ap.GREYSCALE_0_15});var Lp=e=>Rp();var Ap=(e,t=!1)=>({components:Pp(0,t),palette:Lp(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:lp,fontWeightLight:pp,fontWeightRegular:fp,fontWeightMedium:hp,fontWeightBold:mp,htmlFontSize:lp,fontFamily:gp.FONT_FAMILY,button:{fontWeight:hp,fontSize:lp,textTransform:"none"},body1:{fontSize:up,lineHeight:"24px"},body2:{fontSize:lp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:cp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:up,fontWeight:hp,lineHeight:"16px"},h6:{fontSize:lp,fontWeight:hp,lineHeight:"16px"},caption:{color:ap.TEXT_SECONDARY},subtitle1:{fontSize:lp,color:ap.TEXT_SECONDARY},subtitle2:{fontSize:sp,color:ap.TEXT_SECONDARY}},shape:{borderRadius:dp}});const kp={...ip};var Tp,Op,qp={},_p={exports:{}},jp={exports:{}};function Np(){return Tp||(Tp=1,function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jp)),jp.exports}var Fp={};function zp(e,t){return function(){return null}}function Wp(e){return e&&"object"===Sa(e)&&e.constructor===Object}function $p(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Ae({},e):e;return Wp(e)&&Wp(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Wp(t[o])&&o in e?n[o]=$p(e[o],t[o],r):n[o]=t[o])}),n}var Hp=(Mn.element,function(){return null});Hp.isRequired=(Mn.element.isRequired,function(){return null});var Vp=function(){return null};var Bp,Gp,Up={exports:{}},Yp={};var Kp=(Gp||(Gp=1,Up.exports=function(){if(Bp)return Yp;Bp=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),r=v("react.fragment"),n=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case r:case o:case n:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return f}}case t:return f}}}var b=i,x=e,S=s,w=r,C=d,E=c,I=t,D=o,M=n,P=l;return Yp.ContextConsumer=a,Yp.ContextProvider=b,Yp.Element=x,Yp.ForwardRef=S,Yp.Fragment=w,Yp.Lazy=C,Yp.Memo=E,Yp.Portal=I,Yp.Profiler=D,Yp.StrictMode=M,Yp.Suspense=P,Yp.isAsyncMode=function(){return!1},Yp.isConcurrentMode=function(){return!1},Yp.isContextConsumer=function(e){return y(e)===a},Yp.isContextProvider=function(e){return y(e)===i},Yp.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Yp.isForwardRef=function(e){return y(e)===s},Yp.isFragment=function(e){return y(e)===r},Yp.isLazy=function(e){return y(e)===d},Yp.isMemo=function(e){return y(e)===c},Yp.isPortal=function(e){return y(e)===t},Yp.isProfiler=function(e){return y(e)===o},Yp.isStrictMode=function(e){return y(e)===n},Yp.isSuspense=function(e){return y(e)===l},Yp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},Yp.typeOf=y,Yp}()),Up.exports),Xp=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Xp);return t&&t[1]||""}(e)||t}function Zp(e,t,r){var n=Jp(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Qp,ef="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),tf=Mn.oneOfType([Mn.func,Mn.object]),rf=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:zp,deepmerge:$p,elementAcceptingRef:Hp,elementTypeAcceptingRef:Vp,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Jp(e,"Component");if("object"===Sa(e))switch(e.$$typeof){case Kp.ForwardRef:return Zp(e,e.render,"ForwardRef");case Kp.Memo:return Zp(e,e.type,"memo");default:return}}},ponyfillGlobal:ef,refType:tf}),nf=_e(rf);function of(){if(Qp)return Fp;Qp=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.hexToRgb=r,Fp.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Fp.hslToRgb=n,Fp.decomposeColor=o,Fp.recomposeColor=i,Fp.getContrastRatio=function(e,t){var r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Fp.getLuminance=a,Fp.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Fp.fade=function(e,t){return s(e,t)},Fp.alpha=s,Fp.darken=l,Fp.lighten=u;var e=nf;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function r(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function n(e){var t=(e=o(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),i({type:u,values:c})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(r(t));var n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(n+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(n(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,r){return e=o(e),r=t(r),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=r,i(e)}function l(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]*=1-r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-r;return i(e)}function u(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*r;return i(e)}return Fp}var af,sf,lf,uf={},cf={exports:{}},df={exports:{}},pf={exports:{}};function ff(){return af||(af=1,function(e){var t=Np().default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(pf)),pf.exports}function hf(){return sf||(sf=1,function(e){var t=Np().default,r=ff();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(df)),df.exports}function mf(){return lf||(lf=1,function(e){var t=hf();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(cf)),cf.exports}var gf,vf={exports:{}};function yf(){return gf||(gf=1,function(e){var t=ss();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(vf)),vf.exports}var bf,xf={};function Sf(){if(bf)return xf;bf=1;var e=Ma();Object.defineProperty(xf,"__esModule",{value:!0}),xf.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},xf.keys=void 0;var t=e(os()),r=e(yf()),n=["xs","sm","md","lg","xl"];return xf.keys=n,xf}var wf,Cf={};function Ef(){if(wf)return Cf;wf=1;var e=Ma();Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(mf()),r=e(os());return Cf}var If,Df={},Mf={};function Pf(){if(If)return Mf;If=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.default=void 0;var e={black:"#000",white:"#fff"};return Mf.default=e,Mf}var Rf,Lf={};function Af(){if(Rf)return Lf;Rf=1,Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Lf.default=e,Lf}var kf,Tf={};function Of(){if(kf)return Tf;kf=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Tf.default=e,Tf}var qf,_f={};function jf(){if(qf)return _f;qf=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return _f.default=e,_f}var Nf,Ff={};function zf(){if(Nf)return Ff;Nf=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ff.default=e,Ff}var Wf,$f={};function Hf(){if(Wf)return $f;Wf=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return $f.default=e,$f}var Vf,Bf={};function Gf(){if(Vf)return Bf;Vf=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Bf.default=e,Bf}var Uf,Yf,Kf={};function Xf(){if(Uf)return Kf;Uf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Kf.default=e,Kf}function Jf(){if(Yf)return Df;Yf=1;var e=Ma();Object.defineProperty(Df,"__esModule",{value:!0}),Df.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,I=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,D=e.success,M=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,P=e.type,R=void 0===P?"light":P,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,T=void 0===k?.2:k,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=A?h.text.primary:f.text.primary}var _=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:R,primary:_(v),secondary:_(b,"A400","A200","A700"),error:_(S),warning:_(C),info:_(I),success:_(M),grey:i.default,contrastThreshold:A,getContrastText:q,augmentColor:_,tonalOffset:T},j[R]),O);return N},Df.dark=Df.light=void 0;var t=e(os()),r=e(yf()),n=nf,o=e(Pf()),i=e(Af()),a=e(Of()),s=e(jf()),l=e(zf()),u=e(Hf()),c=e(Gf()),d=e(Xf()),p=of(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Df.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Df.dark=h,Df}var Zf,Qf={};function eh(){if(Zf)return Qf;Zf=1;var e=Ma();Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,I=u.pxToRem,D=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),M=f/14,P=I||function(e){return"".concat(e/C*M,"rem")},R=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:R(m,96,1.167,-1.5),h2:R(m,60,1.2,-.5),h3:R(v,48,1.167,0),h4:R(v,34,1.235,.25),h5:R(v,24,1.334,0),h6:R(b,20,1.6,.15),subtitle1:R(v,16,1.75,.15),subtitle2:R(b,14,1.57,.1),body1:R(v,16,1.5,.15),body2:R(v,14,1.43,.15),button:R(b,14,1.75,.4,a),caption:R(v,12,1.66,.4),overline:R(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(os()),r=e(yf()),n=nf;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Qf}var th,rh={};function nh(){if(th)return rh;th=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return rh.default=t,rh}var oh,ih={};function ah(){if(oh)return ih;oh=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0;var e={borderRadius:4};return ih.default=e,ih}var sh={};function lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function uh(e,t){if(e){if("string"==typeof e)return lh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lh(e,t):void 0}}function ch(e){return function(e){if(Array.isArray(e))return lh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dh(e,t){return t?$p(e,t,{clone:!1}):e}var ph={xs:0,sm:600,md:960,lg:1280,xl:1920},fh={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(ph[e],"px)")}};function hh(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||fh;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Sa(t)){var o=e.theme.breakpoints||fh;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function mh(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function gh(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=mh(e.theme,o)||{};return hh(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=mh(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=wa(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function vh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?dh(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function yh(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var bh=gh({prop:"border",themeKey:"borders",transform:yh}),xh=gh({prop:"borderTop",themeKey:"borders",transform:yh}),Sh=gh({prop:"borderRight",themeKey:"borders",transform:yh}),wh=gh({prop:"borderBottom",themeKey:"borders",transform:yh}),Ch=gh({prop:"borderLeft",themeKey:"borders",transform:yh}),Eh=gh({prop:"borderColor",themeKey:"palette"}),Ih=gh({prop:"borderRadius",themeKey:"shape"}),Dh=vh(bh,xh,Sh,wh,Ch,Eh,Ih);function Mh(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Ph(e){var t=function(t){var r=e(t);return t.css?Ae({},dh(r,e(Ae({theme:t.theme},t.css))),Mh(t.css,[e.filterProps])):t.sx?Ae({},dh(r,e(Ae({theme:t.theme},t.sx))),Mh(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(ch(e.filterProps)),t}var Rh=vh(gh({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),gh({prop:"display"}),gh({prop:"overflow"}),gh({prop:"textOverflow"}),gh({prop:"visibility"}),gh({prop:"whiteSpace"})),Lh=gh({prop:"flexBasis"}),Ah=gh({prop:"flexDirection"}),kh=gh({prop:"flexWrap"}),Th=gh({prop:"justifyContent"}),Oh=gh({prop:"alignItems"}),qh=gh({prop:"alignContent"}),_h=gh({prop:"order"}),jh=gh({prop:"flex"}),Nh=gh({prop:"flexGrow"}),Fh=gh({prop:"flexShrink"}),zh=gh({prop:"alignSelf"}),Wh=gh({prop:"justifyItems"}),$h=gh({prop:"justifySelf"}),Hh=vh(Lh,Ah,kh,Th,Oh,qh,_h,jh,Nh,Fh,zh,Wh,$h),Vh=gh({prop:"gridGap"}),Bh=gh({prop:"gridColumnGap"}),Gh=gh({prop:"gridRowGap"}),Uh=gh({prop:"gridColumn"}),Yh=gh({prop:"gridRow"}),Kh=gh({prop:"gridAutoFlow"}),Xh=gh({prop:"gridAutoColumns"}),Jh=gh({prop:"gridAutoRows"}),Zh=gh({prop:"gridTemplateColumns"}),Qh=gh({prop:"gridTemplateRows"}),em=gh({prop:"gridTemplateAreas"}),tm=gh({prop:"gridArea"}),rm=vh(Vh,Bh,Gh,Uh,Yh,Kh,Xh,Jh,Zh,Qh,em,tm),nm=gh({prop:"color",themeKey:"palette"}),om=gh({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),im=vh(nm,om),am=gh({prop:"position"}),sm=gh({prop:"zIndex",themeKey:"zIndex"}),lm=gh({prop:"top"}),um=gh({prop:"right"}),cm=gh({prop:"bottom"}),dm=gh({prop:"left"}),pm=vh(am,sm,lm,um,cm,dm),fm=gh({prop:"boxShadow",themeKey:"shadows"});function hm(e){return e<=1?"".concat(100*e,"%"):e}var mm=gh({prop:"width",transform:hm}),gm=gh({prop:"maxWidth",transform:hm}),vm=gh({prop:"minWidth",transform:hm}),ym=gh({prop:"height",transform:hm}),bm=gh({prop:"maxHeight",transform:hm}),xm=gh({prop:"minHeight",transform:hm}),Sm=gh({prop:"size",cssProperty:"width",transform:hm}),wm=gh({prop:"size",cssProperty:"height",transform:hm}),Cm=gh({prop:"boxSizing"}),Em=vh(mm,gm,vm,ym,bm,xm,Cm);function Im(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||uh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Dm={m:"margin",p:"padding"},Mm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rm=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Pm[e])return[e];e=Pm[e]}var t=Im(e.split(""),2),r=t[0],n=t[1],o=Dm[r],i=Mm[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Lm=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Am(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function km(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Tm(e){var t=Am(e.theme);return Object.keys(e).map(function(r){if(-1===Lm.indexOf(r))return null;var n=km(Rm(r),t),o=e[r];return hh(e,o,n)}).reduce(dh,{})}Tm.propTypes={},Tm.filterProps=Lm;var Om,qm=gh({prop:"fontFamily",themeKey:"typography"}),_m=gh({prop:"fontSize",themeKey:"typography"}),jm=gh({prop:"fontStyle",themeKey:"typography"}),Nm=gh({prop:"fontWeight",themeKey:"typography"}),Fm=gh({prop:"letterSpacing"}),zm=gh({prop:"lineHeight"}),Wm=gh({prop:"textAlign"}),$m=vh(qm,_m,jm,Nm,Fm,zm,Wm),Hm=Object.freeze({__proto__:null,alignContent:qh,alignItems:Oh,alignSelf:zh,bgcolor:om,border:bh,borderBottom:wh,borderColor:Eh,borderLeft:Ch,borderRadius:Ih,borderRight:Sh,borderTop:xh,borders:Dh,bottom:cm,boxSizing:Cm,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||fh,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Ae({theme:t.theme},t[o]))),r},null);return dh(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(ch(e.filterProps)),t},color:nm,compose:vh,createUnarySpacing:Am,css:function(e){return Ph(e)},display:Rh,flex:jh,flexBasis:Lh,flexDirection:Ah,flexGrow:Nh,flexShrink:Fh,flexWrap:kh,flexbox:Hh,fontFamily:qm,fontSize:_m,fontStyle:jm,fontWeight:Nm,grid:rm,gridArea:tm,gridAutoColumns:Xh,gridAutoFlow:Kh,gridAutoRows:Jh,gridColumn:Uh,gridColumnGap:Bh,gridGap:Vh,gridRow:Yh,gridRowGap:Gh,gridTemplateAreas:em,gridTemplateColumns:Zh,gridTemplateRows:Qh,height:ym,justifyContent:Th,justifyItems:Wh,justifySelf:$h,left:dm,letterSpacing:Fm,lineHeight:zm,maxHeight:bm,maxWidth:gm,minHeight:xm,minWidth:vm,order:_h,palette:im,position:am,positions:pm,right:um,shadows:fm,sizeHeight:wm,sizeWidth:Sm,sizing:Em,spacing:Tm,style:gh,styleFunctionSx:Ph,textAlign:Wm,top:lm,typography:$m,width:mm,zIndex:sm}),Vm=_e(Hm);function Bm(){if(Om)return sh;Om=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Vm;return sh}var Gm,Um={};function Ym(){if(Gm)return Um;Gm=1;var e=Ma();Object.defineProperty(Um,"__esModule",{value:!0}),Um.default=Um.duration=Um.easing=void 0;var t=e(yf()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};Um.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Um.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Um.default=i,Um}var Km,Xm,Jm={};function Zm(){if(Km)return Jm;Km=1,Object.defineProperty(Jm,"__esModule",{value:!0}),Jm.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Jm.default=e,Jm}function Qm(){if(Xm)return uf;Xm=1;var e=Ma();Object.defineProperty(uf,"__esModule",{value:!0}),uf.createMuiTheme=function(){return p.apply(void 0,arguments)},uf.default=void 0,e(mf());var t=e(yf()),r=nf,n=e(Sf()),o=e(Ef()),i=e(Jf()),a=e(eh()),s=e(nh()),l=e(ah()),u=e(Bm()),c=e(Ym()),d=e(Zm());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(y),I=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),D=arguments.length,M=new Array(D>1?D-1:0),P=1;P<D;P++)M[P-1]=arguments[P];return I=M.reduce(function(e,t){return(0,r.deepmerge)(e,t)},I)}var f=p;return uf.default=f,uf}var eg,tg={};function rg(){if(eg)return tg;eg=1;var e=Ma();Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=nf,r=e(Qm());return tg}var ng={},og="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ig=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ag(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==ig.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[og]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function sg(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ug="object"===("undefined"==typeof window?"undefined":lg(window))&&"object"===("undefined"==typeof document?"undefined":lg(document))&&9===document.nodeType;function cg(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wa(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var dg={}.constructor;function pg(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(pg);if(e.constructor!==dg)return e;var t={};for(var r in e)t[r]=pg(e[r]);return t}function fg(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=pg(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var hg=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},mg=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=hg(e[r]," ");else t=hg(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function gg(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function vg(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function yg(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=gg(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=vg(p+":"+u+mg(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=vg(h+":"+u+mg(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=vg(g+":"+u+mg(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),vg(""+e+u+"{"+n,--i)+vg("}",i)):n}var bg=/([[\].#*$><+~=|^:(),"'`\s])/g,xg="undefined"!=typeof CSS&&CSS.escape,Sg=function(e){return xg?xg(e):e.replace(bg,"\\$1")},wg=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Cg=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Fs(Fs(o)),s),o.selectorText="."+Sg(o.id)),o}Rs(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=mg(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return yg(this.selectorText,this.style,r)},cg(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(wg),Eg={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Cg(e,t,r)}},Ig={indent:1,children:!0},Dg=/@([\w-]+)/,Mg=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Dg);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Jg(Ae({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Ig);var t=gg(e).linebreak;if(null==e.indent&&(e.indent=Ig.indent),null==e.children&&(e.children=Ig.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Pg=/@container|@media|@supports\s+/,Rg={onCreateRule:function(e,t,r){return Pg.test(e)?new Mg(e,t,r):null}},Lg={indent:1,children:!0},Ag=/@keyframes\s+([\w-]+)/,kg=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ag);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Sg(a(this,i)),this.rules=new Jg(Ae({},r,{parent:this})),t)this.rules.add(s,t[s],Ae({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Lg);var t=gg(e).linebreak;if(null==e.indent&&(e.indent=Lg.indent),null==e.children&&(e.children=Lg.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Tg=/@keyframes\s+/,Og=/\$([\w-]+)/g,qg=function(e,t){return"string"==typeof e?e.replace(Og,function(e,r){return r in t?t[r]:e}):e},_g=function(e,t,r){var n=e[t],o=qg(n,r);o!==n&&(e[t]=o)},jg={onCreateRule:function(e,t,r){return"string"==typeof e&&Tg.test(e)?new kg(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&_g(e,"animation-name",r.keyframes),"animation"in e&&_g(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return qg(e,n.keyframes);default:return e}}},Ng=function(e){function t(){return e.apply(this,arguments)||this}return Rs(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return yg(this.key,this.style,r)},t}(wg),Fg={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ng(e,t,r):null}},zg=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=gg(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=yg(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return yg(this.at,this.style,e)},e}(),Wg=/@font-face/,$g={onCreateRule:function(e,t,r){return Wg.test(e)?new zg(e,t,r):null}},Hg=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return yg(this.key,this.style,e)},e}(),Vg={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Hg(e,t,r):null}},Bg=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Gg={"@charset":!0,"@import":!0,"@namespace":!0},Ug={onCreateRule:function(e,t,r){return e in Gg?new Bg(e,t,r):null}},Yg=[Eg,Rg,jg,Fg,$g,Vg,Ug],Kg={process:!0},Xg={force:!0,process:!0},Jg=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Ae({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Sg(this.classes[d]));var p=fg(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Ae({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Cg?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof kg&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Cg?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof kg&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Kg);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Xg)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Xg)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=gg(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Zg=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ae({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Jg(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Qg=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ev=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=ke(t,["attached"]),o=gg(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},cg(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),tv=new ev,rv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),nv="2f1acc6c3a606b082e5eef5e54414ffb";null==rv[nv]&&(rv[nv]=0);var ov=rv[nv]++,iv=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+ov+o+t:i+r.key+"-"+ov+(o?"-"+o:"")+"-"+t}},av=function(e){var t;return function(){return t||(t=e()),t}},sv=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},lv=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=mg(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},uv=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},cv=function(e,t){return e.selectorText=t,e.selectorText===t},dv=av(function(){return document.querySelector("head")});function pv(e){var t=tv.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=dv(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fv=av(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),hv=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},mv=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},gv=function(){function e(e){this.getPropertyValue=sv,this.setProperty=lv,this.removeProperty=uv,this.setSelector=cv,this.hasInsertedRules=!1,this.cssRules=[],e&&tv.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=fv();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=pv(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else dv().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=mv(r,t);if(!1===(o=hv(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=mv(r,t),l=hv(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Zg&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),vv=0,yv=function(){function e(e){this.id=vv++,this.version="10.10.0",this.plugins=new Qg,this.options={id:{minify:!1},createGenerateId:iv,Renderer:ug?gv:null,plugins:[]},this.generateId=iv({minify:!1});for(var t=0;t<Yg.length;t++)this.plugins.use(Yg[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Ae({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===tv.index?0:tv.index+1);var n=new Zg(e,Ae({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),tv.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Ae({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=fg(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),bv=function(e){return new yv(e)},xv="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Sv(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Sv(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
89
89
|
/**
|
|
90
90
|
* A better abstraction over CSS.
|
|
91
91
|
*
|
|
92
92
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
93
93
|
* @website https://github.com/cssinjs/jss
|
|
94
94
|
* @license MIT
|
|
95
|
-
*/Ag();var Lg=Date.now(),Pg="fnValues"+Lg,Dg="fnStyle"+ ++Lg,_g="@global",Og="@global ",Tg=function(){function e(e,t,r){for(var n in this.type="global",this.at=_g,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ig(In({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),qg=function(){function e(e,t,r){this.type="global",this.at=_g,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,In({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),jg=/\s*,\s*/g;function Ng(e,t){for(var r=e.split(jg),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Fg(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===_g)return new Tg(e,t,r);if("@"===e[0]&&e.substr(0,8)===Og)return new qg(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[_g]:null;if(o){for(var i in o)t.addRule(i,o[i],In({},r,{selector:Ng(i,e.selector)}));delete n[_g]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===_g){var i=Ng(o.substr(7),e.selector);t.addRule(i,n[o],In({},r,{selector:i})),delete n[o]}}(e,t))}}}var zg=/\s*,\s*/g,$g=/&/g,Wg=/\$([\w-]+)/g;function Bg(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(zg),n=e.split(zg),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace($g,a):a+" "+l}return o}function r(e,t,r){if(r)return In({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=In({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Wg,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],In({},a,{selector:f})):u.addRule(h,n[c],In({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Gg=/[A-Z]/g,Hg=/^ms-/,Vg={};function Ug(e){return"-"+e.toLowerCase()}function Yg(e){if(Vg.hasOwnProperty(e))return Vg[e];var t=e.replace(Gg,Ug);return Vg[e]=Hg.test(t)?"-"+t:t}function Kg(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Yg(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Kg):t.fallbacks=Kg(e.fallbacks)),t}var Xg=Ig&&CSS?CSS.px:"px",Jg=Ig&&CSS?CSS.ms:"ms",Zg=Ig&&CSS?CSS.percent:"%";function Qg(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var eb=Qg({"animation-delay":Jg,"animation-duration":Jg,"background-position":Xg,"background-position-x":Xg,"background-position-y":Xg,"background-size":Xg,border:Xg,"border-bottom":Xg,"border-bottom-left-radius":Xg,"border-bottom-right-radius":Xg,"border-bottom-width":Xg,"border-left":Xg,"border-left-width":Xg,"border-radius":Xg,"border-right":Xg,"border-right-width":Xg,"border-top":Xg,"border-top-left-radius":Xg,"border-top-right-radius":Xg,"border-top-width":Xg,"border-width":Xg,"border-block":Xg,"border-block-end":Xg,"border-block-end-width":Xg,"border-block-start":Xg,"border-block-start-width":Xg,"border-block-width":Xg,"border-inline":Xg,"border-inline-end":Xg,"border-inline-end-width":Xg,"border-inline-start":Xg,"border-inline-start-width":Xg,"border-inline-width":Xg,"border-start-start-radius":Xg,"border-start-end-radius":Xg,"border-end-start-radius":Xg,"border-end-end-radius":Xg,margin:Xg,"margin-bottom":Xg,"margin-left":Xg,"margin-right":Xg,"margin-top":Xg,"margin-block":Xg,"margin-block-end":Xg,"margin-block-start":Xg,"margin-inline":Xg,"margin-inline-end":Xg,"margin-inline-start":Xg,padding:Xg,"padding-bottom":Xg,"padding-left":Xg,"padding-right":Xg,"padding-top":Xg,"padding-block":Xg,"padding-block-end":Xg,"padding-block-start":Xg,"padding-inline":Xg,"padding-inline-end":Xg,"padding-inline-start":Xg,"mask-position-x":Xg,"mask-position-y":Xg,"mask-size":Xg,height:Xg,width:Xg,"min-height":Xg,"max-height":Xg,"min-width":Xg,"max-width":Xg,bottom:Xg,left:Xg,top:Xg,right:Xg,inset:Xg,"inset-block":Xg,"inset-block-end":Xg,"inset-block-start":Xg,"inset-inline":Xg,"inset-inline-end":Xg,"inset-inline-start":Xg,"box-shadow":Xg,"text-shadow":Xg,"column-gap":Xg,"column-rule":Xg,"column-rule-width":Xg,"column-width":Xg,"font-size":Xg,"font-size-delta":Xg,"letter-spacing":Xg,"text-decoration-thickness":Xg,"text-indent":Xg,"text-stroke":Xg,"text-stroke-width":Xg,"word-spacing":Xg,motion:Xg,"motion-offset":Xg,outline:Xg,"outline-offset":Xg,"outline-width":Xg,perspective:Xg,"perspective-origin-x":Zg,"perspective-origin-y":Zg,"transform-origin":Zg,"transform-origin-x":Zg,"transform-origin-y":Zg,"transform-origin-z":Zg,"transition-delay":Jg,"transition-duration":Jg,"vertical-align":Xg,"flex-basis":Xg,"shape-margin":Xg,size:Xg,gap:Xg,grid:Xg,"grid-gap":Xg,"row-gap":Xg,"grid-row-gap":Xg,"grid-column-gap":Xg,"grid-template-rows":Xg,"grid-template-columns":Xg,"grid-auto-rows":Xg,"grid-auto-columns":Xg,"box-shadow-x":Xg,"box-shadow-y":Xg,"box-shadow-blur":Xg,"box-shadow-spread":Xg,"font-line-height":Xg,"text-shadow-x":Xg,"text-shadow-y":Xg,"text-shadow-blur":Xg});function tb(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=tb(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=tb(o,t[o],r);else for(var i in t)t[i]=tb(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||eb[e];return!a||0===t&&a===Xg?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function rb(e){void 0===e&&(e={});var t=Qg(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=tb(n,e[n],t);return e},onChangeValue:function(e,r){return tb(r,e,t)}}}var nb="",ob="",ib="",ab="",sb=bm&&"ontouchstart"in document.documentElement;if(bm){var lb={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ub=document.createElement("p").style;for(var cb in lb)if(cb+"Transform"in ub){nb=cb,ob=lb[cb];break}"Webkit"===nb&&"msHyphens"in ub&&(nb="ms",ob=lb.ms,ab="edge"),"Webkit"===nb&&"-apple-trailing-word"in ub&&(ib="apple")}var db=nb,pb=ob,fb=ib,hb=ab,mb=sb;var gb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===db?"-webkit-"+e:pb+e)}},bb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===db?pb+"print-"+e:e)}},vb=/[-\s]+(.)?/g;function yb(e,t){return t?t.toUpperCase():""}function xb(e){return e.replace(vb,yb)}function Sb(e){return xb("-"+e)}var wb,Cb={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===db){var r="mask-image";if(xb(r)in t)return e;if(db+Sb(r)in t)return pb+e}return e}},Eb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fb||mb?e:pb+e)}},Rb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:pb+e)}},Mb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:pb+e)}},Ab={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===db||"ms"===db&&"edge"!==hb?pb+e:e)}},Ib={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===db||"ms"===db||"apple"===fb?pb+e:e)}},kb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===db?"WebkitColumn"+Sb(e)in t&&pb+"column-"+e:"Moz"===db&&("page"+Sb(e)in t&&"page-"+e))}},Lb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===db)return e;var r=e.replace("-inline","");return db+Sb(r)in t&&pb+r}},Pb={supportedProperty:function(e,t){return xb(e)in t&&e}},Db={supportedProperty:function(e,t){var r=Sb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:db+r in t?pb+e:"Webkit"!==db&&"Webkit"+r in t&&"-webkit-"+e}},_b={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===db?""+pb+e:e)}},Ob={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===db?pb+"scroll-chaining":e)}},Tb={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},qb={supportedProperty:function(e,t){var r=Tb[e];return!!r&&(db+Sb(r)in t&&pb+r)}},jb={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Nb=Object.keys(jb),Fb=function(e){return pb+e},zb={supportedProperty:function(e,t,r){var n=r.multiple;if(Nb.indexOf(e)>-1){var o=jb[e];if(!Array.isArray(o))return db+Sb(o)in t&&pb+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(db+Sb(o[0])in t))return!1;return o.map(Fb)}return!1}},$b=[gb,bb,Cb,Eb,Rb,Mb,Ab,Ib,kb,Lb,Pb,Db,_b,Ob,qb,zb],Wb=$b.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bb=$b.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,_f(t.noPrefill)),e}),[]),Gb={};if(bm){wb=document.createElement("p");var Hb=window.getComputedStyle(document.documentElement,"");for(var Vb in Hb)isNaN(Vb)||(Gb[Hb[Vb]]=Hb[Vb]);Bb.forEach((function(e){return delete Gb[e]}))}function Ub(e,t){if(void 0===t&&(t={}),!wb)return e;if(null!=Gb[e])return Gb[e];"transition"!==e&&"transform"!==e||(t[e]=e in wb.style);for(var r=0;r<Wb.length&&(Gb[e]=Wb[r](e,wb.style,t),!Gb[e]);r++);try{wb.style[e]=""}catch(e){return!1}return Gb[e]}var Yb,Kb={},Xb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Zb(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ub(t):", "+Ub(r);return n||(t||r)}function Qb(e,t){var r=t;if(!Yb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Kb[n])return Kb[n];try{Yb.style[e]=r}catch(e){return Kb[n]=!1,!1}if(Xb[e])r=r.replace(Jb,Zb);else if(""===Yb.style[e]&&("-ms-flex"===(r=pb+r)&&(Yb.style[e]="-ms-flexbox"),Yb.style[e]=r,""===Yb.style[e]))return Kb[n]=!1,!1;return Yb.style[e]="",Kb[n]=r,Kb[n]}function ev(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Ub(r);i&&i!==r&&(o=!0);var a=!1,s=Qb(i,Cm(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===db?e:"@"+pb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Qb(t,Cm(e))||e}}}function tv(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function rv(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Sm(e,{},r);return n[Dg]=t,n},onProcessStyle:function(e,t){if(Pg in t||Dg in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Pg]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Dg];i&&(o.style=i(e)||{});var a=o[Pg];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Fg(),Bg(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Kg(e[t]);return e}return Kg(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Yg(t);return t===n?e:(r.prop(n,e),null)}},rb(),"undefined"==typeof window?null:ev(),tv()]}}function nv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Op({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}bm&&(Yb=document.createElement("p"));var ov=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},iv=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},av=function(e,t,r){e.get(t).delete(r)},sv=r.createContext(null);function lv(){return r.useContext(sv)}var uv,cv=Ag(rv()),dv=hm(),pv=new Map,fv={disableGeneration:!1,generateClassName:dv,jss:cv,sheetsCache:null,sheetsManager:pv,sheetsRegistry:null},hv=r.createContext(fv);function mv(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=Lf(e,["children","injectFirst","disableGeneration"]),l=Op({},r.useContext(hv),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!uv){var u=document.head;uv=document.createComment("mui-inject-first"),u.insertBefore(uv,u.firstChild)}l.jss=Ag({plugins:rv().plugins,insertionPoint:uv})}return r.createElement(hv.Provider,{value:l},t)}var gv=-1e9;var bv={};function vv(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=iv(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ov(o.sheetsManager,i,n,s));var l=Op({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=iv(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Op({link:!1},l))).attach(),o.sheetsCache&&ov(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=kg(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Op({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=nv({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?bv:a,l=Lf(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Op({},o);return Object.keys(i).forEach((function(e){a[e]=jp(a[e],i[e])})),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:gv+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=lv()||s,o=Op({},r.useContext(hv),l),a=r.useRef(),c=r.useRef();!function(e,t){var n,o=r.useRef([]),i=r.useMemo((function(){return{}}),t);o.current!==i&&(o.current=i,n=e()),r.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:o,theme:t};return vv(r,e),c.current=!1,a.current=r,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=iv(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(av(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}}),[t,u]),r.useEffect((function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),c.current=!0}));var d=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=nv({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}function xv(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zp(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Sv=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return xv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new lg;var n=hm();return r.createElement(mv,Op({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return r.createElement("style",Op({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function wv(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=wv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Cv(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=wv(e))&&(n&&(n+=" "),n+=t);return n}var Ev={exports:{}},Rv={},Mv="function"==typeof Symbol&&Symbol.for,Av=Mv?Symbol.for("react.element"):60103,Iv=Mv?Symbol.for("react.portal"):60106,kv=Mv?Symbol.for("react.fragment"):60107,Lv=Mv?Symbol.for("react.strict_mode"):60108,Pv=Mv?Symbol.for("react.profiler"):60114,Dv=Mv?Symbol.for("react.provider"):60109,_v=Mv?Symbol.for("react.context"):60110,Ov=Mv?Symbol.for("react.async_mode"):60111,Tv=Mv?Symbol.for("react.concurrent_mode"):60111,qv=Mv?Symbol.for("react.forward_ref"):60112,jv=Mv?Symbol.for("react.suspense"):60113,Nv=Mv?Symbol.for("react.suspense_list"):60120,Fv=Mv?Symbol.for("react.memo"):60115,zv=Mv?Symbol.for("react.lazy"):60116,$v=Mv?Symbol.for("react.block"):60121,Wv=Mv?Symbol.for("react.fundamental"):60117,Bv=Mv?Symbol.for("react.responder"):60118,Gv=Mv?Symbol.for("react.scope"):60119;function Hv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Av:switch(e=e.type){case Ov:case Tv:case kv:case Pv:case Lv:case jv:return e;default:switch(e=e&&e.$$typeof){case _v:case qv:case zv:case Fv:case Dv:return e;default:return t}}case Iv:return t}}}function Vv(e){return Hv(e)===Tv}Rv.AsyncMode=Ov,Rv.ConcurrentMode=Tv,Rv.ContextConsumer=_v,Rv.ContextProvider=Dv,Rv.Element=Av,Rv.ForwardRef=qv,Rv.Fragment=kv,Rv.Lazy=zv,Rv.Memo=Fv,Rv.Portal=Iv,Rv.Profiler=Pv,Rv.StrictMode=Lv,Rv.Suspense=jv,Rv.isAsyncMode=function(e){return Vv(e)||Hv(e)===Ov},Rv.isConcurrentMode=Vv,Rv.isContextConsumer=function(e){return Hv(e)===_v},Rv.isContextProvider=function(e){return Hv(e)===Dv},Rv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Av},Rv.isForwardRef=function(e){return Hv(e)===qv},Rv.isFragment=function(e){return Hv(e)===kv},Rv.isLazy=function(e){return Hv(e)===zv},Rv.isMemo=function(e){return Hv(e)===Fv},Rv.isPortal=function(e){return Hv(e)===Iv},Rv.isProfiler=function(e){return Hv(e)===Pv},Rv.isStrictMode=function(e){return Hv(e)===Lv},Rv.isSuspense=function(e){return Hv(e)===jv},Rv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kv||e===Tv||e===Pv||e===Lv||e===jv||e===Nv||"object"==typeof e&&null!==e&&(e.$$typeof===zv||e.$$typeof===Fv||e.$$typeof===Dv||e.$$typeof===_v||e.$$typeof===qv||e.$$typeof===Wv||e.$$typeof===Bv||e.$$typeof===Gv||e.$$typeof===$v)},Rv.typeOf=Hv,Ev.exports=Rv;var Uv=Ev.exports,Yv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kv={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jv={};function Zv(e){return Uv.isMemo(e)?Xv:Jv[e.$$typeof]||Yv}Jv[Uv.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jv[Uv.Memo]=Xv;var Qv=Object.defineProperty,ey=Object.getOwnPropertyNames,ty=Object.getOwnPropertySymbols,ry=Object.getOwnPropertyDescriptor,ny=Object.getPrototypeOf,oy=Object.prototype;var iy=function e(t,r,n){if("string"!=typeof r){if(oy){var o=ny(r);o&&o!==oy&&e(t,o,n)}var i=ey(r);ty&&(i=i.concat(ty(r)));for(var a=Zv(t),s=Zv(r),l=0;l<i.length;++l){var u=i[l];if(!(Kv[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=ry(r,u);try{Qv(t,u,c)}catch(e){}}}}return t},ay=Te(iy);function sy(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=r.forwardRef((function(n,o){var i=n.innerRef,a=Lf(n,["innerRef"]),s=lv()||e;return r.createElement(t,Op({theme:s,ref:i||o},a))}));return ay(n,t),n}}var ly=sy(),uy=Object.freeze({__proto__:null,ServerStyleSheets:Sv,StylesContext:hv,StylesProvider:mv,ThemeProvider:function(e){var t=e.children,n=e.theme,o=lv(),i=r.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):Op({},e,t)}(o,n);return null!=e&&(e[pm]=null!==o),e}),[n,o]);return r.createElement(sv.Provider,{value:i},t)},createGenerateClassName:hm,createStyles:function(e){return e},getThemeProps:mm,jssPreset:rv,makeStyles:yv,mergeClasses:nv,sheetsManager:pv,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=Lf(o,["name"]),s=i,l=yv("function"==typeof t?function(e){return{root:function(r){return t(Op({theme:e},r))}}}:{root:t},Op({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=r.forwardRef((function(t,o){var i,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=Lf(t,["children","className","clone","component"]),h=Cv(l(t).root,c),m=f;if(n&&(i=m,a=n,s={},Object.keys(i).forEach((function(e){-1===a.indexOf(e)&&(s[e]=i[e])})),m=s),d)return r.cloneElement(u,Op({className:Cv(u.props.className,h)},m));if("function"==typeof u)return u(Op({className:h},m));var g=p||e;return r.createElement(g,Op({ref:o,className:h},m),u)}));return ay(u,e),u}},useTheme:lv,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=Lf(t,["defaultTheme","withTheme","name"]),u=s,c=yv(e,Op({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=r.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,u=Lf(e,["classes","innerRef"]),d=c(Op({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=lv()||o,s&&(p=mm({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,Op({ref:l||t,classes:d},p))}));return ay(d,n),d}},withTheme:ly,withThemeCreator:sy});
|
|
95
|
+
*/bv();var wv=Date.now(),Cv="fnValues"+wv,Ev="fnStyle"+ ++wv,Iv="@global",Dv="@global ",Mv=function(){function e(e,t,r){for(var n in this.type="global",this.at=Iv,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Jg(Ae({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Pv=function(){function e(e,t,r){this.type="global",this.at=Iv,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Ae({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Rv=/\s*,\s*/g;function Lv(e,t){for(var r=e.split(Rv),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Av(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Iv)return new Mv(e,t,r);if("@"===e[0]&&e.substr(0,8)===Dv)return new Pv(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Iv]:null;if(o){for(var i in o)t.addRule(i,o[i],Ae({},r,{selector:Lv(i,e.selector)}));delete n[Iv]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Iv){var i=Lv(o.substr(7),e.selector);t.addRule(i,n[o],Ae({},r,{selector:i})),delete n[o]}}(e,t))}}}var kv=/\s*,\s*/g,Tv=/&/g,Ov=/\$([\w-]+)/g;function qv(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(kv),n=e.split(kv),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Tv,a):a+" "+l}return o}function r(e,t,r){if(r)return Ae({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Ae({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Ov,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Ae({},a,{selector:f})):u.addRule(h,n[c],Ae({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var _v=/[A-Z]/g,jv=/^ms-/,Nv={};function Fv(e){return"-"+e.toLowerCase()}function zv(e){if(Nv.hasOwnProperty(e))return Nv[e];var t=e.replace(_v,Fv);return Nv[e]=jv.test(t)?"-"+t:t}function Wv(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:zv(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Wv):t.fallbacks=Wv(e.fallbacks)),t}var $v=xv&&CSS?CSS.px:"px",Hv=xv&&CSS?CSS.ms:"ms",Vv=xv&&CSS?CSS.percent:"%";function Bv(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var Gv=Bv({"animation-delay":Hv,"animation-duration":Hv,"background-position":$v,"background-position-x":$v,"background-position-y":$v,"background-size":$v,border:$v,"border-bottom":$v,"border-bottom-left-radius":$v,"border-bottom-right-radius":$v,"border-bottom-width":$v,"border-left":$v,"border-left-width":$v,"border-radius":$v,"border-right":$v,"border-right-width":$v,"border-top":$v,"border-top-left-radius":$v,"border-top-right-radius":$v,"border-top-width":$v,"border-width":$v,"border-block":$v,"border-block-end":$v,"border-block-end-width":$v,"border-block-start":$v,"border-block-start-width":$v,"border-block-width":$v,"border-inline":$v,"border-inline-end":$v,"border-inline-end-width":$v,"border-inline-start":$v,"border-inline-start-width":$v,"border-inline-width":$v,"border-start-start-radius":$v,"border-start-end-radius":$v,"border-end-start-radius":$v,"border-end-end-radius":$v,margin:$v,"margin-bottom":$v,"margin-left":$v,"margin-right":$v,"margin-top":$v,"margin-block":$v,"margin-block-end":$v,"margin-block-start":$v,"margin-inline":$v,"margin-inline-end":$v,"margin-inline-start":$v,padding:$v,"padding-bottom":$v,"padding-left":$v,"padding-right":$v,"padding-top":$v,"padding-block":$v,"padding-block-end":$v,"padding-block-start":$v,"padding-inline":$v,"padding-inline-end":$v,"padding-inline-start":$v,"mask-position-x":$v,"mask-position-y":$v,"mask-size":$v,height:$v,width:$v,"min-height":$v,"max-height":$v,"min-width":$v,"max-width":$v,bottom:$v,left:$v,top:$v,right:$v,inset:$v,"inset-block":$v,"inset-block-end":$v,"inset-block-start":$v,"inset-inline":$v,"inset-inline-end":$v,"inset-inline-start":$v,"box-shadow":$v,"text-shadow":$v,"column-gap":$v,"column-rule":$v,"column-rule-width":$v,"column-width":$v,"font-size":$v,"font-size-delta":$v,"letter-spacing":$v,"text-decoration-thickness":$v,"text-indent":$v,"text-stroke":$v,"text-stroke-width":$v,"word-spacing":$v,motion:$v,"motion-offset":$v,outline:$v,"outline-offset":$v,"outline-width":$v,perspective:$v,"perspective-origin-x":Vv,"perspective-origin-y":Vv,"transform-origin":Vv,"transform-origin-x":Vv,"transform-origin-y":Vv,"transform-origin-z":Vv,"transition-delay":Hv,"transition-duration":Hv,"vertical-align":$v,"flex-basis":$v,"shape-margin":$v,size:$v,gap:$v,grid:$v,"grid-gap":$v,"row-gap":$v,"grid-row-gap":$v,"grid-column-gap":$v,"grid-template-rows":$v,"grid-template-columns":$v,"grid-auto-rows":$v,"grid-auto-columns":$v,"box-shadow-x":$v,"box-shadow-y":$v,"box-shadow-blur":$v,"box-shadow-spread":$v,"font-line-height":$v,"text-shadow-x":$v,"text-shadow-y":$v,"text-shadow-blur":$v});function Uv(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Uv(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Uv(o,t[o],r);else for(var i in t)t[i]=Uv(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Gv[e];return!a||0===t&&a===$v?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Yv(e){void 0===e&&(e={});var t=Bv(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Uv(n,e[n],t);return e},onChangeValue:function(e,r){return Uv(r,e,t)}}}var Kv="",Xv="",Jv="",Zv="",Qv=ug&&"ontouchstart"in document.documentElement;if(ug){var ey={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ty=document.createElement("p").style;for(var ry in ey)if(ry+"Transform"in ty){Kv=ry,Xv=ey[ry];break}"Webkit"===Kv&&"msHyphens"in ty&&(Kv="ms",Xv=ey.ms,Zv="edge"),"Webkit"===Kv&&"-apple-trailing-word"in ty&&(Jv="apple")}var ny=Kv,oy=Xv,iy=Jv,ay=Zv,sy=Qv;var ly={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ny?"-webkit-"+e:oy+e)}},uy={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ny?oy+"print-"+e:e)}},cy=/[-\s]+(.)?/g;function dy(e,t){return t?t.toUpperCase():""}function py(e){return e.replace(cy,dy)}function fy(e){return py("-"+e)}var hy,my={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ny){var r="mask-image";if(py(r)in t)return e;if(ny+fy(r)in t)return oy+e}return e}},gy={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==iy||sy?e:oy+e)}},vy={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:oy+e)}},yy={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:oy+e)}},by={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ny||"ms"===ny&&"edge"!==ay?oy+e:e)}},xy={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ny||"ms"===ny||"apple"===iy?oy+e:e)}},Sy={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ny?"WebkitColumn"+fy(e)in t&&oy+"column-"+e:"Moz"===ny&&("page"+fy(e)in t&&"page-"+e))}},wy={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ny)return e;var r=e.replace("-inline","");return ny+fy(r)in t&&oy+r}},Cy={supportedProperty:function(e,t){return py(e)in t&&e}},Ey={supportedProperty:function(e,t){var r=fy(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ny+r in t?oy+e:"Webkit"!==ny&&"Webkit"+r in t&&"-webkit-"+e}},Iy={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ny?""+oy+e:e)}},Dy={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ny?oy+"scroll-chaining":e)}},My={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Py={supportedProperty:function(e,t){var r=My[e];return!!r&&(ny+fy(r)in t&&oy+r)}},Ry={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ly=Object.keys(Ry),Ay=function(e){return oy+e},ky={supportedProperty:function(e,t,r){var n=r.multiple;if(Ly.indexOf(e)>-1){var o=Ry[e];if(!Array.isArray(o))return ny+fy(o)in t&&oy+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(ny+fy(o[0])in t))return!1;return o.map(Ay)}return!1}},Ty=[ly,uy,my,gy,vy,yy,by,xy,Sy,wy,Cy,Ey,Iy,Dy,Py,ky],Oy=Ty.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),qy=Ty.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,ch(t.noPrefill)),e},[]),_y={};if(ug){hy=document.createElement("p");var jy=window.getComputedStyle(document.documentElement,"");for(var Ny in jy)isNaN(Ny)||(_y[jy[Ny]]=jy[Ny]);qy.forEach(function(e){return delete _y[e]})}function Fy(e,t){if(void 0===t&&(t={}),!hy)return e;if(null!=_y[e])return _y[e];"transition"!==e&&"transform"!==e||(t[e]=e in hy.style);for(var r=0;r<Oy.length&&(_y[e]=Oy[r](e,hy.style,t),!_y[e]);r++);try{hy.style[e]=""}catch(e){return!1}return _y[e]}var zy,Wy={},$y={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Hy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Vy(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Fy(t):", "+Fy(r);return n||(t||r)}function By(e,t){var r=t;if(!zy||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Wy[n])return Wy[n];try{zy.style[e]=r}catch(e){return Wy[n]=!1,!1}if($y[e])r=r.replace(Hy,Vy);else if(""===zy.style[e]&&("-ms-flex"===(r=oy+r)&&(zy.style[e]="-ms-flexbox"),zy.style[e]=r,""===zy.style[e]))return Wy[n]=!1,!1;return zy.style[e]="",Wy[n]=r,Wy[n]}function Gy(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Fy(r);i&&i!==r&&(o=!0);var a=!1,s=By(i,mg(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ny?e:"@"+oy+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return By(t,mg(e))||e}}}function Uy(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function Yy(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=fg(e,{},r);return n[Ev]=t,n},onProcessStyle:function(e,t){if(Cv in t||Ev in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Cv]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ev];i&&(o.style=i(e)||{});var a=o[Cv];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Av(),qv(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Wv(e[t]);return e}return Wv(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=zv(t);return t===n?e:(r.prop(n,e),null)}},Yv(),"undefined"==typeof window?null:Gy(),Uy()]}}function Ky(e,t){if(null==e)return{};var r,n,o=ke(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Xy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Ae({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}ug&&(zy=document.createElement("p"));var Jy=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},Zy=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},Qy=function(e,t,r){e.get(t).delete(r)},eb=r.createContext(null);function tb(){return r.useContext(eb)}var rb,nb=bv(Yy()),ob=ag(),ib=new Map,ab={disableGeneration:!1,generateClassName:ob,jss:nb,sheetsCache:null,sheetsManager:ib,sheetsRegistry:null},sb=r.createContext(ab);function lb(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=Ky(e,["children","injectFirst","disableGeneration"]),l=Ae({},r.useContext(sb),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!rb){var u=document.head;rb=document.createComment("mui-inject-first"),u.insertBefore(rb,u.firstChild)}l.jss=bv({plugins:Yy().plugins,insertionPoint:rb})}return r.createElement(sb.Provider,{value:l},t)}var ub=-1e9;var cb={};function db(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Zy(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Jy(o.sheetsManager,i,n,s));var l=Ae({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=Zy(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Ae({link:!1},l))).attach(),o.sheetsCache&&Jy(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Sv(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ae({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=Xy({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function pb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?cb:a,l=Ky(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Ae({},o);return Object.keys(i).forEach(function(e){a[e]=$p(a[e],i[e])}),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:ub+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=tb()||s,o=Ae({},r.useContext(sb),l),a=r.useRef(),c=r.useRef();!function(e,t){var n,o=r.useRef([]),i=r.useMemo(function(){return{}},t);o.current!==i&&(o.current=i,n=e()),r.useEffect(function(){return function(){n&&n()}},[i])}(function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:o,theme:t};return db(r,e),c.current=!1,a.current=r,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=Zy(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(Qy(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}},[t,u]),r.useEffect(function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=Xy({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}var fb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return cg(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ev;var n=ag();return r.createElement(lb,Ae({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return r.createElement("style",Ae({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function hb(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=hb(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function mb(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=hb(e))&&(n&&(n+=" "),n+=t);return n}var gb,vb,yb,bb,xb={exports:{}},Sb={};function wb(){return vb||(vb=1,xb.exports=function(){if(gb)return Sb;gb=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case f:case a:return e;default:return p}}case r:return p}}}function x(e){return b(e)===u}return Sb.AsyncMode=l,Sb.ConcurrentMode=u,Sb.ContextConsumer=s,Sb.ContextProvider=a,Sb.Element=t,Sb.ForwardRef=c,Sb.Fragment=n,Sb.Lazy=h,Sb.Memo=f,Sb.Portal=r,Sb.Profiler=i,Sb.StrictMode=o,Sb.Suspense=d,Sb.isAsyncMode=function(e){return x(e)||b(e)===l},Sb.isConcurrentMode=x,Sb.isContextConsumer=function(e){return b(e)===s},Sb.isContextProvider=function(e){return b(e)===a},Sb.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sb.isForwardRef=function(e){return b(e)===c},Sb.isFragment=function(e){return b(e)===n},Sb.isLazy=function(e){return b(e)===h},Sb.isMemo=function(e){return b(e)===f},Sb.isPortal=function(e){return b(e)===r},Sb.isProfiler=function(e){return b(e)===i},Sb.isStrictMode=function(e){return b(e)===o},Sb.isSuspense=function(e){return b(e)===d},Sb.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Sb.typeOf=b,Sb}()),xb.exports}var Cb=function(){if(bb)return yb;bb=1;var e=wb(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return yb=function e(t,n,o){if("string"!=typeof n){if(d){var p=c(n);p&&p!==d&&e(t,p,o)}var f=s(n);l&&(f=f.concat(l(n)));for(var h=i(t),m=i(n),g=0;g<f.length;++g){var v=f[g];if(!(r[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(n,v);try{a(t,v,y)}catch(e){}}}}return t},yb}(),Eb=qe(Cb);function Ib(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=r.forwardRef(function(n,o){var i=n.innerRef,a=Ky(n,["innerRef"]),s=tb()||e;return r.createElement(t,Ae({theme:s,ref:i||o},a))});return Eb(n,t),n}}var Db,Mb=Ib(),Pb=Object.freeze({__proto__:null,ServerStyleSheets:fb,StylesContext:sb,StylesProvider:lb,ThemeProvider:function(e){var t=e.children,n=e.theme,o=tb(),i=r.useMemo(function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):Ae({},e,t)}(o,n);return null!=e&&(e[og]=null!==o),e},[n,o]);return r.createElement(eb.Provider,{value:i},t)},createGenerateClassName:ag,createStyles:function(e){return e},getThemeProps:sg,jssPreset:Yy,makeStyles:pb,mergeClasses:Xy,sheetsManager:ib,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=Ky(o,["name"]),s=i,l=pb("function"==typeof t?function(e){return{root:function(r){return t(Ae({theme:e},r))}}}:{root:t},Ae({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=r.forwardRef(function(t,o){var i,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=Ky(t,["children","className","clone","component"]),h=mb(l(t).root,c),m=f;if(n&&(i=m,a=n,s={},Object.keys(i).forEach(function(e){-1===a.indexOf(e)&&(s[e]=i[e])}),m=s),d)return r.cloneElement(u,Ae({className:mb(u.props.className,h)},m));if("function"==typeof u)return u(Ae({className:h},m));var g=p||e;return r.createElement(g,Ae({ref:o,className:h},m),u)});return Eb(u,e),u}},useTheme:tb,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=Ky(t,["defaultTheme","withTheme","name"]),u=s,c=pb(e,Ae({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=r.forwardRef(function(e,t){e.classes;var i,l=e.innerRef,u=Ky(e,["classes","innerRef"]),d=c(Ae({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=tb()||o,s&&(p=sg({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,Ae({ref:l||t,classes:d},p))});return Eb(d,n),d}},withTheme:Mb,withThemeCreator:Ib}),Rb=_e(Pb);
|
|
96
96
|
/** @license Material-UI v4.11.5
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the MIT license found in the
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const cy={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},dy={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...cy,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},py=12,fy=14,hy=16,my=24,gy=3,by=300,vy=400,yy=600,xy=700,Sy={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};If(dy.GREYSCALE_0,.05),If(dy.GREEN_PALE,.5),If(dy.BLUE_PALE,.5),If(dy.GREEN_PALE,.5),If(dy.BLUE_PALE,.5),If(dy.GREEN_PALE,.5),If(dy.BLUE_PALE,.5);var wy;function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cy.apply(null,arguments)}If(dy.GREEN_PALE,.5),If(dy.BLUE_PALE,.5),If(dy.GREEN_PALE,.5),If(dy.BLUE_PALE,.5);var Ey,Ry=function(e){return i.createElement("svg",Cy({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),wy||(wy=i.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},My.apply(null,arguments)}var Ay=function(e){return i.createElement("svg",My({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ey||(Ey=i.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Iy({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Zo.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function ky(e={}){return Zo.jsx(Iy,{...e,children:Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Zo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Zo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Ly(e={}){return Zo.jsx(Iy,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Zo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Zo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Py(e={}){return Zo.jsx(Iy,{fontSize:"medium",...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Dy(e={}){return Zo.jsx(Iy,{fontSize:"medium",...e,children:Zo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Zo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function _y({className:e}){return Zo.jsx(Iy,{fontSize:"small",className:e,children:Zo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Zo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Zo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Zo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Oy(e={}){return Zo.jsx(Iy,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("rect",{stroke:dy.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Zo.jsx(Ay,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Zo.jsx(Ry,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Zo.jsx(Py,{}),Zo.jsx(Dy,{}),Zo.jsx((function(e={}){return Zo.jsx(Iy,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Zo.jsx(ky,{}),Zo.jsx(Ly,{}),Zo.jsx(Ry,{style:{color:dy.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Ty={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:gy,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var qy=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:dy.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:dy.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(Ry,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${dy.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:dy.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${dy.MISC_FOCUS_BORDER}`,borderRadius:gy,backgroundColor:dy.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${dy.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:dy.WHITE,color:dy.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:gy},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dy.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:dy.GREYSCALE_0_15,backgroundColor:dy.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:dy.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dy.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:dy.GREEN_PALE},"&:active":{backgroundColor:dy.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dy.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(dy.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:dy.BLUE_PALE},"&:active":{backgroundColor:dy.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dy.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:gy,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:dy.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${dy.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:dy.GREYSCALE_0_15,backgroundColor:dy.GREYSCALE_100_60,"&:active":{backgroundColor:dy.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:dy.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${dy.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:dy.PURPLE,"&.Mui-focusVisible":{borderColor:dy.PURPLE,boxShadow:`0 0 0 3px ${Fi(dy.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:dy.GREEN,"&.Mui-focusVisible":{borderColor:dy.GREEN,boxShadow:`0 0 0 3px ${Fi(dy.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:dy.BLUE,"&.Mui-focusVisible":{borderColor:dy.BLUE,boxShadow:`0 0 0 3px ${Fi(dy.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:dy.ORANGE,"&.Mui-focusVisible":{borderColor:dy.ORANGE,boxShadow:`0 0 0 3px ${Fi(dy.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:dy.RED,"&.Mui-focusVisible":{borderColor:dy.RED,boxShadow:`0 0 0 3px ${Fi(dy.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:dy.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:dy.PURPLE_PALE},"&:active":{backgroundColor:dy.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:dy.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:dy.GREEN_PALE},"&:active":{backgroundColor:dy.GREEN_DARK},"&.Mui-focusVisible":{borderColor:dy.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(dy.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:dy.BLUE_PALE},"&:active":{backgroundColor:dy.BLUE_DARK},"&.Mui-focusVisible":{borderColor:dy.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:dy.ORANGE_PALE},"&:active":{backgroundColor:dy.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:dy.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:dy.RED_PALE},"&:active":{backgroundColor:dy.RED_DARK},"&.Mui-focusVisible":{borderColor:dy.RED_PALE,boxShadow:`0 0 0 3px ${Fi(dy.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:dy.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:dy.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:gy,boxShadow:`inset 0 0 0 2px ${dy.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(Ay,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:py,borderRadius:gy,color:dy.TEXT_PRIMARY,backgroundColor:dy.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:dy.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${dy.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:dy.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:dy.GREYSCALE_0_05,color:dy.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:dy.GREEN,borderColor:dy.GREEN},"&.MuiChip-outlinedInfo":{color:dy.BLUE,borderColor:dy.BLUE},"&.MuiChip-outlinedWarning":{color:dy.ORANGE,borderColor:dy.ORANGE},"&.MuiChip-outlinedError":{color:dy.RED,borderColor:dy.RED}},outlined:{border:`solid 1px ${dy.GREYSCALE_0_15}`,backgroundColor:dy.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:gy,boxShadow:"none",backgroundColor:dy.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:dy.GREEN,borderColor:dy.GREEN},outlinedSecondary:{color:dy.BLUE,borderColor:dy.BLUE},label:{fontFamily:Sy.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(Ay,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(Ry,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:gy},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:gy,fontSize:fy,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:dy.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${dy.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:dy.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:dy.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:dy.GREYSCALE_0_05}}},popupIndicator:{borderRadius:gy,border:`solid 1px ${dy.GREYSCALE_0_15}`,color:dy.GREYSCALE_0_60,marginRight:0,width:my,height:my},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${dy.GREYSCALE_0_15}`},clearIndicator:{borderRadius:gy,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:dy.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fy}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:py,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:dy.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:dy.GREYSCALE_25,fontSize:py,fontFamily:Sy.FONT_FAMILY,fontWeight:yy,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:dy.TEXT_PRIMARY},"&.Mui-error":{color:dy.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:dy.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vy,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:dy.TEXT_SECONDARY,content:"'(required)'",fontWeight:vy,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fy,lineHeight:"16px",backgroundColor:dy.WHITE,borderRadius:gy,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dy.GREYSCALE_0_05}`,borderColor:dy.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dy.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${dy.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${dy.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dy.RED}`,boxShadow:`0px 0px 0px 1px ${dy.RED}, inset 0 2px 0 0 ${dy.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${dy.GREYSCALE_0_10}`,borderColor:dy.GREYSCALE_0_10,backgroundColor:dy.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:dy.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:dy.GREYSCALE_0_15,borderRadius:gy,boxShadow:`inset 0 2px 0 0 ${dy.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(Ry,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:dy.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:dy.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:dy.GREYSCALE_0_03},"&:active":{backgroundColor:dy.GREYSCALE_0_10},"&:focus":{backgroundColor:dy.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${dy.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${dy.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:dy.GREYSCALE_0_30,"&:hover":{backgroundColor:dy.GREYSCALE_0_0,borderColor:dy.GREYSCALE_0_15},"& ~svg":{color:dy.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${dy.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:gy}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:dy.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${dy.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:dy.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:fy,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:py,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:py,fontWeight:yy,color:dy.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yy}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${dy.GREYSCALE_0_15}, 0px 0px 0px 1px ${dy.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(Py,{}),checkedIcon:Zo.jsx(Dy,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:dy.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${dy.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:dy.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(dy.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:dy.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:dy.GREYSCALE_0_20}},"&.Mui-disabled":{fill:dy.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(Oy,{}),checkedIcon:Zo.jsx(ky,{}),indeterminateIcon:Zo.jsx(Ly,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:gy,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:dy.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:dy.GREYSCALE_0_55,color:dy.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:dy.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:dy.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:dy.GREYSCALE_0_55,"&:hover":{color:dy.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:dy.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:dy.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fy,color:dy.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yy},secondary:{fontSize:py,color:dy.GREYSCALE_45,fontWeight:vy,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fy,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fy,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:dy.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:py,borderBottom:`solid 1px ${dy.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fy,color:dy.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:dy.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:dy.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:dy.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:dy.RED}}},"&.Mui-focusVisible":{backgroundColor:dy.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:dy.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:dy.GREEN,height:"24px","&.Mui-disabled":{color:dy.GREYSCALE_0_15}},rail:{backgroundColor:dy.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${dy.GREYSCALE_0_05}`,borderRadius:gy,boxShadow:`inset 0px 0px 0px 1px ${dy.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${dy.GREYSCALE_0_05}`,borderRadius:gy},thumb:{height:"16px",width:"16px",borderRadius:gy,backgroundColor:dy.WHITE,boxShadow:`0px 1px 2px 0px ${dy.GREYSCALE_0_15}, 0px 0px 0px 1px ${dy.GREYSCALE_0_05}`,"&:hover":{borderRadius:gy,boxShadow:`0 2px 4px 0 ${dy.GREYSCALE_0_30}, 0 0 0 1px ${dy.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${dy.GREYSCALE_0_15}, 0 0 0 1px ${dy.GREYSCALE_0_06}, 0 0 0 2px ${dy.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${dy.GREYSCALE_0_15}, 0 0 0 1px ${dy.GREYSCALE_0_06}, 0 0 0 2px ${dy.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:dy.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:dy.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:dy.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:dy.GREYSCALE_0_15},markLabel:{color:dy.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:dy.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:dy.WHITE,color:dy.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:dy.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:dy.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(dy.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:dy.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(dy.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:dy.GREYSCALE_0_15,borderRadius:gy},thumb:{height:"16px",width:"16px",borderRadius:gy,backgroundColor:dy.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:fy,fontWeight:yy,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${dy.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${dy.MISC_FOCUS_BORDER}`,backgroundColor:dy.GREYSCALE_0_03,borderRadius:gy},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:dy.GREYSCALE_25,"&.Mui-selected":{color:dy.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fy,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:gy,"&:hover":{backgroundColor:dy.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${dy.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${dy.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:gy,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:dy.GREYSCALE_0_05},"&:hover":{backgroundColor:dy.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${dy.GREYSCALE_85}`,borderRight:`1px solid ${dy.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yy,backgroundColor:dy.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:dy.GREYSCALE_98,borderBottom:`1px solid ${dy.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${dy.GREYSCALE_85}`,borderTop:`1px solid ${dy.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:dy.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:dy.GREYSCALE_0_05,"&:hover":{backgroundColor:dy.GREYSCALE_0_03}},"&&:hover":{backgroundColor:dy.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(_y,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${dy.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fy,borderRadius:gy,padding:"7px 16px",border:`1px solid ${dy.GREYSCALE_0_15}`,backgroundColor:dy.GREYSCALE_100_60,color:dy.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:dy.GREYSCALE_0_10,border:`1px solid ${dy.GREYSCALE_0_30}`},"&:hover":{backgroundColor:dy.GREYSCALE_0_03,border:`1px solid ${dy.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:dy.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${dy.MISC_FOCUS_BORDER}`,border:`1px solid ${dy.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:dy.GREYSCALE_25,backgroundColor:dy.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:dy.GREYSCALE_0_10,border:`1px solid ${dy.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:py,height:24,width:24,padding:7},sizeLarge:{fontSize:hy,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fy,borderRadius:gy}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:dy.GREYSCALE_20},tooltip:{backgroundColor:dy.GREYSCALE_20,fontSize:py,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Ty}:{}}))(t);const jy=e=>({mode:"light",primary:{ultraLight:dy.GREEN_ULTRA_LIGHT,light:dy.GREEN_PALE,main:dy.GREEN,dark:dy.GREEN_DARK,extraDark:dy.GREEN_EXTRA_DARK,contrastText:dy.WHITE},secondary:{ultraLight:dy.BLUE_ULTRA_LIGHT,light:dy.BLUE_PALE,main:dy.BLUE,dark:dy.BLUE_DARK,extraDark:dy.BLUE_EXTRA_DARK,contrastText:dy.WHITE},error:{ultraLight:dy.RED_ULTRA_LIGHT,light:dy.RED_PALE,main:dy.RED,dark:dy.RED_DARK,extraDark:dy.RED_EXTRA_DARK,contrastText:dy.WHITE},warning:{ultraLight:dy.ORANGE_ULTRA_LIGHT,light:dy.ORANGE_PALE,main:dy.ORANGE,dark:dy.ORANGE_DARK,extraDark:dy.ORANGE_EXTRA_DARK,contrastText:dy.WHITE},success:{ultraLight:dy.GREEN_ULTRA_LIGHT,light:dy.GREEN_PALE,main:dy.GREEN,dark:dy.GREEN_DARK,extraDark:dy.GREEN_EXTRA_DARK,contrastText:dy.WHITE},info:{ultraLight:dy.BLUE_ULTRA_LIGHT,light:dy.BLUE_PALE,main:dy.BLUE,dark:dy.BLUE_DARK,extraDark:dy.BLUE_EXTRA_DARK,contrastText:dy.WHITE},text:{primary:dy.TEXT_PRIMARY,secondary:dy.TEXT_SECONDARY,disabled:dy.GREYSCALE_0_30},action:{hover:dy.GREYSCALE_0_03,hoverOpacity:.03,selected:dy.GREYSCALE_0_05,selectedOpacity:.05,focus:dy.MISC_FOCUS_BORDER},amethyst:{ultraLight:dy.WHITE,main:dy.PURPLE,light:dy.PURPLE_PALE,dark:dy.PURPLE_DARK,extraDark:dy.GREYSCALE_0_0,contrastText:dy.WHITE},background:{paper:dy.WHITE,default:dy.GREYSCALE_95},divider:dy.GREYSCALE_0_15}),Ny=(e,t=!1)=>({components:qy(0,t),palette:jy(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:fy,fontWeightLight:by,fontWeightRegular:vy,fontWeightMedium:yy,fontWeightBold:xy,htmlFontSize:fy,fontFamily:Sy.FONT_FAMILY,button:{fontWeight:yy,fontSize:fy,textTransform:"none"},body1:{fontSize:hy,lineHeight:"24px"},body2:{fontSize:fy,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:my,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:hy,fontWeight:yy,lineHeight:"16px"},h6:{fontSize:fy,fontWeight:yy,lineHeight:"16px"},caption:{color:dy.TEXT_SECONDARY},subtitle1:{fontSize:fy,color:dy.TEXT_SECONDARY},subtitle2:{fontSize:py,color:dy.TEXT_SECONDARY}},shape:{borderRadius:gy}}),Fy={...cy};function zy(e,t){return e.unstable_is?e.unstable_is(t):t===e}function $y(e){return"init"in e}function Wy(e){return!!e.write}function By(e){return"v"in e||"e"in e}function Gy(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Hy=new WeakMap;function Vy(e){var t;return Yy(e)&&!!(null==(t=Hy.get(e))?void 0:t[0])}function Uy(e,t){let r=Hy.get(e);if(!r){r=[!0,new Set],Hy.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function Yy(e){return"function"==typeof(null==e?void 0:e.then)}function Ky(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function Xy(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])r.has(t)&&o.add(t);for(const e of t.p)o.add(e);return o}const Jy=(e,t,...r)=>t.read(...r),Zy=(e,t,...r)=>t.write(...r),Qy=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},ex=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},tx=(e,r)=>{const n=mx(e),o=n[0],i=n[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let a=o.get(r);return a||(a={d:new Map,p:new Set,n:0},o.set(r,a),null==i||i(e,r)),a},rx=e=>{const t=mx(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},nx=e=>{const r=mx(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of Xy(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},ox=(e,r)=>{var n;const o=mx(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=c(e,r);if(By(g)){if(i.has(r)&&a.get(r)!==g.n)return g;if(Array.from(g.d).every((([t,r])=>f(e,t).n===r)))return g}g.d.clear();let b,v,y=!0;function x(){i.has(r)&&(m(e,r),p(e),d(e))}const S={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return"production"===(t.meta.env?t.meta.env.MODE:void 0)||Wy(r)||console.warn("setSelf function cannot be used with read-only atom"),!v&&Wy(r)&&(v=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&y&&console.warn("setSelf function cannot be called in sync"),!y)try{return h(e,r,...n)}finally{p(e),d(e)}}),v}},w=g.n;try{const t=u(e,r,(function(t){var n;if(zy(r,t)){const r=c(e,t);if(!By(r)){if(!$y(t))throw new Error("no atom init");cx(e,t,t.init)}return Gy(r)}const o=f(e,t);try{return Gy(o)}finally{g.d.set(t,o.n),Vy(g.v)&&Ky(r,g.v,o),null==(n=i.get(t))||n.t.add(r),y||x()}}),S);return cx(e,r,t),Yy(t)&&(Uy(t,(()=>null==b?void 0:b.abort())),t.then(x,x)),g}catch(e){return delete g.v,g.e=e,++g.n,g}finally{y=!1,w!==g.n&&a.get(r)===w&&(a.set(r,g.n),s.add(r),null==(n=l.c)||n.call(l,r))}},ix=(e,t)=>{const r=mx(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of Xy(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},ax=(e,t,...r)=>{const n=mx(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[17];let f=!0;const h=t=>Gy(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(zy(t,r)){if(!$y(r))throw new Error("atom not writable");const t=c.n,s=n[0];return cx(e,r,s),p(e,r),void(t!==c.n&&(o.add(r),null==(a=i.c)||a.call(i,r),d(e,r)))}return ax(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},sx=(e,t)=>{var r;const n=mx(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!Vy(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),null==(r=a.c)||r.call(a,n),l(e,n))}for(const r of p.d||[])if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},lx=(e,t)=>{var r;const n=mx(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=l(e,t);let h=o.get(t);if(!h){d(e,t);for(const r of f.d.keys()){lx(e,r).t.add(t)}if(h={l:new Set,d:new Set(f.d.keys()),t:new Set},o.set(t,h),null==(r=a.m)||r.call(a,t),Wy(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(h.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}}return h},ux=(e,t)=>{var r;const n=mx(e),o=n[1],i=n[5],a=n[6],s=n[11],l=n[19],u=s(e,t);let c=o.get(t);if(!c||c.l.size||Array.from(c.t).some((e=>{var r;return null==(r=o.get(e))?void 0:r.d.has(t)})))return c;c.u&&i.add(c.u),c=void 0,o.delete(t),null==(r=a.u)||r.call(a,t);for(const r of u.d.keys()){const n=l(e,r);null==n||n.t.delete(t)}},cx=(e,t,r)=>{const n=mx(e)[11],o=n(e,t),i="v"in o,a=o.v;if(Yy(r))for(const i of o.d.keys())Ky(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,Yy(a)&&function(e){const t=Hy.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},dx=(e,t)=>Gy((0,mx(e)[14])(e,t)),px=(e,t,...r)=>{const n=mx(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},fx=(e,t,r)=>{const n=mx(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},hx=new WeakMap;function mx(e){const r=hx.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r}let gx,bx=0;function vx(e,r){const n="atom"+ ++bx,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=yx,o.write=xx),r&&(o.write=r),o}function yx(e){return e(this)}function xx(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function Sx(){return function(...e){const t={get:e=>(0,mx(t)[21])(t,e),set:(e,...r)=>(0,mx(t)[22])(t,e,...r),sub:(e,r)=>(0,mx(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Jy,Zy,Qy,ex,tx,rx,nx,ox,ix,ax,sx,lx,ux,cx,dx,px,fx].map(((t,r)=>e[r]||t));return hx.set(t,Object.freeze(r)),t}()}const wx=c(void 0);function Cx(e){return n(wx)||(gx||(gx=Sx(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=gx),globalThis.__JOTAI_DEFAULT_STORE__!==gx&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),gx)}function Ex({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=Sx()),o(wx.Provider,{value:t||r.current},e)}const Rx=e=>"function"==typeof(null==e?void 0:e.then),Mx=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},Ax=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Mx(e),e)}),Ix=new WeakMap,kx=(e,t)=>{let r=Ix.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();Rx(e)?(Ix.set(e,r),i=e,e.then(a(e),s(e)),Uy(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),Uy(e,l)})),Ix.set(e,r)),r};function Lx(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=Cx(),[[a,s,l],u]=d((t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]}),void 0,(()=>[i.get(e),i,e]));let c=a;if(s===i&&l===e||(u(),c=i.get(e)),p((()=>{const t=i.sub(e,(()=>{if(o)try{const t=i.get(e);Rx(t)&&Mx(kx(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),Rx(c)){const t=kx(c,(()=>i.get(e)));return o&&Mx(t),Ax(t)}return c}function Px(e,r){const n=Cx();return h(((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)}),[n,e])}function Dx(e,t){return[Lx(e),Px(e)]}const _x=Symbol("production"!==(t.meta.env?t.meta.env.MODE:void 0)?"RESET":"");function Ox(e,t){let r=null;const n=new Map,o=new Set,i=o=>{let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!(null==r?void 0:r(s[1],o)))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l},a=(e,t,r)=>{for(const n of o)n({type:e,param:t,atom:r})};return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const Tx=new WeakMap;const qx=e=>{let t=Tx.get(e);return t||(t=new WeakSet,Tx.set(e,t)),t},jx=vx(),Nx=vx(),Fx=vx(),zx=vx(),$x=vx((e=>e(zx)?.translate??(e=>e))),Wx=vx(""),Bx=vx((e=>{const t=e(Wx).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)})),Gx=function(e){const r=Symbol(),n=vx(r);"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(n.debugPrivate=!0);const o=vx(((t,o)=>{const i=t(n);return i!==r?i:e(t,o)}),((e,t,i)=>{const a="function"==typeof i?i(e(o)):i;t(n,a===_x?r:a)}));return o}((e=>{const t=e(Nx),r=e(Fx),n=new Map;return t?.qHyperCube.qDimensionInfo.forEach((({cId:e})=>{n.set(e,!0)})),t?.qHyperCube.qMeasureInfo.forEach((({cId:e})=>{n.set(e,!0)})),r?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach((({qDef:{cId:e}})=>{n.set(e,!1)})),r?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach((({qDef:{cId:e}})=>{n.set(e,!1)})),n})),Hx=Ox((e=>vx((t=>t(Gx).get(e)??!1),((t,r,n)=>{r(Gx,(t=>{const r=new Map(t);return r.set(e,n),r}))})))),Vx=({props:e,children:t})=>(function(e){const t=Cx(),r=qx(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[jx,e.args.model],[Nx,e.args.model.layout],[zx,e.args.apis],[Fx,e.args.properties]]),t);function Ux(e){return"init"in e}function Yx(e){return!!e.write}function Kx(e){return"v"in e||"e"in e}function Xx(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Jx=new WeakMap;function Zx(e){var t;return eS(e)&&!!(null==(t=Jx.get(e))?void 0:t[0])}function Qx(e,t){let r=Jx.get(e);if(!r){r=[!0,new Set],Jx.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function eS(e){return"function"==typeof(null==e?void 0:e.then)}function tS(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function rS(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])r.has(t)&&o.add(t);for(const e of t.p)o.add(e);return o}const nS=(e,t,...r)=>t.read(...r),oS=(e,t,...r)=>t.write(...r),iS=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},aS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},sS=(e,r)=>{const n=SS(e),o=n[0],i=n[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let a=o.get(r);return a||(a={d:new Map,p:new Set,n:0},o.set(r,a),null==i||i(e,r)),a},lS=e=>{const t=SS(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},uS=e=>{const r=SS(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of rS(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},cS=(e,r)=>{var n,o;const i=SS(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],b=d(e,r);if(Kx(b)){if(a.has(r)&&s.get(r)!==b.n)return b;if(Array.from(b.d).every((([t,r])=>h(e,t).n===r)))return b}b.d.clear();let v,y,x=!0;function S(){a.has(r)&&(g(e,r),f(e),p(e))}const w={get signal(){return v||(v=new AbortController),v.signal},get setSelf(){return"production"===(t.meta.env?t.meta.env.MODE:void 0)||Yx(r)||console.warn("setSelf function cannot be used with read-only atom"),!y&&Yx(r)&&(y=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&x&&console.warn("setSelf function cannot be called in sync"),!x)try{return m(e,r,...n)}finally{f(e),p(e)}}),y}},C=b.n;try{const t=c(e,r,(function(t){var n;if(t===r){const r=d(e,t);if(!Kx(r)){if(!Ux(t))throw new Error("no atom init");gS(e,t,t.init)}return Xx(r)}const o=h(e,t);try{return Xx(o)}finally{b.d.set(t,o.n),Zx(b.v)&&tS(r,b.v,o),null==(n=a.get(t))||n.t.add(r),x||S()}}),w);return gS(e,r,t),eS(t)&&(Qx(t,(()=>null==v?void 0:v.abort())),t.then(S,S)),null==(n=u.r)||n.call(u,r),b}catch(e){return delete b.v,b.e=e,++b.n,b}finally{x=!1,C!==b.n&&s.get(r)===C&&(s.set(r,b.n),l.add(r),null==(o=u.c)||o.call(u,r))}},dS=(e,t)=>{const r=SS(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of rS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},pS=(e,t,...r)=>{const n=SS(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[17];let f=!0;const h=t=>Xx(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!Ux(r))throw new Error("atom not writable");const t=c.n,s=n[0];return gS(e,r,s),p(e,r),void(t!==c.n&&(o.add(r),null==(a=i.c)||a.call(i,r),d(e,r)))}return pS(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},fS=(e,t)=>{var r;const n=SS(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!Zx(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),null==(r=a.c)||r.call(a,n),l(e,n))}for(const r of p.d||[])if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},hS=(e,t)=>{var r;const n=SS(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=l(e,t);let h=o.get(t);if(!h){d(e,t);for(const r of f.d.keys()){hS(e,r).t.add(t)}if(h={l:new Set,d:new Set(f.d.keys()),t:new Set},o.set(t,h),null==(r=a.m)||r.call(a,t),Yx(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(h.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}}return h},mS=(e,t)=>{var r;const n=SS(e),o=n[1],i=n[5],a=n[6],s=n[11],l=n[19],u=s(e,t);let c=o.get(t);if(!c||c.l.size||Array.from(c.t).some((e=>{var r;return null==(r=o.get(e))?void 0:r.d.has(t)})))return c;c.u&&i.add(c.u),c=void 0,o.delete(t),null==(r=a.u)||r.call(a,t);for(const r of u.d.keys()){const n=l(e,r);null==n||n.t.delete(t)}},gS=(e,t,r)=>{const n=SS(e)[11],o=n(e,t),i="v"in o,a=o.v;if(eS(r))for(const i of o.d.keys())tS(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,eS(a)&&function(e){const t=Jx.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},bS=(e,t)=>Xx((0,SS(e)[14])(e,t)),vS=(e,t,...r)=>{const n=SS(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},yS=(e,t,r)=>{const n=SS(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},xS=new WeakMap,SS=e=>{const r=xS.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};let wS,CS=0;function ES(e,r){const n="atom"+ ++CS,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=RS,o.write=MS),o}function RS(e){return e(this)}function MS(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function AS(){return function(...e){const t={get:e=>(0,SS(t)[21])(t,e),set:(e,...r)=>(0,SS(t)[22])(t,e,...r),sub:(e,r)=>(0,SS(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},nS,oS,iS,aS,sS,lS,uS,cS,dS,pS,fS,hS,mS,gS,bS,vS,yS,void 0].map(((t,r)=>e[r]||t));return xS.set(t,Object.freeze(r)),t}()}const IS=c(void 0);function kS(e){return n(IS)||(wS||(wS=AS(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=wS),globalThis.__JOTAI_DEFAULT_STORE__!==wS&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),wS)}function LS({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=AS()),o(IS.Provider,{value:t||r.current},e)}const PS=e=>"function"==typeof(null==e?void 0:e.then),DS=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},_S=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(DS(e),e)}),OS=new WeakMap,TS=(e,t)=>{let r=OS.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();PS(e)?(OS.set(e,r),i=e,e.then(a(e),s(e)),Qx(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),Qx(e,l)})),OS.set(e,r)),r};function qS(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=kS(),[[a,s,l],u]=d((t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]}),void 0,(()=>[i.get(e),i,e]));let c=a;if(s===i&&l===e||(u(),c=i.get(e)),p((()=>{const t=i.sub(e,(()=>{if(o)try{const t=i.get(e);PS(t)&&DS(TS(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),PS(c)){const t=TS(c,(()=>i.get(e)));return o&&DS(t),_S(t)}return c}Symbol("production"!==(t.meta.env?t.meta.env.MODE:void 0)?"RESET":"");!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const jS=new WeakMap;const NS=e=>{let t=jS.get(e);return t||(t=new WeakSet,jS.set(e,t)),t},FS=({itemIndex:e,sectionIndex:t})=>e?`${t}-${e}`:`${t}`,zS=ES(),$S=ES((e=>e(zS)?.numberOfSections??0)),WS=ES((e=>e(zS)?.numberOfItemsInSection??(()=>0))),BS=ES((e=>e(zS)?.keyExtractor??FS)),GS=ES((e=>e(zS)?.onDragOver)),HS=ES((e=>{const t=e(zS)?.children;return Array.isArray(t)?t[1]:t})),VS=ES((e=>{const t=e(zS)?.children;if(Array.isArray(t))return t[0]})),US=ES((e=>e(zS)?.onClick)),YS=({props:e,children:t})=>(function(e){const t=kS(),r=NS(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[zS,e]]),t);var KS=Symbol.for("preact-signals");function XS(){if(tw>1)tw--;else{for(var e,t=!1;void 0!==ew;){var r=ew;for(ew=void 0,rw++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&sw(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(rw=0,tw--,t)throw e}}function JS(e){if(tw>0)return e();tw++;try{return e()}finally{XS()}}var ZS=void 0;function QS(e){var t=ZS;ZS=void 0;try{return e()}finally{ZS=t}}var ew=void 0,tw=0,rw=0,nw=0;function ow(e){if(void 0!==ZS){var t=e.n;if(void 0===t||t.t!==ZS)return t={i:0,S:e,p:ZS.s,n:void 0,t:ZS,e:void 0,x:void 0,r:t},void 0!==ZS.s&&(ZS.s.n=t),ZS.s=t,e.n=t,32&ZS.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=ZS.s,t.n=void 0,ZS.s.n=t,ZS.s=t),t}}function iw(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function aw(e,t){return new iw(e,t)}function sw(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function lw(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function uw(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function cw(e,t){iw.call(this,void 0),this.x=e,this.s=void 0,this.g=nw-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function dw(e,t){return new cw(e,t)}function pw(e){var t=e.u;if(e.u=void 0,"function"==typeof t){tw++;var r=ZS;ZS=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,fw(e),t}finally{ZS=r,XS()}}}function fw(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,pw(e)}function hw(e){if(ZS!==this)throw new Error("Out-of-order effect");uw(this),ZS=e,this.f&=-2,8&this.f&&fw(this),XS()}function mw(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function gw(e,t){var r=new mw(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}iw.prototype.brand=KS,iw.prototype.h=function(){return!0},iw.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:QS((function(){var e;null==(e=t.W)||e.call(t)})))},iw.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&QS((function(){var e;null==(e=t.Z)||e.call(t)})))}},iw.prototype.subscribe=function(e){var t=this;return gw((function(){var r=t.value,n=ZS;ZS=void 0;try{e(r)}finally{ZS=n}}),{name:"sub"})},iw.prototype.valueOf=function(){return this.value},iw.prototype.toString=function(){return this.value+""},iw.prototype.toJSON=function(){return this.value},iw.prototype.peek=function(){var e=ZS;ZS=void 0;try{return this.value}finally{ZS=e}},Object.defineProperty(iw.prototype,"value",{get:function(){var e=ow(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(rw>100)throw new Error("Cycle detected");this.v=e,this.i++,nw++,tw++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{XS()}}}}),cw.prototype=new iw,cw.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===nw)return!0;if(this.g=nw,this.f|=1,this.i>0&&!sw(this))return this.f&=-2,!0;var e=ZS;try{lw(this),ZS=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return ZS=e,uw(this),this.f&=-2,!0},cw.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}iw.prototype.S.call(this,e)},cw.prototype.U=function(e){if(void 0!==this.t&&(iw.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},cw.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(cw.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ow(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),mw.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},mw.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,pw(this),lw(this),tw++;var e=ZS;return ZS=this,hw.bind(this,e)},mw.prototype.N=function(){2&this.f||(this.f|=2,this.o=ew,ew=this)},mw.prototype.d=function(){this.f|=8,1&this.f||fw(this)},mw.prototype.dispose=function(){this.d()};var bw,vw,yw,xw,Sw,ww,Cw,Ew,Rw,Mw,Aw,Iw,kw,Lw,Pw,Dw,_w,Ow,Tw,qw,jw=Object.create,Nw=Object.defineProperty,Fw=Object.defineProperties,zw=Object.getOwnPropertyDescriptor,$w=Object.getOwnPropertyDescriptors,Ww=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Gw=Object.prototype.propertyIsEnumerable,Hw=e=>{throw TypeError(e)},Vw=(e,t,r)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Uw=(e,t)=>Nw(e,"name",{value:t,configurable:!0}),Yw=["class","method","getter","setter","accessor","field","value","get","set"],Kw=e=>void 0!==e&&"function"!=typeof e?Hw("Function expected"):e,Xw=(e,t,r,n,o)=>({kind:Yw[e],name:t,metadata:n,addInitializer:e=>r._?Hw("Already initialized"):o.push(Kw(e||null))}),Jw=(e,t)=>{return Vw(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},Zw=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Qw=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Yw[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&zw(d<4?o:{get[r](){return rC(this,i)},set[r](e){return oC(this,i,e)}},r));d?f&&d<4&&Uw(i,(d>2?"set ":d>1?"get ":"")+r):Uw(o,r);for(var y=n.length-1;y>=0;y--)u=Xw(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>tC(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?rC:iC)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>oC(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?Kw(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Hw("Object expected"):(Kw(a=s.get)&&(v.get=a),Kw(a=s.set)&&(v.set=a),Kw(a=s.init)&&g.unshift(a));return d||Jw(e,o),v&&Nw(o,r,v),f?4^d?i:v:o},eC=(e,t,r)=>t.has(e)||Hw("Cannot "+r),tC=(e,t)=>Object(t)!==t?Hw('Cannot use the "in" operator on this value'):e.has(t),rC=(e,t,r)=>(eC(e,t,"read from private field"),r?r.call(e):t.get(e)),nC=(e,t,r)=>t.has(e)?Hw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),oC=(e,t,r,n)=>(eC(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),iC=(e,t,r)=>(eC(e,t,"access private method"),r);function aC(e,t){if(t){let r;return dw((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return dw(e)}function sC(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!sC(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!sC(e[r],t[r])));return!o}return!1}function lC({get:e},t){return{init:e=>aw(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function uC(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=aC(e.bind(this)),r.set(this,t)),t.value}}function cC(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>Fw(e,$w(t)))(((e,t)=>{for(var r in t||(t={}))Bw.call(t,r)&&Vw(e,r,t[r]);if(Ww)for(var r of Ww(t))Gw.call(t,r)&&Vw(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function dC(...e){const t=e.map(gw);return()=>t.forEach((e=>e()))}ww=[lC],Sw=[lC],xw=[lC],yw=[cC()],vw=[cC()],bw=[cC()];var pC,fC=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Zw(Cw,5,this),nC(this,Iw),nC(this,Ew,Zw(Cw,8,this)),Zw(Cw,11,this),nC(this,kw,Zw(Cw,12,this)),Zw(Cw,15,this),nC(this,_w,Zw(Cw,16,this)),Zw(Cw,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return rC(this,Iw,Tw)}get initial(){return rC(this,Iw,Mw)}get previous(){return rC(this,Iw,Pw)}set current(e){const t=QS((()=>rC(this,Iw,Tw)));e&&t&&this.equals(t,e)||JS((()=>{rC(this,Iw,Mw)||oC(this,Iw,e,Aw),oC(this,Iw,t,Dw),oC(this,Iw,e,qw)}))}reset(e=this.defaultValue){JS((()=>{oC(this,Iw,void 0,Dw),oC(this,Iw,e,Aw),oC(this,Iw,e,qw)}))}};function hC(e){return QS((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}Cw=[,,,jw(null)],Ew=new WeakMap,Iw=new WeakSet,kw=new WeakMap,_w=new WeakMap,Rw=Qw(Cw,20,"#initial",ww,Iw,Ew),Mw=Rw.get,Aw=Rw.set,Lw=Qw(Cw,20,"#previous",Sw,Iw,kw),Pw=Lw.get,Dw=Lw.set,Ow=Qw(Cw,20,"#current",xw,Iw,_w),Tw=Ow.get,qw=Ow.set,Qw(Cw,2,"current",yw,fC),Qw(Cw,2,"initial",vw,fC),Qw(Cw,2,"previous",bw,fC),Jw(Cw,fC);pC=new WeakMap;var mC,gC,bC,vC,yC,xC=Object.create,SC=Object.defineProperty,wC=Object.getOwnPropertyDescriptor,CC=Object.getOwnPropertySymbols,EC=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,MC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),AC=e=>{throw TypeError(e)},IC=Math.pow,kC=(e,t,r)=>t in e?SC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LC=["class","method","getter","setter","accessor","field","value","get","set"],PC=e=>void 0!==e&&"function"!=typeof e?AC("Function expected"):e,DC=(e,t,r,n,o)=>({kind:LC[e],name:t,metadata:n,addInitializer:e=>r._?AC("Already initialized"):o.push(PC(e||null))}),_C=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=LC[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,wC(o,r)),h=n.length-1;h>=0;h--)(l=DC(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,PC(a)&&(f[d]=a);return f&&SC(o,r,f),o},OC=(e,t,r)=>t.has(e)||AC("Cannot "+r),TC=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},qC=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))EC.call(t,r)&&kC(e,r,t[r]);if(CC)for(var r of CC(t))RC.call(t,r)&&kC(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new TC((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return TC.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var jC,NC=class extends(bC=fC,gC=[uC],mC=[uC],bC){constructor(e){var t,r,n;super(TC.from(e),((e,t)=>TC.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(yC,5,this),t=this,n=0,(r=vC).has(t)?AC("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return TC.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=TC.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(OC(a=this,s=vC,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);JS((()=>{((e,t,r)=>{OC(e,t,"write to private field"),t.set(e,r)})(this,vC,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(TC.from(e)),this.velocity={x:0,y:0}}};function FC({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(IC(n,2)+IC(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}yC=(e=>{var t;return[,,,xC(null!=(t=null==e?void 0:e[MC("metadata")])?t:null)]})(bC),vC=new WeakMap,_C(yC,2,"delta",gC,NC),_C(yC,2,"direction",mC,NC),jC=yC,kC(NC,MC("metadata"),jC[3]);var zC,$C,WC,BC,GC=(e=>(e.Horizontal="x",e.Vertical="y",e))(GC||{}),HC=Object.values(GC),VC=Object.create,UC=Object.defineProperty,YC=Object.defineProperties,KC=Object.getOwnPropertyDescriptor,XC=Object.getOwnPropertyDescriptors,JC=Object.getOwnPropertySymbols,ZC=Object.prototype.hasOwnProperty,QC=Object.prototype.propertyIsEnumerable,eE=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),tE=e=>{throw TypeError(e)},rE=(e,t,r)=>t in e?UC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nE=(e,t)=>{for(var r in t||(t={}))ZC.call(t,r)&&rE(e,r,t[r]);if(JC)for(var r of JC(t))QC.call(t,r)&&rE(e,r,t[r]);return e},oE=(e,t)=>YC(e,XC(t)),iE=(e,t)=>UC(e,"name",{value:t,configurable:!0}),aE=(e,t)=>{var r={};for(var n in e)ZC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&JC)for(var n of JC(e))t.indexOf(n)<0&&QC.call(e,n)&&(r[n]=e[n]);return r},sE=e=>{var t;return[,,,VC(null!=(t=null==e?void 0:e[eE("metadata")])?t:null)]},lE=["class","method","getter","setter","accessor","field","value","get","set"],uE=e=>void 0!==e&&"function"!=typeof e?tE("Function expected"):e,cE=(e,t,r,n,o)=>({kind:lE[e],name:t,metadata:n,addInitializer:e=>r._?tE("Already initialized"):o.push(uE(e||null))}),dE=(e,t)=>rE(t,eE("metadata"),e[3]),pE=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},fE=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=lE[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&KC(d<4?o:{get[r](){return gE(this,i)},set[r](e){return vE(this,i,e)}},r));d?f&&d<4&&iE(i,(d>2?"set ":d>1?"get ":"")+r):iE(o,r);for(var y=n.length-1;y>=0;y--)u=cE(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>mE(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?gE:yE)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>vE(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?uE(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?tE("Object expected"):(uE(a=s.get)&&(v.get=a),uE(a=s.set)&&(v.set=a),uE(a=s.init)&&g.unshift(a));return d||dE(e,o),v&&UC(o,r,v),f?4^d?i:v:o},hE=(e,t,r)=>t.has(e)||tE("Cannot "+r),mE=(e,t)=>Object(t)!==t?tE('Cannot use the "in" operator on this value'):e.has(t),gE=(e,t,r)=>(hE(e,t,"read from private field"),r?r.call(e):t.get(e)),bE=(e,t,r)=>t.has(e)?tE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),vE=(e,t,r,n)=>(hE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),yE=(e,t,r)=>(hE(e,t,"access private method"),r);function xE(e,t){return{plugin:e,options:t}}function SE(e){return t=>xE(e,t)}function wE(e){return"function"==typeof e?{plugin:e,options:void 0}:e}zC=[lC];var CE=class{constructor(e,t){this.manager=e,this.options=t,bE(this,WC,pE($C,8,this,!1)),pE($C,11,this),bE(this,BC,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return QS((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=gw(e.bind(this));return gE(this,BC).add(t),t}destroy(){gE(this,BC).forEach((e=>e()))}static configure(e){return xE(this,e)}};$C=sE(null),WC=new WeakMap,BC=new WeakMap,fE($C,4,"disabled",zC,CE,WC),dE($C,CE);var EE,RE=class extends CE{},ME=class{constructor(e){this.manager=e,this.instances=new Map,bE(this,EE,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(wE).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of gE(this,EE))if(!r.includes(e)){if(e.prototype instanceof RE)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);vE(this,EE,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function AE(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}EE=new WeakMap;var IE,kE,LE=[],PE=class extends CE{constructor(e){super(e),bE(this,IE),bE(this,kE),this.computeCollisions=this.computeCollisions.bind(this),vE(this,kE,aw(LE)),this.destroy=dC((()=>{const e=this.computeCollisions(),t=QS((()=>this.manager.dragOperation.position.current));if(e!==LE){const e=gE(this,IE);if(vE(this,IE,t),e&&t.x==e.x&&t.y==e.y)return}else vE(this,IE,void 0);gE(this,kE).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){QS((()=>{e?gE(this,kE).value=this.computeCollisions():vE(this,IE,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return LE;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=QS((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?LE:(s.sort(AE),s)}get collisions(){return gE(this,kE).value}};IE=new WeakMap,kE=new WeakMap;var DE=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},_E=class extends DE{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function OE(e,t=!0){let r=!1;return oE(nE({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var TE,qE,jE,NE,FE,zE,$E,WE,BE,GE=class extends RE{constructor(e){super(e);let t=[];this.destroy=dC((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=OE({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;QS((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},HE=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(HE||{}),VE=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(VE||{});$E=[lC],zE=[uC],FE=[uC],NE=[uC],jE=[uC],qE=[uC],TE=[uC];var UE=class{constructor(){pE(WE,5,this),bE(this,BE,pE(WE,8,this,"idle")),pE(WE,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};WE=sE(null),BE=new WeakMap,fE(WE,4,"value",$E,UE,BE),fE(WE,2,"current",zE,UE),fE(WE,2,"idle",FE,UE),fE(WE,2,"initializing",NE,UE),fE(WE,2,"initialized",jE,UE),fE(WE,2,"dragging",qE,UE),fE(WE,2,"dropped",TE,UE),dE(WE,UE);var YE,KE,XE,JE,ZE,QE,eR,tR,rR,nR=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return QS((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=OE({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return QS((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;JS((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=OE({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return QS((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=OE({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return QS((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=QS((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=gw((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};JE=[lC],XE=[lC],KE=[lC],YE=[lC];var oR=class{constructor(e,t){bE(this,QE,pE(ZE,8,this)),pE(ZE,11,this),bE(this,eR,pE(ZE,12,this)),pE(ZE,15,this),bE(this,tR,pE(ZE,16,this)),pE(ZE,19,this),bE(this,rR,pE(ZE,20,this)),pE(ZE,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};ZE=sE(null),QE=new WeakMap,eR=new WeakMap,tR=new WeakMap,rR=new WeakMap,fE(ZE,4,"manager",JE,oR,QE),fE(ZE,4,"id",XE,oR,eR),fE(ZE,4,"data",KE,oR,tR),fE(ZE,4,"disabled",YE,oR,rR),dE(ZE,oR);var iR,aR,sR,lR,uR,cR,dR,pR,fR,hR,mR,gR,bR,vR,yR,xR,SR,wR,CR,ER,RR,MR,AR,IR,kR=class{constructor(){this.map=aw(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=dC(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},LR=class extends(dR=oR,cR=[lC],uR=[lC],lR=[lC],sR=[uC],aR=[uC],iR=[uC],dR){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=aE(r,["modifiers","type","sensors"]);super(a,t),pE(pR,5,this),bE(this,fR,pE(pR,8,this)),pE(pR,11,this),bE(this,hR,pE(pR,12,this)),pE(pR,15,this),bE(this,mR,pE(pR,16,this,this.isDragSource?"dragging":"idle")),pE(pR,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};pR=sE(dR),fR=new WeakMap,hR=new WeakMap,mR=new WeakMap,fE(pR,4,"type",cR,LR,fR),fE(pR,4,"modifiers",uR,LR,hR),fE(pR,4,"status",lR,LR,mR),fE(pR,2,"isDropping",sR,LR),fE(pR,2,"isDragging",aR,LR),fE(pR,2,"isDragSource",iR,LR),dE(pR,LR);var PR=class extends(wR=oR,SR=[lC],xR=[lC],yR=[lC],vR=[lC],bR=[lC],gR=[uC],wR){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(aE(r,["accept","collisionDetector","collisionPriority","type"]),t),pE(CR,5,this),bE(this,ER,pE(CR,8,this)),pE(CR,11,this),bE(this,RR,pE(CR,12,this)),pE(CR,15,this),bE(this,MR,pE(CR,16,this)),pE(CR,19,this),bE(this,AR,pE(CR,20,this)),pE(CR,23,this),bE(this,IR,pE(CR,24,this)),pE(CR,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};CR=sE(wR),ER=new WeakMap,RR=new WeakMap,MR=new WeakMap,AR=new WeakMap,IR=new WeakMap,fE(CR,4,"accept",SR,PR,ER),fE(CR,4,"type",xR,PR,RR),fE(CR,4,"collisionDetector",yR,PR,MR),fE(CR,4,"collisionPriority",vR,PR,AR),fE(CR,4,"shape",bR,PR,IR),fE(CR,2,"isDropTarget",gR,PR),dE(CR,PR);var DR,_R,OR,TR,qR,jR,NR,FR,zR,$R,WR,BR,GR,HR,VR,UR,YR,KR,XR,JR=class extends CE{constructor(e,t){super(e,t),this.manager=e,this.options=t}},ZR=class extends CE{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},QR=class{constructor(e){this.draggables=new kR,this.droppables=new kR,this.plugins=new ME(e),this.sensors=new ME(e),this.modifiers=new ME(e)}register(e,t){if(e instanceof LR)return this.draggables.register(e.id,e);if(e instanceof PR)return this.droppables.register(e.id,e);if(e.prototype instanceof ZR)return this.modifiers.register(e,t);if(e.prototype instanceof JR)return this.sensors.register(e,t);if(e.prototype instanceof CE)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof oR)return e instanceof LR?this.draggables.unregister(e.id,e):e instanceof PR?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof ZR)return this.modifiers.unregister(e);if(e.prototype instanceof JR)return this.sensors.unregister(e);if(e.prototype instanceof CE)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};zR=[uC],FR=[lC],NR=[lC],jR=[lC],qR=[lC],TR=[lC],OR=[uC],_R=[uC],DR=[uC];var eM=class{constructor(e){pE(GR,5,this),bE(this,$R),bE(this,WR),bE(this,BR,new fC(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new UE,bE(this,HR,pE(GR,8,this,!1)),pE(GR,11,this),bE(this,VR,pE(GR,12,this,null)),pE(GR,15,this),bE(this,UR,pE(GR,16,this,null)),pE(GR,19,this),bE(this,YR,pE(GR,20,this,null)),pE(GR,23,this),bE(this,KR,pE(GR,24,this,[])),pE(GR,27,this),this.position=new NC({x:0,y:0}),bE(this,XR,{x:0,y:0}),vE(this,$R,e)}get shape(){const{current:e,initial:t,previous:r}=gE(this,BR);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?gE(this,BR).current=e:gE(this,BR).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=gE(this,$R).registry.draggables.get(t);return r&&vE(this,WR,r),null!=(e=null!=r?r:gE(this,WR))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=gE(this,$R).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(oE(nE({},this.snapshot()),{transform:r}));return vE(this,XR,r),r}snapshot(){return QS((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:gE(this,XR),shape:this.shape?hC(this.shape):null,position:hC(this.position),status:hC(this.status),canceled:this.canceled})))}reset(){JS((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,gE(this,BR).reset(),this.position.reset({x:0,y:0}),vE(this,XR,{x:0,y:0}),this.modifiers=[]}))}};GR=sE(null),$R=new WeakMap,WR=new WeakMap,BR=new WeakMap,HR=new WeakMap,VR=new WeakMap,UR=new WeakMap,YR=new WeakMap,KR=new WeakMap,XR=new WeakMap,fE(GR,2,"shape",zR,eM),fE(GR,4,"canceled",FR,eM,HR),fE(GR,4,"activatorEvent",NR,eM,VR),fE(GR,4,"sourceIdentifier",jR,eM,UR),fE(GR,4,"targetIdentifier",qR,eM,YR),fE(GR,4,"modifiers",TR,eM,KR),fE(GR,2,"source",OR,eM),fE(GR,2,"target",_R,eM),fE(GR,2,"transform",DR,eM),dE(GR,eM);var tM={get rendering(){return Promise.resolve()}},rM=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=tM}=null!=e?e:{},i=new _E(this),a=new QR(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new nR(this),this.dragOperation=new eM(this),this.collisionObserver=new PE(this),this.plugins=[GE,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=dC((()=>{var e,t,r;const n=QS((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=wE(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},nM=e=>{throw TypeError(e)},oM=(e,t,r)=>t.has(e)||nM("Cannot "+r),iM=(e,t,r)=>(oM(e,t,"read from private field"),t.get(e)),aM=(e,t,r)=>t.has(e)?nM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),sM=(e,t,r,n)=>(oM(e,t,"write to private field"),t.set(e,r),r),lM=(e,t,r)=>(oM(e,t,"access private method"),r);function uM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function cM(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(uM(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function dM(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}var pM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function fM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function hM(e){return"nodeType"in e}function mM(e){var t,r,n;return e?fM(e)?e:hM(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function gM(e){const{Document:t}=mM(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function bM(e){return!(!e||fM(e))&&(e instanceof mM(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function vM(e){return e instanceof mM(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function yM(e){return e?fM(e)?e.document:hM(e)?gM(e)?e:bM(e)||vM(e)?e.ownerDocument:document:document:document}function xM(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function SM(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!xM(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function wM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function CM(e){return"value"in e}function EM(e){return"CANVAS"===e.tagName}function RM(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return RM(e,{x:t-o,y:r-i})}}return n}var MM=new WeakMap,AM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(t)?t:[t],n=[];for(const t of r){const{type:r,listener:o,options:i}=t,a=[e,t];e.addEventListener(r,o,i),this.entries.add(a),n.push(a)}return function(){for(const[e,{type:t,listener:r,options:o}]of n)e.removeEventListener(t,r,o)}}};function IM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function kM(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var LM,PM=pM?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},DM=class extends PM{constructor(e){super((t=>{iM(this,LM)?e(t,this):sM(this,LM,!0)})),aM(this,LM,!1)}};LM=new WeakMap;var _M,OM,TM,qM,jM,NM,FM,zM,$M,WM,BM,GM=Array.from({length:100},((e,t)=>t/100)),HM=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,aM(this,$M),this.disconnect=()=>{var e,t,r;sM(this,FM,!0),null==(e=iM(this,TM))||e.disconnect(),null==(t=iM(this,qM))||t.disconnect(),iM(this,jM).disconnect(),null==(r=iM(this,NM))||r.remove()},aM(this,_M,!0),aM(this,OM),aM(this,TM),aM(this,qM),aM(this,jM),aM(this,NM),aM(this,FM,!1),aM(this,zM,kM((()=>{var e,t,r;const{element:n}=this;if(null==(e=iM(this,qM))||e.disconnect(),iM(this,FM)||!iM(this,_M)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=SM(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,sM(this,qM,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:qC.intersectionRatio(r,SM(n)))&&iM(this,zM).call(this)}),{threshold:GM,rootMargin:m,root:o})),iM(this,qM).observe(n),lM(this,$M,WM).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),sM(this,_M,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=SM(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(sM(this,NM,document.createElement("div")),iM(this,NM).style.background="rgba(0,0,0,0.15)",iM(this,NM).style.position="fixed",iM(this,NM).style.pointerEvents="none",o.body.appendChild(iM(this,NM))),sM(this,jM,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=iM(this,_M);sM(this,_M,a),(s||l)&&(u&&!a?(null==(r=iM(this,qM))||r.disconnect(),this.callback(null),null==(n=iM(this,TM))||n.disconnect(),sM(this,TM,void 0),iM(this,NM)&&(iM(this,NM).style.visibility="hidden")):iM(this,zM).call(this),a&&!iM(this,TM)&&(sM(this,TM,new DM(iM(this,zM))),iM(this,TM).observe(e)))}),{threshold:GM,root:o})),iM(this,_M)&&!r.skipInitial&&this.callback(this.boundingClientRect),iM(this,jM).observe(e)}};_M=new WeakMap,OM=new WeakMap,TM=new WeakMap,qM=new WeakMap,jM=new WeakMap,NM=new WeakMap,FM=new WeakMap,zM=new WeakMap,$M=new WeakSet,WM=function(){iM(this,FM)||(lM(this,$M,BM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,iM(this,OM))||(this.callback(this.boundingClientRect),sM(this,OM,this.boundingClientRect)))},BM=function(){if(iM(this,NM)){const{top:e,left:t,width:r,height:n}=SM(this.element);iM(this,NM).style.overflow="hidden",iM(this,NM).style.visibility="visible",iM(this,NM).style.top=`${Math.floor(e)}px`,iM(this,NM).style.left=`${Math.floor(t)}px`,iM(this,NM).style.width=`${Math.floor(r)}px`,iM(this,NM).style.height=`${Math.floor(n)}px`}};var VM,UM,YM,KM,XM=new WeakMap,JM=new WeakMap;function ZM(e,t){let r=XM.get(e);if(!r){const t=new HM(e,(t=>{const r=XM.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),XM.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(XM.delete(e),r.disconnect())}}var QM=class{constructor(e,t,r){this.callback=t,aM(this,VM),aM(this,UM,!1),aM(this,YM),aM(this,KM,kM((e=>{if(!iM(this,UM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of iM(this,YM))if(e.target.contains(t)){this.callback(iM(this,VM).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=IM(e);for(;r;)t.add(r),r=IM(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=ZM(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!JM.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),JM.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=JM.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),JM.delete(n))}):()=>{}}(e,iM(this,KM));sM(this,YM,n),sM(this,VM,new HM(e,t,r)),this.disconnect=()=>{iM(this,UM)||(sM(this,UM,!0),o(),i(),iM(this,VM).disconnect())}}};function eA(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function tA(e){try{eA(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function rA(e){return!(!pM||!e)&&e===yM(e).scrollingElement}function nA(e){const t=mM(e),r=rA(e)?function(e){const{documentElement:t}=yM(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):dM(e),n=rA(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function oA(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=nA(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}VM=new WeakMap,UM=new WeakMap,YM=new WeakMap,KM=new WeakMap;var iA=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},aA=new iA((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),sA=new iA((e=>setTimeout(e,50))),lA=new Map,uA=lA.clear.bind(lA);function cA(e,t=!1){if(!t)return dA(e);let r=lA.get(e);return r||(r=dA(e),lA.set(e,r),sA.schedule(uA),r)}function dA(e){return mM(e).getComputedStyle(e)}var pA={excludeElement:!0};function fA(e,t=pA){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(gM(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!bM(i))return vM(i)?t(i.parentElement):o;if(o.has(i))return o;const a=cA(i,!0);if(n&&i===e||function(e,t=cA(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=cA(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function hA(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=IM(e);for(;n;){if(n===t)return r;const e=dM(n),{x:o,y:i}=mA(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=IM(n)}return r}function mA(e,t=dM(e)){const r=Math.round(t.width),n=Math.round(t.height);if(bM(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=cA(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function gA(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function bA(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=gA(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var vA=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(vA||{}),yA={x:.2,y:.2},xA={x:10,y:10};function SA(e,t,r,n=25,o=yA,i=xA){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=nA(e),f=hA(e),h=bA(cA(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new qC(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function wA(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!bM(e))return e.scrollIntoView();var n=function(e){const[t]=fA(e,{limit:1});return null!=t?t:null}(e);if(!bM(n))return;const o=cA(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function CA({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function EA(e,t=cA(e).translate,r=!0){if(r){const t=cM(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=gA(e);if(t)return t}}}if(t){const e=gA(t);if(e)return e}return{x:0,y:0,z:0}}var RA=new iA((e=>setTimeout(e,0))),MA=new Map,AA=MA.clear.bind(MA);function IA(e,t){const r=function(e){const t=e.ownerDocument;let r=MA.get(t);if(r)return r;r=t.getAnimations(),MA.set(t,r),RA.schedule(AA);const n=r.filter((t=>uM(t.effect)&&t.effect.target===e));return MA.set(e,n),r}(e).filter((e=>{var r,n;if(uM(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var kA=class extends qC{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=hA(e),ignoreTransforms:s,getBoundingClientRect:l=dM}=t,u=IA(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||wM())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=cA(e),b=bA(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=uM(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=bA({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function LA(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var PA=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(LA(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(LA(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(LA(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function DA(e){return!!e&&(e instanceof mM(e).Element||hM(e)&&e.nodeType===Node.ELEMENT_NODE)}function _A(e){if(!e)return!1;const{KeyboardEvent:t}=mM(e.target);return e instanceof t}var OA={};function TA(e){const t=null==OA[e]?0:OA[e]+1;return OA[e]=t,`${e}-${t}`}var qA=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/TC.distance(t.shape.center,r),type:VE.PointerIntersection,priority:HE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=TC.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VE.ShapeIntersection,priority:HE.Normal}}return null})(e)},jA=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?qC.from(n.current.boundingRectangle).corners:void 0,a=qC.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+TC.distance(TC.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:VE.Collision,priority:HE.Normal}},NA=Object.create,FA=Object.defineProperty,zA=Object.defineProperties,$A=Object.getOwnPropertyDescriptor,WA=Object.getOwnPropertyDescriptors,BA=Object.getOwnPropertySymbols,GA=Object.prototype.hasOwnProperty,HA=Object.prototype.propertyIsEnumerable,VA=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),UA=e=>{throw TypeError(e)},YA=(e,t,r)=>t in e?FA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KA=(e,t)=>{for(var r in t||(t={}))GA.call(t,r)&&YA(e,r,t[r]);if(BA)for(var r of BA(t))HA.call(t,r)&&YA(e,r,t[r]);return e},XA=(e,t)=>zA(e,WA(t)),JA=(e,t)=>FA(e,"name",{value:t,configurable:!0}),ZA=(e,t)=>{var r={};for(var n in e)GA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&BA)for(var n of BA(e))t.indexOf(n)<0&&HA.call(e,n)&&(r[n]=e[n]);return r},QA=e=>{var t;return[,,,NA(null!=(t=null==e?void 0:e[VA("metadata")])?t:null)]},eI=["class","method","getter","setter","accessor","field","value","get","set"],tI=e=>void 0!==e&&"function"!=typeof e?UA("Function expected"):e,rI=(e,t,r,n,o)=>({kind:eI[e],name:t,metadata:n,addInitializer:e=>r._?UA("Already initialized"):o.push(tI(e||null))}),nI=(e,t)=>YA(t,VA("metadata"),e[3]),oI=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},iI=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=eI[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&$A(d<4?o:{get[r](){return lI(this,i)},set[r](e){return cI(this,i,e)}},r));d?f&&d<4&&JA(i,(d>2?"set ":d>1?"get ":"")+r):JA(o,r);for(var y=n.length-1;y>=0;y--)u=rI(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>sI(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?lI:dI)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>cI(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?tI(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?UA("Object expected"):(tI(a=s.get)&&(v.get=a),tI(a=s.set)&&(v.set=a),tI(a=s.init)&&g.unshift(a));return d||nI(e,o),v&&FA(o,r,v),f?4^d?i:v:o},aI=(e,t,r)=>t.has(e)||UA("Cannot "+r),sI=(e,t)=>Object(t)!==t?UA('Cannot use the "in" operator on this value'):e.has(t),lI=(e,t,r)=>(aI(e,t,"read from private field"),r?r.call(e):t.get(e)),uI=(e,t,r)=>t.has(e)?UA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),cI=(e,t,r,n)=>(aI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),dI=(e,t,r)=>(aI(e,t,"access private method"),r),pI="button",fI="draggable",hI="dnd-kit-description",mI="dnd-kit-announcement",gI={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},bI={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function vI(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var yI=["dragover","dragmove"];var xI="data-dnd-",SI=`${xI}dropping`,wI="--dnd-",CI=`${xI}dragging`,EI=`${xI}placeholder`,RI=[CI,EI,"popover","aria-pressed","aria-grabbing"],MI=["view-transition-name"],AI=`\n :root [${CI}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${wI}top, 0px) !important;\n left: var(${wI}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${wI}width, auto);\n max-width: var(${wI}width, auto);\n height: var(${wI}height, auto);\n max-height: var(${wI}height, auto);\n transition: var(${wI}transition) !important;\n }\n\n :root [${EI}] {\n transition: none;\n }\n\n :root [${EI}='hidden'] {\n visibility: hidden;\n }\n\n [${CI}] * {\n pointer-events: none !important;\n }\n\n [${CI}]:not([${SI}]) {\n translate: var(${wI}translate) !important;\n }\n\n [${CI}][style*='${wI}scale'] {\n scale: var(${wI}scale) !important;\n transform-origin: var(${wI}transform-origin) !important;\n }\n\n @layer {\n :where([${CI}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${CI}]::backdrop, [${xI}overlay]:not([${CI}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function II(e,t="hidden"){return QS((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${xI}${TA("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(CM(e)&&CM(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),EM(e)&&EM(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),MM.set(a,i),r.push((()=>{MM.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(EI,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function kI(e,t){return e===t||IM(e)===IM(t)}function LI(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&DA(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>tA(t)))}function PI(e){return"TR"===e.tagName}var DI,_I,OI,TI,qI,jI,NI,FI=new Map,zI=class extends(_I=CE,DI=[lC],_I){constructor(e,t){super(e,t),uI(this,qI),uI(this,TI,oI(OI,8,this)),oI(OI,11,this),this.state={initial:{},current:{}},this.registerEffect(dI(this,qI,NI)),this.registerEffect(dI(this,qI,jI))}destroy(){super.destroy();for(const[e,t]of FI.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),FI.delete(e)))}};OI=QA(_I),TI=new WeakMap,qI=new WeakSet,jI=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=hA(f),m=hA(c),g=!kI(c,f),b=new kA(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const M=new PA(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:L,paddingBlockEnd:P,paddingInlineStart:D,paddingInlineEnd:_,borderInlineStartWidth:O,borderInlineEndWidth:T,borderBlockStartWidth:q,borderBlockEndWidth:j}=cA(c),N="clone"===d,F="content-box"===k,z=F?parseInt(D)+parseInt(_)+parseInt(O)+parseInt(T):0,$=F?parseInt(L)+parseInt(P)+parseInt(q)+parseInt(j):0,W="move"===d||this.overlay?null:II(l,N?"clone":"hidden"),B=QS((()=>_A(o.dragOperation.activatorEvent)));if("none"!==I){const e=gA(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=QS((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:G}=p,H=E*h.scaleY+h.y,V=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=G;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const U=p.coordinates.x-V,Y=p.coordinates.y-H,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*G.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*G.y,J=U/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(CI,"true");const ee=QS((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(M.set({width:w-z,height:C-$,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*G.x}% ${100*G.y}%`},wI),W&&(c.insertAdjacentElement("afterend",W),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}eA(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),tA(f),f.addEventListener("beforetoggle",LI));const oe=new ResizeObserver((()=>{if(!W)return;const e=new kA(W,{frameTransform:h,ignoreTransforms:!0}),t=null!=G?G:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(M.set({width:e.width-z,height:e.height-$,top:E+n,left:R+r},wI),null==x||x.takeRecords(),PI(c)&&PI(W)){const e=Array.from(c.cells),t=Array.from(W.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new kA(f)})),ie=new kA(f);QS((()=>a.shape=ie));const ae=mM(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===QS((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),W&&(oe.observe(W),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||RI.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(LA(c)&&LA(W)){const e=c.style;for(const t of Array.from(W.style))""===e.getPropertyValue(t)&&W.style.removeProperty(t);for(const t of Array.from(e)){if(MI.includes(t)||t.startsWith(wI))continue;const r=e.getPropertyValue(t);W.style.setProperty(t,r)}}}else null!==n?W.setAttribute(e,n):W.removeAttribute(e)}t&&N&&(W.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==W)return c.insertAdjacentElement("afterend",W),void tA(f);if(e.contains(W)&&W.previousElementSibling!==c)return W.insertAdjacentElement("beforebegin",c),void tA(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!B||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;bM(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),eA(f)&&(f.removeEventListener("beforetoggle",LI),f.removeAttribute("popover")),f.removeAttribute(CI),M.reset(),l.status="idle";const e=null!=n.current.translate;W&&(e||W.parentElement!==f.parentElement)&&f.isConnected&&W.replaceWith(f),null==W||W.remove()},de=dC((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=QS((()=>a.modifiers)),l=QS((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=B?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(M.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},wI),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=TC.delta(o,i);a.shape=qC.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new kA(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{tA(f);const[,o]=null!=(r=cM(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=W?W:c,a={frameTransform:kI(f,i)?null:void 0},s=new kA(f,a),u=null!=(n=gA(cA(f).translate))?n:e,d=new kA(i,a),p=qC.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};M.set({transition:A},wI),f.setAttribute(SI,""),null==x||x.takeRecords(),CA({element:f,keyframes:XA(KA(KA({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute(SI),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},NI=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=yM(null!=(t=null==o?void 0:o.element)?t:null),n=yM(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=FI.get(e);if(!t){const r=document.createElement("style");r.textContent=AI,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},FI.set(e,t)}t.instances.add(this)}}},iI(OI,4,"overlay",DI,zI,TI),nI(OI,zI),zI.configure=SE(zI);var $I,WI,BI,GI,HI,VI,UI,YI=zI,KI=!0;BI=[lC],GI=vA.Forward,$I=[lC],WI=vA.Reverse;var XI=class{constructor(){uI(this,VI,oI(HI,8,this,KI)),oI(HI,11,this),uI(this,UI,oI(HI,12,this,KI)),oI(HI,15,this)}isLocked(e){return e!==vA.Idle&&(null==e?this[vA.Forward]===KI&&this[vA.Reverse]===KI:this[e]===KI)}unlock(e){e!==vA.Idle&&(this[e]=false)}};HI=QA(null),VI=new WeakMap,UI=new WeakMap,iI(HI,4,GI,BI,XI,VI),iI(HI,4,WI,$I,XI,UI),nI(HI,XI);var JI,ZI,QI,ek,tk,rk,nk=[vA.Forward,vA.Reverse],ok=class{constructor(){this.x=new XI,this.y=new XI}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ik=class extends CE{constructor(e){super(e);const t=aw(new ok);let r=null;this.signal=t,gw((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new ok);const{delta:o}=e.dragOperation.position;if(r){const e={x:ak(o.x,r.x),y:ak(o.y,r.y)},n=t.peek();JS((()=>{for(const t of HC)for(const r of nk)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function ak(e,t){return Math.sign(e-t)}var sk=class extends(ZI=RE,JI=[lC],ZI){constructor(e){super(e),uI(this,ek,oI(QI,8,this,!1)),oI(QI,11,this),uI(this,tk),uI(this,rk,(()=>{if(!lI(this,tk))return;const{element:e,by:t}=lI(this,tk);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return cI(this,tk,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:lk(n.x),y:lk(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=oA(e,n);if(r.x||r.y){const{speed:r,direction:s}=SA(e,o,i);if(a)for(const e of HC)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=lI(this,tk))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return cI(this,tk,{element:e,by:{x:a,y:l}}),aA.schedule(lI(this,rk)),!0}}}}}return cI(this,tk,void 0),!1};let t=null,r=null;const n=aC((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=RM(yM(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=aC((()=>{const t=n.value,{documentElement:o}=yM(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=fA(n,{excludeElement:!1});return r=e,e}}if(t){const e=fA(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),sC);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new ik(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&_A(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function lk(e){return e>0?vA.Forward:e<0?vA.Reverse:vA.Idle}QI=QA(ZI),ek=new WeakMap,tk=new WeakMap,rk=new WeakMap,iI(QI,4,"autoScrolling",JI,sk,ek),nI(QI,sk);var uk,ck=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),dk=class extends CE{constructor(e,t){super(e);const r=e.registry.plugins.get(sk);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=gw((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>ck.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},pk={capture:!0,passive:!0},fk=class extends RE{constructor(e){super(e),uI(this,uk),this.handleScroll=()=>{null==lI(this,uk)&&cI(this,uk,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),cI(this,uk,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=gw((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,pk),()=>{o.removeEventListener("scroll",this.handleScroll,pk)}}}))}};uk=new WeakMap;function hk(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var mk,gk=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;const{event:r,source:n}=e,o=null!=(t=n.handle)?t:n.element;return r.target===o}}),bk=class extends JR{constructor(e,t){super(e),this.manager=e,this.options=t,uI(this,mk,[]),this.listeners=new AM,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!DA(e.target))return;if(t.disabled)return;const{keyboardCodes:n=gk.keyboardCodes,shouldActivate:o=gk.shouldActivate}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&o({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,r)}}bind(e,t=this.options){const r=gw((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{_A(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),wA(n);const{center:o}=new kA(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=yM(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];lI(this,mk).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=gk.keyboardCodes}=null!=r?r:{};if(yk(e,[...n.end,...n.cancel])){e.preventDefault();const t=yk(e,n.cancel);this.handleEnd(e,t)}else yk(e,n.up)?this.handleMove("up",e):yk(e,n.down)&&this.handleMove("down",e),yk(e,n.left)?this.handleMove("left",e):yk(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:gk.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(dk);!1===(null==e?void 0:e.disabled)&&(e.disable(),lI(this,mk).push((()=>{e.enable()})))}cleanup(){lI(this,mk).forEach((e=>e())),cI(this,mk,[])}destroy(){this.cleanup(),this.listeners.clear()}};mk=new WeakMap,bk.configure=SE(bk),bk.defaults=gk;var vk=bk;function yk(e,t){return t.includes(e.code)}var xk,Sk,wk=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!DA(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!DA(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),Ck=class extends JR{constructor(e,t){super(e),this.manager=e,this.options=t,uI(this,xk,new Set),uI(this,Sk),this.listeners=new AM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t){var r;const{activationConstraints:n=wk.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=gw((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=mM(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(Ik(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r={}){if(this.disabled||!e.isPrimary||0!==e.button||!DA(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=bM(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=hA(t.element);this.initialCoordinates={x:e.clientX*i.scaleX+i.x,y:e.clientY*i.scaleY+i.y};const a=this.activationConstraints(e,t);if(e.sensor=this,(null==a?void 0:a.delay)||(null==a?void 0:a.distance)){const{delay:r}=a;if(r){const n=setTimeout((()=>this.handleStart(t,e)),r.value);cI(this,Sk,(()=>{clearTimeout(n),cI(this,Sk,void 0)}))}}else this.handleStart(t,e);const s=yM(e.target),l=this.listeners.bind(s,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:o?this.handleCancel:Rk,options:{capture:!0}}]);lI(this,xk).add((()=>{var e;l(),null==(e=lI(this,Sk))||e.call(this),this.initialCoordinates=void 0}))}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=hA(t.element);if(r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,this.manager.dragOperation.status.dragging)return e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,void aA.schedule(this.handleMove);if(!this.initialCoordinates)return;const o={x:r.x-this.initialCoordinates.x,y:r.y-this.initialCoordinates.y},i=this.activationConstraints(e,t),{distance:a,delay:s}=null!=i?i:{};if(a){if(null!=a.tolerance&&FC(o,a.tolerance))return this.handleCancel(e);if(FC(o,a.value))return this.handleStart(t,e)}return s&&FC(o,s.tolerance)?this.handleCancel(e):void 0}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){var r;const{manager:n,initialCoordinates:o}=this;if(null==(r=lI(this,Sk))||r.call(this),!o||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:o,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=yM(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:Rk,options:{passive:!1}},{type:"click",listener:Rk},{type:"contextmenu",listener:Rk},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);lI(this,xk).add(s)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},lI(this,xk).forEach((e=>e())),lI(this,xk).clear()}destroy(){this.cleanup(),this.listeners.clear()}};xk=new WeakMap,Sk=new WeakMap,Ck.configure=SE(Ck),Ck.defaults=wk;var Ek=Ck;function Rk(e){e.preventDefault()}function Mk(){}var Ak=new WeakSet;function Ik(e){e&&!Ak.has(e)&&(e.addEventListener("touchmove",Mk,{capture:!1,passive:!1}),Ak.add(e))}var kk,Lk,Pk,Dk,_k,Ok,Tk,qk,jk,Nk,Fk,zk,$k,Wk,Bk,Gk,Hk,Vk,Uk={modifiers:[],plugins:[class extends CE{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=hI,announcement:o=mI}={},announcements:i=bI,screenReaderInstructions:a=gI,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:TA(n),u=r?`${o}-${r}`:TA(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>aA.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,yI.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),vI(r)&&!wM()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",pI))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",fI))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&aA.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}},dk,class extends CE{constructor(e,t){super(e,t),this.manager=e;const r=aC((()=>{var e;return yM(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=gw((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},YI,class extends CE{constructor(e,t){super(e,t),this.manager=e,this.destroy=gw((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),hk(),document.addEventListener("selectionchange",hk,{capture:!0}),()=>{document.removeEventListener("selectionchange",hk,{capture:!0}),e.remove()}}}))}}],sensors:[Ek,vk]},Yk=class extends rM{constructor(e={}){const{plugins:t=Uk.plugins,sensors:r=Uk.sensors,modifiers:n=[]}=e;super(XA(KA({},e),{plugins:[fk,sk,...t],sensors:r,modifiers:n}))}},Kk=class extends(Dk=LR,Pk=[lC],Lk=[lC],kk=[lC],Dk){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=ZA(r,["element","effects","handle","feedback"]);super(KA({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(wE))?t:[...r.sensors]).map((e=>{const t=e instanceof JR?e:r.registry.register(e.plugin),n=e instanceof JR?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),uI(this,Ok,oI(_k,8,this)),oI(_k,11,this),uI(this,Tk,oI(_k,12,this)),oI(_k,15,this),uI(this,qk,oI(_k,16,this)),oI(_k,19,this),this.element=n,this.handle=i,this.feedback=a}};_k=QA(Dk),Ok=new WeakMap,Tk=new WeakMap,qk=new WeakMap,iI(_k,4,"handle",Pk,Kk,Ok),iI(_k,4,"element",Lk,Kk,Tk),iI(_k,4,"feedback",kk,Kk,qk),nI(_k,Kk);var Xk=class extends(Fk=PR,Nk=[lC],jk=[lC],Fk){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=ZA(r,["element","effects"]);const{collisionDetector:a=qA}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new kA(r),o=QS((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=aw(!1);super(XA(KA({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new QM(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),uI(this,Hk),uI(this,$k,oI(zk,8,this)),oI(zk,11,this),uI(this,Vk,oI(zk,12,this)),oI(zk,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){cI(this,Hk,e,Gk)}get element(){var e;return null!=(e=this.proxy)?e:lI(this,Hk,Bk)}};function Jk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}zk=QA(Fk),$k=new WeakMap,Hk=new WeakSet,Vk=new WeakMap,Wk=iI(zk,20,"#element",Nk,Hk,$k),Bk=Wk.get,Gk=Wk.set,iI(zk,4,"proxy",jk,Xk,Vk),nI(zk,Xk);var Zk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:p;function Qk(e,t){const r=u(new Map),n=function(){const e=b(0)[1];return h((()=>{e((e=>e+1))}),[e])}();return Zk((()=>{if(e)return gw((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=QS((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?R(n):n())}));r.current.clear()}),[e]),g((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function eL(e,t){e()}function tL(e){const t=u(e);return Zk((()=>{t.current=e}),[e]),t}function rL(e,t,r=p,n=Object.is){const o=u(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function nL(e,t){const r=u(Jk(e));Zk((()=>{const n=Jk(e);n!==r.current&&(r.current=n,t(n))}))}var oL=Object.defineProperty,iL=Object.defineProperties,aL=Object.getOwnPropertyDescriptors,sL=Object.getOwnPropertySymbols,lL=Object.prototype.hasOwnProperty,uL=Object.prototype.propertyIsEnumerable,cL=(e,t,r)=>t in e?oL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dL=new Yk,pL=c(dL),fL=y(x((({children:e},t)=>{const[r,n]=b(0),o=u(null),i=u(null),a=g((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),v((()=>{e(),n((e=>e+1))}))}})),[]);return Zk((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),S(t,(()=>a)),null}))),hL=[void 0,sC];function mL(e){var t,r=e,{children:n,onCollision:o,onBeforeDragStart:i,onDragStart:a,onDragMove:s,onDragOver:l,onDragEnd:c}=r,d=((e,t)=>{var r={};for(var n in e)lL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&sL)for(var n of sL(e))t.indexOf(n)<0&&uL.call(e,n)&&(r[n]=e[n]);return r})(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const f=u(null),[h,m]=b(null!=(t=d.manager)?t:null),{plugins:g,modifiers:y,sensors:x}=d,S=tL(i),w=tL(a),C=tL(l),E=tL(s),R=tL(c),M=tL(o);return p((()=>{var e;if(!f.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:r}=f.current,n=null!=(e=d.manager)?e:new Yk(d);return n.renderer=t,n.monitor.addEventListener("beforedragstart",(e=>{const t=S.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragstart",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,n)})),n.monitor.addEventListener("dragover",(e=>{const t=C.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragmove",(e=>{const t=E.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragend",(e=>{const t=R.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("collision",(e=>{var t;return null==(t=M.current)?void 0:t.call(M,e,n)})),v((()=>m(n))),n.destroy}),[d.manager]),rL(g,(()=>h&&(h.plugins=null!=g?g:Uk.plugins)),...hL),rL(x,(()=>h&&(h.sensors=null!=x?x:Uk.sensors)),...hL),rL(y,(()=>h&&(h.modifiers=null!=y?y:Uk.modifiers)),...hL),Zo.jsxs(pL.Provider,{value:h,children:[Zo.jsx(fL,{ref:f,children:n}),n]})}function gL(e){var t;const r=null!=(t=n(pL))?t:void 0,[o]=b((()=>e(r)));return o.manager!==r&&(o.manager=r),Zk(o.register,[r,o]),o}var bL,vL,yL,xL,SL,wL=Object.create,CL=Object.defineProperty,EL=Object.getOwnPropertyDescriptor,RL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ML=e=>{throw TypeError(e)},AL=["class","method","getter","setter","accessor","field","value","get","set"],IL=e=>void 0!==e&&"function"!=typeof e?ML("Function expected"):e,kL=(e,t,r,n,o)=>({kind:AL[e],name:t,metadata:n,addInitializer:e=>r._?ML("Already initialized"):o.push(IL(e||null))}),LL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=AL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,EL(o,r)),h=n.length-1;h>=0;h--)(l=kL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,IL(a)&&(f[d]=a);return f&&CL(o,r,f),o},PL=(e,t,r)=>t.has(e)||ML("Cannot "+r),DL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},_L=class extends(yL=fC,vL=[uC],bL=[uC],yL){constructor(e){var t,r,n;super(DL.from(e),((e,t)=>DL.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(SL,5,this),t=this,n=0,(r=xL).has(t)?ML("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return DL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=DL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(PL(a=this,s=xL,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);JS((()=>{((e,t,r)=>{PL(e,t,"write to private field"),t.set(e,r)})(this,xL,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(DL.from(e)),this.velocity={x:0,y:0}}};SL=(e=>{var t;return[,,,wL(null!=(t=null==e?void 0:e[RL("metadata")])?t:null)]})(yL),xL=new WeakMap,LL(SL,2,"delta",vL,_L),LL(SL,2,"direction",bL,_L),((e,t)=>{((e,t,r)=>{t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,RL("metadata"),e[3])})(SL,_L);var OL=(e=>(e.Horizontal="x",e.Vertical="y",e))(OL||{});Object.values(OL);var TL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/DL.distance(t.shape.center,r),type:VE.PointerIntersection,priority:HE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=DL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VE.ShapeIntersection,priority:HE.Normal}}return null})(e)};function qL(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=gL((t=>new Xk(((e,t)=>iL(e,aL(t)))(((e,t)=>{for(var r in t||(t={}))lL.call(t,r)&&cL(e,r,t[r]);if(sL)for(var r of sL(t))uL.call(t,r)&&cL(e,r,t[r]);return e})({},e),{register:!1,element:Jk(o)}),t))),u=Qk(l);return rL(i,(()=>l.id=i)),nL(o,(e=>l.element=e)),rL(a,(()=>l.accept=a),void 0,sC),rL(t,(()=>l.collisionDetector=null!=t?t:TL)),rL(r,(()=>r&&(l.data=r))),rL(n,(()=>l.disabled=!0===n)),rL(s,(()=>l.type=s)),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:h((e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)}),[l])}}const jL=M.classNames;function NL(e){if(e.font)return;const{family:t,size:r,emphasized:n}=e;if(t)switch(t){case"heading":case"body":return`${t}_${r||"m"}`;case"label":case"script":return`${t}_${r||"m"}${n?"_emphasized":""}`;default:return}}function FL(e){if(e.font){const{font:t,color:r,ellipsis:n}=e;return M.classNames(`font_${t}`,{ellipsis:!!n,[`text_${r||"default"}`]:!!r})}let t=NL(e);return t||(t=NL({...e,family:e.familly})),t&&void 0!==M[`font_${t}`]?M[`font_${t}`]:""}const zL=["border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderRadius"],$L={border:e=>({border_none:"none"===e,border_default:"default"===e,border_weak:"weak"===e,border_moderate:"moderate"===e,border_strong:"strong"===e,border_extra_strong:"extra-strong"===e}),borderTop:e=>({border_t_none:"none"===e,border_t_default:"default"===e,border_t_weak:"weak"===e,border_t_moderate:"moderate"===e,border_t_strong:"strong"===e,border_t_extra_strong:"extra-strong"===e}),borderRight:e=>({border_r_none:"none"===e,border_r_default:"default"===e,border_r_weak:"weak"===e,border_r_moderate:"moderate"===e,border_r_strong:"strong"===e,border_r_extra_strong:"extra-strong"===e}),borderBottom:e=>({border_b_none:"none"===e,border_b_default:"default"===e,border_b_weak:"weak"===e,border_b_moderate:"moderate"===e,border_b_strong:"strong"===e,border_b_extra_strong:"extra-strong"===e}),borderLeft:e=>({border_l_none:"none"===e,border_l_default:"default"===e,border_l_weak:"weak"===e,border_l_moderate:"moderate"===e,border_l_strong:"strong"===e,border_l_extra_strong:"extra-strong"===e}),borderWidth:e=>({border_width_0:"0"===e,border_width_default:"default"===e,border_width_strong:"strong"===e}),borderRadius:e=>({radius_subtle:"subtle"===e,radius_soft:"soft"===e,radius_cushiony:"cushiony"===e,radius_pill:"pill"===e,radius_round:"round"===e,radius_nested_subtle_xs:"nested-subtle-xs"===e,radius_nested_soft_xs:"nested-soft-xs"===e,radius_nested_soft_s:"nested-soft-s"===e,radius_nested_cushiony_xs:"nested-cushiony-xs"===e,radius_nested_cushiony_s:"nested-cushiony-s"===e,radius_nested_cushiony_m:"nested-cushiony-m"===e,radius_twice_soft_xs:"twice-soft-xs"===e,radius_twice_cushiony_s_xs:"twice-cushiony-s-xs"===e,radius_twice_cushiony_m_s:"twice-cushiony-m-s"===e})};const WL={gap:e=>({gap_0:"0"===e,gap_xs:"xs"===e,gap_s:"s"===e,gap_m:"m"===e,gap_l:"l"===e,gap_xl:"xl"===e,gap_xxl:"xxl"===e,gap_3xl:"3xl"===e,gap_density_xs:"density-xs"===e,gap_density_s:"density-s"===e,gap_density_m:"density-m"===e,gap_density_l:"density-l"===e,gap_density_xl:"density-xl"===e,gap_density_xxl:"density-xxl"===e,gap_density_3xl:"density-3xl"===e}),rowGap:e=>({row_gap_0:"0"===e,row_gap_xs:"xs"===e,row_gap_s:"s"===e,row_gap_m:"m"===e,row_gap_l:"l"===e,row_gap_xl:"xl"===e,row_gap_xxl:"xxl"===e,row_gap_3xl:"3xl"===e}),columnGap:e=>({col_gap_0:"0"===e,col_gap_xs:"xs"===e,col_gap_s:"s"===e,col_gap_m:"m"===e,col_gap_l:"l"===e,col_gap_xl:"xl"===e,col_gap_xxl:"xxl"===e,col_gap_3xl:"3xl"===e}),boxSizing:(e,t={apply:!0})=>({content_box:"content-box"===e,border_box:"content-box"!==e&&t.apply}),wrap:e=>({wrap:"wrap"===e,wrap_reverse:"wrap-reverse"===e,no_wrap:"nowrap"===e}),direction:(e,t={apply:!0})=>({row:"row"===e||t.apply&&!e,row_reverse:"row-reverse"===e,col:"col"===e,col_reverse:"col-reverse"===e}),noShrink:e=>({shrink_0:e}),alignContent:e=>({ac_center:"center"===e,ac_stretch:"stretch"===e,ac_start:"start"===e,ac_end:"end"===e,ac_between:"between"===e,ac_around:"around"===e}),alignItems:e=>({ai_center:"center"===e,ai_stretch:"stretch"===e,ai_start:"start"===e,ai_end:"end"===e,ai_baseline:"baseline"===e}),alignSelf:e=>({as_center:"center"===e,as_stretch:"stretch"===e,as_start:"start"===e,as_end:"end"===e}),justify:e=>({j_around:"around"===e,j_between:"between"===e,j_center:"center"===e,j_end:"end"===e,j_start:"start"===e,j_evenly:"evenly"===e})},BL=["boxSizing","wrap","direction","alignContent","alignItems","alignSelf","gap","columnGap","rowGap","justify","noShrink"];const GL=["xxs","xs","s","m","l","xl","xxl","3xl","4xl","full","fit","min","max"];const HL={overflow:e=>({overflow_auto:"auto"===e,overflow_hidden:"hidden"===e,overflow_scroll:"scroll"===e,overflow_visible:"visible"===e}),overflowX:e=>({overflow_x_auto:"auto"===e,overflow_x_hidden:"hidden"===e,overflow_x_scroll:"scroll"===e,overflow_x_visible:"visible"===e}),overflowY:e=>({overflow_y_auto:"auto"===e,overflow_y_hidden:"hidden"===e,overflow_y_scroll:"scroll"===e,overflow_y_visible:"visible"===e})},VL=["overflow","overflowX","overflowY"];const UL={p:e=>({p_0:"0"===e,p_xs:"xs"===e,p_s:"s"===e,p_m:"m"===e,p_l:"l"===e,p_xl:"xl"===e,p_xxl:"xxl"===e,p_3xl:"3xl"===e}),px:e=>({px_0:"0"===e,px_xs:"xs"===e,px_s:"s"===e,px_m:"m"===e,px_l:"l"===e,px_xl:"xl"===e,px_xxl:"xxl"===e,px_3xl:"3xl"===e}),py:e=>({py_0:"0"===e,py_xs:"xs"===e,py_s:"s"===e,py_m:"m"===e,py_l:"l"===e,py_xl:"xl"===e,py_xxl:"xxl"===e,py_3xl:"3xl"===e,py_density_xs:"density-xs"===e,py_density_s:"density-s"===e,py_density_m:"density-m"===e,py_density_l:"density-l"===e,py_density_xl:"density-xl"===e,py_density_xxl:"density-xxl"===e,py_density_3xl:"density-3xl"===e}),pt:e=>({pt_0:"0"===e,pt_xs:"xs"===e,pt_s:"s"===e,pt_m:"m"===e,pt_l:"l"===e,pt_xl:"xl"===e,pt_xxl:"xxl"===e,pt_3xl:"3xl"===e}),pr:e=>({pr_0:"0"===e,pr_xs:"xs"===e,pr_s:"s"===e,pr_m:"m"===e,pr_l:"l"===e,pr_xl:"xl"===e,pr_xxl:"xxl"===e,pr_3xl:"3xl"===e}),pb:e=>({pb_0:"0"===e,pb_xs:"xs"===e,pb_s:"s"===e,pb_m:"m"===e,pb_l:"l"===e,pb_xl:"xl"===e,pb_xxl:"xxl"===e,pb_3xl:"3xl"===e}),pl:e=>({pl_0:"0"===e,pl_xs:"xs"===e,pl_s:"s"===e,pl_m:"m"===e,pl_l:"l"===e,pl_xl:"xl"===e,pl_xxl:"xxl"===e,pl_3xl:"3xl"===e})},YL=["p","px","py","pt","pr","pb","pl"];const KL=x(XL);function XL({children:e,...t},r){return Zo.jsx("div",{...JL(t),ref:r,children:e})}function JL({typography:e,...t},r={apply:!0}){const{className:n,...o}=function(e){const{className:t,...r}=e,n=VL.reduce(((t,n)=>(n in e&&(Object.assign(t,HL[n](e[n])),delete r[n]),t)),{[t||""]:!!t});return{className:jL(n),...r}}(function({boxShadow:e,zIndex:t,className:r,...n}){return{className:jL({[r||""]:!!r,[`box_shadow_${e||"default"}`]:!!e,[`z_${t||"context"}`]:!!t}),...n}}(function({bgColor:e,className:t,...r}){return{className:jL({[t||"not_existing"]:!!t,[`bg_${e||"default"}`]:!!e}),...r}}(function(e){const{className:t,...r}=e,n=zL.reduce(((t,n)=>(n in e&&(Object.assign(t,$L[n](e[n])),delete r[n]),t)),{[t??""]:!!t});return{className:jL(n),...r}}(function(e,t={apply:!0}){const{className:r,...n}=e,o=BL.reduce(((r,o)=>(o in e?(Object.assign(r,WL[o](e[o],t)),delete n[o]):("direction"===o&&t.apply&&Object.assign(r,WL.direction(void 0,t)),"boxSizing"===o&&t.apply&&Object.assign(r,WL.boxSizing(void 0,t))),r)),{flex:t.apply});return{className:jL(r,o),...n}}(function(e){const{className:t,...r}=e,n=YL.reduce(((t,n)=>(n in e&&(Object.assign(t,UL[n](e[n])),delete r[n]),t)),{[t||""]:!!t});return{className:jL(n),...r}}(function(e){const{shrink:t,basis:r,grow:n,style:o,width:i,height:a,maxHeight:s,maxWidth:l,minWidth:u,minHeight:c,className:d,...p}=e,f={},h={...o||{}};return h.containerType="normal",i&&(GL.includes(i)?f[`w_${i}`]=!0:h.width=i),a&&(GL.includes(a)?f[`h_${a}`]=!0:h.height=a),u&&(GL.includes(u)?h.minWidth=`var(--sprout-container-sizing-${u})`:h.minWidth=u),l&&(GL.includes(l)?h.maxWidth=`var(--sprout-container-sizing-${l})`:h.maxWidth=l),c&&(h.minHeight=c),s&&(h.maxHeight=s),n&&(h.flexGrow="number"==typeof n?n:1),void 0!==t&&(h.flexShrink=t),void 0!==r&&(h.flexBasis=r),{style:h,className:jL(f,{[d||""]:!!d}),...p}}(t)),r)))));return{...o,className:jL({[`${e&&FL(e)}`]:!!e,[n]:!0})}}XL.displayName="Box";const ZL=e=>Array.from({length:e},((e,t)=>t)),QL={black:"#000",white:"#fff"},eP="#e57373",tP="#ef5350",rP="#f44336",nP="#d32f2f",oP="#c62828",iP="#f3e5f5",aP="#ce93d8",sP="#ba68c8",lP="#ab47bc",uP="#9c27b0",cP="#7b1fa2",dP="#e3f2fd",pP="#90caf9",fP="#42a5f5",hP="#1976d2",mP="#1565c0",gP="#4fc3f7",bP="#29b6f6",vP="#03a9f4",yP="#0288d1",xP="#01579b",SP="#81c784",wP="#66bb6a",CP="#4caf50",EP="#388e3c",RP="#2e7d32",MP="#1b5e20",AP="#ffb74d",IP="#ffa726",kP="#ff9800",LP="#f57c00",PP="#e65100",DP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var _P="$$material";const OP=["values","unit","step"];function TP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=kf(e,OP),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Op({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Op({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const qP={borderRadius:4};function jP(e,t){return t?Dn(e,t,{clone:!1}):e}const NP={xs:0,sm:600,md:900,lg:1200,xl:1536},FP={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${NP[e]}px)`};function zP(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||FP;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||FP;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||NP).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function $P(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function WP(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function BP(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:WP(e,r)||n,t&&(o=t(o,n,e)),o}function GP(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=WP(e.theme,n)||{};return zP(e,i,(e=>{let n=BP(a,o,e);return e===n&&"string"==typeof e&&(n=BP(a,o,`${t}${"default"===e?"":$n(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const HP={m:"margin",p:"padding"},VP={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},UP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},YP=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!UP[e])return[e];e=UP[e]}const[t,r]=e.split(""),n=HP[t],o=VP[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),KP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],XP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function JP(e,t,r,n){var o;const i=null!=(o=WP(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function ZP(e){return JP(e,"spacing",8)}function QP(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function eD(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=QP(t,r),e)),{})}(YP(r),n);return zP(e,e[r],o)}function tD(e,t){const r=ZP(e.theme);return Object.keys(e).map((n=>eD(e,t,n,r))).reduce(jP,{})}function rD(e){return tD(e,KP)}function nD(e){return tD(e,XP)}function oD(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?jP(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function iD(e){return"number"!=typeof e?e:`${e}px solid`}function aD(e,t){return GP({prop:e,themeKey:"borders",transform:t})}rD.propTypes={},rD.filterProps=KP,nD.propTypes={},nD.filterProps=XP;const sD=aD("border",iD),lD=aD("borderTop",iD),uD=aD("borderRight",iD),cD=aD("borderBottom",iD),dD=aD("borderLeft",iD),pD=aD("borderColor"),fD=aD("borderTopColor"),hD=aD("borderRightColor"),mD=aD("borderBottomColor"),gD=aD("borderLeftColor"),bD=aD("outline",iD),vD=aD("outlineColor"),yD=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=JP(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:QP(t,e)});return zP(e,e.borderRadius,r)}return null};yD.propTypes={},yD.filterProps=["borderRadius"],oD(sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,yD,bD,vD);const xD=e=>{if(void 0!==e.gap&&null!==e.gap){const t=JP(e.theme,"spacing",8),r=e=>({gap:QP(t,e)});return zP(e,e.gap,r)}return null};xD.propTypes={},xD.filterProps=["gap"];const SD=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=JP(e.theme,"spacing",8),r=e=>({columnGap:QP(t,e)});return zP(e,e.columnGap,r)}return null};SD.propTypes={},SD.filterProps=["columnGap"];const wD=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=JP(e.theme,"spacing",8),r=e=>({rowGap:QP(t,e)});return zP(e,e.rowGap,r)}return null};wD.propTypes={},wD.filterProps=["rowGap"];function CD(e,t){return"grey"===t?t:e}oD(xD,SD,wD,GP({prop:"gridColumn"}),GP({prop:"gridRow"}),GP({prop:"gridAutoFlow"}),GP({prop:"gridAutoColumns"}),GP({prop:"gridAutoRows"}),GP({prop:"gridTemplateColumns"}),GP({prop:"gridTemplateRows"}),GP({prop:"gridTemplateAreas"}),GP({prop:"gridArea"}));function ED(e){return e<=1&&0!==e?100*e+"%":e}oD(GP({prop:"color",themeKey:"palette",transform:CD}),GP({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:CD}),GP({prop:"backgroundColor",themeKey:"palette",transform:CD}));const RD=GP({prop:"width",transform:ED}),MD=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||NP[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ED(t)}};return zP(e,e.maxWidth,t)}return null};MD.filterProps=["maxWidth"];const AD=GP({prop:"minWidth",transform:ED}),ID=GP({prop:"height",transform:ED}),kD=GP({prop:"maxHeight",transform:ED}),LD=GP({prop:"minHeight",transform:ED});GP({prop:"size",cssProperty:"width",transform:ED}),GP({prop:"size",cssProperty:"height",transform:ED});oD(RD,MD,AD,ID,kD,LD,GP({prop:"boxSizing"}));const PD={border:{themeKey:"borders",transform:iD},borderTop:{themeKey:"borders",transform:iD},borderRight:{themeKey:"borders",transform:iD},borderBottom:{themeKey:"borders",transform:iD},borderLeft:{themeKey:"borders",transform:iD},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:iD},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yD},color:{themeKey:"palette",transform:CD},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:CD},backgroundColor:{themeKey:"palette",transform:CD},p:{style:nD},pt:{style:nD},pr:{style:nD},pb:{style:nD},pl:{style:nD},px:{style:nD},py:{style:nD},padding:{style:nD},paddingTop:{style:nD},paddingRight:{style:nD},paddingBottom:{style:nD},paddingLeft:{style:nD},paddingX:{style:nD},paddingY:{style:nD},paddingInline:{style:nD},paddingInlineStart:{style:nD},paddingInlineEnd:{style:nD},paddingBlock:{style:nD},paddingBlockStart:{style:nD},paddingBlockEnd:{style:nD},m:{style:rD},mt:{style:rD},mr:{style:rD},mb:{style:rD},ml:{style:rD},mx:{style:rD},my:{style:rD},margin:{style:rD},marginTop:{style:rD},marginRight:{style:rD},marginBottom:{style:rD},marginLeft:{style:rD},marginX:{style:rD},marginY:{style:rD},marginInline:{style:rD},marginInlineStart:{style:rD},marginInlineEnd:{style:rD},marginBlock:{style:rD},marginBlockStart:{style:rD},marginBlockEnd:{style:rD},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xD},rowGap:{style:wD},columnGap:{style:SD},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ED},maxWidth:{style:MD},minWidth:{transform:ED},height:{transform:ED},maxHeight:{transform:ED},minHeight:{transform:ED},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function DD(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=WP(r,s)||{};if(u)return u(o);return zP(o,t,(t=>{let r=BP(c,l,t);return t===r&&"string"==typeof t&&(r=BP(c,l,`${e}${"default"===t?"":$n(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:PD;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=jP(u,e(r,o,i,s));else{const e=zP({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=jP(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=jP(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":$P(l,u)}:$P(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const _D=DD();function OD(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}_D.filterProps=["sx"];const TD=["breakpoints","palette","spacing","shape"];function qD(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=kf(e,TD),s=TP(r),l=function(e=8){if(e.mui)return e;const t=ZP({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Dn({breakpoints:s,direction:"ltr",components:{},palette:Op({mode:"light"},n),spacing:l,shape:Op({},qP,i)},a);return u.applyStyles=OD,u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Op({},PD,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return _D({sx:e,theme:this})},u}var jD=Object.freeze({__proto__:null,default:qD,private_createBreakpoints:TP,unstable_applyStyles:OD});function ND(e=null){const t=i.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const FD=qD();function zD(e=FD){return ND(e)}function $D(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function WD({styles:e,themeId:t,defaultTheme:r={}}){const n=zD(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>$D("function"==typeof e?e(o):e))):$D(i)),Zo.jsx(Cn,{styles:i})}const BD=["sx"];function GD(e){const{sx:t}=e,r=kf(e,BD),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:PD;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ln(r)?Op({},n,r):n}:Op({},n,t),Op({},o,{sx:i})}var HD=Object.freeze({__proto__:null,default:_D,extendSxProp:GD,unstable_createStyleFunctionSx:DD,unstable_defaultSxConfig:PD});const VD=["className","component"];function UD(e){if(e.type)return e;if("#"===e.charAt(0))return UD(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Ie(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Ie(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function YD(e,t){return e=UD(e),t=function(e,t=0,r=1){return qi(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}const KD=["value"],XD=i.createContext();function JD(e){let{value:t}=e,r=kf(e,KD);return Zo.jsx(XD.Provider,Op({value:null==t||t},r))}const ZD=i.createContext(void 0);function QD({value:e,children:t}){return Zo.jsx(ZD.Provider,{value:e,children:t})}function e_({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Oi(o.defaultProps,n):o.styleOverrides||o.variants?n:Oi(o,n)}({props:e,name:t,theme:{components:i.useContext(ZD)}})}const t_={};function r_(e,t,r,n=!1){return i.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Op({},t,{[e]:i}):i;return n?()=>a:a}return Op({},t,e?{[e]:r}:r)}),[e,t,r,n])}function n_(e){const{children:t,theme:r,themeId:n}=e,o=ND(t_),i=ya()||t_,a=r_(n,o,r),s=r_(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ND(),r=Ui()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ti((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Zo.jsx(WD,{styles:o}):null}(a);return Zo.jsx(Sa,{theme:s,children:Zo.jsx(sn.Provider,{value:a,children:Zo.jsx(JD,{value:l,children:Zo.jsxs(QD,{value:null==a?void 0:a.components,children:[u,t]})})})})}function o_(e,t){return Op({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var i_={},a_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(a_);var s_=a_.exports,l_=s_;Object.defineProperty(i_,"__esModule",{value:!0});var u_=i_.alpha=w_;i_.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=b_(e),a=b_(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return y_({type:"rgb",values:s})},i_.colorChannel=void 0;var c_=i_.darken=C_;i_.decomposeColor=b_,i_.emphasize=R_;var d_=i_.getContrastRatio=function(e,t){const r=S_(e),n=S_(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};i_.getLuminance=S_,i_.hexToRgb=g_,i_.hslToRgb=x_;var p_=i_.lighten=E_;i_.private_safeAlpha=function(e,t,r){try{return w_(e,t)}catch(t){return e}},i_.private_safeColorChannel=void 0,i_.private_safeDarken=function(e,t,r){try{return C_(e,t)}catch(t){return e}},i_.private_safeEmphasize=function(e,t,r){try{return R_(e,t)}catch(t){return e}},i_.private_safeLighten=function(e,t,r){try{return E_(e,t)}catch(t){return e}},i_.recomposeColor=y_,i_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=b_(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var f_=l_(ja),h_=l_(Na);function m_(e,t=0,r=1){return(0,h_.default)(e,t,r)}function g_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function b_(e){if(e.type)return e;if("#"===e.charAt(0))return b_(g_(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,f_.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,f_.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const v_=e=>{const t=b_(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};i_.colorChannel=v_;function y_(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function x_(e){e=b_(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),y_({type:s,values:l})}function S_(e){let t="hsl"===(e=b_(e)).type||"hsla"===e.type?b_(x_(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function w_(e,t){return e=b_(e),t=m_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,y_(e)}function C_(e,t){if(e=b_(e),t=m_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return y_(e)}function E_(e,t){if(e=b_(e),t=m_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return y_(e)}function R_(e,t=.15){return S_(e)>.5?C_(e,t):E_(e,t)}i_.private_safeColorChannel=(e,t)=>{try{return v_(e)}catch(t){return e}};const M_=["mode","contrastThreshold","tonalOffset"],A_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:QL.white,default:QL.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},I_={text:{primary:QL.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:QL.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k_(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=p_(e.main,o):"dark"===t&&(e.dark=c_(e.main,i)))}function L_(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=kf(e,M_),i=e.primary||function(e="light"){return"dark"===e?{main:pP,light:dP,dark:fP}:{main:hP,light:fP,dark:mP}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:aP,light:iP,dark:lP}:{main:uP,light:sP,dark:cP}}(t),s=e.error||function(e="light"){return"dark"===e?{main:rP,light:eP,dark:nP}:{main:nP,light:tP,dark:oP}}(t),l=e.info||function(e="light"){return"dark"===e?{main:bP,light:gP,dark:yP}:{main:yP,light:vP,dark:xP}}(t),u=e.success||function(e="light"){return"dark"===e?{main:wP,light:SP,dark:EP}:{main:RP,light:CP,dark:MP}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:IP,light:AP,dark:LP}:{main:"#ed6c02",light:kP,dark:PP}}(t);function d(e){return d_(e,I_.text.primary)>=r?I_.text.primary:A_.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Op({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Ie(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Ie(12,t?` (${t})`:"",JSON.stringify(e.main)));return k_(e,"light",o,n),k_(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:I_,light:A_};return Dn(Op({common:Op({},QL),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:DP,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const P_=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const D_={textTransform:"uppercase"},__='"Roboto", "Helvetica", "Arial", sans-serif';function O_(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=__,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=kf(r,P_),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Op({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===__?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,D_),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,D_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn(Op({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function T_(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const q_=["none",T_(0,2,1,-1,0,1,1,0,0,1,3,0),T_(0,3,1,-2,0,2,2,0,0,1,5,0),T_(0,3,3,-2,0,3,4,0,0,1,8,0),T_(0,2,4,-1,0,4,5,0,0,1,10,0),T_(0,3,5,-1,0,5,8,0,0,1,14,0),T_(0,3,5,-1,0,6,10,0,0,1,18,0),T_(0,4,5,-2,0,7,10,1,0,2,16,1),T_(0,5,5,-3,0,8,10,1,0,3,14,2),T_(0,5,6,-3,0,9,12,1,0,3,16,2),T_(0,6,6,-3,0,10,14,1,0,4,18,3),T_(0,6,7,-4,0,11,15,1,0,4,20,3),T_(0,7,8,-4,0,12,17,2,0,5,22,4),T_(0,7,8,-4,0,13,19,2,0,5,24,4),T_(0,7,9,-4,0,14,21,2,0,5,26,4),T_(0,8,9,-5,0,15,22,2,0,6,28,5),T_(0,8,10,-5,0,16,24,2,0,6,30,5),T_(0,8,11,-5,0,17,26,2,0,6,32,5),T_(0,9,11,-5,0,18,28,2,0,7,34,6),T_(0,9,12,-6,0,19,29,2,0,7,36,6),T_(0,10,13,-6,0,20,31,3,0,8,38,7),T_(0,10,13,-6,0,21,33,3,0,8,40,7),T_(0,10,14,-6,0,22,35,3,0,8,42,7),T_(0,11,14,-7,0,23,36,3,0,9,44,8),T_(0,11,15,-7,0,24,38,3,0,9,46,8)],j_=["duration","easing","delay"],N_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},F_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z_(e){return`${Math.round(e)}ms`}function $_(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function W_(e){const t=Op({},N_,e.easing),r=Op({},F_,e.duration);return Op({getAutoHeightDuration:$_,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return kf(n,j_),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:z_(o)} ${i} ${"string"==typeof a?a:z_(a)}`)).join(",")}},e,{easing:t,duration:r})}const B_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},G_=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function H_(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=kf(e,G_);if(e.vars&&void 0===e.generateCssVars)throw new Error(Ie(18));const s=L_(n),l=qD(e);let u=Dn(l,{mixins:o_(l.breakpoints,r),palette:s,shadows:q_.slice(),typography:O_(s,i),transitions:W_(o),zIndex:Op({},B_)});return u=Dn(u,a),u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Op({},PD,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return _D({sx:e,theme:this})},u}const V_=H_();function U_(){const e=zD(V_);return e[_P]||e}var Y_,K_={},X_={exports:{}};function J_(){return Y_||(Y_=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(X_)),X_.exports}var Z_,Q_={exports:{}};function eO(){return Z_||(Z_=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Q_)),Q_.exports}var tO=qe(jD),rO=qe(HD),nO=s_;Object.defineProperty(K_,"__esModule",{value:!0});var oO=K_.default=function(e={}){const{themeId:t,defaultTheme:r=bO,rootShouldForwardProp:n=mO,slotShouldForwardProp:o=mO}=e,i=e=>(0,cO.default)((0,iO.default)({},e,{theme:yO((0,iO.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sO.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=xO(vO(l))}=a,p=(0,aO.default)(a,fO),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=mO;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,sO.default)(e,(0,iO.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,lO.isPlainObject)(e)?n=>{const o=yO({theme:n.theme,defaultTheme:r,themeId:t});return SO(e,(0,iO.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push((e=>{const n=yO((0,iO.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=SO(r,(0,iO.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=yO((0,iO.default)({},e,{defaultTheme:r,themeId:t}));return SO({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,iO.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};K_.shouldForwardProp=mO,K_.systemDefaultTheme=void 0;var iO=nO(J_()),aO=nO(eO()),sO=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=hO(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Ls),lO=Ps;nO(Ds),nO(_s);var uO=nO(tO),cO=nO(rO);const dO=["ownerState"],pO=["variants"],fO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hO(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(hO=function(e){return e?r:t})(e)}function mO(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function gO(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const bO=K_.systemDefaultTheme=(0,uO.default)(),vO=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function yO({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function xO(e){return e?(t,r)=>r[e]:null}function SO(e,t,r){let{ownerState:n}=t,o=(0,aO.default)(t,dO);const i="function"==typeof e?e((0,iO.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>SO(e,(0,iO.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,aO.default)(i,pO);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,iO.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,iO.default)({ownerState:n},o,n)):e.style;t.push(r?gO((0,sO.internal_serializeStyles)(i),r):i)}})),t}return r?gO((0,sO.internal_serializeStyles)(i),r):i}const wO=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,CO=oO({themeId:_P,defaultTheme:V_,rootShouldForwardProp:wO}),EO=["theme"];function RO(e){let{theme:t}=e,r=kf(e,EO);const n=t[_P];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Op({},n,{vars:null}):t&&!t.vars&&(o=Op({},t,{vars:null}))),Zo.jsx(n_,Op({},r,{themeId:n?_P:void 0,theme:o}))}const MO=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function AO(e){return e_(e)}const IO=e=>e.scrollTop;function kO(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function LO(e){return ui("MuiPaper",e)}ci("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PO=["className","component","elevation","square","variant"],DO=CO("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Op({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Op({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${u_("#fff",MO(t.elevation))}, ${u_("#fff",MO(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),_O=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=kf(r,PO),u=Op({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return da({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},LO,o)})(u);return Zo.jsx(DO,Op({as:o,ownerState:u,className:ai(c.root,n),ref:t},l))}));const OO=ci("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),TO=["center","classes","className"];let qO,jO,NO,FO,zO=e=>e;const $O=bn(qO||(qO=zO`
|
|
101
|
-
0% {
|
|
102
|
-
transform: scale(0);
|
|
103
|
-
opacity: 0.1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
100% {
|
|
107
|
-
transform: scale(1);
|
|
108
|
-
opacity: 0.3;
|
|
109
|
-
}
|
|
110
|
-
`)),WO=bn(jO||(jO=zO`
|
|
111
|
-
0% {
|
|
112
|
-
opacity: 1;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
100% {
|
|
116
|
-
opacity: 0;
|
|
117
|
-
}
|
|
118
|
-
`)),BO=bn(NO||(NO=zO`
|
|
119
|
-
0% {
|
|
120
|
-
transform: scale(1);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
50% {
|
|
124
|
-
transform: scale(0.92);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
100% {
|
|
128
|
-
transform: scale(1);
|
|
129
|
-
}
|
|
130
|
-
`)),GO=CO("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HO=CO((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,p]=i.useState(!1),f=ai(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+o},m=ai(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||p(!0),i.useEffect((()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,l,c]),Zo.jsx("span",{className:f,style:h,children:Zo.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(FO||(FO=zO`
|
|
131
|
-
opacity: 0;
|
|
132
|
-
position: absolute;
|
|
133
|
-
|
|
134
|
-
&.${0} {
|
|
135
|
-
opacity: 0.3;
|
|
136
|
-
transform: scale(1);
|
|
137
|
-
animation-name: ${0};
|
|
138
|
-
animation-duration: ${0}ms;
|
|
139
|
-
animation-timing-function: ${0};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.${0} {
|
|
143
|
-
animation-duration: ${0}ms;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
& .${0} {
|
|
147
|
-
opacity: 1;
|
|
148
|
-
display: block;
|
|
149
|
-
width: 100%;
|
|
150
|
-
height: 100%;
|
|
151
|
-
border-radius: 50%;
|
|
152
|
-
background-color: currentColor;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
& .${0} {
|
|
156
|
-
opacity: 0;
|
|
157
|
-
animation-name: ${0};
|
|
158
|
-
animation-duration: ${0}ms;
|
|
159
|
-
animation-timing-function: ${0};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
& .${0} {
|
|
163
|
-
position: absolute;
|
|
164
|
-
/* @noflip */
|
|
165
|
-
left: 0px;
|
|
166
|
-
top: 0;
|
|
167
|
-
animation-name: ${0};
|
|
168
|
-
animation-duration: 2500ms;
|
|
169
|
-
animation-timing-function: ${0};
|
|
170
|
-
animation-iteration-count: infinite;
|
|
171
|
-
animation-delay: 200ms;
|
|
172
|
-
}
|
|
173
|
-
`),OO.rippleVisible,$O,550,(({theme:e})=>e.transitions.easing.easeInOut),OO.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),OO.child,OO.childLeaving,WO,550,(({theme:e})=>e.transitions.easing.easeInOut),OO.childPulsate,BO,(({theme:e})=>e.transitions.easing.easeInOut)),VO=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=kf(r,TO),[l,u]=i.useState([]),c=i.useRef(0),d=i.useRef(null);i.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=i.useRef(!1),f=ea(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;u((e=>[...e,Zo.jsx(HO,{classes:{ripple:ai(o.ripple,OO.ripple),rippleVisible:ai(o.rippleVisible,OO.rippleVisible),ripplePulsate:ai(o.ripplePulsate,OO.ripplePulsate),child:ai(o.child,OO.child),childLeaving:ai(o.childLeaving,OO.childLeaving),childPulsate:ai(o.childPulsate,OO.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),b=i.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,g,f]),v=i.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=i.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{y(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return i.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Zo.jsx(GO,Op({className:ai(OO.root,o.root,a),ref:m},s,{children:Zo.jsx(Ll,{component:null,exit:!0,children:l})}))}));function UO(e){return ui("MuiButtonBase",e)}const YO=ci("MuiButtonBase",["root","disabled","focusVisible"]),KO=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XO=CO("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${YO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),JO=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:M,onTouchStart:A,tabIndex:I=0,TouchRippleProps:k,touchRippleRef:L,type:P}=r,D=kf(r,KO),_=i.useRef(null),O=i.useRef(null),T=Xi(O,L),{isFocusVisibleRef:q,onFocus:j,onBlur:N,ref:F}=ua(),[z,$]=i.useState(!1);u&&z&&$(!1),i.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),_.current.focus()}})),[]);const[W,B]=i.useState(!1);i.useEffect((()=>{B(!0)}),[]);const G=W&&!c&&!u;function H(e,t,r=d){return Ki((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}i.useEffect((()=>{z&&p&&!c&&W&&O.current.pulsate()}),[c,p,z,W]);const V=H("start",w),U=H("stop",g),Y=H("stop",b),K=H("stop",E),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",A),Z=H("stop",R),Q=H("stop",M),ee=H("stop",(e=>{N(e),!1===q.current&&$(!1),h&&h(e)}),!1),te=Ki((e=>{_.current||(_.current=e.currentTarget),j(e),!0===q.current&&($(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=Ki((e=>{p&&!ne.current&&z&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=Ki((e=>{p&&" "===e.key&&O.current&&z&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(D.href||D.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===P?"button":P,se.disabled=u):(D.href||D.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=Xi(t,F,_),ue=Op({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=da({root:["root",t&&"disabled",r&&"focusVisible"]},UO,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Zo.jsxs(XO,Op({as:ae,className:ai(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:I,type:P},se,D,{children:[a,G?Zo.jsx(VO,Op({ref:T,center:o},k)):null]}))}));function ZO(e){return ui("MuiTypography",e)}ci("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const QO=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],eT=CO("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${$n(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Op({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),tT={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nT=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiTypography"}),n=(e=>rT[e]||e)(r.color),o=GD(Op({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=tT}=o,f=kf(o,QO),h=Op({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||tT[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return da({root:["root",i,"inherit"!==e.align&&`align${$n(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ZO,a)})(h);return Zo.jsx(eT,Op({as:m,ref:t,ownerState:h,className:ai(g.root,a)},f))}));const oT=i.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=Xi(i.isValidElement(r)?ba(r):null,t);if(Ti((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ti((()=>{if(a&&!o)return Gi(t,a),()=>{Gi(t,null)}}),[t,a,o]),o){if(i.isValidElement(r)){const e={ref:l};return i.cloneElement(r,e)}return Zo.jsx(i.Fragment,{children:r})}return Zo.jsx(i.Fragment,{children:a?E.createPortal(r,a):a})})),iT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],aT={entering:{opacity:1},entered:{opacity:1}},sT=i.forwardRef((function(e,t){const r=U_(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=n,TransitionComponent:v=Cl}=e,y=kf(e,iT),x=i.useRef(null),S=Xi(x,ba(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w(((e,t)=>{IO(e);const n=kO({style:g,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=w(d),M=w(m),A=w((e=>{const t=kO({style:g,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=w(h);return Zo.jsx(v,Op({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:M,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>i.cloneElement(s,Op({style:Op({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},aT[e],g,s.props.style),ref:S},t))}))}));function lT(e){return ui("MuiBackdrop",e)}ci("MuiBackdrop",["root","invisible"]);const uT=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],cT=CO("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Op({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),dT=i.forwardRef((function(e,t){var r,n,o;const i=AO({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=sT,transitionDuration:g}=i,b=kf(i,uT),v=Op({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return da({root:["root",r&&"invisible"]},lT,t)})(v),x=null!=(r=f.root)?r:c.root;return Zo.jsx(m,Op({in:p,timeout:g},b,{children:Zo.jsx(cT,Op({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ai(y.root,s,null==x?void 0:x.className),ownerState:Op({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),pT=ci("MuiBox",["root"]),fT=H_(),hT=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=En("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(_D);return i.forwardRef((function(e,i){const s=zD(r),l=GD(e),{className:u,component:c="div"}=l,d=kf(l,VD);return Zo.jsx(a,Op({as:c,ref:i,className:ai(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:_P,defaultTheme:fT,defaultClassName:pT.root,generateClassName:oi.generate});function mT(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gT(e){return parseInt(Bi(e).getComputedStyle(e).paddingRight,10)||0}function bT(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&mT(e,o)}))}function vT(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function yT(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Wi(e);return t.body===e?Bi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ca(Wi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gT(n)+e}px`;const t=Wi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gT(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Wi(n).body;else{const t=n.parentElement,r=Bi(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const xT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ST(e){const t=[],r=[];return Array.from(e.querySelectorAll(xT)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function wT(){return!0}function CT(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=ST,isEnabled:s=wT,open:l}=e,u=i.useRef(!1),c=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=Xi(ba(t),m),b=i.useRef(null);i.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=Wi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=Wi(m.current),t=t=>{b.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,s,l,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Zo.jsxs(i.Fragment,{children:[Zo.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Zo.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const ET=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&mT(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);bT(t,e.mount,e.modalRef,n,!0);const o=vT(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=vT(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=yT(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vT(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&mT(e.modalRef,t),bT(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&mT(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function RT(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=ET,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=Xi(m,p),[b,v]=i.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Ki((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Wi(h.current).body;o.add(S(),e),m.current&&w()})),E=i.useCallback((()=>o.isTopModal(S())),[o]),R=Ki((e=>{h.current=e,e&&(d&&E()?w():m.current&&mT(m.current,x))})),M=i.useCallback((()=>{o.remove(S(),x)}),[x,o]);i.useEffect((()=>()=>{M()}),[M]),i.useEffect((()=>{d?C():y&&a||M()}),[d,M,y,a,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=fa(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Op({},r,t);return Op({role:"presentation"},n,{onKeyDown:A(n),ref:g})},getBackdropProps:(e={})=>Op({"aria-hidden":!0},e,{onClick:I(e),open:d}),getTransitionProps:()=>({onEnter:zi((()=>{v(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:zi((()=>{v(!0),l&&l(),a&&M()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:E,exited:b,hasTransition:y}}function MT(e){return ui("MuiModal",e)}ci("MuiModal",["root","hidden","backdrop"]);const AT=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],IT=CO("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Op({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kT=CO(dT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),LT=i.forwardRef((function(e,t){var r,n,o,a,s,l;const u=AO({name:"MuiModal",props:e}),{BackdropComponent:c=kT,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:A,open:I,slotProps:k,slots:L}=u,P=kf(u,AT),D=Op({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:M}),{getRootProps:_,getBackdropProps:O,getTransitionProps:T,portalRef:q,isTopModal:j,exited:N,hasTransition:F}=RT(Op({},D,{rootRef:t})),z=Op({},D,{exited:N}),$=(e=>{const{open:t,exited:r,classes:n}=e;return da({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},MT,n)})(z),W={};if(void 0===h.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();W.onEnter=e,W.onExited=t}const B=null!=(r=null!=(n=null==L?void 0:L.root)?n:b.Root)?r:IT,G=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:b.Backdrop)?o:c,H=null!=(s=null==k?void 0:k.root)?s:v.root,V=null!=(l=null==k?void 0:k.backdrop)?l:v.backdrop,U=ga({elementType:B,externalSlotProps:H,externalForwardedProps:P,getSlotProps:_,additionalProps:{ref:t,as:g},ownerState:z,className:ai(p,null==H?void 0:H.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),Y=ga({elementType:G,externalSlotProps:V,additionalProps:d,getSlotProps:e=>O(Op({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ai(null==V?void 0:V.className,null==d?void 0:d.className,null==$?void 0:$.backdrop),ownerState:z});return M||I||F&&!N?Zo.jsx(oT,{ref:q,container:m,disablePortal:w,children:Zo.jsxs(B,Op({},U,{children:[!R&&c?Zo.jsx(G,Op({},Y)):null,Zo.jsx(CT,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:j,open:I,children:i.cloneElement(h,W)})]}))}):null}));function PT(e){return ui("MuiDivider",e)}const DT=ci("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_T=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],OT=CO("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Op({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:u_(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Op({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Op({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Op({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Op({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),TT=CO("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Op({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),qT=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=kf(r,_T),h=Op({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return da({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},PT,n)})(h);return Zo.jsx(OT,Op({as:a,className:ai(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Zo.jsx(TT,{className:m.wrapper,ownerState:h,children:o}):null}))}));qT.muiSkipListHighlight=!0;const jT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function NT(e){return`scale(${e}, ${e**2})`}const FT={entering:{opacity:1,transform:NT(1)},entered:{opacity:1,transform:"none"}},zT="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$T=i.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Cl}=e,b=kf(e,jT),v=ea(),y=i.useRef(),x=U_(),S=i.useRef(null),w=Xi(S,ba(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C(((e,t)=>{IO(e);const{duration:r,delay:n,easing:o}=kO({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:zT?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),M=C(u),A=C(f),I=C((e=>{const{duration:t,delay:r,easing:n}=kO({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:zT?o:.666*o,delay:zT?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=NT(.75),d&&d(e)})),k=C(p);return Zo.jsx(g,Op({appear:n,in:s,nodeRef:S,onEnter:R,onEntered:M,onEntering:E,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{"auto"===m&&v.start(y.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,t)=>i.cloneElement(o,Op({style:Op({opacity:0,transform:NT(.75),visibility:"exited"!==e||s?void 0:"hidden"},FT[e],h,o.props.style),ref:w},t))}))}));function WT(e){return ui("MuiLink",e)}$T.muiSupportAuto=!0;const BT=ci("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),GT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HT=({theme:e,ownerState:t})=>{const r=(e=>GT[e]||e)(t.color),n=WP(e,`palette.${r}`,!1)||t.color,o=WP(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:u_(n,.4)},VT=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],UT=CO(nT,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${$n(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Op({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Op({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:HT({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${BT.focusVisible}`]:{outline:"auto"}}))),YT=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=kf(r,VT),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:b}=ua(),[v,y]=i.useState(!1),x=Xi(t,b),S=Op({},r,{color:o,component:a,focusVisible:v,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return da({root:["root",`underline${$n(o)}`,"button"===r&&"button",n&&"focusVisible"]},WT,t)})(S);return Zo.jsx(UT,Op({color:o,className:ai(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&y(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&y(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(GT).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),KT=i.createContext({});function XT(e){return ui("MuiList",e)}ci("MuiList",["root","padding","dense","subheader"]);const JT=["children","className","component","dense","disablePadding","subheader"],ZT=CO("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Op({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),QT=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=kf(r,JT),d=i.useMemo((()=>({dense:s})),[s]),p=Op({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return da({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},XT,t)})(p);return Zo.jsx(KT.Provider,{value:d,children:Zo.jsxs(ZT,Op({as:a,className:ai(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})}));function eq(e){return ui("MuiListItem",e)}const tq=ci("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),rq=ci("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function nq(e){return ui("MuiListItemSecondaryAction",e)}ci("MuiListItemSecondaryAction",["root","disableGutters"]);const oq=["className"],iq=CO("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Op({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),aq=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=kf(r,oq),a=Op({},r,{disableGutters:i.useContext(KT).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return da({root:["root",t&&"disableGutters"]},nq,r)})(a);return Zo.jsx(iq,Op({className:ai(s.root,n),ownerState:a,ref:t},o))}));aq.muiName="ListItemSecondaryAction";const sq=["className"],lq=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],uq=CO("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Op({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Op({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${rq.root}`]:{paddingRight:48}},{[`&.${tq.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tq.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:u_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tq.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:u_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tq.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tq.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:u_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:u_(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),cq=CO("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dq=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=r,E=kf(r.ContainerProps,sq),R=kf(r,lq),M=i.useContext(KT),A=i.useMemo((()=>({dense:h||M.dense||!1,alignItems:n,disableGutters:g})),[n,M.dense,h,g]),I=i.useRef(null);Ti((()=>{o&&I.current&&I.current.focus()}),[o]);const k=i.Children.toArray(s),L=k.length&&(P=k[k.length-1],D=["ListItemSecondaryAction"],i.isValidElement(P)&&-1!==D.indexOf(null!=(_=P.type.muiName)?_:null==(O=P.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var P,D,_,O;const T=Op({},r,{alignItems:n,autoFocus:o,button:a,dense:A.dense,disabled:m,disableGutters:g,disablePadding:b,divider:v,hasSecondaryAction:L,selected:S}),q=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return da({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},eq,n)})(T),j=Xi(I,t),N=C.root||c.Root||uq,F=w.root||d.root||{},z=Op({className:ai(q.root,F.className,l),disabled:m},R);let $=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=ai(tq.focusVisible,y),$=JO),L?($=z.component||u?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),Zo.jsx(KT.Provider,{value:A,children:Zo.jsxs(cq,Op({as:p,className:ai(q.container,f),ref:j,ownerState:T},E,{children:[Zo.jsx(N,Op({},F,!pa(N)&&{as:$,ownerState:Op({},T,F.ownerState)},z,{children:k})),k.pop()]}))})):Zo.jsx(KT.Provider,{value:A,children:Zo.jsxs(N,Op({},F,{as:$,ref:j},!pa(N)&&{ownerState:Op({},T,F.ownerState)},z,{children:[k,x&&Zo.jsx(aq,{children:x})]}))})})),pq=ci("MuiListItemIcon",["root","alignItemsFlexStart"]),fq=ci("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hq=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mq(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gq(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function bq(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function vq(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&bq(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const yq=i.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=kf(e,hq),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ti((()=>{n&&f.current.focus()}),[n]),i.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ca(Wi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=Xi(f,t);let g=-1;i.Children.forEach(a,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=i.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return Zo.jsx(QT,Op({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Wi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),vq(t,n,u,l,mq);else if("ArrowUp"===r)e.preventDefault(),vq(t,n,u,l,gq);else if("Home"===r)e.preventDefault(),vq(t,null,u,l,mq);else if("End"===r)e.preventDefault(),vq(t,null,u,l,gq);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&bq(n,o);o.previousKeyMatched&&(s||vq(t,n,!1,l,mq,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:b}))}));function xq(e){return ui("MuiPopover",e)}ci("MuiPopover",["root","paper"]);const Sq=["onEntering"],wq=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Cq=["slotProps"];function Eq(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Rq(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Mq(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Aq(e){return"function"==typeof e?e():e}const Iq=CO(LT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kq=CO(_O,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Lq=i.forwardRef((function(e,t){var r,n,o;const a=AO({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=$T,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=a,M=kf(a.TransitionProps,Sq),A=kf(a,wq),I=null!=(r=null==x?void 0:x.paper)?r:v,k=i.useRef(),L=Xi(k,I.ref),P=Op({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:M}),D=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"]},xq,t)})(P),_=i.useCallback((()=>{if("anchorPosition"===d)return c;const e=Aq(l),t=(e&&1===e.nodeType?e:Wi(k.current).body).getBoundingClientRect();return{top:t.top+Eq(t,u.vertical),left:t.left+Rq(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),O=i.useCallback((e=>({vertical:Eq(e,S.vertical),horizontal:Rq(e,S.horizontal)})),[S.horizontal,S.vertical]),T=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Mq(r)};const n=_();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Bi(Aq(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Mq(r)}}),[l,d,_,O,g]),[q,j]=i.useState(b),N=i.useCallback((()=>{const e=k.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[T]);i.useEffect((()=>(R&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,R,N]);i.useEffect((()=>{b&&N()})),i.useImperativeHandle(s,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),i.useEffect((()=>{if(!b)return;const e=$i((()=>{N()})),t=Bi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Wi(Aq(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:Iq,W=null!=(o=null==y?void 0:y.paper)?o:kq,B=ga({elementType:W,externalSlotProps:Op({},I,{style:q?I.style:Op({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:P,className:ai(D.paper,null==I?void 0:I.className)}),G=ga({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:ai(D.root,f)}),{slotProps:H}=G,V=kf(G,Cq);return Zo.jsx($,Op({},V,!pa($)&&{slotProps:H,disableScrollLock:R},{children:Zo.jsx(w,Op({appear:!0,in:b,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},M,{children:Zo.jsx(W,Op({},B,{children:p}))}))}))}));function Pq(e){return ui("MuiMenu",e)}ci("MuiMenu",["root","paper","list"]);const Dq=["onEntering"],_q=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Oq={vertical:"top",horizontal:"right"},Tq={vertical:"top",horizontal:"left"},qq=CO(Lq,{shouldForwardProp:e=>wO(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jq=CO(kq,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nq=CO(yq,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Fq=i.forwardRef((function(e,t){var r,n;const o=AO({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=o,x=kf(o.TransitionProps,Dq),S=kf(o,_q),w=(()=>{const e=i.useContext(XD);return null!=e&&e})(),C=Op({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:b}),E=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"],list:["list"]},Pq,t)})(C),R=a&&!u&&p,M=i.useRef(null);let A=-1;i.Children.map(s,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=v.paper)?r:jq,k=null!=(n=y.paper)?n:f,L=ga({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[E.root,l]}),P=ga({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return Zo.jsx(qq,Op({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Oq:Tq,slots:{paper:I,root:v.root},slotProps:{root:L,paper:P},open:p,ref:t,transitionDuration:m,TransitionProps:Op({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:Zo.jsx(Nq,Op({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===A||u),autoFocusItem:R,variant:b},c,{className:ai(E.list,c.className),children:s}))}))}));function zq(e){return ui("MuiMenuItem",e)}const $q=ci("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wq=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bq=CO(JO,{shouldForwardProp:e=>wO(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Op({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$q.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:u_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$q.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:u_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$q.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:u_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:u_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$q.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$q.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${DT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${DT.inset}`]:{marginLeft:52},[`& .${fq.root}`]:{marginTop:0,marginBottom:0},[`& .${fq.inset}`]:{paddingLeft:36},[`& .${pq.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Op({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pq.root} svg`]:{fontSize:"1.25rem"}})))),Gq=i.forwardRef((function(e,t){const r=AO({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=kf(r,Wq),h=i.useContext(KT),m=i.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=i.useRef(null);Ti((()=>{n&&g.current&&g.current.focus()}),[n]);const b=Op({},r,{dense:m.dense,divider:s,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Op({},a,da({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},zq,a))})(r),y=Xi(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Zo.jsx(KT.Provider,{value:m,children:Zo.jsx(Bq,Op({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:ai(v.focusVisible,u),className:ai(v.root,p)},f,{ownerState:b,classes:v}))})})),Hq=({id:e,sectionIndex:t})=>{const r=qS(VS);return void 0===r?null:Zo.jsx(r,{id:e,sectionIndex:t})};var Vq=Object.create,Uq=Object.defineProperty,Yq=Object.defineProperties,Kq=Object.getOwnPropertyDescriptor,Xq=Object.getOwnPropertyDescriptors,Jq=Object.getOwnPropertySymbols,Zq=Object.prototype.hasOwnProperty,Qq=Object.prototype.propertyIsEnumerable,ej=e=>{throw TypeError(e)},tj=(e,t,r)=>t in e?Uq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rj=["class","method","getter","setter","accessor","field","value","get","set"],nj=e=>void 0!==e&&"function"!=typeof e?ej("Function expected"):e,oj=(e,t,r,n,o)=>({kind:rj[e],name:t,metadata:n,addInitializer:e=>r._?ej("Already initialized"):o.push(nj(e||null))}),ij=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},aj=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=rj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,Kq({get[r](){return lj(this,i)},set[r](e){return cj(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=oj(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?nj(s)&&(g[f]=s):"object"!=typeof s||null===s?ej("Object expected"):(nj(a=s.get)&&(g.get=a),nj(a=s.set)&&(g.set=a),nj(a=s.init)&&h.unshift(a));return g&&Uq(o,r,g),o},sj=(e,t,r)=>t.has(e)||ej("Cannot "+r),lj=(e,t,r)=>(sj(e,t,"read from private field"),t.get(e)),uj=(e,t,r)=>t.has(e)?ej("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),cj=(e,t,r,n)=>(sj(e,t,"write to private field"),t.set(e,r),r);function dj(e){return e instanceof zj||e instanceof Fj}var pj=Object.defineProperty,fj=Object.defineProperties,hj=Object.getOwnPropertyDescriptors,mj=Object.getOwnPropertySymbols,gj=Object.prototype.hasOwnProperty,bj=Object.prototype.propertyIsEnumerable,vj=(e,t,r)=>t in e?pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yj=(e,t)=>{for(var r in t||(t={}))gj.call(t,r)&&vj(e,r,t[r]);if(mj)for(var r of mj(t))bj.call(t,r)&&vj(e,r,t[r]);return e},xj=(e,t)=>fj(e,hj(t));function Sj(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function wj(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return xj(yj({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return xj(yj({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,Sj)}var Cj="__default__";function Ej(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function Rj(e,t){return e.index-t.index}function Mj(e){return Array.from(e).sort(Rj)}var Aj,Ij,kj,Lj,Pj,Dj,_j,Oj,Tj=[class extends CE{constructor(e){super(e);const t=gw((()=>{const{dragOperation:t}=e;if(_A(t.activatorEvent)&&dj(t.source)&&t.status.initialized){const t=e.registry.plugins.get(sk);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!_A(e.nativeEvent))return;if(!dj(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];JS((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&dj(e)||!e.element)continue;let r=e.shape;const n=new kA(e.element,{getBoundingClientRect:e=>SM(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,jA);JS((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!dj(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;wA(c);const d=new kA(c);if(!d)return;const p=qC.delta(d,qC.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends CE{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof zj){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(Mj(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!dj(o)||!dj(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=Mj(l),g=s?m:Mj(u),b=null!=(c=o.sortable.group)?c:Cj,v=null!=(d=i.sortable.group)?d:Cj,y={[b]:m,[v]:g},x=wj(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),Ej(f,S,h,w),JS((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;dj(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=Mj(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(Ej(r,i.index,a,o.index),JS((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],qj={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},jj=new class{constructor(){nC(this,pC,new WeakMap)}get(e,t){var r;return e?null==(r=rC(this,pC).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return rC(this,pC).has(e)||rC(this,pC).set(e,new Map),null==(n=rC(this,pC).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=rC(this,pC).get(e))?void 0:t.clear():void 0}};Ij=[lC],Aj=[lC];var Nj=class{constructor(e,t){uj(this,Lj,ij(kj,8,this)),ij(kj,11,this),uj(this,Pj),uj(this,Dj),uj(this,_j,ij(kj,12,this)),ij(kj,15,this),uj(this,Oj),this.register=()=>(JS((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{JS((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{JS((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=qj,plugins:u=Tj}=r,c=((e,t)=>{var r={};for(var n in e)Zq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Jq)for(var n of Jq(e))t.indexOf(n)<0&&Qq.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new zj(c,t,this),this.draggable=new Fj(((e,t)=>Yq(e,Xq(t)))(((e,t)=>{for(var r in t||(t={}))Zq.call(t,r)&&tj(e,r,t[r]);if(Jq)for(var r of Jq(t))Qq.call(t,r)&&tj(e,r,t[r]);return e})({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&jj.clear(this.manager),(null==n?void 0:n.dragging)&&jj.set(this.manager,this.id,QS((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=lj(this,Dj),o=lj(this,Pj);e===n&&t===o||(cj(this,Dj,e),cj(this,Pj,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),cj(this,Oj,c.element),this.manager=t,this.index=i,cj(this,Dj,i),this.group=o,cj(this,Pj,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=jj.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=jj.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){QS((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=cA(n),l=EA(n,s,!1),u=EA(n,s);(i||a)&&CA({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){JS((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){JS((()=>{const t=lj(this,Oj),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),cj(this,Oj,e)}))}get element(){var e,t;const r=lj(this,Oj);if(r)return null!=(t=null!=(e=MM.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){JS((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){JS((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){JS((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:qA}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){JS((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};kj=[,,,Vq(null)],Lj=new WeakMap,Pj=new WeakMap,Dj=new WeakMap,_j=new WeakMap,Oj=new WeakMap,aj(kj,4,"index",Ij,Nj,Lj),aj(kj,4,"group",Aj,Nj,_j),((e,t)=>{return tj(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(kj,Nj);var Fj=class extends Kk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},zj=class extends Xk{constructor(e,t,r){super(e,t),this.sortable=r}},$j=Object.defineProperty,Wj=Object.defineProperties,Bj=Object.getOwnPropertyDescriptors,Gj=Object.getOwnPropertySymbols,Hj=Object.prototype.hasOwnProperty,Vj=Object.prototype.propertyIsEnumerable,Uj=(e,t,r)=>t in e?$j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yj=(e,t)=>{for(var r in t||(t={}))Hj.call(t,r)&&Uj(e,r,t[r]);if(Gj)for(var r of Gj(t))Vj.call(t,r)&&Uj(e,r,t[r]);return e};function Kj(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:m,type:g}=e,b=Yj(Yj({},qj),e.transition),v=gL((t=>new Nj(((e,t)=>Wj(e,Bj(t)))(Yj({},e),{transition:b,register:!1,handle:Jk(s),element:Jk(a),target:Jk(m),feedback:d}),t))),y=Qk(v,Xj);return rL(o,(()=>v.id=o)),Zk((()=>{JS((()=>{v.group=u,v.index=l}))}),[v,u,l]),rL(g,(()=>v.type=g)),rL(t,(()=>v.accept=t),void 0,sC),rL(i,(()=>i&&(v.data=i))),rL(l,(()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==b?void 0:b.idle)&&v.refreshShape()}),eL),nL(s,(e=>v.handle=e)),nL(a,(e=>v.element=e)),nL(m,(e=>v.target=e)),rL(c,(()=>v.disabled=!0===c)),rL(f,(()=>v.sensors=f)),rL(r,(()=>v.collisionDetector=r)),rL(n,(()=>v.collisionPriority=n)),rL(d,(()=>v.feedback=null!=d?d:"default")),rL(b,(()=>v.transition=b),void 0,sC),rL(p,(()=>v.modifiers=p),void 0,sC),rL(e.alignment,(()=>v.alignment=e.alignment)),{sortable:y,get isDragging(){return y.isDragging},get isDropping(){return y.isDropping},get isDragSource(){return y.isDragSource},get isDropTarget(){return y.isDropTarget},handleRef:h((e=>{v.handle=null!=e?e:void 0}),[v]),ref:h((e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)}),[v]),sourceRef:h((e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)}),[v]),targetRef:h((e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)}),[v])}}function Xj(e,t,r){return!("isDragSource"!==e||r||!t)}const Jj=({id:e,itemIndex:t,sectionIndex:r})=>Zo.jsx("div",{children:`${r}:${t} - ${e}`}),Zj=({id:e,itemIndex:t,sectionIndex:r})=>{const n=qS(US),o=qS(HS),i=qS(BS)({sectionIndex:r}),{ref:a,isDragging:s}=Kj({id:e,index:t,type:"item",accept:"item",group:i}),l=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,u=o??Jj;return Zo.jsx(dq,{onClick:l,ref:a,"data-dragging":s,children:Zo.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},Qj=({sectionIndex:e})=>{const t=qS(BS),r=qS(WS),n=t({sectionIndex:e}),{ref:o}=qL({id:n,type:"column",accept:"item",collisionPriority:HE.Low});return Zo.jsx(hT,{ref:o,style:{overflow:"auto"},children:Zo.jsxs(QT,{children:[Zo.jsx(qT,{}),Zo.jsx(dq,{children:Zo.jsx(Hq,{id:n,sectionIndex:e})}),Zo.jsx(qT,{}),ZL(r(e)).map((r=>{const n=t({sectionIndex:e,itemIndex:r});return Zo.jsx(dq,{children:Zo.jsx(Zj,{id:n,itemIndex:r,sectionIndex:e},n)},n)}))]})})},eN=()=>{const e=qS($S),t=qS(BS),r=qS(GS);return Zo.jsx(mL,{onDragOver:e=>{r?.(e)},children:Zo.jsx(KL,{style:{display:"flex",flexDirection:"column"},children:ZL(e).map((e=>Zo.jsx(Qj,{sectionIndex:e},t({sectionIndex:e}))))})})},tN=e=>Zo.jsx(LS,{children:Zo.jsx(YS,{props:e,children:Zo.jsx(eN,{})})}),rN="12px",nN="nebula-table-utils-head-menu-button",oN="sn-copy-cell",iN="PSEUDO-DIM";let aN=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const sN="nebula-table-utils-column-adjuster";let lN=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),uN=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const cN={darker:.15,brighter:.3,opacity:.03},dN={darker:.3,brighter:.5,opacity:.05};let pN=function(e){return e.Cyclic="C",e}({});const fN=vx((e=>{const t=e(Fx);return t?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.map((e=>({id:e.qDef.cId,title:e.qDef.cId})))})),hN=vx((e=>e(Nx)?.qHyperCube.exludedNoOfLeftDims??-1)),mN=vx((e=>{const t=e(Nx),r=e($x),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map((e=>{if(-1===e)return{id:iN,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}}));return n})),gN=vx((e=>{const t=e(Nx),r=e($x),n=e(mN),o=e(fN),i=e(hN),a=e(Bx);if(void 0===t||void 0===n||void 0===o)return[];const s=n.slice(0,t.qHyperCube.qNoOfLeftDims),l=n.slice(t.qHyperCube.qNoOfLeftDims),u=o.slice(0,i),c=o.slice(i);return[{id:"rows",title:r("Common.Rows"),items:[...s,...u].filter(a)},{id:"columns",title:r("Common.Columns"),items:[...l,...c].filter(a)}]})),bN=Ox((e=>vx((t=>t(gN)[e])))),vN=Ox((({sectionIndex:e,itemIndex:t})=>vx((r=>r(bN(e)).items.at(t)?.title))),((e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex)),yN=Ox((e=>vx((t=>t(bN(e)).title)))),xN=vx((e=>({sectionIndex:t,itemIndex:r})=>{const n=e(bN(t));return void 0!==r?n.items[r].id:n.id})),SN=vx((e=>t=>e(bN(t)).items.length)),wN=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),CN=({children:e})=>Zo.jsxs(Gu,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[Zo.jsx(gc,{size:"small",style:{flexShrink:0,padding:9}}),Zo.jsx(wN,{children:e})]}),EN=({sectionIndex:e})=>{const t=Lx(yN(e));return Zo.jsx(CN,{children:t})},RN=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),MN=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})}))),AN=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),IN=({icon:e,title:t,...r})=>{const[n,o]=Dx(Hx(r.id));return Zo.jsxs(Gu,{onClick:e=>{e.stopPropagation(),o(!n)},style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 8px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"}},children:[Zo.jsx(gc,{checked:n,size:"small",style:{padding:9,flexShrink:0,visibility:r.id===iN?"hidden":"visible"}}),Zo.jsx(e,{height:"12px",style:{flexShrink:0}}),Zo.jsx(AN,{children:t}),Zo.jsx(MN,{height:"16px",style:{flexShrink:0,cursor:"grab"}})]})},kN=e=>{const t=Lx(vN(e))??"";return Zo.jsx(IN,{title:t,icon:RN,...e})},LN=()=>{const e=Lx(xN),t=Lx(SN);return Zo.jsxs(tN,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,children:[EN,kN]})},PN=vx((e=>{const t=e(Fx);return t?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.map((e=>({id:e.qDef.cId,title:e.qDef.cId})))})),DN=vx((e=>{const t=e(Nx),r=e(PN)??[],n=e(Bx);if(void 0===t)return[];const o=t.qHyperCube.qMeasureInfo.map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})));return o.push(...r),o.filter(n)})),_N=Ox((e=>vx((t=>t(DN)[e].title)))),ON=vx((e=>({itemIndex:t})=>{const r=e(DN);return void 0!==t?r[t].id:"measures"})),TN=vx((e=>()=>e(DN).length)),qN=()=>{const e=Lx($x);return Zo.jsx(CN,{children:e("Common.Values")})},jN=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1.5.5A.5.5 0 0 0 1 1v13.5a.5.5 0 0 0 .5.5H15a.5.5 0 0 0 .5-.5v-6A.5.5 0 0 0 15 8H8V1a.5.5 0 0 0-.5-.5zm.5 4v-3h5v6.793l-5 5V9.5h1.5v-1H2v-3h1.5v-1zm.707 9.5 5-5H14.5v5h-3v-1.5h-1V14h-3v-1.5h-1V14z"})}))),NN=e=>{const{itemIndex:t}=e,r=Lx(_N(t));return Zo.jsx(IN,{title:r,icon:jN,...e})},FN=()=>{const e=Lx(ON),t=Lx(TN);return Zo.jsx(Gu,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:Zo.jsxs(tN,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,children:[qN,NN]})})},zN=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})}))),$N=()=>{const[e,t]=Dx(Wx),r=Lx($x),n=h((e=>{t(e.target.value)}),[t]);return Zo.jsx(Gu,{style:{paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:Zo.jsx(mp,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input",type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:n,startAdornment:Zo.jsx(nd,{position:"start",children:Zo.jsx(zN,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})})},WN=e=>{const t=((e="light",t=!1)=>ws(Ny(0,t)))();return Zo.jsx(ol,{theme:t,children:Zo.jsx(Ex,{children:Zo.jsx(Vx,{props:e,children:Zo.jsxs(Gu,{style:{display:"flex",flexDirection:"column"},children:[Zo.jsx($N,{}),Zo.jsx(LN,{}),Zo.jsx(FN,{})]})})})})},BN=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:WN,classification:{tags:["exploration"],exclusive:!0}}};var GN={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),M={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function k(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=k(e[r||t])?i:e[t],e=e[r||t]}})),e}function D(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){D(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!D(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);D(i,a)||L(t,o)||(k(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(M.generate(a,i,s)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&k(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(D(t,o))return n;if(!k(t[0])&&k(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(M.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){k(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},M.apply=function(e,t){t.forEach((function(t){var r,n,o=P(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=P(e,t.from);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},M.clone=function(e){return R({},e)},M.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):R(e,t)};const _=M,O=function(e,r,n){if(!e)return Promise.resolve();var o=_.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var N={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,N)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function W(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(W(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(W(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var H="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Me)&&r(e,Re,i(e,Me)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}var Le={accumulation:F,movingAverage:G,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:Le,apply:_e,applyModifiers:Oe,cleanUpMeasure:Te,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:qe,getActiveModifier:je,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Ne};var De={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;De[r.id]=De[r.id]||{isFirstTime:!0};var u=De[r.id].isFirstTime;if(De[r.id].isFirstTime=!1,n&&"object"===ke(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[r.id].lastReloadTime;if(De[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);We(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(r++,"object"!==ke(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ge(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===ke(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return Fe(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),We(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(s++,"object"!==ke(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&!Le[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function je(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Ne(e){var t=je(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function We(e){Fe(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===ke(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ge(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=Ge(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==ke(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=Fe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>We});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var M=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const k=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},D=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,M),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,M),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},N=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},W=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function G(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const H={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=N({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?D():E,M=l.defaultMeasure,A=void 0===M?_():M;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),k(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&G(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&G(m.qProperty,"dynamicScript"),m}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=H.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=H.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?G(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):G(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Me="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",ke="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:Me,quarantineName:Ae,arrayName:Ie,itemPath:ke})},unquarantine:function(e){Re({properties:e,arrayPath:Me,itemPath:ke,arrayName:Ie,quarantineName:Ae})}};var Pe="qHyperCubeDef.qMeasures",De="measures",_e="qHyperCubeDef.qDimensions",Oe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Ne="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:De,itemPath:Fe}),Ee({properties:e,arrayPath:_e,quarantineName:ze,arrayName:Oe,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:De,itemPath:Fe}),Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:Oe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:Fe}),Re({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})}},We={hypercube:H,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:G,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:$e}})(),n.default})()}(GN);var HN=Te(GN.exports);const VN="qHyperCubeDef.qMeasures",UN="measures",YN="qHyperCubeDef.qDimensions",KN="dimensions",XN="qDef.representation",JN="tableRepresentation",ZN="qDef.conditionalColoring",QN="conditionalColoring",eF="qMiniChartDef",tF="miniChartDef",rF=e=>{HN.unquarantineArrayProp({properties:e,arrayPath:YN,itemPath:XN,arrayName:KN,quarantineName:JN}),HN.unquarantineArrayProp({properties:e,arrayPath:VN,itemPath:XN,arrayName:UN,quarantineName:JN}),HN.unquarantineArrayProp({properties:e,arrayPath:VN,itemPath:ZN,arrayName:UN,quarantineName:QN}),HN.unquarantineArrayProp({properties:e,arrayPath:VN,itemPath:eF,arrayName:UN,quarantineName:tF})},nF=e=>{HN.quarantineArrayProp({properties:e,arrayPath:YN,itemPath:XN,arrayName:KN,quarantineName:JN}),HN.quarantineArrayProp({properties:e,arrayPath:VN,itemPath:XN,arrayName:UN,quarantineName:JN}),HN.quarantineArrayProp({properties:e,arrayPath:VN,itemPath:ZN,arrayName:UN,quarantineName:QN}),HN.quarantineArrayProp({properties:e,arrayPath:VN,itemPath:eF,arrayName:UN,quarantineName:tF})};function oF(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function iF(e){if("object"==typeof e&&oF(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const aF={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function sF(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(oF(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in aF}(e)){const t=aF[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function lF(e){let t,r,n=0;const o="string"==typeof e?sF(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function uF(e){let t,r,n=0;const o="string"==typeof e?sF(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function cF(e){if(oF(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?iF(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function dF(e,t){return oF(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:dF(sF(e))}function pF(e){return oF(e)?1===e.a?cF(e):dF(e):pF(sF(e))}const fF=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function hF(...e){const t=sF(...e);return t.invalid||function(e){return.2126*fF(e.r)+.7152*fF(e.g)+.0722*fF(e.b)}(t)<.4}function mF(...e){const t=sF(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=lF(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=sF(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>hF(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=cF(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=dF(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=pF(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(oF(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?iF(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?sF(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=lF(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=uF(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=uF(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>mF(o(18*e)),getDarkenedColor:(e=1)=>mF(o(18*-e))}}function gF(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bF,vF,yF,xF="top",SF="top-right",wF="right",CF="bottom-right",EF="bottom",RF="bottom-left",MF="left",AF="top-left";gF(gF(gF(gF(gF(gF(gF(gF(gF(gF(bF={},"equal-equal",[xF,EF]),"equal-higher",[EF,CF]),"equal-lower",[xF,SF]),"equal-void",[xF,EF]),"higher-equal",[MF,RF,xF,SF]),"higher-higher-acute",[EF,RF,MF,SF]),"higher-higher-obtuse",[EF,xF]),"higher-lower-negative",[xF,SF,wF]),"higher-lower-positive",[EF,RF,MF]),"higher-void",[xF]),gF(gF(gF(gF(gF(gF(gF(gF(gF(gF(bF,"lower-equal",[xF]),"lower-higher-negative",[xF,AF]),"lower-higher-positive",[CF]),"lower-lower-acute",[xF,AF,MF,SF,wF]),"lower-lower-obtuse",[xF,EF]),"lower-void",[xF]),"void-equal",[xF]),"void-higher",[xF,EF]),"void-lower",[xF,EF,MF]),"void-void",[xF]),gF(bF,"unclassified",[xF,EF,wF,MF,SF,CF,RF,AF]);var IF=function(){if(yF)return vF;yF=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return vF=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},vF}();function kF(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function LF(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function PF(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(IF);var DF=1/.7,_F="\\s*([+-]?\\d+)\\s*",OF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",TF="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qF=/^#([0-9a-f]{3,8})$/,jF=new RegExp(`^rgb\\(${_F},${_F},${_F}\\)$`),NF=new RegExp(`^rgb\\(${TF},${TF},${TF}\\)$`),FF=new RegExp(`^rgba\\(${_F},${_F},${_F},${OF}\\)$`),zF=new RegExp(`^rgba\\(${TF},${TF},${TF},${OF}\\)$`),$F=new RegExp(`^hsl\\(${OF},${TF},${TF}\\)$`),WF=new RegExp(`^hsla\\(${OF},${TF},${TF},${OF}\\)$`),BF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function GF(){return this.rgb().formatHex()}function HF(){return this.rgb().formatRgb()}function VF(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=qF.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?UF(t):3===r?new JF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?YF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?YF(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jF.exec(e))?new JF(t[1],t[2],t[3],1):(t=NF.exec(e))?new JF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=FF.exec(e))?YF(t[1],t[2],t[3],t[4]):(t=zF.exec(e))?YF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$F.exec(e))?nz(t[1],t[2]/100,t[3]/100,1):(t=WF.exec(e))?nz(t[1],t[2]/100,t[3]/100,t[4]):BF.hasOwnProperty(e)?UF(BF[e]):"transparent"===e?new JF(NaN,NaN,NaN,0):null}function UF(e){return new JF(e>>16&255,e>>8&255,255&e,1)}function YF(e,t,r,n){return n<=0&&(e=t=r=NaN),new JF(e,t,r,n)}function KF(e){return e instanceof PF||(e=VF(e)),e?new JF((e=e.rgb()).r,e.g,e.b,e.opacity):new JF}function XF(e,t,r,n){return 1===arguments.length?KF(e):new JF(e,t,r,null==n?1:n)}function JF(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function ZF(){return`#${rz(this.r)}${rz(this.g)}${rz(this.b)}`}function QF(){const e=ez(this.opacity);return`${1===e?"rgb(":"rgba("}${tz(this.r)}, ${tz(this.g)}, ${tz(this.b)}${1===e?")":`, ${e})`}`}function ez(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rz(e){return((e=tz(e))<16?"0":"")+e.toString(16)}function nz(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new iz(e,t,r,n)}function oz(e){if(e instanceof iz)return new iz(e.h,e.s,e.l,e.opacity);if(e instanceof PF||(e=VF(e)),!e)return new iz;if(e instanceof iz)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new iz(a,s,l,e.opacity)}function iz(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function az(e){return(e=(e||0)%360)<0?e+360:e}function sz(e){return Math.max(0,Math.min(1,e||0))}function lz(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}kF(PF,VF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GF,formatHex:GF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oz(this).formatHsl()},formatRgb:HF,toString:HF}),kF(JF,XF,LF(PF,{brighter(e){return e=null==e?DF:Math.pow(DF,e),new JF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new JF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new JF(tz(this.r),tz(this.g),tz(this.b),ez(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZF,formatHex:ZF,formatHex8:function(){return`#${rz(this.r)}${rz(this.g)}${rz(this.b)}${rz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:QF,toString:QF})),kF(iz,(function(e,t,r,n){return 1===arguments.length?oz(e):new iz(e,t,r,null==n?1:n)}),LF(PF,{brighter(e){return e=null==e?DF:Math.pow(DF,e),new iz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new iz(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new JF(lz(e>=240?e-240:e+120,o,n),lz(e,o,n),lz(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new iz(az(this.h),sz(this.s),sz(this.l),ez(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ez(this.opacity);return`${1===e?"hsl(":"hsla("}${az(this.h)}, ${100*sz(this.s)}%, ${100*sz(this.l)}%${1===e?")":`, ${e})`}`}}));const uz=Math.PI/180,cz=180/Math.PI,dz=4/29,pz=6/29,fz=3*pz*pz;function hz(e){if(e instanceof mz)return new mz(e.l,e.a,e.b,e.opacity);if(e instanceof xz)return Sz(e);e instanceof JF||(e=KF(e));var t,r,n=yz(e.r),o=yz(e.g),i=yz(e.b),a=gz((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=gz((.4360747*n+.3850649*o+.1430804*i)/.96422),r=gz((.0139322*n+.0971045*o+.7141733*i)/.82521)),new mz(116*a-16,500*(t-a),200*(a-r),e.opacity)}function mz(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function gz(e){return e>.008856451679035631?Math.pow(e,1/3):e/fz+dz}function bz(e){return e>pz?e*e*e:fz*(e-dz)}function vz(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yz(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function xz(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Sz(e){if(isNaN(e.h))return new mz(e.l,0,0,e.opacity);var t=e.h*uz;return new mz(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kF(mz,(function(e,t,r,n){return 1===arguments.length?hz(e):new mz(e,t,r,null==n?1:n)}),LF(PF,{brighter(e){return new mz(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mz(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new JF(vz(3.1338561*(t=.96422*bz(t))-1.6168667*(e=1*bz(e))-.4906146*(r=.82521*bz(r))),vz(-.9787684*t+1.9161415*e+.033454*r),vz(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),kF(xz,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof xz)return new xz(e.h,e.c,e.l,e.opacity);if(e instanceof mz||(e=hz(e)),0===e.a&&0===e.b)return new xz(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cz;return new xz(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xz(e,t,r,null==n?1:n)}),LF(PF,{brighter(e){return new xz(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xz(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sz(this).rgb()}}));var wz=e=>()=>e;function Cz(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):wz(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Cz:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):wz(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=XF(e)).r,(t=XF(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Cz(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ez="center",Rz="bottom";[{key:"NoDataExist",alignment:Ez,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ez,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ez,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ez},{key:"DataRangeIncludingZero",alignment:Rz},{key:"LimitedData",alignment:Rz},{key:"NegativeOrZeroValues",alignment:Rz}].reduce((function(e,t){return e[t.key]=t,e}),{});var Mz,Az=["__proto__","constructor"];function Iz(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Az.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function kz(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Lz(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Dz)):void 0===t&&(t=Pz);for(var r,n,o,i,a,s=new Tz(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Tz(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Oz)}function Pz(e){return e.children}function Dz(e){return Array.isArray(e)?e[1]:null}function _z(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Oz(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Tz(e){this.data=e,this.depth=this.height=0,this.parent=null}function qz(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}Tz.prototype=Lz.prototype={constructor:Tz,count:function(){return this.eachAfter(kz)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Lz(this).eachBefore(_z)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Mz=function(e){
|
|
174
|
-
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
175
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Mz({exports:{}});const jz="qHyperCubeDef.qDimensions",Nz="dimensions",Fz="qOtherTotalSpec.qTotalMode",zz="totalMode",$z={quarantine(e){HN.quarantineArrayProp({properties:e,arrayPath:jz,quarantineName:zz,arrayName:Nz,itemPath:Fz})},unquarantine(e){HN.unquarantineArrayProp({properties:e,arrayPath:jz,quarantineName:zz,arrayName:Nz,itemPath:Fz})}};function Wz(e){const t=qz(e);return(e,r,n,o)=>{const i=HN.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,u=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&Iz(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],Iz(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&Iz(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(HN.unquarantineProperty(i.qProperty,"noOfLeftDims"),HN.unquarantineProperty(i.qProperty,"exludedNoOfLeftDims"))}return HN.conditionalShow.unquarantine(i.qProperty),$z.unquarantine(i.qProperty),rF(i.qProperty),HN.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function Bz(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=HN.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;Iz(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),HN.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,Iz(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),Iz(i,"data.0.interColumnSortOrder",u),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return HN.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),HN.quarantineProperty(i.properties,"qHyperCubeDef.exludedNoOfLeftDims","exludedNoOfLeftDims"),HN.conditionalShow.quarantine(i.properties),$z.quarantine(i.properties),nF(i.properties),i}const Gz={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Hz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),Vz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Uz=e=>{switch(e?.type){case"url":return Hz.Link;case"image":return Hz.Image;case"indicator":return Hz.Indicator;case"miniChart":return Hz.MiniChart;default:return Hz.Text}},Yz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),Kz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Hz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},Xz=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Yz({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Uz(e.qDef.representation)===Hz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Uz(e.qDef.representation)===Hz.Link&&e.qDef.representation?.urlPosition===Vz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Uz(e.qDef.representation)===Hz.Link&&e.qDef.representation?.urlPosition===Vz.Attribute},...Kz(r)}},Jz=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[Hz.Image],i=!n?.("qMiniChartDef")&&t[Hz.MiniChart],a=!n?.("tableIndicators")&&t[Hz.Indicator],s=o&&t[Hz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Hz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let Zz=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),Qz=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),e$=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),t$=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const r$="image",n$=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},o$=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uN.Auto,translation:"Common.Auto"},{value:uN.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:uN.Pixels,translation:"Object.Table.Column.Pixels"},{value:uN.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uN.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PixelsDefault,show:e=>e.qDef.columnWidth?.type===uN.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PercentageDefault,show:e=>e.qDef.columnWidth?.type===uN.Percentage}}),i$=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==r$},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==r$)}}},a$="TOTAL_OFF",s$={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Qz.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Qz.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},l$="TOTAL_OFF",u$={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Qz.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Qz.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},c$=e=>{const{translator:t,anything:r,flags:n}=e,o=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:a$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:a$,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&n$},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==a$&&n$(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:s$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Xz(e),...o$()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:s$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Jz(e,{[Hz.Image]:!0,[Hz.Indicator]:!0}),...o$()}}}}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?o:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:l$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:l$,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&n$},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==l$&&n$(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:u$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Xz(e),...o$()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:u$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Jz(e,{[Hz.Image]:!0,[Hz.ImagesInIndentMode]:!0,[Hz.Indicator]:!0}),...o$()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},d$=((e="light",t=!1)=>Ny(0,t))().palette,p$={TEXT:d$.text.primary,DISABLED:d$.text.disabled,HOVER:d$.action.hover,WHITE:Fy.GREYSCALE_100,BORDER_LIGHT:Fy.GREYSCALE_90,BORDER_MEDIUM:Fy.GREYSCALE_85,BORDER_HEAVY:Fy.GREYSCALE_50,DARK_MODE_TEXT:Fy.GREYSCALE_95,DARK_MODE_BORDER:Fy.GREYSCALE_95,DARK_MODE_DISABLED:Fy.GREYSCALE_70,DARK_MODE_BACKGROUND:Fy.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Fy.GREYSCALE_95,SELECTED:d$.primary.main,LINK:d$.info.main,BACKGROUND_EDITABLE_COLUMN:Fy.GREYSCALE_98};function f$(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function h$(e){if("object"==typeof e&&f$(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const m$={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function g$(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(f$(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in m$}(e)){const t=m$[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function b$(e){let t,r,n;if(f$(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?h$(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function v$(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function y$(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function x$(e){if(f$(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?h$(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function S$(e,t){return f$(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:S$(g$(e))}function w$(e){return f$(e)?1===e.a?x$(e):S$(e):w$(g$(e))}const C$=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function E$(e){return.2126*C$(e.r)+.7152*C$(e.g)+.0722*C$(e.b)}function R$(...e){const t=g$(...e);return t.invalid||E$(t)<.4}function M$(...e){const t=g$(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=v$(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=g$(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>R$(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=x$(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=S$(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=w$(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=b$(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=v$(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=y$(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=y$(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>M$(o(18*e)),getDarkenedColor:(e=1)=>M$(o(18*-e))}}function A$(e,t){if(!e||!t)return;const r=E$(e),n=E$(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var I$,k$,L$=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],P$=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function D$(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?P$:L$}var _$=function(){if(k$)return I$;k$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return I$=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},I$}();function O$(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T$(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function q$(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(_$);var j$=1/.7,N$="\\s*([+-]?\\d+)\\s*",F$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",z$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$$=/^#([0-9a-f]{3,8})$/,W$=new RegExp(`^rgb\\(${N$},${N$},${N$}\\)$`),B$=new RegExp(`^rgb\\(${z$},${z$},${z$}\\)$`),G$=new RegExp(`^rgba\\(${N$},${N$},${N$},${F$}\\)$`),H$=new RegExp(`^rgba\\(${z$},${z$},${z$},${F$}\\)$`),V$=new RegExp(`^hsl\\(${F$},${z$},${z$}\\)$`),U$=new RegExp(`^hsla\\(${F$},${z$},${z$},${F$}\\)$`),Y$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function K$(){return this.rgb().formatHex()}function X$(){return this.rgb().formatRgb()}function J$(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Z$(t):3===r?new rW(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Q$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Q$(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=W$.exec(e))?new rW(t[1],t[2],t[3],1):(t=B$.exec(e))?new rW(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=G$.exec(e))?Q$(t[1],t[2],t[3],t[4]):(t=H$.exec(e))?Q$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=V$.exec(e))?lW(t[1],t[2]/100,t[3]/100,1):(t=U$.exec(e))?lW(t[1],t[2]/100,t[3]/100,t[4]):Y$.hasOwnProperty(e)?Z$(Y$[e]):"transparent"===e?new rW(NaN,NaN,NaN,0):null}function Z$(e){return new rW(e>>16&255,e>>8&255,255&e,1)}function Q$(e,t,r,n){return n<=0&&(e=t=r=NaN),new rW(e,t,r,n)}function eW(e){return e instanceof q$||(e=J$(e)),e?new rW((e=e.rgb()).r,e.g,e.b,e.opacity):new rW}function tW(e,t,r,n){return 1===arguments.length?eW(e):new rW(e,t,r,null==n?1:n)}function rW(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function nW(){return`#${sW(this.r)}${sW(this.g)}${sW(this.b)}`}function oW(){const e=iW(this.opacity);return`${1===e?"rgb(":"rgba("}${aW(this.r)}, ${aW(this.g)}, ${aW(this.b)}${1===e?")":`, ${e})`}`}function iW(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aW(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sW(e){return((e=aW(e))<16?"0":"")+e.toString(16)}function lW(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new cW(e,t,r,n)}function uW(e){if(e instanceof cW)return new cW(e.h,e.s,e.l,e.opacity);if(e instanceof q$||(e=J$(e)),!e)return new cW;if(e instanceof cW)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new cW(a,s,l,e.opacity)}function cW(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function dW(e){return(e=(e||0)%360)<0?e+360:e}function pW(e){return Math.max(0,Math.min(1,e||0))}function fW(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}O$(q$,J$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:K$,formatHex:K$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return uW(this).formatHsl()},formatRgb:X$,toString:X$}),O$(rW,tW,T$(q$,{brighter(e){return e=null==e?j$:Math.pow(j$,e),new rW(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rW(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rW(aW(this.r),aW(this.g),aW(this.b),iW(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nW,formatHex:nW,formatHex8:function(){return`#${sW(this.r)}${sW(this.g)}${sW(this.b)}${sW(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:oW,toString:oW})),O$(cW,(function(e,t,r,n){return 1===arguments.length?uW(e):new cW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return e=null==e?j$:Math.pow(j$,e),new cW(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cW(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new rW(fW(e>=240?e-240:e+120,o,n),fW(e,o,n),fW(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new cW(dW(this.h),pW(this.s),pW(this.l),iW(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=iW(this.opacity);return`${1===e?"hsl(":"hsla("}${dW(this.h)}, ${100*pW(this.s)}%, ${100*pW(this.l)}%${1===e?")":`, ${e})`}`}}));const hW=Math.PI/180,mW=180/Math.PI,gW=4/29,bW=6/29,vW=3*bW*bW;function yW(e){if(e instanceof xW)return new xW(e.l,e.a,e.b,e.opacity);if(e instanceof RW)return MW(e);e instanceof rW||(e=eW(e));var t,r,n=EW(e.r),o=EW(e.g),i=EW(e.b),a=SW((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=SW((.4360747*n+.3850649*o+.1430804*i)/.96422),r=SW((.0139322*n+.0971045*o+.7141733*i)/.82521)),new xW(116*a-16,500*(t-a),200*(a-r),e.opacity)}function xW(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function SW(e){return e>.008856451679035631?Math.pow(e,1/3):e/vW+gW}function wW(e){return e>bW?e*e*e:vW*(e-gW)}function CW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function EW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function RW(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function MW(e){if(isNaN(e.h))return new xW(e.l,0,0,e.opacity);var t=e.h*hW;return new xW(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}O$(xW,(function(e,t,r,n){return 1===arguments.length?yW(e):new xW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return new xW(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new xW(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new rW(CW(3.1338561*(t=.96422*wW(t))-1.6168667*(e=1*wW(e))-.4906146*(r=.82521*wW(r))),CW(-.9787684*t+1.9161415*e+.033454*r),CW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),O$(RW,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof RW)return new RW(e.h,e.c,e.l,e.opacity);if(e instanceof xW||(e=yW(e)),0===e.a&&0===e.b)return new RW(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mW;return new RW(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new RW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return new RW(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new RW(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return MW(this).rgb()}}));var AW=e=>()=>e;function IW(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):AW(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?IW:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):AW(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=tW(e)).r,(t=tW(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=IW(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var kW,LW="center",PW="bottom";function DW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function _W(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function OW(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=qW)):void 0===t&&(t=TW);for(var r,n,o,i,a,s=new FW(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new FW(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(NW)}function TW(e){return e.children}function qW(e){return Array.isArray(e)?e[1]:null}function jW(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function NW(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function FW(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:LW,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:LW,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:LW,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:LW},{key:"DataRangeIncludingZero",alignment:PW},{key:"LimitedData",alignment:PW},{key:"NegativeOrZeroValues",alignment:PW}].reduce((function(e,t){return e[t.key]=t,e}),{}),FW.prototype=OW.prototype={constructor:FW,count:function(){return this.eachAfter(_W)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return OW(this).eachBefore(jW)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},kW=function(e){
|
|
100
|
+
*/function Lb(){if(Db)return ng;Db=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=function(t){return(0,e.createStyles)(t)};var e=Rb;return ng}var Ab,kb,Tb={},Ob={};function qb(){if(Ab)return Ob;Ab=1;var e=Ma();Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.default=void 0;var t=(0,e(Qm()).default)();return Ob.default=t,Ob}function _b(){if(kb)return Tb;kb=1;var e=Ma();Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var t=e(os()),r=Rb,n=e(qb());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return Tb.default=o,Tb}var jb,Nb,Fb={},zb={};function Wb(){if(jb)return zb;jb=1;var e=Ma();Object.defineProperty(zb,"__esModule",{value:!0}),zb.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},zb.getUnit=r,zb.toUnitless=n,zb.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},zb.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},zb.fontGrid=function(e){var t=e.lineHeight,r=e.pixels,n=e.htmlFontSize;return r/(t*n)},zb.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(mf());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return zb}function $b(){if(Nb)return Fb;Nb=1;var e=Ma();Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(os()),r=nf,n=Wb();return Fb}var Hb,Vb={};function Bb(){if(Hb)return Vb;Hb=1;var e=Ma();Object.defineProperty(Vb,"__esModule",{value:!0}),Vb.default=void 0;var t=e(os()),r=Rb,n=e(qb()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return Vb.default=o,Vb}var Gb,Ub={};function Yb(){if(Gb)return Ub;Gb=1;var e=Ma();Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.default=function(){return(0,t.useTheme)()||n.default};var t=Rb;e(r);var n=e(qb());return Ub}var Kb,Xb={};function Jb(){if(Kb)return Xb;Kb=1;var e=Ma();Object.defineProperty(Xb,"__esModule",{value:!0}),Xb.default=void 0;var t=e(os()),r=Rb,n=e(qb());var o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return Xb.default=o,Xb}var Zb,Qb,ex={};function tx(){if(Zb)return ex;Zb=1;var e=Ma();Object.defineProperty(ex,"__esModule",{value:!0}),ex.default=void 0;var t=Rb,r=e(qb()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return ex.default=n,ex}function rx(){return Qb||(Qb=1,function(e){var t=Ma(),r=(Op||(Op=1,function(e){var t=Np().default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_p)),_p.exports);Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=of();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(Qm()),a=t(rg()),s=t(Lb()),l=t(_b()),u=t($b()),c=t(Bb()),d=Ym();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(Yb()),f=t(Jb()),h=t(tx()),m=Rb}(qp)),qp}var nx=rx();nx.alpha(ap.GREYSCALE_0,.05),nx.alpha(ap.GREEN_PALE,.5),nx.alpha(ap.BLUE_PALE,.5),nx.alpha(ap.GREEN_PALE,.5),nx.alpha(ap.BLUE_PALE,.5),nx.alpha(ap.GREEN_PALE,.5),nx.alpha(ap.BLUE_PALE,.5),nx.alpha(ap.GREEN_PALE,.5),nx.alpha(ap.BLUE_PALE,.5),nx.alpha(ap.GREEN_PALE,.5),nx.alpha(ap.BLUE_PALE,.5);const ox=(e="light",t=!1)=>Ap(e,t);function ix(e,t){return e.unstable_is?e.unstable_is(t):t===e}function ax(e){return"init"in e}function sx(e){return!!e.write}function lx(e){return"v"in e||"e"in e}function ux(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const cx=new WeakMap;function dx(e){var t;return fx(e)&&!!(null==(t=cx.get(e))?void 0:t[0])}function px(e,t){let r=cx.get(e);if(!r){r=[!0,new Set],cx.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function fx(e){return"function"==typeof(null==e?void 0:e.then)}function hx(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function mx(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])r.has(t)&&o.add(t);for(const e of t.p)o.add(e);return o}const gx=(e,t,...r)=>t.read(...r),vx=(e,t,...r)=>t.write(...r),yx=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},bx=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},xx=(e,r)=>{const n=Ox(e),o=n[0],i=n[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let a=o.get(r);return a||(a={d:new Map,p:new Set,n:0},o.set(r,a),null==i||i(e,r)),a},Sx=e=>{const t=Ox(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},wx=e=>{const r=Ox(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of mx(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},Cx=(e,r)=>{var n;const o=Ox(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=c(e,r);if(lx(g)){if(i.has(r)&&a.get(r)!==g.n)return g;if(Array.from(g.d).every(([t,r])=>f(e,t).n===r))return g}g.d.clear();let v,y,b=!0;function x(){i.has(r)&&(m(e,r),p(e),d(e))}const S={get signal(){return v||(v=new AbortController),v.signal},get setSelf(){return"production"===(t.meta.env?t.meta.env.MODE:void 0)||sx(r)||console.warn("setSelf function cannot be used with read-only atom"),!y&&sx(r)&&(y=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&b&&console.warn("setSelf function cannot be called in sync"),!b)try{return h(e,r,...n)}finally{p(e),d(e)}}),y}},w=g.n;try{const t=u(e,r,function(t){var n;if(ix(r,t)){const r=c(e,t);if(!lx(r)){if(!ax(t))throw new Error("no atom init");Rx(e,t,t.init)}return ux(r)}const o=f(e,t);try{return ux(o)}finally{g.d.set(t,o.n),dx(g.v)&&hx(r,g.v,o),null==(n=i.get(t))||n.t.add(r),b||x()}},S);return Rx(e,r,t),fx(t)&&(px(t,()=>null==v?void 0:v.abort()),t.then(x,x)),g}catch(e){return delete g.v,g.e=e,++g.n,g}finally{b=!1,w!==g.n&&a.get(r)===w&&(a.set(r,g.n),s.add(r),null==(n=l.c)||n.call(l,r))}},Ex=(e,t)=>{const r=Ox(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of mx(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},Ix=(e,t,...r)=>{const n=Ox(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[17];let f=!0;const h=t=>ux(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(ix(t,r)){if(!ax(r))throw new Error("atom not writable");const t=c.n,s=n[0];return Rx(e,r,s),p(e,r),void(t!==c.n&&(o.add(r),null==(a=i.c)||a.call(i,r),d(e,r)))}return Ix(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},Dx=(e,t)=>{var r;const n=Ox(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!dx(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),null==(r=a.c)||r.call(a,n),l(e,n))}for(const r of p.d||[])if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},Mx=(e,t)=>{var r;const n=Ox(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=l(e,t);let h=o.get(t);if(!h){d(e,t);for(const r of f.d.keys()){Mx(e,r).t.add(t)}if(h={l:new Set,d:new Set(f.d.keys()),t:new Set},o.set(t,h),null==(r=a.m)||r.call(a,t),sx(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(h.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}}return h},Px=(e,t)=>{var r;const n=Ox(e),o=n[1],i=n[5],a=n[6],s=n[11],l=n[19],u=s(e,t);let c=o.get(t);if(!c||c.l.size||Array.from(c.t).some(e=>{var r;return null==(r=o.get(e))?void 0:r.d.has(t)}))return c;c.u&&i.add(c.u),c=void 0,o.delete(t),null==(r=a.u)||r.call(a,t);for(const r of u.d.keys()){const n=l(e,r);null==n||n.t.delete(t)}},Rx=(e,t,r)=>{const n=Ox(e)[11],o=n(e,t),i="v"in o,a=o.v;if(fx(r))for(const i of o.d.keys())hx(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,fx(a)&&function(e){const t=cx.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach(e=>e()))}(a))},Lx=(e,t)=>ux((0,Ox(e)[14])(e,t)),Ax=(e,t,...r)=>{const n=Ox(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},kx=(e,t,r)=>{const n=Ox(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},Tx=new WeakMap;function Ox(e){const r=Tx.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r}let qx,_x=0;function jx(e,r){const n="atom"+ ++_x,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Nx,o.write=Fx),r&&(o.write=r),o}function Nx(e){return e(this)}function Fx(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function zx(){return function(...e){const t={get:e=>(0,Ox(t)[21])(t,e),set:(e,...r)=>(0,Ox(t)[22])(t,e,...r),sub:(e,r)=>(0,Ox(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},gx,vx,yx,bx,xx,Sx,wx,Cx,Ex,Ix,Dx,Mx,Px,Rx,Lx,Ax,kx].map((t,r)=>e[r]||t);return Tx.set(t,Object.freeze(r)),t}()}const Wx=c(void 0);function $x(e){return n(Wx)||(qx||(qx=zx(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=qx),globalThis.__JOTAI_DEFAULT_STORE__!==qx&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),qx)}function Hx({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=zx()),o(Wx.Provider,{value:t||r.current},e)}const Vx=e=>"function"==typeof(null==e?void 0:e.then),Bx=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Gx=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Bx(e),e)}),Ux=new WeakMap,Yx=(e,t)=>{let r=Ux.get(e);return r||(r=new Promise((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();Vx(e)?(Ux.set(e,r),i=e,e.then(a(e),s(e)),px(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),px(e,l)}),Ux.set(e,r)),r};function Kx(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=$x(),[[a,s,l],u]=d(t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]},void 0,()=>[i.get(e),i,e]);let c=a;if(s===i&&l===e||(u(),c=i.get(e)),p(()=>{const t=i.sub(e,()=>{if(o)try{const t=i.get(e);Vx(t)&&Bx(Yx(t,()=>i.get(e)))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)});return u(),t},[i,e,n,o]),f(c),Vx(c)){const t=Yx(c,()=>i.get(e));return o&&Bx(t),Gx(t)}return c}function Xx(e,r){const n=$x();return h((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Jx(e,t){return[Kx(e),Xx(e)]}const Zx=Symbol("production"!==(t.meta.env?t.meta.env.MODE:void 0)?"RESET":"");function Qx(e,t){let r=null;const n=new Map,o=new Set,i=o=>{let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!(null==r?void 0:r(s[1],o)))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l},a=(e,t,r)=>{for(const n of o)n({type:e,param:t,atom:r})};return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const eS=new WeakMap;const tS=e=>{let t=eS.get(e);return t||(t=new WeakSet,eS.set(e,t)),t},rS=jx(),nS=jx(),oS=jx(),iS=jx(),aS=jx(e=>e(iS)?.translate??(e=>e)),sS=jx(""),lS=jx(e=>{const t=e(sS).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),uS=function(e){const r=Symbol(),n=jx(r);"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(n.debugPrivate=!0);const o=jx((t,o)=>{const i=t(n);return i!==r?i:e(t,o)},(e,t,i)=>{const a="function"==typeof i?i(e(o)):i;t(n,a===Zx?r:a)});return o}(e=>{const t=e(nS),r=e(oS),n=new Map;return t?.qHyperCube.qDimensionInfo.forEach(({cId:e})=>{n.set(e,!0)}),t?.qHyperCube.qMeasureInfo.forEach(({cId:e})=>{n.set(e,!0)}),r?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(({qDef:{cId:e}})=>{n.set(e,!1)}),r?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach(({qDef:{cId:e}})=>{n.set(e,!1)}),n}),cS=Qx(e=>jx(t=>t(uS).get(e)??!1,(t,r,n)=>{r(uS,t=>{const r=new Map(t);return r.set(e,n),r})})),dS=({props:e,children:t})=>(function(e){const t=$x(),r=tS(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[rS,e.args.model],[nS,e.args.model.layout],[iS,e.args.apis],[oS,e.args.properties]]),t);function pS(e){return"init"in e}function fS(e){return!!e.write}function hS(e){return"v"in e||"e"in e}function mS(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const gS=new WeakMap;function vS(e){var t;return bS(e)&&!!(null==(t=gS.get(e))?void 0:t[0])}function yS(e,t){let r=gS.get(e);if(!r){r=[!0,new Set],gS.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function bS(e){return"function"==typeof(null==e?void 0:e.then)}function xS(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function SS(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])r.has(t)&&o.add(t);for(const e of t.p)o.add(e);return o}const wS=(e,t,...r)=>t.read(...r),CS=(e,t,...r)=>t.write(...r),ES=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},IS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},DS=(e,r)=>{const n=zS(e),o=n[0],i=n[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let a=o.get(r);return a||(a={d:new Map,p:new Set,n:0},o.set(r,a),null==i||i(e,r)),a},MS=e=>{const t=zS(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},PS=e=>{const r=zS(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of SS(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},RS=(e,r)=>{var n,o;const i=zS(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],v=d(e,r);if(hS(v)){if(a.has(r)&&s.get(r)!==v.n)return v;if(Array.from(v.d).every(([t,r])=>h(e,t).n===r))return v}v.d.clear();let y,b,x=!0;function S(){a.has(r)&&(g(e,r),f(e),p(e))}const w={get signal(){return y||(y=new AbortController),y.signal},get setSelf(){return"production"===(t.meta.env?t.meta.env.MODE:void 0)||fS(r)||console.warn("setSelf function cannot be used with read-only atom"),!b&&fS(r)&&(b=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&x&&console.warn("setSelf function cannot be called in sync"),!x)try{return m(e,r,...n)}finally{f(e),p(e)}}),b}},C=v.n;try{const t=c(e,r,function(t){var n;if(t===r){const r=d(e,t);if(!hS(r)){if(!pS(t))throw new Error("no atom init");qS(e,t,t.init)}return mS(r)}const o=h(e,t);try{return mS(o)}finally{v.d.set(t,o.n),vS(v.v)&&xS(r,v.v,o),null==(n=a.get(t))||n.t.add(r),x||S()}},w);return qS(e,r,t),bS(t)&&(yS(t,()=>null==y?void 0:y.abort()),t.then(S,S)),null==(n=u.r)||n.call(u,r),v}catch(e){return delete v.v,v.e=e,++v.n,v}finally{x=!1,C!==v.n&&s.get(r)===C&&(s.set(r,v.n),l.add(r),null==(o=u.c)||o.call(u,r))}},LS=(e,t)=>{const r=zS(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of SS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},AS=(e,t,...r)=>{const n=zS(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[17];let f=!0;const h=t=>mS(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!pS(r))throw new Error("atom not writable");const t=c.n,s=n[0];return qS(e,r,s),p(e,r),void(t!==c.n&&(o.add(r),null==(a=i.c)||a.call(i,r),d(e,r)))}return AS(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},kS=(e,t)=>{var r;const n=zS(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!vS(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),null==(r=a.c)||r.call(a,n),l(e,n))}for(const r of p.d||[])if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},TS=(e,t)=>{var r;const n=zS(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=l(e,t);let h=o.get(t);if(!h){d(e,t);for(const r of f.d.keys()){TS(e,r).t.add(t)}if(h={l:new Set,d:new Set(f.d.keys()),t:new Set},o.set(t,h),null==(r=a.m)||r.call(a,t),fS(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(h.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}}return h},OS=(e,t)=>{var r;const n=zS(e),o=n[1],i=n[5],a=n[6],s=n[11],l=n[19],u=s(e,t);let c=o.get(t);if(!c||c.l.size||Array.from(c.t).some(e=>{var r;return null==(r=o.get(e))?void 0:r.d.has(t)}))return c;c.u&&i.add(c.u),c=void 0,o.delete(t),null==(r=a.u)||r.call(a,t);for(const r of u.d.keys()){const n=l(e,r);null==n||n.t.delete(t)}},qS=(e,t,r)=>{const n=zS(e)[11],o=n(e,t),i="v"in o,a=o.v;if(bS(r))for(const i of o.d.keys())xS(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,bS(a)&&function(e){const t=gS.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach(e=>e()))}(a))},_S=(e,t)=>mS((0,zS(e)[14])(e,t)),jS=(e,t,...r)=>{const n=zS(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},NS=(e,t,r)=>{const n=zS(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},FS=new WeakMap,zS=e=>{const r=FS.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};let WS,$S=0;function HS(e,r){const n="atom"+ ++$S,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=VS,o.write=BS),o}function VS(e){return e(this)}function BS(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function GS(){return function(...e){const t={get:e=>(0,zS(t)[21])(t,e),set:(e,...r)=>(0,zS(t)[22])(t,e,...r),sub:(e,r)=>(0,zS(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},wS,CS,ES,IS,DS,MS,PS,RS,LS,AS,kS,TS,OS,qS,_S,jS,NS,void 0].map((t,r)=>e[r]||t);return FS.set(t,Object.freeze(r)),t}()}const US=c(void 0);function YS(e){return n(US)||(WS||(WS=GS(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=WS),globalThis.__JOTAI_DEFAULT_STORE__!==WS&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),WS)}function KS({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=GS()),o(US.Provider,{value:t||r.current},e)}const XS=e=>"function"==typeof(null==e?void 0:e.then),JS=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},ZS=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(JS(e),e)}),QS=new WeakMap,ew=(e,t)=>{let r=QS.get(e);return r||(r=new Promise((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();XS(e)?(QS.set(e,r),i=e,e.then(a(e),s(e)),yS(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),yS(e,l)}),QS.set(e,r)),r};function tw(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=YS(),[[a,s,l],u]=d(t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]},void 0,()=>[i.get(e),i,e]);let c=a;if(s===i&&l===e||(u(),c=i.get(e)),p(()=>{const t=i.sub(e,()=>{if(o)try{const t=i.get(e);XS(t)&&JS(ew(t,()=>i.get(e)))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)});return u(),t},[i,e,n,o]),f(c),XS(c)){const t=ew(c,()=>i.get(e));return o&&JS(t),ZS(t)}return c}Symbol("production"!==(t.meta.env?t.meta.env.MODE:void 0)?"RESET":"");!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const rw=new WeakMap;const nw=e=>{let t=rw.get(e);return t||(t=new WeakSet,rw.set(e,t)),t},ow=({itemIndex:e,sectionIndex:t})=>e?`${t}-${e}`:`${t}`,iw=HS(),aw=HS(e=>e(iw)?.numberOfSections??0),sw=HS(e=>e(iw)?.numberOfItemsInSection??(()=>0)),lw=HS(e=>e(iw)?.keyExtractor??ow),uw=HS(e=>e(iw)?.onDragOver),cw=HS(e=>{const t=e(iw)?.children;return Array.isArray(t)?t[1]:t}),dw=HS(e=>{const t=e(iw)?.children;if(Array.isArray(t))return t[0]}),pw=HS(e=>e(iw)?.onClick),fw=({props:e,children:t})=>(function(e){const t=YS(),r=nw(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[iw,e]]),t);var hw=Symbol.for("preact-signals");function mw(){if(Sw>1)Sw--;else{var e,t=!1;for(!function(){var e=Iw;for(Iw=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var r=t.t;void 0!==r;r=r.x)r.i===e.i&&(r.i=t.i);e=e.o}}();void 0!==xw;){var r=xw;for(xw=void 0,ww++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&Lw(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(ww=0,Sw--,t)throw e}}function gw(e){if(Sw>0)return e();Ew=++Cw,Sw++;try{return e()}finally{mw()}}var vw,yw=void 0;function bw(e){var t=yw,r=vw;yw=void 0,vw=void 0;try{return e()}finally{yw=t,vw=r}}var xw=void 0,Sw=0,ww=0,Cw=0,Ew=0,Iw=void 0,Dw=0;function Mw(e){if(void 0!==yw){var t=e.n;if(void 0===t||t.t!==yw)return t={i:0,S:e,p:yw.s,n:void 0,t:yw,e:void 0,x:void 0,r:t},void 0!==yw.s&&(yw.s.n=t),yw.s=t,e.n=t,32&yw.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=yw.s,t.n=void 0,yw.s.n=t,yw.s=t),t}}function Pw(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Rw(e,t){return new Pw(e,t)}function Lw(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Aw(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function kw(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function Tw(e,t){Pw.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Dw-1,this.f=4}function Ow(e,t){return new Tw(e,t)}function qw(e){var t=e.m;if(e.m=void 0,"function"==typeof t){Sw++;var r=yw;yw=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,_w(e),t}finally{yw=r,mw()}}}function _w(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qw(e)}function jw(e){if(yw!==this)throw new Error("Out-of-order effect");kw(this),yw=e,this.f&=-2,8&this.f&&_w(this),mw()}function Nw(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,vw&&vw.push(this)}function Fw(e,t){var r=new Nw(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Pw.prototype.brand=hw,Pw.prototype.h=function(){return!0},Pw.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:bw(function(){var e;null==(e=t.W)||e.call(t)}))},Pw.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&bw(function(){var e;null==(e=t.Z)||e.call(t)}))}},Pw.prototype.subscribe=function(e){var t=this;return Fw(function(){var r=t.value;bw(function(){return e(r)})},{name:"sub"})},Pw.prototype.valueOf=function(){return this.value},Pw.prototype.toString=function(){return this.value+""},Pw.prototype.toJSON=function(){return this.value},Pw.prototype.peek=function(){var e=this;return bw(function(){return e.value})},Object.defineProperty(Pw.prototype,"value",{get:function(){var e=Mw(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ww>100)throw new Error("Cycle detected");!function(e){0!==Sw&&0===ww&&e.l!==Ew&&(e.l=Ew,Iw={S:e,v:e.v,i:e.i,o:Iw})}(this),this.v=e,this.i++,Dw++,Sw++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{mw()}}}}),Tw.prototype=new Pw,Tw.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Dw)return!0;if(this.g=Dw,this.f|=1,this.i>0&&!Lw(this))return this.f&=-2,!0;var e=yw;try{Aw(this),yw=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return yw=e,kw(this),this.f&=-2,!0},Tw.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Pw.prototype.S.call(this,e)},Tw.prototype.U=function(e){if(void 0!==this.t&&(Pw.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Tw.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Tw.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Mw(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Nw.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},Nw.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qw(this),Aw(this),Sw++;var e=yw;return yw=this,jw.bind(this,e)},Nw.prototype.N=function(){2&this.f||(this.f|=2,this.u=xw,xw=this)},Nw.prototype.d=function(){this.f|=8,1&this.f||_w(this)},Nw.prototype.dispose=function(){this.d()};var zw,Ww,$w,Hw,Vw,Bw,Gw,Uw,Yw,Kw,Xw,Jw,Zw,Qw,eC,tC,rC,nC,oC,iC,aC=Object.create,sC=Object.defineProperty,lC=Object.defineProperties,uC=Object.getOwnPropertyDescriptor,cC=Object.getOwnPropertyDescriptors,dC=Object.getOwnPropertySymbols,pC=Object.prototype.hasOwnProperty,fC=Object.prototype.propertyIsEnumerable,hC=e=>{throw TypeError(e)},mC=(e,t,r)=>t in e?sC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gC=(e,t)=>sC(e,"name",{value:t,configurable:!0}),vC=["class","method","getter","setter","accessor","field","value","get","set"],yC=e=>void 0!==e&&"function"!=typeof e?hC("Function expected"):e,bC=(e,t,r,n,o)=>({kind:vC[e],name:t,metadata:n,addInitializer:e=>r._?hC("Already initialized"):o.push(yC(e||null))}),xC=(e,t)=>{return mC(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},SC=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},wC=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=vC[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&uC(d<4?o:{get[r](){return IC(this,i)},set[r](e){return MC(this,i,e)}},r));d?f&&d<4&&gC(i,(d>2?"set ":d>1?"get ":"")+r):gC(o,r);for(var b=n.length-1;b>=0;b--)u=bC(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EC(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?IC:PC)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>MC(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?yC(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?hC("Object expected"):(yC(a=s.get)&&(y.get=a),yC(a=s.set)&&(y.set=a),yC(a=s.init)&&g.unshift(a));return d||xC(e,o),y&&sC(o,r,y),f?4^d?i:y:o},CC=(e,t,r)=>t.has(e)||hC("Cannot "+r),EC=(e,t)=>Object(t)!==t?hC('Cannot use the "in" operator on this value'):e.has(t),IC=(e,t,r)=>(CC(e,t,"read from private field"),r?r.call(e):t.get(e)),DC=(e,t,r)=>t.has(e)?hC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),MC=(e,t,r,n)=>(CC(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),PC=(e,t,r)=>(CC(e,t,"access private method"),r);function RC(e,t){if(t){let r;return Ow(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return Ow(e)}function LC(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!LC(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!LC(e[r],t[r]));return!o}return!1}function AC({get:e},t){return{init:e=>Rw(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function kC(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=RC(e.bind(this)),r.set(this,t)),t.value}}function TC(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>lC(e,cC(t)))(((e,t)=>{for(var r in t||(t={}))pC.call(t,r)&&mC(e,r,t[r]);if(dC)for(var r of dC(t))fC.call(t,r)&&mC(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function OC(...e){const t=e.map(Fw);return()=>t.forEach(e=>e())}Bw=[AC],Vw=[AC],Hw=[AC],$w=[TC()],Ww=[TC()],zw=[TC()];var qC,_C=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,SC(Gw,5,this),DC(this,Jw),DC(this,Uw,SC(Gw,8,this)),SC(Gw,11,this),DC(this,Zw,SC(Gw,12,this)),SC(Gw,15,this),DC(this,rC,SC(Gw,16,this)),SC(Gw,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return IC(this,Jw,oC)}get initial(){return IC(this,Jw,Kw)}get previous(){return IC(this,Jw,eC)}set current(e){const t=bw(()=>IC(this,Jw,oC));e&&t&&this.equals(t,e)||gw(()=>{IC(this,Jw,Kw)||MC(this,Jw,e,Xw),MC(this,Jw,t,tC),MC(this,Jw,e,iC)})}reset(e=this.defaultValue){gw(()=>{MC(this,Jw,void 0,tC),MC(this,Jw,e,Xw),MC(this,Jw,e,iC)})}};function jC(e){return bw(()=>{const t={};for(const r in e)t[r]=e[r];return t})}Gw=[,,,aC(null)],Uw=new WeakMap,Jw=new WeakSet,Zw=new WeakMap,rC=new WeakMap,Yw=wC(Gw,20,"#initial",Bw,Jw,Uw),Kw=Yw.get,Xw=Yw.set,Qw=wC(Gw,20,"#previous",Vw,Jw,Zw),eC=Qw.get,tC=Qw.set,nC=wC(Gw,20,"#current",Hw,Jw,rC),oC=nC.get,iC=nC.set,wC(Gw,2,"current",$w,_C),wC(Gw,2,"initial",Ww,_C),wC(Gw,2,"previous",zw,_C),xC(Gw,_C);qC=new WeakMap;var NC,FC,zC,WC,$C,HC=Object.create,VC=Object.defineProperty,BC=Object.getOwnPropertyDescriptor,GC=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,YC=Object.prototype.propertyIsEnumerable,KC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),XC=e=>{throw TypeError(e)},JC=Math.pow,ZC=(e,t,r)=>t in e?VC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QC=["class","method","getter","setter","accessor","field","value","get","set"],eE=e=>void 0!==e&&"function"!=typeof e?XC("Function expected"):e,tE=(e,t,r,n,o)=>({kind:QC[e],name:t,metadata:n,addInitializer:e=>r._?XC("Already initialized"):o.push(eE(e||null))}),rE=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=QC[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,BC(o,r)),h=n.length-1;h>=0;h--)(l=tE(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,eE(a)&&(f[d]=a);return f&&VC(o,r,f),o},nE=(e,t,r)=>t.has(e)||XC("Cannot "+r),oE=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},iE=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))UC.call(t,r)&&ZC(e,r,t[r]);if(GC)for(var r of GC(t))YC.call(t,r)&&ZC(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new oE((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return oE.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var aE,sE=class extends(zC=_C,FC=[kC],NC=[kC],zC){constructor(e){var t,r,n;super(oE.from(e),(e,t)=>oE.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})($C,5,this),t=this,n=0,(r=WC).has(t)?XC("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return oE.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=oE.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(nE(a=this,s=WC,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gw(()=>{((e,t,r)=>{nE(e,t,"write to private field"),t.set(e,r)})(this,WC,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(oE.from(e)),this.velocity={x:0,y:0}}};function lE({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(JC(n,2)+JC(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}$C=(e=>{var t;return[,,,HC(null!=(t=null==e?void 0:e[KC("metadata")])?t:null)]})(zC),WC=new WeakMap,rE($C,2,"delta",FC,sE),rE($C,2,"direction",NC,sE),aE=$C,ZC(sE,KC("metadata"),aE[3]);var uE,cE,dE,pE,fE=(e=>(e.Horizontal="x",e.Vertical="y",e))(fE||{}),hE=Object.values(fE),mE=Object.create,gE=Object.defineProperty,vE=Object.defineProperties,yE=Object.getOwnPropertyDescriptor,bE=Object.getOwnPropertyDescriptors,xE=Object.getOwnPropertySymbols,SE=Object.prototype.hasOwnProperty,wE=Object.prototype.propertyIsEnumerable,CE=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),EE=e=>{throw TypeError(e)},IE=(e,t,r)=>t in e?gE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DE=(e,t)=>{for(var r in t||(t={}))SE.call(t,r)&&IE(e,r,t[r]);if(xE)for(var r of xE(t))wE.call(t,r)&&IE(e,r,t[r]);return e},ME=(e,t)=>vE(e,bE(t)),PE=(e,t)=>gE(e,"name",{value:t,configurable:!0}),RE=(e,t)=>{var r={};for(var n in e)SE.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xE)for(var n of xE(e))t.indexOf(n)<0&&wE.call(e,n)&&(r[n]=e[n]);return r},LE=e=>{var t;return[,,,mE(null!=(t=null==e?void 0:e[CE("metadata")])?t:null)]},AE=["class","method","getter","setter","accessor","field","value","get","set"],kE=e=>void 0!==e&&"function"!=typeof e?EE("Function expected"):e,TE=(e,t,r,n,o)=>({kind:AE[e],name:t,metadata:n,addInitializer:e=>r._?EE("Already initialized"):o.push(kE(e||null))}),OE=(e,t)=>IE(t,CE("metadata"),e[3]),qE=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},_E=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=AE[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&yE(d<4?o:{get[r](){return FE(this,i)},set[r](e){return WE(this,i,e)}},r));d?f&&d<4&&PE(i,(d>2?"set ":d>1?"get ":"")+r):PE(o,r);for(var b=n.length-1;b>=0;b--)u=TE(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NE(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?FE:$E)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>WE(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?kE(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?EE("Object expected"):(kE(a=s.get)&&(y.get=a),kE(a=s.set)&&(y.set=a),kE(a=s.init)&&g.unshift(a));return d||OE(e,o),y&&gE(o,r,y),f?4^d?i:y:o},jE=(e,t,r)=>t.has(e)||EE("Cannot "+r),NE=(e,t)=>Object(t)!==t?EE('Cannot use the "in" operator on this value'):e.has(t),FE=(e,t,r)=>(jE(e,t,"read from private field"),r?r.call(e):t.get(e)),zE=(e,t,r)=>t.has(e)?EE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WE=(e,t,r,n)=>(jE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$E=(e,t,r)=>(jE(e,t,"access private method"),r);function HE(e,t){return{plugin:e,options:t}}function VE(e){return t=>HE(e,t)}function BE(e){return"function"==typeof e?{plugin:e,options:void 0}:e}uE=[AC];var GE=class{constructor(e,t){this.manager=e,this.options=t,zE(this,dE,qE(cE,8,this,!1)),qE(cE,11,this),zE(this,pE,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bw(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=Fw(e.bind(this));return FE(this,pE).add(t),t}destroy(){FE(this,pE).forEach(e=>e())}static configure(e){return HE(this,e)}};cE=LE(null),dE=new WeakMap,pE=new WeakMap,_E(cE,4,"disabled",uE,GE,dE),OE(cE,GE);var UE,YE=class extends GE{},KE=class{constructor(e){this.manager=e,this.instances=new Map,zE(this,UE,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BE).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of FE(this,UE))if(!r.includes(e)){if(e.prototype instanceof YE)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);WE(this,UE,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function XE(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}UE=new WeakMap;var JE,ZE,QE=[],eI=class extends GE{constructor(e){super(e),zE(this,JE),zE(this,ZE),this.computeCollisions=this.computeCollisions.bind(this),WE(this,ZE,Rw(QE)),this.destroy=OC(()=>{const e=this.computeCollisions(),t=bw(()=>this.manager.dragOperation.position.current);if(e!==QE){const e=FE(this,JE);if(WE(this,JE,t),e&&t.x==e.x&&t.y==e.y)return}else WE(this,JE,void 0);FE(this,ZE).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bw(()=>{e?FE(this,ZE).value=this.computeCollisions():WE(this,JE,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return QE;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=bw(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?QE:(s.sort(XE),s)}get collisions(){return FE(this,ZE).value}};JE=new WeakMap,ZE=new WeakMap;var tI=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},rI=class extends tI{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function nI(e,t=!0){let r=!1;return ME(DE({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var oI,iI,aI,sI,lI,uI,cI,dI,pI,fI=class extends YE{constructor(e){super(e);let t=[];this.destroy=OC(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=nI({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;bw(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},hI=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(hI||{}),mI=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(mI||{});cI=[AC],uI=[kC],lI=[kC],sI=[kC],aI=[kC],iI=[kC],oI=[kC];var gI=class{constructor(){qE(dI,5,this),zE(this,pI,qE(dI,8,this,"idle")),qE(dI,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};dI=LE(null),pI=new WeakMap,_E(dI,4,"value",cI,gI,pI),_E(dI,2,"current",uI,gI),_E(dI,2,"idle",lI,gI),_E(dI,2,"initializing",sI,gI),_E(dI,2,"initialized",aI,gI),_E(dI,2,"dragging",iI,gI),_E(dI,2,"dropped",oI,gI),OE(dI,gI);var vI,yI,bI,xI,SI,wI,CI,EI,II,DI=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return bw(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=nI({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return bw(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;gw(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=nI({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return bw(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=nI({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return bw(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=bw(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=Fw(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};xI=[AC],bI=[AC],yI=[AC],vI=[AC];var MI=class{constructor(e,t){zE(this,wI,qE(SI,8,this)),qE(SI,11,this),zE(this,CI,qE(SI,12,this)),qE(SI,15,this),zE(this,EI,qE(SI,16,this)),qE(SI,19,this),zE(this,II,qE(SI,20,this)),qE(SI,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};SI=LE(null),wI=new WeakMap,CI=new WeakMap,EI=new WeakMap,II=new WeakMap,_E(SI,4,"manager",xI,MI,wI),_E(SI,4,"id",bI,MI,CI),_E(SI,4,"data",yI,MI,EI),_E(SI,4,"disabled",vI,MI,II),OE(SI,MI);var PI,RI,LI,AI,kI,TI,OI,qI,_I,jI,NI,FI,zI,WI,$I,HI,VI,BI,GI,UI,YI,KI,XI,JI,ZI=class{constructor(){this.map=Rw(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=OC(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},QI=class extends(OI=MI,TI=[AC],kI=[AC],AI=[AC],LI=[kC],RI=[kC],PI=[kC],OI){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=RE(r,["modifiers","type","sensors"]);super(a,t),qE(qI,5,this),zE(this,_I,qE(qI,8,this)),qE(qI,11,this),zE(this,jI,qE(qI,12,this)),qE(qI,15,this),zE(this,NI,qE(qI,16,this,this.isDragSource?"dragging":"idle")),qE(qI,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};qI=LE(OI),_I=new WeakMap,jI=new WeakMap,NI=new WeakMap,_E(qI,4,"type",TI,QI,_I),_E(qI,4,"modifiers",kI,QI,jI),_E(qI,4,"status",AI,QI,NI),_E(qI,2,"isDropping",LI,QI),_E(qI,2,"isDragging",RI,QI),_E(qI,2,"isDragSource",PI,QI),OE(qI,QI);var eD=class extends(BI=MI,VI=[AC],HI=[AC],$I=[AC],WI=[AC],zI=[AC],FI=[kC],BI){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(RE(r,["accept","collisionDetector","collisionPriority","type"]),t),qE(GI,5,this),zE(this,UI,qE(GI,8,this)),qE(GI,11,this),zE(this,YI,qE(GI,12,this)),qE(GI,15,this),zE(this,KI,qE(GI,16,this)),qE(GI,19,this),zE(this,XI,qE(GI,20,this)),qE(GI,23,this),zE(this,JI,qE(GI,24,this)),qE(GI,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};GI=LE(BI),UI=new WeakMap,YI=new WeakMap,KI=new WeakMap,XI=new WeakMap,JI=new WeakMap,_E(GI,4,"accept",VI,eD,UI),_E(GI,4,"type",HI,eD,YI),_E(GI,4,"collisionDetector",$I,eD,KI),_E(GI,4,"collisionPriority",WI,eD,XI),_E(GI,4,"shape",zI,eD,JI),_E(GI,2,"isDropTarget",FI,eD),OE(GI,eD);var tD,rD,nD,oD,iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,vD,yD,bD,xD=class extends GE{constructor(e,t){super(e,t),this.manager=e,this.options=t}},SD=class extends GE{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},wD=class{constructor(e){this.draggables=new ZI,this.droppables=new ZI,this.plugins=new KE(e),this.sensors=new KE(e),this.modifiers=new KE(e)}register(e,t){if(e instanceof QI)return this.draggables.register(e.id,e);if(e instanceof eD)return this.droppables.register(e.id,e);if(e.prototype instanceof SD)return this.modifiers.register(e,t);if(e.prototype instanceof xD)return this.sensors.register(e,t);if(e.prototype instanceof GE)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof MI)return e instanceof QI?this.draggables.unregister(e.id,e):e instanceof eD?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof SD)return this.modifiers.unregister(e);if(e.prototype instanceof xD)return this.sensors.unregister(e);if(e.prototype instanceof GE)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};uD=[kC],lD=[AC],sD=[AC],aD=[AC],iD=[AC],oD=[AC],nD=[kC],rD=[kC],tD=[kC];var CD=class{constructor(e){qE(fD,5,this),zE(this,cD),zE(this,dD),zE(this,pD,new _C(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new gI,zE(this,hD,qE(fD,8,this,!1)),qE(fD,11,this),zE(this,mD,qE(fD,12,this,null)),qE(fD,15,this),zE(this,gD,qE(fD,16,this,null)),qE(fD,19,this),zE(this,vD,qE(fD,20,this,null)),qE(fD,23,this),zE(this,yD,qE(fD,24,this,[])),qE(fD,27,this),this.position=new sE({x:0,y:0}),zE(this,bD,{x:0,y:0}),WE(this,cD,e)}get shape(){const{current:e,initial:t,previous:r}=FE(this,pD);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?FE(this,pD).current=e:FE(this,pD).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=FE(this,cD).registry.draggables.get(t);return r&&WE(this,dD,r),null!=(e=null!=r?r:FE(this,dD))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=FE(this,cD).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(ME(DE({},this.snapshot()),{transform:r}));return WE(this,bD,r),r}snapshot(){return bw(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:FE(this,bD),shape:this.shape?jC(this.shape):null,position:jC(this.position),status:jC(this.status),canceled:this.canceled}))}reset(){gw(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,FE(this,pD).reset(),this.position.reset({x:0,y:0}),WE(this,bD,{x:0,y:0}),this.modifiers=[]})}};fD=LE(null),cD=new WeakMap,dD=new WeakMap,pD=new WeakMap,hD=new WeakMap,mD=new WeakMap,gD=new WeakMap,vD=new WeakMap,yD=new WeakMap,bD=new WeakMap,_E(fD,2,"shape",uD,CD),_E(fD,4,"canceled",lD,CD,hD),_E(fD,4,"activatorEvent",sD,CD,mD),_E(fD,4,"sourceIdentifier",aD,CD,gD),_E(fD,4,"targetIdentifier",iD,CD,vD),_E(fD,4,"modifiers",oD,CD,yD),_E(fD,2,"source",nD,CD),_E(fD,2,"target",rD,CD),_E(fD,2,"transform",tD,CD),OE(fD,CD);var ED={get rendering(){return Promise.resolve()}},ID=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=ED}=null!=e?e:{},i=new rI(this),a=new wD(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new DI(this),this.dragOperation=new CD(this),this.collisionObserver=new eI(this),this.plugins=[fI,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=OC(()=>{var e,t,r;const n=bw(()=>this.dragOperation.modifiers),o=this.modifiers;n!==o&&n.forEach(e=>e.destroy()),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=BE(e);return new t(this,r)}))?r:o});this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},DD=e=>{throw TypeError(e)},MD=(e,t,r)=>t.has(e)||DD("Cannot "+r),PD=(e,t,r)=>(MD(e,t,"read from private field"),t.get(e)),RD=(e,t,r)=>t.has(e)?DD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),LD=(e,t,r,n)=>(MD(e,t,"write to private field"),t.set(e,r),r),AD=(e,t,r)=>(MD(e,t,"access private method"),r);function kD(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function TD(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(kD(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function OD(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}var qD="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function _D(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function jD(e){return"nodeType"in e}function ND(e){var t,r,n;return e?_D(e)?e:jD(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function FD(e){const{Document:t}=ND(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function zD(e){return!(!e||_D(e))&&(e instanceof ND(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function WD(e){return e instanceof ND(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function $D(e){return e?_D(e)?e.document:jD(e)?FD(e)?e:zD(e)||WD(e)?e.ownerDocument:document:document:document}function HD(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function VD(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!HD(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function BD(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function GD(e){return"value"in e}function UD(e){return"CANVAS"===e.tagName}function YD(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return YD(e,{x:t-o,y:r-i})}}return n}var KD=new WeakMap,XD=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(t)?t:[t],n=[];for(const t of r){const{type:r,listener:o,options:i}=t,a=[e,t];e.addEventListener(r,o,i),this.entries.add(a),n.push(a)}return function(){for(const[e,{type:t,listener:r,options:o}]of n)e.removeEventListener(t,r,o)}}};function JD(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function ZD(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var QD,eM=qD?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},tM=class extends eM{constructor(e){super(t=>{PD(this,QD)?e(t,this):LD(this,QD,!0)}),RD(this,QD,!1)}};QD=new WeakMap;var rM,nM,oM,iM,aM,sM,lM,uM,cM,dM,pM,fM=Array.from({length:100},(e,t)=>t/100),hM=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,RD(this,cM),this.disconnect=()=>{var e,t,r;LD(this,lM,!0),null==(e=PD(this,oM))||e.disconnect(),null==(t=PD(this,iM))||t.disconnect(),PD(this,aM).disconnect(),null==(r=PD(this,sM))||r.remove()},RD(this,rM,!0),RD(this,nM),RD(this,oM),RD(this,iM),RD(this,aM),RD(this,sM),RD(this,lM,!1),RD(this,uM,ZD(()=>{var e,t,r;const{element:n}=this;if(null==(e=PD(this,iM))||e.disconnect(),PD(this,lM)||!PD(this,rM)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=VD(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,LD(this,iM,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:iE.intersectionRatio(r,VD(n)))&&PD(this,uM).call(this)},{threshold:fM,rootMargin:m,root:o})),PD(this,iM).observe(n),AD(this,cM,dM).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),LD(this,rM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=VD(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(LD(this,sM,document.createElement("div")),PD(this,sM).style.background="rgba(0,0,0,0.15)",PD(this,sM).style.position="fixed",PD(this,sM).style.pointerEvents="none",o.body.appendChild(PD(this,sM))),LD(this,aM,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=PD(this,rM);LD(this,rM,a),(s||l)&&(u&&!a?(null==(r=PD(this,iM))||r.disconnect(),this.callback(null),null==(n=PD(this,oM))||n.disconnect(),LD(this,oM,void 0),PD(this,sM)&&(PD(this,sM).style.visibility="hidden")):PD(this,uM).call(this),a&&!PD(this,oM)&&(LD(this,oM,new tM(PD(this,uM))),PD(this,oM).observe(e)))},{threshold:fM,root:o})),PD(this,rM)&&!r.skipInitial&&this.callback(this.boundingClientRect),PD(this,aM).observe(e)}};rM=new WeakMap,nM=new WeakMap,oM=new WeakMap,iM=new WeakMap,aM=new WeakMap,sM=new WeakMap,lM=new WeakMap,uM=new WeakMap,cM=new WeakSet,dM=function(){PD(this,lM)||(AD(this,cM,pM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,PD(this,nM))||(this.callback(this.boundingClientRect),LD(this,nM,this.boundingClientRect)))},pM=function(){if(PD(this,sM)){const{top:e,left:t,width:r,height:n}=VD(this.element);PD(this,sM).style.overflow="hidden",PD(this,sM).style.visibility="visible",PD(this,sM).style.top=`${Math.floor(e)}px`,PD(this,sM).style.left=`${Math.floor(t)}px`,PD(this,sM).style.width=`${Math.floor(r)}px`,PD(this,sM).style.height=`${Math.floor(n)}px`}};var mM,gM,vM,yM,bM=new WeakMap,xM=new WeakMap;function SM(e,t){let r=bM.get(e);if(!r){const t=new hM(e,t=>{const r=bM.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),bM.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(bM.delete(e),r.disconnect())}}var wM=class{constructor(e,t,r){this.callback=t,RD(this,mM),RD(this,gM,!1),RD(this,vM),RD(this,yM,ZD(e=>{if(!PD(this,gM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of PD(this,vM))if(e.target.contains(t)){this.callback(PD(this,mM).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=JD(e);for(;r;)t.add(r),r=JD(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=SM(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!xM.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),xM.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=xM.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),xM.delete(n))}):()=>{}}(e,PD(this,yM));LD(this,vM,n),LD(this,mM,new hM(e,t,r)),this.disconnect=()=>{PD(this,gM)||(LD(this,gM,!0),o(),i(),PD(this,mM).disconnect())}}};function CM(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function EM(e){try{CM(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function IM(e){return!(!qD||!e)&&e===$D(e).scrollingElement}function DM(e){const t=ND(e),r=IM(e)?function(e){const{documentElement:t}=$D(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):OD(e),n=IM(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function MM(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=DM(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}mM=new WeakMap,gM=new WeakMap,vM=new WeakMap,yM=new WeakMap;var PM=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},RM=new PM(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),LM=new PM(e=>setTimeout(e,50)),AM=new Map,kM=AM.clear.bind(AM);function TM(e,t=!1){if(!t)return OM(e);let r=AM.get(e);return r||(r=OM(e),AM.set(e,r),LM.schedule(kM),r)}function OM(e){return ND(e).getComputedStyle(e)}var qM={excludeElement:!0};function _M(e,t=qM){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(FD(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!zD(i))return WD(i)?t(i.parentElement):o;if(o.has(i))return o;const a=TM(i,!0);if(n&&i===e||function(e,t=TM(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(i,a)&&o.add(i),function(e,t=TM(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function jM(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=JD(e);for(;n;){if(n===t)return r;const e=OD(n),{x:o,y:i}=NM(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=JD(n)}return r}function NM(e,t=OD(e)){const r=Math.round(t.width),n=Math.round(t.height);if(zD(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=TM(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function FM(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function zM(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=FM(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,y=null!=(n=null==h?void 0:h.x)?n:0,b=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:y+x,y:b+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var WM=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(WM||{}),$M={x:.2,y:.2},HM={x:10,y:10};function VM(e,t,r,n=25,o=$M,i=HM){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=DM(e),f=jM(e),h=zM(TM(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new iE(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),y={x:0,y:0},b={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(y.y=g?1:-1,b.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(y.y=g?-1:1,b.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(y.x=m?-1:1,b.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(y.x=m?1:-1,b.x=n*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function BM(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!zD(e))return e.scrollIntoView();var n=function(e){const[t]=_M(e,{limit:1});return null!=t?t:null}(e);if(!zD(n))return;const o=TM(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function GM({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function UM(e,t=TM(e).translate,r=!0){if(r){const t=TD(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=FM(e);if(t)return t}}}if(t){const e=FM(t);if(e)return e}return{x:0,y:0,z:0}}var YM=new PM(e=>setTimeout(e,0)),KM=new Map,XM=KM.clear.bind(KM);function JM(e,t){const r=function(e){const t=e.ownerDocument;let r=KM.get(t);if(r)return r;r=t.getAnimations(),KM.set(t,r),YM.schedule(XM);const n=r.filter(t=>kD(t.effect)&&t.effect.target===e);return KM.set(e,n),r}(e).filter(e=>{var r,n;if(kD(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var ZM=class extends iE{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=jM(e),ignoreTransforms:s,getBoundingClientRect:l=OD}=t,u=JM(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||BD())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=TM(e),v=zM(g),y={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},b=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=kD(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=zM({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||b)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(b&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,b,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,y.x=b.scaleX,y.y=b.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=y,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function QM(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var eP=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(QM(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(QM(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(QM(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function tP(e){return!!e&&(e instanceof ND(e).Element||jD(e)&&e.nodeType===Node.ELEMENT_NODE)}function rP(e){if(!e)return!1;const{KeyboardEvent:t}=ND(e.target);return e instanceof t}var nP={};function oP(e){const t=null==nP[e]?0:nP[e]+1;return nP[e]=t,`${e}-${t}`}var iP=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/oE.distance(t.shape.center,r),type:mI.PointerIntersection,priority:hI.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=oE.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:mI.ShapeIntersection,priority:hI.Normal}}return null})(e)},aP=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?iE.from(n.current.boundingRectangle).corners:void 0,a=iE.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+oE.distance(oE.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:mI.Collision,priority:hI.Normal}},sP=Object.create,lP=Object.defineProperty,uP=Object.defineProperties,cP=Object.getOwnPropertyDescriptor,dP=Object.getOwnPropertyDescriptors,pP=Object.getOwnPropertySymbols,fP=Object.prototype.hasOwnProperty,hP=Object.prototype.propertyIsEnumerable,mP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gP=e=>{throw TypeError(e)},vP=(e,t,r)=>t in e?lP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yP=(e,t)=>{for(var r in t||(t={}))fP.call(t,r)&&vP(e,r,t[r]);if(pP)for(var r of pP(t))hP.call(t,r)&&vP(e,r,t[r]);return e},bP=(e,t)=>uP(e,dP(t)),xP=(e,t)=>lP(e,"name",{value:t,configurable:!0}),SP=(e,t)=>{var r={};for(var n in e)fP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&pP)for(var n of pP(e))t.indexOf(n)<0&&hP.call(e,n)&&(r[n]=e[n]);return r},wP=e=>{var t;return[,,,sP(null!=(t=null==e?void 0:e[mP("metadata")])?t:null)]},CP=["class","method","getter","setter","accessor","field","value","get","set"],EP=e=>void 0!==e&&"function"!=typeof e?gP("Function expected"):e,IP=(e,t,r,n,o)=>({kind:CP[e],name:t,metadata:n,addInitializer:e=>r._?gP("Already initialized"):o.push(EP(e||null))}),DP=(e,t)=>vP(t,mP("metadata"),e[3]),MP=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},PP=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=CP[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&cP(d<4?o:{get[r](){return AP(this,i)},set[r](e){return TP(this,i,e)}},r));d?f&&d<4&&xP(i,(d>2?"set ":d>1?"get ":"")+r):xP(o,r);for(var b=n.length-1;b>=0;b--)u=IP(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LP(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?AP:OP)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>TP(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?EP(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?gP("Object expected"):(EP(a=s.get)&&(y.get=a),EP(a=s.set)&&(y.set=a),EP(a=s.init)&&g.unshift(a));return d||DP(e,o),y&&lP(o,r,y),f?4^d?i:y:o},RP=(e,t,r)=>t.has(e)||gP("Cannot "+r),LP=(e,t)=>Object(t)!==t?gP('Cannot use the "in" operator on this value'):e.has(t),AP=(e,t,r)=>(RP(e,t,"read from private field"),r?r.call(e):t.get(e)),kP=(e,t,r)=>t.has(e)?gP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),TP=(e,t,r,n)=>(RP(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),OP=(e,t,r)=>(RP(e,t,"access private method"),r),qP="button",_P="draggable",jP="dnd-kit-description",NP="dnd-kit-announcement",FP={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},zP={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function WP(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var $P=["dragover","dragmove"];var HP="data-dnd-",VP=`${HP}dropping`,BP="--dnd-",GP=`${HP}dragging`,UP=`${HP}placeholder`,YP=[GP,UP,"popover","aria-pressed","aria-grabbing"],KP=["view-transition-name"],XP=`\n :root [${GP}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${BP}top, 0px) !important;\n left: var(${BP}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${BP}width, auto);\n max-width: var(${BP}width, auto);\n height: var(${BP}height, auto);\n max-height: var(${BP}height, auto);\n transition: var(${BP}transition) !important;\n }\n\n :root [${UP}] {\n transition: none;\n }\n\n :root [${UP}='hidden'] {\n visibility: hidden;\n }\n\n [${GP}] * {\n pointer-events: none !important;\n }\n\n [${GP}]:not([${VP}]) {\n translate: var(${BP}translate) !important;\n }\n\n [${GP}][style*='${BP}scale'] {\n scale: var(${BP}scale) !important;\n transform-origin: var(${BP}transform-origin) !important;\n }\n\n @layer {\n :where([${GP}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${GP}]::backdrop, [${HP}overlay]:not([${GP}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function JP(e,t="hidden"){return bw(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${HP}${oP("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(GD(e)&&GD(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),UD(e)&&UD(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),KD.set(a,i),r.push(()=>{KD.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(UP,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function ZP(e,t){return e===t||JD(e)===JD(t)}function QP(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&tP(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>EM(t))}function eR(e){return"TR"===e.tagName}var tR,rR,nR,oR,iR,aR,sR,lR=new Map,uR=class extends(rR=GE,tR=[AC],rR){constructor(e,t){super(e,t),kP(this,iR),kP(this,oR,MP(nR,8,this)),MP(nR,11,this),this.state={initial:{},current:{}},this.registerEffect(OP(this,iR,sR)),this.registerEffect(OP(this,iR,aR))}destroy(){super.destroy();for(const[e,t]of lR.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),lR.delete(e)))}};nR=wP(rR),oR=new WeakMap,iR=new WeakSet,aR=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=jM(f),m=jM(c),g=!ZP(c,f),v=new ZM(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:I}=v;g&&(w/=y,C/=b);const D=new eP(f),{transition:M,translate:P,boxSizing:R,paddingBlockStart:L,paddingBlockEnd:A,paddingInlineStart:k,paddingInlineEnd:T,borderInlineStartWidth:O,borderInlineEndWidth:q,borderBlockStartWidth:_,borderBlockEndWidth:j}=TM(c),N="clone"===d,F="content-box"===R,z=F?parseInt(k)+parseInt(T)+parseInt(O)+parseInt(q):0,W=F?parseInt(L)+parseInt(A)+parseInt(_)+parseInt(j):0,$="move"===d||this.overlay?null:JP(l,N?"clone":"hidden"),H=bw(()=>rP(o.dragOperation.activatorEvent));if("none"!==P){const e=FM(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=bw(()=>s.current);p.transformOrigin={x:(e.x-I*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:V}=p,B=E*h.scaleY+h.y,G=I*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:G,y:B},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=V;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const U=p.coordinates.x-G,Y=p.coordinates.y-B,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*V.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*V.y,J=U/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:I+J,top:E+Z};f.setAttribute(GP,"true");const ee=bw(()=>a.transform),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=M?`${M}, translate 0ms linear`:"";if(D.set({width:w-z,height:C-W,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${y} ${b}`:"","transform-origin":`${100*V.x}% ${100*V.y}%`},BP),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}CM(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),EM(f),f.addEventListener("beforetoggle",QP));const oe=new ResizeObserver(()=>{if(!$)return;const e=new ZM($,{frameTransform:h,ignoreTransforms:!0}),t=null!=V?V:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(D.set({width:e.width-z,height:e.height-W,top:E+n,left:I+r},BP),null==x||x.takeRecords(),eR(c)&&eR($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new ZM(f)}),ie=new ZM(f);bw(()=>a.shape=ie);const ae=ND(f),se=e=>{this.manager.actions.stop({event:e})};H&&ae.addEventListener("resize",se),"idle"===bw(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),$&&(oe.observe($),x=new MutationObserver(e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||YP.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(QM(c)&&QM($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(KP.includes(t)||t.startsWith(BP))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&N&&($.innerHTML=c.innerHTML)}),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver(e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void EM(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void EM(f)}}),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!H||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;zD(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),CM(f)&&(f.removeEventListener("beforetoggle",QP),f.removeAttribute("popover")),f.removeAttribute(GP),D.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=OC(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=bw(()=>a.modifiers),l=bw(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=H?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(D.set({transition:`${M}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},BP),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=oE.delta(o,i);a.shape=iE.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new ZM(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{EM(f);const[,o]=null!=(r=TD(f,e=>"translate"in e))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:ZP(f,i)?null:void 0},s=new ZM(f,a),u=null!=(n=FM(TM(f).translate))?n:e,d=new ZM(i,a),p=iE.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};D.set({transition:M},BP),f.setAttribute(VP,""),null==x||x.takeRecords(),GM({element:f,keyframes:bP(yP(yP({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then(()=>{f.removeAttribute(VP),null==o||o.finish(),ce(),requestAnimationFrame(ue)})}};o.renderer.rendering.then(r)}});return()=>{ce(),de()}},sR=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=$D(null!=(t=null==o?void 0:o.element)?t:null),n=$D(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=lR.get(e);if(!t){const r=document.createElement("style");r.textContent=XP,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver(t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}});n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},lR.set(e,t)}t.instances.add(this)}}},PP(nR,4,"overlay",tR,uR,oR),DP(nR,uR),uR.configure=VE(uR);var cR,dR,pR,fR,hR,mR,gR,vR=uR,yR=!0;pR=[AC],fR=WM.Forward,cR=[AC],dR=WM.Reverse;var bR=class{constructor(){kP(this,mR,MP(hR,8,this,yR)),MP(hR,11,this),kP(this,gR,MP(hR,12,this,yR)),MP(hR,15,this)}isLocked(e){return e!==WM.Idle&&(null==e?this[WM.Forward]===yR&&this[WM.Reverse]===yR:this[e]===yR)}unlock(e){e!==WM.Idle&&(this[e]=false)}};hR=wP(null),mR=new WeakMap,gR=new WeakMap,PP(hR,4,fR,pR,bR,mR),PP(hR,4,dR,cR,bR,gR),DP(hR,bR);var xR,SR,wR,CR,ER,IR,DR=[WM.Forward,WM.Reverse],MR=class{constructor(){this.x=new bR,this.y=new bR}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},PR=class extends GE{constructor(e){super(e);const t=Rw(new MR);let r=null;this.signal=t,Fw(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new MR);const{delta:o}=e.dragOperation.position;if(r){const e={x:RR(o.x,r.x),y:RR(o.y,r.y)},n=t.peek();gw(()=>{for(const t of hE)for(const r of DR)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function RR(e,t){return Math.sign(e-t)}var LR=class extends(SR=YE,xR=[AC],SR){constructor(e){super(e),kP(this,CR,MP(wR,8,this,!1)),MP(wR,11,this),kP(this,ER),kP(this,IR,()=>{if(!AP(this,ER))return;const{element:e,by:t}=AP(this,ER);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return TP(this,ER,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:AR(n.x),y:AR(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=MM(e,n);if(r.x||r.y){const{speed:r,direction:s}=VM(e,o,i);if(a)for(const e of hE)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=AP(this,ER))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return TP(this,ER,{element:e,by:{x:a,y:l}}),RM.schedule(AP(this,IR)),!0}}}}}return TP(this,ER,void 0),!1};let t=null,r=null;const n=RC(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=YD($D(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=RC(()=>{const t=n.value,{documentElement:o}=$D(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=_M(n,{excludeElement:!1});return r=e,e}}if(t){const e=_M(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},LC);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new PR(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&rP(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function AR(e){return e>0?WM.Forward:e<0?WM.Reverse:WM.Idle}wR=wP(SR),CR=new WeakMap,ER=new WeakMap,IR=new WeakMap,PP(wR,4,"autoScrolling",xR,LR,CR),DP(wR,LR);var kR,TR=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),OR=class extends GE{constructor(e,t){super(e);const r=e.registry.plugins.get(LR);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=Fw(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>TR.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},qR={capture:!0,passive:!0},_R=class extends YE{constructor(e){super(e),kP(this,kR),this.handleScroll=()=>{null==AP(this,kR)&&TP(this,kR,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),TP(this,kR,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=Fw(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,qR),()=>{o.removeEventListener("scroll",this.handleScroll,qR)}}})}};kR=new WeakMap;function jR(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var NR,FR=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;const{event:r,source:n}=e,o=null!=(t=n.handle)?t:n.element;return r.target===o}}),zR=class extends xD{constructor(e,t){super(e),this.manager=e,this.options=t,kP(this,NR,[]),this.listeners=new XD,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!tP(e.target))return;if(t.disabled)return;const{keyboardCodes:n=FR.keyboardCodes,shouldActivate:o=FR.shouldActivate}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&o({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,r)}}bind(e,t=this.options){const r=Fw(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{rP(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),BM(n);const{center:o}=new ZM(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=$D(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];AP(this,NR).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=FR.keyboardCodes}=null!=r?r:{};if($R(e,[...n.end,...n.cancel])){e.preventDefault();const t=$R(e,n.cancel);return void this.handleEnd(e,t)}$R(e,n.up)?this.handleMove("up",e):$R(e,n.down)&&this.handleMove("down",e),$R(e,n.left)?this.handleMove("left",e):$R(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:FR.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(OR);!1===(null==e?void 0:e.disabled)&&(e.disable(),AP(this,NR).push(()=>{e.enable()}))}cleanup(){AP(this,NR).forEach(e=>e()),TP(this,NR,[])}destroy(){this.cleanup(),this.listeners.clear()}};NR=new WeakMap,zR.configure=VE(zR),zR.defaults=FR;var WR=zR;function $R(e,t){return t.includes(e.code)}var HR,VR,BR=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!tP(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!tP(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),GR=class extends xD{constructor(e,t){super(e),this.manager=e,this.options=t,kP(this,HR,new Set),kP(this,VR),this.listeners=new XD,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t){var r;const{activationConstraints:n=BR.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=Fw(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=ND(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(JR(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r={}){if(this.disabled||!e.isPrimary||0!==e.button||!tP(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=zD(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=jM(t.element);this.initialCoordinates={x:e.clientX*i.scaleX+i.x,y:e.clientY*i.scaleY+i.y};const a=this.activationConstraints(e,t);if(e.sensor=this,(null==a?void 0:a.delay)||(null==a?void 0:a.distance)){const{delay:r}=a;if(r){const n=setTimeout(()=>this.handleStart(t,e),r.value);TP(this,VR,()=>{clearTimeout(n),TP(this,VR,void 0)})}}else this.handleStart(t,e);const s=$D(e.target),l=this.listeners.bind(s,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:o?this.handleCancel:YR,options:{capture:!0}}]);AP(this,HR).add(()=>{var e;l(),null==(e=AP(this,VR))||e.call(this),this.initialCoordinates=void 0})}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=jM(t.element);if(r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,this.manager.dragOperation.status.dragging)return e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,void RM.schedule(this.handleMove);if(!this.initialCoordinates)return;const o={x:r.x-this.initialCoordinates.x,y:r.y-this.initialCoordinates.y},i=this.activationConstraints(e,t),{distance:a,delay:s}=null!=i?i:{};if(a){if(null!=a.tolerance&&lE(o,a.tolerance))return this.handleCancel(e);if(lE(o,a.value))return this.handleStart(t,e)}return s&&lE(o,s.tolerance)?this.handleCancel(e):void 0}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){var r;const{manager:n,initialCoordinates:o}=this;if(null==(r=AP(this,VR))||r.call(this),!o||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:o,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=$D(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:YR,options:{passive:!1}},{type:"click",listener:YR},{type:"contextmenu",listener:YR},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);AP(this,HR).add(s)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},AP(this,HR).forEach(e=>e()),AP(this,HR).clear()}destroy(){this.cleanup(),this.listeners.clear()}};HR=new WeakMap,VR=new WeakMap,GR.configure=VE(GR),GR.defaults=BR;var UR=GR;function YR(e){e.preventDefault()}function KR(){}var XR=new WeakSet;function JR(e){e&&!XR.has(e)&&(e.addEventListener("touchmove",KR,{capture:!1,passive:!1}),XR.add(e))}var ZR,QR,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL={modifiers:[],plugins:[class extends GE{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=jP,announcement:o=NP}={},announcements:i=zP,screenReaderInstructions:a=FP,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:oP(n),u=r?`${o}-${r}`:oP(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>RM.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,$P.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},b=new Set;function x(){for(const e of b)e()}this.registerEffect(()=>{var e;b.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||b.add(y),WP(r)&&!BD()||r.hasAttribute("tabindex")||b.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add(()=>r.setAttribute("role",qP)),r.hasAttribute("aria-roledescription")||b.add(()=>r.setAttribute("aria-roledescription",_P)),r.hasAttribute("aria-describedby")||b.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&b.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&b.add(()=>r.setAttribute("aria-disabled",e))}}b.size>0&&RM.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},OR,class extends GE{constructor(e,t){super(e,t),this.manager=e;const r=RC(()=>{var e;return $D(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=Fw(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},vR,class extends GE{constructor(e,t){super(e,t),this.manager=e,this.destroy=Fw(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),jR(),document.addEventListener("selectionchange",jR,{capture:!0}),()=>{document.removeEventListener("selectionchange",jR,{capture:!0}),e.remove()}}})}}],sensors:[UR,WR]},vL=class extends ID{constructor(e={}){const{plugins:t=gL.plugins,sensors:r=gL.sensors,modifiers:n=[]}=e;super(bP(yP({},e),{plugins:[_R,LR,...t],sensors:r,modifiers:n}))}},yL=class extends(tL=QI,eL=[AC],QR=[AC],ZR=[AC],tL){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=SP(r,["element","effects","handle","feedback"]);super(yP({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(BE))?t:[...r.sensors]).map(e=>{const t=e instanceof xD?e:r.registry.register(e.plugin),n=e instanceof xD?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),kP(this,nL,MP(rL,8,this)),MP(rL,11,this),kP(this,oL,MP(rL,12,this)),MP(rL,15,this),kP(this,iL,MP(rL,16,this)),MP(rL,19,this),this.element=n,this.handle=i,this.feedback=a}};rL=wP(tL),nL=new WeakMap,oL=new WeakMap,iL=new WeakMap,PP(rL,4,"handle",eL,yL,nL),PP(rL,4,"element",QR,yL,oL),PP(rL,4,"feedback",ZR,yL,iL),DP(rL,yL);var bL=class extends(lL=eD,sL=[AC],aL=[AC],lL){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=SP(r,["element","effects"]);const{collisionDetector:a=iP}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new ZM(r),o=bw(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Rw(!1);super(bP(yP({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new wM(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),kP(this,hL),kP(this,cL,MP(uL,8,this)),MP(uL,11,this),kP(this,mL,MP(uL,12,this)),MP(uL,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){TP(this,hL,e,fL)}get element(){var e;return null!=(e=this.proxy)?e:AP(this,hL,pL)}};function xL(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}uL=wP(lL),cL=new WeakMap,hL=new WeakSet,mL=new WeakMap,dL=PP(uL,20,"#element",sL,hL,cL),pL=dL.get,fL=dL.set,PP(uL,4,"proxy",aL,bL,mL),DP(uL,bL);var SL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:p;function wL(e,t){const r=u(new Map),n=function(){const e=v(0)[1];return h(()=>{e(e=>e+1)},[e])}();return SL(()=>{if(e)return Fw(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=bw(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?I(n):n())});r.current.clear()},[e]),g(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function CL(e,t){e()}function EL(e){const t=u(e);return SL(()=>{t.current=e},[e]),t}function IL(e,t,r=p,n=Object.is){const o=u(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function DL(e,t){const r=u(xL(e));SL(()=>{const n=xL(e);n!==r.current&&(r.current=n,t(n))})}var ML=Object.defineProperty,PL=Object.defineProperties,RL=Object.getOwnPropertyDescriptors,LL=Object.getOwnPropertySymbols,AL=Object.prototype.hasOwnProperty,kL=Object.prototype.propertyIsEnumerable,TL=(e,t,r)=>t in e?ML(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OL=new vL,qL=c(OL),_L=b(x(({children:e},t)=>{const[r,n]=v(0),o=u(null),i=u(null),a=g(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),y(()=>{e(),n(e=>e+1)})}}),[]);return SL(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),S(t,()=>a),null})),jL=[void 0,LC];function NL(e){var t,r=e,{children:n,onCollision:o,onBeforeDragStart:i,onDragStart:a,onDragMove:s,onDragOver:l,onDragEnd:c}=r,d=((e,t)=>{var r={};for(var n in e)AL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&LL)for(var n of LL(e))t.indexOf(n)<0&&kL.call(e,n)&&(r[n]=e[n]);return r})(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const f=u(null),[h,m]=v(null!=(t=d.manager)?t:null),{plugins:g,modifiers:b,sensors:x}=d,S=EL(i),w=EL(a),C=EL(l),E=EL(s),I=EL(c),D=EL(o);return p(()=>{var e;if(!f.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:r}=f.current,n=null!=(e=d.manager)?e:new vL(d);return n.renderer=t,n.monitor.addEventListener("beforedragstart",e=>{const t=S.current;t&&r(()=>t(e,n))}),n.monitor.addEventListener("dragstart",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,n)}),n.monitor.addEventListener("dragover",e=>{const t=C.current;t&&r(()=>t(e,n))}),n.monitor.addEventListener("dragmove",e=>{const t=E.current;t&&r(()=>t(e,n))}),n.monitor.addEventListener("dragend",e=>{const t=I.current;t&&r(()=>t(e,n))}),n.monitor.addEventListener("collision",e=>{var t;return null==(t=D.current)?void 0:t.call(D,e,n)}),y(()=>m(n)),n.destroy},[d.manager]),IL(g,()=>h&&(h.plugins=null!=g?g:gL.plugins),...jL),IL(x,()=>h&&(h.sensors=null!=x?x:gL.sensors),...jL),IL(b,()=>h&&(h.modifiers=null!=b?b:gL.modifiers),...jL),Zo.jsxs(qL.Provider,{value:h,children:[Zo.jsx(_L,{ref:f,children:n}),n]})}function FL(e){var t;const r=null!=(t=n(qL))?t:void 0,[o]=v(()=>e(r));return o.manager!==r&&(o.manager=r),SL(o.register,[r,o]),o}var zL,WL,$L,HL,VL,BL=Object.create,GL=Object.defineProperty,UL=Object.getOwnPropertyDescriptor,YL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),KL=e=>{throw TypeError(e)},XL=["class","method","getter","setter","accessor","field","value","get","set"],JL=e=>void 0!==e&&"function"!=typeof e?KL("Function expected"):e,ZL=(e,t,r,n,o)=>({kind:XL[e],name:t,metadata:n,addInitializer:e=>r._?KL("Already initialized"):o.push(JL(e||null))}),QL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=XL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,UL(o,r)),h=n.length-1;h>=0;h--)(l=ZL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,JL(a)&&(f[d]=a);return f&&GL(o,r,f),o},eA=(e,t,r)=>t.has(e)||KL("Cannot "+r),tA=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},rA=class extends($L=_C,WL=[kC],zL=[kC],$L){constructor(e){var t,r,n;super(tA.from(e),(e,t)=>tA.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(VL,5,this),t=this,n=0,(r=HL).has(t)?KL("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return tA.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=tA.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(eA(a=this,s=HL,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gw(()=>{((e,t,r)=>{eA(e,t,"write to private field"),t.set(e,r)})(this,HL,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(tA.from(e)),this.velocity={x:0,y:0}}};VL=(e=>{var t;return[,,,BL(null!=(t=null==e?void 0:e[YL("metadata")])?t:null)]})($L),HL=new WeakMap,QL(VL,2,"delta",WL,rA),QL(VL,2,"direction",zL,rA),((e,t)=>{((e,t,r)=>{t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,YL("metadata"),e[3])})(VL,rA);var nA=(e=>(e.Horizontal="x",e.Vertical="y",e))(nA||{});Object.values(nA);var oA=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/tA.distance(t.shape.center,r),type:mI.PointerIntersection,priority:hI.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=tA.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:mI.ShapeIntersection,priority:hI.Normal}}return null})(e)};function iA(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=FL(t=>new bL(((e,t)=>PL(e,RL(t)))(((e,t)=>{for(var r in t||(t={}))AL.call(t,r)&&TL(e,r,t[r]);if(LL)for(var r of LL(t))kL.call(t,r)&&TL(e,r,t[r]);return e})({},e),{register:!1,element:xL(o)}),t)),u=wL(l);return IL(i,()=>l.id=i),DL(o,e=>l.element=e),IL(a,()=>l.accept=a,void 0,LC),IL(t,()=>l.collisionDetector=null!=t?t:oA),IL(r,()=>r&&(l.data=r)),IL(n,()=>l.disabled=!0===n),IL(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:h(e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const aA=D.classNames;function sA(e){if(e.font)return;const{family:t,size:r,emphasized:n}=e;if(t)switch(t){case"heading":case"body":return`${t}_${r||"m"}`;case"label":case"script":return`${t}_${r||"m"}${n?"_emphasized":""}`;default:return}}function lA(e){if(e.font){const{font:t,color:r,ellipsis:n}=e;return D.classNames(`font_${t}`,{ellipsis:!!n,[`text_${r||"default"}`]:!!r})}let t=sA(e);return t||(t=sA({...e,family:e.familly})),t&&void 0!==D[`font_${t}`]?D[`font_${t}`]:""}const uA=["border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderRadius"],cA={border:e=>({border_none:"none"===e,border_default:"default"===e,border_weak:"weak"===e,border_moderate:"moderate"===e,border_strong:"strong"===e,border_extra_strong:"extra-strong"===e}),borderTop:e=>({border_t_none:"none"===e,border_t_default:"default"===e,border_t_weak:"weak"===e,border_t_moderate:"moderate"===e,border_t_strong:"strong"===e,border_t_extra_strong:"extra-strong"===e}),borderRight:e=>({border_r_none:"none"===e,border_r_default:"default"===e,border_r_weak:"weak"===e,border_r_moderate:"moderate"===e,border_r_strong:"strong"===e,border_r_extra_strong:"extra-strong"===e}),borderBottom:e=>({border_b_none:"none"===e,border_b_default:"default"===e,border_b_weak:"weak"===e,border_b_moderate:"moderate"===e,border_b_strong:"strong"===e,border_b_extra_strong:"extra-strong"===e}),borderLeft:e=>({border_l_none:"none"===e,border_l_default:"default"===e,border_l_weak:"weak"===e,border_l_moderate:"moderate"===e,border_l_strong:"strong"===e,border_l_extra_strong:"extra-strong"===e}),borderWidth:e=>({border_width_0:"0"===e,border_width_default:"default"===e,border_width_strong:"strong"===e}),borderRadius:e=>({radius_subtle:"subtle"===e,radius_soft:"soft"===e,radius_cushiony:"cushiony"===e,radius_pill:"pill"===e,radius_round:"round"===e,radius_nested_subtle_xs:"nested-subtle-xs"===e,radius_nested_soft_xs:"nested-soft-xs"===e,radius_nested_soft_s:"nested-soft-s"===e,radius_nested_cushiony_xs:"nested-cushiony-xs"===e,radius_nested_cushiony_s:"nested-cushiony-s"===e,radius_nested_cushiony_m:"nested-cushiony-m"===e,radius_twice_soft_xs:"twice-soft-xs"===e,radius_twice_cushiony_s_xs:"twice-cushiony-s-xs"===e,radius_twice_cushiony_m_s:"twice-cushiony-m-s"===e})};const dA={gap:e=>({gap_0:"0"===e,gap_xs:"xs"===e,gap_s:"s"===e,gap_m:"m"===e,gap_l:"l"===e,gap_xl:"xl"===e,gap_xxl:"xxl"===e,gap_3xl:"3xl"===e,gap_density_xs:"density-xs"===e,gap_density_s:"density-s"===e,gap_density_m:"density-m"===e,gap_density_l:"density-l"===e,gap_density_xl:"density-xl"===e,gap_density_xxl:"density-xxl"===e,gap_density_3xl:"density-3xl"===e}),rowGap:e=>({row_gap_0:"0"===e,row_gap_xs:"xs"===e,row_gap_s:"s"===e,row_gap_m:"m"===e,row_gap_l:"l"===e,row_gap_xl:"xl"===e,row_gap_xxl:"xxl"===e,row_gap_3xl:"3xl"===e}),columnGap:e=>({col_gap_0:"0"===e,col_gap_xs:"xs"===e,col_gap_s:"s"===e,col_gap_m:"m"===e,col_gap_l:"l"===e,col_gap_xl:"xl"===e,col_gap_xxl:"xxl"===e,col_gap_3xl:"3xl"===e}),boxSizing:(e,t={apply:!0})=>({content_box:"content-box"===e,border_box:"content-box"!==e&&t.apply}),wrap:e=>({wrap:"wrap"===e,wrap_reverse:"wrap-reverse"===e,no_wrap:"nowrap"===e}),direction:(e,t={apply:!0})=>({row:"row"===e||t.apply&&!e,row_reverse:"row-reverse"===e,col:"col"===e,col_reverse:"col-reverse"===e}),noShrink:e=>({shrink_0:e}),alignContent:e=>({ac_center:"center"===e,ac_stretch:"stretch"===e,ac_start:"start"===e,ac_end:"end"===e,ac_between:"between"===e,ac_around:"around"===e}),alignItems:e=>({ai_center:"center"===e,ai_stretch:"stretch"===e,ai_start:"start"===e,ai_end:"end"===e,ai_baseline:"baseline"===e}),alignSelf:e=>({as_center:"center"===e,as_stretch:"stretch"===e,as_start:"start"===e,as_end:"end"===e}),justify:e=>({j_around:"around"===e,j_between:"between"===e,j_center:"center"===e,j_end:"end"===e,j_start:"start"===e,j_evenly:"evenly"===e})},pA=["boxSizing","wrap","direction","alignContent","alignItems","alignSelf","gap","columnGap","rowGap","justify","noShrink"];const fA=["xxs","xs","s","m","l","xl","xxl","3xl","4xl","full","fit","min","max"];const hA={overflow:e=>({overflow_auto:"auto"===e,overflow_hidden:"hidden"===e,overflow_scroll:"scroll"===e,overflow_visible:"visible"===e}),overflowX:e=>({overflow_x_auto:"auto"===e,overflow_x_hidden:"hidden"===e,overflow_x_scroll:"scroll"===e,overflow_x_visible:"visible"===e}),overflowY:e=>({overflow_y_auto:"auto"===e,overflow_y_hidden:"hidden"===e,overflow_y_scroll:"scroll"===e,overflow_y_visible:"visible"===e})},mA=["overflow","overflowX","overflowY"];const gA={p:e=>({p_0:"0"===e,p_xs:"xs"===e,p_s:"s"===e,p_m:"m"===e,p_l:"l"===e,p_xl:"xl"===e,p_xxl:"xxl"===e,p_3xl:"3xl"===e}),px:e=>({px_0:"0"===e,px_xs:"xs"===e,px_s:"s"===e,px_m:"m"===e,px_l:"l"===e,px_xl:"xl"===e,px_xxl:"xxl"===e,px_3xl:"3xl"===e}),py:e=>({py_0:"0"===e,py_xs:"xs"===e,py_s:"s"===e,py_m:"m"===e,py_l:"l"===e,py_xl:"xl"===e,py_xxl:"xxl"===e,py_3xl:"3xl"===e,py_density_xs:"density-xs"===e,py_density_s:"density-s"===e,py_density_m:"density-m"===e,py_density_l:"density-l"===e,py_density_xl:"density-xl"===e,py_density_xxl:"density-xxl"===e,py_density_3xl:"density-3xl"===e}),pt:e=>({pt_0:"0"===e,pt_xs:"xs"===e,pt_s:"s"===e,pt_m:"m"===e,pt_l:"l"===e,pt_xl:"xl"===e,pt_xxl:"xxl"===e,pt_3xl:"3xl"===e}),pr:e=>({pr_0:"0"===e,pr_xs:"xs"===e,pr_s:"s"===e,pr_m:"m"===e,pr_l:"l"===e,pr_xl:"xl"===e,pr_xxl:"xxl"===e,pr_3xl:"3xl"===e}),pb:e=>({pb_0:"0"===e,pb_xs:"xs"===e,pb_s:"s"===e,pb_m:"m"===e,pb_l:"l"===e,pb_xl:"xl"===e,pb_xxl:"xxl"===e,pb_3xl:"3xl"===e}),pl:e=>({pl_0:"0"===e,pl_xs:"xs"===e,pl_s:"s"===e,pl_m:"m"===e,pl_l:"l"===e,pl_xl:"xl"===e,pl_xxl:"xxl"===e,pl_3xl:"3xl"===e})},vA=["p","px","py","pt","pr","pb","pl"];const yA=x(bA);function bA({children:e,...t},r){return Zo.jsx("div",{...xA(t),ref:r,children:e})}function xA({typography:e,...t},r={apply:!0}){const{className:n,...o}=function(e){const{className:t,...r}=e,n=mA.reduce((t,n)=>(n in e&&(Object.assign(t,hA[n](e[n])),delete r[n]),t),{[t||""]:!!t});return{className:aA(n),...r}}(function({boxShadow:e,zIndex:t,className:r,...n}){return{className:aA({[r||""]:!!r,[`box_shadow_${e||"default"}`]:!!e,[`z_${t||"context"}`]:!!t}),...n}}(function({bgColor:e,className:t,...r}){return{className:aA({[t||"not_existing"]:!!t,[`bg_${e||"default"}`]:!!e}),...r}}(function(e){const{className:t,...r}=e,n=uA.reduce((t,n)=>(n in e&&(Object.assign(t,cA[n](e[n])),delete r[n]),t),{[t??""]:!!t});return{className:aA(n),...r}}(function(e,t={apply:!0}){const{className:r,...n}=e,o=pA.reduce((r,o)=>(o in e?(Object.assign(r,dA[o](e[o],t)),delete n[o]):("direction"===o&&t.apply&&Object.assign(r,dA.direction(void 0,t)),"boxSizing"===o&&t.apply&&Object.assign(r,dA.boxSizing(void 0,t))),r),{flex:t.apply});return{className:aA(r,o),...n}}(function(e){const{className:t,...r}=e,n=vA.reduce((t,n)=>(n in e&&(Object.assign(t,gA[n](e[n])),delete r[n]),t),{[t||""]:!!t});return{className:aA(n),...r}}(function(e){const{shrink:t,basis:r,grow:n,style:o,width:i,height:a,maxHeight:s,maxWidth:l,minWidth:u,minHeight:c,className:d,...p}=e,f={},h={...o||{}};return h.containerType="normal",i&&(fA.includes(i)?f[`w_${i}`]=!0:h.width=i),a&&(fA.includes(a)?f[`h_${a}`]=!0:h.height=a),u&&(fA.includes(u)?h.minWidth=`var(--sprout-container-sizing-${u})`:h.minWidth=u),l&&(fA.includes(l)?h.maxWidth=`var(--sprout-container-sizing-${l})`:h.maxWidth=l),c&&(h.minHeight=c),s&&(h.maxHeight=s),n&&(h.flexGrow="number"==typeof n?n:1),void 0!==t&&(h.flexShrink=t),void 0!==r&&(h.flexBasis=r),{style:h,className:aA(f,{[d||""]:!!d}),...p}}(t)),r)))));return{...o,className:aA({[`${e&&lA(e)}`]:!!e,[n]:!0})}}bA.displayName="Box";const SA=e=>Array.from({length:e},(e,t)=>t),wA=({id:e,sectionIndex:t})=>{const r=tw(dw);return void 0===r?null:Zo.jsx(r,{id:e,sectionIndex:t})};var CA=Object.create,EA=Object.defineProperty,IA=Object.defineProperties,DA=Object.getOwnPropertyDescriptor,MA=Object.getOwnPropertyDescriptors,PA=Object.getOwnPropertySymbols,RA=Object.prototype.hasOwnProperty,LA=Object.prototype.propertyIsEnumerable,AA=e=>{throw TypeError(e)},kA=(e,t,r)=>t in e?EA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TA=["class","method","getter","setter","accessor","field","value","get","set"],OA=e=>void 0!==e&&"function"!=typeof e?AA("Function expected"):e,qA=(e,t,r,n,o)=>({kind:TA[e],name:t,metadata:n,addInitializer:e=>r._?AA("Already initialized"):o.push(OA(e||null))}),_A=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},jA=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=TA[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,DA({get[r](){return FA(this,i)},set[r](e){return WA(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=qA(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?OA(s)&&(g[f]=s):"object"!=typeof s||null===s?AA("Object expected"):(OA(a=s.get)&&(g.get=a),OA(a=s.set)&&(g.set=a),OA(a=s.init)&&h.unshift(a));return g&&EA(o,r,g),o},NA=(e,t,r)=>t.has(e)||AA("Cannot "+r),FA=(e,t,r)=>(NA(e,t,"read from private field"),t.get(e)),zA=(e,t,r)=>t.has(e)?AA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WA=(e,t,r,n)=>(NA(e,t,"write to private field"),t.set(e,r),r);function $A(e){return e instanceof vk||e instanceof gk}var HA=Object.defineProperty,VA=Object.defineProperties,BA=Object.getOwnPropertyDescriptors,GA=Object.getOwnPropertySymbols,UA=Object.prototype.hasOwnProperty,YA=Object.prototype.propertyIsEnumerable,KA=(e,t,r)=>t in e?HA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XA=(e,t)=>{for(var r in t||(t={}))UA.call(t,r)&&KA(e,r,t[r]);if(GA)for(var r of GA(t))YA.call(t,r)&&KA(e,r,t[r]);return e},JA=(e,t)=>VA(e,BA(t));function ZA(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function QA(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex(e=>l(e,i.id)),n=e.findIndex(e=>l(e,a.id));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(c=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return JA(XA({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,v=e[c][p];return JA(XA({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),v,...e[d].slice(f+g)]})}(e,t,ZA)}var ek="__default__";function tk(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function rk(e,t){return e.index-t.index}function nk(e){return Array.from(e).sort(rk)}var ok,ik,ak,sk,lk,uk,ck,dk,pk=[class extends GE{constructor(e){super(e);const t=Fw(()=>{const{dragOperation:t}=e;if(rP(t.activatorEvent)&&$A(t.source)&&t.status.initialized){const t=e.registry.plugins.get(LR);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!rP(e.nativeEvent))return;if(!$A(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];gw(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&$A(e)||!e.element)continue;let r=e.shape;const n=new ZM(e.element,{getBoundingClientRect:e=>VD(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,aP);gw(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!$A(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;BM(c);const d=new ZM(c);if(!d)return;const p=iE.delta(d,iE.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends GE{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof vk){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(nk(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!$A(o)||!$A(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=nk(l),g=s?m:nk(u),v=null!=(c=o.sortable.group)?c:ek,y=null!=(d=i.sortable.group)?d:ek,b={[v]:m,[y]:g},x=QA(b,e);if(b===x)return;const S=x[y].indexOf(o.sortable),w=x[y].indexOf(i.sortable);r.collisionObserver.disable(),tk(f,S,h,w),gw(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;$A(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=nk(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(tk(r,i.index,a,o.index),gw(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],fk={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},hk=new class{constructor(){DC(this,qC,new WeakMap)}get(e,t){var r;return e?null==(r=IC(this,qC).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return IC(this,qC).has(e)||IC(this,qC).set(e,new Map),null==(n=IC(this,qC).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=IC(this,qC).get(e))?void 0:t.clear():void 0}};ik=[AC],ok=[AC];var mk=class{constructor(e,t){zA(this,sk,_A(ak,8,this)),_A(ak,11,this),zA(this,lk),zA(this,uk),zA(this,ck,_A(ak,12,this)),_A(ak,15,this),zA(this,dk),this.register=()=>(gw(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{gw(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{gw(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=fk,plugins:u=pk}=r,c=((e,t)=>{var r={};for(var n in e)RA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&PA)for(var n of PA(e))t.indexOf(n)<0&&LA.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new vk(c,t,this),this.draggable=new gk(((e,t)=>IA(e,MA(t)))(((e,t)=>{for(var r in t||(t={}))RA.call(t,r)&&kA(e,r,t[r]);if(PA)for(var r of PA(t))LA.call(t,r)&&kA(e,r,t[r]);return e})({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&hk.clear(this.manager),(null==n?void 0:n.dragging)&&hk.set(this.manager,this.id,bw(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=FA(this,uk),o=FA(this,lk);e===n&&t===o||(WA(this,uk,e),WA(this,lk,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),WA(this,dk,c.element),this.manager=t,this.index=i,WA(this,uk,i),this.group=o,WA(this,lk,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=hk.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=hk.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bw(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=TM(n),l=UM(n,s,!1),u=UM(n,s);(i||a)&&GM({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})})})}get manager(){return this.draggable.manager}set manager(e){gw(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){gw(()=>{const t=FA(this,dk),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),WA(this,dk,e)})}get element(){var e,t;const r=FA(this,dk);if(r)return null!=(t=null!=(e=KD.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){gw(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){gw(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){gw(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:iP}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){gw(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};ak=[,,,CA(null)],sk=new WeakMap,lk=new WeakMap,uk=new WeakMap,ck=new WeakMap,dk=new WeakMap,jA(ak,4,"index",ik,mk,sk),jA(ak,4,"group",ok,mk,ck),((e,t)=>{return kA(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(ak,mk);var gk=class extends yL{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},vk=class extends bL{constructor(e,t,r){super(e,t),this.sortable=r}},yk=Object.defineProperty,bk=Object.defineProperties,xk=Object.getOwnPropertyDescriptors,Sk=Object.getOwnPropertySymbols,wk=Object.prototype.hasOwnProperty,Ck=Object.prototype.propertyIsEnumerable,Ek=(e,t,r)=>t in e?yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ik=(e,t)=>{for(var r in t||(t={}))wk.call(t,r)&&Ek(e,r,t[r]);if(Sk)for(var r of Sk(t))Ck.call(t,r)&&Ek(e,r,t[r]);return e};function Dk(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:m,type:g}=e,v=Ik(Ik({},fk),e.transition),y=FL(t=>new mk(((e,t)=>bk(e,xk(t)))(Ik({},e),{transition:v,register:!1,handle:xL(s),element:xL(a),target:xL(m),feedback:d}),t)),b=wL(y,Mk);return IL(o,()=>y.id=o),SL(()=>{gw(()=>{y.group=u,y.index=l})},[y,u,l]),IL(g,()=>y.type=g),IL(t,()=>y.accept=t,void 0,LC),IL(i,()=>i&&(y.data=i)),IL(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},CL),DL(s,e=>y.handle=e),DL(a,e=>y.element=e),DL(m,e=>y.target=e),IL(c,()=>y.disabled=!0===c),IL(f,()=>y.sensors=f),IL(r,()=>y.collisionDetector=r),IL(n,()=>y.collisionPriority=n),IL(d,()=>y.feedback=null!=d?d:"default"),IL(v,()=>y.transition=v,void 0,LC),IL(p,()=>y.modifiers=p,void 0,LC),IL(e.alignment,()=>y.alignment=e.alignment),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:h(e=>{y.handle=null!=e?e:void 0},[y]),ref:h(e=>{var t,r;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:h(e=>{var t,r;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:h(e=>{var t,r;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function Mk(e,t,r){return!("isDragSource"!==e||r||!t)}const Pk=({id:e,itemIndex:t,sectionIndex:r})=>Zo.jsx("div",{children:`${r}:${t} - ${e}`}),Rk=({id:e,itemIndex:t,sectionIndex:r})=>{const n=tw(pw),o=tw(cw),i=tw(lw)({sectionIndex:r}),{ref:a,isDragging:s}=Dk({id:e,index:t,type:"item",accept:"item",group:i}),l=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,u=o??Pk;return Zo.jsx(Wc,{onClick:l,ref:a,"data-dragging":s,children:Zo.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},Lk=({sectionIndex:e})=>{const t=tw(lw),r=tw(sw),n=t({sectionIndex:e}),{ref:o}=iA({id:n,type:"column",accept:"item",collisionPriority:hI.Low});return Zo.jsx(ou,{ref:o,style:{overflow:"auto"},children:Zo.jsxs(Rc,{children:[Zo.jsx(Zu,{}),Zo.jsx(Wc,{children:Zo.jsx(wA,{id:n,sectionIndex:e})}),Zo.jsx(Zu,{}),SA(r(e)).map(r=>{const n=t({sectionIndex:e,itemIndex:r});return Zo.jsx(Wc,{children:Zo.jsx(Rk,{id:n,itemIndex:r,sectionIndex:e},n)},n)})]})})},Ak=()=>{const e=tw(aw),t=tw(lw),r=tw(uw);return Zo.jsx(NL,{onDragOver:e=>{r?.(e)},children:Zo.jsx(yA,{style:{display:"flex",flexDirection:"column"},children:SA(e).map(e=>Zo.jsx(Lk,{sectionIndex:e},t({sectionIndex:e})))})})},kk=e=>Zo.jsx(KS,{children:Zo.jsx(fw,{props:e,children:Zo.jsx(Ak,{})})}),Tk="12px",Ok="nebula-table-utils-head-menu-button",qk="sn-copy-cell",_k="PSEUDO-DIM";let jk=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const Nk="nebula-table-utils-column-adjuster";let Fk=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),zk=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Wk={darker:.15,brighter:.3,opacity:.03},$k={darker:.3,brighter:.5,opacity:.05};let Hk=function(e){return e.Cyclic="C",e}({});const Vk=jx(e=>{const t=e(oS);return t?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.map(e=>({id:e.qDef.cId,title:e.qDef.cId}))}),Bk=jx(e=>e(nS)?.qHyperCube.exludedNoOfLeftDims??-1),Gk=jx(e=>{const t=e(nS),r=e(aS),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:_k,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}});return n}),Uk=jx(e=>{const t=e(nS),r=e(aS),n=e(Gk),o=e(Vk),i=e(Bk),a=e(lS);if(void 0===t||void 0===n||void 0===o)return[];const s=n.slice(0,t.qHyperCube.qNoOfLeftDims),l=n.slice(t.qHyperCube.qNoOfLeftDims),u=o.slice(0,i),c=o.slice(i);return[{id:"rows",title:r("Common.Rows"),items:[...s,...u].filter(a)},{id:"columns",title:r("Common.Columns"),items:[...l,...c].filter(a)}]}),Yk=Qx(e=>jx(t=>t(Uk)[e])),Kk=Qx(({sectionIndex:e,itemIndex:t})=>jx(r=>r(Yk(e)).items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),Xk=Qx(e=>jx(t=>t(Yk(e)).title)),Jk=jx(e=>({sectionIndex:t,itemIndex:r})=>{const n=e(Yk(t));return void 0!==r?n.items[r].id:n.id}),Zk=jx(e=>t=>e(Yk(t)).items.length),Qk=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),eT=({children:e})=>Zo.jsxs(ou,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[Zo.jsx(Lu,{size:"small",style:{flexShrink:0,padding:9}}),Zo.jsx(Qk,{children:e})]}),tT=({sectionIndex:e})=>{const t=Kx(Xk(e));return Zo.jsx(eT,{children:t})},rT=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})})),nT=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),oT=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),iT=({icon:e,title:t,...r})=>{const[n,o]=Jx(cS(r.id));return Zo.jsxs(ou,{onClick:e=>{e.stopPropagation(),o(!n)},style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 8px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"}},children:[Zo.jsx(Lu,{checked:n,size:"small",style:{padding:9,flexShrink:0,visibility:r.id===_k?"hidden":"visible"}}),Zo.jsx(e,{height:"12px",style:{flexShrink:0}}),Zo.jsx(oT,{children:t}),Zo.jsx(nT,{height:"16px",style:{flexShrink:0,cursor:"grab"}})]})},aT=e=>{const t=Kx(Kk(e))??"";return Zo.jsx(iT,{title:t,icon:rT,...e})},sT=()=>{const e=Kx(Jk),t=Kx(Zk);return Zo.jsxs(kk,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,children:[tT,aT]})},lT=jx(e=>{const t=e(oS);return t?.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.map(e=>({id:e.qDef.cId,title:e.qDef.cId}))}),uT=jx(e=>{const t=e(nS),r=e(lT)??[],n=e(lS);if(void 0===t)return[];const o=t.qHyperCube.qMeasureInfo.map(({cId:e,qFallbackTitle:t})=>({id:e,title:t}));return o.push(...r),o.filter(n)}),cT=Qx(e=>jx(t=>t(uT)[e].title)),dT=jx(e=>({itemIndex:t})=>{const r=e(uT);return void 0!==t?r[t].id:"measures"}),pT=jx(e=>()=>e(uT).length),fT=()=>{const e=Kx(aS);return Zo.jsx(eT,{children:e("Common.Values")})},hT=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1.5.5A.5.5 0 0 0 1 1v13.5a.5.5 0 0 0 .5.5H15a.5.5 0 0 0 .5-.5v-6A.5.5 0 0 0 15 8H8V1a.5.5 0 0 0-.5-.5zm.5 4v-3h5v6.793l-5 5V9.5h1.5v-1H2v-3h1.5v-1zm.707 9.5 5-5H14.5v5h-3v-1.5h-1V14h-3v-1.5h-1V14z"})})),mT=e=>{const{itemIndex:t}=e,r=Kx(cT(t));return Zo.jsx(iT,{title:r,icon:hT,...e})},gT=()=>{const e=Kx(dT),t=Kx(pT);return Zo.jsx(ou,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:Zo.jsxs(kk,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,children:[fT,mT]})})},vT=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),yT=()=>{const[e,t]=Jx(sS),r=Kx(aS),n=h(e=>{t(e.target.value)},[t]);return Zo.jsx(ou,{style:{paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:Zo.jsx(Wd,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input",type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:n,startAdornment:Zo.jsx(vc,{position:"start",children:Zo.jsx(vT,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})})},bT=e=>{const t=((e="light",t=!1)=>Za(Ap(e,t)))();return Zo.jsx(xs,{theme:t,children:Zo.jsx(Hx,{children:Zo.jsx(dS,{props:e,children:Zo.jsxs(ou,{style:{display:"flex",flexDirection:"column"},children:[Zo.jsx(yT,{}),Zo.jsx(sT,{}),Zo.jsx(gT,{})]})})})})},xT=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:bT,classification:{tags:["exploration"],exclusive:!0}}};var ST,wT={exports:{}};var CT=(ST||(ST=1,function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},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=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Ae});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=y(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=y(d,f),v=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var I=t().bind(null,!0),D={},M=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function R(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=R(e[r||t])?i:e[t],e=e[r||t]}}),e}function k(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){k(e[n],t[n])||(r=!1)}),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}D.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(R(a)?n.push({op:"add",path:s,value:i}):P(i)&&P(a)?n=n.concat(D.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&R(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!R(t[0])&&R(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(D.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){R(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},D.apply=function(e,t){t.forEach(function(t){var r,n,o=A(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]}),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=A(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const T=D,O=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function _(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var N={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,N)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=_(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var B="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",ye="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Me={initBase:function(e,t){(t||Me.isValid(e))&&(r(e,ye,i(e,ve)),r(e,xe,i(e,be)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Me.isValid(e)&&(r(e,ve,i(e,ye)),r(e,be,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Ie)&&i(e,De)&&r(e,Ie,i(e,De)),delete e.qDef.base)},isValid:function(e){var t=i(e,ye),r=i(e,xe);return void 0!==t||void 0!==r}};const Pe=Me;function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}var Le={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:Le,apply:Te,applyModifiers:Oe,cleanUpMeasure:qe,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:_e,getActiveModifier:je,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Le[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:Ne};var ke={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Re(n))return Oe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;Fe(t).forEach(function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Re(e)&&!e.disabled){if(r++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Re(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return Fe(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!_e({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(r)||Pe.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Re(e)&&!e.disabled&&!Le[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function _e(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:r,layout:n})})}function je(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Ne(e){var t=je(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&We(r)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Re(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Re(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Re(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=Fe(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Be(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},y=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},b=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function I(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var D=Math.pow(2,53)-1;function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const R=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},A=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=I(a.max,o.dimensions.length,D),l=I(a.min,o.dimensions.length,0);return{maxDimensions:I(i.max,s,D),minDimensions:I(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},N=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:o,properties:a}),n||b(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=N({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,y=i.getValue(g,u||"").qHyperCubeDef,b=_({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,C=b.minMeasures,E=l.defaultDimension,I=void 0===E?k():E,D=l.defaultMeasure,M=void 0===D?T():D;y.qDimensions.length=0,y.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:y}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:M}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",v,y),L("qNoOfLeftDims",v,y),A("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,y,"S"),A("qReductionMode",v,y,"N"),A("qSortbyYValue",v,y),A("qIndentMode",v,y),A("qShowTotalsAbove",v,y),R(g,t,n),m.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:P}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=B.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const be=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Ie(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Me="conditionalColoring",Pe="measures",Re="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Me,arrayName:Pe,itemPath:Re})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Re,arrayName:Pe,quarantineName:Me})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Te="qHyperCubeDef.qDimensions",Oe="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Ne="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:qe,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ie({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),n.default})()}(wT)),wT.exports),ET=qe(CT);const IT="qHyperCubeDef.qMeasures",DT="measures",MT="qHyperCubeDef.qDimensions",PT="dimensions",RT="qDef.representation",LT="tableRepresentation",AT="qDef.conditionalColoring",kT="conditionalColoring",TT="qMiniChartDef",OT="miniChartDef",qT=e=>{ET.unquarantineArrayProp({properties:e,arrayPath:MT,itemPath:RT,arrayName:PT,quarantineName:LT}),ET.unquarantineArrayProp({properties:e,arrayPath:IT,itemPath:RT,arrayName:DT,quarantineName:LT}),ET.unquarantineArrayProp({properties:e,arrayPath:IT,itemPath:AT,arrayName:DT,quarantineName:kT}),ET.unquarantineArrayProp({properties:e,arrayPath:IT,itemPath:TT,arrayName:DT,quarantineName:OT})},_T=e=>{ET.quarantineArrayProp({properties:e,arrayPath:MT,itemPath:RT,arrayName:PT,quarantineName:LT}),ET.quarantineArrayProp({properties:e,arrayPath:IT,itemPath:RT,arrayName:DT,quarantineName:LT}),ET.quarantineArrayProp({properties:e,arrayPath:IT,itemPath:AT,arrayName:DT,quarantineName:kT}),ET.quarantineArrayProp({properties:e,arrayPath:IT,itemPath:TT,arrayName:DT,quarantineName:OT})};function jT(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function NT(e){if("object"==typeof e&&jT(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const FT={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function zT(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(jT(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in FT}(e)){const t=FT[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function WT(e){let t,r,n;if(jT(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?NT(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function $T(e){let t,r,n=0;const o="string"==typeof e?zT(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function HT(e){let t,r,n=0;const o="string"==typeof e?zT(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function VT(e){if(jT(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?NT(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function BT(e,t){return jT(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:BT(zT(e))}function GT(e){return jT(e)?1===e.a?VT(e):BT(e):GT(zT(e))}const UT=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function YT(e){return.2126*UT(e.r)+.7152*UT(e.g)+.0722*UT(e.b)}function KT(...e){const t=zT(...e);return t.invalid||YT(t)<.4}function XT(...e){const t=zT(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=$T(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=zT(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>KT(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=VT(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=BT(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=GT(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=WT(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?zT(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=$T(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=HT(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=HT(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>XT(o(18*e)),getDarkenedColor:(e=1)=>XT(o(18*-e))}}function JT(e,t){if(!e||!t)return;const r=YT(e),n=YT(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ZT(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var QT,eO="top",tO="top-right",rO="right",nO="bottom-right",oO="bottom",iO="bottom-left",aO="left",sO="top-left";ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(QT={},"equal-equal",[eO,oO]),"equal-higher",[oO,nO]),"equal-lower",[eO,tO]),"equal-void",[eO,oO]),"higher-equal",[aO,iO,eO,tO]),"higher-higher-acute",[oO,iO,aO,tO]),"higher-higher-obtuse",[oO,eO]),"higher-lower-negative",[eO,tO,rO]),"higher-lower-positive",[oO,iO,aO]),"higher-void",[eO]),ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(ZT(QT,"lower-equal",[eO]),"lower-higher-negative",[eO,sO]),"lower-higher-positive",[nO]),"lower-lower-acute",[eO,sO,aO,tO,rO]),"lower-lower-obtuse",[eO,oO]),"lower-void",[eO]),"void-equal",[eO]),"void-higher",[eO,oO]),"void-lower",[eO,oO,aO]),"void-void",[eO]),ZT(QT,"unclassified",[eO,oO,rO,aO,tO,nO,iO,sO]);var lO,uO,cO=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],dO=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function pO(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?dO:cO}var fO=function(){if(uO)return lO;uO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return lO=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},lO}();function hO(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mO(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gO(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(fO);var vO=1/.7,yO="\\s*([+-]?\\d+)\\s*",bO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SO=/^#([0-9a-f]{3,8})$/,wO=new RegExp(`^rgb\\(${yO},${yO},${yO}\\)$`),CO=new RegExp(`^rgb\\(${xO},${xO},${xO}\\)$`),EO=new RegExp(`^rgba\\(${yO},${yO},${yO},${bO}\\)$`),IO=new RegExp(`^rgba\\(${xO},${xO},${xO},${bO}\\)$`),DO=new RegExp(`^hsl\\(${bO},${xO},${xO}\\)$`),MO=new RegExp(`^hsla\\(${bO},${xO},${xO},${bO}\\)$`),PO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function RO(){return this.rgb().formatHex()}function LO(){return this.rgb().formatRgb()}function AO(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=SO.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?kO(t):3===r?new _O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?TO(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?TO(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wO.exec(e))?new _O(t[1],t[2],t[3],1):(t=CO.exec(e))?new _O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=EO.exec(e))?TO(t[1],t[2],t[3],t[4]):(t=IO.exec(e))?TO(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=DO.exec(e))?$O(t[1],t[2]/100,t[3]/100,1):(t=MO.exec(e))?$O(t[1],t[2]/100,t[3]/100,t[4]):PO.hasOwnProperty(e)?kO(PO[e]):"transparent"===e?new _O(NaN,NaN,NaN,0):null}function kO(e){return new _O(e>>16&255,e>>8&255,255&e,1)}function TO(e,t,r,n){return n<=0&&(e=t=r=NaN),new _O(e,t,r,n)}function OO(e){return e instanceof gO||(e=AO(e)),e?new _O((e=e.rgb()).r,e.g,e.b,e.opacity):new _O}function qO(e,t,r,n){return 1===arguments.length?OO(e):new _O(e,t,r,null==n?1:n)}function _O(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function jO(){return`#${WO(this.r)}${WO(this.g)}${WO(this.b)}`}function NO(){const e=FO(this.opacity);return`${1===e?"rgb(":"rgba("}${zO(this.r)}, ${zO(this.g)}, ${zO(this.b)}${1===e?")":`, ${e})`}`}function FO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function WO(e){return((e=zO(e))<16?"0":"")+e.toString(16)}function $O(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new VO(e,t,r,n)}function HO(e){if(e instanceof VO)return new VO(e.h,e.s,e.l,e.opacity);if(e instanceof gO||(e=AO(e)),!e)return new VO;if(e instanceof VO)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new VO(a,s,l,e.opacity)}function VO(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function BO(e){return(e=(e||0)%360)<0?e+360:e}function GO(e){return Math.max(0,Math.min(1,e||0))}function UO(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}hO(gO,AO,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:RO,formatHex:RO,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return HO(this).formatHsl()},formatRgb:LO,toString:LO}),hO(_O,qO,mO(gO,{brighter(e){return e=null==e?vO:Math.pow(vO,e),new _O(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _O(zO(this.r),zO(this.g),zO(this.b),FO(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jO,formatHex:jO,formatHex8:function(){return`#${WO(this.r)}${WO(this.g)}${WO(this.b)}${WO(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:NO,toString:NO})),hO(VO,function(e,t,r,n){return 1===arguments.length?HO(e):new VO(e,t,r,null==n?1:n)},mO(gO,{brighter(e){return e=null==e?vO:Math.pow(vO,e),new VO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new VO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new _O(UO(e>=240?e-240:e+120,o,n),UO(e,o,n),UO(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new VO(BO(this.h),GO(this.s),GO(this.l),FO(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=FO(this.opacity);return`${1===e?"hsl(":"hsla("}${BO(this.h)}, ${100*GO(this.s)}%, ${100*GO(this.l)}%${1===e?")":`, ${e})`}`}}));const YO=Math.PI/180,KO=180/Math.PI,XO=4/29,JO=6/29,ZO=3*JO*JO;function QO(e){if(e instanceof eq)return new eq(e.l,e.a,e.b,e.opacity);if(e instanceof iq)return aq(e);e instanceof _O||(e=OO(e));var t,r,n=oq(e.r),o=oq(e.g),i=oq(e.b),a=tq((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=tq((.4360747*n+.3850649*o+.1430804*i)/.96422),r=tq((.0139322*n+.0971045*o+.7141733*i)/.82521)),new eq(116*a-16,500*(t-a),200*(a-r),e.opacity)}function eq(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function tq(e){return e>.008856451679035631?Math.pow(e,1/3):e/ZO+XO}function rq(e){return e>JO?e*e*e:ZO*(e-XO)}function nq(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function oq(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function iq(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function aq(e){if(isNaN(e.h))return new eq(e.l,0,0,e.opacity);var t=e.h*YO;return new eq(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hO(eq,function(e,t,r,n){return 1===arguments.length?QO(e):new eq(e,t,r,null==n?1:n)},mO(gO,{brighter(e){return new eq(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eq(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new _O(nq(3.1338561*(t=.96422*rq(t))-1.6168667*(e=1*rq(e))-.4906146*(r=.82521*rq(r))),nq(-.9787684*t+1.9161415*e+.033454*r),nq(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),hO(iq,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof iq)return new iq(e.h,e.c,e.l,e.opacity);if(e instanceof eq||(e=QO(e)),0===e.a&&0===e.b)return new iq(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*KO;return new iq(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new iq(e,t,r,null==n?1:n)},mO(gO,{brighter(e){return new iq(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new iq(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return aq(this).rgb()}}));var sq=e=>()=>e;function lq(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):sq(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?lq:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):sq(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=qO(e)).r,(t=qO(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=lq(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var uq="center",cq="bottom";[{key:"NoDataExist",alignment:uq,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:uq,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:uq,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:uq},{key:"DataRangeIncludingZero",alignment:cq},{key:"LimitedData",alignment:cq},{key:"NegativeOrZeroValues",alignment:cq}].reduce(function(e,t){return e[t.key]=t,e},{});var dq,pq=["__proto__","constructor"];function fq(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!pq.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function hq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function mq(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(n,i)},r)}}function gq(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function vq(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=bq)):void 0===t&&(t=yq);for(var r,n,o,i,a,s=new wq(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new wq(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Sq)}function yq(e){return e.children}function bq(e){return Array.isArray(e)?e[1]:null}function xq(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sq(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function wq(e){this.data=e,this.depth=this.height=0,this.parent=null}function Cq(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}wq.prototype=vq.prototype={constructor:wq,count:function(){return this.eachAfter(gq)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return vq(this).eachBefore(xq)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},dq=function(e){
|
|
176
101
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
177
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},kW({exports:{}});const zW=(e,t=p$.TEXT,r=p$.WHITE)=>{const n=M$(e),o=M$(t),i=M$(r);return n.isInvalid()?t:function(e,t,r){const n=A$(e,t),o=A$(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},$W=e=>{const t=e.getStyle("","","dataColors.selected")||p$.SELECTED,r=function(e,t){const r=M$("#FFFFFF"),n=M$(e),o=M$(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=A$(r,n),a=A$(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,p$.TEXT);return{background:t,color:r}},WW=(e,t)=>{const r=M$(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},BW=e=>{const t=M$(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},GW=e=>{e.stopPropagation(),e.preventDefault()},HW=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),VW=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},UW=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>VW(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...D$(n).filter((e=>!a.includes(e))).map((e=>VW(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),YW=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],KW=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>VW(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...YW.filter((e=>!i.includes(e))).map((e=>VW(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),XW=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:UW({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:KW({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:HW(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",((t,r)=>{const n=r?p$.WHITE:p$.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),JW=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:HW(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),ZW=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),QW="12px",eB="Source Sans Pro, sans-serif",tB="600",rB=15e3,nB=4/3;let oB=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),iB=function(e){return e.Solid="solid",e.None="none",e}({});const aB={display:"flex",justifyContent:"center",alignItems:"center"},sB={borderStyle:"solid"},lB={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},uB={lineHeight:nB,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},cB=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),dB=(e,t)=>e>0?`${e}px ${iB.Solid} ${t}`:iB.None,pB=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?dB(i,r):iB.None,borderBottom:dB(a,r),borderLeft:"rtl"===n?dB(i,r):iB.None,borderTop:iB.None}},fB=(e,t,r,n,o,i,a)=>{const s=pB(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=dB(2,o)),r||(s.borderLeft="rtl"!==i?dB(1,o):"none",s.borderRight="rtl"===i?dB(1,o):"none")),s},hB=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=dB(1,r)),t&&(n.borderRight=dB(1,r)),n},mB=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},gB=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:XW({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:mB}),dimensionValueSection:XW({section:"dimensionValues",translator:e,flags:t,getThemeValue:mB}),measureValueSection:XW({section:"measureValues",translator:e,flags:t,getThemeValue:mB}),measureLabelSection:JW({section:"measureLabels",getThemeValue:mB}),totalValuesSection:JW({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:mB}),nullValuesSection:JW({section:"nullValues",fallbackBackground:oB.NullValueBackground,getThemeValue:mB}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:ZW("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:ZW("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:HW("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??oB.DividerLight)),divider:HW("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??oB.DividerDark)),background:HW("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??oB.Transparent))}}}}}}]}),bB=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},vB=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[gB(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uN.Auto,translation:"Common.Auto"},{value:uN.Pixels,translation:"Object.Table.Column.Pixels"},{value:uN.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uN.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...bB(t)}}),yB="auto",xB={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:yB,translation:"Object.Table.SortingInSearch",options:[{value:yB,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function SB(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:c$(e),sorting:xB,addons:Gz,settings:vB(t,r)}}}function wB(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:SB(e),importProperties:Wz(e),exportProperties:Bz,exploration:BN(e)}}const CB=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function EB(e,t){return A((()=>e),t)}const RB={},MB=e=>{const t=A((()=>({current:RB})),[]);return t.current=t.current===RB?e:t.current,t},AB=()=>{const{viewState:e}=I(),t=MB(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=A((()=>CB()),[]),i=EB((e=>{r&&t.current.add(e)}),[t]),a=EB(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return k((async()=>{r&&await n}),[n,r]),A((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},IB=e=>!!e&&0===M$(e).a,kB="#grid",LB=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},PB=(e,t,r,n,o)=>{const i=LB(".qv-object .qv-inner-object",r),a=LB(".qv-panel-sheet",r),s=LB(kB,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return BW(r);if("none"===n)return"transparent";if(void 0===n)return;const i=M$(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=IB(d),f=!IB(h=p?s:d)&&zW(h,p$.TEXT,p$.DARK_MODE_TEXT)===x$(p$.DARK_MODE_TEXT);var h;const m=((e,t,r,n=p$.WHITE)=>e&&!IB(e)?e:IB(t)?r&&!IB(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},DB=(e,t,r,n)=>{const o=D(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=L([]);return P((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(kB),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return A((()=>({...o,background:PB(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function _B(e,t){const r=A((()=>({isLoading:!0})),t),[n,o]=k((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const OB=3;function TB(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function qB({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=OB}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=DW(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=DW((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=TB(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var jB,NB=C;jB=NB.createRoot,NB.hydrateRoot;const FB="Source Sans Pro, sans-serif";function zB(e,t){const[r,n]=b(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var $B={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const WB=({translator:e})=>(g((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys($B).forEach((t=>{e.add($B[t])}))}}(e)}),[e]),e),BB={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},GB={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},HB=rl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...BB},"&::-moz-range-track":{...BB},"&::-ms-track":{...BB},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...GB},"&::-moz-range-thumb":{...GB},"&::-ms-thumb":{...GB},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),VB=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=WB({translator:d.translator}),h=u({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,b=()=>g?h.current.columnWidth-m:"100%",v={left:"rtl"!==p?b():void 0,right:"rtl"===p?b():void 0},y=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};zB((()=>{g&&y()}),[e]);const x=e=>{const t=Math.max(e,lN.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:uN.Pixels,pixels:h.current.columnWidth};a(e)}else l?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{GW(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{GW(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},M=!n&&s?e=>{if(e.key===aN.Left||e.key===aN.Right){GW(e);const t=5,r=e.key===aN.Left?t:-t,n="rtl"===p?r:-r;x(h.current.columnWidth+n)}else e.key===aN.Space||e.key===aN.Enter?(GW(e),s(e),S()):e.key===aN.Esc&&(GW(e),s(e),x(h.current.initWidth))}:void 0,A=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Zo.jsx(HB,{style:v,hoverColor:o,isLastColumn:r,className:sN,"data-testid":sN,onMouseDown:e=>{GW(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),y(e.clientX)},onDoubleClick:()=>{a({type:uN.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GW(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),l?.(!0),y(e.touches[0].clientX))},onKeyDown:M,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":lN.PixelsMin,"aria-valuemax":lN.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},UB=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YB=rl(Gu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),KB=rl(UB,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),XB=rl(Ud)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JB=rl(Nc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ZB=rl(Zd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),QB=rl(Zd,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),eG=rl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),tG=rl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),rG=rl(au)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),nG=rl(xd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),oG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),iG=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?iG(t):t:e.parentElement?.children?.[0]},aG=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?aG(t):t},sG=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===aN.Down||t===aN.Up){const r=e=>t===aN.Down?iG(e):aG(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},lG=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let uG={};const cG=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:d})=>{const[p,f]=b(!1),m=u(null),g=h((e=>{e.stopPropagation(),f(!1)}),[f]);return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(QB,{ref:a?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),uG={}),a?.length&&(f(!0),uG[n]=f))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:sG,children:[l?Zo.jsx(eG,{direction:c,isPagination:d}):null,Zo.jsxs(tG,{children:[Zo.jsx(nG,{direction:c,isPagination:d,children:Zo.jsx(o,{})}),Zo.jsx(rG,{variant:"body2",children:n})]}),a?.length?Zo.jsx(oG,{}):null]},t),a?.length?Zo.jsx(hG,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:lG(a,uG),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},dG=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Zo.jsx(ZB,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Zo.jsx(cG,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),pG=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[dG({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"}):void 0])),fG={appear:0,enter:0,exit:0},hG=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Zo.jsx(XB,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:fG,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:pG({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,mG=(e,t)=>e.some((e=>t[e]>0)),gG={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bG=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=b(null),[a,s]=b(gG);return zB((()=>{e||(s(gG),i(null))}),[e]),p((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:mG(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mG(["qSelected"],e),canSelectPossible:mG(["qOption"],e),canSelectAlternative:mG(["qAlternative"],e),canSelectExcluded:mG(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),yG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),xG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),SG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),wG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),CG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),EG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),RG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),MG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),AG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),IG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),kG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),LG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let PG=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const DG="/qListObjectDef",_G=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[PG.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:vG,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:SG,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:EG,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:RN,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const e=[];r[PG.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:RG,enabled:!0}]}]),r[PG.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:LG,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(DG))},icon:MG,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(DG))},icon:kG,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(DG))},icon:AG,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(DG))},icon:IG,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(DG))},icon:yG,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:CG,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:wG,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[PG.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xG,enabled:!0}]}]),f},OG=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:b,isAccessibleHeader:v})=>{const y=u(null),x=WB({translator:o}),{qLibraryId:S,fieldId:w,headTextAlign:C}=n,E=d?.app,{fieldInstance:R,selectionActionsEnabledStatus:M}=bG({open:e,headerData:n,app:E,qStateName:d?.qStateName});let A=null;if(m&&"setActiveField"in m&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;A=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const I=h((()=>{const e=S?{qLibraryId:S,type:"dimension"}:w;if(c?.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:d?.qStateName,direction:g})}}),[S,w,c,d?.qStateName,g]),k=h((e=>{e.stopPropagation(),t(!1)}),[t]),L=h((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Zo.jsxs(YB,{rightAligned:"right"===C,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===v?L:void 0,ref:y,children:[s?Zo.jsx(KB,{height:rN,className:nN,"data-testid":nN,isInteractionsActive:i.active??!1,children:Zo.jsx(UB,{})}):null,Zo.jsx(hG,{open:e,anchorEl:!1===v?y.current:r.current,onClose:k,menuGroups:_G({headerData:n,translator:x,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:R,selectionActionsEnabledStatus:M,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:f}),direction:g,isPagination:b})]}):null},TG=e=>e.isDark?{background:e.color,borderColor:p$.DARK_MODE_BORDER,color:p$.DARK_MODE_TEXT,disabledColor:p$.DARK_MODE_DISABLED,iconColor:p$.DARK_MODE_TEXT}:{background:e.color,borderColor:p$.BORDER_MEDIUM,color:p$.TEXT,disabledColor:p$.DISABLED},qG=rl(Gu,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),jG=rl(Dp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),NG=rl(ec,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),FG=rl(au)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),zG=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g((()=>TG(n.background)),[n]);if(!r.active)return null;const a=o?Zo.jsx(qG,{footerStyle:i,children:e}):null;return t?C.createPortal(e,t):a},$G=c({}),WG=()=>n($G),BG=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=g((()=>TG(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WB({translator:d}),S=g((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y]);return Zo.jsx($G.Provider,{value:S,children:e})};let GG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),HG=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const VG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),UG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),YG=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),KG={FirstPage:UG,PreviousPage:VG,NextPage:oG,LastPage:YG,FirstPageRTL:YG,PreviousPageRTL:oG,NextPageRTL:VG,LastPageRTL:UG},XG=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=WG(),u=r.concat("rtl"===n?"RTL":""),c=KG[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},JG=()=>{const{pageInfo:e,width:t,interactions:r}=WG(),n=0===e.page,{IconComponent:o,styledProps:i}=XG({type:GG.FirstPage,disabledCondition:n,pageNumber:0});return t<=HG.FirstPage?null:Zo.jsx(NG,{...i,disabled:!r.active,children:Zo.jsx(o,{height:rN})})},ZG=(e,t,r=!1)=>{r&&e.key===aN.Tab&&!e.shiftKey&&(GW(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},QG=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{ZG(e,t,n)}:void 0;return o<=HG.LastPage?null:Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},eH=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>HG.FirstPage&&o>HG.LastPage)&&t.enabled?e=>{ZG(e,t,n)}:void 0;return Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},tH=()=>{const{pageInfo:e,interactions:t}=WG(),r=0===e.page,{IconComponent:n,styledProps:o}=XG({type:GG.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Zo.jsx(NG,{...o,disabled:!t.active,children:Zo.jsx(n,{height:rN})})},rH=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=WG(),{page:o,rowsPerPage:i}=r;if(t<=HG.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Zo.jsx(FG,{variant:"caption",dir:"ltr",children:a})},nH=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=WG(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(FG,{variant:"caption",id:p,children:[c,":"]}),Zo.jsx(jG,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},oH=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=WG();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>HG.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Zo.jsx(Zo.Fragment,{children:e.rowsPerPageOptions.map((e=>Zo.jsx("option",{value:e,children:e},e)))});return Zo.jsx(nH,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},iH=1e3,aH="…",sH=({totalPages:e,page:t})=>{const r=Math.min(e,iH),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-iH):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Zo.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"startMoreOptions")),o<e-1&&a.push(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"endMoreOptions")),Zo.jsx(Zo.Fragment,{children:a})},lH=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=WG(),{page:o}=e;if(t<=HG.SelectPage)return null;const i=Zo.jsx(sH,{totalPages:r,page:o});return Zo.jsx(nH,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var uH=y((e=>Zo.jsxs(BG,{...e,children:[Zo.jsx(oH,{}),Zo.jsx(lH,{}),Zo.jsx(rH,{}),Zo.jsx(JG,{}),Zo.jsx(tH,{}),Zo.jsx(eH,{}),Zo.jsx(QG,{})]})));const cH=e=>Zo.jsx(zG,{...e,children:Zo.jsx(uH,{...e})}),dH=c({}),pH=()=>n(dH),fH=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=g((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return Zo.jsx(dH.Provider,{value:a,children:i})},hH=c({}),mH=()=>n(hH),gH=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=g((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i})),[e,a,t,n,r,o,s,i]);return Zo.jsx(hH.Provider,{value:u,children:l})},bH=c({}),vH=()=>n(bH),yH=({children:e,...t})=>Zo.jsx(bH.Provider,{value:t,children:e}),xH=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=mH(),{layoutService:r}=vH(),n=e.getStyle("","","fontFamily")??eB;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Zo.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Zo.jsx("span",{style:{...uB,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},SH="/qHyperCubeDef",wH=-1,CH="PSEUDO-DIM",EH=[];for(let e=0;e<256;++e)EH.push((e+256).toString(16).slice(1));let RH;const MH=new Uint8Array(16);var AH={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IH(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RH){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RH=crypto.getRandomValues.bind(crypto)}return RH(MH)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(EH[e[t+0]]+EH[e[t+1]]+EH[e[t+2]]+EH[e[t+3]]+"-"+EH[e[t+4]]+EH[e[t+5]]+"-"+EH[e[t+6]]+EH[e[t+7]]+"-"+EH[e[t+8]]+EH[e[t+9]]+"-"+EH[e[t+10]]+EH[e[t+11]]+EH[e[t+12]]+EH[e[t+13]]+EH[e[t+14]]+EH[e[t+15]]).toLowerCase()}(n)}const kH=()=>crypto?.randomUUID?.()??function(e){return AH.randomUUID&&!e?AH.randomUUID():IH(e)}(),LH=e=>e===wH?CH:(({qLibraryId:e,cId:t})=>e??t??kH())(e),PH=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===wH?r.columnWidthLocation=Zz.Measures:r.isLeftDimension?r.columnWidthLocation=Zz.Dimension:t.at(-1)===wH?r.columnWidthLocation=Zz.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Zz.Pivot))},DH=(e,t,r,n)=>{const o=LH(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===wH?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===pN.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},_H=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===wH?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s);return r.forEach(((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=DH(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=DH(e,t,r,i)})),l},OH=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(wH)?_H({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(_H({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};function TH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qH(e,t,r){return t=zH(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WH()?Reflect.construct(t,r||[],zH(e).constructor):t.apply(e,r))}function jH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HH(n.key),n)}}function FH(e,t,r){return t&&NH(e.prototype,t),r&&NH(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zH(e){return zH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zH(e)}function $H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BH(e,t)}function WH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WH=function(){return!!e})()}function BH(e,t){return BH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BH(e,t)}function GH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TH(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HH(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}var UH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:YH(e),value:YH(t),useEqualSign:r}}(r,o,i))}})),t}};function YH(e){try{return decodeURIComponent(e)}catch(t){return e}}function KH(e){if(!(this instanceof KH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return UH.fromSearchString(t.search)}}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}KH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KH.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=XH((t=e[n]).key),t.value?r+="=".concat(XH(t.value)):r+=t.useEqualSign?"=":"";return r};var JH,ZH=function(){return FH((function e(t){jH(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),QH=function(){return FH((function e(){jH(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new ZH(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),eV=function(e){return e>=0&&e<=1114111},tV=function(e){return e.match(/[\s]/)},rV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!tV(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return eV(a)?String.fromCharCode(a):"�"}}])}(QH),nV=function(){function e(t,r){jH(this,e),this._key=t,this._value=r}return FH(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),oV=function(){function e(){jH(this,e)}return FH(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return nV.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return nV.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||nV.newInstanceIfNeeded(e,t,this._value)}}])}(),iV=function(){return FH((function e(){jH(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new oV);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),aV=function(){var e,t,r,n=[],o=[],i=new iV;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),sV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,aV.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=aV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}}])}(QH),lV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),eV(o))?String.fromCharCode(o):(e.reset(),null)}}])}(QH),uV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(JH=document.createElement("div"));var cV=Array.prototype.indexOf,dV=[",",".","_"," "],pV=[",",".","-","_"," "],fV={width:["%"],height:["%"]},hV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},mV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":hV.image,"background-color":hV.color,"border-color":hV.color,"border-image":hV.image,color:hV.color,icon:hV.image,"list-style-image":hV.image,"outline-color":hV.color},gV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function bV(e,t,r){var n;if(t){if(cV)return cV.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function vV(e){if(null==e)return"";var t,r=document.createTextNode(e);return JH.appendChild(r),t=JH.innerHTML,JH.removeChild(r),t}function yV(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=SV(e).toLowerCase(),t=SV(t),i=0;i<gV.attr_name.length;i++)if(e.match(gV.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<gV.attr_val.length;i++)if(t.toLowerCase().match(gV.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=fV[e])||(n=pV),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function xV(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=SV(e).toLowerCase(),t=SV(t),bV(e,gV.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<gV.css_val.length;n++)if(t.toLowerCase().indexOf(gV.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=mV[e])||(o=hV.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function SV(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new sV,new lV,new rV];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var wV=[],CV=0;CV<255;CV++)wV[CV]=CV>=48&&CV<=57||CV>=65&&CV<=90||CV>=97&&CV<=122?null:CV.toString(16);var EV=function(e){return vV(e.unsafe)},RV=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=xV(t,r[t],!0),i+=xV(t,r[t],!0),o[t]=n[t]);return e.map?o:i},MV=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=yV(i,t[i],!0),o+=yV(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function AV(e,t){throw new Error(t)}var IV={canonicalize:SV,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===VH(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?EV(e):"css"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),RV(e)):"attr"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),MV(e)):void AV(this,"Invalid parameter type")},encodeForAttr:yV,encodeForAttr2:function(e){return yV("nonsens",e,!0)},encodeForCSS:xV,encodeForHref:function(e){SV(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new KH(e),r=KH.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+KH.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=dV),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),bV(o,t)>=0||null==wV[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:vV,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=SV(t).toLowerCase():AV(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=GH(null!==(t=uV.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const kV=(e,t)=>t.qAttrExps?.qValues?.[e],LV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},PV=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&IV.isSafeDataURL(t)?{type:Hz.Image,url:t,text:e,imageSize:r,resolvedImagePosition:LV(n,a),labelStructure:o,imageBox:i}:{type:Hz.Text,url:void 0,text:e,labelStructure:o},DV=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:Hz.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Hz.MiniChart,text:n,miniChart:a}},_V=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===Vz.Attribute?void 0:r?.urlLabel},OV=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Hz.Link,url:IV.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:Hz.Text,url:void 0,text:t,labelStructure:e}}},TV=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=Uz(t),d=s(e);return c===Hz.Image&&u[Hz.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=kV(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),PV({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return PV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kV(r.imageLabel??-1,e)?.qText??n;return PV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:Hz.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===Hz.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===Vz.Attribute){const i=_V(r.url??-1,e,t);return OV({labelStructure:n,text:o||i||"",url:i})}if(i===Vz.Dimension){const i=_V(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),OV({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:Hz.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===Hz.Indicator&&u[Hz.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:Hz.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===Hz.MiniChart&&u[Hz.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?DV(e,t,i,d):{type:Hz.Text,url:void 0,text:d,labelStructure:a}},qV=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?BW(o):null,a=n?BW(n):null,s=((e,t)=>e||!t?null:zW(t))(a,i);return{color:s??a,background:i}},jV=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:jV(e,t)),e),NV=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:rB-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,jV(s,e))},FV=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,pseudoDimMeasureIndex:d,indentLevel:p,labelStructure:f,env:h,pageInfo:m,direction:g="ltr"})=>{const b=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==wH){if(t){const t=Uz(e.representation);return t===Hz.Link||t===Hz.Image?e.representation:{type:Hz.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===Hz.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:f,representationType:Uz(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),x=TV({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:h,labelStructure:f,direction:g,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),S={id:kH(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:NV(e,o,i,n,u,m),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:b,expressionColor:qV(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:d??(b?e.qElemNo:t?.visibleMeasureInfoIndex),representation:x,...void 0!==p&&{indentLevel:p}};return t&&(t.children[S.mainAxisPageCoord-t.mainAxisPageCoord]=S),S},zV=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(wH);f.forEach(((f,b)=>{const v={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const y=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,y+c-f.qUp),S=r.qTop+c-f.qUp;let w;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(v.originalValue=f.qText??"",v.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(v.originalValue=o.getNullValueText()),m<g&&(v.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){v.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",v.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",v.suffix=f.qText??"";const e=f.qSubNodes;w=f.qElemNo,f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(v.originalValue=o.getNullValueText())}let C=h;u&&(C=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(C=0));const E=e.at(h)?.[x],R=u&&void 0===E?.ref.qText||!E?FV({node:f,parent:p,root:d,x:C,y:S,pageY:x,layoutService:o,dimensionInfo:i[C],attrExprInfoIndex:a[C],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:v,direction:l,pseudoDimMeasureIndex:w}):e[h][x];if(e[h][x]=R,f.qSubNodes.length){const e=u?0:h+1;t(d||R,R,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},$V=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},WV=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},BV=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=zV(e.grid,l,u,r,n,o,i,a,s);$V(c,r.rowsOnCurrentPage);const d=WV(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},GV=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:kH(),ref:t,isNull:l}}))})),o},HV=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?GV({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},VV=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach(((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,b=e[h][g]??FV({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=b,f.qSubNodes.length&&t(a||b,b,f.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},UV=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=VV(e.grid,u,c,r,n,o,i,a,s,l);$V(d,r.size.x);const p=WV(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},YV=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),KV=(e,t)=>{const{env:r}=mH(),{direction:n}=pH(),{layoutService:o,effectivePropertiesService:i}=vH(),{qPivotDataPages:a,pageInfo:s}=pH(),[l,u]=b(null),c=((e,t,r)=>g((()=>({left:e.map(YV),top:t.map(YV),measures:r.map(YV)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g((()=>OH(o,i,t,e)),[o,i,t,e]),p=h((()=>a.slice(1).reduce(((e,t)=>HV({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return GV({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),f=h((()=>a.slice(1).reduce(((e,i)=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=VV([],u,l,t,r,n,o,i,a,s);$V(c,t.size.x);const d=WV(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n))),[a,o,t,c.top,d.size.y,r,s,n]),m=h((()=>a.slice(1).reduce(((t,i)=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=zV([],l,s,r,t,n,o,i,a);$V(u,r.rowsOnCurrentPage);const c=WV(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n))),[a,o,s,e,c,r,n]),[v,y]=b((()=>p())),[x,S]=b((()=>f())),[w,C]=b((()=>m()));zB((()=>{y(p())}),[p]),zB((()=>{S(f())}),[f]),zB((()=>{C(m())}),[m]),zB((()=>{l&&l.forEach((i=>{y((e=>HV({prevData:e,dataPage:i,pageInfo:s}))),S((e=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})))}))}),[l]);const E=h((e=>{u(e)}),[]);return{headersData:d,measureData:v,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},XV=Math.sqrt(1e4),JV=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/lN.PixelsMin)}),ZV=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/XV),n=Math.ceil(e.qHeight/XV);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*XV,qTop:e.qTop+r*XV,qWidth:Math.min(XV,e.qWidth-o*XV),qHeight:Math.min(XV,e.qHeight-r*XV)});return t};function QV({nextPageHandler:e}){const{model:t}=mH(),{pageInfo:r}=pH(),{layoutService:n}=vH(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h((async(e,t)=>{await(i?.collapseLeft(SH,e,t,!1))}),[i]),s=h((async(e,t)=>{await(i?.collapseTop(SH,e,t,!1))}),[i]),l=h((async(e,t)=>{await(i?.expandLeft(SH,e,t,!1))}),[i]),c=h((async(e,t)=>{await(i?.expandTop(SH,e,t,!1))}),[i]),d=h((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(SH,t.reduce(((e,t)=>[...e,...ZV(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),p=h(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Zz.Dimension:c=[{qPath:`${SH}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case Zz.Measures:if(o)c=s.map(((e,t)=>({qPath:`${SH}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${SH}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case Zz.Pivot:c=[{qPath:`${SH}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));t?.applyPatches(d,!0)}),[t,n]),f=h((async e=>{await(i?.applyPatches([{qPath:`${SH}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return g((()=>({collapseLeft:a,collapseTop:s,expandLeft:l,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:d})),[a,s,l,c,p,f,d])}const eU=(e,t,r)=>(n,o)=>{if("P"===n)return wH;const i=t[r+o];return e[i]},tU=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},rU=c({}),nU=()=>n(rU),oU=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=vH(),{qPivotDataPages:n}=pH();return g((()=>{const o=tU(n[0]?.qLeft??[]),i=tU(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(eU(r,t,0)),visibleTopDimensionInfo:i.map(eU(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=KV(t,r),u=QV({nextPageHandler:l}),c=g((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u})),[t,r,n,o,i,a,s,u]);return Zo.jsx(rU.Provider,{value:c,children:e})},iU=20,aU=18,sU=.75,lU=e=>-1!==e&&e?.representation?.type===Hz.Image,uU=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===Hz.Image,cU=e=>void 0===e?tB:e,dU=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,pU=e=>dU(e,lN.PixelsDefault),fU=(e,t)=>dU(e,lN.PercentageDefault)*t/100,hU=(e,t,r)=>{switch(t?.type){case uN.Pixels:return pU(t.pixels);case uN.Percentage:return fU(t.percentage,e);case uN.FitToContent:case uN.Auto:default:return r}},mU=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find((e=>e.cId===d)),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===CH)return e+0;const b=uU({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:Hz.Text}})?g.width+8+4:n(f),v=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let y=0;if(o&&i&&a){y=i("- ")+a}return Math.max(e,24*l+aU+v+b+y)}),0),gU=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*aU;return Math.max(e,o+t(n.qFallbackTitle))}),0),bU=(e,t,r,n)=>{const o=100*e/t,i=n*sU*(o/100),a=o/100*+r;return Math.min(a,i)},vU=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),yU=(e,t)=>e.some((e=>e>=t*sU)),xU=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*sU,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,mU({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,gU(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===CH)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===uN.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+aU+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,h,m);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,gU(e.visibleMeasureInfo,l,!0));g=Math.min(d,mU({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,h-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=uN.Pixels,x.pixels=i);return[uN.Pixels,uN.Percentage].includes(x.type)||yU(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=yU(e,r);l===uN.Auto&&d&&(o>i?o-=i:i-=o),l===uN.Pixels&&u&&(o=bU(e[0],s,u,r),i=bU(e[1],s,u,r)),l===uN.Percentage&&c&&(o=vU(e[0],s,c,r),i=vU(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function SU({tableWidth:e}){const t=e*sU,{styleService:r,layoutService:n,effectivePropertiesService:o}=vH(),{translator:i}=mH(),{gridSectionsData:{headersData:a}}=nU(),{measureText:s}=qB(r.header),{estimateWidth:l,measureText:u}=qB({...r.dimensionValues,fontWeight:cU(r.dimensionValues.fontWeight)}),{measureText:c}=qB({...r.dimensionValues,...r.measureLabels}),d=h(((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,b=(t=0)=>h.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+aU,a=Math.max(i,t);return Math.max(r,m?a:hU(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===CH)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?iU:0;return aU+s(t)+iU+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,s)=>{let u=aU;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===Zz.Pivot?t=m?void 0:f:i.columnWidthLocation===Zz.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===CH)r=b();else{const e=v(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(lU(s))return lN.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return aU+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===Zz.Dimension&&a.size.x>1&&(r=e)}else r=v(s),i.columnWidthLocation===Zz.Measures&&(r=b(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:hU(e,t,r)}else u=m?Math.min(t,r):r;return y+=u,u}));return m&&a.size.x>1?xU({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,s,c,l,u,i,o]),[p,f]=b(d);zB((()=>{f(d())}),[d]);const m=h(((e,t)=>{f(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:m}}function wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=vH(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=nU(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=qB(n.measureValues),{estimateWidth:p}=qB({...n.dimensionValues,fontWeight:cU(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),b=m===wH,v=s.length-a>i.length?21:0,y=g((()=>{const e=b?u:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(lN.PixelsMax,Math.max(lN.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case uN.Pixels:i(t,pU(o));break;case uN.Percentage:i(t,fU(a,f));break;case uN.FitToContent:i(t,((e,t,r)=>r?lN.PixelsDefault:aU+(b?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+v)))(s,l,lU(e)));break;case uN.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(lN.AutoMinPivot,i)}))}return r}),[b,u,m,l.x,f,c,d,p,v]),x=g((()=>{if(b){return u.reduce(((e,t,r)=>e+y[r]),0)/u.length}return y[0]}),[b,y,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=h((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,f),getRightGridColumnWidth:w}}const CU=`scrollable-container--${e$.TopGrid}`,EU=`scrollable-container--${e$.LeftGrid}`,RU=`scrollable-container--${e$.DataGrid}`,MU=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},AU=(e,t)=>e>t?t$.Forward:e<t?t$.Backward:t$.None,IU=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=pH();p((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach((e=>{e?.scrollTo(l)})),c.scrollTop=d.scrollTop,t.current?.forEach((e=>{e?.scrollTo(a.scrollTop)})),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[i,o,a,e,t,r,n,s])},kU=()=>{const{interactions:e}=mH(),t=u(null),r=u(null),n=u(null),o=u(null),i=u([]),a=u([]),s=u(null),{scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:d}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=b(0),[i,a]=b(0);return m((()=>{(e.current||r.current)&&o(Math.max(MU(e.current).width,MU(r.current).width))})),m((()=>{(t.current||r.current)&&a(Math.max(MU(t.current).height,MU(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=pH(),{downloadService:l,viewService:u,layoutService:c}=vH(),d=h((()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)}),[e,t,r,n]);m((()=>{d()}),[s.page,d]),m((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),m((()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach((e=>{e?.scrollTo(t)})),o.current?.forEach((t=>{t?.scrollTo(e)})),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}}),[c,n,a,i,o]),m((()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:f,scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v}}=(()=>{const e=u(t$.None),t=u(t$.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h((n=>{if(n instanceof WheelEvent&&(e.current=AU(n.deltaY,0),t.current=AU(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=AU(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=AU(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=vH();return h((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===EU&&(e.leftGridScrollLeft=n.scrollLeft),o===RU&&(e.scrollLeft=n.scrollLeft),o===CU&&(e.topGridScrollTop=n.scrollTop),o!==EU&&o!==RU||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:h((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:f,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{p((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach((e=>{e?.scrollTo(l.scrollTop)})),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach((e=>{e?.scrollTo(s.scrollLeft)})),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach((e=>{e?.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,t.current?.forEach((e=>{e?.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),IU(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:d}}},LU=()=>{const{layoutService:e}=vH(),{rect:t,pageInfo:r}=pH();return g((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},PU=({children:e,style:t})=>Zo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),DU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},_U=e=>e&&`scrollable-container--${e}`,OU=({children:e,style:t,origin:r},n)=>{const{interactions:o}=mH(),i=o.scroll?t:{overflow:"hidden"};return Zo.jsx("div",{"data-testid":"scrollable","data-key":_U(r),style:i,ref:n,children:e})};var TU=r.forwardRef(OU);const qU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var jU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function NU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||jU(n)&&jU(o)))return!1;var n,o;return!0}function FU(e,t){var r;void 0===t&&(t=NU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var zU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $U(e){cancelAnimationFrame(e.id)}function WU(e,t){var r=zU();var n={id:requestAnimationFrame((function o(){zU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var BU=-1;function GU(e){if(void 0===e&&(e=!1),-1===BU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),BU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BU}var HU=null;function VU(e){if(void 0===e&&(e=!1),null===HU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?HU="positive-descending":(t.scrollLeft=1,HU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),HU}return HU}var UU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Rl(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rl(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=FU((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=FU((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=FU((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(VU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return KU(e,t),b(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=GU();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=s(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(VU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?UU:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),M=R[0],A=R[1],I=[];if(n>0&&b)for(var k=M;k<=A;k++)for(var L=C;L<=E;L++)I.push(o(t,{columnIndex:L,data:p,isScrolling:y?S:void 0,key:h({columnIndex:L,data:p,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,L)}));var P=s(this.props,this._instanceProps),D=l(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:I,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:D}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},JU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},ZU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},QU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?eY(e,t,r,i,0,n):tY(e,t,r,Math.max(0,i),n)},eY=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ZU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},tY=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ZU(e,t,n,r).offset<o;)n+=a,a*=2;return eY(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},rY=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ZU(e,t,r,i),u="column"===e?JU(t,i):XU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},nY=YU({getColumnOffset:function(e,t,r){return ZU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return QU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ZU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:XU,getEstimatedTotalWidth:JU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return rY("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return rY("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ZU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return QU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ZU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),oY=function(e,t){return e};function iY(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rl(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rl(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=FU((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=FU((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=FU((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(VU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return aY(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?GU():0:l.scrollHeight>l.clientHeight?GU():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(VU()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?oY:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],M=[];if(c>0)for(var A=E;A<=R;A++)M.push(o(t,{data:d,key:f(A,d),index:A,isScrolling:v?x:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(l||u||"div",{children:M,ref:s,style:{height:S?"100%":I,pointerEvents:x?"none":void 0,width:S?I:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aY=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sY=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},lY=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=sY(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},uY=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&sY(e,r,t).offset<n;)r+=i,i*=2;return lY(e,t,Math.min(r,o-1),Math.floor(r/2),n)},cY=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},dY=iY({getItemOffset:function(e,t,r){return sY(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:cY,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=sY(e,t,o),p=cY(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?lY(e,t,o,0,r):uY(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=sY(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sY(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function pY(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var fY=["style"],hY=["style"];function mY(e,t){var r=e.style,n=kn(e,fY),o=t.style,i=kn(t,hY);return!pY(r,o)&&!pY(n,i)}const gY=10,bY=(e,t)=>e.current===t$.Backward?t:0,vY=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},yY=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,xY=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(vY(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&yY(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},SY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===t$.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return xY({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},wY=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=bY(r,gY),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+gY,s-u),pageTop:o,qHeight:a}})(n,o,r),u=xY({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...SY({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},CY=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},EY=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,RY=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(CY(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&EY(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},MY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=bY(r,gY),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+gY,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=RY({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===t$.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=RY({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},AY=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==t$.None&&(p=MY({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==t$.None&&(f=wY({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===t$.None&&a.current===t$.None&&(p=RY({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},IY=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(AY,100),kY=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(AY,75),LY=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),PY=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=pH(),{styleService:{grid:{border:l,divider:u}}}=vH();return Zo.jsx("div",{style:{...e,...lB,...pB(r,n,l,s,o),...hB({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},DY=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=vH(),a=o&&i;return Zo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},_Y=e=>{const{type:t,imageSize:r}=e;return t!==Hz.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},OY=e=>"number"==typeof e&&!Number.isNaN(+e),TY=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,qY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),jY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),NY=x(((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Zo.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),FY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),zY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),$Y=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),WY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M2 7h12v2H2z"})}))),BY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),GY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),HY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),VY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),UY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),YY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),KY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),XY=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),JY={m:UY,"ï":HY,R:x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),S:YY,T:KY,U:XY,P:GY,Q:$Y,"è":x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":FY,"©":NY,"23F4":zY,2013:VY,"&":BY,add:qY,"minus-2":WY,dot:jY},ZY=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&JY[t];return o&&Zo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Zo.jsx(o,{style:{height:e}})})},QY=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),eK=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},tK=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&M$(e.localPaletteColors[t].color).blend(M$(s.color),s.t)},rK=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:QY(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:eK(n,t,r)})))),n},nK=(e,t,r,n)=>{const o=rK(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=tK(e,a,t);break}n=i}return r})(o,t);return a},oK=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!OY(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!OY(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},iK=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=oK(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!OY(t))return 0;let a=r&&OY(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},aK=e=>"flex-start"===e?"flex-end":"flex-start",sK=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=iK(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return eK(o,r.limitPaletteColorIndex,n);const a=QY(r.limitRange,t);return nK(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},lK=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=vH(),{theme:o}=mH(),{direction:i}=pH(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=sK(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},b=parseInt(d||QW,10),{iconKey:v,color:y,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Zo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?y:r?.color},children:["left"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S}),Zo.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S})]}):(S.paddingTop=5,ZY({size:b,iconKey:v,color:y,pvStyle:S}))},uK=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),cK=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),dK=e=>!!e.target?.getAttribute("class")?.includes(sN),pK=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},fK=e=>null!==e.target?.closest("[data-prevent-selection]"),hK=e=>"A"===e.target?.tagName,mK=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const gK=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),bK=()=>n(gK),vK=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=pH(),r=e.isActive(),[n,o]=d(pK,{engineSelectedCells:null,selectedField:null,activeSelection:null});p((()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const i=h((async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach(((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))})));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[SH,Array.from(i,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}}),[n,e]);p((()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}}),[i,n.activeSelection]);const a=h(((e,t)=>r=>{const n=t(e);dK(r)||fK(r)||hK(r)||!(e=>1===e.buttons)(r)||!n||o(mK({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=h((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([SH]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=h(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);dK(r)||fK(r)||hK(r)||!n||(o(mK({startIndex:e,getCellFromIndex:t,cell:n})),i())}),[i]),u=h((e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y))),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),c=h((e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo))),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return g((()=>({isSelected:c,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l})),[c,r,u,a,s,l])}(t);return Zo.jsx(gK.Provider,{value:r,children:e})},yK=e=>"fill"===e.representation.imageSize,xK=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&yK(e)&&t&&(r="center"),e.representation.type!==Hz.Image||yK(e)?r:e.representation.resolvedImagePosition?.vertical};var SK=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(SK||{});const wK={brighter:.5,darker:.3,opacity:.03},CK=(e,{cell:t,styleService:r})=>{if(e===SK.Background||e===SK.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},EK=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=CK(SK.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?CK(SK.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${WW(i=o,wK)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},RK=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:CK(SK.Color,{cell:e,styleService:t}),MK=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=CK(SK.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?tB:o},AK=({cell:e,styleService:t})=>CK(SK.FontStyle,{cell:e,styleService:t}),IK=({cell:e,styleService:t})=>CK(SK.TextDecoration,{cell:e,styleService:t}),kK=e=>e?"pointer":"default",LK=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},PK=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Hz.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},DK=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=vH(),{interactions:i}=mH(),{isActive:a}=bK(),{dataModel:s}=nU();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=RK({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?cK:uK;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=uU({isLeftColumn:t,layoutService:o,representation:e.representation});return Zo.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...PK(e,n),...f&&{alignSelf:xK(e)}},onClick:l?void 0:LK({cell:e,expandOrCollapse:p})})},_K=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},OK=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},TK=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},qK=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=uU({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},jK=e=>{if("alwaysFit"===e)return"contain"},NK=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),FK=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:OK(e,r,n),height:_K(e),objectFit:jK(e),objectPosition:TK(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),zK=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=vH(),t=u(null),{promise:r,resolve:n}=g((()=>CB()),[]);return p((()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()})),[t,e,r,n]),{onLoad:h((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=vH(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Zo.jsx("img",{src:a,alt:s,style:{...FK({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},$K=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=vH(),{resolvedImagePosition:u}=e;return Zo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...qK({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Zo.jsx(zK,{representation:e,textStyle:t,isMeasureCell:!0})})},WK=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},BK=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},GK={display:"flex",flexDirection:"row",alignItems:"center"},HK={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},VK=(e,t,r,n)=>t?{...HK,...e.nullValues}:r?{...GK,color:e.totalValues.color,background:n??e.totalValues.background}:{...GK,color:e.measureValues.color,background:n??e.measureValues.background},UK=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...uB,...!r&&cB(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?tB:l,fontStyle:u,textDecoration:c}},YK=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=vH(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===Hz.Image,c=t.type===Hz.Indicator,d=OY(TY(l)),p=UK(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Zo.jsx($K,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=TY(e.isNull?t.text:e.ref.qNum);return c&&OY(f)?Zo.jsx(lK,{representation:t,cellValue:f,textStyle:p}):Zo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},KK=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,XK="flex-start",JK=(e,t)=>e.isNull?XK:t.type===Hz.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:XK,ZK=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=mH(),{pageInfo:i,direction:a}=pH(),{styleService:s,layoutService:l}=vH(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleTopDimensionInfo:f}}=nU(),m=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=nU(),i=n.length,a=o.length;return h(((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal)),[r,t,i,a,e])})(),g=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=nU(),r=t.length;return h((t=>{const n=e.grid.at(r-1)?.[t];return LY(n,e.totalDividerIndex)}),[e,r])})(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=nU(),n=r.length;return h((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return LY(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:v}=n,y=p.grid.at(f.length-1),x=d.grid.at(-1),{background:S}=s.measureValues,w=c[t]?.[e],C=t===i.rowsOnCurrentPage-1,E=e===l.size.x-1;if(!w)return Zo.jsx(PY,{style:{...r,background:S},isLastRow:C,isLastColumn:E,showLastBorder:v,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const R=l.hasPseudoDimOnLeft?KK(x,t):KK(y,e),M=l.visibleMeasureInfo[R],A=TV({cell:w.ref,representationProperties:M.representation,attrExprInfoIndex:u.measures[R],env:o,direction:a,conditionalColoring:M.conditionalColoring,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),I=!w.isNull&&m(e,t),k=w.isNull?l.getNullValueText():A.text,L=!w.isNull||!Number.isNaN(+k),P=qV(u.measures[R],w.ref),D=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==Hz.Image?WK(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(w,M,A,L,a),_={...VK(s,w.isNull,I,P.background),...pB(C,E,s.grid.border,a,v),...hB({bottomDivider:b(t),rightDivider:g(e),borderColor:s.grid.divider}),...lB,padding:"0px 4px",display:"flex",justifyContent:D};return Zo.jsx("div",{className:oN,title:k,style:{..._,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Zo.jsx(DY,{width:_Y(A),verticalAlign:JK(w,A),children:Zo.jsx(YK,{cell:w,representation:A,isTotalValueCell:I,color:P.color,cellHorizontalAlignment:D})})})};var QK=r.memo(ZK,mY);const eX=(e,t)=>t.list[e]?.id??e.toString(),tX=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,rX=e=>({...sB,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),nX=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=pH(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=vH(),{dataModel:f,gridSectionsData:{measureData:g}}=nU(),b={...rX(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=pH(),{downloadService:n,viewService:o,layoutService:i}=vH(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=nU(),c=s.columnCount,d=l.rowCount;return h((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===t$.None?0:gY),m=o.gridHeight+d+(e.current===t$.None?0:gY);let g=IY;m*h>1500&&(g=kY),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return zB((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,g]),m((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,p,u]),0===c.size.x?null:Zo.jsx(nY,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:g},onItemsRendered:v,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:tX,direction:u,children:QK})};var oX=y(nX);const iX=x(((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Zo.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),aX=e=>{const[t,r]=b(!1);return zB((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},sX=()=>{const[e,t]=b(!1),{dataModel:r}=nU(),{interactions:n}=mH(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=aX([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||dK(e)||o||t(!0)},setIsAdjustingWidth:i}};function lX(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===oB.Transparent?p$.WHITE:n,i=mF(e.grid.border),a=mF(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return mF(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const uX=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=pH(),{interactions:l,translator:u}=mH(),{isActive:c}=bK(),{dataModel:d}=nU(),{styleService:p}=vH(),[,f]=b({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=lX(p,e);return Zo.jsx(VB,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*sU,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},cX=CO(hT,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),dX=CO("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),pX=CO("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...aB,justifyContent:e??aB.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),fX=CO("div")((()=>({...aB}))),hX=CO("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),mX=CO(Fq)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),gX=CO(Gq,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),bX=CO("span")({textOverflow:"ellipsis",overflow:"hidden"}),vX=CO("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:iU,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),yX=CO("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let xX=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const SX=(e,t)=>({qExcludeList:t===xX.Expand,qPos:{qDimName:e,qElemNo:[]}}),wX=`${SH}/qExpansionState`,CX=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex((t=>t.qPos?.qDimName===e));return{expansionData:SX(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=wX,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${wX}/-`,t=JSON.stringify(o)):(r=`${wX}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},EX=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:CX({...n,action:xX.Expand}),collapseCallback:CX({...n,action:xX.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},RX={[PG.Sorting]:!0,[PG.Selections]:!0,[PG.Searching]:!0},MX=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=u(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=vH(),{app:g,interactions:b,embed:v,translator:y,model:x}=mH(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:R,color:M,background:A,hoverBackground:I,activeBackground:k}=f.header,L=u(null),{shouldShowLockIcon:P,shouldShowMenuIcon:D}=a,{open:_,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:q}=sX(),{direction:j}=pH(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:v,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},W=WK($,"flex-start",j);return Zo.jsxs(cX,{className:oN,title:e.label,interactions:b,background:_?k:A,hoverBackground:I,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...lB,...fB(e,o,r,n,f.grid.border,j),color:M},"data-testid":"title-cell",onClick:T,children:[Zo.jsxs(pX,{children:[P?Zo.jsx(fX,{children:Zo.jsx(iX,{height:12})}):null,Zo.jsx(hX,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:R,justifyContent:W,children:Zo.jsx("span",{style:uB,children:e.label})})]}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:y,anchorRef:L,open:_,setOpen:O,interactions:b,menuAvailabilityFlags:RX,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:EX({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:D,model:x&&"setActiveField"in x?x:void 0,direction:j}),Zo.jsx(dX,{ref:p,direction:j}),Zo.jsx(dX,{ref:L,direction:j})]}):null,Zo.jsx(uX,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},AX=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=vH(),{direction:n}=pH();return e>0&&t>0?Zo.jsx("div",{style:{...sB,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},IX=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0z"})}))),kX=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m7.999 6.999-2.858 2.86a.2.2 0 0 1-.282 0L4.14 9.14a.2.2 0 0 1 0-.282L7 5.999l.859-.858a.2.2 0 0 1 .282 0L9 6l2.859 2.859a.2.2 0 0 1 0 .282l-.718.718a.2.2 0 0 1-.283 0z"})}))),LX=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=pH(),{styleService:o}=vH(),{interactions:i,translator:a}=mH(),{isActive:s}=bK(),{dataModel:l}=nU(),{setIsAdjustingWidth:u}=aX([l]);if(!(!!i.active&&!s))return null;const c=lX(o,{isLeftColumn:!0});return Zo.jsx(VB,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*sU))},confirmWidthCallback:n=>{if(n.type===uN.FitToContent)return void l.applyIndentModeColumnWidth({type:uN.Auto});const o=Math.min(n.pixels??t,e*sU);r(o),l.applyIndentModeColumnWidth({type:uN.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},PX=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),DX=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=mH(),{layoutService:c,effectivePropertiesService:d}=vH(),{open:p,setOpen:f,handleOpenMenu:h}=sX();return Zo.jsxs(gX,{onClick:h,isActive:p,children:[Zo.jsx(bX,{children:e.label}),Zo.jsxs(vX,{className:"indent-mode-dropdown-more",visible:p,children:[Zo.jsx(PX,{}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:RX,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:EX({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Zo.jsx(dX,{ref:n}),Zo.jsx(dX,{ref:r})]}):null]})]})},_X=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===CH,i=e+1<r.length&&r[e+1]?.id===CH;return!(n&&o&&i)&&(t?.id!==CH&&e<r.length-1)},OX=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=vH(),{interactions:a,translator:s}=mH(),{dataModel:l,gridSectionsData:{headersData:c}}=nU(),[d,p]=b(!1),f=u(null),{headerCellHeight:h}=i,{color:m,background:g,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:R}=aX([l]),M=e=>{e.stopPropagation()},A={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Zo.jsxs(cX,{isDimension:!0,background:d?y:g,interactions:a,hoverBackground:v,style:{...A,...lB,color:m},onClick:e=>{!a.active||dK(e)||R||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Zo.jsxs(pX,{justifyContent:"flex-start",children:[Zo.jsx(hX,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Zo.jsx("span",{style:uB,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Zo.jsx(kX,{}):Zo.jsx(IX,{}),Zo.jsx(dX,{ref:f})]}),Zo.jsx(mX,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==CH&&Zo.jsx("li",{role:"presentation",onClick:M,onKeyDown:M,children:Zo.jsx(DX,{cell:r,changeSortOrder:t})}),_X({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"})]))}),Zo.jsx(LX,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},TX=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,qX={display:"grid",width:"fit-content"},jX=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=vH(),{gridSectionsData:{headersData:u}}=nU();return Zo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...qX,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Zo.jsx(AX,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(TX({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Zo.jsx(OX,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(Zo.jsx(MX,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var NX=y(jX);const FX=(e,t,r,n)=>{const{layoutService:o}=vH();m((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},zX=(e,t)=>{zB((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},$X=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},WX=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=uU({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===Hz.Image)return a&&l&&"center"!==l&&"rtl"===n?aK(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return WK(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return WK(u,s,n)},BX=()=>{},GX=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=vH(),{interactions:f}=mH(),{direction:h}=pH(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:b,createPointerUpHandler:v}=bK(),{showLastBorder:y}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,(e=>$X(e,n))):void 0,C=S?b(c):void 0,E=S?v(c,(e=>$X(e,n))):void 0,R=uU({isLeftColumn:s,layoutService:p,representation:r.representation});return Zo.jsx("div",{className:oN,title:f.passive?r.representation.text:void 0,style:{...t,...pB(i,a,d.grid.border,h,y),...hB({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...lB,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:kK(S),background:EK({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:WX(r,p,s,h,R),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:BK(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:BX,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},HX=e=>{e.stopPropagation()},VX=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:HX,color:p$.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),UX=({href:e,text:t,interactions:r,color:n})=>Zo.jsx(cd,{...VX({href:e,text:t,interactions:r,color:n}),children:t}),YX=U();YX.use(V),YX.renderer.prio(["canvas"]);const KX=(e,t)=>e&&"center"!==e&&"rtl"===t?aK(e):e,XX=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=vH(),{direction:a}=pH();return Zo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Zo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:xK(e),alignItems:KX(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Zo.jsx(zK,{representation:t,textStyle:r})}),Zo.jsx(yX,{padding:4/(i<=2?2:1),alignSelf:xK(e,!0),children:!!t.labelStructure&&NK(t.labelStructure)})]})},JX=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,ZX=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Zo.jsxs("span",{children:[Zo.jsx(YT,{...VX({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&JX(r)]}),QX=({children:e,textStyle:t,shouldEnableStickyText:r})=>Zo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),eJ=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=pH(),{isActive:o}=bK(),{layoutService:i,styleService:a}=vH(),{interactions:s}=mH(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...uB,...cB(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:RK({cell:e,styleService:t,isCellSelected:r}),fontWeight:MK({cell:e,styleService:t}),fontStyle:AK({cell:e,styleService:t}),textDecoration:IK({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Hz.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?XX:$K;return Zo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:WX(e,i,r,n)})}if(e.representation.type===Hz.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?ZX:UX;u=Zo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Zo.jsx(QX,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===Hz.Image&&e.isNull?{alignSelf:xK(e)}:{}},children:u})},tJ=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=vH(),{isSelected:i}=bK(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=aX([r]),f=$X(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=LY(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Zo.jsx(PY,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Zo.jsxs(GX,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Zo.jsxs(DY,{verticalAlign:xK(f),width:_Y(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Zo.jsx(DK,{isLeftColumn:a,isCellSelected:b,cell:f}),Zo.jsx(eJ,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Zo.jsx(uX,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Zz.Measures:Zz.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var rJ=r.memo(tJ,mY);const nJ=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},oJ=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},iJ=(e,t)=>r=>{e.current&&(e.current[t]=r)},aJ={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sB},sJ={overflow:"hidden",willChange:"auto",flexShrink:0},lJ=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=pH(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=vH(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=nU();zX(e,d),FX(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...aJ,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Zo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=LH(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=oJ(t,f,i.rowsOnCurrentPage,h),y=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,v,l,h,c.qcy);return Zo.jsx(dY,{ref:iJ(e,u),style:{...sJ,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:d.totalDividerIndex},itemKey:eX,estimatedItemSize:b,children:rJ},m)}))})};var uJ=y(lJ);const cJ={overflow:"hidden",willChange:"auto"},dJ=e=>({...sB,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),pJ=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=pH(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=vH(),{gridSectionsData:{headersData:c,topDimensionData:d}}=nU(),p={...dJ(a),borderColor:l,height:n};zX(e,d),FX(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Zo.jsx("div",{style:{width:r,height:n,...dJ(a)}}):Zo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=oJ(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=TX({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?LH(g):`empty ${l}`;return Zo.jsx(dY,{ref:iJ(e,l),style:cJ,height:t(),width:r,itemCount:p,itemSize:nJ({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:eX,estimatedItemSize:h,direction:a,children:rJ},b)}))})};var fJ=y(pJ);const hJ=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=vH(),r=LU(),n=(()=>{const{model:e}=mH(),t=h((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=kU(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=vH(),{gridSectionsData:{headersData:i}}=nU(),{measureText:a}=qB(o.header),s=SU({tableWidth:e}),l=wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=h(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+aU;return t&&d+iU<=l&&(c=!0,d+=iU),d+iU<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return p((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()}),[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:M,headerGridDims:A,topGridDims:I,leftGridDims:k,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:D}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=LU(),{pageInfo:l}=pH(),{gridSectionsData:{headersData:u,topDimensionData:c}}=nU(),d=Math.min(s.height*sU,Math.max(s.height*sU-25,s.height-t-a)),p=s.width*sU,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,r),v=s.width-p,y=Math.max(v,s.width-b),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,b,y),E=S-d,R=Math.max(E,S-x),M=Math.min(R,f),A=Math.min(R,f),I=m+1+f,{visibilityStatus:k,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:I-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:I-g+(!L&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,M-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:I-g+(!P&&L?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,A-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:k}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),_=h((()=>e),[e]),O=h((()=>t),[t]);return(()=>{const{downloadService:e}=vH();p((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Zo.jsxs(DU,{style:M,children:[Zo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Zo.jsx(NX,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:A.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Zo.jsx(TU,{style:D.topGrid,origin:e$.TopGrid,ref:i,children:Zo.jsx(PU,{style:I.fullSizeWrapper,children:Zo.jsx(qU,{style:I.stickyWrapper,children:Zo.jsx(fJ,{topGridRef:l,rowHightCallback:_,...I.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Zo.jsx(TU,{style:D.leftGrid,origin:e$.LeftGrid,ref:a,children:Zo.jsx(PU,{style:k.fullSizeWrapper,children:Zo.jsx(qU,{style:k.stickyWrapper,children:Zo.jsx(uJ,{leftGridRef:u,...k.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Zo.jsx(TU,{style:D.dataGrid,origin:e$.DataGrid,ref:s,children:Zo.jsx(PU,{style:L.fullSizeWrapper,children:Zo.jsx(qU,{style:L.stickyWrapper,children:Zo.jsx(oX,{dataGridRef:c,rowHightCallback:O,...L.self,showLastBorder:{right:w,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},mJ=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=mH(),{pageInfo:o,updatePageInfo:i,rect:a}=pH(),{layoutService:s}=vH(),{layout:l,hasData:u}=s;return Zo.jsxs(Zo.Fragment,{children:[u?Zo.jsx(hJ,{}):null,Zo.jsx(xH,{}),Zo.jsx(cH,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})},gJ={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},bJ=12,vJ=14,yJ=16,xJ=24,SJ=3,wJ=300,CJ=400,EJ=600,RJ=700,MJ={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function AJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var IJ=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Zo.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function kJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Zo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Zo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function LJ(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Zo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function PJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function DJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Zo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Zo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _J(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function OJ({className:e}){return Zo.jsx(IJ,{fontSize:"small",className:e,children:Zo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Zo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Zo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Zo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function TJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("rect",{stroke:gJ.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const qJ={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var jJ=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:gJ.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${gJ.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,borderRadius:SJ,backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${gJ.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:gJ.WHITE,color:gJ.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:SJ},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:gJ.PURPLE,"&.Mui-focusVisible":{borderColor:gJ.PURPLE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:gJ.GREEN,"&.Mui-focusVisible":{borderColor:gJ.GREEN,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:gJ.BLUE,"&.Mui-focusVisible":{borderColor:gJ.BLUE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:gJ.ORANGE,"&.Mui-focusVisible":{borderColor:gJ.ORANGE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:gJ.RED,"&.Mui-focusVisible":{borderColor:gJ.RED,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:gJ.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:gJ.PURPLE_PALE},"&:active":{backgroundColor:gJ.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:gJ.PURPLE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:gJ.ORANGE_PALE},"&:active":{backgroundColor:gJ.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:gJ.ORANGE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:gJ.RED_PALE},"&:active":{backgroundColor:gJ.RED_DARK},"&.Mui-focusVisible":{borderColor:gJ.RED_PALE,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:gJ.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:SJ,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:bJ,borderRadius:SJ,color:gJ.TEXT_PRIMARY,backgroundColor:gJ.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:gJ.GREYSCALE_0_05,color:gJ.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:gJ.GREEN,borderColor:gJ.GREEN},"&.MuiChip-outlinedInfo":{color:gJ.BLUE,borderColor:gJ.BLUE},"&.MuiChip-outlinedWarning":{color:gJ.ORANGE,borderColor:gJ.ORANGE},"&.MuiChip-outlinedError":{color:gJ.RED,borderColor:gJ.RED}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:SJ,boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:gJ.GREEN,borderColor:gJ.GREEN},outlinedSecondary:{color:gJ.BLUE,borderColor:gJ.BLUE},label:{fontFamily:MJ.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:SJ},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:SJ,fontSize:vJ,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${gJ.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:gJ.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_05}}},popupIndicator:{borderRadius:SJ,border:`solid 1px ${gJ.GREYSCALE_0_15}`,color:gJ.GREYSCALE_0_60,marginRight:0,width:xJ,height:xJ},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${gJ.GREYSCALE_0_15}`},clearIndicator:{borderRadius:SJ,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:gJ.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:vJ}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:bJ,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:gJ.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:gJ.GREYSCALE_25,fontSize:bJ,fontFamily:MJ.FONT_FAMILY,fontWeight:EJ,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:gJ.TEXT_PRIMARY},"&.Mui-error":{color:gJ.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:gJ.TEXT_SECONDARY,content:"'(optional)'",fontWeight:CJ,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:gJ.TEXT_SECONDARY,content:"'(required)'",fontWeight:CJ,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:vJ,lineHeight:"16px",backgroundColor:gJ.WHITE,borderRadius:SJ,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderColor:gJ.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.RED}`,boxShadow:`0px 0px 0px 1px ${gJ.RED}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_10}`,borderColor:gJ.GREYSCALE_0_10,backgroundColor:gJ.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:gJ.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:gJ.GREYSCALE_0_15,borderRadius:SJ,boxShadow:`inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(AJ,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:gJ.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:gJ.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&:focus":{backgroundColor:gJ.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:gJ.GREYSCALE_0_30,"&:hover":{backgroundColor:gJ.GREYSCALE_0_0,borderColor:gJ.GREYSCALE_0_15},"& ~svg":{color:gJ.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:SJ}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:gJ.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:vJ,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:bJ,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:bJ,fontWeight:EJ,color:gJ.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:EJ}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(_J,{}),checkedIcon:Zo.jsx(LJ,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:gJ.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:gJ.GREYSCALE_0_20}},"&.Mui-disabled":{fill:gJ.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(TJ,{}),checkedIcon:Zo.jsx(kJ,{}),indeterminateIcon:Zo.jsx(DJ,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:SJ,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:gJ.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:gJ.GREYSCALE_0_55,color:gJ.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:gJ.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:gJ.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:gJ.GREYSCALE_0_55,"&:hover":{color:gJ.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:gJ.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:gJ.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:vJ,color:gJ.TEXT_PRIMARY,lineHeight:"16px",fontWeight:EJ},secondary:{fontSize:bJ,color:gJ.GREYSCALE_45,fontWeight:CJ,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:vJ,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:vJ,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:gJ.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:bJ,borderBottom:`solid 1px ${gJ.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:vJ,color:gJ.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:gJ.RED}}},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:gJ.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:gJ.GREEN,height:"24px","&.Mui-disabled":{color:gJ.GREYSCALE_0_15}},rail:{backgroundColor:gJ.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ,boxShadow:`inset 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.WHITE,boxShadow:`0px 1px 2px 0px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`,"&:hover":{borderRadius:SJ,boxShadow:`0 2px 4px 0 ${gJ.GREYSCALE_0_30}, 0 0 0 1px ${gJ.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:gJ.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:gJ.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:gJ.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15},markLabel:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:gJ.WHITE,color:gJ.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:gJ.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:vJ,fontWeight:EJ,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${gJ.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,backgroundColor:gJ.GREYSCALE_0_03,borderRadius:SJ},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:gJ.GREYSCALE_25,"&.Mui-selected":{color:gJ.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:vJ,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:SJ,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:SJ,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderRight:`1px solid ${gJ.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:EJ,backgroundColor:gJ.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:gJ.GREYSCALE_98,borderBottom:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderTop:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03}},"&&:hover":{backgroundColor:gJ.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(OJ,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${gJ.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:vJ,borderRadius:SJ,padding:"7px 16px",border:`1px solid ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_60,color:gJ.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:gJ.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`,border:`1px solid ${gJ.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:gJ.GREYSCALE_25,backgroundColor:gJ.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:bJ,height:24,width:24,padding:7},sizeLarge:{fontSize:yJ,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:vJ,borderRadius:SJ}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:gJ.GREYSCALE_20},tooltip:{backgroundColor:gJ.GREYSCALE_20,fontSize:bJ,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...qJ}:{}}),NJ=(e,t)=>jJ(t);var FJ=()=>({mode:"light",primary:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},secondary:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},error:{ultraLight:gJ.RED_ULTRA_LIGHT,light:gJ.RED_PALE,main:gJ.RED,dark:gJ.RED_DARK,extraDark:gJ.RED_EXTRA_DARK,contrastText:gJ.WHITE},warning:{ultraLight:gJ.ORANGE_ULTRA_LIGHT,light:gJ.ORANGE_PALE,main:gJ.ORANGE,dark:gJ.ORANGE_DARK,extraDark:gJ.ORANGE_EXTRA_DARK,contrastText:gJ.WHITE},success:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},info:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},text:{primary:gJ.TEXT_PRIMARY,secondary:gJ.TEXT_SECONDARY,disabled:gJ.GREYSCALE_0_30},action:{hover:gJ.GREYSCALE_0_03,hoverOpacity:.03,selected:gJ.GREYSCALE_0_05,selectedOpacity:.05,focus:gJ.MISC_FOCUS_BORDER},amethyst:{ultraLight:gJ.WHITE,main:gJ.PURPLE,light:gJ.PURPLE_PALE,dark:gJ.PURPLE_DARK,extraDark:gJ.GREYSCALE_0_0,contrastText:gJ.WHITE},background:{paper:gJ.WHITE,default:gJ.GREYSCALE_95},divider:gJ.GREYSCALE_0_15});var zJ=e=>FJ();var $J=(e,t=!1)=>({components:NJ(0,t),palette:zJ(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:vJ,fontWeightLight:wJ,fontWeightRegular:CJ,fontWeightMedium:EJ,fontWeightBold:RJ,htmlFontSize:vJ,fontFamily:MJ.FONT_FAMILY,button:{fontWeight:EJ,fontSize:vJ,textTransform:"none"},body1:{fontSize:yJ,lineHeight:"24px"},body2:{fontSize:vJ,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:xJ,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:yJ,fontWeight:EJ,lineHeight:"16px"},h6:{fontSize:vJ,fontWeight:EJ,lineHeight:"16px"},caption:{color:gJ.TEXT_SECONDARY},subtitle1:{fontSize:vJ,color:gJ.TEXT_SECONDARY},subtitle2:{fontSize:bJ,color:gJ.TEXT_SECONDARY}},shape:{borderRadius:SJ}}),WJ={},BJ={exports:{}},GJ={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(GJ);var HJ=GJ.exports;!function(e){var t=HJ.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(BJ);var VJ=BJ.exports,UJ={},YJ=qe(Mf);Object.defineProperty(UJ,"__esModule",{value:!0}),UJ.hexToRgb=JJ,UJ.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=QJ(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},UJ.hslToRgb=ZJ,UJ.decomposeColor=QJ,UJ.recomposeColor=eZ,UJ.getContrastRatio=function(e,t){var r=tZ(e),n=tZ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},UJ.getLuminance=tZ,UJ.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return tZ(e)>.5?nZ(e,t):oZ(e,t)},UJ.fade=function(e,t){return rZ(e,t)},UJ.alpha=rZ,UJ.darken=nZ,UJ.lighten=oZ;var KJ=YJ;function XJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function JJ(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function ZJ(e){var t=(e=QJ(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),eZ({type:s,values:l})}function QJ(e){if(e.type)return e;if("#"===e.charAt(0))return QJ(JJ(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,KJ.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function eZ(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function tZ(e){var t="hsl"===(e=QJ(e)).type?QJ(ZJ(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rZ(e,t){return e=QJ(e),t=XJ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,eZ(e)}function nZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return eZ(e)}function oZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return eZ(e)}var iZ,aZ,sZ,lZ={},uZ={exports:{}},cZ={exports:{}},dZ={exports:{}};function pZ(){return iZ||(iZ=1,function(e){var t=HJ.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(dZ)),dZ.exports}function fZ(){return aZ||(aZ=1,function(e){var t=HJ.default,r=pZ();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(cZ)),cZ.exports}function hZ(){return sZ||(sZ=1,function(e){var t=fZ();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(uZ)),uZ.exports}var mZ,gZ={exports:{}};function bZ(){return mZ||(mZ=1,function(e){var t=eO();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(gZ)),gZ.exports}var vZ,yZ={};var xZ,SZ={};var wZ,CZ={},EZ={};var RZ,MZ={};var AZ,IZ={};var kZ,LZ={};var PZ,DZ={};var _Z,OZ={};var TZ,qZ={};var jZ,NZ,FZ={};function zZ(){if(NZ)return CZ;NZ=1;var e=s_;Object.defineProperty(CZ,"__esModule",{value:!0}),CZ.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,M=e.success,A=void 0===M?{light:d.default[300],main:d.default[500],dark:d.default[700]}:M,I=e.type,k=void 0===I?"light":I,L=e.contrastThreshold,P=void 0===L?3:L,D=e.tonalOffset,_=void 0===D?.2:D,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=P?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,_),m(e,"dark",i,_),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(C),info:q(R),success:q(A),grey:i.default,contrastThreshold:P,getContrastText:T,augmentColor:q,tonalOffset:_},j[k]),O);return N},CZ.dark=CZ.light=void 0;var t=e(J_()),r=e(bZ()),n=YJ,o=e(function(){if(wZ)return EZ;wZ=1,Object.defineProperty(EZ,"__esModule",{value:!0}),EZ.default=void 0;var e={black:"#000",white:"#fff"};return EZ.default=e,EZ}()),i=e(function(){if(RZ)return MZ;RZ=1,Object.defineProperty(MZ,"__esModule",{value:!0}),MZ.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return MZ.default=e,MZ}()),a=e(function(){if(AZ)return IZ;AZ=1,Object.defineProperty(IZ,"__esModule",{value:!0}),IZ.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return IZ.default=e,IZ}()),s=e(function(){if(kZ)return LZ;kZ=1,Object.defineProperty(LZ,"__esModule",{value:!0}),LZ.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return LZ.default=e,LZ}()),l=e(function(){if(PZ)return DZ;PZ=1,Object.defineProperty(DZ,"__esModule",{value:!0}),DZ.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return DZ.default=e,DZ}()),u=e(function(){if(_Z)return OZ;_Z=1,Object.defineProperty(OZ,"__esModule",{value:!0}),OZ.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return OZ.default=e,OZ}()),c=e(function(){if(TZ)return qZ;TZ=1,Object.defineProperty(qZ,"__esModule",{value:!0}),qZ.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return qZ.default=e,qZ}()),d=e(function(){if(jZ)return FZ;jZ=1,Object.defineProperty(FZ,"__esModule",{value:!0}),FZ.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return FZ.default=e,FZ}()),p=UJ,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};CZ.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return CZ.dark=h,CZ}var $Z,WZ={};var BZ,GZ={};var HZ,VZ={};var UZ,YZ={},KZ=qe(dm);var XZ,JZ={};function ZZ(){if(XZ)return JZ;XZ=1;var e=s_;Object.defineProperty(JZ,"__esModule",{value:!0}),JZ.default=JZ.duration=JZ.easing=void 0;var t=e(bZ()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};JZ.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}JZ.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return JZ.default=i,JZ}var QZ,eQ,tQ={};function rQ(){if(eQ)return lZ;eQ=1;var e=s_;Object.defineProperty(lZ,"__esModule",{value:!0}),lZ.createMuiTheme=function(){return p.apply(void 0,arguments)},lZ.default=void 0,e(hZ());var t=e(bZ()),r=YJ,n=e(function(){if(vZ)return yZ;vZ=1;var e=s_;Object.defineProperty(yZ,"__esModule",{value:!0}),yZ.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},yZ.keys=void 0;var t=e(J_()),r=e(bZ()),n=["xs","sm","md","lg","xl"];return yZ.keys=n,yZ}()),o=e(function(){if(xZ)return SZ;xZ=1;var e=s_;Object.defineProperty(SZ,"__esModule",{value:!0}),SZ.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(hZ()),r=e(J_());return SZ}()),i=e(zZ()),a=e(function(){if($Z)return WZ;$Z=1;var e=s_;Object.defineProperty(WZ,"__esModule",{value:!0}),WZ.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,M=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},k=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},L),M,{clone:!1})};var t=e(J_()),r=e(bZ()),n=YJ;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return WZ}()),s=e(function(){if(BZ)return GZ;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}BZ=1,Object.defineProperty(GZ,"__esModule",{value:!0}),GZ.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return GZ.default=t,GZ}()),l=e(function(){if(HZ)return VZ;HZ=1,Object.defineProperty(VZ,"__esModule",{value:!0}),VZ.default=void 0;var e={borderRadius:4};return VZ.default=e,VZ}()),u=e(function(){if(UZ)return YZ;UZ=1,Object.defineProperty(YZ,"__esModule",{value:!0}),YZ.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=KZ;return YZ}()),c=e(ZZ()),d=e(function(){if(QZ)return tQ;QZ=1,Object.defineProperty(tQ,"__esModule",{value:!0}),tQ.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return tQ.default=e,tQ}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),M=arguments.length,A=new Array(M>1?M-1:0),I=1;I<M;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return lZ.default=f,lZ}var nQ,oQ={};var iQ,aQ={},sQ=qe(uy);var lQ,uQ,cQ={},dQ={};function pQ(){if(lQ)return dQ;lQ=1;var e=s_;Object.defineProperty(dQ,"__esModule",{value:!0}),dQ.default=void 0;var t=(0,e(rQ()).default)();return dQ.default=t,dQ}var fQ,hQ,mQ={},gQ={};function bQ(){if(hQ)return mQ;hQ=1;var e=s_;Object.defineProperty(mQ,"__esModule",{value:!0}),mQ.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(J_()),r=YJ,n=function(){if(fQ)return gQ;fQ=1;var e=s_;Object.defineProperty(gQ,"__esModule",{value:!0}),gQ.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gQ.getUnit=r,gQ.toUnitless=n,gQ.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},gQ.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gQ.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gQ.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(hZ());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gQ}();return mQ}var vQ,yQ={};var xQ,SQ={};var wQ,CQ={};var EQ,RQ={};!function(e){var t=s_,n=VJ;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=UJ;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=n(rQ()),s=t(function(){if(nQ)return oQ;nQ=1;var e=s_;Object.defineProperty(oQ,"__esModule",{value:!0}),oQ.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=YJ,r=e(rQ());return oQ}()),l=t(function(){if(iQ)return aQ;iQ=1,Object.defineProperty(aQ,"__esModule",{value:!0}),aQ.default=function(t){return(0,e.createStyles)(t)};var e=sQ;return aQ}()),u=t(function(){if(uQ)return cQ;uQ=1;var e=s_;Object.defineProperty(cQ,"__esModule",{value:!0}),cQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return cQ.default=o,cQ}()),c=t(bQ()),d=t(function(){if(vQ)return yQ;vQ=1;var e=s_;Object.defineProperty(yQ,"__esModule",{value:!0}),yQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yQ.default=o,yQ}()),p=ZZ();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(xQ)return SQ;xQ=1;var e=s_;Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.default=function(){return(0,t.useTheme)()||n.default};var t=sQ;e(r);var n=e(pQ());return SQ}()),h=t(function(){if(wQ)return CQ;wQ=1;var e=s_;Object.defineProperty(CQ,"__esModule",{value:!0}),CQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CQ.default=o,CQ}()),m=t(function(){if(EQ)return RQ;EQ=1;var e=s_;Object.defineProperty(RQ,"__esModule",{value:!0}),RQ.default=void 0;var t=sQ,r=e(pQ()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RQ.default=n,RQ}()),g=sQ}(WJ),WJ.alpha(gJ.GREYSCALE_0,.05),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5);function MQ(e){const t=((e="light",t=!1)=>$J(e,t))();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),H_({...t,direction:e})}var AQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(AQ||{}),IQ=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(IQ||{}),kQ=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(kQ||{}),LQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(LQ||{});const PQ=e=>e?`${parseInt(e,10)}px`:void 0,DQ=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?oB.Transparent:r}},_Q=(e,t)=>+(parseInt(e,10)*nB*t+8).toFixed(2),OQ=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?tB:"normal",TQ=e=>e?.some((e=>"italic"===e))?"italic":"normal",qQ=e=>e?.some((e=>"underline"===e))?"underline":"none",jQ=document.createElement("textarea");function NQ(e){jQ.value=e,document.body.appendChild(jQ),jQ.select(),jQ.setSelectionRange(0,jQ.value.length),document.execCommand("copy"),document.body.removeChild(jQ)}jQ.style.position="absolute",jQ.style.left="-9999px",jQ.setAttribute("readonly","");function FQ(e){O?.(((t,r)=>{const n=r.target,o=n?.closest(`.${oN}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{NQ(t)})):NQ(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const zQ=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>EB(((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(SH,0,0,!0),await e.expandLeft(SH,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:CX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:xX.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(SH,0,0,!0),await e.collapseLeft(SH,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:CX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:xX.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),$Q=(e,t)=>A((()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,rB),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(wH),h=new Map(i.map((e=>[s[e]??wH,e]))),m=a.filter((e=>7005!==e.qError?.qErrorCode));return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex((e=>e===m[r]))},getDimensionInfo:e=>e===wH?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:uN.Auto,pixels:lN.PixelsDefault,percentage:lN.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),WQ=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=MB(e);return t.current=e,t})(JV(o));return _B((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(rB,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(SH,ZV(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},BQ=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),GQ=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:BQ({rowsPerPage:r,totalRowCount:e,page:t})}),HQ=15,VQ=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>(T((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-HQ,0),u=Math.max(s+o-HQ,s,0),c=rB-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=JV(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=ZV(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(SH,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),q((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),e.layout.snapshotData?.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r);var UQ={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const YQ=()=>{const e=j(),t=e.language();return A((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(UQ).forEach((t=>{e.add(UQ[t])}))}(e)}),[e]),{translator:e,language:t}},KQ=e=>{const{flags:t}=e,n=N(),o=(e=>{const t=A((()=>jB(e)),[e]);return P((()=>()=>{t.unmount()}),[t]),t})(n),i=F(),a=z(),s=$(),l=W(),u=B(),c=AB(),d=((e,t)=>{const[r]=_B((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return A((()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias))??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}}),[r])})(a,i),p=$Q(i,t),f=(e=>{const t=_();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=G(),m=DB(i,n),{translator:g,language:b}=YQ(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=L((()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...GQ(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return P((()=>{s((t=>({...t,...GQ(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),P((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=BQ({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:BQ({...a,...e})})}}})(p,c),x=((e,t,r)=>A((()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,i,c),S=VQ({rect:H(),layoutService:p,viewService:x,model:a,pageInfo:v}),[w,C]=WQ({model:a,layoutService:p,viewService:x,pageInfo:v,rect:S}),E=A((()=>((e,t)=>{const r=t.layout.components?.find((e=>"theme"===e.key)),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[AQ.LineClamp]??c(IQ.Grid,kQ.Grid,LQ.LineClamp)??1),p=+(u?.[AQ.ColumnLineClamp]??c(IQ.Grid,kQ.Grid,LQ.ColumnLineClamp)??1),f=DQ(e,n?.[AQ.Background])??c(IQ.Dimension,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent,h={header:{fontSize:PQ(n?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelName,LQ.FontSize)??QW,fontFamily:n?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelName,LQ.FontFamily)??eB,fontWeight:OQ(n?.[AQ.FontStyle],tB),fontStyle:TQ(n?.[AQ.FontStyle]),textDecoration:qQ(n?.[AQ.FontStyle]),color:DQ(e,n?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelName,LQ.FontColor)??p$.TEXT,background:f,hoverBackground:WW(f,cN),activeBackground:WW(f,dN)},dimensionValues:{fontSize:PQ(o?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:o?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(o?.[AQ.FontStyle],void 0),fontStyle:TQ(o?.[AQ.FontStyle]),textDecoration:qQ(o?.[AQ.FontStyle]),color:DQ(e,o?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,o?.[AQ.Background])??c(IQ.Dimension,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureValues:{fontSize:PQ(i?.[AQ.FontSize])??c(IQ.Measure,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:i?.[AQ.FontFamily]??c(IQ.Measure,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(i?.[AQ.FontStyle],"normal"),fontStyle:TQ(i?.[AQ.FontStyle]),textDecoration:qQ(i?.[AQ.FontStyle]),color:DQ(e,i?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelValue,LQ.FontColor)??oB.FontSecondary,background:DQ(e,i?.[AQ.Background])??c(IQ.Measure,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureLabels:{fontWeight:OQ(a?.[AQ.FontStyle],"normal"),fontStyle:TQ(a?.[AQ.FontStyle]),textDecoration:qQ(a?.[AQ.FontStyle]),color:DQ(e,a?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelName,LQ.FontColor)??oB.FontSecondary,background:DQ(e,a?.[AQ.Background])??c(IQ.Measure,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent},totalValues:{fontWeight:OQ(s?.[AQ.FontStyle],tB),fontStyle:TQ(s?.[AQ.FontStyle]),textDecoration:qQ(s?.[AQ.FontStyle]),color:DQ(e,s?.[AQ.FontColor])??c(IQ.Total,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,s?.[AQ.Background])??c(IQ.Total,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},nullValues:{fontWeight:OQ(l?.[AQ.FontStyle],"normal"),fontStyle:TQ(l?.[AQ.FontStyle]),textDecoration:qQ(l?.[AQ.FontStyle]),color:DQ(e,l?.[AQ.FontColor])??c(IQ.Null,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,l?.[AQ.Background])??c(IQ.Null,kQ.LabelValue,LQ.BackgroundColor)??oB.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:DQ(e,u?.[AQ.Border])??c(IQ.Grid,kQ.Grid,LQ.BorderColor)??oB.DividerLight,divider:DQ(e,u?.[AQ.Divider])??c(IQ.Grid,kQ.Divider,LQ.BorderColor)??oB.DividerDark,background:DQ(e,u?.[AQ.Background])??c(IQ.Grid,kQ.Grid,LQ.BackgroundColor)??oB.Transparent},selectedColors:$W(e)};return h.headerCellHeight=Math.max(_Q(h.header.fontSize,p),_Q(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(_Q(h.measureValues.fontSize,d),_Q(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=_Q(h.dimensionValues.fontSize,1),h})(m,p)),[m,p]),R=((e,t,r)=>{const[,n,o]=_B((async()=>{const t=D$(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,FB].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,i,e),M=I(),k=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?M.direction:"ltr";FQ([zQ({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),P((()=>{!C&&a&&!!w&&R&&((e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=MQ(n.direction);e.render(Zo.jsx(r.StrictMode,{children:Zo.jsx(RO,{theme:a,children:Zo.jsx(gH,{...i,children:Zo.jsx(fH,{...n,children:Zo.jsx(vK,{selections:t,children:Zo.jsx(yH,{...o,children:Zo.jsx(oU,{children:Zo.jsx(mJ,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:S,pageInfo:v,qPivotDataPages:w,updatePageInfo:y,direction:k},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,S,f,h,x,p,c,C,w,E,o,R,g,b,v,y,d,l,u,m,e,k])},XQ={version:"6.0.21",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},JQ=()=>({...XQ,qHyperCubeDef:{...XQ.qHyperCubeDef,qIndentMode:!1}})}}}));
|
|
102
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,p):"";if(r=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,b=0;b<p;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},dq({exports:{}});const Eq="qHyperCubeDef.qDimensions",Iq="dimensions",Dq="qOtherTotalSpec.qTotalMode",Mq="totalMode",Pq={quarantine(e){ET.quarantineArrayProp({properties:e,arrayPath:Eq,quarantineName:Mq,arrayName:Iq,itemPath:Dq})},unquarantine(e){ET.unquarantineArrayProp({properties:e,arrayPath:Eq,quarantineName:Mq,arrayName:Iq,itemPath:Dq})}};function Rq(e){const t=Cq(e);return(e,r,n,o)=>{const i=ET.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,u=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&fq(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],fq(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&fq(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(ET.unquarantineProperty(i.qProperty,"noOfLeftDims"),ET.unquarantineProperty(i.qProperty,"exludedNoOfLeftDims"))}return ET.conditionalShow.unquarantine(i.qProperty),Pq.unquarantine(i.qProperty),qT(i.qProperty),ET.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function Lq(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=ET.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;fq(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),ET.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,fq(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),fq(i,"data.0.interColumnSortOrder",u),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return ET.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),ET.quarantineProperty(i.properties,"qHyperCubeDef.exludedNoOfLeftDims","exludedNoOfLeftDims"),ET.conditionalShow.quarantine(i.properties),Pq.quarantine(i.properties),_T(i.properties),i}const Aq={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let kq=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),Tq=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Oq=e=>{switch(e?.type){case"url":return kq.Link;case"image":return kq.Image;case"indicator":return kq.Indicator;case"miniChart":return kq.MiniChart;default:return kq.Text}},qq=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),_q=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Oq(e.qDef.representation)===kq.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},jq=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:qq({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Oq(e.qDef.representation)===kq.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Oq(e.qDef.representation)===kq.Link&&e.qDef.representation?.urlPosition===Tq.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Oq(e.qDef.representation)===kq.Link&&e.qDef.representation?.urlPosition===Tq.Attribute},..._q(r)}},Nq=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[kq.Image],i=!n?.("qMiniChartDef")&&t[kq.MiniChart],a=!n?.("tableIndicators")&&t[kq.Indicator],s=o&&t[kq.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>Oq(e.qDef.representation)===kq.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let Fq=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),zq=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),Wq=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),$q=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const Hq="image",Vq=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},Bq=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zk.Auto,translation:"Common.Auto"},{value:zk.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:zk.Pixels,translation:"Object.Table.Column.Pixels"},{value:zk.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zk.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Fk.PixelsDefault,show:e=>e.qDef.columnWidth?.type===zk.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Fk.PercentageDefault,show:e=>e.qDef.columnWidth?.type===zk.Percentage}}),Gq=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==Hq},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==Hq)}}},Uq="TOTAL_OFF",Yq={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:zq.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:zq.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Kq="TOTAL_OFF",Xq={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:zq.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:zq.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:zq.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Jq=e=>{const{translator:t,anything:r,flags:n}=e,o=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Uq,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Uq,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&Vq},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==Uq&&Vq(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Yq,...Gq({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Gq({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jq(e),...Bq()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Yq,...Gq({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Gq({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Nq(e,{[kq.Image]:!0,[kq.Indicator]:!0}),...Bq()}}}}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?o:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Kq,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Kq,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&Vq},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==Kq&&Vq(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Xq,...Gq({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Gq({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jq(e),...Bq()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Xq,...Gq({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Gq({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Nq(e,{[kq.Image]:!0,[kq.ImagesInIndentMode]:!0,[kq.Indicator]:!0}),...Bq()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},Zq=ox().palette,Qq={TEXT:Zq.text.primary,DISABLED:Zq.text.disabled,HOVER:Zq.action.hover,WHITE:kp.GREYSCALE_100,BORDER_MEDIUM:kp.GREYSCALE_85,DARK_MODE_TEXT:kp.GREYSCALE_95,DARK_MODE_BORDER:kp.GREYSCALE_95,DARK_MODE_DISABLED:kp.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:Zq.primary.main,LINK:Zq.info.main},e_=(e,t=Qq.TEXT,r=Qq.WHITE)=>{const n=XT(e),o=XT(t),i=XT(r);return n.isInvalid()?t:function(e,t,r){const n=JT(e,t),o=JT(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},t_=e=>{const t=e.getStyle("","","dataColors.selected")||Qq.SELECTED,r=function(e,t){const r=XT("#FFFFFF"),n=XT(e),o=XT(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=JT(r,n),a=JT(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,Qq.TEXT);return{background:t,color:r}},r_=(e,t)=>{const r=XT(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},n_=e=>{const t=XT(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},o_=e=>{e.stopPropagation(),e.preventDefault()},i_=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),a_=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},s_=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>a_(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...pO(n).filter(e=>!a.includes(e)).map(e=>a_(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),l_=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],u_=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>a_(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...l_.filter(e=>!i.includes(e)).map(e=>a_(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),c_=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:s_({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:u_({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:i_(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:i_(`${e}.background`,"properties.background",(t,r)=>{const n=r?Qq.WHITE:Qq.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),d_=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:i_(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:i_(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),p_=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),f_="12px",h_="Source Sans Pro, sans-serif",m_="600",g_=15e3,v_=4/3;let y_=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),b_=function(e){return e.Solid="solid",e.None="none",e}({});const x_={borderStyle:"solid"},S_={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},w_={lineHeight:v_,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},C_=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),E_=(e,t)=>e>0?`${e}px ${b_.Solid} ${t}`:b_.None,I_=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?E_(i,r):b_.None,borderBottom:E_(a,r),borderLeft:"rtl"===n?E_(i,r):b_.None,borderTop:b_.None}},D_=(e,t,r,n,o,i,a)=>{const s=I_(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=E_(2,o)),r||(s.borderLeft="rtl"!==i?E_(1,o):"none",s.borderRight="rtl"===i?E_(1,o):"none")),s},M_=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=E_(1,r)),t&&(n.borderRight=E_(1,r)),n},P_=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},R_=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:c_({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:P_}),dimensionValueSection:c_({section:"dimensionValues",translator:e,flags:t,getThemeValue:P_}),measureValueSection:c_({section:"measureValues",translator:e,flags:t,getThemeValue:P_}),measureLabelSection:d_({section:"measureLabels",getThemeValue:P_}),totalValuesSection:d_({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:P_}),nullValuesSection:d_({section:"nullValues",fallbackBackground:y_.NullValueBackground,getThemeValue:P_}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:p_("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:p_("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:i_("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??y_.DividerLight),divider:i_("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??y_.DividerDark),background:i_("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??y_.Transparent)}}}}}}]}),L_=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},A_=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[R_(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:zk.Auto,translation:"Common.Auto"},{value:zk.Pixels,translation:"Object.Table.Column.Pixels"},{value:zk.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:zk.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Fk.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===zk.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:Fk.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===zk.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some(e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode)}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...L_(t)}}),k_="auto",T_={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:k_,translation:"Object.Table.SortingInSearch",options:[{value:k_,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function O_(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Jq(e),sorting:T_,addons:Aq,settings:A_(t,r)}}}function q_(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:O_(e),importProperties:Rq(e),exportProperties:Lq,exploration:xT(e)}}const __=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function j_(e,t){return M(()=>e,t)}const N_={},F_=e=>{const t=M(()=>({current:N_}),[]);return t.current=t.current===N_?e:t.current,t},z_=e=>!!e&&0===XT(e).a,W_="#grid",$_=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},H_=(e,t,r,n,o)=>{const i=$_(".qv-object .qv-inner-object",r),a=$_(".qv-panel-sheet",r),s=$_(W_,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return n_(r);if("none"===n)return"transparent";if(void 0===n)return;const i=XT(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=z_(d),f=!z_(h=p?s:d)&&e_(h,Qq.TEXT,Qq.DARK_MODE_TEXT)===VT(Qq.DARK_MODE_TEXT);var h;const m=((e,t,r,n=Qq.WHITE)=>e&&!z_(e)?e:z_(t)?r&&!z_(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},V_=(e,t,r,n)=>{const o=k(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=L([]);return A(()=>{let r;return e&&(r=new MutationObserver(e=>{n(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(t.closest(W_),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return M(()=>({...o,background:H_(e,o,t,r,n)}),[o.name(),t,r,n,e,i])};function B_(e,t){const r=M(()=>({isLoading:!0}),t),[n,o]=R(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[n,r.isLoading,o]}const G_=3;function U_(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function Y_({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=G_}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g(()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=hq(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=hq(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=U_(o,t,s)}while(null!==o&&n<i);return n},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}},[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var K_,X_={};var J_=function(){if(K_)return X_;K_=1;var e=C;return X_.createRoot=e.createRoot,X_.hydrateRoot=e.hydrateRoot,X_}();const Z_="Source Sans Pro, sans-serif";function Q_(e,t){const[r,n]=v(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var ej={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const tj=({translator:e})=>(g(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ej).forEach(t=>{e.add(ej[t])})}}(e)},[e]),e),rj={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},nj={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},oj=ys("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...rj},"&::-moz-range-track":{...rj},"&::-ms-track":{...rj},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...nj},"&::-moz-range-thumb":{...nj},"&::-ms-thumb":{...nj},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),ij=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=tj({translator:d.translator}),h=u({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,v=()=>g?h.current.columnWidth-m:"100%",y={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},b=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};Q_(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,Fk.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:zk.Pixels,pixels:h.current.columnWidth};a(e)}else l?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{o_(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},I=e=>{o_(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===jk.Left||e.key===jk.Right){o_(e);const t=5,r=e.key===jk.Left?t:-t,n="rtl"===p?r:-r;x(h.current.columnWidth+n)}else e.key===jk.Space||e.key===jk.Enter?(o_(e),s(e),S()):e.key===jk.Esc&&(o_(e),s(e),x(h.current.initWidth))}:void 0,M=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Zo.jsx(oj,{style:y,hoverColor:o,isLastColumn:r,className:Nk,"data-testid":Nk,onMouseDown:e=>{o_(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:zk.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(o_(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),l?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":M,"aria-valuemin":Fk.PixelsMin,"aria-valuemax":Fk.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},aj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),sj=ys(ou,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})(({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"})),lj=ys(aj,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),uj=ys(bd)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),cj=ys(Zu)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),dj=ys(Ed)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),pj=ys(Ed,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),fj=ys("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),hj=ys("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),mj=ys(xl)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),gj=ys(Gc,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),vj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m9.001 8.001-2.86 2.858a.2.2 0 0 0 0 .283l.719.717a.2.2 0 0 0 .282 0L10.001 9l.858-.859a.2.2 0 0 0 0-.282L10 7 7.142 4.141a.2.2 0 0 0-.282 0l-.718.718a.2.2 0 0 0 0 .282z"})})),yj=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?yj(t):t:e.parentElement?.children?.[0]},bj=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?bj(t):t},xj=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===jk.Down||t===jk.Up){const r=e=>t===jk.Down?yj(e):bj(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},Sj=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let wj={};const Cj=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:d})=>{const[p,f]=v(!1),m=u(null),g=h(e=>{e.stopPropagation(),f(!1)},[f]);return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(pj,{ref:a?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),wj={}),a?.length&&(f(!0),wj[n]=f))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:xj,children:[l?Zo.jsx(fj,{direction:c,isPagination:d}):null,Zo.jsxs(hj,{children:[Zo.jsx(gj,{direction:c,isPagination:d,children:Zo.jsx(o,{})}),Zo.jsx(mj,{variant:"body2",children:n})]}),a?.length?Zo.jsx(vj,{}):null]},t),a?.length?Zo.jsx(Mj,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:Sj(a,wj),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},Ej=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&Zo.jsx(dj,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Zo.jsx(Cj,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),Ij=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[Ej({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Zo.jsx(cj,{"data-testid":"group-divider",variant:"middle"}):void 0]),Dj={appear:0,enter:0,exit:0},Mj=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Zo.jsx(uj,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:Dj,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Ij({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,Pj=(e,t)=>e.some(e=>t[e]>0),Rj={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Lj=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=v(null),[a,s]=v(Rj);return Q_(()=>{e||(s(Rj),i(null))},[e]),p(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:Pj(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Pj(["qSelected"],e),canSelectPossible:Pj(["qOption"],e),canSelectAlternative:Pj(["qAlternative"],e),canSelectExcluded:Pj(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Aj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),kj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})})),Tj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),Oj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),qj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),_j=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),jj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),Nj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),Fj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),zj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),Wj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),$j=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),Hj=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let Vj=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Bj="/qListObjectDef",Gj=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[Vj.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:Aj,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:Oj,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:jj,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:rT,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const e=[];r[Vj.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Nj,enabled:!0}]}]),r[Vj.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Hj,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(Bj))},icon:Fj,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(Bj))},icon:$j,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(Bj))},icon:zj,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(Bj))},icon:Wj,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(Bj))},icon:kj,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:_j,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:qj,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[Vj.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Tj,enabled:!0}]}]),f},Uj=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y})=>{const b=u(null),x=tj({translator:o}),{qLibraryId:S,fieldId:w,headTextAlign:C}=n,E=d?.app,{fieldInstance:I,selectionActionsEnabledStatus:D}=Lj({open:e,headerData:n,app:E,qStateName:d?.qStateName});let M=null;if(m&&"setActiveField"in m&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;M=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const P=h(()=>{const e=S?{qLibraryId:S,type:"dimension"}:w;if(c?.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:d?.qStateName,direction:g})}},[S,w,c,d?.qStateName,g]),R=h(e=>{e.stopPropagation(),t(!1)},[t]),L=h(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Zo.jsxs(sj,{rightAligned:"right"===C,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?L:void 0,ref:b,children:[s?Zo.jsx(lj,{height:Tk,className:Ok,"data-testid":Ok,isInteractionsActive:i.active??!1,children:Zo.jsx(aj,{})}):null,Zo.jsx(Mj,{open:e,anchorEl:!1===y?b.current:r.current,onClose:R,menuGroups:Gj({headerData:n,translator:x,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:I,selectionActionsEnabledStatus:D,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:f}),direction:g,isPagination:v})]}):null},Yj=e=>e.isDark?{background:e.color,borderColor:Qq.DARK_MODE_BORDER,color:Qq.DARK_MODE_TEXT,disabledColor:Qq.DARK_MODE_DISABLED,iconColor:Qq.DARK_MODE_TEXT}:{background:e.color,borderColor:Qq.BORDER_MEDIUM,color:Qq.TEXT,disabledColor:Qq.DISABLED},Kj=ys(ou,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`})),Xj=ys(op,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),Jj=ys(hu,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),Zj=ys(xl)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),Qj=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g(()=>Yj(n.background),[n]);if(!r.active)return null;const a=o?Zo.jsx(Kj,{footerStyle:i,children:e}):null;return t?C.createPortal(e,t):a},eN=c({}),tN=()=>n(eN),rN=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,y=g(()=>Yj(p.background),[p]),b=o?o.getBoundingClientRect().width:h.width,x=tj({translator:d}),S=g(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:y,tabIndex:v,width:b}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,y,v,b]);return Zo.jsx(eN.Provider,{value:S,children:e})};let nN=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),oN=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const iN=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m6.999 8.001 2.86 2.858a.2.2 0 0 1 0 .283l-.719.717a.2.2 0 0 1-.282 0L5.999 9l-.858-.859a.2.2 0 0 1 0-.282L6 7l2.859-2.859a.2.2 0 0 1 .282 0l.718.718a.2.2 0 0 1 0 .282z"})})),aN=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),sN=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),lN={FirstPage:aN,PreviousPage:iN,NextPage:vj,LastPage:sN,FirstPageRTL:sN,PreviousPageRTL:vj,NextPageRTL:iN,LastPageRTL:aN},uN=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=tN(),u=r.concat("rtl"===n?"RTL":""),c=lN[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},cN=()=>{const{pageInfo:e,width:t,interactions:r}=tN(),n=0===e.page,{IconComponent:o,styledProps:i}=uN({type:nN.FirstPage,disabledCondition:n,pageNumber:0});return t<=oN.FirstPage?null:Zo.jsx(Jj,{...i,disabled:!r.active,children:Zo.jsx(o,{height:Tk})})},dN=(e,t,r=!1)=>{r&&e.key===jk.Tab&&!e.shiftKey&&(o_(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},pN=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=tN(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=uN({type:nN.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{dN(e,t,n)}:void 0;return o<=oN.LastPage?null:Zo.jsx(Jj,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:Tk})})},fN=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=tN(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=uN({type:nN.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>oN.FirstPage&&o>oN.LastPage)&&t.enabled?e=>{dN(e,t,n)}:void 0;return Zo.jsx(Jj,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:Tk})})},hN=()=>{const{pageInfo:e,interactions:t}=tN(),r=0===e.page,{IconComponent:n,styledProps:o}=uN({type:nN.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Zo.jsx(Jj,{...o,disabled:!t.active,children:Zo.jsx(n,{height:Tk})})},mN=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=tN(),{page:o,rowsPerPage:i}=r;if(t<=oN.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Zo.jsx(Zj,{variant:"caption",dir:"ltr",children:a})},gN=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=tN(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(Zj,{variant:"caption",id:p,children:[c,":"]}),Zo.jsx(Xj,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},vN=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=tN();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>oN.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Zo.jsx(Zo.Fragment,{children:e.rowsPerPageOptions.map(e=>Zo.jsx("option",{value:e,children:e},e))});return Zo.jsx(gN,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},yN=1e3,bN="…",xN=({totalPages:e,page:t})=>{const r=Math.min(e,yN),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-yN):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return Zo.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Zo.jsx("option",{value:bN,disabled:!0,children:bN},"startMoreOptions")),o<e-1&&a.push(Zo.jsx("option",{value:bN,disabled:!0,children:bN},"endMoreOptions")),Zo.jsx(Zo.Fragment,{children:a})},SN=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=tN(),{page:o}=e;if(t<=oN.SelectPage)return null;const i=Zo.jsx(xN,{totalPages:r,page:o});return Zo.jsx(gN,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var wN=b(e=>Zo.jsxs(rN,{...e,children:[Zo.jsx(vN,{}),Zo.jsx(SN,{}),Zo.jsx(mN,{}),Zo.jsx(cN,{}),Zo.jsx(hN,{}),Zo.jsx(fN,{}),Zo.jsx(pN,{})]}));const CN=e=>Zo.jsx(Qj,{...e,children:Zo.jsx(wN,{...e})}),EN=c({}),IN=()=>n(EN),DN=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=g(()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o}),[e,t,r,n,o]);return Zo.jsx(EN.Provider,{value:a,children:i})},MN=c({}),PN=()=>n(MN),RN=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=g(()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i}),[e,a,t,n,r,o,s,i]);return Zo.jsx(MN.Provider,{value:u,children:l})},LN=c({}),AN=()=>n(LN),kN=({children:e,...t})=>Zo.jsx(LN.Provider,{value:t,children:e}),TN=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=PN(),{layoutService:r}=AN(),n=e.getStyle("","","fontFamily")??h_;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Zo.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Zo.jsx("span",{style:{...w_,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},ON="/qHyperCubeDef",qN=-1,_N="PSEUDO-DIM",jN=[];for(let e=0;e<256;++e)jN.push((e+256).toString(16).slice(1));let NN;const FN=new Uint8Array(16);var zN={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function WN(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!NN){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");NN=crypto.getRandomValues.bind(crypto)}return NN(FN)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(jN[e[t+0]]+jN[e[t+1]]+jN[e[t+2]]+jN[e[t+3]]+"-"+jN[e[t+4]]+jN[e[t+5]]+"-"+jN[e[t+6]]+jN[e[t+7]]+"-"+jN[e[t+8]]+jN[e[t+9]]+"-"+jN[e[t+10]]+jN[e[t+11]]+jN[e[t+12]]+jN[e[t+13]]+jN[e[t+14]]+jN[e[t+15]]).toLowerCase()}(n)}const $N=()=>crypto?.randomUUID?.()??function(e){return zN.randomUUID&&!e?zN.randomUUID():WN(e)}(),HN=e=>e===qN?_N:(({qLibraryId:e,cId:t})=>e??t??$N())(e),VN=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===qN?r.columnWidthLocation=Fq.Measures:r.isLeftDimension?r.columnWidthLocation=Fq.Dimension:t.at(-1)===qN?r.columnWidthLocation=Fq.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Fq.Pivot))},BN=(e,t,r,n)=>{const o=HN(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===qN?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Fq.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===Hk.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Fq.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},GN=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===qN?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return r.forEach((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=BN(e,t,r,i)}),o.forEach((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=BN(e,t,r,i)}),l},UN=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(qN)?GN({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map((t,r)=>e.map(e=>e[r])))(GN({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach((t,r)=>{Array.isArray(t)?t.forEach((t,r)=>{VN({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}):VN({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};var YN={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:XN(e),value:XN(t),useEqualSign:r}}(n,o,i))}),t}},KN=YN;function XN(e){try{return decodeURIComponent(e)}catch{return e}}function JN(e){if(!(this instanceof JN))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>KN.fromSearchString(t.search)}})}function ZN(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}JN.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},JN.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=ZN(t.key),t.value?r+=`=${ZN(t.value)}`:r+=t.useEqualSign?"=":"";return r};var QN=JN;var eF,tF=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},rF=class{decode(e){let t="";const r=new tF(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},nF=e=>e>=0&&e<=1114111,oF=e=>e.match(/[\s]/),iF=class extends rF{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!oF(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return nF(a)?String.fromCharCode(a):"�"}},aF=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},sF=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return aF.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return aF.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||aF.newInstanceIfNeeded(e,t,this._value)}},lF=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new sF);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},uF=(()=>{const e=[],t=[],r=new lF;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),cF=class extends rF{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,uF.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=uF.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&nF(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&nF(n)?String.fromCharCode(n):null}},dF=class extends rF{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),nF(i))?String.fromCharCode(i):(e.reset(),null)}},pF=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,fF=5e6,hF=5e5,mF=(e,t)=>{const{maxByteSizeSvg:r=hF,maxByteSizeImage:n=fF}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=pF.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(eF=document.createElement("div"));var gF=Array.prototype.indexOf,vF=[",",".","_"," "],yF=[",",".","-","_"," "],bF={width:["%"],height:["%"]},xF={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},SF={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":xF.image,"background-color":xF.color,"border-color":xF.color,"border-image":xF.image,color:xF.color,icon:xF.image,"list-style-image":xF.image,"outline-color":xF.color},wF={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function CF(e,t,r){let n;if(t){if(gF)return gF.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function EF(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return eF.appendChild(r),t=eF.innerHTML,eF.removeChild(r),t}function IF(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=MF(e).toLowerCase(),t=MF(t),i=0;i<wF.attr_name.length;i++)if(e.match(wF.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<wF.attr_val.length;i++)if(t.toLowerCase().match(wF.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=bF[e],n||(n=yF),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&CF(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function DF(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=MF(e).toLowerCase(),t=MF(t),CF(e,wF.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<wF.css_val.length;n++)if(t.toLowerCase().indexOf(wF.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=SF[e],o||(o=xF.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&CF(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function MF(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new cF,new dF,new iF];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var PF=[];for(let e=0;e<255;e++)PF[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var RF={html:e=>EF(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=DF(t,r[t],!0),i+=DF(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=IF(e,t[e],!0),o+=IF(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function LF(e,t){throw new Error(t)}var AF={canonicalize:MF,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?RF.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&LF(this,"Invalid parameter type"),RF.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&LF(this,"Invalid parameter type"),RF.attr(e)):void LF(this,"Invalid parameter type")},encodeForAttr:IF,encodeForAttr2:function(e){return IF("nonsens",e,!0)},encodeForCSS:DF,encodeForHref:function(e){MF(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new QN(e),r=QN.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+QN.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=vF),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),CF(o,t)>=0||null==PF[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:EF,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=MF(t).toLowerCase():LF(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:mF,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const kF=(e,t)=>t.qAttrExps?.qValues?.[e],TF=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},OF=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&AF.isSafeDataURL(t)?{type:kq.Image,url:t,text:e,imageSize:r,resolvedImagePosition:TF(n,a),labelStructure:o,imageBox:i}:{type:kq.Text,url:void 0,text:e,labelStructure:o},qF=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:kq.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:kq.MiniChart,text:n,miniChart:a}},_F=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===Tq.Attribute?void 0:r?.urlLabel},jF=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:kq.Link,url:AF.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:kq.Text,url:void 0,text:t,labelStructure:e}}},NF=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=Oq(t),d=s(e);return c===kq.Image&&u[kq.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=kF(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),OF({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return OF({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kF(r.imageLabel??-1,e)?.qText??n;return OF({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:kq.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===kq.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===Tq.Attribute){const i=_F(r.url??-1,e,t);return jF({labelStructure:n,text:o||i||"",url:i})}if(i===Tq.Dimension){const i=_F(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),jF({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:kq.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===kq.Indicator&&u[kq.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:kq.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===kq.MiniChart&&u[kq.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?qF(e,t,i,d):{type:kq.Text,url:void 0,text:d,labelStructure:a}},FF=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?n_(o):null,a=n?n_(n):null,s=((e,t)=>e||!t?null:e_(t))(a,i);return{color:s??a,background:i}},zF=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:zF(e,t),e),WF=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:g_-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,zF(s,e))},$F=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,pseudoDimMeasureIndex:d,indentLevel:p,labelStructure:f,env:h,pageInfo:m,direction:g="ltr"})=>{const v=(!c||!u)&&"P"===e.qType,y=((e,t)=>{if(e!==qN){if(t){const t=Oq(e.representation);return t===kq.Link||t===kq.Image?e.representation:{type:kq.Text}}return e.representation}})(s,c),b=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===kq.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:f,representationType:Oq(y),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),x=NF({cell:{...e,qText:b},representationProperties:y,attrExprInfoIndex:l,env:h,labelStructure:f,direction:g,enabledFeatures:{[kq.Image]:!0,[kq.Indicator]:!0}}),S={id:$N(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:WF(e,o,i,n,u,m),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:v,expressionColor:FF(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:d??(v?e.qElemNo:t?.visibleMeasureInfoIndex),representation:x,...void 0!==p&&{indentLevel:p}};return t&&(t.children[S.mainAxisPageCoord-t.mainAxisPageCoord]=S),S},HF=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(qN);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=r.qTop+c-f.qUp;let w;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(y.originalValue=f.qText??"",y.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(y.originalValue=o.getNullValueText()),m<g&&(y.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){y.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",y.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",y.suffix=f.qText??"";const e=f.qSubNodes;w=f.qElemNo,f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=o.getNullValueText())}let C=h;u&&(C=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(C=0));const E=e.at(h)?.[x],I=u&&void 0===E?.ref.qText||!E?$F({node:f,parent:p,root:d,x:C,y:S,pageY:x,layoutService:o,dimensionInfo:i[C],attrExprInfoIndex:a[C],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l,pseudoDimMeasureIndex:w}):e[h][x];if(e[h][x]=I,f.qSubNodes.length){const e=u?0:h+1;t(d||I,I,f.qSubNodes,e,m)}})}(null,null,t,0,-1),e},VF=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},BF=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},GF=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=HF(e.grid,l,u,r,n,o,i,a,s);VF(c,r.rowsOnCurrentPage);const d=BF(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},UF=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach((t,r)=>{t.forEach((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:$N(),ref:t,isNull:l}})}),o},YF=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?UF({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},KF=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,v=e[h][g]??$F({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,h+1)})}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},XF=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=KF(e.grid,u,c,r,n,o,i,a,s,l);VF(d,r.size.x);const p=BF(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},JF=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),ZF=(e,t)=>{const{env:r}=PN(),{direction:n}=IN(),{layoutService:o,effectivePropertiesService:i}=AN(),{qPivotDataPages:a,pageInfo:s}=IN(),[l,u]=v(null),c=((e,t,r)=>g(()=>({left:e.map(JF),top:t.map(JF),measures:r.map(JF)}),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g(()=>UN(o,i,t,e),[o,i,t,e]),p=h(()=>a.slice(1).reduce((e,t)=>YF({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:r,qArea:n}=e;return UF({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s)),[a,s]),f=h(()=>a.slice(1).reduce((e,i)=>XF({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=KF([],u,l,t,r,n,o,i,a,s);VF(c,t.size.x);const d=BF(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n)),[a,o,t,c.top,d.size.y,r,s,n]),m=h(()=>a.slice(1).reduce((t,i)=>GF({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n}),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=HF([],l,s,r,t,n,o,i,a);VF(u,r.rowsOnCurrentPage);const c=BF(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n)),[a,o,s,e,c,r,n]),[y,b]=v(()=>p()),[x,S]=v(()=>f()),[w,C]=v(()=>m());Q_(()=>{b(p())},[p]),Q_(()=>{S(f())},[f]),Q_(()=>{C(m())},[m]),Q_(()=>{l&&l.forEach(i=>{b(e=>YF({prevData:e,dataPage:i,pageInfo:s})),S(e=>XF({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),C(t=>GF({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n}))})},[l]);const E=h(e=>{u(e)},[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},QF=Math.sqrt(1e4),ez=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Fk.PixelsMin)}),tz=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/QF),n=Math.ceil(e.qHeight/QF);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*QF,qTop:e.qTop+r*QF,qWidth:Math.min(QF,e.qWidth-o*QF),qHeight:Math.min(QF,e.qHeight-r*QF)});return t};function rz({nextPageHandler:e}){const{model:t}=PN(),{pageInfo:r}=IN(),{layoutService:n}=AN(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h(async(e,t)=>{await(i?.collapseLeft(ON,e,t,!1))},[i]),s=h(async(e,t)=>{await(i?.collapseTop(ON,e,t,!1))},[i]),l=h(async(e,t)=>{await(i?.expandLeft(ON,e,t,!1))},[i]),c=h(async(e,t)=>{await(i?.expandTop(ON,e,t,!1))},[i]),d=h(async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(ON,t.reduce((e,t)=>[...e,...tz(t)],[]));o.current===r.page&&e(n)}catch(e){console.error(e)}},[i,e,r,o]),p=h((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Fq.Dimension:c=[{qPath:`${ON}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case Fq.Measures:if(o)c=s.map((e,t)=>({qPath:`${ON}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${ON}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case Fq.Pivot:c=[{qPath:`${ON}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}});t?.applyPatches(d,!0)},[t,n]),f=h(async e=>{await(i?.applyPatches([{qPath:`${ON}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))},[i,n]);return g(()=>({collapseLeft:a,collapseTop:s,expandLeft:l,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:d}),[a,s,l,c,p,f,d])}const nz=(e,t,r)=>(n,o)=>{if("P"===n)return qN;const i=t[r+o];return e[i]},oz=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach(e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)})};return r(e),t},iz=c({}),az=()=>n(iz),sz=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=AN(),{qPivotDataPages:n}=IN();return g(()=>{const o=oz(n[0]?.qLeft??[]),i=oz(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(nz(r,t,0)),visibleTopDimensionInfo:i.map(nz(r,t,e))}},[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=ZF(t,r),u=rz({nextPageHandler:l}),c=g(()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u}),[t,r,n,o,i,a,s,u]);return Zo.jsx(iz.Provider,{value:c,children:e})},lz=20,uz=18,cz=.75,dz=e=>-1!==e&&e?.representation?.type===kq.Image,pz=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===kq.Image,fz=e=>void 0===e?m_:e,hz=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,mz=e=>hz(e,Fk.PixelsDefault),gz=(e,t)=>hz(e,Fk.PercentageDefault)*t/100,vz=(e,t,r)=>{switch(t?.type){case zk.Pixels:return mz(t.pixels);case zk.Percentage:return gz(t.percentage,e);case zk.FitToContent:case zk.Auto:default:return r}},yz=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find(e=>e.cId===d),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===_N)return e+0;const v=pz({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:kq.Text}})?g.width+8+4:n(f),y=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(o&&i&&a){b=i("- ")+a}return Math.max(e,24*l+uz+y+v+b)},0),bz=(e,t,r)=>e.reduce((e,n)=>{const o=(r?0:1)*uz;return Math.max(e,o+t(n.qFallbackTitle))},0),xz=(e,t,r,n)=>{const o=100*e/t,i=n*cz*(o/100),a=o/100*+r;return Math.min(a,i)},Sz=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),wz=(e,t)=>e.some(e=>e>=t*cz),Cz=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*cz,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,yz({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,bz(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex(e=>e.id===_N),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===zk.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+uz+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const r=Math.min(d,bz(e.visibleMeasureInfo,l,!0));g=Math.min(d,yz({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(y,n-f),f]}else c=[Math.max(y,h-f),f];const b=Math.min(d,c.reduce((e,t)=>e+t,0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=zk.Pixels,x.pixels=i);return[zk.Pixels,zk.Percentage].includes(x.type)||wz(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce((e,t)=>e+t,0),{type:l,pixels:u,percentage:c}=t,d=wz(e,r);l===zk.Auto&&d&&(o>i?o-=i:i-=o),l===zk.Pixels&&u&&(o=xz(e[0],s,u,r),i=xz(e[1],s,u,r)),l===zk.Percentage&&c&&(o=Sz(e[0],s,c,r),i=Sz(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function Ez({tableWidth:e}){const t=e*cz,{styleService:r,layoutService:n,effectivePropertiesService:o}=AN(),{translator:i}=PN(),{gridSectionsData:{headersData:a}}=az(),{measureText:s}=Y_(r.header),{estimateWidth:l,measureText:u}=Y_({...r.dimensionValues,fontWeight:fz(r.dimensionValues.fontWeight)}),{measureText:c}=Y_({...r.dimensionValues,...r.measureLabels}),d=h((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,v=(t=0)=>h.reduce((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+uz,a=Math.max(i,t);return Math.max(r,m?a:vz(e,o,a))},0),y=e=>a.data.reduce((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===_N)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?lz:0;return uz+s(t)+lz+n})(n);return Math.max(o,t)},0);let b=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map((i,s)=>{let u=uz;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===Fq.Pivot?t=m?void 0:f:i.columnWidthLocation===Fq.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===_N)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(dz(s))return Fk.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return uz+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===Fq.Dimension&&a.size.x>1&&(r=e)}else r=y(s),i.columnWidthLocation===Fq.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:vz(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u});return m&&a.size.x>1?Cz({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,n,t,s,c,l,u,i,o]),[p,f]=v(d);Q_(()=>{f(d())},[d]);const m=h((e,t)=>{f(d(e,t))},[d]);return{...p,overrideLeftGridWidth:m}}function Iz({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=AN(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=az(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=Y_(n.measureValues),{estimateWidth:p}=Y_({...n.dimensionValues,fontWeight:fz(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),v=m===qN,y=s.length-a>i.length?21:0,b=g(()=>{const e=v?u:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(Fk.PixelsMax,Math.max(Fk.PixelsMin,n)),o-=r[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case zk.Pixels:i(t,mz(o));break;case zk.Percentage:i(t,gz(a,f));break;case zk.FitToContent:i(t,((e,t,r)=>r?Fk.PixelsDefault:uz+(v?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+y)))(s,l,dz(e)));break;case zk.Auto:default:n.push(t)}}else n.push(t)}),n.length){const e=n.length*t,i=o/e;n.forEach(e=>{r[e]=Math.max(Fk.AutoMinPivot,i)})}return r},[v,u,m,l.x,f,c,d,p,y]),x=g(()=>{if(v){return u.reduce((e,t,r)=>e+b[r],0)/u.length}return b[0]},[v,b,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=h(e=>(v&&void 0!==e?b[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[v,b,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,f),getRightGridColumnWidth:w}}const Dz=`scrollable-container--${Wq.TopGrid}`,Mz=`scrollable-container--${Wq.LeftGrid}`,Pz=`scrollable-container--${Wq.DataGrid}`,Rz=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},Lz=(e,t)=>e>t?$q.Forward:e<t?$q.Backward:$q.None,Az=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=IN();p(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach(e=>{e?.scrollTo(l)}),c.scrollTop=d.scrollTop,t.current?.forEach(e=>{e?.scrollTo(a.scrollTop)}),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout(()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)},0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}},[i,o,a,e,t,r,n,s])},kz=()=>{const{interactions:e}=PN(),t=u(null),r=u(null),n=u(null),o=u(null),i=u([]),a=u([]),s=u(null),{scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:d}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=v(0),[i,a]=v(0);return m(()=>{(e.current||r.current)&&o(Math.max(Rz(e.current).width,Rz(r.current).width))}),m(()=>{(t.current||r.current)&&a(Math.max(Rz(t.current).height,Rz(r.current).height))}),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=IN(),{downloadService:l,viewService:u,layoutService:c}=AN(),d=h(()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)},[e,t,r,n]);m(()=>{d()},[s.page,d]),m(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),m(()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach(e=>{e?.scrollTo(t)}),o.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,n,a,i,o]),m(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:f,scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:y}}=(()=>{const e=u($q.None),t=u($q.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h(n=>{if(n instanceof WheelEvent&&(e.current=Lz(n.deltaY,0),t.current=Lz(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=Lz(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=Lz(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}},[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),b=(()=>{const{viewService:e}=AN();return h(t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===Mz&&(e.leftGridScrollLeft=n.scrollLeft),o===Pz&&(e.scrollLeft=n.scrollLeft),o===Dz&&(e.topGridScrollTop=n.scrollTop),o!==Mz&&o!==Pz||(e.scrollTop=n.scrollTop)},[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:h(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current}),[t,r,n,o]),updateViewService:b,trackScrollDirection:f,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{p(()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach(e=>{e?.scrollTo(u.scrollLeft)}),l.scrollTop=u.scrollTop,t.current?.forEach(e=>{e?.scrollTo(u.scrollTop)}),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[i,o,a,e,t,r,n])})(x),Az(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:d}}},Tz=()=>{const{layoutService:e}=AN(),{rect:t,pageInfo:r}=IN();return g(()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}},[t,e,r.shouldShowPagination])},Oz=({children:e,style:t})=>Zo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),qz=({children:e,style:t})=>{const{direction:r}=IN();return Zo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},_z=e=>e&&`scrollable-container--${e}`,jz=({children:e,style:t,origin:r},n)=>{const{interactions:o}=PN(),i=o.scroll?t:{overflow:"hidden"};return Zo.jsx("div",{"data-testid":"scrollable","data-key":_z(r),style:i,ref:n,children:e})};var Nz=r.forwardRef(jz);const Fz=({children:e,style:t})=>{const{direction:r}=IN();return Zo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var zz=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wz(e,t){return e===t||!(!zz(e)||!zz(t))}function $z(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Wz(e[r],t[r]))return!1;return!0}function Hz(e,t){var r;void 0===t&&(t=$z);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var Vz="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Bz(e){cancelAnimationFrame(e.id)}function Gz(e,t){var r=Vz();var n={id:requestAnimationFrame(function o(){Vz()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var Uz=-1;function Yz(e){if(void 0===e&&(e=!1),-1===Uz||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Uz=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uz}var Kz=null;function Xz(e){if(void 0===e&&(e=!1),null===Kz||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Kz="positive-descending":(t.scrollLeft=1,Kz=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Kz}return Kz}var Jz=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Zz(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Fs(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Fs(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Hz(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=Hz(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Hz(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(Xz()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Bz(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Gz(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Rs(t,e),t.getDerivedStateFromProps=function(e,t){return Qz(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=Yz();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Xz()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Bz(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?Jz:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],M=I[1],P=[];if(n>0&&v)for(var R=D;R<=M;R++)for(var L=C;L<=E;L++)P.push(o(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ae({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},o(c||d||"div",{children:P,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Qz=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},eW=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},tW=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},rW=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},nW=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?oW(e,t,r,i,0,n):iW(e,t,r,Math.max(0,i),n)},oW=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=rW(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},iW=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&rW(e,t,n,r).offset<o;)n+=a,a*=2;return oW(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},aW=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=rW(e,t,r,i),u="column"===e?tW(t,i):eW(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},sW=Zz({getColumnOffset:function(e,t,r){return rW("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return nW("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=rW("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=rW("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:eW,getEstimatedTotalWidth:tW,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return aW("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return aW("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return rW("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return nW("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=rW("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=rW("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),lW=function(e,t){return e};function uW(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Fs(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Fs(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Hz(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=Hz(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Hz(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Xz()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Bz(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Gz(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Rs(t,e),t.getDerivedStateFromProps=function(e,t){return cW(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?Yz():0:l.scrollHeight>l.clientHeight?Yz():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(Xz()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Bz(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?lW:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var M=E;M<=I;M++)D.push(o(t,{data:d,key:f(M,d),index:M,isScrolling:y?x:void 0,style:this._getItemStyle(M)}));var P=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:Ae({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(l||u||"div",{children:D,ref:s,style:{height:S?"100%":P,pointerEvents:x?"none":void 0,width:S?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var cW=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},dW=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},pW=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=dW(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},fW=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&dW(e,r,t).offset<n;)r+=i,i*=2;return pW(e,t,Math.min(r,o-1),Math.floor(r/2),n)},hW=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},mW=uW({getItemOffset:function(e,t,r){return dW(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:hW,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=dW(e,t,o),p=hW(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?pW(e,t,o,0,r):fW(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=dW(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=dW(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function gW(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var vW=["style"],yW=["style"];function bW(e,t){var r=e.style,n=ke(e,vW),o=t.style,i=ke(t,yW);return!gW(r,o)&&!gW(n,i)}const xW=10,SW=(e,t)=>e.current===$q.Backward?t:0,wW=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},CW=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,EW=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(wW(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&CW(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},IW=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===$q.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return EW({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},DW=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=SW(r,xW),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+xW,s-u),pageTop:o,qHeight:a}})(n,o,r),u=EW({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...IW({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},MW=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},PW=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,RW=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(MW(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&PW(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},LW=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=SW(r,xW),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+xW,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=RW({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===$q.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=RW({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},AW=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==$q.None&&(p=LW({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==$q.None&&(f=DW({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===$q.None&&a.current===$q.None&&(p=RW({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},kW=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(AW,100),TW=mq(AW,75),OW=e=>"number"==typeof e&&!Number.isNaN(+e),qW=e=>OW(e.qNum),_W=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),jW=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=IN(),{styleService:{grid:{border:l,divider:u}}}=AN();return Zo.jsx("div",{style:{...e,...S_,...I_(r,n,l,s,o),...M_({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},NW=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=AN(),a=o&&i;return Zo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},FW=e=>{const{type:t,imageSize:r}=e;return t!==kq.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},zW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})})),WW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),$W=x((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Zo.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),Zo.jsx("use",{fillRule:"evenodd"})]})),HW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),VW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),BW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),GW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M2 7h12v2H2z"})})),UW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),YW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),KW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),XW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),JW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),ZW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),QW=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),e$=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),t$={m:JW,"ï":KW,R:x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),S:ZW,T:QW,U:e$,P:YW,Q:BW,"è":x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":HW,"©":$W,"23F4":VW,2013:XW,"&":UW,add:zW,"minus-2":GW,dot:WW},r$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&t$[t];return o&&Zo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Zo.jsx(o,{style:{height:e}})})},n$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),o$=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},i$=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&XT(e.localPaletteColors[t].color).blend(XT(s.color),s.t)},a$=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:n$(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:o$(n,t,r)}))),n},s$=(e,t,r,n)=>{const o=a$(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=i$(e,a,t);break}n=i}return r})(o,t);return a},l$=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!OW(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!OW(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},u$=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=l$(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!OW(t))return 0;let a=r&&OW(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},c$=e=>"flex-start"===e?"flex-end":"flex-start",d$=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=u$(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return o$(o,r.limitPaletteColorIndex,n);const a=n$(r.limitRange,t);return s$(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},p$=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=AN(),{theme:o}=PN(),{direction:i}=IN(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=d$(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||f_,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Zo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?b:r?.color},children:["left"===x&&r$({size:v,iconKey:y,color:b,pvStyle:S}),Zo.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:r?.direction,...g},children:a}),"right"===x&&r$({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,r$({size:v,iconKey:y,color:b,pvStyle:S}))},f$=e=>!!e.target?.getAttribute("class")?.includes(Nk),h$=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},m$=e=>null!==e.target?.closest("[data-prevent-selection]"),g$=e=>"A"===e.target?.tagName,v$=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const y$=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),b$=()=>n(y$),x$=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=IN(),r=e.isActive(),[n,o]=d(h$,{engineSelectedCells:null,selectedField:null,activeSelection:null});p(()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}},[e,t]);const i=h(async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))}));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[ON,Array.from(i,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}},[n,e]);p(()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}},[i,n.activeSelection]);const a=h((e,t)=>r=>{const n=t(e);f$(r)||m$(r)||g$(r)||!(e=>1===e.buttons)(r)||!n||o(v$({startIndex:e,getCellFromIndex:t,cell:n}))},[]),s=h(t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([ON]),o({type:"mouseover",payload:{index:t}}))},[n.activeSelection,e]),l=h((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);f$(r)||m$(r)||g$(r)||!n||(o(v$({startIndex:e,getCellFromIndex:t,cell:n})),i())},[i]),u=h(e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y)),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),c=h(e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return g(()=>({isSelected:c,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[c,r,u,a,s,l])}(t);return Zo.jsx(y$.Provider,{value:r,children:e})},S$=e=>"fill"===e.representation.imageSize,w$=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&S$(e)&&t&&(r="center"),e.representation.type!==kq.Image||S$(e)?r:e.representation.resolvedImagePosition?.vertical};var C$=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(C$||{});const E$={brighter:.5,darker:.3,opacity:.03},I$=(e,{cell:t,styleService:r})=>{if(e===C$.Background||e===C$.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},D$=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=I$(C$.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?I$(C$.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${r_(i=o,E$)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},M$=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:I$(C$.Color,{cell:e,styleService:t}),P$=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=I$(C$.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?m_:o},R$=({cell:e,styleService:t})=>I$(C$.FontStyle,{cell:e,styleService:t}),L$=({cell:e,styleService:t})=>I$(C$.TextDecoration,{cell:e,styleService:t}),A$=e=>e?"pointer":"default",k$=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},T$=(e,t)=>{if(!e.isLeftColumn||e.representation.type===kq.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},O$=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=AN(),{interactions:i}=PN(),{isActive:a}=b$(),{dataModel:s}=az();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=M$({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?_j:qj;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=pz({isLeftColumn:t,layoutService:o,representation:e.representation});return Zo.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...T$(e,n),...f&&{alignSelf:w$(e)}},onClick:l?void 0:k$({cell:e,expandOrCollapse:p})})},q$=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},_$=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},j$=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},N$=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=pz({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},F$=e=>{if("alwaysFit"===e)return"contain"},z$=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),W$=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:_$(e,r,n),height:q$(e),objectFit:F$(e),objectPosition:j$(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),$$=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=AN(),t=u(null),{promise:r,resolve:n}=g(()=>__(),[]);return p(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()}),[t,e,r,n]),{onLoad:h(()=>{n()},[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=AN(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Zo.jsx("img",{src:a,alt:s,style:{...W$({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},H$=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=AN(),{resolvedImagePosition:u}=e;return Zo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...N$({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Zo.jsx($$,{representation:e,textStyle:t,isMeasureCell:!0})})},V$=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},B$=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},G$={display:"flex",flexDirection:"row",alignItems:"center"},U$={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Y$=(e,t,r,n)=>t?{...U$,...e.nullValues}:r?{...G$,color:e.totalValues.color,background:n??e.totalValues.background}:{...G$,color:e.measureValues.color,background:n??e.measureValues.background},K$=(e,t,r,n,o,i)=>{const{fontFamily:a,fontSize:s}=e.measureValues,l={...w_,...!r&&C_(e.grid.lineClamp),...t&&{color:t},fontFamily:a,fontSize:s,direction:r?"ltr":i};if(o){const{fontWeight:t,fontStyle:n,textDecoration:o}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:o,direction:r?"ltr":i}}if(n){const{fontWeight:t,fontStyle:n,textDecoration:o}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:o,direction:r?"ltr":i}}const{fontWeight:u,fontStyle:c,textDecoration:d}=e.measureValues;return{...l,fontWeight:void 0===u?m_:u,fontStyle:c,textDecoration:d}},X$=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o,isNumeric:i})=>{const{direction:a}=IN(),{layoutService:s,styleService:l}=AN(),{isIndentModeEnabled:u}=s,c=e.isNull?s.getNullValueText():t.text,d=t.type===kq.Image,p=t.type===kq.Indicator,f=K$(l,r,i,n,e.isNull,a);if(!u&&d&&!e.isNull||u&&d&&!e.isNull)return Zo.jsx(H$,{isMeasureCell:!0,textStyle:f,representation:t,imageContainerHorizontalAlignment:o});const h="string"==typeof(m=e.isNull?t.text:e.ref.qNum)&&m.length>0||"number"==typeof m?+m:NaN;var m;return p&&OW(h)?Zo.jsx(p$,{representation:t,cellValue:h,textStyle:f}):Zo.jsx("span",{style:{padding:4,...f},children:c})},J$=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,Z$="flex-start",Q$=(e,t)=>e.isNull?Z$:t.type===kq.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:Z$,eH=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=PN(),{pageInfo:i,direction:a}=IN(),{styleService:s,layoutService:l}=AN(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleTopDimensionInfo:f}}=az(),m=(()=>{const{layoutService:{isIndentModeEnabled:e}}=AN(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=az(),i=n.length,a=o.length;return h((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal),[r,t,i,a,e])})(),g=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=az(),r=t.length;return h(t=>{const n=e.grid.at(r-1)?.[t];return _W(n,e.totalDividerIndex)},[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=AN(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=az(),n=r.length;return h(r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return _W(i,t.totalDividerIndex,e)},[t,e,n])})(),{showLastBorder:y}=n,b=p.grid.at(f.length-1),x=d.grid.at(-1),{background:S}=s.measureValues,w=c[t]?.[e],C=t===i.rowsOnCurrentPage-1,E=e===l.size.x-1;if(!w)return Zo.jsx(jW,{style:{...r,background:S},isLastRow:C,isLastColumn:E,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const I=l.hasPseudoDimOnLeft?J$(x,t):J$(b,e),D=l.visibleMeasureInfo[I],M=NF({cell:w.ref,representationProperties:D.representation,attrExprInfoIndex:u.measures[I],env:o,direction:a,conditionalColoring:D.conditionalColoring,enabledFeatures:{[kq.Image]:!0,[kq.Indicator]:!0}}),P=!w.isNull&&m(e,t),R=w.isNull?l.getNullValueText():M.text,L=w.isNull?""!==R&&void 0!==R&&!Number.isNaN(+R):qW(w.ref),A=FF(u.measures[I],w.ref),k=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==kq.Image?V$(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(w,D,M,L,a),T={...Y$(s,w.isNull,P,A.background),...I_(C,E,s.grid.border,a,y),...M_({bottomDivider:v(t),rightDivider:g(e),borderColor:s.grid.divider}),...S_,padding:"0px 4px",display:"flex",justifyContent:k};return Zo.jsx("div",{className:qk,title:R,style:{...T,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Zo.jsx(NW,{width:FW(M),verticalAlign:Q$(w,M),children:Zo.jsx(X$,{cell:w,representation:M,isTotalValueCell:P,color:A.color,cellHorizontalAlignment:k,isNumeric:L})})})};var tH=r.memo(eH,bW);const rH=(e,t)=>t.list[e]?.id??e.toString(),nH=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,oH=e=>({...x_,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),iH=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=IN(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=AN(),{dataModel:f,gridSectionsData:{measureData:g}}=az(),v={...oH(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=IN(),{downloadService:n,viewService:o,layoutService:i}=AN(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=az(),c=s.columnCount,d=l.rowCount;return h(async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===$q.None?0:xW),m=o.gridHeight+d+(e.current===$q.None?0:xW);let g=kW;m*h>1500&&(g=TW),g(a,i,u,r,o,e,t,n)},[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return Q_(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,f,g]),m(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[n,t,e,p,u]),0===c.size.x?null:Zo.jsx(sW,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:g},onItemsRendered:y,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:nH,direction:u,children:tH})};var aH=b(iH);const sH=x((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Zo.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Zo.jsx("use",{fillRule:"evenodd"})]})),lH=e=>{const[t,r]=v(!1);return Q_(()=>{r(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},uH=()=>{const[e,t]=v(!1),{dataModel:r}=az(),{interactions:n}=PN(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=lH([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||f$(e)||o||t(!0)},setIsAdjustingWidth:i}};function cH(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===y_.Transparent?Qq.WHITE:n,i=XT(e.grid.border),a=XT(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return XT(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const dH=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=IN(),{interactions:l,translator:u}=PN(),{isActive:c}=b$(),{dataModel:d}=az(),{styleService:p}=AN(),[,f]=v({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=cH(p,e);return Zo.jsx(ij,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*cz,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},pH=ys(ou,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}})),fH=ys("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),hH=ys("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",justifyContent:e??"center",alignItems:"center",flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),mH=ys("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center"})),gH=ys("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o})),vH=ys(bd)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),yH=ys(Ed,{shouldForwardProp:e=>!["isActive"].includes(e)})(({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}})),bH=ys("span")({textOverflow:"ellipsis",overflow:"hidden"}),xH=ys("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:lz,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),SH=ys("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let wH=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const CH=(e,t)=>({qExcludeList:t===wH.Expand,qPos:{qDimName:e,qElemNo:[]}}),EH=`${ON}/qExpansionState`,IH=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:CH(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=EH,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${EH}/-`,t=JSON.stringify(o)):(r=`${EH}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},DH=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:IH({...n,action:wH.Expand}),collapseCallback:IH({...n,action:wH.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},MH={[Vj.Sorting]:!0,[Vj.Selections]:!0,[Vj.Searching]:!0},PH=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=u(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=AN(),{app:g,interactions:v,embed:y,translator:b,model:x}=PN(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:I,color:D,background:M,hoverBackground:P,activeBackground:R}=f.header,L=u(null),{shouldShowLockIcon:A,shouldShowMenuIcon:k}=a,{open:T,setOpen:O,handleOpenMenu:q,setIsAdjustingWidth:_}=uH(),{direction:j}=IN(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:W}=h.getDimensionInfo(e.dimensionInfoIndex)??{},$=V$(W,"flex-start",j);return Zo.jsxs(pH,{className:qk,title:e.label,interactions:v,background:T?R:M,hoverBackground:P,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...S_,...D_(e,o,r,n,f.grid.border,j),color:D},"data-testid":"title-cell",onClick:q,children:[Zo.jsxs(hH,{children:[A?Zo.jsx(mH,{children:Zo.jsx(sH,{height:12})}):null,Zo.jsx(gH,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:I,justifyContent:$,children:Zo.jsx("span",{style:w_,children:e.label})})]}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(Uj,{headerData:e,translator:b,anchorRef:L,open:T,setOpen:O,interactions:v,menuAvailabilityFlags:MH,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:DH({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:j}),Zo.jsx(fH,{ref:p,direction:j}),Zo.jsx(fH,{ref:L,direction:j})]}):null,Zo.jsx(dH,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},RH=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=AN(),{direction:n}=IN();return e>0&&t>0?Zo.jsx("div",{style:{...x_,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},LH=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m7.999 9.001-2.858-2.86a.2.2 0 0 0-.282 0l-.718.719a.2.2 0 0 0 0 .282L7 10.001l.859.858a.2.2 0 0 0 .282 0L9 10l2.859-2.859a.2.2 0 0 0 0-.282l-.718-.718a.2.2 0 0 0-.283 0z"})})),AH=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"m7.999 6.999-2.858 2.86a.2.2 0 0 1-.282 0L4.14 9.14a.2.2 0 0 1 0-.282L7 5.999l.859-.858a.2.2 0 0 1 .282 0L9 6l2.859 2.859a.2.2 0 0 1 0 .282l-.718.718a.2.2 0 0 1-.283 0z"})})),kH=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=IN(),{styleService:o}=AN(),{interactions:i,translator:a}=PN(),{isActive:s}=b$(),{dataModel:l}=az(),{setIsAdjustingWidth:u}=lH([l]);if(!(!!i.active&&!s))return null;const c=cH(o,{isLeftColumn:!0});return Zo.jsx(ij,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*cz))},confirmWidthCallback:n=>{if(n.type===zk.FitToContent)return void l.applyIndentModeColumnWidth({type:zk.Auto});const o=Math.min(n.pixels??t,e*cz);r(o),l.applyIndentModeColumnWidth({type:zk.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},TH=x((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})),OH=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=PN(),{layoutService:c,effectivePropertiesService:d}=AN(),{open:p,setOpen:f,handleOpenMenu:h}=uH();return Zo.jsxs(yH,{onClick:h,isActive:p,children:[Zo.jsx(bH,{children:e.label}),Zo.jsxs(xH,{className:"indent-mode-dropdown-more",visible:p,children:[Zo.jsx(TH,{}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(Uj,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:MH,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:DH({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Zo.jsx(fH,{ref:n}),Zo.jsx(fH,{ref:r})]}):null]})]})},qH=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===_N,i=e+1<r.length&&r[e+1]?.id===_N;return!(n&&o&&i)&&(t?.id!==_N&&e<r.length-1)},_H=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=AN(),{interactions:a,translator:s}=PN(),{dataModel:l,gridSectionsData:{headersData:c}}=az(),[d,p]=v(!1),f=u(null),{headerCellHeight:h}=i,{color:m,background:g,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:I}=lH([l]),D=e=>{e.stopPropagation()},M={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Zo.jsxs(pH,{isDimension:!0,background:d?b:g,interactions:a,hoverBackground:y,style:{...M,...S_,color:m},onClick:e=>{!a.active||f$(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Zo.jsxs(hH,{justifyContent:"flex-start",children:[Zo.jsx(gH,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Zo.jsx("span",{style:w_,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Zo.jsx(AH,{}):Zo.jsx(LH,{}),Zo.jsx(fH,{ref:f})]}),Zo.jsx(vH,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((r,n)=>[r&&r.id!==_N&&Zo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:Zo.jsx(OH,{cell:r,changeSortOrder:t})}),qH({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Zo.jsx(cj,{"data-testid":"group-divider",variant:"middle"})])}),Zo.jsx(kH,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},jH=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,NH={display:"grid",width:"fit-content"},FH=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=AN(),{gridSectionsData:{headersData:u}}=az();return Zo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...NH,gridTemplateColumns:r.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${n}px`).join(" "),height:a},children:[u.size.y>1&&Zo.jsx(RH,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(jH({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Zo.jsx(_H,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(Zo.jsx(PH,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var zH=b(FH);const WH=(e,t,r,n)=>{const{layoutService:o}=AN();m(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,r,n,o])},$H=(e,t)=>{Q_(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},HH=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},VH=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=pz({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===kq.Image)return a&&l&&"center"!==l&&"rtl"===n?c$(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return V$(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return V$(u,s,n)},BH=()=>{},GH=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=AN(),{interactions:f}=PN(),{direction:h}=IN(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=b$(),{showLastBorder:b}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,e=>HH(e,n)):void 0,C=S?v(c):void 0,E=S?y(c,e=>HH(e,n)):void 0,I=pz({isLeftColumn:s,layoutService:p,representation:r.representation});return Zo.jsx("div",{className:qk,title:f.passive?r.representation.text:void 0,style:{...t,...I_(i,a,d.grid.border,h,b),...M_({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...S_,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:A$(S),background:D$({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:VH(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:B$(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:BH,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},UH=e=>{e.stopPropagation()},YH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:UH,color:Qq.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),KH=({href:e,text:t,interactions:r,color:n})=>Zo.jsx(Ec,{...YH({href:e,text:t,interactions:r,color:n}),children:t}),XH=U();XH.use(G),XH.renderer.prio(["canvas"]);const JH=(e,t)=>e&&"center"!==e&&"rtl"===t?c$(e):e,ZH=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=AN(),{direction:a}=IN();return Zo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Zo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:w$(e),alignItems:JH(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Zo.jsx($$,{representation:t,textStyle:r})}),Zo.jsx(SH,{padding:4/(i<=2?2:1),alignSelf:w$(e,!0),children:!!t.labelStructure&&z$(t.labelStructure)})]})},QH=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,eV=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Zo.jsxs("span",{children:[Zo.jsx(Ec,{...YH({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&QH(r)]}),tV=({children:e,textStyle:t,shouldEnableStickyText:r})=>Zo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),rV=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=IN(),{isActive:o}=b$(),{layoutService:i,styleService:a}=AN(),{interactions:s}=PN(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...w_,...C_(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:M$({cell:e,styleService:t,isCellSelected:r}),fontWeight:P$({cell:e,styleService:t}),fontStyle:R$({cell:e,styleService:t}),textDecoration:L$({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===kq.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?ZH:H$;return Zo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:VH(e,i,r,n)})}if(e.representation.type===kq.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?eV:KH;u=Zo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Zo.jsx(tV,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===kq.Image&&e.isNull?{alignSelf:w$(e)}:{}},children:u})},nV=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=AN(),{isSelected:i}=b$(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=lH([r]),f=HH(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=_W(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Zo.jsx(jW,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return Zo.jsxs(GH,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Zo.jsxs(NW,{verticalAlign:w$(f),width:FW(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Zo.jsx(O$,{isLeftColumn:a,isCellSelected:v,cell:f}),Zo.jsx(rV,{isLeftColumn:a,isCellSelected:v,cell:f})]}),Zo.jsx(dH,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Fq.Measures:Fq.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var oV=r.memo(nV,bW);const iV=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},aV=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},sV=(e,t)=>r=>{e.current&&(e.current[t]=r)},lV={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...x_},uV={overflow:"hidden",willChange:"auto",flexShrink:0},cV=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=IN(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=AN(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=az();$H(e,d),WH(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...lV,borderColor:u,width:n.reduce((e,t)=>e+t,0)};return Zo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=HN(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=aV(t,f,i.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,y,l,h,c.qcy);return Zo.jsx(mW,{ref:sV(e,u),style:{...uV,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:rH,estimatedItemSize:v,children:oV},m)})})};var dV=b(cV);const pV={overflow:"hidden",willChange:"auto"},fV=e=>({...x_,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),hV=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=IN(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=AN(),{gridSectionsData:{headersData:c,topDimensionData:d}}=az(),p={...fV(a),borderColor:l,height:n};$H(e,d),WH(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Zo.jsx("div",{style:{width:r,height:n,...fV(a)}}):Zo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=aV(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=jH({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?HN(g):`empty ${l}`;return Zo.jsx(mW,{ref:sV(e,l),style:pV,height:t(),width:r,itemCount:p,itemSize:iV({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:rH,estimatedItemSize:h,direction:a,children:oV},v)})})};var mV=b(hV);const gV=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=AN(),r=Tz(),n=(()=>{const{model:e}=PN(),t=h(async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=kz(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=AN(),{gridSectionsData:{headersData:i}}=az(),{measureText:a}=Y_(o.header),s=Ez({tableWidth:e}),l=Iz({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=h((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+uz;return t&&d+lz<=l&&(c=!0,d+=lz),d+lz<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return p(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()},[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:M,topGridDims:P,leftGridDims:R,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=Tz(),{pageInfo:l}=IN(),{gridSectionsData:{headersData:u,topDimensionData:c}}=az(),d=Math.min(s.height*cz,Math.max(s.height*cz-25,s.height-t-a)),p=s.width*cz,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,r),y=s.width-p,b=Math.max(y,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),M=Math.min(I,f),P=m+1+f,{visibilityStatus:R,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:b},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:P-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:g},stickyWrapper:{width:b-1-i,height:-1},self:{width:Math.min(o,b)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:P-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:P-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-i,height:I-1-a},self:{width:Math.min(o,b)-(C?1:0)-i,height:Math.max(t,M-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:R}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),T=h(()=>e,[e]),O=h(()=>t,[t]);return(()=>{const{downloadService:e}=AN();p(()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()})})(),Zo.jsxs(qz,{style:D,children:[Zo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Zo.jsx(zH,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:M.height,changeSortOrder:n,overrideLeftGridWidth:I})}),Zo.jsx(Nz,{style:k.topGrid,origin:Wq.TopGrid,ref:i,children:Zo.jsx(Oz,{style:P.fullSizeWrapper,children:Zo.jsx(Fz,{style:P.stickyWrapper,children:Zo.jsx(mV,{topGridRef:l,rowHightCallback:T,...P.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Zo.jsx(Nz,{style:k.leftGrid,origin:Wq.LeftGrid,ref:a,children:Zo.jsx(Oz,{style:R.fullSizeWrapper,children:Zo.jsx(Fz,{style:R.stickyWrapper,children:Zo.jsx(dV,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),Zo.jsx(Nz,{style:k.dataGrid,origin:Wq.DataGrid,ref:s,children:Zo.jsx(Oz,{style:L.fullSizeWrapper,children:Zo.jsx(Fz,{style:L.stickyWrapper,children:Zo.jsx(aH,{dataGridRef:c,rowHightCallback:O,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},vV=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=PN(),{pageInfo:o,updatePageInfo:i,rect:a}=IN(),{layoutService:s}=AN(),{layout:l,hasData:u}=s;return Zo.jsxs(Zo.Fragment,{children:[u?Zo.jsx(gV,{}):null,Zo.jsx(TN,{}),Zo.jsx(CN,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})};const yV=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){const t=ox();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Za({...t,direction:e})}(n.direction);e.render(Zo.jsx(r.StrictMode,{children:Zo.jsx(xs,{theme:a,children:Zo.jsx(RN,{...i,children:Zo.jsx(DN,{...n,children:Zo.jsx(x$,{selections:t,children:Zo.jsx(kN,{...o,children:Zo.jsx(sz,{children:Zo.jsx(vV,{})})})})})})})}))};var bV=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(bV||{}),xV=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(xV||{}),SV=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(SV||{}),wV=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(wV||{});const CV=e=>e?`${parseInt(e,10)}px`:void 0,EV=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?y_.Transparent:r}},IV=(e,t)=>+(parseInt(e,10)*v_*t+8).toFixed(2),DV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?m_:"normal",MV=e=>e?.some(e=>"italic"===e)?"italic":"normal",PV=e=>e?.some(e=>"underline"===e)?"underline":"none",RV=document.createElement("textarea");function LV(e){RV.value=e,document.body.appendChild(RV),RV.select(),RV.setSelectionRange(0,RV.value.length),document.execCommand("copy"),document.body.removeChild(RV)}RV.style.position="absolute",RV.style.left="-9999px",RV.setAttribute("readonly","");function AV(e){O?.((t,r)=>{const n=r.target,o=n?.closest(`.${qk}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{LV(t)}):LV(t))})(o)}}),e?.forEach(e=>{e(t,r,o)})})}const kV=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>j_((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(ON,0,0,!0),await e.expandLeft(ON,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:IH({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:wH.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(ON,0,0,!0),await e.collapseLeft(ON,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:IH({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:wH.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))},[e,t,r]),TV=(e,t)=>M(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,g_),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some(t=>t===e),f=p(qN),h=new Map(i.map(e=>[s[e]??qN,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex(e=>e===m[r])},getDimensionInfo:e=>e===qN?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:zk.Auto,pixels:Fk.PixelsDefault,percentage:Fk.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),OV=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=F_(e);return t.current=e,t})(ez(o));return B_(async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(g_,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(ON,tz(t)):[]}return t.qPivotDataPages},[i,a,e,r,n.page,n.rowsPerPage,l,s])},qV=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),_V=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:qV({rowsPerPage:r,totalRowCount:e,page:t})}),jV=15,NV=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>(q(async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-jV,0),u=Math.max(s+o-jV,s,0),c=g_-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=ez(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=tz(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(ON,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i}),_(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)}),[t]),e.layout.snapshotData?.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r);var FV={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const zV=()=>{const e=j(),t=e.language();return M(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(FV).forEach(t=>{e.add(FV[t])})}(e)},[e]),{translator:e,language:t}},WV=e=>{const{flags:t}=e,r=N(),n=(e=>{const t=M(()=>J_.createRoot(e),[e]);return A(()=>()=>{t.unmount()},[t]),t})(r),o=F(),i=z(),a=W(),s=$(),l=H(),u=(()=>{const{viewState:e}=P(),t=F_(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=M(()=>__(),[]),i=j_(e=>{r&&t.current.add(e)},[t]),a=j_(mq(async()=>{await Promise.all(t.current),t.current.clear(),o()},1e3),[o,t]);return R(async()=>{r&&await n},[n,r]),M(()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i}),[a,r,e,i])})(),c=((e,t)=>{const[r]=B_(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return M(()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map(e=>e.qDef.qSortCriterias)??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[r])})(i,o),d=TV(o,t),p=(e=>{const t=T();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=V(),h=V_(o,r),{translator:m,language:g}=zV(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=L(()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,..._V(n.qcy,a,i)}}),l=e.layout.qHyperCube.qSize.qcy;return A(()=>{s(t=>({...t,..._V(l,t.page,i),shouldShowPagination:l>e.size.y&&!o}))},[l,e.size.y,s,o,i]),A(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=qV({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:qV({...a,...e})})}}})(d,u),b=((e,t,r)=>M(()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData),[r,e.page,t.snapshotData]))(v,o,u),x=NV({rect:B(),layoutService:d,viewService:b,model:i,pageInfo:v}),[S,w]=OV({model:i,layoutService:d,viewService:b,pageInfo:v,rect:x}),C=M(()=>((e,t)=>{const r=t.layout.components?.find(e=>"theme"===e.key),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[bV.LineClamp]??c(xV.Grid,SV.Grid,wV.LineClamp)??1),p=+(u?.[bV.ColumnLineClamp]??c(xV.Grid,SV.Grid,wV.ColumnLineClamp)??1),f=EV(e,n?.[bV.Background])??c(xV.Dimension,SV.LabelName,wV.BackgroundColor)??y_.Transparent,h={header:{fontSize:CV(n?.[bV.FontSize])??c(xV.Dimension,SV.LabelName,wV.FontSize)??f_,fontFamily:n?.[bV.FontFamily]??c(xV.Dimension,SV.LabelName,wV.FontFamily)??h_,fontWeight:DV(n?.[bV.FontStyle],m_),fontStyle:MV(n?.[bV.FontStyle]),textDecoration:PV(n?.[bV.FontStyle]),color:EV(e,n?.[bV.FontColor])??c(xV.Dimension,SV.LabelName,wV.FontColor)??Qq.TEXT,background:f,hoverBackground:r_(f,Wk),activeBackground:r_(f,$k)},dimensionValues:{fontSize:CV(o?.[bV.FontSize])??c(xV.Dimension,SV.LabelValue,wV.FontSize)??f_,fontFamily:o?.[bV.FontFamily]??c(xV.Dimension,SV.LabelValue,wV.FontFamily)??h_,fontWeight:DV(o?.[bV.FontStyle],void 0),fontStyle:MV(o?.[bV.FontStyle]),textDecoration:PV(o?.[bV.FontStyle]),color:EV(e,o?.[bV.FontColor])??c(xV.Dimension,SV.LabelValue,wV.FontColor)??Qq.TEXT,background:EV(e,o?.[bV.Background])??c(xV.Dimension,SV.LabelValue,wV.BackgroundColor)??y_.Transparent},measureValues:{fontSize:CV(i?.[bV.FontSize])??c(xV.Measure,SV.LabelValue,wV.FontSize)??f_,fontFamily:i?.[bV.FontFamily]??c(xV.Measure,SV.LabelValue,wV.FontFamily)??h_,fontWeight:DV(i?.[bV.FontStyle],"normal"),fontStyle:MV(i?.[bV.FontStyle]),textDecoration:PV(i?.[bV.FontStyle]),color:EV(e,i?.[bV.FontColor])??c(xV.Measure,SV.LabelValue,wV.FontColor)??y_.FontSecondary,background:EV(e,i?.[bV.Background])??c(xV.Measure,SV.LabelValue,wV.BackgroundColor)??y_.Transparent},measureLabels:{fontWeight:DV(a?.[bV.FontStyle],"normal"),fontStyle:MV(a?.[bV.FontStyle]),textDecoration:PV(a?.[bV.FontStyle]),color:EV(e,a?.[bV.FontColor])??c(xV.Measure,SV.LabelName,wV.FontColor)??y_.FontSecondary,background:EV(e,a?.[bV.Background])??c(xV.Measure,SV.LabelName,wV.BackgroundColor)??y_.Transparent},totalValues:{fontWeight:DV(s?.[bV.FontStyle],m_),fontStyle:MV(s?.[bV.FontStyle]),textDecoration:PV(s?.[bV.FontStyle]),color:EV(e,s?.[bV.FontColor])??c(xV.Total,SV.LabelValue,wV.FontColor)??Qq.TEXT,background:EV(e,s?.[bV.Background])??c(xV.Total,SV.LabelValue,wV.BackgroundColor)??y_.Transparent},nullValues:{fontWeight:DV(l?.[bV.FontStyle],"normal"),fontStyle:MV(l?.[bV.FontStyle]),textDecoration:PV(l?.[bV.FontStyle]),color:EV(e,l?.[bV.FontColor])??c(xV.Null,SV.LabelValue,wV.FontColor)??Qq.TEXT,background:EV(e,l?.[bV.Background])??c(xV.Null,SV.LabelValue,wV.BackgroundColor)??y_.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:EV(e,u?.[bV.Border])??c(xV.Grid,SV.Grid,wV.BorderColor)??y_.DividerLight,divider:EV(e,u?.[bV.Divider])??c(xV.Grid,SV.Divider,wV.BorderColor)??y_.DividerDark,background:EV(e,u?.[bV.Background])??c(xV.Grid,SV.Grid,wV.BackgroundColor)??y_.Transparent},selectedColors:t_(e)};return h.headerCellHeight=Math.max(IV(h.header.fontSize,p),IV(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(IV(h.measureValues.fontSize,d),IV(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=IV(h.dimensionValues.fontSize,1),h})(h,d),[h,d]),E=((e,t,r)=>{const[,n,o]=B_(async()=>{const t=pO(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,Z_].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(h,o,e),I=P(),D=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?I.direction:"ltr";AV([kV({model:i,layoutService:d,effectivePropertiesService:c,translator:m})]),A(()=>{!w&&i&&!!S&&E&&yV(n,{selections:f,baseObjects:{rect:x,pageInfo:v,qPivotDataPages:S,updatePageInfo:y,direction:D},nebulaObjects:{env:e,app:a,model:i,embed:s,theme:h,keyboard:l,translator:m,interactions:p},coreServices:{styleService:C,viewService:b,layoutService:d,downloadService:u,effectivePropertiesService:c}})},[i,a,x,p,f,b,d,u,w,S,C,n,E,m,g,v,y,c,s,l,h,e,D])},$V={version:"6.0.22",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},HV=()=>({...$V,qHyperCubeDef:{...$V.qHyperCubeDef,qIndentMode:!1}})}}});
|