@nebula.js/sn-pivot-table 7.0.6 → 7.0.8
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 -12
- package/dist/sn-pivot-table.js +7 -7
- package/dist/sn-pivot-table.systemjs.js +11 -11
- package/package.json +4 -4
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +7 -7
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v7.0.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-pivot-table v7.0.8
|
|
3
|
+
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["react","react-dom","@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,P,M,R,L,A,k,O,q,T,_,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.HyperCubeHandler,P=e.useMemo,M=e.useOptions,R=e.usePromise,L=e.useState,A=e.useEffect,k=e.useTheme,O=e.useInteractionState,q=e.onContextMenu,T=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:GG()},data:fj(e)},ext:zN(e),component(){VG(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",Pe={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 Me(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:Me}),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 Oe=function(){return Oe=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},Oe.apply(this,arguments)};function qe(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 _e(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",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(Pt(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?Mt(C+";",n,r,d-1,l):Mt(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 Pt(e,t,r,n){return ut(e,t,r,ze,Be(st),Ze(e,2,-2),0,n)}function Mt(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 Ot={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},qt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tt="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}(),Pr=new Map,Mr=new Map,Rr=1,Lr=function(e){if(Pr.has(e))return Pr.get(e);for(;Mr.has(Rr);)Rr++;var t=Rr++;return Pr.set(e,t),Mr.set(t,e),t},Ar=function(e,t){Rr=t+1,Pr.set(e,t),Mr.set(t,e)},kr="style[".concat(qt,"][").concat(_t,'="').concat(jt,'"]'),Or=new RegExp("^".concat(qt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),qr=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(Or);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ar(c,u),qr(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(qt)!==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(qt,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(qt,Tt),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=Oe(Oe({},$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 Mr.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(qt,".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(Oe(Oe({},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,qe(qe(["".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 Ot||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=Oe(Oe({},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?Oe(Oe({},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,qe([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,qe([n],o,!1)))};return n.attrs=function(n){return fn(e,t,Oe(Oe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return fn(e,t,Oe(Oe({},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,qe([e],t,!1))),o=tr(n);return new Jr(o,n)}var yn={exports:{}};function bn(){}function xn(){}xn.resetWarningCache=bn;yn.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:bn};return r.PropTypes=r,r}();var Sn=Te(yn.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,qe([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=Oe(Oe({},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}));
|
|
7
|
+
System.register(["react","react-dom","@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,P,M,R,L,A,k,O,q,T,_,j,N,F,z,W,$,H,V,B,G,U,Y;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.memo,b=e.useInsertionEffect,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){P=e.HyperCubeHandler,M=e.useMemo,R=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,_=e.onTakeSnapshot,j=e.useImperativeHandle,N=e.useTranslator,F=e.useElement,z=e.useStaleLayout,W=e.useModel,$=e.useApp,H=e.useEmbed,V=e.useKeyboard,B=e.useSelections,G=e.useRect},function(e){U=e.default},function(e){Y=e.default}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:uU()},data:Lj(e)},ext:nF(e),component(){sU(e)}}}));const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",re="#ce93d8",ne="#ba68c8",oe="#ab47bc",ie="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ue="#42a5f5",ce="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",ye="#66bb6a",be="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Pe="#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 Re(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 Le=Object.freeze({__proto__:null,default:Re}),Ae="$$material";function ke(){return ke=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},ke.apply(null,arguments)}function Oe(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 qe=function(){return qe=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},qe.apply(this,arguments)};function Te(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 _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function je(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 Ne="-ms-",Fe="-moz-",ze="-webkit-",We="comm",$e="rule",He="decl",Ve="@keyframes",Be=Math.abs,Ge=String.fromCharCode,Ue=Object.assign;function Ye(e){return e.trim()}function Ke(e,t){return(e=t.exec(e))?e[0]:e}function Xe(e,t,r){return e.replace(t,r)}function Je(e,t,r){return e.indexOf(t,r)}function Ze(e,t){return 0|e.charCodeAt(t)}function Qe(e,t,r){return e.slice(t,r)}function et(e){return e.length}function tt(e){return e.length}function rt(e,t){return t.push(e),e}function nt(e,t){return e.filter((function(e){return!Ke(e,t)}))}var ot=1,it=1,at=0,st=0,lt=0,ut="";function ct(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ot,column:it,length:a,return:"",siblings:s}}function dt(e,t){return Ue(ct("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pt(e){for(;e.root;)e=dt(e.root,{children:[e]});rt(e,e.siblings)}function ft(){return lt=st>0?Ze(ut,--st):0,it--,10===lt&&(it=1,ot--),lt}function ht(){return lt=st<at?Ze(ut,st++):0,it++,10===lt&&(it=1,ot++),lt}function mt(){return Ze(ut,st)}function gt(){return st}function vt(e,t){return Qe(ut,e,t)}function yt(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 bt(e){return Ye(vt(st-1,wt(91===e?e+2:40===e?e+1:e)))}function xt(e){for(;(lt=mt())&<<33;)ht();return yt(e)>2||yt(lt)>3?"":" "}function St(e,t){for(;--t&&ht()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return vt(e,gt()+(t<6&&32==mt()&&32==ht()))}function wt(e){for(;ht();)switch(lt){case e:return st;case 34:case 39:34!==e&&39!==e&&wt(lt);break;case 40:41===e&&wt(e);break;case 92:ht()}return st}function Ct(e,t){for(;ht()&&e+lt!==57&&(e+lt!==84||47!==mt()););return"/*"+vt(t,st-1)+"*"+Ge(47===e?e:ht())}function Et(e){for(;!yt(mt());)ht();return vt(e,st)}function It(e){return function(e){return ut="",e}(Dt("",null,null,null,[""],e=function(e){return ot=it=1,at=et(ut=e),st=0,[]}(e),0,[0],e))}function Dt(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=ht()){case 40:if(108!=h&&58==Ze(C,d-1)){-1!=Je(C+=Xe(bt(y),"&","&\f"),"&\f",Be(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=bt(y);break;case 9:case 10:case 13:case 32:C+=xt(h);break;case 92:C+=St(gt()-1,7);continue;case 47:switch(mt()){case 42:case 47:rt(Mt(Ct(ht(),gt()),t,r,l),l);break;default:C+="/"}break;case 123*m:s[u++]=et(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Xe(C,/\f/g,"")),f>0&&et(C)-d&&rt(f>32?Rt(C+";",n,r,d-1,l):Rt(Xe(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(rt(w=Pt(C,t,r,u,c,o,s,b,x=[],S=[],d,i),i),123===y)if(0===c)Dt(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===Ze(C,3)?100:p){case 100:case 108:case 109:case 115:Dt(e,w,w,n&&rt(Pt(e,w,w,0,0,o,s,b,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Dt(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+et(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ft())continue;switch(C+=Ge(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(et(C)-1)*v,v=1;break;case 64:45===mt()&&(C+=bt(ht())),p=mt(),c=d=et(b=C+=Et(gt())),y++;break;case 45:45===h&&2==et(C)&&(m=0)}}return i}function Pt(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=tt(f),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Qe(e,p+1,p=Be(g=a[m])),x=e;y<h;++y)(x=Ye(g>0?f[y]+" "+b:Xe(b,/&\f/g,f[y])))&&(l[v++]=x);return ct(e,t,r,0===o?$e:s,l,u,c,d)}function Mt(e,t,r,n){return ct(e,t,r,We,Ge(lt),Qe(e,2,-2),0,n)}function Rt(e,t,r,n,o){return ct(e,t,r,He,Qe(e,0,n),Qe(e,n+1,-1),n,o)}function Lt(e,t,r){switch(function(e,t){return 45^Ze(e,0)?(((t<<2^Ze(e,0))<<2^Ze(e,1))<<2^Ze(e,2))<<2^Ze(e,3):0}(e,t)){case 5103:return ze+"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 ze+e+e;case 4789:return Fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+Fe+e+Ne+e+e;case 5936:switch(Ze(e,t+11)){case 114:return ze+e+Ne+Xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Ne+Xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Ne+Xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ze+e+Ne+e+e;case 6165:return ze+e+Ne+"flex-"+e+e;case 5187:return ze+e+Xe(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Ne+"flex-$1$2")+e;case 5443:return ze+e+Ne+"flex-item-"+Xe(e,/flex-|-self/g,"")+(Ke(e,/flex-|baseline/)?"":Ne+"grid-row-"+Xe(e,/flex-|-self/g,""))+e;case 4675:return ze+e+Ne+"flex-line-pack"+Xe(e,/align-content|flex-|-self/g,"")+e;case 5548:return ze+e+Ne+Xe(e,"shrink","negative")+e;case 5292:return ze+e+Ne+Xe(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+Xe(e,"-grow","")+ze+e+Ne+Xe(e,"grow","positive")+e;case 4554:return ze+Xe(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return Xe(Xe(Xe(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return Xe(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return Xe(Xe(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4200:if(!Ke(e,/flex-|baseline/))return Ne+"grid-column-align"+Qe(e,t)+e;break;case 2592:case 3360:return Ne+Xe(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ke(e.props,/grid-\w+-end/)}))?~Je(e+(r=r[t].value),"span",0)?e:Ne+Xe(e,"-start","")+e+Ne+"grid-row-span:"+(~Je(r,"span",0)?Ke(r,/\d+/):+Ke(r,/\d+/)-+Ke(e,/\d+/))+";":Ne+Xe(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ke(e.props,/grid-\w+-start/)}))?e:Ne+Xe(Xe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Xe(e,/(.+)-inline(.+)/,ze+"$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(et(e)-1-t>6)switch(Ze(e,t+1)){case 109:if(45!==Ze(e,t+4))break;case 102:return Xe(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+Fe+(108==Ze(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Je(e,"stretch",0)?Lt(Xe(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Xe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Ne+r+":"+n+s+(o?Ne+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Ze(e,t+6))return Xe(e,":",":"+ze)+e;break;case 6444:switch(Ze(e,45===Ze(e,14)?18:11)){case 120:return Xe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ze+(45===Ze(e,14)?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Ne+"$2box$3")+e;case 100:return Xe(e,":",":"+Ne)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Xe(e,"scroll-","scroll-snap-")+e}return e}function At(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function kt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case He:return e.return=e.return||e.value;case We:return"";case Ve:return e.return=e.value+"{"+At(e.children,n)+"}";case $e:if(!et(e.value=e.props.join(",")))return""}return et(r=At(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ot(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case He:return void(e.return=Lt(e.value,e.length,r));case Ve:return At([dt(e,{value:Xe(e.value,"@","@"+ze)})],n);case $e:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ke(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pt(dt(e,{props:[Xe(t,/:(read-\w+)/,":-moz-$1")]})),pt(dt(e,{props:[t]})),Ue(e,{props:nt(r,n)});break;case"::placeholder":pt(dt(e,{props:[Xe(t,/:(plac\w+)/,":"+ze+"input-$1")]})),pt(dt(e,{props:[Xe(t,/:(plac\w+)/,":-moz-$1")]})),pt(dt(e,{props:[Xe(t,/:(plac\w+)/,Ne+"input-$1")]})),pt(dt(e,{props:[t]})),Ue(e,{props:nt(r,n)})}return""}))}}var qt={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},Tt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",_t="active",jt="data-styled-version",Nt="6.1.18",Ft="/*!sc*/\n",zt="undefined"!=typeof window&&"undefined"!=typeof document,Wt=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={},Ht=Object.freeze([]),Vt=Object.freeze({});function Bt(e,t,r){return void 0===r&&(r=Vt),e.theme!==r.theme&&e.theme||t||r.theme}var Gt=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"]),Ut=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yt=/(^-|-$)/g;function Kt(e){return e.replace(Ut,"-").replace(Yt,"")}var Xt=/(a)(d)/gi,Jt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Zt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Jt(t%52)+r;return(Jt(t%52)+r).replace(Xt,"$1-$2")}var Qt,er=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},tr=function(e){return er(5381,e)};function rr(e){return Zt(tr(e)>>>0)}function nr(e){return"string"==typeof e&&!0}var or="function"==typeof Symbol&&Symbol.for,ir=or?Symbol.for("react.memo"):60115,ar=or?Symbol.for("react.forward_ref"):60112,sr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},lr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ur={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cr=((Qt={})[ar]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qt[ir]=ur,Qt);function dr(e){return("type"in(t=e)&&t.type.$$typeof)===ir?ur:"$$typeof"in e?cr[e.$$typeof]:sr;var t}var pr=Object.defineProperty,fr=Object.getOwnPropertyNames,hr=Object.getOwnPropertySymbols,mr=Object.getOwnPropertyDescriptor,gr=Object.getPrototypeOf,vr=Object.prototype;function yr(e,t,r){if("string"!=typeof t){if(vr){var n=gr(t);n&&n!==vr&&yr(e,n,r)}var o=fr(t);hr&&(o=o.concat(hr(t)));for(var i=dr(e),a=dr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in lr||r&&r[l]||a&&l in a||i&&l in i)){var u=mr(t,l);try{pr(e,l,u)}catch(e){}}}}return e}function br(e){return"function"==typeof e}function xr(e){return"object"==typeof e&&"styledComponentId"in e}function Sr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function wr(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Cr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Er(e,t,r){if(void 0===r&&(r=!1),!r&&!Cr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Er(e[n],t[n]);else if(Cr(t))for(var n in t)e[n]=Er(e[n],t[n]);return e}function Ir(e,t){Object.defineProperty(e,"toString",{value:t})}function Dr(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 Pr=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 Dr(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(Ft);return t},e}(),Mr=new Map,Rr=new Map,Lr=1,Ar=function(e){if(Mr.has(e))return Mr.get(e);for(;Rr.has(Lr);)Lr++;var t=Lr++;return Mr.set(e,t),Rr.set(t,e),t},kr=function(e,t){Lr=t+1,Mr.set(e,t),Rr.set(t,e)},Or="style[".concat(Tt,"][").concat(jt,'="').concat(Nt,'"]'),qr=new RegExp("^".concat(Tt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Tr=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)},_r=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Ft),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(qr);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(kr(c,u),Tr(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},jr=function(e){for(var t=document.querySelectorAll(Or),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Tt)!==_t&&(_r(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Nr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Tt,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Tt,_t),n.setAttribute(jt,Nt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Fr=function(){function e(e){this.element=Nr(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 Dr(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}(),zr=function(){function e(e){this.element=Nr(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}(),Wr=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=zt,Hr={isServer:!zt,useCSSOMInjection:!Wt},Vr=function(){function e(e,t,r){void 0===e&&(e=Vt),void 0===t&&(t={});var n=this;this.options=qe(qe({},Hr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&zt&&$r&&($r=!1,jr(this)),Ir(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Rr.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(Tt,".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(Ft)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Ar(e)},e.prototype.rehydrate=function(){!this.server&&zt&&jr(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(qe(qe({},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 Wr(r):t?new Fr(r):new zr(r)}(this.options),new Pr(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(Ar(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(Ar(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ar(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Br=/&/g,Gr=/^\s*\/\/.*$/gm;function Ur(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=Ur(e.children,t)),e}))}var Yr=new Vr,Kr=function(){var e,t,r,n=Vt,o=n.options,i=void 0===o?Vt:o,a=n.plugins,s=void 0===a?Ht: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(Br,t).replace(r,l))})),i.prefix&&u.push(Ot),u.push(kt);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(Gr,""),c=It(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);i.namespace&&(c=Ur(c,i.namespace));var d,p=[];return At(c,function(e){var t=tt(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||Dr(15),er(e,t.name)}),5381).toString():"",c}(),Xr=r.createContext({shouldForwardProp:void 0,styleSheet:Yr,stylis:Kr});function Jr(){return n(Xr)}Xr.Consumer;var Zr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Kr);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,Ir(this,(function(){throw Dr(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Kr),this.name+e.hash},e}(),Qr=function(e){return e>="A"&&e<="Z"};function en(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Qr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var tn=function(e){return null==e||!1===e||""===e},rn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!tn(i)&&(Array.isArray(i)&&i.isCss||br(i)?n.push("".concat(en(o),":"),i,";"):Cr(i)?n.push.apply(n,Te(Te(["".concat(o," {")],rn(i),!1),["}"],!1)):n.push("".concat(en(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in qt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function nn(e,t,r,n){return tn(e)?[]:xr(e)?[".".concat(e.styledComponentId)]:br(e)?!br(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:nn(e(t),t,r,n):e instanceof Zr?r?(e.inject(r,n),[e.getName(n)]):[e]:Cr(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply(Ht,e.map((function(e){return nn(e,t,r,n)}))):[e.toString()];var o}function on(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(br(r)&&!xr(r))return!1}return!0}var an=tr(Nt),sn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&on(e),this.componentId=t,this.baseHash=er(an,t),this.baseStyle=r,Vr.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=Sr(n,this.staticRulesId);else{var o=wr(nn(this.rules,e,t,r)),i=Zt(er(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=Sr(n,i),this.staticRulesId=i}else{for(var s=er(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=wr(nn(c,e,t,r));s=er(s,d+u),l+=d}}if(l){var p=Zt(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Sr(n,p)}}return n},e}(),ln=r.createContext(void 0);ln.Consumer;var un={};function cn(e,t,n){var i=xr(e),a=e,s=!nr(e),l=t.attrs,u=void 0===l?Ht:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Kt(e);un[r]=(un[r]||0)+1;var n="".concat(r,"-").concat(rr(Nt+r+un[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return nr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Kt(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 sn(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(ln),p=Jr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Bt(t,d,s)||Vt,m=function(e,t,r){for(var n,o=qe(qe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=br(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Sr(o[s],a[s]):"style"===s?qe(qe({},o[s]),a[s]):a[s]}return t.className&&(o.className=Sr(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=Jr();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=Sr(l,u);return b&&(x+=" "+b),m.className&&(x+=" "+m.className),v[nr(g)&&!Gt.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?Sr(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++)Er(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Ir(S,(function(){return".".concat(S.styledComponentId)})),s&&yr(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function dn(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 pn=function(e){return Object.assign(e,{isCss:!0})};function fn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(br(e)||Cr(e))return pn(nn(dn(Ht,Te([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?nn(n):pn(nn(dn(n,t)))}function hn(e,t,r){if(void 0===r&&(r=Vt),!t)throw Dr(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,fn.apply(void 0,Te([n],o,!1)))};return n.attrs=function(n){return hn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return hn(e,t,qe(qe({},r),n))},n}var mn=function(e){return hn(cn,e)},gn=mn;Gt.forEach((function(e){gn[e]=mn(e)}));var vn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=on(e),Vr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(wr(nn(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&&Vr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function yn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=wr(fn.apply(void 0,Te([e],t,!1))),o=rr(n);return new Zr(o,n)}var bn={exports:{}};function xn(){}function Sn(){}Sn.resetWarningCache=xn;bn.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:Sn,resetWarningCache:xn};return r.PropTypes=r,r}();var wn=_e(bn.exports);function Cn(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}Cn.propTypes={children:wn.node,injectFirst:wn.bool};const En=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=fn.apply(void 0,Te([e],t,!1)),i="sc-global-".concat(rr(JSON.stringify(o))),a=new vn(o,i),s=function(e){var t=Jr(),n=r.useContext(ln),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=qe(qe({},t),{theme:Bt(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.3
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
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 In(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Dn(e){return e}Cn.propTypes={defaultTheme:Sn.object,styles:Sn.oneOfType([Sn.array,Sn.string,Sn.object,Sn.func])};var Pn=Object.freeze({__proto__:null,GlobalStyles:Cn,StyledEngineProvider:wn,ThemeContext:sn,css:pn,default:En,internal_mutateStyles:In,internal_processStyles:function(e,t){return In(e,t)},internal_serializeStyles:Dn,keyframes:vn});function Mn(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 Rn(e){if(i.isValidElement(e)||!Mn(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Rn(e[r])})),t}function Ln(e,t,r={clone:!0}){const n=r.clone?Ae({},e):e;return Mn(e)&&Mn(t)&&Object.keys(t).forEach((o=>{i.isValidElement(t[o])?n[o]=t[o]:Mn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Mn(e[o])?n[o]=Ln(e[o],t[o],r):r.clone?n[o]=Mn(t[o])?Rn(t[o]):t[o]:n[o]=t[o]})),n}var An=Object.freeze({__proto__:null,default:Ln,isPlainObject:Mn});const kn=["values","unit","step"];function On(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ke(e,kn),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 qn={borderRadius:4};function Tn(e,t){return t?Ln(e,t,{clone:!1}):e}const _n={xs:0,sm:600,md:900,lg:1200,xl:1536},jn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_n[e]}px)`};function Nn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||jn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||jn;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 Fn(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function zn(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Wn=Object.freeze({__proto__:null,default:zn});function $n(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 Hn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:$n(e,r)||n,t&&(o=t(o,n,e)),o}function Vn(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=$n(e.theme,n)||{};return Nn(e,i,(e=>{let n=Hn(a,o,e);return e===n&&"string"==typeof e&&(n=Hn(a,o,`${t}${"default"===e?"":zn(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Bn={m:"margin",p:"padding"},Gn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Un={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Un[e])return[e];e=Un[e]}const[t,r]=e.split(""),n=Bn[t],o=Gn[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Kn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jn(e,t,r,n){var o;const i=null!=(o=$n(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 Zn(e){return Jn(e,"spacing",8)}function Qn(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 eo(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Qn(t,r),e)),{})}(Yn(r),n);return Nn(e,e[r],o)}function to(e,t){const r=Zn(e.theme);return Object.keys(e).map((n=>eo(e,t,n,r))).reduce(Tn,{})}function ro(e){return to(e,Kn)}function no(e){return to(e,Xn)}function oo(...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]?Tn(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function io(e){return"number"!=typeof e?e:`${e}px solid`}function ao(e,t){return Vn({prop:e,themeKey:"borders",transform:t})}ro.propTypes={},ro.filterProps=Kn,no.propTypes={},no.filterProps=Xn;const so=ao("border",io),lo=ao("borderTop",io),uo=ao("borderRight",io),co=ao("borderBottom",io),po=ao("borderLeft",io),fo=ao("borderColor"),ho=ao("borderTopColor"),mo=ao("borderRightColor"),go=ao("borderBottomColor"),vo=ao("borderLeftColor"),yo=ao("outline",io),bo=ao("outlineColor"),xo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jn(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Qn(t,e)});return Nn(e,e.borderRadius,r)}return null};xo.propTypes={},xo.filterProps=["borderRadius"],oo(so,lo,uo,co,po,fo,ho,mo,go,vo,xo,yo,bo);const So=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jn(e.theme,"spacing",8),r=e=>({gap:Qn(t,e)});return Nn(e,e.gap,r)}return null};So.propTypes={},So.filterProps=["gap"];const wo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jn(e.theme,"spacing",8),r=e=>({columnGap:Qn(t,e)});return Nn(e,e.columnGap,r)}return null};wo.propTypes={},wo.filterProps=["columnGap"];const Co=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jn(e.theme,"spacing",8),r=e=>({rowGap:Qn(t,e)});return Nn(e,e.rowGap,r)}return null};Co.propTypes={},Co.filterProps=["rowGap"];function Eo(e,t){return"grey"===t?t:e}oo(So,wo,Co,Vn({prop:"gridColumn"}),Vn({prop:"gridRow"}),Vn({prop:"gridAutoFlow"}),Vn({prop:"gridAutoColumns"}),Vn({prop:"gridAutoRows"}),Vn({prop:"gridTemplateColumns"}),Vn({prop:"gridTemplateRows"}),Vn({prop:"gridTemplateAreas"}),Vn({prop:"gridArea"}));function Io(e){return e<=1&&0!==e?100*e+"%":e}oo(Vn({prop:"color",themeKey:"palette",transform:Eo}),Vn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Eo}),Vn({prop:"backgroundColor",themeKey:"palette",transform:Eo}));const Do=Vn({prop:"width",transform:Io}),Po=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:Io(t)}};return Nn(e,e.maxWidth,t)}return null};Po.filterProps=["maxWidth"];const Mo=Vn({prop:"minWidth",transform:Io}),Ro=Vn({prop:"height",transform:Io}),Lo=Vn({prop:"maxHeight",transform:Io}),Ao=Vn({prop:"minHeight",transform:Io});Vn({prop:"size",cssProperty:"width",transform:Io}),Vn({prop:"size",cssProperty:"height",transform:Io});oo(Do,Po,Mo,Ro,Lo,Ao,Vn({prop:"boxSizing"}));const ko={border:{themeKey:"borders",transform:io},borderTop:{themeKey:"borders",transform:io},borderRight:{themeKey:"borders",transform:io},borderBottom:{themeKey:"borders",transform:io},borderLeft:{themeKey:"borders",transform:io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:io},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xo},color:{themeKey:"palette",transform:Eo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Eo},backgroundColor:{themeKey:"palette",transform:Eo},p:{style:no},pt:{style:no},pr:{style:no},pb:{style:no},pl:{style:no},px:{style:no},py:{style:no},padding:{style:no},paddingTop:{style:no},paddingRight:{style:no},paddingBottom:{style:no},paddingLeft:{style:no},paddingX:{style:no},paddingY:{style:no},paddingInline:{style:no},paddingInlineStart:{style:no},paddingInlineEnd:{style:no},paddingBlock:{style:no},paddingBlockStart:{style:no},paddingBlockEnd:{style:no},m:{style:ro},mt:{style:ro},mr:{style:ro},mb:{style:ro},ml:{style:ro},mx:{style:ro},my:{style:ro},margin:{style:ro},marginTop:{style:ro},marginRight:{style:ro},marginBottom:{style:ro},marginLeft:{style:ro},marginX:{style:ro},marginY:{style:ro},marginInline:{style:ro},marginInlineStart:{style:ro},marginInlineEnd:{style:ro},marginBlock:{style:ro},marginBlockStart:{style:ro},marginBlockEnd:{style:ro},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:So},rowGap:{style:Co},columnGap:{style:wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Io},maxWidth:{style:Po},minWidth:{transform:Io},height:{transform:Io},maxHeight:{transform:Io},minHeight:{transform:Io},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=$n(r,s)||{};if(u)return u(o);return Nn(o,t,(t=>{let r=Hn(c,l,t);return t===r&&"string"==typeof t&&(r=Hn(c,l,`${e}${"default"===t?"":zn(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:ko;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=Tn(u,e(r,o,i,s));else{const e=Nn({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=Tn(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Tn(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Fn(l,u)}:Fn(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const qo=Oo();function To(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:{}}qo.filterProps=["sx"];const _o=["breakpoints","palette","spacing","shape"];function jo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=ke(e,_o),s=On(r),l=function(e=8){if(e.mui)return e;const t=Zn({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=Ln({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},n),spacing:l,shape:Ae({},qn,i)},a);return u.applyStyles=To,u=t.reduce(((e,t)=>Ln(e,t)),u),u.unstable_sxConfig=Ae({},ko,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return qo({sx:e,theme:this})},u}var No=Object.freeze({__proto__:null,default:jo,private_createBreakpoints:On,unstable_applyStyles:To});function Fo(e=null){const t=i.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const zo=jo();function Wo(e=zo){return Fo(e)}var $o={exports:{}},Ho={},Vo=r,Bo=Symbol.for("react.element"),Go=Symbol.for("react.fragment"),Uo=Object.prototype.hasOwnProperty,Yo=Vo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ko={key:!0,ref:!0,__self:!0,__source:!0};function Xo(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)Uo.call(t,n)&&!Ko.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:Bo,type:e,key:i,ref:a,props:o,_owner:Yo.current}}Ho.Fragment=Go,Ho.jsx=Xo,Ho.jsxs=Xo,$o.exports=Ho;var Jo=$o.exports;function Zo(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Qo({styles:e,themeId:t,defaultTheme:r={}}){const n=Wo(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Zo("function"==typeof e?e(o):e))):Zo(i)),Jo.jsx(Cn,{styles:i})}const ei=["sx"];function ti(e){const{sx:t}=e,r=ke(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:ko;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 Mn(r)?Ae({},n,r):n}:Ae({},n,t),Ae({},o,{sx:i})}var ri=Object.freeze({__proto__:null,default:qo,extendSxProp:ti,unstable_createStyleFunctionSx:Oo,unstable_defaultSxConfig:ko});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"),vi=Symbol.for("react.profiler"),yi=Symbol.for("react.consumer"),bi=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"),Ii=Symbol.for("react.offscreen"),Di=Symbol.for("react.client.reference");function Pi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fi:switch(e=e.type){case mi:case vi:case gi:case Si:case wi:return e;default:switch(e=e&&e.$$typeof){case bi:case xi:case Ei:case Ci:case yi:return e;default:return t}}case hi:return t}}}pi.ContextConsumer=yi,pi.ContextProvider=bi,pi.Element=fi,pi.ForwardRef=xi,pi.Fragment=mi,pi.Lazy=Ei,pi.Memo=Ci,pi.Portal=hi,pi.Profiler=vi,pi.StrictMode=gi,pi.Suspense=Si,pi.SuspenseList=wi,pi.isContextConsumer=function(e){return Pi(e)===yi},pi.isContextProvider=function(e){return Pi(e)===bi},pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fi},pi.isForwardRef=function(e){return Pi(e)===xi},pi.isFragment=function(e){return Pi(e)===mi},pi.isLazy=function(e){return Pi(e)===Ei},pi.isMemo=function(e){return Pi(e)===Ci},pi.isPortal=function(e){return Pi(e)===hi},pi.isProfiler=function(e){return Pi(e)===vi},pi.isStrictMode=function(e){return Pi(e)===gi},pi.isSuspense=function(e){return Pi(e)===Si},pi.isSuspenseList=function(e){return Pi(e)===wi},pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mi||e===vi||e===gi||e===Si||e===wi||e===Ii||"object"==typeof e&&null!==e&&(e.$$typeof===Ei||e.$$typeof===Ci||e.$$typeof===bi||e.$$typeof===yi||e.$$typeof===xi||e.$$typeof===Di||void 0!==e.getModuleId)},pi.typeOf=Pi,di.exports=pi;var Mi=di.exports;const Ri=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Li(e){const t=`${e}`.match(Ri);return t&&t[1]||""}function Ai(e,t=""){return e.displayName||e.name||Li(e)||t}function ki(e,t,r){const n=Ai(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Oi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ai(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Mi.ForwardRef:return ki(e,e.render,"ForwardRef");case Mi.Memo:return ki(e,e.type,"memo");default:return}}},getFunctionName:Li});function qi(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]=qi(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 _i(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:_i});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(Me(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(Me(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 _i(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 Wi(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function $i(e){return e&&e.ownerDocument||document}function Hi(e){return $i(e).defaultView||window}function Vi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Bi=0;const Gi=i["useId".toString()];function Ui(e){if(void 0!==Gi){return Gi()}return function(e){const[t,r]=i.useState(e),n=t;return i.useEffect((()=>{null==t&&(Bi+=1,r(`mui-${Bi}`))}),[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=>{Vi(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=ke(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=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=fa(Ae({},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=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||pa(e)?t:Ae({},t,{ownerState:Ae({},t.ownerState,r)})}(r,Ae({},l,{ref:Xi(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function va(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 ya=i.createContext(null);function ba(){return i.useContext(ya)}var xa="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sa(e){const{children:t,theme:r}=e,n=ba(),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[xa]=null!==n),e}),[r,n]);return Jo.jsx(ya.Provider,{value:o,children:t})}const wa=["value"],Ca=i.createContext();function Ea(e){let{value:t}=e,r=ke(e,wa);return Jo.jsx(Ca.Provider,Ae({value:null==t||t},r))}const Ia=i.createContext(void 0);function Da({value:e,children:t}){return Jo.jsx(Ia.Provider,{value:e,children:t})}function Pa({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?qi(o.defaultProps,n):o.styleOverrides||o.variants?n:qi(o,n)}({props:e,name:t,theme:{components:i.useContext(Ia)}})}const Ma={};function Ra(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 La(e){const{children:t,theme:r,themeId:n}=e,o=Fo(Ma),i=ba()||Ma,a=Ra(n,o,r),s=Ra(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Fo(),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?Jo.jsx(Qo,{styles:o}):null}(a);return Jo.jsx(Sa,{theme:s,children:Jo.jsx(sn.Provider,{value:a,children:Jo.jsx(Ea,{value:l,children:Jo.jsxs(Da,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Aa(e){return Aa="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},Aa(e)}function ka(e){var t=function(e,t){if("object"!=Aa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Aa(t)?t:t+""}function Oa(e,t){return Ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var qa={},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 _a=Ta.exports,ja=_e(Re),Na=_e(ji),Fa=_a;Object.defineProperty(qa,"__esModule",{value:!0});var za=qa.alpha=Qa;qa.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})},qa.colorChannel=void 0;var Wa=qa.darken=es;qa.decomposeColor=Ya,qa.emphasize=rs;var $a=qa.getContrastRatio=function(e,t){const r=Za(e),n=Za(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};qa.getLuminance=Za,qa.hexToRgb=Ua,qa.hslToRgb=Ja;var Ha=qa.lighten=ts;qa.private_safeAlpha=function(e,t,r){try{return Qa(e,t)}catch(t){return e}},qa.private_safeColorChannel=void 0,qa.private_safeDarken=function(e,t,r){try{return es(e,t)}catch(t){return e}},qa.private_safeEmphasize=function(e,t,r){try{return rs(e,t)}catch(t){return e}},qa.private_safeLighten=function(e,t,r){try{return ts(e,t)}catch(t){return e}},qa.recomposeColor=Xa,qa.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 Va=Fa(ja),Ba=Fa(Na);function Ga(e,t=0,r=1){return(0,Ba.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,Va.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,Va.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(" ")};qa.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=Ga(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=Ga(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=Ga(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)}qa.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=Ha(e.main,o):"dark"===t&&(e.dark=Wa(e.main,i)))}function ss(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ke(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: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 $a(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=Ae({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Me(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 Ln(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:Pe,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=ke(r,ls),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===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 Ln(Ae({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 vs(e){return`${Math.round(e)}ms`}function ys(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bs(e){const t=Ae({},ms,e.easing),r=Ae({},gs,e.duration);return Ae({getAutoHeightDuration:ys,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ke(n,hs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:vs(o)} ${i} ${"string"==typeof a?a:vs(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=ke(e,Ss);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=ss(n),l=jo(e);let u=Ln(l,{mixins:Oa(l.breakpoints,r),palette:s,shadows:fs.slice(),typography:ds(s,i),transitions:bs(o),zIndex:Ae({},xs)});return u=Ln(u,a),u=t.reduce(((e,t)=>Ln(e,t)),u),u.unstable_sxConfig=Ae({},ko,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return qo({sx:e,theme:this})},u}const Cs=ws();function Es(){const e=Wo(Cs);return e[Le]||e}var Is,Ds={},Ps={exports:{}};function Ms(){return Is||(Is=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}(Ps)),Ps.exports}var Rs,Ls={exports:{}};function As(){return Rs||(Rs=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}(Ls)),Ls.exports}var ks=_e(Pn),Os=_e(An),qs=_e(Wn),Ts=_e(Oi),_s=_e(No),js=_e(ri),Ns=_a;Object.defineProperty(Ds,"__esModule",{value:!0});var Fs=Ds.default=function(e={}){const{themeId:t,defaultTheme:r=Zs,rootShouldForwardProp:n=Xs,slotShouldForwardProp:o=Xs}=e,i=e=>(0,Bs.default)((0,zs.default)({},e,{theme:el((0,zs.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,$s.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tl(Qs(l))}=a,p=(0,Ws.default)(a,Ys),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Xs;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,$s.default)(e,(0,zs.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Hs.isPlainObject)(e)?n=>{const o=el({theme:n.theme,defaultTheme:r,themeId:t});return rl(e,(0,zs.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,b=(n,...o)=>{let a=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=el((0,zs.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]=rl(r,(0,zs.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=el((0,zs.default)({},e,{defaultTheme:r,themeId:t}));return rl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,zs.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=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};Ds.shouldForwardProp=Xs,Ds.systemDefaultTheme=void 0;var zs=Ns(Ms()),Ws=Ns(As()),$s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Ks(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}(ks),Hs=Os;Ns(qs),Ns(Ts);var Vs=Ns(_s),Bs=Ns(js);const Gs=["ownerState"],Us=["variants"],Ys=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ks(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ks=function(e){return e?r:t})(e)}function Xs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Js(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zs=Ds.systemDefaultTheme=(0,Vs.default)(),Qs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function el({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function tl(e){return e?(t,r)=>r[e]:null}function rl(e,t,r){let{ownerState:n}=t,o=(0,Ws.default)(t,Gs);const i="function"==typeof e?e((0,zs.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>rl(e,(0,zs.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ws.default)(i,Us);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,zs.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,zs.default)({ownerState:n},o,n)):e.style;t.push(r?Js((0,$s.internal_serializeStyles)(i),r):i)}})),t}return r?Js((0,$s.internal_serializeStyles)(i),r):i}function nl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ol=e=>nl(e)&&"classes"!==e,il=Fs({themeId:Le,defaultTheme:Cs,rootShouldForwardProp:ol}),al=["theme"];function sl(e){let{theme:t}=e,r=ke(e,al);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}))),Jo.jsx(La,Ae({},r,{themeId:n?Le:void 0,theme:o}))}const ll=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ul(e){return Pa(e)}function cl(e){return ui("MuiSvgIcon",e)}ci("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pl=il("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${zn(r.color)}`],t[`fontSize${zn(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]}})),fl=i.forwardRef((function(e,t){const r=ul({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,dl),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 da({root:["root","inherit"!==t&&`color${zn(t)}`,`fontSize${zn(r)}`]},cl,n)})(m);return Jo.jsxs(pl,Ae({as:s,className:ai(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?Jo.jsx("title",{children:d}):null]}))}));function hl(e,t){function r(r,n){return Jo.jsx(fl,Ae({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=fl.muiName,i.memo(i.forwardRef(r))}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ml(e,t)}function gl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ml(e,t)}fl.muiName="SvgIcon";var vl=!1,yl=r.createContext(null),bl="unmounted",xl="exited",Sl="entering",wl="entered",Cl="exiting",El=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=xl,n.appearStatus=Sl):o=wl:o=t.unmountOnExit||t.mountOnEnter?bl:xl,n.state={status:o},n.nextCallback=null,n}gl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===bl?{status:xl}: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!==Sl&&r!==wl&&(t=Sl):r!==Sl&&r!==wl||(t=Cl)}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===Sl){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===xl&&this.setState({status:bl})},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||vl?this.safeSetState({status:wl},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Sl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:wl},(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&&!vl?(this.props.onExit(n),this.safeSetState({status:Cl},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:xl},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:xl},(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===bl)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(yl.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Il(){}function Dl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pl(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 Ml(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Rl(e,t,r){var n=Pl(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:Ml(l,"exit",e),enter:Ml(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:r.bind(null,l),in:!0,exit:Ml(l,"exit",e),enter:Ml(l,"enter",e)})}})),o}El.contextType=yl,El.propTypes={},El.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Il,onEntering:Il,onEntered:Il,onExit:Il,onExiting:Il,onExited:Il},El.UNMOUNTED=bl,El.EXITED=xl,El.ENTERING=Sl,El.ENTERED=wl,El.EXITING=Cl;var Ll=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Al=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Dl(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}gl(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,Pl(r.children,(function(e){return s(e,{onExited:n.bind(null,e),in:!0,appear:Ml(e,"appear",r),enter:Ml(e,"enter",r),exit:Ml(e,"exit",r)})}))):Rl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Pl(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=Ll(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(yl.Provider,{value:i},a):r.createElement(yl.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Al.propTypes={},Al.defaultProps={component:"div",childFactory:function(e){return e}};const kl=e=>e.scrollTop;function Ol(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 ql(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 Tl=["className","component","elevation","square","variant"],_l=il("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(${za("#fff",ll(t.elevation))}, ${za("#fff",ll(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),jl=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=ke(r,Tl),u=Ae({},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}`]},ql,o)})(u);return Jo.jsx(_l,Ae({as:o,ownerState:u,className:ai(c.root,n),ref:t},l))}));const Nl=ci("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Fl=["center","classes","className"];let zl,Wl,$l,Hl,Vl=e=>e;const Bl=vn(zl||(zl=Vl`
|
|
15
|
+
function In(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):gn(e),r}function Dn(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Pn(e){return e}En.propTypes={defaultTheme:wn.object,styles:wn.oneOfType([wn.array,wn.string,wn.object,wn.func])};var Mn=Object.freeze({__proto__:null,GlobalStyles:En,StyledEngineProvider:Cn,ThemeContext:ln,css:fn,default:In,internal_mutateStyles:Dn,internal_processStyles:function(e,t){return Dn(e,t)},internal_serializeStyles:Pn,keyframes:yn});function Rn(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 Ln(e){if(i.isValidElement(e)||!Rn(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ln(e[r])})),t}function An(e,t,r={clone:!0}){const n=r.clone?ke({},e):e;return Rn(e)&&Rn(t)&&Object.keys(t).forEach((o=>{i.isValidElement(t[o])?n[o]=t[o]:Rn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rn(e[o])?n[o]=An(e[o],t[o],r):r.clone?n[o]=Rn(t[o])?Ln(t[o]):t[o]:n[o]=t[o]})),n}var kn=Object.freeze({__proto__:null,default:An,isPlainObject:Rn});const On=["values","unit","step"];function qn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Oe(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)=>ke({},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 ke({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 Tn={borderRadius:4};function _n(e,t){return t?An(e,t,{clone:!1}):e}const jn={xs:0,sm:600,md:900,lg:1200,xl:1536},Nn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jn[e]}px)`};function Fn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Nn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Nn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||jn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function zn(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Wn(e){if("string"!=typeof e)throw new Error(Re(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $n=Object.freeze({__proto__:null,default:Wn});function Hn(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 Vn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Hn(e,r)||n,t&&(o=t(o,n,e)),o}function Bn(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=Hn(e.theme,n)||{};return Fn(e,i,(e=>{let n=Vn(a,o,e);return e===n&&"string"==typeof e&&(n=Vn(a,o,`${t}${"default"===e?"":Wn(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Gn={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=Gn[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=Hn(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 Fn(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(_n,{})}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]?_n(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 Bn({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"),vo=so("borderBottomColor"),yo=so("borderLeftColor"),bo=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 Fn(e,e.borderRadius,r)}return null};So.propTypes={},So.filterProps=["borderRadius"],io(lo,uo,co,po,fo,ho,mo,go,vo,yo,So,bo,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 Fn(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 Fn(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 Fn(e,e.rowGap,r)}return null};Eo.propTypes={},Eo.filterProps=["rowGap"];function Io(e,t){return"grey"===t?t:e}io(wo,Co,Eo,Bn({prop:"gridColumn"}),Bn({prop:"gridRow"}),Bn({prop:"gridAutoFlow"}),Bn({prop:"gridAutoColumns"}),Bn({prop:"gridAutoRows"}),Bn({prop:"gridTemplateColumns"}),Bn({prop:"gridTemplateRows"}),Bn({prop:"gridTemplateAreas"}),Bn({prop:"gridArea"}));function Do(e){return e<=1&&0!==e?100*e+"%":e}io(Bn({prop:"color",themeKey:"palette",transform:Io}),Bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Io}),Bn({prop:"backgroundColor",themeKey:"palette",transform:Io}));const Po=Bn({prop:"width",transform:Do}),Mo=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])||jn[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:Do(t)}};return Fn(e,e.maxWidth,t)}return null};Mo.filterProps=["maxWidth"];const Ro=Bn({prop:"minWidth",transform:Do}),Lo=Bn({prop:"height",transform:Do}),Ao=Bn({prop:"maxHeight",transform:Do}),ko=Bn({prop:"minHeight",transform:Do});Bn({prop:"size",cssProperty:"width",transform:Do}),Bn({prop:"size",cssProperty:"height",transform:Do});io(Po,Mo,Ro,Lo,Ao,ko,Bn({prop:"boxSizing"}));const Oo={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:Io},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Io},backgroundColor:{themeKey:"palette",transform:Io},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:Do},maxWidth:{style:Mo},minWidth:{transform:Do},height:{transform:Do},maxHeight:{transform:Do},minHeight:{transform:Do},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qo(){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=Hn(r,s)||{};if(u)return u(o);return Fn(o,t,(t=>{let r=Vn(c,l,t);return t===r&&"string"==typeof t&&(r=Vn(c,l,`${e}${"default"===t?"":Wn(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:Oo;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=_n(u,e(r,o,i,s));else{const e=Fn({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=_n(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=_n(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":zn(l,u)}:zn(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const To=qo();function _o(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=Oe(e,jo),s=qn(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=An({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},n),spacing:l,shape:ke({},Tn,i)},a);return u.applyStyles=_o,u=t.reduce(((e,t)=>An(e,t)),u),u.unstable_sxConfig=ke({},Oo,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:qn,unstable_applyStyles:_o});function zo(e=null){const t=i.useContext(ln);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Wo=No();function $o(e=Wo){return zo(e)}var Ho={exports:{}},Vo={},Bo=r,Go=Symbol.for("react.element"),Uo=Symbol.for("react.fragment"),Yo=Object.prototype.hasOwnProperty,Ko=Bo.__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:Go,type:e,key:i,ref:a,props:o,_owner:Ko.current}}Vo.Fragment=Uo,Vo.jsx=Jo,Vo.jsxs=Jo,Ho.exports=Vo;var Zo=Ho.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=$o(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(En,{styles:i})}const ti=["sx"];function ri(e){const{sx:t}=e,r=Oe(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:Oo;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 Rn(r)?ke({},n,r):n}:ke({},n,t),ke({},o,{sx:i})}var ni=Object.freeze({__proto__:null,default:To,extendSxProp:ri,unstable_createStyleFunctionSx:qo,unstable_defaultSxConfig:Oo});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={exports:{}},fi={},hi=Symbol.for("react.transitional.element"),mi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),vi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),bi=Symbol.for("react.consumer"),xi=Symbol.for("react.context"),Si=Symbol.for("react.forward_ref"),wi=Symbol.for("react.suspense"),Ci=Symbol.for("react.suspense_list"),Ei=Symbol.for("react.memo"),Ii=Symbol.for("react.lazy"),Di=Symbol.for("react.offscreen"),Pi=Symbol.for("react.client.reference");function Mi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case gi:case yi:case vi:case wi:case Ci:return e;default:switch(e=e&&e.$$typeof){case xi:case Si:case Ii:case Ei:case bi:return e;default:return t}}case mi:return t}}}fi.ContextConsumer=bi,fi.ContextProvider=xi,fi.Element=hi,fi.ForwardRef=Si,fi.Fragment=gi,fi.Lazy=Ii,fi.Memo=Ei,fi.Portal=mi,fi.Profiler=yi,fi.StrictMode=vi,fi.Suspense=wi,fi.SuspenseList=Ci,fi.isContextConsumer=function(e){return Mi(e)===bi},fi.isContextProvider=function(e){return Mi(e)===xi},fi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},fi.isForwardRef=function(e){return Mi(e)===Si},fi.isFragment=function(e){return Mi(e)===gi},fi.isLazy=function(e){return Mi(e)===Ii},fi.isMemo=function(e){return Mi(e)===Ei},fi.isPortal=function(e){return Mi(e)===mi},fi.isProfiler=function(e){return Mi(e)===yi},fi.isStrictMode=function(e){return Mi(e)===vi},fi.isSuspense=function(e){return Mi(e)===wi},fi.isSuspenseList=function(e){return Mi(e)===Ci},fi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===gi||e===yi||e===vi||e===wi||e===Ci||e===Di||"object"==typeof e&&null!==e&&(e.$$typeof===Ii||e.$$typeof===Ei||e.$$typeof===xi||e.$$typeof===bi||e.$$typeof===Si||e.$$typeof===Pi||void 0!==e.getModuleId)},fi.typeOf=Mi,pi.exports=fi;var Ri=pi.exports;const Li=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ai(e){const t=`${e}`.match(Li);return t&&t[1]||""}function ki(e,t=""){return e.displayName||e.name||Ai(e)||t}function Oi(e,t,r){const n=ki(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var qi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ki(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ri.ForwardRef:return Oi(e,e.render,"ForwardRef");case Ri.Memo:return Oi(e,e.type,"memo");default:return}}},getFunctionName:Ai});function Ti(e,t){const r=ke({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ke({},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]=ke({},i),Object.keys(o).forEach((e=>{r[n][e]=Ti(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const _i="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ji(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ni=Object.freeze({__proto__:null,default:ji});function Fi(e){if(e.type)return e;if("#"===e.charAt(0))return Fi(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(Re(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(Re(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function zi(e,t){return e=Fi(e),t=function(e,t=0,r=1){return ji(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 Wi(...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 Hi(e){return e&&e.ownerDocument||document}function Vi(e){return Hi(e).defaultView||window}function Bi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Gi=0;const Ui=i["useId".toString()];function Yi(e){if(void 0!==Ui){return Ui()}return function(e){const[t,r]=i.useState(e),n=t;return i.useEffect((()=>{null==t&&(Gi+=1,r(`mui-${Gi}`))}),[t]),n}(e)}function Ki({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 Xi(e){const t=i.useRef(e);return _i((()=>{t.current=e})),i.useRef(((...e)=>(0,t.current)(...e))).current}function Ji(...e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Bi(e,t)}))}),e)}const Zi={};const Qi=[];class ea{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ea}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ta(){const e=function(e,t){const r=i.useRef(Zi);return r.current===Zi&&(r.current=e(t)),r}(ea.create).current;return function(e){i.useEffect(e,Qi)}(e.disposeEffect),e}let ra=!0,na=!1;const oa=new ea,ia={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 aa(e){e.metaKey||e.altKey||e.ctrlKey||(ra=!0)}function sa(){ra=!1}function la(){"hidden"===this.visibilityState&&na&&(ra=!0)}function ua(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ra||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ia[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ca(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",aa,!0),t.addEventListener("mousedown",sa,!0),t.addEventListener("pointerdown",sa,!0),t.addEventListener("touchstart",sa,!0),t.addEventListener("visibilitychange",la,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ua(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(na=!0,oa.start(100,(()=>{na=!1})),t.current=!1,!0)},ref:e}}function da(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function pa(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 fa(e){return"string"==typeof e}function ha(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 ma(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 ga=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function va(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Oe(e,ga),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=ke({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=ke({},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=ha(ke({},o,n)),s=ma(n),l=ma(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=ke({},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=ke({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ke({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||fa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,r)})}(r,ke({},l,{ref:Ji(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function ya(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 ba=i.createContext(null);function xa(){return i.useContext(ba)}var Sa="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wa(e){const{children:t,theme:r}=e,n=xa(),o=i.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(n,r);return null!=e&&(e[Sa]=null!==n),e}),[r,n]);return Zo.jsx(ba.Provider,{value:o,children:t})}const Ca=["value"],Ea=i.createContext();function Ia(e){let{value:t}=e,r=Oe(e,Ca);return Zo.jsx(Ea.Provider,ke({value:null==t||t},r))}const Da=i.createContext(void 0);function Pa({value:e,children:t}){return Zo.jsx(Da.Provider,{value:e,children:t})}function Ma({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?Ti(o.defaultProps,n):o.styleOverrides||o.variants?n:Ti(o,n)}({props:e,name:t,theme:{components:i.useContext(Da)}})}const Ra={};function La(e,t,r,n=!1){return i.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?ke({},t,{[e]:i}):i;return n?()=>a:a}return ke({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Aa(e){const{children:t,theme:r,themeId:n}=e,o=zo(Ra),i=xa()||Ra,a=La(n,o,r),s=La(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=zo(),r=Yi()||"",{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};`:"",_i((()=>{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(wa,{theme:s,children:Zo.jsx(ln.Provider,{value:a,children:Zo.jsx(Ia,{value:l,children:Zo.jsxs(Pa,{value:null==a?void 0:a.components,children:[u,t]})})})})}function ka(e){return ka="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},ka(e)}function Oa(e){var t=function(e,t){if("object"!=ka(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==ka(t)?t:t+""}function qa(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ta={},_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 ja=_a.exports,Na=je(Le),Fa=je(Ni),za=ja;Object.defineProperty(Ta,"__esModule",{value:!0});var Wa=Ta.alpha=es;Ta.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ka(e),a=Ka(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ja({type:"rgb",values:s})},Ta.colorChannel=void 0;var $a=Ta.darken=ts;Ta.decomposeColor=Ka,Ta.emphasize=ns;var Ha=Ta.getContrastRatio=function(e,t){const r=Qa(e),n=Qa(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Ta.getLuminance=Qa,Ta.hexToRgb=Ya,Ta.hslToRgb=Za;var Va=Ta.lighten=rs;Ta.private_safeAlpha=function(e,t,r){try{return es(e,t)}catch(t){return e}},Ta.private_safeColorChannel=void 0,Ta.private_safeDarken=function(e,t,r){try{return ts(e,t)}catch(t){return e}},Ta.private_safeEmphasize=function(e,t,r){try{return ns(e,t)}catch(t){return e}},Ta.private_safeLighten=function(e,t,r){try{return rs(e,t)}catch(t){return e}},Ta.recomposeColor=Ja,Ta.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ka(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 Ba=za(Na),Ga=za(Fa);function Ua(e,t=0,r=1){return(0,Ga.default)(e,t,r)}function Ya(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 Ka(e){if(e.type)return e;if("#"===e.charAt(0))return Ka(Ya(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ba.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,Ba.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Xa=e=>{const t=Ka(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Ta.colorChannel=Xa;function Ja(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 Za(e){e=Ka(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])),Ja({type:s,values:l})}function Qa(e){let t="hsl"===(e=Ka(e)).type||"hsla"===e.type?Ka(Za(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 es(e,t){return e=Ka(e),t=Ua(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ja(e)}function ts(e,t){if(e=Ka(e),t=Ua(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 Ja(e)}function rs(e,t){if(e=Ka(e),t=Ua(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 Ja(e)}function ns(e,t=.15){return Qa(e)>.5?ts(e,t):rs(e,t)}Ta.private_safeColorChannel=(e,t)=>{try{return Xa(e)}catch(t){return e}};const os=["mode","contrastThreshold","tonalOffset"],is={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:K.white,default:K.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}},as={text:{primary:K.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:K.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 ss(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=Va(e.main,o):"dark"===t&&(e.dark=$a(e.main,i)))}function ls(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Oe(e,os),i=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ue}:{main:ce,light:ue,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:re,light:te,dark:oe}:{main:ie,light:ne,dark:ae}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Z,light:X,dark:Q}:{main:Q,light:J,dark:ee}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fe,light:pe,dark:me}:{main:me,light:he,dark:ge}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ye,light:ve,dark:xe}:{main:Se,light:be,dark:we}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Pe}}(t);function d(e){return Ha(e,as.text.primary)>=r?as.text.primary:is.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ke({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Re(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Re(12,t?` (${t})`:"",JSON.stringify(e.main)));return ss(e,"light",o,n),ss(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:as,light:is};return An(ke({common:ke({},K),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 us=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const cs={textTransform:"uppercase"},ds='"Roboto", "Helvetica", "Arial", sans-serif';function ps(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ds,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Oe(r,us),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return ke({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ds?{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,cs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,cs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(ke({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function fs(...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 hs=["none",fs(0,2,1,-1,0,1,1,0,0,1,3,0),fs(0,3,1,-2,0,2,2,0,0,1,5,0),fs(0,3,3,-2,0,3,4,0,0,1,8,0),fs(0,2,4,-1,0,4,5,0,0,1,10,0),fs(0,3,5,-1,0,5,8,0,0,1,14,0),fs(0,3,5,-1,0,6,10,0,0,1,18,0),fs(0,4,5,-2,0,7,10,1,0,2,16,1),fs(0,5,5,-3,0,8,10,1,0,3,14,2),fs(0,5,6,-3,0,9,12,1,0,3,16,2),fs(0,6,6,-3,0,10,14,1,0,4,18,3),fs(0,6,7,-4,0,11,15,1,0,4,20,3),fs(0,7,8,-4,0,12,17,2,0,5,22,4),fs(0,7,8,-4,0,13,19,2,0,5,24,4),fs(0,7,9,-4,0,14,21,2,0,5,26,4),fs(0,8,9,-5,0,15,22,2,0,6,28,5),fs(0,8,10,-5,0,16,24,2,0,6,30,5),fs(0,8,11,-5,0,17,26,2,0,6,32,5),fs(0,9,11,-5,0,18,28,2,0,7,34,6),fs(0,9,12,-6,0,19,29,2,0,7,36,6),fs(0,10,13,-6,0,20,31,3,0,8,38,7),fs(0,10,13,-6,0,21,33,3,0,8,40,7),fs(0,10,14,-6,0,22,35,3,0,8,42,7),fs(0,11,14,-7,0,23,36,3,0,9,44,8),fs(0,11,15,-7,0,24,38,3,0,9,46,8)],ms=["duration","easing","delay"],gs={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)"},vs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ys(e){return`${Math.round(e)}ms`}function bs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xs(e){const t=ke({},gs,e.easing),r=ke({},vs,e.duration);return ke({getAutoHeightDuration:bs,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Oe(n,ms),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ys(o)} ${i} ${"string"==typeof a?a:ys(a)}`)).join(",")}},e,{easing:t,duration:r})}const Ss={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ws=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cs(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Oe(e,ws);if(e.vars&&void 0===e.generateCssVars)throw new Error(Re(18));const s=ls(n),l=No(e);let u=An(l,{mixins:qa(l.breakpoints,r),palette:s,shadows:hs.slice(),typography:ps(s,i),transitions:xs(o),zIndex:ke({},Ss)});return u=An(u,a),u=t.reduce(((e,t)=>An(e,t)),u),u.unstable_sxConfig=ke({},Oo,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return To({sx:e,theme:this})},u}const Es=Cs();function Is(){const e=$o(Es);return e[Ae]||e}var Ds,Ps={},Ms={exports:{}};function Rs(){return Ds||(Ds=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}(Ms)),Ms.exports}var Ls,As={exports:{}};function ks(){return Ls||(Ls=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 Os=je(Mn),qs=je(kn),Ts=je($n),_s=je(qi),js=je(Fo),Ns=je(ni),Fs=ja;Object.defineProperty(Ps,"__esModule",{value:!0});var zs=Ps.default=function(e={}){const{themeId:t,defaultTheme:r=Qs,rootShouldForwardProp:n=Js,slotShouldForwardProp:o=Js}=e,i=e=>(0,Gs.default)((0,Ws.default)({},e,{theme:tl((0,Ws.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Hs.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=rl(el(l))}=a,p=(0,$s.default)(a,Ks),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Js;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,Hs.default)(e,(0,Ws.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Vs.isPlainObject)(e)?n=>{const o=tl({theme:n.theme,defaultTheme:r,themeId:t});return nl(e,(0,Ws.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,b=(n,...o)=>{let a=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=tl((0,Ws.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]=nl(r,(0,Ws.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=tl((0,Ws.default)({},e,{defaultTheme:r,themeId:t}));return nl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ws.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=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};Ps.shouldForwardProp=Js,Ps.systemDefaultTheme=void 0;var Ws=Fs(Rs()),$s=Fs(ks()),Hs=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Xs(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}(Os),Vs=qs;Fs(Ts),Fs(_s);var Bs=Fs(js),Gs=Fs(Ns);const Us=["ownerState"],Ys=["variants"],Ks=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xs(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Xs=function(e){return e?r:t})(e)}function Js(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Zs(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Qs=Ps.systemDefaultTheme=(0,Bs.default)(),el=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function rl(e){return e?(t,r)=>r[e]:null}function nl(e,t,r){let{ownerState:n}=t,o=(0,$s.default)(t,Us);const i="function"==typeof e?e((0,Ws.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>nl(e,(0,Ws.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,$s.default)(i,Ys);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ws.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,Ws.default)({ownerState:n},o,n)):e.style;t.push(r?Zs((0,Hs.internal_serializeStyles)(i),r):i)}})),t}return r?Zs((0,Hs.internal_serializeStyles)(i),r):i}function ol(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const il=e=>ol(e)&&"classes"!==e,al=zs({themeId:Ae,defaultTheme:Es,rootShouldForwardProp:il}),sl=["theme"];function ll(e){let{theme:t}=e,r=Oe(e,sl);const n=t[Ae];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=ke({},n,{vars:null}):t&&!t.vars&&(o=ke({},t,{vars:null}))),Zo.jsx(Aa,ke({},r,{themeId:n?Ae:void 0,theme:o}))}const ul=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cl(e){return Ma(e)}function dl(e){return ci("MuiSvgIcon",e)}di("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fl=al("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Wn(r.color)}`],t[`fontSize${Wn(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]}})),hl=i.forwardRef((function(e,t){const r=cl({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=Oe(r,pl),h=i.isValidElement(n)&&"svg"===n.type,m=ke({},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 pa({root:["root","inherit"!==t&&`color${Wn(t)}`,`fontSize${Wn(r)}`]},dl,n)})(m);return Zo.jsxs(fl,ke({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 ml(e,t){function r(r,n){return Zo.jsx(hl,ke({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hl.muiName,i.memo(i.forwardRef(r))}function gl(e,t){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gl(e,t)}function vl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gl(e,t)}hl.muiName="SvgIcon";var yl=!1,bl=r.createContext(null),xl="unmounted",Sl="exited",wl="entering",Cl="entered",El="exiting",Il=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=Sl,n.appearStatus=wl):o=Cl:o=t.unmountOnExit||t.mountOnEnter?xl:Sl,n.state={status:o},n.nextCallback=null,n}vl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xl?{status:Sl}: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!==wl&&r!==Cl&&(t=wl):r!==wl&&r!==Cl||(t=El)}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===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sl&&this.setState({status:xl})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[E.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||yl?this.safeSetState({status:Cl},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:wl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Cl},(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:E.findDOMNode(this);t&&!yl?(this.props.onExit(n),this.safeSetState({status:El},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Sl},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Sl},(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:E.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===xl)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=Oe(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 Dl(){}function Pl(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 Rl(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ll(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:Rl(l,"exit",e),enter:Rl(l,"enter",e)})):o[i]=s(l,{in:!1}):o[i]=s(l,{onExited:r.bind(null,l),in:!0,exit:Rl(l,"exit",e),enter:Rl(l,"enter",e)})}})),o}Il.contextType=bl,Il.propTypes={},Il.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dl,onEntering:Dl,onEntered:Dl,onExit:Dl,onExiting:Dl,onExited:Dl},Il.UNMOUNTED=xl,Il.EXITED=Sl,Il.ENTERING=wl,Il.ENTERED=Cl,Il.EXITING=El;var Al=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kl=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Pl(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}vl(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:Rl(e,"appear",r),enter:Rl(e,"enter",r),exit:Rl(e,"exit",r)})}))):Ll(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=ke({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Oe(e,["component","childFactory"]),i=this.state.contextValue,a=Al(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);kl.propTypes={},kl.defaultProps={component:"div",childFactory:function(e){return e}};const Ol=e=>e.scrollTop;function ql(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 Tl(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 _l=["className","component","elevation","square","variant"],jl=al("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 ke({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&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Wa("#fff",ul(t.elevation))}, ${Wa("#fff",ul(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Nl=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Oe(r,_l),u=ke({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return pa({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Tl,o)})(u);return Zo.jsx(jl,ke({as:o,ownerState:u,className:si(c.root,n),ref:t},l))}));const Fl=di("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zl=["center","classes","className"];let Wl,$l,Hl,Vl,Bl=e=>e;const Gl=yn(Wl||(Wl=Bl`
|
|
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
|
+
`)),Ul=yn($l||($l=Bl`
|
|
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
|
+
`)),Yl=yn(Hl||(Hl=Bl`
|
|
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
|
+
`)),Kl=al("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Xl=al((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"})(Vl||(Vl=Bl`
|
|
46
46
|
opacity: 0;
|
|
47
47
|
position: absolute;
|
|
48
48
|
|
|
@@ -85,18 +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
|
-
`),Nl.rippleVisible,Bl,550,(({theme:e})=>e.transitions.easing.easeInOut),Nl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Nl.child,Nl.childLeaving,Gl,550,(({theme:e})=>e.transitions.easing.easeInOut),Nl.childPulsate,Ul,(({theme:e})=>e.transitions.easing.easeInOut)),Xl=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=ke(r,Fl),[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,Jo.jsx(Kl,{classes:{ripple:ai(o.ripple,Nl.ripple),rippleVisible:ai(o.rippleVisible,Nl.rippleVisible),ripplePulsate:ai(o.ripplePulsate,Nl.ripplePulsate),child:ai(o.child,Nl.child),childLeaving:ai(o.childLeaving,Nl.childLeaving),childPulsate:ai(o.childPulsate,Nl.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]),Jo.jsx(Yl,Ae({className:ai(Nl.root,o.root,a),ref:m},s,{children:Jo.jsx(Al,{component:null,exit:!0,children:l})}))}));function Jl(e){return ui("MuiButtonBase",e)}const Zl=ci("MuiButtonBase",["root","disabled","focusVisible"]),Ql=["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"],eu=il("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"},[`&.${Zl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),tu=i.forwardRef((function(e,t){const r=ul({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:P,tabIndex:M=0,TouchRippleProps:R,touchRippleRef:L,type:A}=r,k=ke(r,Ql),O=i.useRef(null),q=i.useRef(null),T=Xi(q,L),{isFocusVisibleRef:_,onFocus:j,onBlur:N,ref:F}=ua(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(n,(()=>({focusVisible:()=>{W(!0),O.current.focus()}})),[]);const[$,H]=i.useState(!1);i.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!u;function B(e,t,r=d){return Ki((n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0}))}i.useEffect((()=>{z&&p&&!c&&$&&q.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",P),Z=B("stop",I),Q=B("stop",D),ee=B("stop",(e=>{N(e),!1===_.current&&W(!1),h&&h(e)}),!1),te=Ki((e=>{O.current||(O.current=e.currentTarget),j(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=Ki((e=>{p&&!ne.current&&z&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,(()=>{q.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&&q.current&&z&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,(()=>{q.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=Xi(t,F,O),ue=Ae({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=da({root:["root",t&&"disabled",r&&"focusVisible"]},Jl,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Jo.jsxs(eu,Ae({as:ae,className:ai(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:M,type:A},se,k,{children:[a,V?Jo.jsx(Xl,Ae({ref:T,center:o},R)):null]}))}));function ru(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 nu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ou=il("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${zn(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}))),iu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},au={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},su=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiTypography"}),n=(e=>au[e]||e)(r.color),o=ti(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=iu}=o,f=ke(o,nu),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]||iu[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${zn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ru,a)})(h);return Jo.jsx(ou,Ae({as:m,ref:t,ownerState:h,className:ai(g.root,a)},f))}));const lu=i.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=Xi(i.isValidElement(r)?va(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 Vi(t,a),()=>{Vi(t,null)}}),[t,a,o]),o){if(i.isValidElement(r)){const e={ref:l};return i.cloneElement(r,e)}return Jo.jsx(i.Fragment,{children:r})}return Jo.jsx(i.Fragment,{children:a?E.createPortal(r,a):a})})),uu=["onChange","maxRows","minRows","style","value"];function cu(e){return parseInt(e,10)||0}const du={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function pu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const fu=i.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:s}=e,l=ke(e,uu),{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=Hi(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=cu(i.paddingBottom)+cu(i.paddingTop),l=cu(i.borderBottomWidth)+cu(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||pu(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||pu(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);Ti((()=>{const e=Wi(g),t=null==c?void 0:c.current;if(!t)return;const r=Hi(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]),Ti((()=>{g()}));return Jo.jsxs(i.Fragment,{children:[Jo.jsx("textarea",Ae({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:a},l)),Jo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Ae({},du,a,{paddingTop:0,paddingBottom:0})})]})}));function hu({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 mu=i.createContext(void 0);function gu(){return i.useContext(mu)}function vu(e){return Jo.jsx(Qo,Ae({},e,{defaultTheme:Cs,themeId:Le}))}function yu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function bu(e,t=!1){return e&&(yu(e.value)&&""!==e.value||t&&yu(e.defaultValue)&&""!==e.defaultValue)}function xu(e){return ui("MuiInputBase",e)}const Su=ci("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wu=["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"],Cu=(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${zn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Eu=(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]},Iu=il("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cu})((({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",[`&.${Su.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%"}))),Du=il("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Eu})((({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] + .${Su.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},[`&.${Su.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"})})),Pu=Jo.jsx(vu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Mu=i.forwardRef((function(e,t){var r;const n=ul({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:P,onKeyDown:M,onKeyUp:R,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:_,type:j="text",value:N}=n,F=ke(n,wu),z=null!=y.value?y.value:N,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback((e=>{}),[]),V=Xi($,b,y.ref,H),[B,G]=i.useState(!1),U=gu(),Y=hu({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=>{bu(e)?K&&K():X&&X()}),[K,X]);Ti((()=>{W&&J({value:z})}),[z,J,W]);i.useEffect((()=>{J($.current)}),[]);let Z=v,Q=y;w&&"input"===Z&&(Q=Ae(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=fu);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 da({root:["root",`color${zn(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${zn(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"]},xu,t)})(ee),re=T.root||u.Root||Iu,ne=q.root||c.root||{},oe=T.input||u.Input||Du;return Q=Ae({},Q,null!=(r=q.input)?r:c.input),Jo.jsxs(i.Fragment,{children:[!f&&Pu,Jo.jsxs(re,Ae({},ne,!pa(re)&&{ownerState:Ae({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:ai(te.root,ne.className,l,A&&"MuiInputBase-readOnly"),children:[_,Jo.jsx(mu.Provider,{value:null,children:Jo.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:O,value:z,onKeyDown:M,onKeyUp:R,type:j},Q,!pa(oe)&&{as:Z,ownerState:Ae({},ee,Q.ownerState)},{ref:V,className:ai(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(Me(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(Ae({},Y,{startAdornment:_})):null]}))]})}));function Ru(e){return ui("MuiInput",e)}const Lu=Ae({},Su,ci("MuiInput",["root","underline","input"]));function Au(e){return ui("MuiOutlinedInput",e)}const ku=Ae({},Su,ci("MuiOutlinedInput",["root","notchedOutline","input"]));function Ou(e){return ui("MuiFilledInput",e)}const qu=Ae({},Su,ci("MuiFilledInput",["root","underline","input"]));var Tu=hl(Jo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const _u=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ju={entering:{opacity:1},entered:{opacity:1}},Nu=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=El}=e,b=ke(e,_u),x=i.useRef(null),S=Xi(x,va(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)=>{kl(e);const n=Ol({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),P=w((e=>{const t=Ol({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)})),M=w(h);return Jo.jsx(y,Ae({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:M,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"},ju[e],g,s.props.style),ref:S},t))}))}));function Fu(e){return ui("MuiBackdrop",e)}ci("MuiBackdrop",["root","invisible"]);const zu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Wu=il("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"}))),$u=i.forwardRef((function(e,t){var r,n,o;const i=ul({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=Nu,transitionDuration:g}=i,v=ke(i,zu),y=Ae({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return da({root:["root",r&&"invisible"]},Fu,t)})(y),x=null!=(r=f.root)?r:c.root;return Jo.jsx(m,Ae({in:p,timeout:g},v,{children:Jo.jsx(Wu,Ae({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ai(b.root,s,null==x?void 0:x.className),ownerState:Ae({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))})),Hu=ci("MuiBox",["root"]),Vu=ws(),Bu=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})(qo);return i.forwardRef((function(e,i){const s=Wo(r),l=ti(e),{className:u,component:c="div"}=l,d=ke(l,si);return Jo.jsx(a,Ae({as:c,ref:i,className:ai(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Le,defaultTheme:Vu,defaultClassName:Hu.root,generateClassName:oi.generate});function Gu(e){return ui("MuiButton",e)}const Uu=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"]),Yu=i.createContext({}),Ku=i.createContext(void 0),Xu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ju=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}}),Zu=il(tu,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${zn(r.color)}`],t[`size${zn(r.size)}`],t[`${r.variant}Size${zn(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})`: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":Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uu.focusVisible}`]:Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uu.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 ${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"},[`&.${Uu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uu.disabled}`]:{boxShadow:"none"}})),Qu=il("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${zn(r.size)}`]]}})((({ownerState:e})=>Ae({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ju(e)))),ec=il("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${zn(r.size)}`]]}})((({ownerState:e})=>Ae({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ju(e)))),tc=i.forwardRef((function(e,t){const r=i.useContext(Yu),n=i.useContext(Ku),o=ul({props:qi(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,Xu),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,da({root:["root",i,`${i}${zn(t)}`,`size${zn(o)}`,`${i}Size${zn(o)}`,`color${zn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zn(o)}`],endIcon:["icon","endIcon",`iconSize${zn(o)}`]},Gu,a))})(S),C=v&&Jo.jsx(Qu,{className:w.startIcon,ownerState:S,children:v}),E=f&&Jo.jsx(ec,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return Jo.jsxs(Zu,Ae({ownerState:S,className:ai(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:ai(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))}));function rc(e){return ui("PrivateSwitchBase",e)}ci("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],oc=il(tu,{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}))),ic=il("input",{name:"MuiSwitchBase",shouldForwardProp:ol})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ac=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,nc),[E,I]=Yi({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=gu();let P=s;D&&void 0===P&&(P=D.disabled);const M="checkbox"===S||"radio"===S,R=Ae({},e,{checked:E,disabled:P,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${zn(o)}`],input:["input"]},rc,t)})(R);return Jo.jsxs(oc,Ae({component:"span",className:ai(L.root,i),centerRipple:!0,focusRipple:!l,disabled:P,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:[Jo.jsx(ic,Ae({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:P,id:M?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 sc=hl(Jo.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"),lc=hl(Jo.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"),uc=hl(Jo.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 cc(e){return ui("MuiCheckbox",e)}const dc=ci("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],fc=il(ac,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${zn(r.size)}`],"default"!==r.color&&t[`color${zn(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})`: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&&{[`&.${dc.checked}, &.${dc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${dc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),hc=Jo.jsx(lc,{}),mc=Jo.jsx(sc,{}),gc=Jo.jsx(uc,{}),vc=i.forwardRef((function(e,t){var r,n;const o=ul({props:e,name:"MuiCheckbox"}),{checkedIcon:a=hc,color:s="primary",icon:l=mc,indeterminate:u=!1,indeterminateIcon:c=gc,inputProps:d,size:p="medium",className:f}=o,h=ke(o,pc),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,da({root:["root",r&&"indeterminate",`color${zn(n)}`,`size${zn(o)}`]},cc,t))})(v);return Jo.jsx(fc,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:ai(y.root,f)},h,{classes:y}))}));function yc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bc(e){return parseInt(Hi(e).getComputedStyle(e).paddingRight,10)||0}function xc(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&&yc(e,o)}))}function Sc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function wc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=$i(e);return t.body===e?Hi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ca($i(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${bc(n)+e}px`;const t=$i(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${bc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=$i(n).body;else{const t=n.parentElement,r=Hi(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 Cc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ec(e){const t=[],r=[];return Array.from(e.querySelectorAll(Cc)).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 Ic(){return!0}function Dc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=Ec,isEnabled:s=Ic,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(va(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=$i(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=$i(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 Jo.jsxs(i.Fragment,{children:[Jo.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)}}),Jo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Pc=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&&yc(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);xc(t,e.mount,e.modalRef,n,!0);const o=Sc(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=Sc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=wc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Sc(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&&yc(e.modalRef,t),xc(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&&yc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Mc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Pc,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),[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=Ki((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$i(h.current).body;o.add(S(),e),m.current&&w()})),E=i.useCallback((()=>o.isTopModal(S())),[o]),I=Ki((e=>{h.current=e,e&&(d&&E()?w():m.current&&yc(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 P=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")))},M=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=Ae({},r,t);return Ae({role:"presentation"},n,{onKeyDown:P(n),ref:g})},getBackdropProps:(e={})=>Ae({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:zi((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:zi((()=>{y(!0),l&&l(),a&&D()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function Rc(e){return ui("MuiModal",e)}ci("MuiModal",["root","hidden","backdrop"]);const Lc=["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"],Ac=il("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"}))),kc=il($u,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Oc=i.forwardRef((function(e,t){var r,n,o,a,s,l;const u=ul({name:"MuiModal",props:e}),{BackdropComponent:c=kc,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:P,open:M,slotProps:R,slots:L}=u,A=ke(u,Lc),k=Ae({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:_,isTopModal:j,exited:N,hasTransition:F}=Mc(Ae({},k,{rootRef:t})),z=Ae({},k,{exited:N}),W=(e=>{const{open:t,exited:r,classes:n}=e;return da({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Rc,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:Ac,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=ga({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:ai(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=ga({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(Ae({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ai(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||M||F&&!N?Jo.jsx(lu,{ref:_,container:m,disablePortal:w,children:Jo.jsxs(H,Ae({},U,{children:[!I&&c?Jo.jsx(V,Ae({},Y)):null,Jo.jsx(Dc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:M,children:i.cloneElement(h,$)})]}))}):null}));function qc(e){return ui("MuiDivider",e)}const Tc=ci("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_c=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],jc=il("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)`: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})=>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%"}}))),Nc=il("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)`}))),Fc=i.forwardRef((function(e,t){const r=ul({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,_c),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 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"]},qc,n)})(h);return Jo.jsx(jc,Ae({as:a,className:ai(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Jo.jsx(Nc,{className:m.wrapper,ownerState:h,children:o}):null}))}));Fc.muiSkipListHighlight=!0;const zc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Wc=il(Iu,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Cu(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}},[`&.${qu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${qu.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"},[`&.${qu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qu.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(.${qu.disabled}, .${qu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qu.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}))})),$c=il(Du,{name:"MuiFilledInput",slot:"Input",overridesResolver:Eu})((({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}))),Hc=i.forwardRef((function(e,t){var r,n,o,i;const a=ul({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,zc),g=Ae({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return Ae({},t,da({root:["root",!r&&"underline"],input:["input"]},Ou,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Ln(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Wc,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:$c;return Jo.jsx(Mu,Ae({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));Hc.muiName="Input";const Vc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bc(e){return`scale(${e}, ${e**2})`}const Gc={entering:{opacity:1,transform:Bc(1)},entered:{opacity:1,transform:"none"}},Uc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yc=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=El}=e,v=ke(e,Vc),y=ea(),b=i.useRef(),x=Es(),S=i.useRef(null),w=Xi(S,va(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)=>{kl(e);const{duration:r,delay:n,easing:o}=Ol({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:Uc?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),D=C(u),P=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Ol({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:Uc?o:.666*o,delay:Uc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Bc(.75),d&&d(e)})),R=C(p);return Jo.jsx(g,Ae({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:M,onExited:R,onExiting:P,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:Bc(.75),visibility:"exited"!==e||s?void 0:"hidden"},Gc[e],h,o.props.style),ref:w},t))}))}));Yc.muiSupportAuto=!0;const Kc=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xc=il(Iu,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Cu(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"},[`&.${Lu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Lu.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(.${Lu.disabled}, .${Lu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Lu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Jc=il(Du,{name:"MuiInput",slot:"Input",overridesResolver:Eu})({}),Zc=i.forwardRef((function(e,t){var r,n,o,i;const a=ul({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,Kc),v=(e=>{const{classes:t,disableUnderline:r}=e;return Ae({},t,da({root:["root",!r&&"underline"],input:["input"]},Ru,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Ln(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Xc,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Jc;return Jo.jsx(Mu,Ae({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));function Qc(e){return ui("MuiInputAdornment",e)}Zc.muiName="Input";const ed=ci("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var td;const rd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],nd=il("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${zn(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&&{[`&.${ed.positionStart}&:not(.${ed.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),od=i.forwardRef((function(e,t){const r=ul({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,rd),p=gu()||{};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 da({root:["root",r&&"disablePointerEvents",o&&`position${zn(o)}`,a,n&&"hiddenLabel",i&&`size${zn(i)}`]},Qc,t)})(h);return Jo.jsx(mu.Provider,{value:null,children:Jo.jsx(nd,Ae({as:a,ownerState:h,className:ai(m.root,o),ref:t},d,{children:"string"!=typeof n||l?Jo.jsxs(i.Fragment,{children:["start"===u?td||(td=Jo.jsx("span",{className:"notranslate",children:""})):null,n]}):Jo.jsx(su,{color:"text.secondary",children:n})}))})}));function id(e){return ui("MuiLink",e)}const ad=ci("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),sd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ld=({theme:e,ownerState:t})=>{const r=(e=>sd[e]||e)(t.color),n=$n(e,`palette.${r}`,!1)||t.color,o=$n(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:za(n,.4)},ud=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cd=il(su,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${zn(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:ld({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"},[`&.${ad.focusVisible}`]:{outline:"auto"}}))),dd=i.forwardRef((function(e,t){const r=ul({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,ud),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=ua(),[y,b]=i.useState(!1),x=Xi(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 da({root:["root",`underline${zn(o)}`,"button"===r&&"button",n&&"focusVisible"]},id,t)})(S);return Jo.jsx(cd,Ae({color:o,className:ai(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(sd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),pd=i.createContext({});function fd(e){return ui("MuiList",e)}ci("MuiList",["root","padding","dense","subheader"]);const hd=["children","className","component","dense","disablePadding","subheader"],md=il("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}))),gd=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=ke(r,hd),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 da({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},fd,t)})(p);return Jo.jsx(pd.Provider,{value:d,children:Jo.jsxs(md,Ae({as:a,className:ai(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})}));function vd(e){return ui("MuiListItem",e)}const yd=ci("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),bd=ci("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function xd(e){return ui("MuiListItemSecondaryAction",e)}ci("MuiListItemSecondaryAction",["root","disableGutters"]);const Sd=["className"],wd=il("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}))),Cd=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=ke(r,Sd),a=Ae({},r,{disableGutters:i.useContext(pd).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return da({root:["root",t&&"disableGutters"]},xd,r)})(a);return Jo.jsx(wd,Ae({className:ai(s.root,n),ownerState:a,ref:t},o))}));Cd.muiName="ListItemSecondaryAction";const Ed=["className"],Id=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Dd=il("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&&{[`& > .${bd.root}`]:{paddingRight:48}},{[`&.${yd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:za(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${yd.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)}},[`&.${yd.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"}},[`&.${yd.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)}}},t.hasSecondaryAction&&{paddingRight:48}))),Pd=il("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Md=i.forwardRef((function(e,t){const r=ul({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,Ed),I=ke(r,Id),D=i.useContext(pd),P=i.useMemo((()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g})),[n,D.dense,h,g]),M=i.useRef(null);Ti((()=>{o&&M.current&&M.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!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=Ae({},r,{alignItems:n,autoFocus:o,button:a,dense:P.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 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"]},vd,n)})(T),j=Xi(M,t),N=C.root||c.Root||Dd,F=w.root||d.root||{},z=Ae({className:ai(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=ai(yd.focusVisible,b),W=tu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),Jo.jsx(pd.Provider,{value:P,children:Jo.jsxs(Pd,Ae({as:p,className:ai(_.container,f),ref:j,ownerState:T},E,{children:[Jo.jsx(N,Ae({},F,!pa(N)&&{as:W,ownerState:Ae({},T,F.ownerState)},z,{children:R})),R.pop()]}))})):Jo.jsx(pd.Provider,{value:P,children:Jo.jsxs(N,Ae({},F,{as:W,ref:j},!pa(N)&&{ownerState:Ae({},T,F.ownerState)},z,{children:[R,x&&Jo.jsx(Cd,{children:x})]}))})}));function Rd(e){return ui("MuiListItemIcon",e)}const Ld=ci("MuiListItemIcon",["root","alignItemsFlexStart"]),Ad=["className"],kd=il("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}))),Od=i.forwardRef((function(e,t){const r=ul({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=ke(r,Ad),a=Ae({},r,{alignItems:i.useContext(pd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return da({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Rd,r)})(a);return Jo.jsx(kd,Ae({className:ai(s.root,n),ownerState:a,ref:t},o))})),qd=ci("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Td=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _d(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function jd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Nd(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 Fd(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")&&Nd(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const zd=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,Td),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($i(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 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 Jo.jsx(gd,Ae({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=$i(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Fd(t,n,u,l,_d);else if("ArrowUp"===r)e.preventDefault(),Fd(t,n,u,l,jd);else if("Home"===r)e.preventDefault(),Fd(t,null,u,l,_d);else if("End"===r)e.preventDefault(),Fd(t,null,u,l,jd);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&&Nd(n,o);o.previousKeyMatched&&(s||Fd(t,n,!1,l,_d,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))}));function Wd(e){return ui("MuiPopover",e)}ci("MuiPopover",["root","paper"]);const $d=["onEntering"],Hd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vd=["slotProps"];function Bd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Gd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ud(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Yd(e){return"function"==typeof e?e():e}const Kd=il(Oc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xd=il(jl,{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}),Jd=i.forwardRef((function(e,t){var r,n,o;const a=ul({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=Yc,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=ke(a.TransitionProps,$d),P=ke(a,Hd),M=null!=(r=null==x?void 0:x.paper)?r:y,R=i.useRef(),L=Xi(R,M.ref),A=Ae({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return da({root:["root"],paper:["paper"]},Wd,t)})(A),O=i.useCallback((()=>{if("anchorPosition"===d)return c;const e=Yd(l),t=(e&&1===e.nodeType?e:$i(R.current).body).getBoundingClientRect();return{top:t.top+Bd(t,u.vertical),left:t.left+Gd(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),q=i.useCallback((e=>({vertical:Bd(e,S.vertical),horizontal:Gd(e,S.horizontal)})),[S.horizontal,S.vertical]),T=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===d)return{top:null,left:null,transformOrigin:Ud(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Hi(Yd(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:Ud(r)}}),[l,d,O,q,g]),[_,j]=i.useState(v),N=i.useCallback((()=>{const e=R.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((()=>(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=Wi((()=>{N()})),t=Hi(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?$i(Yd(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:Kd,$=null!=(o=null==b?void 0:b.paper)?o:Xd,H=ga({elementType:$,externalSlotProps:Ae({},M,{style:_?M.style:Ae({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:ai(k.paper,null==M?void 0:M.className)}),V=ga({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:ai(k.root,f)}),{slotProps:B}=V,G=ke(V,Vd);return Jo.jsx(W,Ae({},G,!pa(W)&&{slotProps:B,disableScrollLock:I},{children:Jo.jsx(w,Ae({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},D,{children:Jo.jsx($,Ae({},H,{children:p}))}))}))}));function Zd(e){return ui("MuiMenu",e)}ci("MuiMenu",["root","paper","list"]);const Qd=["onEntering"],ep=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tp={vertical:"top",horizontal:"right"},rp={vertical:"top",horizontal:"left"},np=il(Jd,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),op=il(Xd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ip=il(zd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ap=i.forwardRef((function(e,t){var r,n;const o=ul({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,Qd),S=ke(o,ep),w=(()=>{const e=i.useContext(Ca);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 da({root:["root"],paper:["paper"],list:["list"]},Zd,t)})(C),I=a&&!u&&p,D=i.useRef(null);let P=-1;i.Children.map(s,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))}));const M=null!=(r=y.paper)?r:op,R=null!=(n=b.paper)?n:f,L=ga({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=ga({elementType:M,externalSlotProps:R,ownerState:C,className:E.paper});return Jo.jsx(np,Ae({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?tp:rp,slots:{paper:M,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:Jo.jsx(ip,Ae({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:ai(E.list,c.className),children:s}))}))}));function sp(e){return ui("MuiMenuItem",e)}const lp=ci("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),up=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],cp=il(tu,{shouldForwardProp:e=>ol(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"}},[`&.${lp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:za(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lp.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)}},[`&.${lp.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)}},[`&.${lp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tc.inset}`]:{marginLeft:52},[`& .${qd.root}`]:{marginTop:0,marginBottom:0},[`& .${qd.inset}`]:{paddingLeft:36},[`& .${Ld.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ae({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ld.root} svg`]:{fontSize:"1.25rem"}})))),dp=i.forwardRef((function(e,t){const r=ul({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,up),h=i.useContext(pd),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 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,da({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},sp,a))})(r),b=Xi(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Jo.jsx(pd.Provider,{value:m,children:Jo.jsx(cp,Ae({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:ai(y.focusVisible,u),className:ai(y.root,p)},f,{ownerState:v,classes:y}))})}));function pp(e){return ui("MuiNativeSelect",e)}const fp=ci("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hp=["className","disabled","error","IconComponent","inputRef","variant"],mp=({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"},[`&.${fp.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}}),gp=il("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ol,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${fp.multiple}`]:t.multiple}]}})(mp),vp=({ownerState:e,theme:t})=>Ae({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${fp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),yp=il("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zn(r.variant)}`],r.open&&t.iconOpen]}})(vp),bp=i.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=ke(e,hp),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 da({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${zn(r)}`,i&&"iconOpen",n&&"disabled"]},pp,t)})(c);return Jo.jsxs(i.Fragment,{children:[Jo.jsx(gp,Ae({ownerState:c,className:ai(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Jo.jsx(yp,{as:a,ownerState:c,className:d.icon})]})}));var xp;const Sp=["children","classes","className","label","notched"],wp=il("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ol})({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=il("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ol})((({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 Ep=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ip=il(Iu,{shouldForwardProp:e=>ol(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cu})((({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 .${ku.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ku.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ku.focused} .${ku.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ku.error} .${ku.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ku.disabled} .${ku.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"}))})),Dp=il((function(e){const{className:t,label:r,notched:n}=e,o=ke(e,Sp),i=null!=r&&""!==r,a=Ae({},e,{notched:n,withLabel:i});return Jo.jsx(wp,Ae({"aria-hidden":!0,className:t,ownerState:a},o,{children:Jo.jsx(Cp,{ownerState:a,children:i?Jo.jsx("span",{children:r}):xp||(xp=Jo.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}})),Pp=il(Du,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Eu})((({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}))),Mp=i.forwardRef((function(e,t){var r,n,o,a,s;const l=ul({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,Ep),y=(e=>{const{classes:t}=e;return Ae({},t,da({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Au,t))})(l),b=gu(),x=hu({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:Ip,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Pp;return Jo.jsx(Mu,Ae({slots:{root:w,input:C},renderSuffix:e=>Jo.jsx(Dp,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=Jo.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 Rp(e){return ui("MuiSelect",e)}Mp.muiName="Input";const Lp=ci("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ap;const kp=["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"],Op=il("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Lp.select}`]:t.select},{[`&.${Lp.select}`]:t[r.variant]},{[`&.${Lp.error}`]:t.error},{[`&.${Lp.multiple}`]:t.multiple}]}})(mp,{[`&.${Lp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qp=il("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${zn(r.variant)}`],r.open&&t.iconOpen]}})(vp),Tp=il("input",{shouldForwardProp:e=>nl(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 _p(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function jp(e){return null==e||"string"==typeof e&&!e.trim()}const Np=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:P,renderValue:M,SelectDisplayProps:R={},tabIndex:L,value:A,variant:k="standard"}=e,O=ke(e,kp),[q,T]=Yi({controlled:A,default:d,name:"Select"}),[_,j]=Yi({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=Xi(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:q})),[q]),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=$i(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(q)?q.slice():[];const t=q.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),q!==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)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(bu({value:q})||f)&&(M?Z=M(q):te=!0);const re=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Me(2));t=q.some((t=>_p(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=_p(q,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:q,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${zn(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Rp,t)})(ae),le=Ae({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=Ui();return Jo.jsxs(i.Fragment,{children:[Jo.jsx(Op,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(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||P?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:q,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:ai(R.className,se.select,u),id:ie,children:jp(Z)?Ap||(Ap=Jo.jsx("span",{className:"notranslate",children:""})):Z})),Jo.jsx(Tp,Ae({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,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},O)),Jo.jsx(qp,{as:m,className:se.icon,ownerState:ae}),Jo.jsx(ap,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}))]})})),Fp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],zp=["root"],Wp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ol(e)&&"variant"!==e,slot:"Root"},$p=il(Zc,Wp)(""),Hp=il(Mp,Wp)(""),Vp=il(Hc,Wp)(""),Bp=i.forwardRef((function(e,t){const r=ul({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Tu,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,Fp),D=y?bp:Np,P=hu({props:r,muiFormControl:gu(),states:["variant","error"]}),M=P.variant||E,R=Ae({},r,{variant:M,classes:a}),L=(e=>{const{classes:t}=e;return t})(R),A=ke(L,zp),k=p||{standard:Jo.jsx($p,{ownerState:R}),outlined:Jo.jsx(Hp,{label:h,ownerState:R}),filled:Jo.jsx(Vp,{ownerState:R})}[M],O=Xi(t,va(k));return Jo.jsx(i.Fragment,{children:i.cloneElement(k,Ae({inputComponent:D,inputProps:Ae({children:o,error:P.error,IconComponent:c,variant:M,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?Ln(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:O,className:ai(k.props.className,s,L.root)},!p&&{variant:M},I))})}));Bp.muiName="Select";const Gp={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"},Up={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",...Gp,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)"},Yp=12,Kp=14,Xp=16,Jp=24,Zp=3,Qp=300,ef=400,tf=600,rf=700,nf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function of(e){return Jo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Jo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var af=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Jo.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 sf(e={}){return Jo.jsx(af,{...e,children:Jo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Jo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Jo.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 lf(e={}){return Jo.jsx(af,{fontSize:"medium",...e,children:Jo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Jo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Jo.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 uf(e){return Jo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Jo.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 cf(e={}){return Jo.jsx(af,{...e,children:Jo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Jo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Jo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Jo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function df(e={}){return Jo.jsx(af,{fontSize:"medium",...e,children:Jo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Jo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Jo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function pf({className:e}){return Jo.jsx(af,{fontSize:"small",className:e,children:Jo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Jo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Jo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Jo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Jo.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"}),Jo.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 ff(e={}){return Jo.jsx(af,{...e,children:Jo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Jo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Jo.jsx("rect",{stroke:Up.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const hf={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:Zp,"& > 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 mf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Up.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Up.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Jo.jsx(of,{"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 ${Up.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Up.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Up.MISC_FOCUS_BORDER}`,borderRadius:Zp,backgroundColor:Up.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 ${Up.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Up.WHITE,color:Up.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:Zp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Up.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Up.GREYSCALE_0_15,backgroundColor:Up.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Up.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Up.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Up.GREEN_PALE},"&:active":{backgroundColor:Up.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Up.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(Up.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Up.BLUE_PALE},"&:active":{backgroundColor:Up.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Up.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.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:Zp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Up.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Up.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Up.GREYSCALE_0_15,backgroundColor:Up.GREYSCALE_100_60,"&:active":{backgroundColor:Up.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Up.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Up.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Up.PURPLE,"&.Mui-focusVisible":{borderColor:Up.PURPLE,boxShadow:`0 0 0 3px ${Fi(Up.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Up.GREEN,"&.Mui-focusVisible":{borderColor:Up.GREEN,boxShadow:`0 0 0 3px ${Fi(Up.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Up.BLUE,"&.Mui-focusVisible":{borderColor:Up.BLUE,boxShadow:`0 0 0 3px ${Fi(Up.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Up.ORANGE,"&.Mui-focusVisible":{borderColor:Up.ORANGE,boxShadow:`0 0 0 3px ${Fi(Up.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Up.RED,"&.Mui-focusVisible":{borderColor:Up.RED,boxShadow:`0 0 0 3px ${Fi(Up.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Up.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Up.PURPLE_PALE},"&:active":{backgroundColor:Up.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Up.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Up.GREEN_PALE},"&:active":{backgroundColor:Up.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Up.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(Up.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Up.BLUE_PALE},"&:active":{backgroundColor:Up.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Up.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Up.ORANGE_PALE},"&:active":{backgroundColor:Up.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Up.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Up.RED_PALE},"&:active":{backgroundColor:Up.RED_DARK},"&.Mui-focusVisible":{borderColor:Up.RED_PALE,boxShadow:`0 0 0 3px ${Fi(Up.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:Up.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Up.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Zp,boxShadow:`inset 0 0 0 2px ${Up.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Jo.jsx(uf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Yp,borderRadius:Zp,color:Up.TEXT_PRIMARY,backgroundColor:Up.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Up.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Up.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Up.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Up.GREYSCALE_0_05,color:Up.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Up.GREEN,borderColor:Up.GREEN},"&.MuiChip-outlinedInfo":{color:Up.BLUE,borderColor:Up.BLUE},"&.MuiChip-outlinedWarning":{color:Up.ORANGE,borderColor:Up.ORANGE},"&.MuiChip-outlinedError":{color:Up.RED,borderColor:Up.RED}},outlined:{border:`solid 1px ${Up.GREYSCALE_0_15}`,backgroundColor:Up.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Zp,boxShadow:"none",backgroundColor:Up.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Up.GREEN,borderColor:Up.GREEN},outlinedSecondary:{color:Up.BLUE,borderColor:Up.BLUE},label:{fontFamily:nf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Jo.jsx(uf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Jo.jsx(of,{"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:Zp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Zp,fontSize:Kp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Up.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Up.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Up.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Up.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Up.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Zp,border:`solid 1px ${Up.GREYSCALE_0_15}`,color:Up.GREYSCALE_0_60,marginRight:0,width:Jp,height:Jp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Up.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Zp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Up.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Kp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Yp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Up.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Up.GREYSCALE_25,fontSize:Yp,fontFamily:nf.FONT_FAMILY,fontWeight:tf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Up.TEXT_PRIMARY},"&.Mui-error":{color:Up.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Up.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ef,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Up.TEXT_SECONDARY,content:"'(required)'",fontWeight:ef,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Kp,lineHeight:"16px",backgroundColor:Up.WHITE,borderRadius:Zp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Up.GREYSCALE_0_05}`,borderColor:Up.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Up.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Up.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Up.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Up.RED}`,boxShadow:`0px 0px 0px 1px ${Up.RED}, inset 0 2px 0 0 ${Up.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Up.GREYSCALE_0_10}`,borderColor:Up.GREYSCALE_0_10,backgroundColor:Up.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Up.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Up.GREYSCALE_0_15,borderRadius:Zp,boxShadow:`inset 0 2px 0 0 ${Up.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Jo.jsx(of,{...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:Up.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Up.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Up.GREYSCALE_0_03},"&:active":{backgroundColor:Up.GREYSCALE_0_10},"&:focus":{backgroundColor:Up.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Up.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Up.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Up.GREYSCALE_0_30,"&:hover":{backgroundColor:Up.GREYSCALE_0_0,borderColor:Up.GREYSCALE_0_15},"& ~svg":{color:Up.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Up.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Zp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Up.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Up.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Up.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Kp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Yp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Yp,fontWeight:tf,color:Up.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:tf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Up.GREYSCALE_0_15}, 0px 0px 0px 1px ${Up.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Jo.jsx(df,{}),checkedIcon:Jo.jsx(lf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Up.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Up.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Up.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(Up.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Up.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Up.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Up.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Jo.jsx(ff,{}),checkedIcon:Jo.jsx(sf,{}),indeterminateIcon:Jo.jsx(cf,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Zp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Up.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Up.GREYSCALE_0_55,color:Up.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:Up.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Up.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Up.GREYSCALE_0_55,"&:hover":{color:Up.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:Up.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Up.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Kp,color:Up.TEXT_PRIMARY,lineHeight:"16px",fontWeight:tf},secondary:{fontSize:Yp,color:Up.GREYSCALE_45,fontWeight:ef,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Kp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Kp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Up.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Yp,borderBottom:`solid 1px ${Up.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Kp,color:Up.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Up.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Up.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Up.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:Up.RED}}},"&.Mui-focusVisible":{backgroundColor:Up.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:Up.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:Up.GREEN,height:"24px","&.Mui-disabled":{color:Up.GREYSCALE_0_15}},rail:{backgroundColor:Up.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Up.GREYSCALE_0_05}`,borderRadius:Zp,boxShadow:`inset 0px 0px 0px 1px ${Up.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Up.GREYSCALE_0_05}`,borderRadius:Zp},thumb:{height:"16px",width:"16px",borderRadius:Zp,backgroundColor:Up.WHITE,boxShadow:`0px 1px 2px 0px ${Up.GREYSCALE_0_15}, 0px 0px 0px 1px ${Up.GREYSCALE_0_05}`,"&:hover":{borderRadius:Zp,boxShadow:`0 2px 4px 0 ${Up.GREYSCALE_0_30}, 0 0 0 1px ${Up.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Up.GREYSCALE_0_15}, 0 0 0 1px ${Up.GREYSCALE_0_06}, 0 0 0 2px ${Up.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Up.GREYSCALE_0_15}, 0 0 0 1px ${Up.GREYSCALE_0_06}, 0 0 0 2px ${Up.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Up.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Up.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Up.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Up.GREYSCALE_0_15},markLabel:{color:Up.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Up.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Up.WHITE,color:Up.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:Up.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:Up.GREEN_PALE,boxShadow:`0 0 0 3px ${Fi(Up.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Up.BLUE_PALE,boxShadow:`0 0 0 3px ${Fi(Up.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Up.GREYSCALE_0_15,borderRadius:Zp},thumb:{height:"16px",width:"16px",borderRadius:Zp,backgroundColor:Up.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:Kp,fontWeight:tf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Up.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Up.MISC_FOCUS_BORDER}`,backgroundColor:Up.GREYSCALE_0_03,borderRadius:Zp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Up.GREYSCALE_25,"&.Mui-selected":{color:Up.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Kp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Zp,"&:hover":{backgroundColor:Up.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 ${Up.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Up.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Zp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Up.GREYSCALE_0_05},"&:hover":{backgroundColor:Up.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Up.GREYSCALE_85}`,borderRight:`1px solid ${Up.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:tf,backgroundColor:Up.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:Up.GREYSCALE_98,borderBottom:`1px solid ${Up.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Up.GREYSCALE_85}`,borderTop:`1px solid ${Up.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Up.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Up.GREYSCALE_0_05,"&:hover":{backgroundColor:Up.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Up.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Jo.jsx(pf,{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 ${Up.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Kp,borderRadius:Zp,padding:"7px 16px",border:`1px solid ${Up.GREYSCALE_0_15}`,backgroundColor:Up.GREYSCALE_100_60,color:Up.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Up.GREYSCALE_0_10,border:`1px solid ${Up.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Up.GREYSCALE_0_03,border:`1px solid ${Up.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Up.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Up.MISC_FOCUS_BORDER}`,border:`1px solid ${Up.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Up.GREYSCALE_25,backgroundColor:Up.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Up.GREYSCALE_0_10,border:`1px solid ${Up.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Yp,height:24,width:24,padding:7},sizeLarge:{fontSize:Xp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Kp,borderRadius:Zp}}},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:Up.GREYSCALE_20},tooltip:{backgroundColor:Up.GREYSCALE_20,fontSize:Yp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...hf}:{}}),gf=(e,t)=>mf(t);var vf=()=>({mode:"light",primary:{ultraLight:Up.GREEN_ULTRA_LIGHT,light:Up.GREEN_PALE,main:Up.GREEN,dark:Up.GREEN_DARK,extraDark:Up.GREEN_EXTRA_DARK,contrastText:Up.WHITE},secondary:{ultraLight:Up.BLUE_ULTRA_LIGHT,light:Up.BLUE_PALE,main:Up.BLUE,dark:Up.BLUE_DARK,extraDark:Up.BLUE_EXTRA_DARK,contrastText:Up.WHITE},error:{ultraLight:Up.RED_ULTRA_LIGHT,light:Up.RED_PALE,main:Up.RED,dark:Up.RED_DARK,extraDark:Up.RED_EXTRA_DARK,contrastText:Up.WHITE},warning:{ultraLight:Up.ORANGE_ULTRA_LIGHT,light:Up.ORANGE_PALE,main:Up.ORANGE,dark:Up.ORANGE_DARK,extraDark:Up.ORANGE_EXTRA_DARK,contrastText:Up.WHITE},success:{ultraLight:Up.GREEN_ULTRA_LIGHT,light:Up.GREEN_PALE,main:Up.GREEN,dark:Up.GREEN_DARK,extraDark:Up.GREEN_EXTRA_DARK,contrastText:Up.WHITE},info:{ultraLight:Up.BLUE_ULTRA_LIGHT,light:Up.BLUE_PALE,main:Up.BLUE,dark:Up.BLUE_DARK,extraDark:Up.BLUE_EXTRA_DARK,contrastText:Up.WHITE},text:{primary:Up.TEXT_PRIMARY,secondary:Up.TEXT_SECONDARY,disabled:Up.GREYSCALE_0_30},action:{hover:Up.GREYSCALE_0_03,hoverOpacity:.03,selected:Up.GREYSCALE_0_05,selectedOpacity:.05,focus:Up.MISC_FOCUS_BORDER},amethyst:{ultraLight:Up.WHITE,main:Up.PURPLE,light:Up.PURPLE_PALE,dark:Up.PURPLE_DARK,extraDark:Up.GREYSCALE_0_0,contrastText:Up.WHITE},background:{paper:Up.WHITE,default:Up.GREYSCALE_95},divider:Up.GREYSCALE_0_15});var yf=e=>vf();var bf=(e,t=!1)=>({components:gf(0,t),palette:yf(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:Kp,fontWeightLight:Qp,fontWeightRegular:ef,fontWeightMedium:tf,fontWeightBold:rf,htmlFontSize:Kp,fontFamily:nf.FONT_FAMILY,button:{fontWeight:tf,fontSize:Kp,textTransform:"none"},body1:{fontSize:Xp,lineHeight:"24px"},body2:{fontSize:Kp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Jp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Xp,fontWeight:tf,lineHeight:"16px"},h6:{fontSize:Kp,fontWeight:tf,lineHeight:"16px"},caption:{color:Up.TEXT_SECONDARY},subtitle1:{fontSize:Kp,color:Up.TEXT_SECONDARY},subtitle2:{fontSize:Yp,color:Up.TEXT_SECONDARY}},shape:{borderRadius:Zp}});const xf={...Gp};var Sf={},wf={exports:{}},Cf={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}(Cf);var Ef=Cf.exports;!function(e){var t=Ef.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}(wf);var If=wf.exports,Df={};function Pf(e,t){return function(){return null}}function Mf(e){return e&&"object"===Aa(e)&&e.constructor===Object}function Rf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Ae({},e):e;return Mf(e)&&Mf(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Mf(t[o])&&o in e?n[o]=Rf(e[o],t[o],r):n[o]=t[o])})),n}var Lf=(Sn.element,function(){return null});Lf.isRequired=(Sn.element.isRequired,function(){return null});var Af=function(){return null};var kf={exports:{}},Of={},qf=60103,Tf=60106,_f=60107,jf=60108,Nf=60114,Ff=60109,zf=60110,Wf=60112,$f=60113,Hf=60120,Vf=60115,Bf=60116,Gf=60121,Uf=60122,Yf=60117,Kf=60129,Xf=60131;if("function"==typeof Symbol&&Symbol.for){var Jf=Symbol.for;qf=Jf("react.element"),Tf=Jf("react.portal"),_f=Jf("react.fragment"),jf=Jf("react.strict_mode"),Nf=Jf("react.profiler"),Ff=Jf("react.provider"),zf=Jf("react.context"),Wf=Jf("react.forward_ref"),$f=Jf("react.suspense"),Hf=Jf("react.suspense_list"),Vf=Jf("react.memo"),Bf=Jf("react.lazy"),Gf=Jf("react.block"),Uf=Jf("react.server.block"),Yf=Jf("react.fundamental"),Kf=Jf("react.debug_trace_mode"),Xf=Jf("react.legacy_hidden")}function Zf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qf:switch(e=e.type){case _f:case Nf:case jf:case $f:case Hf:return e;default:switch(e=e&&e.$$typeof){case zf:case Wf:case Bf:case Vf:case Ff:return e;default:return t}}case Tf:return t}}}var Qf=Ff,eh=qf,th=Wf,rh=_f,nh=Bf,oh=Vf,ih=Tf,ah=Nf,sh=jf,lh=$f;Of.ContextConsumer=zf,Of.ContextProvider=Qf,Of.Element=eh,Of.ForwardRef=th,Of.Fragment=rh,Of.Lazy=nh,Of.Memo=oh,Of.Portal=ih,Of.Profiler=ah,Of.StrictMode=sh,Of.Suspense=lh,Of.isAsyncMode=function(){return!1},Of.isConcurrentMode=function(){return!1},Of.isContextConsumer=function(e){return Zf(e)===zf},Of.isContextProvider=function(e){return Zf(e)===Ff},Of.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qf},Of.isForwardRef=function(e){return Zf(e)===Wf},Of.isFragment=function(e){return Zf(e)===_f},Of.isLazy=function(e){return Zf(e)===Bf},Of.isMemo=function(e){return Zf(e)===Vf},Of.isPortal=function(e){return Zf(e)===Tf},Of.isProfiler=function(e){return Zf(e)===Nf},Of.isStrictMode=function(e){return Zf(e)===jf},Of.isSuspense=function(e){return Zf(e)===$f},Of.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_f||e===Nf||e===Kf||e===jf||e===$f||e===Hf||e===Xf||"object"==typeof e&&null!==e&&(e.$$typeof===Bf||e.$$typeof===Vf||e.$$typeof===Ff||e.$$typeof===zf||e.$$typeof===Wf||e.$$typeof===Yf||e.$$typeof===Gf||e[0]===Uf)},Of.typeOf=Zf,kf.exports=Of;var uh=kf.exports,ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function dh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ch);return t&&t[1]||""}(e)||t}function ph(e,t,r){var n=dh(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var fh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),hh=Sn.oneOfType([Sn.func,Sn.object]),mh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Pf,deepmerge:Rf,elementAcceptingRef:Lf,elementTypeAcceptingRef:Af,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 dh(e,"Component");if("object"===Aa(e))switch(e.$$typeof){case uh.ForwardRef:return ph(e,e.render,"ForwardRef");case uh.Memo:return ph(e,e.type,"memo");default:return}}},ponyfillGlobal:fh,refType:hh}),gh=_e(mh);Object.defineProperty(Df,"__esModule",{value:!0}),Df.hexToRgb=bh,Df.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Sh(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(""))},Df.hslToRgb=xh,Df.decomposeColor=Sh,Df.recomposeColor=wh,Df.getContrastRatio=function(e,t){var r=Ch(e),n=Ch(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Df.getLuminance=Ch,Df.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Ch(e)>.5?Ih(e,t):Dh(e,t)},Df.fade=function(e,t){return Eh(e,t)},Df.alpha=Eh,Df.darken=Ih,Df.lighten=Dh;var vh=gh;function yh(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 bh(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 xh(e){var t=(e=Sh(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])),wh({type:s,values:l})}function Sh(e){if(e.type)return e;if("#"===e.charAt(0))return Sh(bh(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,vh.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 wh(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 Ch(e){var t="hsl"===(e=Sh(e)).type?Sh(xh(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 Eh(e,t){return e=Sh(e),t=yh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,wh(e)}function Ih(e,t){if(e=Sh(e),t=yh(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 wh(e)}function Dh(e,t){if(e=Sh(e),t=yh(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 wh(e)}var Ph,Mh,Rh,Lh={},Ah={exports:{}},kh={exports:{}},Oh={exports:{}};function qh(){return Ph||(Ph=1,function(e){var t=Ef.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}(Oh)),Oh.exports}function Th(){return Mh||(Mh=1,function(e){var t=Ef.default,r=qh();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(kh)),kh.exports}function _h(){return Rh||(Rh=1,function(e){var t=Th();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}(Ah)),Ah.exports}var jh,Nh={exports:{}};function Fh(){return jh||(jh=1,function(e){var t=As();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}(Nh)),Nh.exports}var zh,Wh={};var $h,Hh={};var Vh,Bh={},Gh={};var Uh,Yh={};var Kh,Xh={};var Jh,Zh={};var Qh,em={};var tm,rm={};var nm,om={};var im,am,sm={};function lm(){if(am)return Bh;am=1;var e=_a;Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.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,P=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,M=e.type,R=void 0===M?"light":M,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(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,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=T(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:_(P),grey:i.default,contrastThreshold:A,getContrastText:T,augmentColor:_,tonalOffset:O},j[R]),q);return N},Bh.dark=Bh.light=void 0;var t=e(Ms()),r=e(Fh()),n=gh,o=e(function(){if(Vh)return Gh;Vh=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.default=void 0;var e={black:"#000",white:"#fff"};return Gh.default=e,Gh}()),i=e(function(){if(Uh)return Yh;Uh=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.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 Yh.default=e,Yh}()),a=e(function(){if(Kh)return Xh;Kh=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.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 Xh.default=e,Xh}()),s=e(function(){if(Jh)return Zh;Jh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.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 Zh.default=e,Zh}()),l=e(function(){if(Qh)return em;Qh=1,Object.defineProperty(em,"__esModule",{value:!0}),em.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 em.default=e,em}()),u=e(function(){if(tm)return rm;tm=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.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 rm.default=e,rm}()),c=e(function(){if(nm)return om;nm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.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 om.default=e,om}()),d=e(function(){if(im)return sm;im=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.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 sm.default=e,sm}()),p=Df,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}};Bh.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 Bh.dark=h,Bh}var um,cm={};var dm,pm={};var fm,hm={};var mm={};function gm(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 vm(e,t){if(e){if("string"==typeof e)return gm(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)?gm(e,t):void 0}}function ym(e){return function(e){if(Array.isArray(e))return gm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vm(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 bm(e,t){return t?Rf(e,t,{clone:!1}):e}var xm={xs:0,sm:600,md:960,lg:1280,xl:1920},Sm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(xm[e],"px)")}};function wm(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Sm;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Aa(t)){var o=e.theme.breakpoints||Sm;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Cm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Em(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=Cm(e.theme,o)||{};return wm(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Cm(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=ka(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 Im(){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?bm(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Dm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Pm=Em({prop:"border",themeKey:"borders",transform:Dm}),Mm=Em({prop:"borderTop",themeKey:"borders",transform:Dm}),Rm=Em({prop:"borderRight",themeKey:"borders",transform:Dm}),Lm=Em({prop:"borderBottom",themeKey:"borders",transform:Dm}),Am=Em({prop:"borderLeft",themeKey:"borders",transform:Dm}),km=Em({prop:"borderColor",themeKey:"palette"}),Om=Em({prop:"borderRadius",themeKey:"shape"}),qm=Im(Pm,Mm,Rm,Lm,Am,km,Om);function Tm(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function _m(e){var t=function(t){var r=e(t);return t.css?Ae({},bm(r,e(Ae({theme:t.theme},t.css))),Tm(t.css,[e.filterProps])):t.sx?Ae({},bm(r,e(Ae({theme:t.theme},t.sx))),Tm(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(ym(e.filterProps)),t}var jm=Im(Em({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Em({prop:"display"}),Em({prop:"overflow"}),Em({prop:"textOverflow"}),Em({prop:"visibility"}),Em({prop:"whiteSpace"})),Nm=Em({prop:"flexBasis"}),Fm=Em({prop:"flexDirection"}),zm=Em({prop:"flexWrap"}),Wm=Em({prop:"justifyContent"}),$m=Em({prop:"alignItems"}),Hm=Em({prop:"alignContent"}),Vm=Em({prop:"order"}),Bm=Em({prop:"flex"}),Gm=Em({prop:"flexGrow"}),Um=Em({prop:"flexShrink"}),Ym=Em({prop:"alignSelf"}),Km=Em({prop:"justifyItems"}),Xm=Em({prop:"justifySelf"}),Jm=Im(Nm,Fm,zm,Wm,$m,Hm,Vm,Bm,Gm,Um,Ym,Km,Xm),Zm=Em({prop:"gridGap"}),Qm=Em({prop:"gridColumnGap"}),eg=Em({prop:"gridRowGap"}),tg=Em({prop:"gridColumn"}),rg=Em({prop:"gridRow"}),ng=Em({prop:"gridAutoFlow"}),og=Em({prop:"gridAutoColumns"}),ig=Em({prop:"gridAutoRows"}),ag=Em({prop:"gridTemplateColumns"}),sg=Em({prop:"gridTemplateRows"}),lg=Em({prop:"gridTemplateAreas"}),ug=Em({prop:"gridArea"}),cg=Im(Zm,Qm,eg,tg,rg,ng,og,ig,ag,sg,lg,ug),dg=Em({prop:"color",themeKey:"palette"}),pg=Em({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),fg=Im(dg,pg),hg=Em({prop:"position"}),mg=Em({prop:"zIndex",themeKey:"zIndex"}),gg=Em({prop:"top"}),vg=Em({prop:"right"}),yg=Em({prop:"bottom"}),bg=Em({prop:"left"}),xg=Im(hg,mg,gg,vg,yg,bg),Sg=Em({prop:"boxShadow",themeKey:"shadows"});function wg(e){return e<=1?"".concat(100*e,"%"):e}var Cg=Em({prop:"width",transform:wg}),Eg=Em({prop:"maxWidth",transform:wg}),Ig=Em({prop:"minWidth",transform:wg}),Dg=Em({prop:"height",transform:wg}),Pg=Em({prop:"maxHeight",transform:wg}),Mg=Em({prop:"minHeight",transform:wg}),Rg=Em({prop:"size",cssProperty:"width",transform:wg}),Lg=Em({prop:"size",cssProperty:"height",transform:wg}),Ag=Em({prop:"boxSizing"}),kg=Im(Cg,Eg,Ig,Dg,Pg,Mg,Ag);function Og(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)||vm(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 qg={m:"margin",p:"padding"},Tg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_g={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jg=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(!_g[e])return[e];e=_g[e]}var t=Og(e.split(""),2),r=t[0],n=t[1],o=qg[r],i=Tg[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Ng=["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 Fg(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 zg(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 Wg(e){var t=Fg(e.theme);return Object.keys(e).map((function(r){if(-1===Ng.indexOf(r))return null;var n=zg(jg(r),t),o=e[r];return wm(e,o,n)})).reduce(bm,{})}Wg.propTypes={},Wg.filterProps=Ng;var $g,Hg=Em({prop:"fontFamily",themeKey:"typography"}),Vg=Em({prop:"fontSize",themeKey:"typography"}),Bg=Em({prop:"fontStyle",themeKey:"typography"}),Gg=Em({prop:"fontWeight",themeKey:"typography"}),Ug=Em({prop:"letterSpacing"}),Yg=Em({prop:"lineHeight"}),Kg=Em({prop:"textAlign"}),Xg=Im(Hg,Vg,Bg,Gg,Ug,Yg,Kg),Jg=Object.freeze({__proto__:null,alignContent:Hm,alignItems:$m,alignSelf:Ym,bgcolor:pg,border:Pm,borderBottom:Lm,borderColor:km,borderLeft:Am,borderRadius:Om,borderRight:Rm,borderTop:Mm,borders:qm,bottom:yg,boxSizing:Ag,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Sm,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 bm(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(ym(e.filterProps)),t},color:dg,compose:Im,createUnarySpacing:Fg,css:function(e){return _m(e)},display:jm,flex:Bm,flexBasis:Nm,flexDirection:Fm,flexGrow:Gm,flexShrink:Um,flexWrap:zm,flexbox:Jm,fontFamily:Hg,fontSize:Vg,fontStyle:Bg,fontWeight:Gg,grid:cg,gridArea:ug,gridAutoColumns:og,gridAutoFlow:ng,gridAutoRows:ig,gridColumn:tg,gridColumnGap:Qm,gridGap:Zm,gridRow:rg,gridRowGap:eg,gridTemplateAreas:lg,gridTemplateColumns:ag,gridTemplateRows:sg,height:Dg,justifyContent:Wm,justifyItems:Km,justifySelf:Xm,left:bg,letterSpacing:Ug,lineHeight:Yg,maxHeight:Pg,maxWidth:Eg,minHeight:Mg,minWidth:Ig,order:Vm,palette:fg,position:hg,positions:xg,right:vg,shadows:Sg,sizeHeight:Lg,sizeWidth:Rg,sizing:kg,spacing:Wg,style:Em,styleFunctionSx:_m,textAlign:Kg,top:gg,typography:Xg,width:Cg,zIndex:mg}),Zg=_e(Jg);var Qg,ev={};function tv(){if(Qg)return ev;Qg=1;var e=_a;Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=ev.duration=ev.easing=void 0;var t=e(Fh()),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)"};ev.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")}ev.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 ev.default=i,ev}var rv,nv,ov={};function iv(){if(nv)return Lh;nv=1;var e=_a;Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.createMuiTheme=function(){return p.apply(void 0,arguments)},Lh.default=void 0,e(_h());var t=e(Fh()),r=gh,n=e(function(){if(zh)return Wh;zh=1;var e=_a;Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.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)},Wh.keys=void 0;var t=e(Ms()),r=e(Fh()),n=["xs","sm","md","lg","xl"];return Wh.keys=n,Wh}()),o=e(function(){if($h)return Hh;$h=1;var e=_a;Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.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(_h()),r=e(Ms());return Hh}()),i=e(lm()),a=e(function(){if(um)return cm;um=1;var e=_a;Object.defineProperty(cm,"__esModule",{value:!0}),cm.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"]),P=f/14,M=I||function(e){return"".concat(e/C*P,"rem")},R=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(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:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Ms()),r=e(Fh()),n=gh;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 cm}()),s=e(function(){if(dm)return pm;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(",")}dm=1,Object.defineProperty(pm,"__esModule",{value:!0}),pm.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 pm.default=t,pm}()),l=e(function(){if(fm)return hm;fm=1,Object.defineProperty(hm,"__esModule",{value:!0}),hm.default=void 0;var e={borderRadius:4};return hm.default=e,hm}()),u=e(function(){if($g)return mm;$g=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.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=Zg;return mm}()),c=e(tv()),d=e(function(){if(rv)return ov;rv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ov.default=e,ov}());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,P=new Array(D>1?D-1:0),M=1;M<D;M++)P[M-1]=arguments[M];return I=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),I)}var f=p;return Lh.default=f,Lh}var av,sv={};var lv={},uv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",cv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function dv(){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!==cv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[uv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function pv(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 fv="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},hv="object"===("undefined"==typeof window?"undefined":fv(window))&&"object"===("undefined"==typeof document?"undefined":fv(document))&&9===document.nodeType;function mv(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,ka(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var gv={}.constructor;function vv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(vv);if(e.constructor!==gv)return e;var t={};for(var r in e)t[r]=vv(e[r]);return t}function yv(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=vv(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var bv=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},xv=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+=bv(e[r]," ");else t=bv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Sv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function wv(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Cv(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=Sv(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+=wv(p+":"+u+xv(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=wv(h+":"+u+xv(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=wv(g+":"+u+xv(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),wv(""+e+u+"{"+n,--i)+wv("}",i)):n}var Ev=/([[\].#*$><+~=|^:(),"'`\s])/g,Iv="undefined"!=typeof CSS&&CSS.escape,Dv=function(e){return Iv?Iv(e):e.replace(Ev,"\\$1")},Pv=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}(),Mv=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(Dl(Dl(o)),s),o.selectorText="."+Dv(o.id)),o}gl(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]=xv(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return Cv(this.selectorText,this.style,r)},mv(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}(Pv),Rv={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Mv(e,t,r)}},Lv={indent:1,children:!0},Av=/@([\w-]+)/,kv=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Av);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ry(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=Lv);var t=Sv(e).linebreak;if(null==e.indent&&(e.indent=Lv.indent),null==e.children&&(e.children=Lv.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ov=/@container|@media|@supports\s+/,qv={onCreateRule:function(e,t,r){return Ov.test(e)?new kv(e,t,r):null}},Tv={indent:1,children:!0},_v=/@keyframes\s+([\w-]+)/,jv=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(_v);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:Dv(a(this,i)),this.rules=new ry(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=Tv);var t=Sv(e).linebreak;if(null==e.indent&&(e.indent=Tv.indent),null==e.children&&(e.children=Tv.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}(),Nv=/@keyframes\s+/,Fv=/\$([\w-]+)/g,zv=function(e,t){return"string"==typeof e?e.replace(Fv,(function(e,r){return r in t?t[r]:e})):e},Wv=function(e,t,r){var n=e[t],o=zv(n,r);o!==n&&(e[t]=o)},$v={onCreateRule:function(e,t,r){return"string"==typeof e&&Nv.test(e)?new jv(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Wv(e,"animation-name",r.keyframes),"animation"in e&&Wv(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 zv(e,n.keyframes);default:return e}}},Hv=function(e){function t(){return e.apply(this,arguments)||this}return gl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return Cv(this.key,this.style,r)},t}(Pv),Vv={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Hv(e,t,r):null}},Bv=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=Sv(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Cv(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Cv(this.at,this.style,e)},e}(),Gv=/@font-face/,Uv={onCreateRule:function(e,t,r){return Gv.test(e)?new Bv(e,t,r):null}},Yv=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 Cv(this.key,this.style,e)},e}(),Kv={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Yv(e,t,r):null}},Xv=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}(),Jv={"@charset":!0,"@import":!0,"@namespace":!0},Zv={onCreateRule:function(e,t,r){return e in Jv?new Xv(e,t,r):null}},Qv=[Rv,qv,$v,Vv,Uv,Kv,Zv],ey={process:!0},ty={force:!0,process:!0},ry=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="."+Dv(this.classes[d]));var p=yv(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 Mv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof jv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Mv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof jv&&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=ey);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,ty)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ty)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Sv(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}(),ny=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 ry(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}(),oy=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}(),iy=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=Sv(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},mv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ay=new iy,sy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ly="2f1acc6c3a606b082e5eef5e54414ffb";null==sy[ly]&&(sy[ly]=0);var uy=sy[ly]++,cy=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")+uy+o+t:i+r.key+"-"+uy+(o?"-"+o:"")+"-"+t}},dy=function(e){var t;return function(){return t||(t=e()),t}},py=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},fy=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=xv(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},hy=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},my=function(e,t){return e.selectorText=t,e.selectorText===t},gy=dy((function(){return document.querySelector("head")}));function vy(e){var t=ay.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=gy(),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 yy=dy((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),by=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]},xy=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Sy=function(){function e(e){this.getPropertyValue=py,this.setProperty=fy,this.removeProperty=hy,this.setSelector=my,this.hasInsertedRules=!1,this.cssRules=[],e&&ay.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=yy();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=vy(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 gy().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=xy(r,t);if(!1===(o=by(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=xy(r,t),l=by(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 ny&&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}(),wy=0,Cy=function(){function e(e){this.id=wy++,this.version="10.10.0",this.plugins=new oy,this.options={id:{minify:!1},createGenerateId:cy,Renderer:hv?Sy:null,plugins:[]},this.generateId=cy({minify:!1});for(var t=0;t<Qv.length;t++)this.plugins.use(Qv[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===ay.index?0:ay.index+1);var n=new ny(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(),ay.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=yv(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}(),Ey=function(e){return new Cy(e)},Iy="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Dy(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=Dy(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
88
|
+
`),Fl.rippleVisible,Gl,550,(({theme:e})=>e.transitions.easing.easeInOut),Fl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Fl.child,Fl.childLeaving,Ul,550,(({theme:e})=>e.transitions.easing.easeInOut),Fl.childPulsate,Yl,(({theme:e})=>e.transitions.easing.easeInOut)),Jl=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:a}=r,s=Oe(r,zl),[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=ta(),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(Xl,{classes:{ripple:si(o.ripple,Fl.ripple),rippleVisible:si(o.rippleVisible,Fl.rippleVisible),ripplePulsate:si(o.ripplePulsate,Fl.ripplePulsate),child:si(o.child,Fl.child),childLeaving:si(o.childLeaving,Fl.childLeaving),childPulsate:si(o.childPulsate,Fl.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(Kl,ke({className:si(Fl.root,o.root,a),ref:m},s,{children:Zo.jsx(kl,{component:null,exit:!0,children:l})}))}));function Zl(e){return ci("MuiButtonBase",e)}const Ql=di("MuiButtonBase",["root","disabled","focusVisible"]),eu=["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"],tu=al("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"},[`&.${Ql.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ru=i.forwardRef((function(e,t){const r=cl({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:P,tabIndex:M=0,TouchRippleProps:R,touchRippleRef:L,type:A}=r,k=Oe(r,eu),O=i.useRef(null),q=i.useRef(null),T=Ji(q,L),{isFocusVisibleRef:_,onFocus:j,onBlur:N,ref:F}=ca(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(n,(()=>({focusVisible:()=>{W(!0),O.current.focus()}})),[]);const[$,H]=i.useState(!1);i.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!u;function B(e,t,r=d){return Xi((n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0}))}i.useEffect((()=>{z&&p&&!c&&$&&q.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",P),Z=B("stop",I),Q=B("stop",D),ee=B("stop",(e=>{N(e),!1===_.current&&W(!1),h&&h(e)}),!1),te=Xi((e=>{O.current||(O.current=e.currentTarget),j(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=i.useRef(!1),oe=Xi((e=>{p&&!ne.current&&z&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,(()=>{q.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=Xi((e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,(()=>{q.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=Ji(t,F,O),ue=ke({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=pa({root:["root",t&&"disabled",r&&"focusVisible"]},Zl,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Zo.jsxs(tu,ke({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:M,type:A},se,k,{children:[a,V?Zo.jsx(Jl,ke({ref:T,center:o},R)):null]}))}));function nu(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 ou=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],iu=al("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${Wn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ke({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}))),au={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},su={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lu=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiTypography"}),n=(e=>su[e]||e)(r.color),o=ri(ke({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=au}=o,f=Oe(o,ou),h=ke({},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]||au[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return pa({root:["root",i,"inherit"!==e.align&&`align${Wn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},nu,a)})(h);return Zo.jsx(iu,ke({as:m,ref:t,ownerState:h,className:si(g.root,a)},f))}));const uu=i.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=Ji(i.isValidElement(r)?ya(r):null,t);if(_i((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),_i((()=>{if(a&&!o)return Bi(t,a),()=>{Bi(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?I.createPortal(r,a):a})})),cu=["onChange","maxRows","minRows","style","value"];function du(e){return parseInt(e,10)||0}const pu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function fu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const hu=i.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:a,value:s}=e,l=Oe(e,cu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=Ji(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=Vi(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=du(i.paddingBottom)+du(i.paddingTop),l=du(i.borderBottomWidth)+du(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=Xi((()=>{const e=c.current,t=h();if(!e||!t||fu(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||fu(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);_i((()=>{const e=$i(g),t=null==c?void 0:c.current;if(!t)return;const r=Vi(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]),_i((()=>{g()}));return Zo.jsxs(i.Fragment,{children:[Zo.jsx("textarea",ke({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:ke({},pu,a,{paddingTop:0,paddingBottom:0})})]})}));function mu({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 gu=i.createContext(void 0);function vu(){return i.useContext(gu)}function yu(e){return Zo.jsx(ei,ke({},e,{defaultTheme:Es,themeId:Ae}))}function bu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function xu(e,t=!1){return e&&(bu(e.value)&&""!==e.value||t&&bu(e.defaultValue)&&""!==e.defaultValue)}function Su(e){return ci("MuiInputBase",e)}const wu=di("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Cu=["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"],Eu=(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${Wn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Iu=(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]},Du=al("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Eu})((({theme:e,ownerState:t})=>ke({},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",[`&.${wu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Pu=al("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Iu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ke({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 ke({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] + .${wu.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},[`&.${wu.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(yu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ru=i.forwardRef((function(e,t){var r;const n=cl({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:P,onKeyDown:M,onKeyUp:R,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:_,type:j="text",value:N}=n,F=Oe(n,Cu),z=null!=y.value?y.value:N,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback((e=>{}),[]),V=Ji($,b,y.ref,H),[B,G]=i.useState(!1),U=vu(),Y=mu({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=>{xu(e)?K&&K():X&&X()}),[K,X]);_i((()=>{W&&J({value:z})}),[z,J,W]);i.useEffect((()=>{J($.current)}),[]);let Z=v,Q=y;w&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=hu);i.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=ke({},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 pa({root:["root",`color${Wn(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Wn(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"]},Su,t)})(ee),re=T.root||u.Root||Du,ne=q.root||c.root||{},oe=T.input||u.Input||Pu;return Q=ke({},Q,null!=(r=q.input)?r:c.input),Zo.jsxs(i.Fragment,{children:[!f&&Mu,Zo.jsxs(re,ke({},ne,!fa(re)&&{ownerState:ke({},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(gu.Provider,{value:null,children:Zo.jsx(oe,ke({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:O,value:z,onKeyDown:M,onKeyUp:R,type:j},Q,!fa(oe)&&{as:Z,ownerState:ke({},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(Re(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:_})):null]}))]})}));function Lu(e){return ci("MuiInput",e)}const Au=ke({},wu,di("MuiInput",["root","underline","input"]));function ku(e){return ci("MuiOutlinedInput",e)}const Ou=ke({},wu,di("MuiOutlinedInput",["root","notchedOutline","input"]));function qu(e){return ci("MuiFilledInput",e)}const Tu=ke({},wu,di("MuiFilledInput",["root","underline","input"]));var _u=ml(Zo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ju=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Nu={entering:{opacity:1},entered:{opacity:1}},Fu=i.forwardRef((function(e,t){const r=Is(),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=Il}=e,b=Oe(e,ju),x=i.useRef(null),S=Ji(x,ya(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)=>{Ol(e);const n=ql({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),P=w((e=>{const t=ql({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)})),M=w(h);return Zo.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:M,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(s,ke({style:ke({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Nu[e],g,s.props.style),ref:S},t))}))}));function zu(e){return ci("MuiBackdrop",e)}di("MuiBackdrop",["root","invisible"]);const Wu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$u=al("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>ke({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"}))),Hu=i.forwardRef((function(e,t){var r,n,o;const i=cl({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=Fu,transitionDuration:g}=i,v=Oe(i,Wu),y=ke({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return pa({root:["root",r&&"invisible"]},zu,t)})(y),x=null!=(r=f.root)?r:c.root;return Zo.jsx(m,ke({in:p,timeout:g},v,{children:Zo.jsx($u,ke({"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:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))})),Vu=di("MuiBox",["root"]),Bu=Cs(),Gu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=In("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(To);return i.forwardRef((function(e,i){const s=$o(r),l=ri(e),{className:u,component:c="div"}=l,d=Oe(l,li);return Zo.jsx(a,ke({as:c,ref:i,className:si(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Ae,defaultTheme:Bu,defaultClassName:Vu.root,generateClassName:ii.generate});function Uu(e){return ci("MuiButton",e)}const Yu=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"]),Ku=i.createContext({}),Xu=i.createContext(void 0),Ju=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Zu=e=>ke({},"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}}),Qu=al(ru,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Wn(r.color)}`],t[`size${Wn(r.size)}`],t[`${r.variant}Size${Wn(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 ke({},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":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wa(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})`:Wa(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})`:Wa(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":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yu.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yu.disabled}`]:ke({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 ${Wa(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"},[`&.${Yu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yu.disabled}`]:{boxShadow:"none"}})),ec=al("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Wn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Zu(e)))),tc=al("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Wn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Zu(e)))),rc=i.forwardRef((function(e,t){const r=i.useContext(Ku),n=i.useContext(Xu),o=cl({props:Ti(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=Oe(o,Ju),S=ke({},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 ke({},a,pa({root:["root",i,`${i}${Wn(t)}`,`size${Wn(o)}`,`${i}Size${Wn(o)}`,`color${Wn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Wn(o)}`],endIcon:["icon","endIcon",`iconSize${Wn(o)}`]},Uu,a))})(S),C=v&&Zo.jsx(ec,{className:w.startIcon,ownerState:S,children:v}),E=f&&Zo.jsx(tc,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return Zo.jsxs(Qu,ke({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 nc(e){return ci("PrivateSwitchBase",e)}di("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const oc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ic=al(ru,{name:"MuiSwitchBase"})((({ownerState:e})=>ke({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),ac=al("input",{name:"MuiSwitchBase",shouldForwardProp:il})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sc=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=Oe(e,oc),[E,I]=Ki({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=vu();let P=s;D&&void 0===P&&(P=D.disabled);const M="checkbox"===S||"radio"===S,R=ke({},e,{checked:E,disabled:P,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return pa({root:["root",r&&"checked",n&&"disabled",o&&`edge${Wn(o)}`],input:["input"]},nc,t)})(R);return Zo.jsxs(ic,ke({component:"span",className:si(L.root,i),centerRipple:!0,focusRipple:!l,disabled:P,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(ac,ke({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:P,id:M?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 lc=ml(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"),uc=ml(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"),cc=ml(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 dc(e){return ci("MuiCheckbox",e)}const pc=di("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),fc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],hc=al(sc,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Wn(r.size)}`],"default"!==r.color&&t[`color${Wn(r.color)}`]]}})((({theme:e,ownerState:t})=>ke({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})`:Wa("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${pc.checked}, &.${pc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),mc=Zo.jsx(uc,{}),gc=Zo.jsx(lc,{}),vc=Zo.jsx(cc,{}),yc=i.forwardRef((function(e,t){var r,n;const o=cl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=mc,color:s="primary",icon:l=gc,indeterminate:u=!1,indeterminateIcon:c=vc,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,fc),m=u?c:l,g=u?c:a,v=ke({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return ke({},t,pa({root:["root",r&&"indeterminate",`color${Wn(n)}`,`size${Wn(o)}`]},dc,t))})(v);return Zo.jsx(hc,ke({type:"checkbox",inputProps:ke({"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 bc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xc(e){return parseInt(Vi(e).getComputedStyle(e).paddingRight,10)||0}function Sc(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 wc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Cc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Hi(e);return t.body===e?Vi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=da(Hi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${xc(n)+e}px`;const t=Hi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${xc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Hi(n).body;else{const t=n.parentElement,r=Vi(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 Ec=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ic(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ec)).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 Dc(){return!0}function Pc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=Ic,isEnabled:s=Dc,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=Ji(ya(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=Hi(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=Hi(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 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);Sc(t,e.mount,e.modalRef,n,!0);const o=wc(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=wc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Cc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=wc(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),Sc(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 Rc(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=Ji(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=Xi((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hi(h.current).body;o.add(S(),e),m.current&&w()})),E=i.useCallback((()=>o.isTopModal(S())),[o]),I=Xi((e=>{h.current=e,e&&(d&&E()?w():m.current&&bc(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 P=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")))},M=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=ha(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=ke({},r,t);return ke({role:"presentation"},n,{onKeyDown:P(n),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Wi((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:Wi((()=>{y(!0),l&&l(),a&&D()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function Lc(e){return ci("MuiModal",e)}di("MuiModal",["root","hidden","backdrop"]);const Ac=["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"],kc=al("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})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Oc=al(Hu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qc=i.forwardRef((function(e,t){var r,n,o,a,s,l;const u=cl({name:"MuiModal",props:e}),{BackdropComponent:c=Oc,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:P,open:M,slotProps:R,slots:L}=u,A=Oe(u,Ac),k=ke({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:_,isTopModal:j,exited:N,hasTransition:F}=Rc(ke({},k,{rootRef:t})),z=ke({},k,{exited:N}),W=(e=>{const{open:t,exited:r,classes:n}=e;return pa({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Lc,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:kc,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=va({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,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=va({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{P&&P(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||M||F&&!N?Zo.jsx(uu,{ref:_,container:m,disablePortal:w,children:Zo.jsxs(H,ke({},U,{children:[!I&&c?Zo.jsx(V,ke({},Y)):null,Zo.jsx(Pc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:M,children:i.cloneElement(h,$)})]}))}):null}));function Tc(e){return ci("MuiDivider",e)}const _c=di("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Nc=al("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})=>ke({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)`:Wa(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})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Fc=al("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ke({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)`}))),zc=i.forwardRef((function(e,t){const r=cl({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=Oe(r,jc),h=ke({},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 pa({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"]},Tc,n)})(h);return Zo.jsx(Nc,ke({as:a,className:si(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Zo.jsx(Fc,{className:m.wrapper,ownerState:h,children:o}):null}))}));zc.muiSkipListHighlight=!0;const Wc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$c=al(Du,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Eu(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 ke({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}},[`&.${Tu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Tu.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"},[`&.${Tu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tu.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(.${Tu.disabled}, .${Tu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Tu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({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}))})),Hc=al(Pu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Iu})((({theme:e,ownerState:t})=>ke({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}))),Vc=i.forwardRef((function(e,t){var r,n,o,i;const a=cl({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=Oe(a,Wc),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,pa({root:["root",!r&&"underline"],input:["input"]},qu,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?An(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:$c,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Hc;return Zo.jsx(Ru,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));Vc.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 Uc={entering:{opacity:1,transform:Gc(1)},entered:{opacity:1,transform:"none"}},Yc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kc=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=Il}=e,v=Oe(e,Bc),y=ta(),b=i.useRef(),x=Is(),S=i.useRef(null),w=Ji(S,ya(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)=>{Ol(e);const{duration:r,delay:n,easing:o}=ql({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:Yc?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),D=C(u),P=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=ql({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:Yc?o:.666*o,delay:Yc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Gc(.75),d&&d(e)})),R=C(p);return Zo.jsx(g,ke({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:M,onExited:R,onExiting:P,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,ke({style:ke({opacity:0,transform:Gc(.75),visibility:"exited"!==e||s?void 0:"hidden"},Uc[e],h,o.props.style),ref:w},t))}))}));Kc.muiSupportAuto=!0;const Xc=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jc=al(Du,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Eu(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})`),ke({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"},[`&.${Au.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Au.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(.${Au.disabled}, .${Au.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Au.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Zc=al(Pu,{name:"MuiInput",slot:"Input",overridesResolver:Iu})({}),Qc=i.forwardRef((function(e,t){var r,n,o,i;const a=cl({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=Oe(a,Xc),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,pa({root:["root",!r&&"underline"],input:["input"]},Lu,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?An(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Jc,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Zc;return Zo.jsx(Ru,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));function ed(e){return ci("MuiInputAdornment",e)}Qc.muiName="Input";const td=di("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rd;const nd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],od=al("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Wn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>ke({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${td.positionStart}&:not(.${td.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),id=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Oe(r,nd),p=vu()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},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 pa({root:["root",r&&"disablePointerEvents",o&&`position${Wn(o)}`,a,n&&"hiddenLabel",i&&`size${Wn(i)}`]},ed,t)})(h);return Zo.jsx(gu.Provider,{value:null,children:Zo.jsx(od,ke({as:a,ownerState:h,className:si(m.root,o),ref:t},d,{children:"string"!=typeof n||l?Zo.jsxs(i.Fragment,{children:["start"===u?rd||(rd=Zo.jsx("span",{className:"notranslate",children:""})):null,n]}):Zo.jsx(lu,{color:"text.secondary",children:n})}))})}));function ad(e){return ci("MuiLink",e)}const sd=di("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ld={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ud=({theme:e,ownerState:t})=>{const r=(e=>ld[e]||e)(t.color),n=Hn(e,`palette.${r}`,!1)||t.color,o=Hn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Wa(n,.4)},cd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],dd=al(lu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Wn(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ud({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"},[`&.${sd.focusVisible}`]:{outline:"auto"}}))),pd=i.forwardRef((function(e,t){const r=cl({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=Oe(r,cd),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=ca(),[y,b]=i.useState(!1),x=Ji(t,v),S=ke({},r,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return pa({root:["root",`underline${Wn(o)}`,"button"===r&&"button",n&&"focusVisible"]},ad,t)})(S);return Zo.jsx(dd,ke({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(ld).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))})),fd=i.createContext({});function hd(e){return ci("MuiList",e)}di("MuiList",["root","padding","dense","subheader"]);const md=["children","className","component","dense","disablePadding","subheader"],gd=al("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})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),vd=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Oe(r,md),d=i.useMemo((()=>({dense:s})),[s]),p=ke({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return pa({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},hd,t)})(p);return Zo.jsx(fd.Provider,{value:d,children:Zo.jsxs(gd,ke({as:a,className:si(f.root,o),ref:t,ownerState:p},c,{children:[u,n]}))})}));function yd(e){return ci("MuiListItem",e)}const bd=di("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),xd=di("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Sd(e){return ci("MuiListItemSecondaryAction",e)}di("MuiListItemSecondaryAction",["root","disableGutters"]);const wd=["className"],Cd=al("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Ed=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Oe(r,wd),a=ke({},r,{disableGutters:i.useContext(fd).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return pa({root:["root",t&&"disableGutters"]},Sd,r)})(a);return Zo.jsx(Cd,ke({className:si(s.root,n),ownerState:a,ref:t},o))}));Ed.muiName="ListItemSecondaryAction";const Id=["className"],Dd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pd=al("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})=>ke({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ke({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${xd.root}`]:{paddingRight:48}},{[`&.${bd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bd.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"}},[`&.${bd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wa(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})`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Md=al("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Rd=i.forwardRef((function(e,t){const r=cl({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=Oe(r.ContainerProps,Id),I=Oe(r,Dd),D=i.useContext(fd),P=i.useMemo((()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g})),[n,D.dense,h,g]),M=i.useRef(null);_i((()=>{o&&M.current&&M.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!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=ke({},r,{alignItems:n,autoFocus:o,button:a,dense:P.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 pa({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},yd,n)})(T),j=Ji(M,t),N=C.root||c.Root||Pd,F=w.root||d.root||{},z=ke({className:si(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=si(bd.focusVisible,b),W=ru),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),Zo.jsx(fd.Provider,{value:P,children:Zo.jsxs(Md,ke({as:p,className:si(_.container,f),ref:j,ownerState:T},E,{children:[Zo.jsx(N,ke({},F,!fa(N)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:R})),R.pop()]}))})):Zo.jsx(fd.Provider,{value:P,children:Zo.jsxs(N,ke({},F,{as:W,ref:j},!fa(N)&&{ownerState:ke({},T,F.ownerState)},z,{children:[R,x&&Zo.jsx(Ed,{children:x})]}))})}));function Ld(e){return ci("MuiListItemIcon",e)}const Ad=di("MuiListItemIcon",["root","alignItemsFlexStart"]),kd=["className"],Od=al("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})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),qd=i.forwardRef((function(e,t){const r=cl({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Oe(r,kd),a=ke({},r,{alignItems:i.useContext(fd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return pa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ld,r)})(a);return Zo.jsx(Od,ke({className:si(s.root,n),ownerState:a,ref:t},o))})),Td=di("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_d=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Nd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Fd(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 zd(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")&&Fd(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Wd=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=Oe(e,_d),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_i((()=>{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=`${da(Hi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=Ji(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(vd,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Hi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),zd(t,n,u,l,jd);else if("ArrowUp"===r)e.preventDefault(),zd(t,n,u,l,Nd);else if("Home"===r)e.preventDefault(),zd(t,null,u,l,jd);else if("End"===r)e.preventDefault(),zd(t,null,u,l,Nd);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&&Fd(n,o);o.previousKeyMatched&&(s||zd(t,n,!1,l,jd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))}));function $d(e){return ci("MuiPopover",e)}di("MuiPopover",["root","paper"]);const Hd=["onEntering"],Vd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Bd=["slotProps"];function Gd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ud(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Yd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Kd(e){return"function"==typeof e?e():e}const Xd=al(qc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jd=al(Nl,{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}),Zd=i.forwardRef((function(e,t){var r,n,o;const a=cl({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=Kc,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,Hd),P=Oe(a,Vd),M=null!=(r=null==x?void 0:x.paper)?r:y,R=i.useRef(),L=Ji(R,M.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return pa({root:["root"],paper:["paper"]},$d,t)})(A),O=i.useCallback((()=>{if("anchorPosition"===d)return c;const e=Kd(l),t=(e&&1===e.nodeType?e:Hi(R.current).body).getBoundingClientRect();return{top:t.top+Gd(t,u.vertical),left:t.left+Ud(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),q=i.useCallback((e=>({vertical:Gd(e,S.vertical),horizontal:Ud(e,S.horizontal)})),[S.horizontal,S.vertical]),T=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===d)return{top:null,left:null,transformOrigin:Yd(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Vi(Kd(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:Yd(r)}}),[l,d,O,q,g]),[_,j]=i.useState(v),N=i.useCallback((()=>{const e=R.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((()=>(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=$i((()=>{N()})),t=Vi(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?Hi(Kd(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:Xd,$=null!=(o=null==b?void 0:b.paper)?o:Jd,H=va({elementType:$,externalSlotProps:ke({},M,{style:_?M.style:ke({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:si(k.paper,null==M?void 0:M.className)}),V=va({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:si(k.root,f)}),{slotProps:B}=V,G=Oe(V,Bd);return Zo.jsx(W,ke({},G,!fa(W)&&{slotProps:B,disableScrollLock:I},{children:Zo.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},D,{children:Zo.jsx($,ke({},H,{children:p}))}))}))}));function Qd(e){return ci("MuiMenu",e)}di("MuiMenu",["root","paper","list"]);const ep=["onEntering"],tp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rp={vertical:"top",horizontal:"right"},np={vertical:"top",horizontal:"left"},op=al(Zd,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ip=al(Jd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ap=al(Wd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sp=i.forwardRef((function(e,t){var r,n;const o=cl({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=Oe(o.TransitionProps,ep),S=Oe(o,tp),w=(()=>{const e=i.useContext(Ea);return null!=e&&e})(),C=ke({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return pa({root:["root"],paper:["paper"],list:["list"]},Qd,t)})(C),I=a&&!u&&p,D=i.useRef(null);let P=-1;i.Children.map(s,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))}));const M=null!=(r=y.paper)?r:ip,R=null!=(n=b.paper)?n:f,L=va({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=va({elementType:M,externalSlotProps:R,ownerState:C,className:E.paper});return Zo.jsx(op,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?rp:np,slots:{paper:M,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:ke({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(ap,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:si(E.list,c.className),children:s}))}))}));function lp(e){return ci("MuiMenuItem",e)}const up=di("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),cp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dp=al(ru,{shouldForwardProp:e=>il(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})=>ke({},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"}},[`&.${up.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${up.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${up.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wa(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})`:Wa(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${up.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${up.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${_c.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${_c.inset}`]:{marginLeft:52},[`& .${Td.root}`]:{marginTop:0,marginBottom:0},[`& .${Td.inset}`]:{paddingLeft:36},[`& .${Ad.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ad.root} svg`]:{fontSize:"1.25rem"}})))),pp=i.forwardRef((function(e,t){const r=cl({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=Oe(r,cp),h=i.useContext(fd),m=i.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=i.useRef(null);_i((()=>{n&&g.current&&g.current.focus()}),[n]);const v=ke({},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 ke({},a,pa({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},lp,a))})(r),b=Ji(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Zo.jsx(fd.Provider,{value:m,children:Zo.jsx(dp,ke({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:si(y.focusVisible,u),className:si(y.root,p)},f,{ownerState:v,classes:y}))})}));function fp(e){return ci("MuiNativeSelect",e)}const hp=di("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mp=["className","disabled","error","IconComponent","inputRef","variant"],gp=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},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"},[`&.${hp.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}}),vp=al("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:il,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${hp.multiple}`]:t.multiple}]}})(gp),yp=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${hp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),bp=al("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Wn(r.variant)}`],r.open&&t.iconOpen]}})(yp),xp=i.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,mp),c=ke({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pa({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Wn(r)}`,i&&"iconOpen",n&&"disabled"]},fp,t)})(c);return Zo.jsxs(i.Fragment,{children:[Zo.jsx(vp,ke({ownerState:c,className:si(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Zo.jsx(bp,{as:a,ownerState:c,className:d.icon})]})}));var Sp;const wp=["children","classes","className","label","notched"],Cp=al("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:il})({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%"}),Ep=al("legend",{name:"MuiNotchedOutlined",shouldForwardProp:il})((({ownerState:e,theme:t})=>ke({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&&ke({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 Ip=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Dp=al(Du,{shouldForwardProp:e=>il(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Eu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ou.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ou.focused} .${Ou.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ou.error} .${Ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ou.disabled} .${Ou.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Pp=al((function(e){const{className:t,label:r,notched:n}=e,o=Oe(e,wp),i=null!=r&&""!==r,a=ke({},e,{notched:n,withLabel:i});return Zo.jsx(Cp,ke({"aria-hidden":!0,className:t,ownerState:a},o,{children:Zo.jsx(Ep,{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}})),Mp=al(Pu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Iu})((({theme:e,ownerState:t})=>ke({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}))),Rp=i.forwardRef((function(e,t){var r,n,o,a,s;const l=cl({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=Oe(l,Ip),y=(e=>{const{classes:t}=e;return ke({},t,pa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ku,t))})(l),b=vu(),x=mu({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},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:Dp,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Mp;return Zo.jsx(Ru,ke({slots:{root:w,input:C},renderSuffix:e=>Zo.jsx(Pp,{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:ke({},y,{notchedOutline:null})}))}));function Lp(e){return ci("MuiSelect",e)}Rp.muiName="Input";const Ap=di("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var kp;const Op=["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"],qp=al("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ap.select}`]:t.select},{[`&.${Ap.select}`]:t[r.variant]},{[`&.${Ap.error}`]:t.error},{[`&.${Ap.multiple}`]:t.multiple}]}})(gp,{[`&.${Ap.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Tp=al("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Wn(r.variant)}`],r.open&&t.iconOpen]}})(yp),_p=al("input",{shouldForwardProp:e=>ol(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 jp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Np(e){return null==e||"string"==typeof e&&!e.trim()}const Fp=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:P,renderValue:M,SelectDisplayProps:R={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,Op),[q,T]=Ki({controlled:A,default:d,name:"Select"}),[_,j]=Ki({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=Ji(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:q})),[q]),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=Hi(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(q)?q.slice():[];const t=q.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),q!==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)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(xu({value:q})||f)&&(M?Z=M(q):te=!0);const re=K.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Re(2));t=q.some((t=>jp(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=jp(q,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=ke({},e,{variant:k,value:q,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return pa({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Wn(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Lp,t)})(ae),le=ke({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=Yi();return Zo.jsxs(i.Fragment,{children:[Zo.jsx(qp,ke({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(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||P?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:q,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:si(R.className,se.select,u),id:ie,children:Np(Z)?kp||(kp=Zo.jsx("span",{className:"notranslate",children:""})):Z})),Zo.jsx(_p,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,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},O)),Zo.jsx(Tp,{as:m,className:se.icon,ownerState:ae}),Zo.jsx(sp,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:ke({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:ke({},y.slotProps,{paper:ke({},le,{style:ke({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),zp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Wp=["root"],$p={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>il(e)&&"variant"!==e,slot:"Root"},Hp=al(Qc,$p)(""),Vp=al(Rp,$p)(""),Bp=al(Vc,$p)(""),Gp=i.forwardRef((function(e,t){const r=cl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=_u,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=Oe(r,zp),D=y?xp:Fp,P=mu({props:r,muiFormControl:vu(),states:["variant","error"]}),M=P.variant||E,R=ke({},r,{variant:M,classes:a}),L=(e=>{const{classes:t}=e;return t})(R),A=Oe(L,Wp),k=p||{standard:Zo.jsx(Hp,{ownerState:R}),outlined:Zo.jsx(Vp,{label:h,ownerState:R}),filled:Zo.jsx(Bp,{ownerState:R})}[M],O=Ji(t,ya(k));return Zo.jsx(i.Fragment,{children:i.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:o,error:P.error,IconComponent:c,variant:M,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:ke({id:d},C)},f,{classes:f?An(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:O,className:si(k.props.className,s,L.root)},!p&&{variant:M},I))})}));Gp.muiName="Select";const Up={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"},Yp={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",...Up,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)"},Kp=12,Xp=14,Jp=16,Zp=24,Qp=3,ef=300,tf=400,rf=600,nf=700,of={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function af(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 sf=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 lf(e={}){return Zo.jsx(sf,{...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 uf(e={}){return Zo.jsx(sf,{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 cf(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 df(e={}){return Zo.jsx(sf,{...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 pf(e={}){return Zo.jsx(sf,{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 ff({className:e}){return Zo.jsx(sf,{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 hf(e={}){return Zo.jsx(sf,{...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:Yp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const mf={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:Qp,"& > 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 gf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Yp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Yp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(af,{"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 ${Yp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Yp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`,borderRadius:Qp,backgroundColor:Yp.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 ${Yp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Yp.WHITE,color:Yp.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:Qp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Yp.GREYSCALE_0_15,backgroundColor:Yp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Yp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Yp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Yp.GREEN_PALE},"&:active":{backgroundColor:Yp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Yp.GREEN_PALE,boxShadow:`0 0 0 3px ${zi(Yp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Yp.BLUE_PALE},"&:active":{backgroundColor:Yp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Yp.BLUE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.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:Qp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Yp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Yp.GREYSCALE_0_42,backgroundColor:Yp.GREYSCALE_100_60,"&:active":{backgroundColor:Yp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Yp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Yp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Yp.PURPLE,"&.Mui-focusVisible":{borderColor:Yp.PURPLE,boxShadow:`0 0 0 3px ${zi(Yp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Yp.GREEN,"&.Mui-focusVisible":{borderColor:Yp.GREEN,boxShadow:`0 0 0 3px ${zi(Yp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Yp.BLUE,"&.Mui-focusVisible":{borderColor:Yp.BLUE,boxShadow:`0 0 0 3px ${zi(Yp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Yp.ORANGE,"&.Mui-focusVisible":{borderColor:Yp.ORANGE,boxShadow:`0 0 0 3px ${zi(Yp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Yp.RED,"&.Mui-focusVisible":{borderColor:Yp.RED,boxShadow:`0 0 0 3px ${zi(Yp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Yp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Yp.PURPLE_PALE},"&:active":{backgroundColor:Yp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Yp.PURPLE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Yp.GREEN_PALE},"&:active":{backgroundColor:Yp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Yp.GREEN_PALE,boxShadow:`0 0 0 3px ${zi(Yp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Yp.BLUE_PALE},"&:active":{backgroundColor:Yp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Yp.BLUE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Yp.ORANGE_PALE},"&:active":{backgroundColor:Yp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Yp.ORANGE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Yp.RED_PALE},"&:active":{backgroundColor:Yp.RED_DARK},"&.Mui-focusVisible":{borderColor:Yp.RED_PALE,boxShadow:`0 0 0 3px ${zi(Yp.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:Yp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Yp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Qp,boxShadow:`inset 0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(cf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Kp,borderRadius:Qp,color:Yp.TEXT_PRIMARY,backgroundColor:Yp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Yp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Yp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Yp.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Yp.GREYSCALE_0_05,color:Yp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Yp.GREEN,borderColor:Yp.GREEN},"&.MuiChip-outlinedInfo":{color:Yp.BLUE,borderColor:Yp.BLUE},"&.MuiChip-outlinedWarning":{color:Yp.ORANGE,borderColor:Yp.ORANGE},"&.MuiChip-outlinedError":{color:Yp.RED,borderColor:Yp.RED}},outlined:{border:`solid 1px ${Yp.GREYSCALE_0_15}`,backgroundColor:Yp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Qp,boxShadow:"none",backgroundColor:Yp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Yp.GREEN,borderColor:Yp.GREEN},outlinedSecondary:{color:Yp.BLUE,borderColor:Yp.BLUE},label:{fontFamily:of.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(cf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(af,{"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:Qp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Qp,fontSize:Xp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Yp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Yp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Yp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Yp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Yp.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Qp,border:`solid 1px ${Yp.GREYSCALE_0_15}`,color:Yp.GREYSCALE_0_60,marginRight:0,width:Zp,height:Zp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Yp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Qp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Yp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Xp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Kp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Yp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Yp.GREYSCALE_25,fontSize:Kp,fontFamily:of.FONT_FAMILY,fontWeight:rf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Yp.TEXT_PRIMARY},"&.Mui-error":{color:Yp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Yp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:tf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Yp.TEXT_SECONDARY,content:"'(required)'",fontWeight:tf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Xp,lineHeight:"16px",backgroundColor:Yp.WHITE,borderRadius:Qp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Yp.GREYSCALE_0_05}`,borderColor:Yp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Yp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Yp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Yp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Yp.RED}`,boxShadow:`0px 0px 0px 1px ${Yp.RED}, inset 0 2px 0 0 ${Yp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Yp.GREYSCALE_0_10}`,borderColor:Yp.GREYSCALE_0_10,backgroundColor:Yp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Yp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Yp.GREYSCALE_0_15,borderRadius:Qp,boxShadow:`inset 0 2px 0 0 ${Yp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(af,{...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:Yp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Yp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Yp.GREYSCALE_0_03},"&:active":{backgroundColor:Yp.GREYSCALE_0_10},"&:focus":{backgroundColor:Yp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Yp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Yp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Yp.GREYSCALE_0_30,"&:hover":{backgroundColor:Yp.GREYSCALE_0_0,borderColor:Yp.GREYSCALE_0_15},"& ~svg":{color:Yp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Yp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Qp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Yp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Yp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Xp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Kp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Kp,fontWeight:rf,color:Yp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:rf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Yp.GREYSCALE_0_15}, 0px 0px 0px 1px ${Yp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(pf,{}),checkedIcon:Zo.jsx(uf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Yp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Yp.GREEN_PALE,boxShadow:`0 0 0 3px ${zi(Yp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Yp.BLUE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Yp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Yp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(hf,{}),checkedIcon:Zo.jsx(lf,{}),indeterminateIcon:Zo.jsx(df,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Qp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Yp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Yp.GREYSCALE_0_55,color:Yp.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:Yp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Yp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Yp.GREYSCALE_0_55,"&:hover":{color:Yp.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:Yp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Yp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Xp,color:Yp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:rf},secondary:{fontSize:Kp,color:Yp.GREYSCALE_45,fontWeight:tf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Xp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Xp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Yp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Kp,borderBottom:`solid 1px ${Yp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Xp,color:Yp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Yp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Yp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Yp.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:Yp.RED}}},"&.Mui-focusVisible":{backgroundColor:Yp.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:Yp.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:Yp.GREEN,height:"24px","&.Mui-disabled":{color:Yp.GREYSCALE_0_15}},rail:{backgroundColor:Yp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Yp.GREYSCALE_0_05}`,borderRadius:Qp,boxShadow:`inset 0px 0px 0px 1px ${Yp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Yp.GREYSCALE_0_05}`,borderRadius:Qp},thumb:{height:"16px",width:"16px",borderRadius:Qp,backgroundColor:Yp.WHITE,boxShadow:`0px 1px 2px 0px ${Yp.GREYSCALE_0_15}, 0px 0px 0px 1px ${Yp.GREYSCALE_0_05}`,"&:hover":{borderRadius:Qp,boxShadow:`0 2px 4px 0 ${Yp.GREYSCALE_0_30}, 0 0 0 1px ${Yp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Yp.GREYSCALE_0_15}, 0 0 0 1px ${Yp.GREYSCALE_0_06}, 0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Yp.GREYSCALE_0_15}, 0 0 0 1px ${Yp.GREYSCALE_0_06}, 0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Yp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Yp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Yp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Yp.GREYSCALE_0_15},markLabel:{color:Yp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Yp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Yp.WHITE,color:Yp.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:Yp.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:Yp.GREEN_PALE,boxShadow:`0 0 0 3px ${zi(Yp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Yp.BLUE_PALE,boxShadow:`0 0 0 3px ${zi(Yp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Yp.GREYSCALE_0_15,borderRadius:Qp},thumb:{height:"16px",width:"16px",borderRadius:Qp,backgroundColor:Yp.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:Xp,fontWeight:rf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Yp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Yp.MISC_FOCUS_BORDER}`,backgroundColor:Yp.GREYSCALE_0_03,borderRadius:Qp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Yp.GREYSCALE_25,"&.Mui-selected":{color:Yp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Xp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Qp,"&:hover":{backgroundColor:Yp.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 ${Yp.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Yp.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Qp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Yp.GREYSCALE_0_05},"&:hover":{backgroundColor:Yp.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Yp.GREYSCALE_85}`,borderRight:`1px solid ${Yp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:rf,backgroundColor:Yp.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:Yp.GREYSCALE_98,borderBottom:`1px solid ${Yp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Yp.GREYSCALE_85}`,borderTop:`1px solid ${Yp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Yp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Yp.GREYSCALE_0_05,"&:hover":{backgroundColor:Yp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Yp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(ff,{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 ${Yp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Xp,borderRadius:Qp,padding:"7px 16px",border:`1px solid ${Yp.GREYSCALE_0_15}`,backgroundColor:Yp.GREYSCALE_100_60,color:Yp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Yp.GREYSCALE_0_10,border:`1px solid ${Yp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Yp.GREYSCALE_0_03,border:`1px solid ${Yp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Yp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Yp.MISC_FOCUS_BORDER}`,border:`1px solid ${Yp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Yp.GREYSCALE_25,backgroundColor:Yp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Yp.GREYSCALE_0_10,border:`1px solid ${Yp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Kp,height:24,width:24,padding:7},sizeLarge:{fontSize:Jp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Xp,borderRadius:Qp}}},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:Yp.GREYSCALE_20},tooltip:{backgroundColor:Yp.GREYSCALE_20,fontSize:Kp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...mf}:{}}),vf=(e,t)=>gf(t);var yf=()=>({mode:"light",primary:{ultraLight:Yp.GREEN_ULTRA_LIGHT,light:Yp.GREEN_PALE,main:Yp.GREEN,dark:Yp.GREEN_DARK,extraDark:Yp.GREEN_EXTRA_DARK,contrastText:Yp.WHITE},secondary:{ultraLight:Yp.BLUE_ULTRA_LIGHT,light:Yp.BLUE_PALE,main:Yp.BLUE,dark:Yp.BLUE_DARK,extraDark:Yp.BLUE_EXTRA_DARK,contrastText:Yp.WHITE},error:{ultraLight:Yp.RED_ULTRA_LIGHT,light:Yp.RED_PALE,main:Yp.RED,dark:Yp.RED_DARK,extraDark:Yp.RED_EXTRA_DARK,contrastText:Yp.WHITE},warning:{ultraLight:Yp.ORANGE_ULTRA_LIGHT,light:Yp.ORANGE_PALE,main:Yp.ORANGE,dark:Yp.ORANGE_DARK,extraDark:Yp.ORANGE_EXTRA_DARK,contrastText:Yp.WHITE},success:{ultraLight:Yp.GREEN_ULTRA_LIGHT,light:Yp.GREEN_PALE,main:Yp.GREEN,dark:Yp.GREEN_DARK,extraDark:Yp.GREEN_EXTRA_DARK,contrastText:Yp.WHITE},info:{ultraLight:Yp.BLUE_ULTRA_LIGHT,light:Yp.BLUE_PALE,main:Yp.BLUE,dark:Yp.BLUE_DARK,extraDark:Yp.BLUE_EXTRA_DARK,contrastText:Yp.WHITE},text:{primary:Yp.TEXT_PRIMARY,secondary:Yp.TEXT_SECONDARY,disabled:Yp.GREYSCALE_0_30},action:{hover:Yp.GREYSCALE_0_03,hoverOpacity:.03,selected:Yp.GREYSCALE_0_05,selectedOpacity:.05,focus:Yp.MISC_FOCUS_BORDER},amethyst:{ultraLight:Yp.WHITE,main:Yp.PURPLE,light:Yp.PURPLE_PALE,dark:Yp.PURPLE_DARK,extraDark:Yp.GREYSCALE_0_0,contrastText:Yp.WHITE},background:{paper:Yp.WHITE,default:Yp.GREYSCALE_95},divider:Yp.GREYSCALE_0_15});var bf=e=>yf();var xf=(e,t=!1)=>({components:vf(0,t),palette:bf(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:Xp,fontWeightLight:ef,fontWeightRegular:tf,fontWeightMedium:rf,fontWeightBold:nf,htmlFontSize:Xp,fontFamily:of.FONT_FAMILY,button:{fontWeight:rf,fontSize:Xp,textTransform:"none"},body1:{fontSize:Jp,lineHeight:"24px"},body2:{fontSize:Xp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Zp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Jp,fontWeight:rf,lineHeight:"16px"},h6:{fontSize:Xp,fontWeight:rf,lineHeight:"16px"},caption:{color:Yp.TEXT_SECONDARY},subtitle1:{fontSize:Xp,color:Yp.TEXT_SECONDARY},subtitle2:{fontSize:Kp,color:Yp.TEXT_SECONDARY}},shape:{borderRadius:Qp}});const Sf={...Up};var wf={},Cf={exports:{}},Ef={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}(Ef);var If=Ef.exports;!function(e){var t=If.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}(Cf);var Df=Cf.exports,Pf={};function Mf(e,t){return function(){return null}}function Rf(e){return e&&"object"===ka(e)&&e.constructor===Object}function Lf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?ke({},e):e;return Rf(e)&&Rf(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Rf(t[o])&&o in e?n[o]=Lf(e[o],t[o],r):n[o]=t[o])})),n}var Af=(wn.element,function(){return null});Af.isRequired=(wn.element.isRequired,function(){return null});var kf=function(){return null};var Of={exports:{}},qf={},Tf=60103,_f=60106,jf=60107,Nf=60108,Ff=60114,zf=60109,Wf=60110,$f=60112,Hf=60113,Vf=60120,Bf=60115,Gf=60116,Uf=60121,Yf=60122,Kf=60117,Xf=60129,Jf=60131;if("function"==typeof Symbol&&Symbol.for){var Zf=Symbol.for;Tf=Zf("react.element"),_f=Zf("react.portal"),jf=Zf("react.fragment"),Nf=Zf("react.strict_mode"),Ff=Zf("react.profiler"),zf=Zf("react.provider"),Wf=Zf("react.context"),$f=Zf("react.forward_ref"),Hf=Zf("react.suspense"),Vf=Zf("react.suspense_list"),Bf=Zf("react.memo"),Gf=Zf("react.lazy"),Uf=Zf("react.block"),Yf=Zf("react.server.block"),Kf=Zf("react.fundamental"),Xf=Zf("react.debug_trace_mode"),Jf=Zf("react.legacy_hidden")}function Qf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Tf:switch(e=e.type){case jf:case Ff:case Nf:case Hf:case Vf:return e;default:switch(e=e&&e.$$typeof){case Wf:case $f:case Gf:case Bf:case zf:return e;default:return t}}case _f:return t}}}var eh=zf,th=Tf,rh=$f,nh=jf,oh=Gf,ih=Bf,ah=_f,sh=Ff,lh=Nf,uh=Hf;qf.ContextConsumer=Wf,qf.ContextProvider=eh,qf.Element=th,qf.ForwardRef=rh,qf.Fragment=nh,qf.Lazy=oh,qf.Memo=ih,qf.Portal=ah,qf.Profiler=sh,qf.StrictMode=lh,qf.Suspense=uh,qf.isAsyncMode=function(){return!1},qf.isConcurrentMode=function(){return!1},qf.isContextConsumer=function(e){return Qf(e)===Wf},qf.isContextProvider=function(e){return Qf(e)===zf},qf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Tf},qf.isForwardRef=function(e){return Qf(e)===$f},qf.isFragment=function(e){return Qf(e)===jf},qf.isLazy=function(e){return Qf(e)===Gf},qf.isMemo=function(e){return Qf(e)===Bf},qf.isPortal=function(e){return Qf(e)===_f},qf.isProfiler=function(e){return Qf(e)===Ff},qf.isStrictMode=function(e){return Qf(e)===Nf},qf.isSuspense=function(e){return Qf(e)===Hf},qf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jf||e===Ff||e===Xf||e===Nf||e===Hf||e===Vf||e===Jf||"object"==typeof e&&null!==e&&(e.$$typeof===Gf||e.$$typeof===Bf||e.$$typeof===zf||e.$$typeof===Wf||e.$$typeof===$f||e.$$typeof===Kf||e.$$typeof===Uf||e[0]===Yf)},qf.typeOf=Qf,Of.exports=qf;var ch=Of.exports,dh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ph(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(dh);return t&&t[1]||""}(e)||t}function fh(e,t,r){var n=ph(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var hh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),mh=wn.oneOfType([wn.func,wn.object]),gh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Mf,deepmerge:Lf,elementAcceptingRef:Af,elementTypeAcceptingRef:kf,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 ph(e,"Component");if("object"===ka(e))switch(e.$$typeof){case ch.ForwardRef:return fh(e,e.render,"ForwardRef");case ch.Memo:return fh(e,e.type,"memo");default:return}}},ponyfillGlobal:hh,refType:mh}),vh=je(gh);Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.hexToRgb=xh,Pf.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=wh(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(""))},Pf.hslToRgb=Sh,Pf.decomposeColor=wh,Pf.recomposeColor=Ch,Pf.getContrastRatio=function(e,t){var r=Eh(e),n=Eh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Pf.getLuminance=Eh,Pf.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Eh(e)>.5?Dh(e,t):Ph(e,t)},Pf.fade=function(e,t){return Ih(e,t)},Pf.alpha=Ih,Pf.darken=Dh,Pf.lighten=Ph;var yh=vh;function bh(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 xh(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 Sh(e){var t=(e=wh(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])),Ch({type:s,values:l})}function wh(e){if(e.type)return e;if("#"===e.charAt(0))return wh(xh(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,yh.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 Ch(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 Eh(e){var t="hsl"===(e=wh(e)).type?wh(Sh(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 Ih(e,t){return e=wh(e),t=bh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ch(e)}function Dh(e,t){if(e=wh(e),t=bh(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 Ch(e)}function Ph(e,t){if(e=wh(e),t=bh(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 Ch(e)}var Mh,Rh,Lh,Ah={},kh={exports:{}},Oh={exports:{}},qh={exports:{}};function Th(){return Mh||(Mh=1,function(e){var t=If.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}(qh)),qh.exports}function _h(){return Rh||(Rh=1,function(e){var t=If.default,r=Th();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Oh)),Oh.exports}function jh(){return Lh||(Lh=1,function(e){var t=_h();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}(kh)),kh.exports}var Nh,Fh={exports:{}};function zh(){return Nh||(Nh=1,function(e){var t=ks();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}(Fh)),Fh.exports}var Wh,$h={};var Hh,Vh={};var Bh,Gh={},Uh={};var Yh,Kh={};var Xh,Jh={};var Zh,Qh={};var em,tm={};var rm,nm={};var om,im={};var am,sm,lm={};function um(){if(sm)return Gh;sm=1;var e=ja;Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.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,P=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,M=e.type,R=void 0===M?"light":M,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(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,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=T(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:_(P),grey:i.default,contrastThreshold:A,getContrastText:T,augmentColor:_,tonalOffset:O},j[R]),q);return N},Gh.dark=Gh.light=void 0;var t=e(Rs()),r=e(zh()),n=vh,o=e(function(){if(Bh)return Uh;Bh=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0;var e={black:"#000",white:"#fff"};return Uh.default=e,Uh}()),i=e(function(){if(Yh)return Kh;Yh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.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 Kh.default=e,Kh}()),a=e(function(){if(Xh)return Jh;Xh=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.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 Jh.default=e,Jh}()),s=e(function(){if(Zh)return Qh;Zh=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.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 Qh.default=e,Qh}()),l=e(function(){if(em)return tm;em=1,Object.defineProperty(tm,"__esModule",{value:!0}),tm.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 tm.default=e,tm}()),u=e(function(){if(rm)return nm;rm=1,Object.defineProperty(nm,"__esModule",{value:!0}),nm.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 nm.default=e,nm}()),c=e(function(){if(om)return im;om=1,Object.defineProperty(im,"__esModule",{value:!0}),im.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 im.default=e,im}()),d=e(function(){if(am)return lm;am=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.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 lm.default=e,lm}()),p=Pf,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}};Gh.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 Gh.dark=h,Gh}var cm,dm={};var pm,fm={};var hm,mm={};var gm={};function vm(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 ym(e,t){if(e){if("string"==typeof e)return vm(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)?vm(e,t):void 0}}function bm(e){return function(e){if(Array.isArray(e))return vm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ym(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 xm(e,t){return t?Lf(e,t,{clone:!1}):e}var Sm={xs:0,sm:600,md:960,lg:1280,xl:1920},wm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Sm[e],"px)")}};function Cm(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||wm;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===ka(t)){var o=e.theme.breakpoints||wm;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Em(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Im(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=Em(e.theme,o)||{};return Cm(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Em(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Oa(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 Dm(){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?xm(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Pm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Mm=Im({prop:"border",themeKey:"borders",transform:Pm}),Rm=Im({prop:"borderTop",themeKey:"borders",transform:Pm}),Lm=Im({prop:"borderRight",themeKey:"borders",transform:Pm}),Am=Im({prop:"borderBottom",themeKey:"borders",transform:Pm}),km=Im({prop:"borderLeft",themeKey:"borders",transform:Pm}),Om=Im({prop:"borderColor",themeKey:"palette"}),qm=Im({prop:"borderRadius",themeKey:"shape"}),Tm=Dm(Mm,Rm,Lm,Am,km,Om,qm);function _m(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function jm(e){var t=function(t){var r=e(t);return t.css?ke({},xm(r,e(ke({theme:t.theme},t.css))),_m(t.css,[e.filterProps])):t.sx?ke({},xm(r,e(ke({theme:t.theme},t.sx))),_m(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(bm(e.filterProps)),t}var Nm=Dm(Im({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Im({prop:"display"}),Im({prop:"overflow"}),Im({prop:"textOverflow"}),Im({prop:"visibility"}),Im({prop:"whiteSpace"})),Fm=Im({prop:"flexBasis"}),zm=Im({prop:"flexDirection"}),Wm=Im({prop:"flexWrap"}),$m=Im({prop:"justifyContent"}),Hm=Im({prop:"alignItems"}),Vm=Im({prop:"alignContent"}),Bm=Im({prop:"order"}),Gm=Im({prop:"flex"}),Um=Im({prop:"flexGrow"}),Ym=Im({prop:"flexShrink"}),Km=Im({prop:"alignSelf"}),Xm=Im({prop:"justifyItems"}),Jm=Im({prop:"justifySelf"}),Zm=Dm(Fm,zm,Wm,$m,Hm,Vm,Bm,Gm,Um,Ym,Km,Xm,Jm),Qm=Im({prop:"gridGap"}),eg=Im({prop:"gridColumnGap"}),tg=Im({prop:"gridRowGap"}),rg=Im({prop:"gridColumn"}),ng=Im({prop:"gridRow"}),og=Im({prop:"gridAutoFlow"}),ig=Im({prop:"gridAutoColumns"}),ag=Im({prop:"gridAutoRows"}),sg=Im({prop:"gridTemplateColumns"}),lg=Im({prop:"gridTemplateRows"}),ug=Im({prop:"gridTemplateAreas"}),cg=Im({prop:"gridArea"}),dg=Dm(Qm,eg,tg,rg,ng,og,ig,ag,sg,lg,ug,cg),pg=Im({prop:"color",themeKey:"palette"}),fg=Im({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),hg=Dm(pg,fg),mg=Im({prop:"position"}),gg=Im({prop:"zIndex",themeKey:"zIndex"}),vg=Im({prop:"top"}),yg=Im({prop:"right"}),bg=Im({prop:"bottom"}),xg=Im({prop:"left"}),Sg=Dm(mg,gg,vg,yg,bg,xg),wg=Im({prop:"boxShadow",themeKey:"shadows"});function Cg(e){return e<=1?"".concat(100*e,"%"):e}var Eg=Im({prop:"width",transform:Cg}),Ig=Im({prop:"maxWidth",transform:Cg}),Dg=Im({prop:"minWidth",transform:Cg}),Pg=Im({prop:"height",transform:Cg}),Mg=Im({prop:"maxHeight",transform:Cg}),Rg=Im({prop:"minHeight",transform:Cg}),Lg=Im({prop:"size",cssProperty:"width",transform:Cg}),Ag=Im({prop:"size",cssProperty:"height",transform:Cg}),kg=Im({prop:"boxSizing"}),Og=Dm(Eg,Ig,Dg,Pg,Mg,Rg,kg);function qg(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)||ym(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 Tg={m:"margin",p:"padding"},_g={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ng=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(!jg[e])return[e];e=jg[e]}var t=qg(e.split(""),2),r=t[0],n=t[1],o=Tg[r],i=_g[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Fg=["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 zg(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 Wg(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 $g(e){var t=zg(e.theme);return Object.keys(e).map((function(r){if(-1===Fg.indexOf(r))return null;var n=Wg(Ng(r),t),o=e[r];return Cm(e,o,n)})).reduce(xm,{})}$g.propTypes={},$g.filterProps=Fg;var Hg,Vg=Im({prop:"fontFamily",themeKey:"typography"}),Bg=Im({prop:"fontSize",themeKey:"typography"}),Gg=Im({prop:"fontStyle",themeKey:"typography"}),Ug=Im({prop:"fontWeight",themeKey:"typography"}),Yg=Im({prop:"letterSpacing"}),Kg=Im({prop:"lineHeight"}),Xg=Im({prop:"textAlign"}),Jg=Dm(Vg,Bg,Gg,Ug,Yg,Kg,Xg),Zg=Object.freeze({__proto__:null,alignContent:Vm,alignItems:Hm,alignSelf:Km,bgcolor:fg,border:Mm,borderBottom:Am,borderColor:Om,borderLeft:km,borderRadius:qm,borderRight:Lm,borderTop:Rm,borders:Tm,bottom:bg,boxSizing:kg,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||wm,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(ke({theme:t.theme},t[o]))),r}),null);return xm(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(bm(e.filterProps)),t},color:pg,compose:Dm,createUnarySpacing:zg,css:function(e){return jm(e)},display:Nm,flex:Gm,flexBasis:Fm,flexDirection:zm,flexGrow:Um,flexShrink:Ym,flexWrap:Wm,flexbox:Zm,fontFamily:Vg,fontSize:Bg,fontStyle:Gg,fontWeight:Ug,grid:dg,gridArea:cg,gridAutoColumns:ig,gridAutoFlow:og,gridAutoRows:ag,gridColumn:rg,gridColumnGap:eg,gridGap:Qm,gridRow:ng,gridRowGap:tg,gridTemplateAreas:ug,gridTemplateColumns:sg,gridTemplateRows:lg,height:Pg,justifyContent:$m,justifyItems:Xm,justifySelf:Jm,left:xg,letterSpacing:Yg,lineHeight:Kg,maxHeight:Mg,maxWidth:Ig,minHeight:Rg,minWidth:Dg,order:Bm,palette:hg,position:mg,positions:Sg,right:yg,shadows:wg,sizeHeight:Ag,sizeWidth:Lg,sizing:Og,spacing:$g,style:Im,styleFunctionSx:jm,textAlign:Xg,top:vg,typography:Jg,width:Eg,zIndex:gg}),Qg=je(Zg);var ev,tv={};function rv(){if(ev)return tv;ev=1;var e=ja;Object.defineProperty(tv,"__esModule",{value:!0}),tv.default=tv.duration=tv.easing=void 0;var t=e(zh()),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)"};tv.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")}tv.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 tv.default=i,tv}var nv,ov,iv={};function av(){if(ov)return Ah;ov=1;var e=ja;Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.createMuiTheme=function(){return p.apply(void 0,arguments)},Ah.default=void 0,e(jh());var t=e(zh()),r=vh,n=e(function(){if(Wh)return $h;Wh=1;var e=ja;Object.defineProperty($h,"__esModule",{value:!0}),$h.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)},$h.keys=void 0;var t=e(Rs()),r=e(zh()),n=["xs","sm","md","lg","xl"];return $h.keys=n,$h}()),o=e(function(){if(Hh)return Vh;Hh=1;var e=ja;Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.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(jh()),r=e(Rs());return Vh}()),i=e(um()),a=e(function(){if(cm)return dm;cm=1;var e=ja;Object.defineProperty(dm,"__esModule",{value:!0}),dm.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"]),P=f/14,M=I||function(e){return"".concat(e/C*P,"rem")},R=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(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:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Rs()),r=e(zh()),n=vh;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 dm}()),s=e(function(){if(pm)return fm;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(",")}pm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.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 fm.default=t,fm}()),l=e(function(){if(hm)return mm;hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.default=void 0;var e={borderRadius:4};return mm.default=e,mm}()),u=e(function(){if(Hg)return gm;Hg=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.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=Qg;return gm}()),c=e(rv()),d=e(function(){if(nv)return iv;nv=1,Object.defineProperty(iv,"__esModule",{value:!0}),iv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return iv.default=e,iv}());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,P=new Array(D>1?D-1:0),M=1;M<D;M++)P[M-1]=arguments[M];return I=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),I)}var f=p;return Ah.default=f,Ah}var sv,lv={};var uv={},cv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",dv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pv(){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!==dv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[cv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function fv(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 hv="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},mv="object"===("undefined"==typeof window?"undefined":hv(window))&&"object"===("undefined"==typeof document?"undefined":hv(document))&&9===document.nodeType;function gv(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,Oa(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var vv={}.constructor;function yv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(yv);if(e.constructor!==vv)return e;var t={};for(var r in e)t[r]=yv(e[r]);return t}function bv(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=yv(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var xv=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Sv=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+=xv(e[r]," ");else t=xv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function wv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Cv(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Ev(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=wv(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+=Cv(p+":"+u+Sv(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Cv(h+":"+u+Sv(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Cv(g+":"+u+Sv(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Cv(""+e+u+"{"+n,--i)+Cv("}",i)):n}var Iv=/([[\].#*$><+~=|^:(),"'`\s])/g,Dv="undefined"!=typeof CSS&&CSS.escape,Pv=function(e){return Dv?Dv(e):e.replace(Iv,"\\$1")},Mv=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}(),Rv=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(Pl(Pl(o)),s),o.selectorText="."+Pv(o.id)),o}vl(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]=Sv(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Ev(this.selectorText,this.style,r)},gv(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}(Mv),Lv={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Rv(e,t,r)}},Av={indent:1,children:!0},kv=/@([\w-]+)/,Ov=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(kv);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ny(ke({},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=Av);var t=wv(e).linebreak;if(null==e.indent&&(e.indent=Av.indent),null==e.children&&(e.children=Av.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),qv=/@container|@media|@supports\s+/,Tv={onCreateRule:function(e,t,r){return qv.test(e)?new Ov(e,t,r):null}},_v={indent:1,children:!0},jv=/@keyframes\s+([\w-]+)/,Nv=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(jv);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:Pv(a(this,i)),this.rules=new ny(ke({},r,{parent:this})),t)this.rules.add(s,t[s],ke({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=_v);var t=wv(e).linebreak;if(null==e.indent&&(e.indent=_v.indent),null==e.children&&(e.children=_v.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}(),Fv=/@keyframes\s+/,zv=/\$([\w-]+)/g,Wv=function(e,t){return"string"==typeof e?e.replace(zv,(function(e,r){return r in t?t[r]:e})):e},$v=function(e,t,r){var n=e[t],o=Wv(n,r);o!==n&&(e[t]=o)},Hv={onCreateRule:function(e,t,r){return"string"==typeof e&&Fv.test(e)?new Nv(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&$v(e,"animation-name",r.keyframes),"animation"in e&&$v(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 Wv(e,n.keyframes);default:return e}}},Vv=function(e){function t(){return e.apply(this,arguments)||this}return vl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Ev(this.key,this.style,r)},t}(Mv),Bv={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Vv(e,t,r):null}},Gv=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=wv(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Ev(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Ev(this.at,this.style,e)},e}(),Uv=/@font-face/,Yv={onCreateRule:function(e,t,r){return Uv.test(e)?new Gv(e,t,r):null}},Kv=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 Ev(this.key,this.style,e)},e}(),Xv={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Kv(e,t,r):null}},Jv=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}(),Zv={"@charset":!0,"@import":!0,"@namespace":!0},Qv={onCreateRule:function(e,t,r){return e in Zv?new Jv(e,t,r):null}},ey=[Lv,Tv,Hv,Bv,Yv,Xv,Qv],ty={process:!0},ry={force:!0,process:!0},ny=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=ke({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="."+Pv(this.classes[d]));var p=bv(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=ke({},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 Rv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Nv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Rv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Nv&&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=ty);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,ry)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ry)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=wv(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}(),oy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ke({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ny(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}(),iy=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}(),ay=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=Oe(t,["attached"]),o=wv(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},gv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),sy=new ay,ly="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),uy="2f1acc6c3a606b082e5eef5e54414ffb";null==ly[uy]&&(ly[uy]=0);var cy=ly[uy]++,dy=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")+cy+o+t:i+r.key+"-"+cy+(o?"-"+o:"")+"-"+t}},py=function(e){var t;return function(){return t||(t=e()),t}},fy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},hy=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Sv(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},my=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},gy=function(e,t){return e.selectorText=t,e.selectorText===t},vy=py((function(){return document.querySelector("head")}));function yy(e){var t=sy.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=vy(),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 by=py((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xy=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]},Sy=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},wy=function(){function e(e){this.getPropertyValue=fy,this.setProperty=hy,this.removeProperty=my,this.setSelector=gy,this.hasInsertedRules=!1,this.cssRules=[],e&&sy.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=by();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=yy(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 vy().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=Sy(r,t);if(!1===(o=xy(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=Sy(r,t),l=xy(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 oy&&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}(),Cy=0,Ey=function(){function e(e){this.id=Cy++,this.version="10.10.0",this.plugins=new iy,this.options={id:{minify:!1},createGenerateId:dy,Renderer:mv?wy:null,plugins:[]},this.generateId=dy({minify:!1});for(var t=0;t<ey.length;t++)this.plugins.use(ey[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=ke({},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===sy.index?0:sy.index+1);var n=new oy(e,ke({},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(),sy.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=ke({},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=bv(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}(),Iy=function(e){return new Ey(e)},Dy="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Py(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=Py(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
|
-
*/Ey();var Py=Date.now(),My="fnValues"+Py,Ry="fnStyle"+ ++Py,Ly="@global",Ay="@global ",ky=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ly,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ry(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}(),Oy=function(){function e(e,t,r){this.type="global",this.at=Ly,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}(),qy=/\s*,\s*/g;function Ty(e,t){for(var r=e.split(qy),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function _y(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ly)return new ky(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ay)return new Oy(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[Ly]:null;if(o){for(var i in o)t.addRule(i,o[i],Ae({},r,{selector:Ty(i,e.selector)}));delete n[Ly]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ly){var i=Ty(o.substr(7),e.selector);t.addRule(i,n[o],Ae({},r,{selector:i})),delete n[o]}}(e,t))}}}var jy=/\s*,\s*/g,Ny=/&/g,Fy=/\$([\w-]+)/g;function zy(){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(jy),n=e.split(jy),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(Ny,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(Fy,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 Wy=/[A-Z]/g,$y=/^ms-/,Hy={};function Vy(e){return"-"+e.toLowerCase()}function By(e){if(Hy.hasOwnProperty(e))return Hy[e];var t=e.replace(Wy,Vy);return Hy[e]=$y.test(t)?"-"+t:t}function Gy(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:By(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Gy):t.fallbacks=Gy(e.fallbacks)),t}var Uy=Iy&&CSS?CSS.px:"px",Yy=Iy&&CSS?CSS.ms:"ms",Ky=Iy&&CSS?CSS.percent:"%";function Xy(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 Jy=Xy({"animation-delay":Yy,"animation-duration":Yy,"background-position":Uy,"background-position-x":Uy,"background-position-y":Uy,"background-size":Uy,border:Uy,"border-bottom":Uy,"border-bottom-left-radius":Uy,"border-bottom-right-radius":Uy,"border-bottom-width":Uy,"border-left":Uy,"border-left-width":Uy,"border-radius":Uy,"border-right":Uy,"border-right-width":Uy,"border-top":Uy,"border-top-left-radius":Uy,"border-top-right-radius":Uy,"border-top-width":Uy,"border-width":Uy,"border-block":Uy,"border-block-end":Uy,"border-block-end-width":Uy,"border-block-start":Uy,"border-block-start-width":Uy,"border-block-width":Uy,"border-inline":Uy,"border-inline-end":Uy,"border-inline-end-width":Uy,"border-inline-start":Uy,"border-inline-start-width":Uy,"border-inline-width":Uy,"border-start-start-radius":Uy,"border-start-end-radius":Uy,"border-end-start-radius":Uy,"border-end-end-radius":Uy,margin:Uy,"margin-bottom":Uy,"margin-left":Uy,"margin-right":Uy,"margin-top":Uy,"margin-block":Uy,"margin-block-end":Uy,"margin-block-start":Uy,"margin-inline":Uy,"margin-inline-end":Uy,"margin-inline-start":Uy,padding:Uy,"padding-bottom":Uy,"padding-left":Uy,"padding-right":Uy,"padding-top":Uy,"padding-block":Uy,"padding-block-end":Uy,"padding-block-start":Uy,"padding-inline":Uy,"padding-inline-end":Uy,"padding-inline-start":Uy,"mask-position-x":Uy,"mask-position-y":Uy,"mask-size":Uy,height:Uy,width:Uy,"min-height":Uy,"max-height":Uy,"min-width":Uy,"max-width":Uy,bottom:Uy,left:Uy,top:Uy,right:Uy,inset:Uy,"inset-block":Uy,"inset-block-end":Uy,"inset-block-start":Uy,"inset-inline":Uy,"inset-inline-end":Uy,"inset-inline-start":Uy,"box-shadow":Uy,"text-shadow":Uy,"column-gap":Uy,"column-rule":Uy,"column-rule-width":Uy,"column-width":Uy,"font-size":Uy,"font-size-delta":Uy,"letter-spacing":Uy,"text-decoration-thickness":Uy,"text-indent":Uy,"text-stroke":Uy,"text-stroke-width":Uy,"word-spacing":Uy,motion:Uy,"motion-offset":Uy,outline:Uy,"outline-offset":Uy,"outline-width":Uy,perspective:Uy,"perspective-origin-x":Ky,"perspective-origin-y":Ky,"transform-origin":Ky,"transform-origin-x":Ky,"transform-origin-y":Ky,"transform-origin-z":Ky,"transition-delay":Yy,"transition-duration":Yy,"vertical-align":Uy,"flex-basis":Uy,"shape-margin":Uy,size:Uy,gap:Uy,grid:Uy,"grid-gap":Uy,"row-gap":Uy,"grid-row-gap":Uy,"grid-column-gap":Uy,"grid-template-rows":Uy,"grid-template-columns":Uy,"grid-auto-rows":Uy,"grid-auto-columns":Uy,"box-shadow-x":Uy,"box-shadow-y":Uy,"box-shadow-blur":Uy,"box-shadow-spread":Uy,"font-line-height":Uy,"text-shadow-x":Uy,"text-shadow-y":Uy,"text-shadow-blur":Uy});function Zy(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Zy(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Zy(o,t[o],r);else for(var i in t)t[i]=Zy(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Jy[e];return!a||0===t&&a===Uy?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Qy(e){void 0===e&&(e={});var t=Xy(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Zy(n,e[n],t);return e},onChangeValue:function(e,r){return Zy(r,e,t)}}}var eb="",tb="",rb="",nb="",ob=hv&&"ontouchstart"in document.documentElement;if(hv){var ib={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ab=document.createElement("p").style;for(var sb in ib)if(sb+"Transform"in ab){eb=sb,tb=ib[sb];break}"Webkit"===eb&&"msHyphens"in ab&&(eb="ms",tb=ib.ms,nb="edge"),"Webkit"===eb&&"-apple-trailing-word"in ab&&(rb="apple")}var lb=eb,ub=tb,cb=rb,db=nb,pb=ob;var fb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===lb?"-webkit-"+e:ub+e)}},hb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===lb?ub+"print-"+e:e)}},mb=/[-\s]+(.)?/g;function gb(e,t){return t?t.toUpperCase():""}function vb(e){return e.replace(mb,gb)}function yb(e){return vb("-"+e)}var bb,xb={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===lb){var r="mask-image";if(vb(r)in t)return e;if(lb+yb(r)in t)return ub+e}return e}},Sb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==cb||pb?e:ub+e)}},wb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:ub+e)}},Cb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:ub+e)}},Eb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===lb||"ms"===lb&&"edge"!==db?ub+e:e)}},Ib={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===lb||"ms"===lb||"apple"===cb?ub+e:e)}},Db={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===lb?"WebkitColumn"+yb(e)in t&&ub+"column-"+e:"Moz"===lb&&("page"+yb(e)in t&&"page-"+e))}},Pb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===lb)return e;var r=e.replace("-inline","");return lb+yb(r)in t&&ub+r}},Mb={supportedProperty:function(e,t){return vb(e)in t&&e}},Rb={supportedProperty:function(e,t){var r=yb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:lb+r in t?ub+e:"Webkit"!==lb&&"Webkit"+r in t&&"-webkit-"+e}},Lb={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===lb?""+ub+e:e)}},Ab={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===lb?ub+"scroll-chaining":e)}},kb={"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"},Ob={supportedProperty:function(e,t){var r=kb[e];return!!r&&(lb+yb(r)in t&&ub+r)}},qb={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"},Tb=Object.keys(qb),_b=function(e){return ub+e},jb={supportedProperty:function(e,t,r){var n=r.multiple;if(Tb.indexOf(e)>-1){var o=qb[e];if(!Array.isArray(o))return lb+yb(o)in t&&ub+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(lb+yb(o[0])in t))return!1;return o.map(_b)}return!1}},Nb=[fb,hb,xb,Sb,wb,Cb,Eb,Ib,Db,Pb,Mb,Rb,Lb,Ab,Ob,jb],Fb=Nb.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),zb=Nb.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ym(t.noPrefill)),e}),[]),Wb={};if(hv){bb=document.createElement("p");var $b=window.getComputedStyle(document.documentElement,"");for(var Hb in $b)isNaN(Hb)||(Wb[$b[Hb]]=$b[Hb]);zb.forEach((function(e){return delete Wb[e]}))}function Vb(e,t){if(void 0===t&&(t={}),!bb)return e;if(null!=Wb[e])return Wb[e];"transition"!==e&&"transform"!==e||(t[e]=e in bb.style);for(var r=0;r<Fb.length&&(Wb[e]=Fb[r](e,bb.style,t),!Wb[e]);r++);try{bb.style[e]=""}catch(e){return!1}return Wb[e]}var Bb,Gb={},Ub={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Yb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Kb(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Vb(t):", "+Vb(r);return n||(t||r)}function Xb(e,t){var r=t;if(!Bb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Gb[n])return Gb[n];try{Bb.style[e]=r}catch(e){return Gb[n]=!1,!1}if(Ub[e])r=r.replace(Yb,Kb);else if(""===Bb.style[e]&&("-ms-flex"===(r=ub+r)&&(Bb.style[e]="-ms-flexbox"),Bb.style[e]=r,""===Bb.style[e]))return Gb[n]=!1,!1;return Bb.style[e]="",Gb[n]=r,Gb[n]}function Jb(){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=Vb(r);i&&i!==r&&(o=!0);var a=!1,s=Xb(i,xv(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"===lb?e:"@"+ub+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Xb(t,xv(e))||e}}}function Zb(){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 Qb(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=yv(e,{},r);return n[Ry]=t,n},onProcessStyle:function(e,t){if(My in t||Ry 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[My]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ry];i&&(o.style=i(e)||{});var a=o[My];if(a)for(var s in a)o.prop(s,a[s](e),n)}},_y(),zy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Gy(e[t]);return e}return Gy(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=By(t);return t===n?e:(r.prop(n,e),null)}},Qy(),"undefined"==typeof window?null:Jb(),Zb()]}}function ex(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 tx(){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}hv&&(Bb=document.createElement("p"));var rx=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},nx=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ox=function(e,t,r){e.get(t).delete(r)},ix=r.createContext(null);function ax(){return r.useContext(ix)}var sx,lx=Ey(Qb()),ux=dv(),cx=new Map,dx={disableGeneration:!1,generateClassName:ux,jss:lx,sheetsCache:null,sheetsManager:cx,sheetsRegistry:null},px=r.createContext(dx);function fx(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=ex(e,["children","injectFirst","disableGeneration"]),l=Ae({},r.useContext(px),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!sx){var u=document.head;sx=document.createComment("mui-inject-first"),u.insertBefore(sx,u.firstChild)}l.jss=Ey({plugins:Qb().plugins,insertionPoint:sx})}return r.createElement(px.Provider,{value:l},t)}var hx=-1e9;var mx={};function gx(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=nx(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},rx(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=nx(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Ae({link:!1},l))).attach(),o.sheetsCache&&rx(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Dy(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=tx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function vx(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?mx:a,l=ex(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]=Rf(a[e],i[e])})),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:hx+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ax()||s,o=Ae({},r.useContext(px),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 gx(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=nx(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ox(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=tx({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}var yx=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 mv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new iy;var n=dv();return r.createElement(fx,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 bx(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=bx(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function xx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bx(e))&&(n&&(n+=" "),n+=t);return n}var Sx={exports:{}},wx={},Cx="function"==typeof Symbol&&Symbol.for,Ex=Cx?Symbol.for("react.element"):60103,Ix=Cx?Symbol.for("react.portal"):60106,Dx=Cx?Symbol.for("react.fragment"):60107,Px=Cx?Symbol.for("react.strict_mode"):60108,Mx=Cx?Symbol.for("react.profiler"):60114,Rx=Cx?Symbol.for("react.provider"):60109,Lx=Cx?Symbol.for("react.context"):60110,Ax=Cx?Symbol.for("react.async_mode"):60111,kx=Cx?Symbol.for("react.concurrent_mode"):60111,Ox=Cx?Symbol.for("react.forward_ref"):60112,qx=Cx?Symbol.for("react.suspense"):60113,Tx=Cx?Symbol.for("react.suspense_list"):60120,_x=Cx?Symbol.for("react.memo"):60115,jx=Cx?Symbol.for("react.lazy"):60116,Nx=Cx?Symbol.for("react.block"):60121,Fx=Cx?Symbol.for("react.fundamental"):60117,zx=Cx?Symbol.for("react.responder"):60118,Wx=Cx?Symbol.for("react.scope"):60119;function $x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ex:switch(e=e.type){case Ax:case kx:case Dx:case Mx:case Px:case qx:return e;default:switch(e=e&&e.$$typeof){case Lx:case Ox:case jx:case _x:case Rx:return e;default:return t}}case Ix:return t}}}function Hx(e){return $x(e)===kx}wx.AsyncMode=Ax,wx.ConcurrentMode=kx,wx.ContextConsumer=Lx,wx.ContextProvider=Rx,wx.Element=Ex,wx.ForwardRef=Ox,wx.Fragment=Dx,wx.Lazy=jx,wx.Memo=_x,wx.Portal=Ix,wx.Profiler=Mx,wx.StrictMode=Px,wx.Suspense=qx,wx.isAsyncMode=function(e){return Hx(e)||$x(e)===Ax},wx.isConcurrentMode=Hx,wx.isContextConsumer=function(e){return $x(e)===Lx},wx.isContextProvider=function(e){return $x(e)===Rx},wx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ex},wx.isForwardRef=function(e){return $x(e)===Ox},wx.isFragment=function(e){return $x(e)===Dx},wx.isLazy=function(e){return $x(e)===jx},wx.isMemo=function(e){return $x(e)===_x},wx.isPortal=function(e){return $x(e)===Ix},wx.isProfiler=function(e){return $x(e)===Mx},wx.isStrictMode=function(e){return $x(e)===Px},wx.isSuspense=function(e){return $x(e)===qx},wx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Dx||e===kx||e===Mx||e===Px||e===qx||e===Tx||"object"==typeof e&&null!==e&&(e.$$typeof===jx||e.$$typeof===_x||e.$$typeof===Rx||e.$$typeof===Lx||e.$$typeof===Ox||e.$$typeof===Fx||e.$$typeof===zx||e.$$typeof===Wx||e.$$typeof===Nx)},wx.typeOf=$x,Sx.exports=wx;var Vx=Sx.exports,Bx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Gx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ux={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yx={};function Kx(e){return Vx.isMemo(e)?Ux:Yx[e.$$typeof]||Bx}Yx[Vx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yx[Vx.Memo]=Ux;var Xx=Object.defineProperty,Jx=Object.getOwnPropertyNames,Zx=Object.getOwnPropertySymbols,Qx=Object.getOwnPropertyDescriptor,eS=Object.getPrototypeOf,tS=Object.prototype;var rS=function e(t,r,n){if("string"!=typeof r){if(tS){var o=eS(r);o&&o!==tS&&e(t,o,n)}var i=Jx(r);Zx&&(i=i.concat(Zx(r)));for(var a=Kx(t),s=Kx(r),l=0;l<i.length;++l){var u=i[l];if(!(Gx[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Qx(r,u);try{Xx(t,u,c)}catch(e){}}}}return t},nS=Te(rS);function oS(){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=ex(n,["innerRef"]),s=ax()||e;return r.createElement(t,Ae({theme:s,ref:i||o},a))}));return nS(n,t),n}}var iS,aS=oS(),sS=Object.freeze({__proto__:null,ServerStyleSheets:yx,StylesContext:px,StylesProvider:fx,ThemeProvider:function(e){var t=e.children,n=e.theme,o=ax(),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[uv]=null!==o),e}),[n,o]);return r.createElement(ix.Provider,{value:i},t)},createGenerateClassName:dv,createStyles:function(e){return e},getThemeProps:pv,jssPreset:Qb,makeStyles:vx,mergeClasses:tx,sheetsManager:cx,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=ex(o,["name"]),s=i,l=vx("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=ex(t,["children","className","clone","component"]),h=xx(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:xx(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 nS(u,e),u}},useTheme:ax,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=ex(t,["defaultTheme","withTheme","name"]),u=s,c=vx(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=ex(e,["classes","innerRef"]),d=c(Ae({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=ax()||o,s&&(p=pv({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,Ae({ref:l||t,classes:d},p))}));return nS(d,n),d}},withTheme:aS,withThemeCreator:oS}),lS=_e(sS);
|
|
95
|
+
*/Iy();var My=Date.now(),Ry="fnValues"+My,Ly="fnStyle"+ ++My,Ay="@global",ky="@global ",Oy=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ay,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ny(ke({},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}(),qy=function(){function e(e,t,r){this.type="global",this.at=Ay,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,ke({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ty=/\s*,\s*/g;function _y(e,t){for(var r=e.split(Ty),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function jy(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ay)return new Oy(e,t,r);if("@"===e[0]&&e.substr(0,8)===ky)return new qy(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[Ay]:null;if(o){for(var i in o)t.addRule(i,o[i],ke({},r,{selector:_y(i,e.selector)}));delete n[Ay]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ay){var i=_y(o.substr(7),e.selector);t.addRule(i,n[o],ke({},r,{selector:i})),delete n[o]}}(e,t))}}}var Ny=/\s*,\s*/g,Fy=/&/g,zy=/\$([\w-]+)/g;function Wy(){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(Ny),n=e.split(Ny),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(Fy,a):a+" "+l}return o}function r(e,t,r){if(r)return ke({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=ke({},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(zy,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],ke({},a,{selector:f})):u.addRule(h,n[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var $y=/[A-Z]/g,Hy=/^ms-/,Vy={};function By(e){return"-"+e.toLowerCase()}function Gy(e){if(Vy.hasOwnProperty(e))return Vy[e];var t=e.replace($y,By);return Vy[e]=Hy.test(t)?"-"+t:t}function Uy(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Gy(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Uy):t.fallbacks=Uy(e.fallbacks)),t}var Yy=Dy&&CSS?CSS.px:"px",Ky=Dy&&CSS?CSS.ms:"ms",Xy=Dy&&CSS?CSS.percent:"%";function Jy(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 Zy=Jy({"animation-delay":Ky,"animation-duration":Ky,"background-position":Yy,"background-position-x":Yy,"background-position-y":Yy,"background-size":Yy,border:Yy,"border-bottom":Yy,"border-bottom-left-radius":Yy,"border-bottom-right-radius":Yy,"border-bottom-width":Yy,"border-left":Yy,"border-left-width":Yy,"border-radius":Yy,"border-right":Yy,"border-right-width":Yy,"border-top":Yy,"border-top-left-radius":Yy,"border-top-right-radius":Yy,"border-top-width":Yy,"border-width":Yy,"border-block":Yy,"border-block-end":Yy,"border-block-end-width":Yy,"border-block-start":Yy,"border-block-start-width":Yy,"border-block-width":Yy,"border-inline":Yy,"border-inline-end":Yy,"border-inline-end-width":Yy,"border-inline-start":Yy,"border-inline-start-width":Yy,"border-inline-width":Yy,"border-start-start-radius":Yy,"border-start-end-radius":Yy,"border-end-start-radius":Yy,"border-end-end-radius":Yy,margin:Yy,"margin-bottom":Yy,"margin-left":Yy,"margin-right":Yy,"margin-top":Yy,"margin-block":Yy,"margin-block-end":Yy,"margin-block-start":Yy,"margin-inline":Yy,"margin-inline-end":Yy,"margin-inline-start":Yy,padding:Yy,"padding-bottom":Yy,"padding-left":Yy,"padding-right":Yy,"padding-top":Yy,"padding-block":Yy,"padding-block-end":Yy,"padding-block-start":Yy,"padding-inline":Yy,"padding-inline-end":Yy,"padding-inline-start":Yy,"mask-position-x":Yy,"mask-position-y":Yy,"mask-size":Yy,height:Yy,width:Yy,"min-height":Yy,"max-height":Yy,"min-width":Yy,"max-width":Yy,bottom:Yy,left:Yy,top:Yy,right:Yy,inset:Yy,"inset-block":Yy,"inset-block-end":Yy,"inset-block-start":Yy,"inset-inline":Yy,"inset-inline-end":Yy,"inset-inline-start":Yy,"box-shadow":Yy,"text-shadow":Yy,"column-gap":Yy,"column-rule":Yy,"column-rule-width":Yy,"column-width":Yy,"font-size":Yy,"font-size-delta":Yy,"letter-spacing":Yy,"text-decoration-thickness":Yy,"text-indent":Yy,"text-stroke":Yy,"text-stroke-width":Yy,"word-spacing":Yy,motion:Yy,"motion-offset":Yy,outline:Yy,"outline-offset":Yy,"outline-width":Yy,perspective:Yy,"perspective-origin-x":Xy,"perspective-origin-y":Xy,"transform-origin":Xy,"transform-origin-x":Xy,"transform-origin-y":Xy,"transform-origin-z":Xy,"transition-delay":Ky,"transition-duration":Ky,"vertical-align":Yy,"flex-basis":Yy,"shape-margin":Yy,size:Yy,gap:Yy,grid:Yy,"grid-gap":Yy,"row-gap":Yy,"grid-row-gap":Yy,"grid-column-gap":Yy,"grid-template-rows":Yy,"grid-template-columns":Yy,"grid-auto-rows":Yy,"grid-auto-columns":Yy,"box-shadow-x":Yy,"box-shadow-y":Yy,"box-shadow-blur":Yy,"box-shadow-spread":Yy,"font-line-height":Yy,"text-shadow-x":Yy,"text-shadow-y":Yy,"text-shadow-blur":Yy});function Qy(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Qy(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Qy(o,t[o],r);else for(var i in t)t[i]=Qy(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Zy[e];return!a||0===t&&a===Yy?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function eb(e){void 0===e&&(e={});var t=Jy(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Qy(n,e[n],t);return e},onChangeValue:function(e,r){return Qy(r,e,t)}}}var tb="",rb="",nb="",ob="",ib=mv&&"ontouchstart"in document.documentElement;if(mv){var ab={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},sb=document.createElement("p").style;for(var lb in ab)if(lb+"Transform"in sb){tb=lb,rb=ab[lb];break}"Webkit"===tb&&"msHyphens"in sb&&(tb="ms",rb=ab.ms,ob="edge"),"Webkit"===tb&&"-apple-trailing-word"in sb&&(nb="apple")}var ub=tb,cb=rb,db=nb,pb=ob,fb=ib;var hb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ub?"-webkit-"+e:cb+e)}},mb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ub?cb+"print-"+e:e)}},gb=/[-\s]+(.)?/g;function vb(e,t){return t?t.toUpperCase():""}function yb(e){return e.replace(gb,vb)}function bb(e){return yb("-"+e)}var xb,Sb={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ub){var r="mask-image";if(yb(r)in t)return e;if(ub+bb(r)in t)return cb+e}return e}},wb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==db||fb?e:cb+e)}},Cb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:cb+e)}},Eb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:cb+e)}},Ib={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ub||"ms"===ub&&"edge"!==pb?cb+e:e)}},Db={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ub||"ms"===ub||"apple"===db?cb+e:e)}},Pb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ub?"WebkitColumn"+bb(e)in t&&cb+"column-"+e:"Moz"===ub&&("page"+bb(e)in t&&"page-"+e))}},Mb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ub)return e;var r=e.replace("-inline","");return ub+bb(r)in t&&cb+r}},Rb={supportedProperty:function(e,t){return yb(e)in t&&e}},Lb={supportedProperty:function(e,t){var r=bb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ub+r in t?cb+e:"Webkit"!==ub&&"Webkit"+r in t&&"-webkit-"+e}},Ab={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ub?""+cb+e:e)}},kb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ub?cb+"scroll-chaining":e)}},Ob={"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=Ob[e];return!!r&&(ub+bb(r)in t&&cb+r)}},Tb={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"},_b=Object.keys(Tb),jb=function(e){return cb+e},Nb={supportedProperty:function(e,t,r){var n=r.multiple;if(_b.indexOf(e)>-1){var o=Tb[e];if(!Array.isArray(o))return ub+bb(o)in t&&cb+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(ub+bb(o[0])in t))return!1;return o.map(jb)}return!1}},Fb=[hb,mb,Sb,wb,Cb,Eb,Ib,Db,Pb,Mb,Rb,Lb,Ab,kb,qb,Nb],zb=Fb.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Wb=Fb.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,bm(t.noPrefill)),e}),[]),$b={};if(mv){xb=document.createElement("p");var Hb=window.getComputedStyle(document.documentElement,"");for(var Vb in Hb)isNaN(Vb)||($b[Hb[Vb]]=Hb[Vb]);Wb.forEach((function(e){return delete $b[e]}))}function Bb(e,t){if(void 0===t&&(t={}),!xb)return e;if(null!=$b[e])return $b[e];"transition"!==e&&"transform"!==e||(t[e]=e in xb.style);for(var r=0;r<zb.length&&($b[e]=zb[r](e,xb.style,t),!$b[e]);r++);try{xb.style[e]=""}catch(e){return!1}return $b[e]}var Gb,Ub={},Yb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Kb=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Xb(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Bb(t):", "+Bb(r);return n||(t||r)}function Jb(e,t){var r=t;if(!Gb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Ub[n])return Ub[n];try{Gb.style[e]=r}catch(e){return Ub[n]=!1,!1}if(Yb[e])r=r.replace(Kb,Xb);else if(""===Gb.style[e]&&("-ms-flex"===(r=cb+r)&&(Gb.style[e]="-ms-flexbox"),Gb.style[e]=r,""===Gb.style[e]))return Ub[n]=!1,!1;return Gb.style[e]="",Ub[n]=r,Ub[n]}function Zb(){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=Bb(r);i&&i!==r&&(o=!0);var a=!1,s=Jb(i,Sv(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"===ub?e:"@"+cb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Jb(t,Sv(e))||e}}}function Qb(){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 ex(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=bv(e,{},r);return n[Ly]=t,n},onProcessStyle:function(e,t){if(Ry in t||Ly 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[Ry]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ly];i&&(o.style=i(e)||{});var a=o[Ry];if(a)for(var s in a)o.prop(s,a[s](e),n)}},jy(),Wy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Uy(e[t]);return e}return Uy(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Gy(t);return t===n?e:(r.prop(n,e),null)}},eb(),"undefined"==typeof window?null:Zb(),Qb()]}}function tx(e,t){if(null==e)return{};var r,n,o=Oe(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 rx(){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=ke({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}mv&&(Gb=document.createElement("p"));var nx=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ox=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ix=function(e,t,r){e.get(t).delete(r)},ax=r.createContext(null);function sx(){return r.useContext(ax)}var lx,ux=Iy(ex()),cx=pv(),dx=new Map,px={disableGeneration:!1,generateClassName:cx,jss:ux,sheetsCache:null,sheetsManager:dx,sheetsRegistry:null},fx=r.createContext(px);function hx(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=tx(e,["children","injectFirst","disableGeneration"]),l=ke({},r.useContext(fx),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!lx){var u=document.head;lx=document.createComment("mui-inject-first"),u.insertBefore(lx,u.firstChild)}l.jss=Iy({plugins:ex().plugins,insertionPoint:lx})}return r.createElement(fx.Provider,{value:l},t)}var mx=-1e9;var gx={};function vx(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ox(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},nx(o.sheetsManager,i,n,s));var l=ke({},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=ox(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,ke({link:!1},l))).attach(),o.sheetsCache&&nx(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Py(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=rx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function yx(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?gx:a,l=tx(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=ke({},o);return Object.keys(i).forEach((function(e){a[e]=Lf(a[e],i[e])})),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:mx+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sx()||s,o=ke({},r.useContext(fx),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 vx(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=ox(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ix(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=rx({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}var bx=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 gv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ay;var n=pv();return r.createElement(hx,ke({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",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function xx(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=xx(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Sx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=xx(e))&&(n&&(n+=" "),n+=t);return n}var wx={exports:{}},Cx={},Ex="function"==typeof Symbol&&Symbol.for,Ix=Ex?Symbol.for("react.element"):60103,Dx=Ex?Symbol.for("react.portal"):60106,Px=Ex?Symbol.for("react.fragment"):60107,Mx=Ex?Symbol.for("react.strict_mode"):60108,Rx=Ex?Symbol.for("react.profiler"):60114,Lx=Ex?Symbol.for("react.provider"):60109,Ax=Ex?Symbol.for("react.context"):60110,kx=Ex?Symbol.for("react.async_mode"):60111,Ox=Ex?Symbol.for("react.concurrent_mode"):60111,qx=Ex?Symbol.for("react.forward_ref"):60112,Tx=Ex?Symbol.for("react.suspense"):60113,_x=Ex?Symbol.for("react.suspense_list"):60120,jx=Ex?Symbol.for("react.memo"):60115,Nx=Ex?Symbol.for("react.lazy"):60116,Fx=Ex?Symbol.for("react.block"):60121,zx=Ex?Symbol.for("react.fundamental"):60117,Wx=Ex?Symbol.for("react.responder"):60118,$x=Ex?Symbol.for("react.scope"):60119;function Hx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ix:switch(e=e.type){case kx:case Ox:case Px:case Rx:case Mx:case Tx:return e;default:switch(e=e&&e.$$typeof){case Ax:case qx:case Nx:case jx:case Lx:return e;default:return t}}case Dx:return t}}}function Vx(e){return Hx(e)===Ox}Cx.AsyncMode=kx,Cx.ConcurrentMode=Ox,Cx.ContextConsumer=Ax,Cx.ContextProvider=Lx,Cx.Element=Ix,Cx.ForwardRef=qx,Cx.Fragment=Px,Cx.Lazy=Nx,Cx.Memo=jx,Cx.Portal=Dx,Cx.Profiler=Rx,Cx.StrictMode=Mx,Cx.Suspense=Tx,Cx.isAsyncMode=function(e){return Vx(e)||Hx(e)===kx},Cx.isConcurrentMode=Vx,Cx.isContextConsumer=function(e){return Hx(e)===Ax},Cx.isContextProvider=function(e){return Hx(e)===Lx},Cx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ix},Cx.isForwardRef=function(e){return Hx(e)===qx},Cx.isFragment=function(e){return Hx(e)===Px},Cx.isLazy=function(e){return Hx(e)===Nx},Cx.isMemo=function(e){return Hx(e)===jx},Cx.isPortal=function(e){return Hx(e)===Dx},Cx.isProfiler=function(e){return Hx(e)===Rx},Cx.isStrictMode=function(e){return Hx(e)===Mx},Cx.isSuspense=function(e){return Hx(e)===Tx},Cx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Px||e===Ox||e===Rx||e===Mx||e===Tx||e===_x||"object"==typeof e&&null!==e&&(e.$$typeof===Nx||e.$$typeof===jx||e.$$typeof===Lx||e.$$typeof===Ax||e.$$typeof===qx||e.$$typeof===zx||e.$$typeof===Wx||e.$$typeof===$x||e.$$typeof===Fx)},Cx.typeOf=Hx,wx.exports=Cx;var Bx=wx.exports,Gx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ux={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kx={};function Xx(e){return Bx.isMemo(e)?Yx:Kx[e.$$typeof]||Gx}Kx[Bx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kx[Bx.Memo]=Yx;var Jx=Object.defineProperty,Zx=Object.getOwnPropertyNames,Qx=Object.getOwnPropertySymbols,eS=Object.getOwnPropertyDescriptor,tS=Object.getPrototypeOf,rS=Object.prototype;var nS=function e(t,r,n){if("string"!=typeof r){if(rS){var o=tS(r);o&&o!==rS&&e(t,o,n)}var i=Zx(r);Qx&&(i=i.concat(Qx(r)));for(var a=Xx(t),s=Xx(r),l=0;l<i.length;++l){var u=i[l];if(!(Ux[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=eS(r,u);try{Jx(t,u,c)}catch(e){}}}}return t},oS=_e(nS);function iS(){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=tx(n,["innerRef"]),s=sx()||e;return r.createElement(t,ke({theme:s,ref:i||o},a))}));return oS(n,t),n}}var aS,sS=iS(),lS=Object.freeze({__proto__:null,ServerStyleSheets:bx,StylesContext:fx,StylesProvider:hx,ThemeProvider:function(e){var t=e.children,n=e.theme,o=sx(),i=r.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(o,n);return null!=e&&(e[cv]=null!==o),e}),[n,o]);return r.createElement(ax.Provider,{value:i},t)},createGenerateClassName:pv,createStyles:function(e){return e},getThemeProps:fv,jssPreset:ex,makeStyles:yx,mergeClasses:rx,sheetsManager:dx,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=tx(o,["name"]),s=i,l=yx("function"==typeof t?function(e){return{root:function(r){return t(ke({theme:e},r))}}}:{root:t},ke({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=tx(t,["children","className","clone","component"]),h=Sx(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,ke({className:Sx(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return r.createElement(g,ke({ref:o,className:h},m),u)}));return oS(u,e),u}},useTheme:sx,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=tx(t,["defaultTheme","withTheme","name"]),u=s,c=yx(e,ke({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=tx(e,["classes","innerRef"]),d=c(ke({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=sx()||o,s&&(p=fv({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,ke({ref:l||t,classes:d},p))}));return oS(d,n),d}},withTheme:sS,withThemeCreator:iS}),uS=je(lS);
|
|
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
|
-
*/var uS,cS,dS={},pS={};function fS(){if(uS)return pS;uS=1;var e=_a;Object.defineProperty(pS,"__esModule",{value:!0}),pS.default=void 0;var t=(0,e(iv()).default)();return pS.default=t,pS}var hS,mS,gS={},vS={};function yS(){if(mS)return gS;mS=1;var e=_a;Object.defineProperty(gS,"__esModule",{value:!0}),gS.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(Ms()),r=gh,n=function(){if(hS)return vS;hS=1;var e=_a;Object.defineProperty(vS,"__esModule",{value:!0}),vS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},vS.getUnit=r,vS.toUnitless=n,vS.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}},vS.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},vS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},vS.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(_h());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return vS}();return gS}var bS,xS={};var SS,wS={};var CS,ES={};var IS,DS={};!function(e){var t=_a,n=If;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=Df;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(iv()),s=t(function(){if(av)return sv;av=1;var e=_a;Object.defineProperty(sv,"__esModule",{value:!0}),sv.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=gh,r=e(iv());return sv}()),l=t(function(){if(iS)return lv;iS=1,Object.defineProperty(lv,"__esModule",{value:!0}),lv.default=function(t){return(0,e.createStyles)(t)};var e=lS;return lv}()),u=t(function(){if(cS)return dS;cS=1;var e=_a;Object.defineProperty(dS,"__esModule",{value:!0}),dS.default=void 0;var t=e(Ms()),r=lS,n=e(fS()),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 dS.default=o,dS}()),c=t(yS()),d=t(function(){if(bS)return xS;bS=1;var e=_a;Object.defineProperty(xS,"__esModule",{value:!0}),xS.default=void 0;var t=e(Ms()),r=lS,n=e(fS()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return xS.default=o,xS}()),p=tv();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(SS)return wS;SS=1;var e=_a;Object.defineProperty(wS,"__esModule",{value:!0}),wS.default=function(){return(0,t.useTheme)()||n.default};var t=lS;e(r);var n=e(fS());return wS}()),h=t(function(){if(CS)return ES;CS=1;var e=_a;Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var t=e(Ms()),r=lS,n=e(fS()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return ES.default=o,ES}()),m=t(function(){if(IS)return DS;IS=1;var e=_a;Object.defineProperty(DS,"__esModule",{value:!0}),DS.default=void 0;var t=lS,r=e(fS()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return DS.default=n,DS}()),g=lS}(Sf),Sf.alpha(Up.GREYSCALE_0,.05),Sf.alpha(Up.GREEN_PALE,.5),Sf.alpha(Up.BLUE_PALE,.5),Sf.alpha(Up.GREEN_PALE,.5),Sf.alpha(Up.BLUE_PALE,.5),Sf.alpha(Up.GREEN_PALE,.5),Sf.alpha(Up.BLUE_PALE,.5),Sf.alpha(Up.GREEN_PALE,.5),Sf.alpha(Up.BLUE_PALE,.5),Sf.alpha(Up.GREEN_PALE,.5),Sf.alpha(Up.BLUE_PALE,.5);const PS=(e="light",t=!1)=>bf(e,t);function MS(e,t){return e.unstable_is?e.unstable_is(t):t===e}function RS(e){return"init"in e}function LS(e){return!!e.write}function AS(e){return"v"in e||"e"in e}function kS(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 OS=new WeakMap;function qS(e){var t;return _S(e)&&!!(null==(t=OS.get(e))?void 0:t[0])}function TS(e,t){let r=OS.get(e);if(!r){r=[!0,new Set],OS.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function _S(e){return"function"==typeof(null==e?void 0:e.then)}function jS(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function NS(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 FS=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e,i=(t.has(o)?t:t.set(o,new Set)).get(o);return i.add(n),()=>{null==i||i.delete(n),i.size||t.delete(o)}},r};function zS(e){return e.c||(e.c=FS()),e.m||(e.m=FS()),e.u||(e.u=FS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const WS=(e,t,...r)=>t.read(...r),$S=(e,t,...r)=>t.write(...r),HS=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},VS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},BS=(e,r)=>{const n=iw(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},GS=e=>{const t=iw(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=iw(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 NS(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)}},YS=(e,r)=>{var n;const o=iw(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(AS(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)||LS(r)||console.warn("setSelf function cannot be used with read-only atom"),!y&&LS(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(MS(r,t)){const r=c(e,t);if(!AS(r)){if(!RS(t))throw new Error("no atom init");ew(e,t,t.init)}return kS(r)}const o=f(e,t);try{return kS(o)}finally{g.d.set(t,o.n),qS(g.v)&&jS(r,g.v,o),null==(n=i.get(t))||n.t.add(r),b||x()}}),S);return ew(e,r,t),_S(t)&&(TS(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))}},KS=(e,t)=>{const r=iw(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 NS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},XS=(e,t,...r)=>{const n=iw(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=>kS(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(MS(t,r)){if(!RS(r))throw new Error("atom not writable");const t=c.n,s=n[0];return ew(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 XS(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},JS=(e,t)=>{var r;const n=iw(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&&!qS(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)}}},ZS=(e,t)=>{var r;const n=iw(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()){ZS(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),LS(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},QS=(e,t)=>{var r;const n=iw(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)}},ew=(e,t,r)=>{const n=iw(e)[11],o=n(e,t),i="v"in o,a=o.v;if(_S(r))for(const i of o.d.keys())jS(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,_S(a)&&function(e){const t=OS.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},tw=(e,t)=>kS((0,iw(e)[14])(e,t)),rw=(e,t,...r)=>{const n=iw(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},nw=(e,t,r)=>{const n=iw(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)}},ow=new WeakMap;function iw(e){const r=ow.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 aw,sw=0;function lw(e,r){const n="atom"+ ++sw,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=uw,o.write=cw),r&&(o.write=r),o}function uw(e){return e(this)}function cw(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function dw(){return function(...e){const t={get:e=>(0,iw(t)[21])(t,e),set:(e,...r)=>(0,iw(t)[22])(t,e,...r),sub:(e,r)=>(0,iw(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},WS,$S,HS,VS,BS,GS,US,YS,KS,XS,JS,ZS,QS,ew,tw,rw,nw].map(((t,r)=>e[r]||t));return ow.set(t,Object.freeze(r)),t}()}const pw=c(void 0);function fw(e){return n(pw)||(aw||(aw=dw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=aw),globalThis.__JOTAI_DEFAULT_STORE__!==aw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),aw)}function hw({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=dw()),o(pw.Provider,{value:t||r.current},e)}const mw=e=>"function"==typeof(null==e?void 0:e.then),gw=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},vw=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(gw(e),e)}),yw=new WeakMap,bw=(e,t)=>{let r=yw.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();mw(e)?(yw.set(e,r),i=e,e.then(a(e),s(e)),TS(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),TS(e,l)})),yw.set(e,r)),r};function xw(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=fw(),[[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);mw(t)&&gw(bw(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),mw(c)){const t=bw(c,(()=>i.get(e)));return o&&gw(t),vw(t)}return c}function Sw(e,r){const n=fw();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 ww(e,t){return[xw(e),Sw(e)]}function Cw(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}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 Ew=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),Iw=new WeakMap,Dw=()=>{};const Pw=new WeakMap;const Mw=e=>{let t=Pw.get(e);return t||(t=new WeakSet,Pw.set(e,t)),t};function Rw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Lw(e){const t=lw((()=>[])),r=lw((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.unstable_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!AS(t)){if(!RS(o))throw new Error("no atom init");S(e,o,o.init)}return kS(t)}const i=v(e,o);try{return kS(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!RS(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),y(e,n)))}return b(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(Rw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=iw(e),d=c[1],p=c[3],f=zS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let r=Aw.get(e);r||(r=new Set,Aw.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},Rw()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const Aw=new WeakMap;const kw={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},Ow="ChartExploration.PivotTable.DimensionSectionEmpty.Message",qw="ChartExploration.PivotTable.MeasureSectionEmpty.Message",Tw=async(e,t,r)=>{const n=e.get(r);if(void 0!==n)if("dimension"===n.type){const{qNoOfLeftDims:e}=t.properties.qHyperCubeDef,r=t.getDimensions().findIndex((e=>e.qDef.cId===n.def.qDef.cId)),o=-1===e||r<e;await t.removeDimension(r,!1,!o),await t.addAlternativeDimension(n.def,!o)}else{const e=t.getMeasures().findIndex((e=>e.qDef.cId===n.def.qDef.cId));await t.removeMeasure(e,!1),await t.addMeasure(n.def,!0)}},_w=async(e,t,r)=>{const n=e.get(r);if(void 0!==n)if("dimension"===n.type){const{excludedNoOfLeftDims:e}=t.properties.qHyperCubeDef,r=t.getAlternativeDimensions().findIndex((e=>e.qDef.cId===n.def.qDef.cId)),o=-1===e||r<(e??1/0);await t.removeDimension(r,!0,!o),await t.addDimension(n.def,!o)}else{const e=t.getAlternativeMeasures().findIndex((e=>e.qDef.cId===n.def.qDef.cId));await t.removeMeasure(e,!0),await t.addMeasure(n.def)}},jw=async e=>{const{type:t,handler:r,model:n,fieldInfo:o}=e;if(void 0!==r&&void 0!==n){switch(t){case"apply":for(const t of e.localChecked)await _w(o,r,t);for(const t of e.localUnchecked)await Tw(o,r,t);break;case"checked":await _w(o,r,e.cId);break;case"unchecked":await Tw(o,r,e.cId)}await n.applyPatches([{qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef),qPath:"/qHyperCubeDef"}],!0)}},Nw=lw(),Fw=lw(),zw=lw(),Ww=lw((e=>e(zw)?.translate??(e=>e))),$w=lw(""),Hw=lw((e=>{const t=e($w).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)})),Vw=e=>7005!==e.qError?.qErrorCode,Bw=new WeakMap,Gw={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},Uw=function(e,r=Dw){return((e,t,r)=>{const n=Ew((()=>new WeakMap),Iw,t);return Ew(e,n,r)})((()=>{const n=new WeakMap,o=new WeakMap,i=lw(0);"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0);const a=lw(((t,{setSelf:s})=>{t(i);const l=t(a),u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{o.set(u,e),s()}),(e=>{n.set(u,e),s()})),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}}),((e,t)=>{t(i,(e=>e+1))}));return a.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(a.debugPrivate=!0),lw((e=>{const t=e(a);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,r)}(lw((async e=>{const t=e(Nw);if(t){if(Bw.has(t))return Bw.get(t);try{const e=await t.app.createSessionObject(Gw);return Bw.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}}))),Yw=lw(),Kw=Lw(((e,t)=>{const r=e(Nw),n=e(Uw);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const i=await n.getLayout();t(Yw,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)})};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}})),Xw=lw((e=>(e(Kw),e(Yw)?.layout))),Jw=lw((e=>e(Yw)?.altLayout)),Zw=lw((e=>e(Yw)?.properties)),Qw=lw((e=>{const t=e(Yw)?.layout;return t?.qHyperCube.qDimensionInfo.filter(Vw)??[]})),eC=lw((e=>{const t=e(Yw)?.layout;return t?.qHyperCube.qMeasureInfo.filter(Vw)??[]})),tC=lw((e=>{const t=e(Xw),r=e(Qw),n=e(eC),o=e(Zw),i=new Map;return t&&o?(r.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"dimension",def:o.qHyperCubeDef.qDimensions[t]})})),n.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"measure",def:o.qHyperCubeDef.qMeasures[t]})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})})),i):i})),rC=lw((e=>{const t=[...e(Qw),...e(eC)].map((e=>e.cId));return new Set(t)})),nC=lw(new Set),oC=lw(new Set),iC=lw((e=>{const t=e(nC),r=e(oC);return e(rC).difference(r).union(t)})),aC=Lw(((e,t)=>{e(rC),t(nC,new Set),t(oC,new Set)})),sC=lw((e=>e(iC)),((e,t,r)=>{const n=e(iC).has(r);if(n){const n=new Set(e(oC));n.add(r),t(oC,n)}else{const n=new Set(e(nC));n.add(r),t(nC,n)}jw({type:n?"unchecked":"checked",cId:r,handler:e(Fw),model:e(Nw),fieldInfo:e(tC)})})),lC=({props:e,children:t})=>(function(e){const t=fw(),r=Mw(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[Nw,e.args.model],[zw,e.args.apis],[Fw,e.args.handler]]),ww(aC),t);function uC(e){return"init"in e}function cC(e){return!!e.write}function dC(e){return"v"in e||"e"in e}function pC(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 fC=new WeakMap;function hC(e){var t;return gC(e)&&!!(null==(t=fC.get(e))?void 0:t[0])}function mC(e,t){let r=fC.get(e);if(!r){r=[!0,new Set],fC.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function gC(e){return"function"==typeof(null==e?void 0:e.then)}function vC(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function yC(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 bC=(e,t,...r)=>t.read(...r),xC=(e,t,...r)=>t.write(...r),SC=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},wC=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},CC=(e,r)=>{const n=jC(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},EC=e=>{const t=jC(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)},IC=e=>{const r=jC(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 yC(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)}},DC=(e,r)=>{var n,o;const i=jC(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(dC(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)||cC(r)||console.warn("setSelf function cannot be used with read-only atom"),!b&&cC(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(!dC(r)){if(!uC(t))throw new Error("no atom init");kC(e,t,t.init)}return pC(r)}const o=h(e,t);try{return pC(o)}finally{v.d.set(t,o.n),hC(v.v)&&vC(r,v.v,o),null==(n=a.get(t))||n.t.add(r),x||S()}}),w);return kC(e,r,t),gC(t)&&(mC(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))}},PC=(e,t)=>{const r=jC(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 yC(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},MC=(e,t,...r)=>{const n=jC(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=>pC(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!uC(r))throw new Error("atom not writable");const t=c.n,s=n[0];return kC(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 MC(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},RC=(e,t)=>{var r;const n=jC(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&&!hC(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)}}},LC=(e,t)=>{var r;const n=jC(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()){LC(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),cC(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},AC=(e,t)=>{var r;const n=jC(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)}},kC=(e,t,r)=>{const n=jC(e)[11],o=n(e,t),i="v"in o,a=o.v;if(gC(r))for(const i of o.d.keys())vC(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,gC(a)&&function(e){const t=fC.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},OC=(e,t)=>pC((0,jC(e)[14])(e,t)),qC=(e,t,...r)=>{const n=jC(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},TC=(e,t,r)=>{const n=jC(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)}},_C=new WeakMap,jC=e=>{const r=_C.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 NC,FC=0;function zC(e,r){const n="atom"+ ++FC,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=WC,o.write=$C),o}function WC(e){return e(this)}function $C(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function HC(){return function(...e){const t={get:e=>(0,jC(t)[21])(t,e),set:(e,...r)=>(0,jC(t)[22])(t,e,...r),sub:(e,r)=>(0,jC(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},bC,xC,SC,wC,CC,EC,IC,DC,PC,MC,RC,LC,AC,kC,OC,qC,TC,void 0].map(((t,r)=>e[r]||t));return _C.set(t,Object.freeze(r)),t}()}const VC=c(void 0);function BC(e){return n(VC)||(NC||(NC=HC(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=NC),globalThis.__JOTAI_DEFAULT_STORE__!==NC&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),NC)}function GC({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=HC()),o(VC.Provider,{value:t||r.current},e)}const UC=e=>"function"==typeof(null==e?void 0:e.then),YC=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},KC=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(YC(e),e)}),XC=new WeakMap,JC=(e,t)=>{let r=XC.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();UC(e)?(XC.set(e,r),i=e,e.then(a(e),s(e)),mC(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),mC(e,l)})),XC.set(e,r)),r};function ZC(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=BC(),[[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);UC(t)&&YC(JC(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),UC(c)){const t=JC(c,(()=>i.get(e)));return o&&YC(t),KC(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 QC=new WeakMap;const eE=e=>{let t=QC.get(e);return t||(t=new WeakSet,QC.set(e,t)),t},tE=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,rE=zC(),nE=zC((e=>e(rE)?.numberOfSections??0)),oE=zC((e=>e(rE)?.numberOfItemsInSection??(()=>0))),iE=zC((e=>e(rE)?.keyExtractor??tE)),aE=zC((e=>e(rE)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."})))),sE=zC((e=>e(rE)?.onDragOver)),lE=zC((e=>{const t=e(rE)?.children;return Array.isArray(t)?t[1]:t})),uE=zC((e=>{const t=e(rE)?.children;if(Array.isArray(t))return t[0]})),cE=zC((e=>e(rE)?.onClick)),dE=({props:e,children:t})=>(function(e){const t=BC(),r=eE(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[rE,e]]),t);var pE=Symbol.for("preact-signals");function fE(){if(yE>1)yE--;else{for(var e,t=!1;void 0!==vE;){var r=vE;for(vE=void 0,bE++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&EE(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(bE=0,yE--,t)throw e}}function hE(e){if(yE>0)return e();yE++;try{return e()}finally{fE()}}var mE=void 0;function gE(e){var t=mE;mE=void 0;try{return e()}finally{mE=t}}var vE=void 0,yE=0,bE=0,xE=0;function SE(e){if(void 0!==mE){var t=e.n;if(void 0===t||t.t!==mE)return t={i:0,S:e,p:mE.s,n:void 0,t:mE,e:void 0,x:void 0,r:t},void 0!==mE.s&&(mE.s.n=t),mE.s=t,e.n=t,32&mE.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=mE.s,t.n=void 0,mE.s.n=t,mE.s=t),t}}function wE(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 CE(e,t){return new wE(e,t)}function EE(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 IE(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 DE(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 PE(e,t){wE.call(this,void 0),this.x=e,this.s=void 0,this.g=xE-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 ME(e,t){return new PE(e,t)}function RE(e){var t=e.u;if(e.u=void 0,"function"==typeof t){yE++;var r=mE;mE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,LE(e),t}finally{mE=r,fE()}}}function LE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,RE(e)}function AE(e){if(mE!==this)throw new Error("Out-of-order effect");DE(this),mE=e,this.f&=-2,8&this.f&&LE(this),fE()}function kE(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 OE(e,t){var r=new kE(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}wE.prototype.brand=pE,wE.prototype.h=function(){return!0},wE.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:gE((function(){var e;null==(e=t.W)||e.call(t)})))},wE.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&&gE((function(){var e;null==(e=t.Z)||e.call(t)})))}},wE.prototype.subscribe=function(e){var t=this;return OE((function(){var r=t.value,n=mE;mE=void 0;try{e(r)}finally{mE=n}}),{name:"sub"})},wE.prototype.valueOf=function(){return this.value},wE.prototype.toString=function(){return this.value+""},wE.prototype.toJSON=function(){return this.value},wE.prototype.peek=function(){var e=mE;mE=void 0;try{return this.value}finally{mE=e}},Object.defineProperty(wE.prototype,"value",{get:function(){var e=SE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bE>100)throw new Error("Cycle detected");this.v=e,this.i++,xE++,yE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{fE()}}}}),PE.prototype=new wE,PE.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===xE)return!0;if(this.g=xE,this.f|=1,this.i>0&&!EE(this))return this.f&=-2,!0;var e=mE;try{IE(this),mE=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 mE=e,DE(this),this.f&=-2,!0},PE.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)}wE.prototype.S.call(this,e)},PE.prototype.U=function(e){if(void 0!==this.t&&(wE.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)}},PE.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(PE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=SE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),kE.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()}},kE.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,RE(this),IE(this),yE++;var e=mE;return mE=this,AE.bind(this,e)},kE.prototype.N=function(){2&this.f||(this.f|=2,this.o=vE,vE=this)},kE.prototype.d=function(){this.f|=8,1&this.f||LE(this)},kE.prototype.dispose=function(){this.d()};var qE,TE,_E,jE,NE,FE,zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE,QE,eI=Object.create,tI=Object.defineProperty,rI=Object.defineProperties,nI=Object.getOwnPropertyDescriptor,oI=Object.getOwnPropertyDescriptors,iI=Object.getOwnPropertySymbols,aI=Object.prototype.hasOwnProperty,sI=Object.prototype.propertyIsEnumerable,lI=e=>{throw TypeError(e)},uI=(e,t,r)=>t in e?tI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cI=(e,t)=>tI(e,"name",{value:t,configurable:!0}),dI=["class","method","getter","setter","accessor","field","value","get","set"],pI=e=>void 0!==e&&"function"!=typeof e?lI("Function expected"):e,fI=(e,t,r,n,o)=>({kind:dI[e],name:t,metadata:n,addInitializer:e=>r._?lI("Already initialized"):o.push(pI(e||null))}),hI=(e,t)=>{return uI(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},mI=(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},gI=(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=dI[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)&&nI(d<4?o:{get[r](){return bI(this,i)},set[r](e){return SI(this,i,e)}},r));d?f&&d<4&&cI(i,(d>2?"set ":d>1?"get ":"")+r):cI(o,r);for(var b=n.length-1;b>=0;b--)u=fI(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>yI(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?bI:wI)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>SI(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?pI(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?lI("Object expected"):(pI(a=s.get)&&(y.get=a),pI(a=s.set)&&(y.set=a),pI(a=s.init)&&g.unshift(a));return d||hI(e,o),y&&tI(o,r,y),f?4^d?i:y:o},vI=(e,t,r)=>t.has(e)||lI("Cannot "+r),yI=(e,t)=>Object(t)!==t?lI('Cannot use the "in" operator on this value'):e.has(t),bI=(e,t,r)=>(vI(e,t,"read from private field"),r?r.call(e):t.get(e)),xI=(e,t,r)=>t.has(e)?lI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),SI=(e,t,r,n)=>(vI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),wI=(e,t,r)=>(vI(e,t,"access private method"),r);function CI(e,t){if(t){let r;return ME((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return ME(e)}function EI(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)=>!EI(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=>!EI(e[r],t[r])));return!o}return!1}function II({get:e},t){return{init:e=>CE(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function DI(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=CI(e.bind(this)),r.set(this,t)),t.value}}function PI(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)=>rI(e,oI(t)))(((e,t)=>{for(var r in t||(t={}))aI.call(t,r)&&uI(e,r,t[r]);if(iI)for(var r of iI(t))sI.call(t,r)&&uI(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function MI(...e){const t=e.map(OE);return()=>t.forEach((e=>e()))}FE=[II],NE=[II],jE=[II],_E=[PI()],TE=[PI()],qE=[PI()];var RI,LI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,mI(zE,5,this),xI(this,BE),xI(this,WE,mI(zE,8,this)),mI(zE,11,this),xI(this,GE,mI(zE,12,this)),mI(zE,15,this),xI(this,XE,mI(zE,16,this)),mI(zE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return bI(this,BE,ZE)}get initial(){return bI(this,BE,HE)}get previous(){return bI(this,BE,YE)}set current(e){const t=gE((()=>bI(this,BE,ZE)));e&&t&&this.equals(t,e)||hE((()=>{bI(this,BE,HE)||SI(this,BE,e,VE),SI(this,BE,t,KE),SI(this,BE,e,QE)}))}reset(e=this.defaultValue){hE((()=>{SI(this,BE,void 0,KE),SI(this,BE,e,VE),SI(this,BE,e,QE)}))}};function AI(e){return gE((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}zE=[,,,eI(null)],WE=new WeakMap,BE=new WeakSet,GE=new WeakMap,XE=new WeakMap,$E=gI(zE,20,"#initial",FE,BE,WE),HE=$E.get,VE=$E.set,UE=gI(zE,20,"#previous",NE,BE,GE),YE=UE.get,KE=UE.set,JE=gI(zE,20,"#current",jE,BE,XE),ZE=JE.get,QE=JE.set,gI(zE,2,"current",_E,LI),gI(zE,2,"initial",TE,LI),gI(zE,2,"previous",qE,LI),hI(zE,LI);RI=new WeakMap;var kI,OI,qI,TI,_I,jI=Object.create,NI=Object.defineProperty,FI=Object.getOwnPropertyDescriptor,zI=Object.getOwnPropertySymbols,WI=Object.prototype.hasOwnProperty,$I=Object.prototype.propertyIsEnumerable,HI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),VI=e=>{throw TypeError(e)},BI=Math.pow,GI=(e,t,r)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UI=["class","method","getter","setter","accessor","field","value","get","set"],YI=e=>void 0!==e&&"function"!=typeof e?VI("Function expected"):e,KI=(e,t,r,n,o)=>({kind:UI[e],name:t,metadata:n,addInitializer:e=>r._?VI("Already initialized"):o.push(YI(e||null))}),XI=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=UI[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,FI(o,r)),h=n.length-1;h>=0;h--)(l=KI(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,YI(a)&&(f[d]=a);return f&&NI(o,r,f),o},JI=(e,t,r)=>t.has(e)||VI("Cannot "+r),ZI=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)}},QI=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={}))WI.call(t,r)&&GI(e,r,t[r]);if(zI)for(var r of zI(t))$I.call(t,r)&&GI(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 ZI((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 ZI.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 eD,tD=class extends(qI=LI,OI=[DI],kI=[DI],qI){constructor(e){var t,r,n;super(ZI.from(e),((e,t)=>ZI.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)})(_I,5,this),t=this,n=0,(r=TI).has(t)?VI("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 ZI.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=ZI.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(JI(a=this,s=TI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);hE((()=>{((e,t,r)=>{JI(e,t,"write to private field"),t.set(e,r)})(this,TI,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(ZI.from(e)),this.velocity={x:0,y:0}}};function rD({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(BI(n,2)+BI(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}_I=(e=>{var t;return[,,,jI(null!=(t=null==e?void 0:e[HI("metadata")])?t:null)]})(qI),TI=new WeakMap,XI(_I,2,"delta",OI,tD),XI(_I,2,"direction",kI,tD),eD=_I,GI(tD,HI("metadata"),eD[3]);var nD,oD,iD,aD,sD=(e=>(e.Horizontal="x",e.Vertical="y",e))(sD||{}),lD=Object.values(sD),uD=Object.create,cD=Object.defineProperty,dD=Object.defineProperties,pD=Object.getOwnPropertyDescriptor,fD=Object.getOwnPropertyDescriptors,hD=Object.getOwnPropertySymbols,mD=Object.prototype.hasOwnProperty,gD=Object.prototype.propertyIsEnumerable,vD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yD=e=>{throw TypeError(e)},bD=(e,t,r)=>t in e?cD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xD=(e,t)=>{for(var r in t||(t={}))mD.call(t,r)&&bD(e,r,t[r]);if(hD)for(var r of hD(t))gD.call(t,r)&&bD(e,r,t[r]);return e},SD=(e,t)=>dD(e,fD(t)),wD=(e,t)=>cD(e,"name",{value:t,configurable:!0}),CD=(e,t)=>{var r={};for(var n in e)mD.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&hD)for(var n of hD(e))t.indexOf(n)<0&&gD.call(e,n)&&(r[n]=e[n]);return r},ED=e=>{var t;return[,,,uD(null!=(t=null==e?void 0:e[vD("metadata")])?t:null)]},ID=["class","method","getter","setter","accessor","field","value","get","set"],DD=e=>void 0!==e&&"function"!=typeof e?yD("Function expected"):e,PD=(e,t,r,n,o)=>({kind:ID[e],name:t,metadata:n,addInitializer:e=>r._?yD("Already initialized"):o.push(DD(e||null))}),MD=(e,t)=>bD(t,vD("metadata"),e[3]),RD=(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},LD=(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=ID[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)&&pD(d<4?o:{get[r](){return OD(this,i)},set[r](e){return TD(this,i,e)}},r));d?f&&d<4&&wD(i,(d>2?"set ":d>1?"get ":"")+r):wD(o,r);for(var b=n.length-1;b>=0;b--)u=PD(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>kD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?OD:_D)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>TD(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?DD(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?yD("Object expected"):(DD(a=s.get)&&(y.get=a),DD(a=s.set)&&(y.set=a),DD(a=s.init)&&g.unshift(a));return d||MD(e,o),y&&cD(o,r,y),f?4^d?i:y:o},AD=(e,t,r)=>t.has(e)||yD("Cannot "+r),kD=(e,t)=>Object(t)!==t?yD('Cannot use the "in" operator on this value'):e.has(t),OD=(e,t,r)=>(AD(e,t,"read from private field"),r?r.call(e):t.get(e)),qD=(e,t,r)=>t.has(e)?yD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),TD=(e,t,r,n)=>(AD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),_D=(e,t,r)=>(AD(e,t,"access private method"),r);function jD(e,t){return{plugin:e,options:t}}function ND(e){return t=>jD(e,t)}function FD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}nD=[II];var zD=class{constructor(e,t){this.manager=e,this.options=t,qD(this,iD,RD(oD,8,this,!1)),RD(oD,11,this),qD(this,aD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return gE((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=OE(e.bind(this));return OD(this,aD).add(t),t}destroy(){OD(this,aD).forEach((e=>e()))}static configure(e){return jD(this,e)}};oD=ED(null),iD=new WeakMap,aD=new WeakMap,LD(oD,4,"disabled",nD,zD,iD),MD(oD,zD);var WD,$D=class extends zD{},HD=class{constructor(e){this.manager=e,this.instances=new Map,qD(this,WD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(FD).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of OD(this,WD))if(!r.includes(e)){if(e.prototype instanceof $D)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);TD(this,WD,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 VD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}WD=new WeakMap;var BD,GD,UD=[],YD=class extends zD{constructor(e){super(e),qD(this,BD),qD(this,GD),this.computeCollisions=this.computeCollisions.bind(this),TD(this,GD,CE(UD)),this.destroy=MI((()=>{const e=this.computeCollisions(),t=gE((()=>this.manager.dragOperation.position.current));if(e!==UD){const e=OD(this,BD);if(TD(this,BD,t),e&&t.x==e.x&&t.y==e.y)return}else TD(this,BD,void 0);OD(this,GD).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){gE((()=>{e?OD(this,GD).value=this.computeCollisions():TD(this,BD,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return UD;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=gE((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?UD:(s.sort(VD),s)}get collisions(){return OD(this,GD).value}};BD=new WeakMap,GD=new WeakMap;var KD=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)}},XD=class extends KD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function JD(e,t=!0){let r=!1;return SD(xD({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var ZD,QD,eP,tP,rP,nP,oP,iP,aP,sP=class extends $D{constructor(e){super(e);let t=[];this.destroy=MI((()=>{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=JD({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;gE((()=>{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()})))}))}))}},lP=(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))(lP||{}),uP=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(uP||{});oP=[II],nP=[DI],rP=[DI],tP=[DI],eP=[DI],QD=[DI],ZD=[DI];var cP=class{constructor(){RD(iP,5,this),qD(this,aP,RD(iP,8,this,"idle")),RD(iP,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}};iP=ED(null),aP=new WeakMap,LD(iP,4,"value",oP,cP,aP),LD(iP,2,"current",nP,cP),LD(iP,2,"idle",rP,cP),LD(iP,2,"initializing",tP,cP),LD(iP,2,"initialized",eP,cP),LD(iP,2,"dragging",QD,cP),LD(iP,2,"dropped",ZD,cP),MD(iP,cP);var dP,pP,fP,hP,mP,gP,vP,yP,bP,xP=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 gE((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=JD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return gE((()=>{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;hE((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=JD({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 gE((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=JD({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 gE((()=>{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=gE((()=>{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=OE((()=>{"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()}))}};hP=[II],fP=[II],pP=[II],dP=[II];var SP=class{constructor(e,t){qD(this,gP,RD(mP,8,this)),RD(mP,11,this),qD(this,vP,RD(mP,12,this)),RD(mP,15,this),qD(this,yP,RD(mP,16,this)),RD(mP,19,this),qD(this,bP,RD(mP,20,this)),RD(mP,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)}};mP=ED(null),gP=new WeakMap,vP=new WeakMap,yP=new WeakMap,bP=new WeakMap,LD(mP,4,"manager",hP,SP,gP),LD(mP,4,"id",fP,SP,vP),LD(mP,4,"data",pP,SP,yP),LD(mP,4,"disabled",dP,SP,bP),MD(mP,SP);var wP,CP,EP,IP,DP,PP,MP,RP,LP,AP,kP,OP,qP,TP,_P,jP,NP,FP,zP,WP,$P,HP,VP,BP,GP=class{constructor(){this.map=CE(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=MI(...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}},UP=class extends(MP=SP,PP=[II],DP=[II],IP=[II],EP=[DI],CP=[DI],wP=[DI],MP){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=CD(r,["modifiers","type","sensors"]);super(a,t),RD(RP,5,this),qD(this,LP,RD(RP,8,this)),RD(RP,11,this),qD(this,AP,RD(RP,12,this)),RD(RP,15,this),qD(this,kP,RD(RP,16,this,this.isDragSource?"dragging":"idle")),RD(RP,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}};RP=ED(MP),LP=new WeakMap,AP=new WeakMap,kP=new WeakMap,LD(RP,4,"type",PP,UP,LP),LD(RP,4,"modifiers",DP,UP,AP),LD(RP,4,"status",IP,UP,kP),LD(RP,2,"isDropping",EP,UP),LD(RP,2,"isDragging",CP,UP),LD(RP,2,"isDragSource",wP,UP),MD(RP,UP);var YP=class extends(FP=SP,NP=[II],jP=[II],_P=[II],TP=[II],qP=[II],OP=[DI],FP){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(CD(r,["accept","collisionDetector","collisionPriority","type"]),t),RD(zP,5,this),qD(this,WP,RD(zP,8,this)),RD(zP,11,this),qD(this,$P,RD(zP,12,this)),RD(zP,15,this),qD(this,HP,RD(zP,16,this)),RD(zP,19,this),qD(this,VP,RD(zP,20,this)),RD(zP,23,this),qD(this,BP,RD(zP,24,this)),RD(zP,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}};zP=ED(FP),WP=new WeakMap,$P=new WeakMap,HP=new WeakMap,VP=new WeakMap,BP=new WeakMap,LD(zP,4,"accept",NP,YP,WP),LD(zP,4,"type",jP,YP,$P),LD(zP,4,"collisionDetector",_P,YP,HP),LD(zP,4,"collisionPriority",TP,YP,VP),LD(zP,4,"shape",qP,YP,BP),LD(zP,2,"isDropTarget",OP,YP),MD(zP,YP);var KP,XP,JP,ZP,QP,eM,tM,rM,nM,oM,iM,aM,sM,lM,uM,cM,dM,pM,fM,hM=class extends zD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},mM=class extends zD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},gM=class{constructor(e){this.draggables=new GP,this.droppables=new GP,this.plugins=new HD(e),this.sensors=new HD(e),this.modifiers=new HD(e)}register(e,t){if(e instanceof UP)return this.draggables.register(e.id,e);if(e instanceof YP)return this.droppables.register(e.id,e);if(e.prototype instanceof mM)return this.modifiers.register(e,t);if(e.prototype instanceof hM)return this.sensors.register(e,t);if(e.prototype instanceof zD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof SP)return e instanceof UP?this.draggables.unregister(e.id,e):e instanceof YP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof mM)return this.modifiers.unregister(e);if(e.prototype instanceof hM)return this.sensors.unregister(e);if(e.prototype instanceof zD)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()}};nM=[DI],rM=[II],tM=[II],eM=[II],QP=[II],ZP=[II],JP=[DI],XP=[DI],KP=[DI];var vM=class{constructor(e){RD(sM,5,this),qD(this,oM),qD(this,iM),qD(this,aM,new LI(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new cP,qD(this,lM,RD(sM,8,this,!1)),RD(sM,11,this),qD(this,uM,RD(sM,12,this,null)),RD(sM,15,this),qD(this,cM,RD(sM,16,this,null)),RD(sM,19,this),qD(this,dM,RD(sM,20,this,null)),RD(sM,23,this),qD(this,pM,RD(sM,24,this,[])),RD(sM,27,this),this.position=new tD({x:0,y:0}),qD(this,fM,{x:0,y:0}),TD(this,oM,e)}get shape(){const{current:e,initial:t,previous:r}=OD(this,aM);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?OD(this,aM).current=e:OD(this,aM).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=OD(this,oM).registry.draggables.get(t);return r&&TD(this,iM,r),null!=(e=null!=r?r:OD(this,iM))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=OD(this,oM).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(SD(xD({},this.snapshot()),{transform:r}));return TD(this,fM,r),r}snapshot(){return gE((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:OD(this,fM),shape:this.shape?AI(this.shape):null,position:AI(this.position),status:AI(this.status),canceled:this.canceled})))}reset(){hE((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,OD(this,aM).reset(),this.position.reset({x:0,y:0}),TD(this,fM,{x:0,y:0}),this.modifiers=[]}))}};sM=ED(null),oM=new WeakMap,iM=new WeakMap,aM=new WeakMap,lM=new WeakMap,uM=new WeakMap,cM=new WeakMap,dM=new WeakMap,pM=new WeakMap,fM=new WeakMap,LD(sM,2,"shape",nM,vM),LD(sM,4,"canceled",rM,vM,lM),LD(sM,4,"activatorEvent",tM,vM,uM),LD(sM,4,"sourceIdentifier",eM,vM,cM),LD(sM,4,"targetIdentifier",QP,vM,dM),LD(sM,4,"modifiers",ZP,vM,pM),LD(sM,2,"source",JP,vM),LD(sM,2,"target",XP,vM),LD(sM,2,"transform",KP,vM),MD(sM,vM);var yM={get rendering(){return Promise.resolve()}},bM=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=yM}=null!=e?e:{},i=new XD(this),a=new gM(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new xP(this),this.dragOperation=new vM(this),this.collisionObserver=new YD(this),this.plugins=[sP,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=MI((()=>{var e,t,r;const n=gE((()=>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}=FD(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}},xM=e=>{throw TypeError(e)},SM=(e,t,r)=>t.has(e)||xM("Cannot "+r),wM=(e,t,r)=>(SM(e,t,"read from private field"),t.get(e)),CM=(e,t,r)=>t.has(e)?xM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),EM=(e,t,r,n)=>(SM(e,t,"write to private field"),t.set(e,r),r),IM=(e,t,r)=>(SM(e,t,"access private method"),r);function DM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function PM(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=(DM(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function MM(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 RM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function LM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AM(e){return"nodeType"in e}function kM(e){var t,r,n;return e?LM(e)?e:AM(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 OM(e){const{Document:t}=kM(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function qM(e){return!(!e||LM(e))&&(e instanceof kM(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function TM(e){return e instanceof kM(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function _M(e){return e?LM(e)?e.document:AM(e)?OM(e)?e:qM(e)||TM(e)?e.ownerDocument:document:document:document}function jM(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 NM(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(!jM(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 FM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function zM(e){return"value"in e}function WM(e){return"CANVAS"===e.tagName}function $M(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 $M(e,{x:t-o,y:r-i})}}return n}var HM=new WeakMap,VM=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 BM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function GM(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 UM,YM=RM?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},KM=class extends YM{constructor(e){super((t=>{wM(this,UM)?e(t,this):EM(this,UM,!0)})),CM(this,UM,!1)}};UM=new WeakMap;var XM,JM,ZM,QM,eR,tR,rR,nR,oR,iR,aR,sR=Array.from({length:100},((e,t)=>t/100)),lR=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,CM(this,oR),this.disconnect=()=>{var e,t,r;EM(this,rR,!0),null==(e=wM(this,ZM))||e.disconnect(),null==(t=wM(this,QM))||t.disconnect(),wM(this,eR).disconnect(),null==(r=wM(this,tR))||r.remove()},CM(this,XM,!0),CM(this,JM),CM(this,ZM),CM(this,QM),CM(this,eR),CM(this,tR),CM(this,rR,!1),CM(this,nR,GM((()=>{var e,t,r;const{element:n}=this;if(null==(e=wM(this,QM))||e.disconnect(),wM(this,rR)||!wM(this,XM)||!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=NM(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,EM(this,QM,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:QI.intersectionRatio(r,NM(n)))&&wM(this,nR).call(this)}),{threshold:sR,rootMargin:m,root:o})),wM(this,QM).observe(n),IM(this,oR,iR).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),EM(this,XM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=NM(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)&&(EM(this,tR,document.createElement("div")),wM(this,tR).style.background="rgba(0,0,0,0.15)",wM(this,tR).style.position="fixed",wM(this,tR).style.pointerEvents="none",o.body.appendChild(wM(this,tR))),EM(this,eR,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=wM(this,XM);EM(this,XM,a),(s||l)&&(u&&!a?(null==(r=wM(this,QM))||r.disconnect(),this.callback(null),null==(n=wM(this,ZM))||n.disconnect(),EM(this,ZM,void 0),wM(this,tR)&&(wM(this,tR).style.visibility="hidden")):wM(this,nR).call(this),a&&!wM(this,ZM)&&(EM(this,ZM,new KM(wM(this,nR))),wM(this,ZM).observe(e)))}),{threshold:sR,root:o})),wM(this,XM)&&!r.skipInitial&&this.callback(this.boundingClientRect),wM(this,eR).observe(e)}};XM=new WeakMap,JM=new WeakMap,ZM=new WeakMap,QM=new WeakMap,eR=new WeakMap,tR=new WeakMap,rR=new WeakMap,nR=new WeakMap,oR=new WeakSet,iR=function(){wM(this,rR)||(IM(this,oR,aR).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,wM(this,JM))||(this.callback(this.boundingClientRect),EM(this,JM,this.boundingClientRect)))},aR=function(){if(wM(this,tR)){const{top:e,left:t,width:r,height:n}=NM(this.element);wM(this,tR).style.overflow="hidden",wM(this,tR).style.visibility="visible",wM(this,tR).style.top=`${Math.floor(e)}px`,wM(this,tR).style.left=`${Math.floor(t)}px`,wM(this,tR).style.width=`${Math.floor(r)}px`,wM(this,tR).style.height=`${Math.floor(n)}px`}};var uR,cR,dR,pR,fR=new WeakMap,hR=new WeakMap;function mR(e,t){let r=fR.get(e);if(!r){const t=new lR(e,(t=>{const r=fR.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),fR.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(fR.delete(e),r.disconnect())}}var gR=class{constructor(e,t,r){this.callback=t,CM(this,uR),CM(this,cR,!1),CM(this,dR),CM(this,pR,GM((e=>{if(!wM(this,cR)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of wM(this,dR))if(e.target.contains(t)){this.callback(wM(this,uR).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=BM(e);for(;r;)t.add(r),r=BM(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=mR(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!hR.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}),hR.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=hR.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),hR.delete(n))}):()=>{}}(e,wM(this,pR));EM(this,dR,n),EM(this,uR,new lR(e,t,r)),this.disconnect=()=>{wM(this,cR)||(EM(this,cR,!0),o(),i(),wM(this,uR).disconnect())}}};function vR(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function yR(e){try{vR(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function bR(e){return!(!RM||!e)&&e===_M(e).scrollingElement}function xR(e){const t=kM(e),r=bR(e)?function(e){const{documentElement:t}=_M(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):MM(e),n=bR(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 SR(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=xR(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}}uR=new WeakMap,cR=new WeakMap,dR=new WeakMap,pR=new WeakMap;var wR=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)))}},CR=new wR((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),ER=new wR((e=>setTimeout(e,50))),IR=new Map,DR=IR.clear.bind(IR);function PR(e,t=!1){if(!t)return MR(e);let r=IR.get(e);return r||(r=MR(e),IR.set(e,r),ER.schedule(DR),r)}function MR(e){return kM(e).getComputedStyle(e)}var RR={excludeElement:!0};function LR(e,t=RR){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(OM(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!qM(i))return TM(i)?t(i.parentElement):o;if(o.has(i))return o;const a=PR(i,!0);if(n&&i===e||function(e,t=PR(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=PR(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 AR(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=BM(e);for(;n;){if(n===t)return r;const e=MM(n),{x:o,y:i}=kR(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=BM(n)}return r}function kR(e,t=MM(e)){const r=Math.round(t.width),n=Math.round(t.height);if(qM(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=PR(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function OR(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 qR(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=OR(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 TR=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(TR||{}),_R={x:.2,y:.2},jR={x:10,y:10};function NR(e,t,r,n=25,o=_R,i=jR){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=xR(e),f=AR(e),h=qR(PR(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new QI(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 FR(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!qM(e))return e.scrollIntoView();var n=function(e){const[t]=LR(e,{limit:1});return null!=t?t:null}(e);if(!qM(n))return;const o=PR(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 zR({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function WR(e,t=PR(e).translate,r=!0){if(r){const t=PM(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=OR(e);if(t)return t}}}if(t){const e=OR(t);if(e)return e}return{x:0,y:0,z:0}}var $R=new wR((e=>setTimeout(e,0))),HR=new Map,VR=HR.clear.bind(HR);function BR(e,t){const r=function(e){const t=e.ownerDocument;let r=HR.get(t);if(r)return r;r=t.getAnimations(),HR.set(t,r),$R.schedule(VR);const n=r.filter((t=>DM(t.effect)&&t.effect.target===e));return HR.set(e,n),r}(e).filter((e=>{var r,n;if(DM(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 GR=class extends QI{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=AR(e),ignoreTransforms:s,getBoundingClientRect:l=MM}=t,u=BR(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||FM())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=PR(e),v=qR(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=DM(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=qR({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 UR(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 YR=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(UR(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(UR(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(UR(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function KR(e){return!!e&&(e instanceof kM(e).Element||AM(e)&&e.nodeType===Node.ELEMENT_NODE)}function XR(e){if(!e)return!1;const{KeyboardEvent:t}=kM(e.target);return e instanceof t}var JR={};function ZR(e){const t=null==JR[e]?0:JR[e]+1;return JR[e]=t,`${e}-${t}`}var QR=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/ZI.distance(t.shape.center,r),type:uP.PointerIntersection,priority:lP.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=ZI.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:uP.ShapeIntersection,priority:lP.Normal}}return null})(e)},eL=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?QI.from(n.current.boundingRectangle).corners:void 0,a=QI.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+ZI.distance(ZI.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:uP.Collision,priority:lP.Normal}},tL=Object.create,rL=Object.defineProperty,nL=Object.defineProperties,oL=Object.getOwnPropertyDescriptor,iL=Object.getOwnPropertyDescriptors,aL=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,lL=Object.prototype.propertyIsEnumerable,uL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),cL=e=>{throw TypeError(e)},dL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pL=(e,t)=>{for(var r in t||(t={}))sL.call(t,r)&&dL(e,r,t[r]);if(aL)for(var r of aL(t))lL.call(t,r)&&dL(e,r,t[r]);return e},fL=(e,t)=>nL(e,iL(t)),hL=(e,t)=>rL(e,"name",{value:t,configurable:!0}),mL=(e,t)=>{var r={};for(var n in e)sL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&aL)for(var n of aL(e))t.indexOf(n)<0&&lL.call(e,n)&&(r[n]=e[n]);return r},gL=e=>{var t;return[,,,tL(null!=(t=null==e?void 0:e[uL("metadata")])?t:null)]},vL=["class","method","getter","setter","accessor","field","value","get","set"],yL=e=>void 0!==e&&"function"!=typeof e?cL("Function expected"):e,bL=(e,t,r,n,o)=>({kind:vL[e],name:t,metadata:n,addInitializer:e=>r._?cL("Already initialized"):o.push(yL(e||null))}),xL=(e,t)=>dL(t,uL("metadata"),e[3]),SL=(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},wL=(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=vL[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)&&oL(d<4?o:{get[r](){return IL(this,i)},set[r](e){return PL(this,i,e)}},r));d?f&&d<4&&hL(i,(d>2?"set ":d>1?"get ":"")+r):hL(o,r);for(var b=n.length-1;b>=0;b--)u=bL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?IL:ML)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>PL(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?yL(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?cL("Object expected"):(yL(a=s.get)&&(y.get=a),yL(a=s.set)&&(y.set=a),yL(a=s.init)&&g.unshift(a));return d||xL(e,o),y&&rL(o,r,y),f?4^d?i:y:o},CL=(e,t,r)=>t.has(e)||cL("Cannot "+r),EL=(e,t)=>Object(t)!==t?cL('Cannot use the "in" operator on this value'):e.has(t),IL=(e,t,r)=>(CL(e,t,"read from private field"),r?r.call(e):t.get(e)),DL=(e,t,r)=>t.has(e)?cL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PL=(e,t,r,n)=>(CL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ML=(e,t,r)=>(CL(e,t,"access private method"),r),RL="button",LL="draggable",AL="dnd-kit-description",kL="dnd-kit-announcement",OL={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."},qL={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 TL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var _L=["dragover","dragmove"];var jL="data-dnd-",NL=`${jL}dropping`,FL="--dnd-",zL=`${jL}dragging`,WL=`${jL}placeholder`,$L=[zL,WL,"popover","aria-pressed","aria-grabbing"],HL=["view-transition-name"],VL=`\n :root [${zL}] {\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(${FL}top, 0px) !important;\n left: var(${FL}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${FL}width, auto);\n max-width: var(${FL}width, auto);\n height: var(${FL}height, auto);\n max-height: var(${FL}height, auto);\n transition: var(${FL}transition) !important;\n }\n\n :root [${WL}] {\n transition: none;\n }\n\n :root [${WL}='hidden'] {\n visibility: hidden;\n }\n\n [${zL}] * {\n pointer-events: none !important;\n }\n\n [${zL}]:not([${NL}]) {\n translate: var(${FL}translate) !important;\n }\n\n [${zL}][style*='${FL}scale'] {\n scale: var(${FL}scale) !important;\n transform-origin: var(${FL}transform-origin) !important;\n }\n\n @layer {\n :where([${zL}][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 [${zL}]::backdrop, [${jL}overlay]:not([${zL}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function BL(e,t="hidden"){return gE((()=>{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=`${jL}${ZR("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(zM(e)&&zM(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),WM(e)&&WM(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),HM.set(a,i),r.push((()=>{HM.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(WL,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function GL(e,t){return e===t||BM(e)===BM(t)}function UL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&KR(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>yR(t)))}function YL(e){return"TR"===e.tagName}var KL,XL,JL,ZL,QL,eA,tA,rA=new Map,nA=class extends(XL=zD,KL=[II],XL){constructor(e,t){super(e,t),DL(this,QL),DL(this,ZL,SL(JL,8,this)),SL(JL,11,this),this.state={initial:{},current:{}},this.registerEffect(ML(this,QL,tA)),this.registerEffect(ML(this,QL,eA))}destroy(){super.destroy();for(const[e,t]of rA.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),rA.delete(e)))}};JL=gL(XL),ZL=new WeakMap,QL=new WeakSet,eA=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=AR(f),m=AR(c),g=!GL(c,f),v=new GR(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 YR(f),{transition:P,translate:M,boxSizing:R,paddingBlockStart:L,paddingBlockEnd:A,paddingInlineStart:k,paddingInlineEnd:O,borderInlineStartWidth:q,borderInlineEndWidth:T,borderBlockStartWidth:_,borderBlockEndWidth:j}=PR(c),N="clone"===d,F="content-box"===R,z=F?parseInt(k)+parseInt(O)+parseInt(q)+parseInt(T):0,W=F?parseInt(L)+parseInt(A)+parseInt(_)+parseInt(j):0,$="move"===d||this.overlay?null:BL(l,N?"clone":"hidden"),H=gE((()=>XR(o.dragOperation.activatorEvent)));if("none"!==M){const e=OR(M);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=gE((()=>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(zL,"true");const ee=gE((()=>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=P?`${P}, 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}%`},FL),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}vR(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),yR(f),f.addEventListener("beforetoggle",UL));const oe=new ResizeObserver((()=>{if(!$)return;const e=new GR($,{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},FL),null==x||x.takeRecords(),YL(c)&&YL($)){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 GR(f)})),ie=new GR(f);gE((()=>a.shape=ie));const ae=kM(f),se=e=>{this.manager.actions.stop({event:e})};H&&ae.addEventListener("resize",se),"idle"===gE((()=>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-")||$L.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(UR(c)&&UR($)){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(HL.includes(t)||t.startsWith(FL))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 yR(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void yR(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;qM(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),vR(f)&&(f.removeEventListener("beforetoggle",UL),f.removeAttribute("popover")),f.removeAttribute(zL),D.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=MI((()=>{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=gE((()=>a.modifiers)),l=gE((()=>{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:`${P}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},FL),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=ZI.delta(o,i);a.shape=QI.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new GR(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;{yR(f);const[,o]=null!=(r=PM(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:GL(f,i)?null:void 0},s=new GR(f,a),u=null!=(n=OR(PR(f).translate))?n:e,d=new GR(i,a),p=QI.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:P},FL),f.setAttribute(NL,""),null==x||x.takeRecords(),zR({element:f,keyframes:fL(pL(pL({},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(NL),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},tA=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=_M(null!=(t=null==o?void 0:o.element)?t:null),n=_M(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=rA.get(e);if(!t){const r=document.createElement("style");r.textContent=VL,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},rA.set(e,t)}t.instances.add(this)}}},wL(JL,4,"overlay",KL,nA,ZL),xL(JL,nA),nA.configure=ND(nA);var oA,iA,aA,sA,lA,uA,cA,dA=nA,pA=!0;aA=[II],sA=TR.Forward,oA=[II],iA=TR.Reverse;var fA=class{constructor(){DL(this,uA,SL(lA,8,this,pA)),SL(lA,11,this),DL(this,cA,SL(lA,12,this,pA)),SL(lA,15,this)}isLocked(e){return e!==TR.Idle&&(null==e?this[TR.Forward]===pA&&this[TR.Reverse]===pA:this[e]===pA)}unlock(e){e!==TR.Idle&&(this[e]=false)}};lA=gL(null),uA=new WeakMap,cA=new WeakMap,wL(lA,4,sA,aA,fA,uA),wL(lA,4,iA,oA,fA,cA),xL(lA,fA);var hA,mA,gA,vA,yA,bA,xA=[TR.Forward,TR.Reverse],SA=class{constructor(){this.x=new fA,this.y=new fA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},wA=class extends zD{constructor(e){super(e);const t=CE(new SA);let r=null;this.signal=t,OE((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new SA);const{delta:o}=e.dragOperation.position;if(r){const e={x:CA(o.x,r.x),y:CA(o.y,r.y)},n=t.peek();hE((()=>{for(const t of lD)for(const r of xA)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function CA(e,t){return Math.sign(e-t)}var EA=class extends(mA=$D,hA=[II],mA){constructor(e){super(e),DL(this,vA,SL(gA,8,this,!1)),SL(gA,11,this),DL(this,yA),DL(this,bA,(()=>{if(!IL(this,yA))return;const{element:e,by:t}=IL(this,yA);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 PL(this,yA,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:IA(n.x),y:IA(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=SR(e,n);if(r.x||r.y){const{speed:r,direction:s}=NR(e,o,i);if(a)for(const e of lD)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=IL(this,yA))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return PL(this,yA,{element:e,by:{x:a,y:l}}),CR.schedule(IL(this,bA)),!0}}}}}return PL(this,yA,void 0),!1};let t=null,r=null;const n=CI((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=$M(_M(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=CI((()=>{const t=n.value,{documentElement:o}=_M(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=LR(n,{excludeElement:!1});return r=e,e}}if(t){const e=LR(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),EI);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new wA(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&XR(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function IA(e){return e>0?TR.Forward:e<0?TR.Reverse:TR.Idle}gA=gL(mA),vA=new WeakMap,yA=new WeakMap,bA=new WeakMap,wL(gA,4,"autoScrolling",hA,EA,vA),xL(gA,EA);var DA,PA=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()})),MA=class extends zD{constructor(e,t){super(e);const r=e.registry.plugins.get(EA);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=OE((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>PA.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},RA={capture:!0,passive:!0},LA=class extends $D{constructor(e){super(e),DL(this,DA),this.handleScroll=()=>{null==IL(this,DA)&&PL(this,DA,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),PL(this,DA,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=OE((()=>{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,RA),()=>{o.removeEventListener("scroll",this.handleScroll,RA)}}}))}};DA=new WeakMap;function AA(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var kA,OA=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}}),qA=class extends hM{constructor(e,t){super(e),this.manager=e,this.options=t,DL(this,kA,[]),this.listeners=new VM,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!KR(e.target))return;if(t.disabled)return;const{keyboardCodes:n=OA.keyboardCodes,shouldActivate:o=OA.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=OE((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{XR(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(),FR(n);const{center:o}=new GR(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=_M(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];IL(this,kA).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=OA.keyboardCodes}=null!=r?r:{};if(_A(e,[...n.end,...n.cancel])){e.preventDefault();const t=_A(e,n.cancel);this.handleEnd(e,t)}else _A(e,n.up)?this.handleMove("up",e):_A(e,n.down)&&this.handleMove("down",e),_A(e,n.left)?this.handleMove("left",e):_A(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:OA.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(MA);!1===(null==e?void 0:e.disabled)&&(e.disable(),IL(this,kA).push((()=>{e.enable()})))}cleanup(){IL(this,kA).forEach((e=>e())),PL(this,kA,[])}destroy(){this.cleanup(),this.listeners.clear()}};kA=new WeakMap,qA.configure=ND(qA),qA.defaults=OA;var TA=qA;function _A(e,t){return t.includes(e.code)}var jA,NA,FA=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!KR(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!KR(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}}}}),zA=class extends hM{constructor(e,t){super(e),this.manager=e,this.options=t,DL(this,jA,new Set),DL(this,NA),this.listeners=new VM,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=FA.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=OE((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=kM(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&&(BA(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||!KR(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=qM(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=AR(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);PL(this,NA,(()=>{clearTimeout(n),PL(this,NA,void 0)}))}}else this.handleStart(t,e);const s=_M(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:$A,options:{capture:!0}}]);IL(this,jA).add((()=>{var e;l(),null==(e=IL(this,NA))||e.call(this),this.initialCoordinates=void 0}))}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=AR(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 CR.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&&rD(o,a.tolerance))return this.handleCancel(e);if(rD(o,a.value))return this.handleStart(t,e)}return s&&rD(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=IL(this,NA))||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=_M(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:$A,options:{passive:!1}},{type:"click",listener:$A},{type:"contextmenu",listener:$A},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);IL(this,jA).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},IL(this,jA).forEach((e=>e())),IL(this,jA).clear()}destroy(){this.cleanup(),this.listeners.clear()}};jA=new WeakMap,NA=new WeakMap,zA.configure=ND(zA),zA.defaults=FA;var WA=zA;function $A(e){e.preventDefault()}function HA(){}var VA=new WeakSet;function BA(e){e&&!VA.has(e)&&(e.addEventListener("touchmove",HA,{capture:!1,passive:!1}),VA.add(e))}var GA,UA,YA,KA,XA,JA,ZA,QA,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk,ck={modifiers:[],plugins:[class extends zD{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=AL,announcement:o=kL}={},announcements:i=qL,screenReaderInstructions:a=OL,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:ZR(n),u=r?`${o}-${r}`:ZR(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>CR.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,_L.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),TL(r)&&!FM()||r.hasAttribute("tabindex")||b.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add((()=>r.setAttribute("role",RL))),r.hasAttribute("aria-roledescription")||b.add((()=>r.setAttribute("aria-roledescription",LL))),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&&CR.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach((e=>e()))}}},MA,class extends zD{constructor(e,t){super(e,t),this.manager=e;const r=CI((()=>{var e;return _M(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=OE((()=>{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()}}))}},dA,class extends zD{constructor(e,t){super(e,t),this.manager=e,this.destroy=OE((()=>{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),AA(),document.addEventListener("selectionchange",AA,{capture:!0}),()=>{document.removeEventListener("selectionchange",AA,{capture:!0}),e.remove()}}}))}}],sensors:[WA,TA]},dk=class extends bM{constructor(e={}){const{plugins:t=ck.plugins,sensors:r=ck.sensors,modifiers:n=[]}=e;super(fL(pL({},e),{plugins:[LA,EA,...t],sensors:r,modifiers:n}))}},pk=class extends(KA=UP,YA=[II],UA=[II],GA=[II],KA){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=mL(r,["element","effects","handle","feedback"]);super(pL({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(FD))?t:[...r.sensors]).map((e=>{const t=e instanceof hM?e:r.registry.register(e.plugin),n=e instanceof hM?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),DL(this,JA,SL(XA,8,this)),SL(XA,11,this),DL(this,ZA,SL(XA,12,this)),SL(XA,15,this),DL(this,QA,SL(XA,16,this)),SL(XA,19,this),this.element=n,this.handle=i,this.feedback=a}};XA=gL(KA),JA=new WeakMap,ZA=new WeakMap,QA=new WeakMap,wL(XA,4,"handle",YA,pk,JA),wL(XA,4,"element",UA,pk,ZA),wL(XA,4,"feedback",GA,pk,QA),xL(XA,pk);var fk=class extends(rk=YP,tk=[II],ek=[II],rk){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=mL(r,["element","effects"]);const{collisionDetector:a=QR}=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 GR(r),o=gE((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=CE(!1);super(fL(pL({},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 gR(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),DL(this,lk),DL(this,ok,SL(nk,8,this)),SL(nk,11,this),DL(this,uk,SL(nk,12,this)),SL(nk,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){PL(this,lk,e,sk)}get element(){var e;return null!=(e=this.proxy)?e:IL(this,lk,ak)}};function hk(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}nk=gL(rk),ok=new WeakMap,lk=new WeakSet,uk=new WeakMap,ik=wL(nk,20,"#element",tk,lk,ok),ak=ik.get,sk=ik.set,wL(nk,4,"proxy",ek,fk,uk),xL(nk,fk);var mk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:p;function gk(e,t){const r=u(new Map),n=function(){const e=v(0)[1];return h((()=>{e((e=>e+1))}),[e])}();return mk((()=>{if(e)return OE((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=gE((()=>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 vk(e,t){e()}function yk(e){const t=u(e);return mk((()=>{t.current=e}),[e]),t}function bk(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 xk(e,t){const r=u(hk(e));mk((()=>{const n=hk(e);n!==r.current&&(r.current=n,t(n))}))}var Sk=Object.defineProperty,wk=Object.defineProperties,Ck=Object.getOwnPropertyDescriptors,Ek=Object.getOwnPropertySymbols,Ik=Object.prototype.hasOwnProperty,Dk=Object.prototype.propertyIsEnumerable,Pk=(e,t,r)=>t in e?Sk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mk=new dk,Rk=c(Mk),Lk=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 mk((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),S(t,(()=>a)),null}))),Ak=[void 0,EI];function kk(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)Ik.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ek)for(var n of Ek(e))t.indexOf(n)<0&&Dk.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=yk(i),w=yk(a),C=yk(l),E=yk(s),I=yk(c),D=yk(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 dk(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]),bk(g,(()=>h&&(h.plugins=null!=g?g:ck.plugins)),...Ak),bk(x,(()=>h&&(h.sensors=null!=x?x:ck.sensors)),...Ak),bk(b,(()=>h&&(h.modifiers=null!=b?b:ck.modifiers)),...Ak),Jo.jsxs(Rk.Provider,{value:h,children:[Jo.jsx(Lk,{ref:f,children:n}),n]})}function Ok(e){var t;const r=null!=(t=n(Rk))?t:void 0,[o]=v((()=>e(r)));return o.manager!==r&&(o.manager=r),mk(o.register,[r,o]),o}var qk,Tk,_k,jk,Nk,Fk=Object.create,zk=Object.defineProperty,Wk=Object.getOwnPropertyDescriptor,$k=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Hk=e=>{throw TypeError(e)},Vk=["class","method","getter","setter","accessor","field","value","get","set"],Bk=e=>void 0!==e&&"function"!=typeof e?Hk("Function expected"):e,Gk=(e,t,r,n,o)=>({kind:Vk[e],name:t,metadata:n,addInitializer:e=>r._?Hk("Already initialized"):o.push(Bk(e||null))}),Uk=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Vk[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Wk(o,r)),h=n.length-1;h>=0;h--)(l=Gk(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,Bk(a)&&(f[d]=a);return f&&zk(o,r,f),o},Yk=(e,t,r)=>t.has(e)||Hk("Cannot "+r),Kk=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)}},Xk=class extends(_k=LI,Tk=[DI],qk=[DI],_k){constructor(e){var t,r,n;super(Kk.from(e),((e,t)=>Kk.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)})(Nk,5,this),t=this,n=0,(r=jk).has(t)?Hk("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 Kk.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=Kk.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Yk(a=this,s=jk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);hE((()=>{((e,t,r)=>{Yk(e,t,"write to private field"),t.set(e,r)})(this,jk,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Kk.from(e)),this.velocity={x:0,y:0}}};Nk=(e=>{var t;return[,,,Fk(null!=(t=null==e?void 0:e[$k("metadata")])?t:null)]})(_k),jk=new WeakMap,Uk(Nk,2,"delta",Tk,Xk),Uk(Nk,2,"direction",qk,Xk),((e,t)=>{((e,t,r)=>{t in e?zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,$k("metadata"),e[3])})(Nk,Xk);var Jk=(e=>(e.Horizontal="x",e.Vertical="y",e))(Jk||{});Object.values(Jk);var Zk=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/Kk.distance(t.shape.center,r),type:uP.PointerIntersection,priority:lP.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=Kk.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:uP.ShapeIntersection,priority:lP.Normal}}return null})(e)};function Qk(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=Ok((t=>new fk(((e,t)=>wk(e,Ck(t)))(((e,t)=>{for(var r in t||(t={}))Ik.call(t,r)&&Pk(e,r,t[r]);if(Ek)for(var r of Ek(t))Dk.call(t,r)&&Pk(e,r,t[r]);return e})({},e),{register:!1,element:hk(o)}),t))),u=gk(l);return bk(i,(()=>l.id=i)),xk(o,(e=>l.element=e)),bk(a,(()=>l.accept=a),void 0,EI),bk(t,(()=>l.collisionDetector=null!=t?t:Zk)),bk(r,(()=>r&&(l.data=r))),bk(n,(()=>l.disabled=!0===n)),bk(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 eO=e=>Array.from({length:e},((e,t)=>t)),tO=({title:e,message:t})=>Jo.jsxs(Bu,{sx:{padding:2,display:"flex",flexDirection:"column",alignItems:"center"},children:[Jo.jsx(su,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"bold",fontSize:14},children:e}),Jo.jsx(su,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:12},children:t})]}),rO=({id:e,sectionIndex:t})=>{const r=ZC(uE);return void 0===r?null:Jo.jsx(r,{id:e,sectionIndex:t})};var nO=Object.create,oO=Object.defineProperty,iO=Object.defineProperties,aO=Object.getOwnPropertyDescriptor,sO=Object.getOwnPropertyDescriptors,lO=Object.getOwnPropertySymbols,uO=Object.prototype.hasOwnProperty,cO=Object.prototype.propertyIsEnumerable,dO=e=>{throw TypeError(e)},pO=(e,t,r)=>t in e?oO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fO=["class","method","getter","setter","accessor","field","value","get","set"],hO=e=>void 0!==e&&"function"!=typeof e?dO("Function expected"):e,mO=(e,t,r,n,o)=>({kind:fO[e],name:t,metadata:n,addInitializer:e=>r._?dO("Already initialized"):o.push(hO(e||null))}),gO=(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},vO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=fO[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,aO({get[r](){return bO(this,i)},set[r](e){return SO(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=mO(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?hO(s)&&(g[f]=s):"object"!=typeof s||null===s?dO("Object expected"):(hO(a=s.get)&&(g.get=a),hO(a=s.set)&&(g.set=a),hO(a=s.init)&&h.unshift(a));return g&&oO(o,r,g),o},yO=(e,t,r)=>t.has(e)||dO("Cannot "+r),bO=(e,t,r)=>(yO(e,t,"read from private field"),t.get(e)),xO=(e,t,r)=>t.has(e)?dO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),SO=(e,t,r,n)=>(yO(e,t,"write to private field"),t.set(e,r),r);function wO(e){return e instanceof JO||e instanceof XO}var CO=Object.defineProperty,EO=Object.defineProperties,IO=Object.getOwnPropertyDescriptors,DO=Object.getOwnPropertySymbols,PO=Object.prototype.hasOwnProperty,MO=Object.prototype.propertyIsEnumerable,RO=(e,t,r)=>t in e?CO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LO=(e,t)=>{for(var r in t||(t={}))PO.call(t,r)&&RO(e,r,t[r]);if(DO)for(var r of DO(t))MO.call(t,r)&&RO(e,r,t[r]);return e},AO=(e,t)=>EO(e,IO(t));function kO(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function OO(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 AO(LO({},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 AO(LO({},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,kO)}var qO="__default__";function TO(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function _O(e,t){return e.index-t.index}function jO(e){return Array.from(e).sort(_O)}var NO,FO,zO,WO,$O,HO,VO,BO,GO=[class extends zD{constructor(e){super(e);const t=OE((()=>{const{dragOperation:t}=e;if(XR(t.activatorEvent)&&wO(t.source)&&t.status.initialized){const t=e.registry.plugins.get(EA);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(!XR(e.nativeEvent))return;if(!wO(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=[];hE((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&wO(e)||!e.element)continue;let r=e.shape;const n=new GR(e.element,{getBoundingClientRect:e=>NM(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,eL);hE((()=>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||!wO(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;FR(c);const d=new GR(c);if(!d)return;const p=QI.delta(d,QI.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 zD{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof JO){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(jO(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!wO(o)||!wO(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=jO(l),g=s?m:jO(u),v=null!=(c=o.sortable.group)?c:qO,y=null!=(d=i.sortable.group)?d:qO,b={[v]:m,[y]:g},x=OO(b,e);if(b===x)return;const S=x[y].indexOf(o.sortable),w=x[y].indexOf(i.sortable);r.collisionObserver.disable(),TO(f,S,h,w),hE((()=>{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;wO(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=jO(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(TO(r,i.index,a,o.index),hE((()=>{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()}}}],UO={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},YO=new class{constructor(){xI(this,RI,new WeakMap)}get(e,t){var r;return e?null==(r=bI(this,RI).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return bI(this,RI).has(e)||bI(this,RI).set(e,new Map),null==(n=bI(this,RI).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=bI(this,RI).get(e))?void 0:t.clear():void 0}};FO=[II],NO=[II];var KO=class{constructor(e,t){xO(this,WO,gO(zO,8,this)),gO(zO,11,this),xO(this,$O),xO(this,HO),xO(this,VO,gO(zO,12,this)),gO(zO,15,this),xO(this,BO),this.register=()=>(hE((()=>{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=()=>{hE((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{hE((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=UO,plugins:u=GO}=r,c=((e,t)=>{var r={};for(var n in e)uO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lO)for(var n of lO(e))t.indexOf(n)<0&&cO.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new JO(c,t,this),this.draggable=new XO(((e,t)=>iO(e,sO(t)))(((e,t)=>{for(var r in t||(t={}))uO.call(t,r)&&pO(e,r,t[r]);if(lO)for(var r of lO(t))cO.call(t,r)&&pO(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)&&YO.clear(this.manager),(null==n?void 0:n.dragging)&&YO.set(this.manager,this.id,gE((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=bO(this,HO),o=bO(this,$O);e===n&&t===o||(SO(this,HO,e),SO(this,$O,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),SO(this,BO,c.element),this.manager=t,this.index=i,SO(this,HO,i),this.group=o,SO(this,$O,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=YO.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=YO.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){gE((()=>{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}=PR(n),l=WR(n,s,!1),u=WR(n,s);(i||a)&&zR({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){hE((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){hE((()=>{const t=bO(this,BO),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),SO(this,BO,e)}))}get element(){var e,t;const r=bO(this,BO);if(r)return null!=(t=null!=(e=HM.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){hE((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){hE((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){hE((()=>{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:QR}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){hE((()=>{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)}};zO=[,,,nO(null)],WO=new WeakMap,$O=new WeakMap,HO=new WeakMap,VO=new WeakMap,BO=new WeakMap,vO(zO,4,"index",FO,KO,WO),vO(zO,4,"group",NO,KO,VO),((e,t)=>{return pO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(zO,KO);var XO=class extends pk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},JO=class extends fk{constructor(e,t,r){super(e,t),this.sortable=r}},ZO=Object.defineProperty,QO=Object.defineProperties,eq=Object.getOwnPropertyDescriptors,tq=Object.getOwnPropertySymbols,rq=Object.prototype.hasOwnProperty,nq=Object.prototype.propertyIsEnumerable,oq=(e,t,r)=>t in e?ZO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iq=(e,t)=>{for(var r in t||(t={}))rq.call(t,r)&&oq(e,r,t[r]);if(tq)for(var r of tq(t))nq.call(t,r)&&oq(e,r,t[r]);return e};function aq(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=iq(iq({},UO),e.transition),y=Ok((t=>new KO(((e,t)=>QO(e,eq(t)))(iq({},e),{transition:v,register:!1,handle:hk(s),element:hk(a),target:hk(m),feedback:d}),t))),b=gk(y,sq);return bk(o,(()=>y.id=o)),mk((()=>{hE((()=>{y.group=u,y.index=l}))}),[y,u,l]),bk(g,(()=>y.type=g)),bk(t,(()=>y.accept=t),void 0,EI),bk(i,(()=>i&&(y.data=i))),bk(l,(()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()}),vk),xk(s,(e=>y.handle=e)),xk(a,(e=>y.element=e)),xk(m,(e=>y.target=e)),bk(c,(()=>y.disabled=!0===c)),bk(f,(()=>y.sensors=f)),bk(r,(()=>y.collisionDetector=r)),bk(n,(()=>y.collisionPriority=n)),bk(d,(()=>y.feedback=null!=d?d:"default")),bk(v,(()=>y.transition=v),void 0,EI),bk(p,(()=>y.modifiers=p),void 0,EI),bk(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 sq(e,t,r){return!("isDragSource"!==e||r||!t)}const lq=({id:e,itemIndex:t,sectionIndex:r})=>Jo.jsx("div",{children:`${r}:${t} - ${e}`}),uq=({id:e,itemIndex:t,sectionIndex:r})=>{const n=ZC(cE),o=ZC(lE),i=ZC(iE)({sectionIndex:r}),{ref:a,isDragging:s}=aq({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??lq;return Jo.jsx(Md,{"data-testid":"section-item",onClick:l,ref:a,"data-dragging":s,sx:{padding:0},children:Jo.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},cq=({sectionIndex:e})=>{const t=ZC(iE),r=ZC(oE),n=ZC(aE),o=t({sectionIndex:e}),i=n(e),{ref:a}=Qk({id:o,type:"column",accept:"item",collisionPriority:lP.Low});return Jo.jsx(Bu,{ref:a,style:{overflow:"auto"},children:Jo.jsxs(gd,{children:[Jo.jsx(Fc,{}),Jo.jsx(rO,{id:o,sectionIndex:e}),Jo.jsx(Fc,{}),i?Jo.jsx(tO,{title:i.title,message:i.message}):null,eO(r(e)).map((r=>{const n=t({sectionIndex:e,itemIndex:r});return Jo.jsx(uq,{id:n,itemIndex:r,sectionIndex:e},n)}))]})})},dq=()=>{const e=ZC(nE),t=ZC(iE),r=ZC(sE);return Jo.jsx(kk,{onDragOver:e=>{r?.(e)},children:Jo.jsx(Bu,{style:{display:"flex",flexDirection:"column"},children:eO(e).map((e=>Jo.jsx(cq,{sectionIndex:e},t({sectionIndex:e}))))})})},pq=e=>Jo.jsx(GC,{children:Jo.jsx(dE,{props:e,children:Jo.jsx(dq,{})})}),fq="12px",hq="nebula-table-utils-head-menu-button",mq="sn-copy-cell",gq="PSEUDO-DIM";let vq=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 yq="nebula-table-utils-column-adjuster";let bq=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}({}),xq=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Sq={darker:.15,brighter:.3,opacity:.03},wq={darker:.3,brighter:.5,opacity:.05};let Cq=function(e){return e.Cyclic="C",e}({});const Eq=(e,t=new Set)=>lw((r=>{const n=r(e),o=r(sC);if(!n||0===n.length)return"disabled";const i=n.filter((e=>!t.has(e.id)));if(0===i.length)return"disabled";const a=i.filter((e=>o.has(e.id))).length;return 0===a?"none":a===i.length?"all":"some"})),Iq=(e,t=new Set)=>lw(null,((r,n,o)=>{const i=r(e);i&&0!==i.length&&(e=>{const{items:t,shouldCheckAll:r,get:n,set:o,excludedIds:i}=e,a=t.filter((e=>!i?.has(e.id)));if(0===a.length)return;const s=n(sC),l=new Set,u=new Set;if(a.forEach((e=>{const t=s.has(e.id);t&&!r&&u.add(e.id),!t&&r&&l.add(e.id)})),0!==l.size||0!==u.size){if(l.size>0){const e=new Set(n(nC));l.forEach((t=>e.add(t))),o(nC,e)}if(u.size>0){const e=new Set(n(oC));u.forEach((t=>e.add(t))),o(oC,e)}jw({type:"apply",localChecked:l,localUnchecked:u,handler:n(Fw),model:n(Nw),fieldInfo:n(tC)})}})({items:i,shouldCheckAll:o,get:r,set:n,excludedIds:t})})),Dq=lw((e=>{const t=e(Jw);return t?.qHyperCube.qDimensionInfo.filter(Vw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),Pq=lw((e=>e(Xw)?.qHyperCube.excludedNoOfLeftDims??-1)),Mq=lw((e=>{const t=e(Xw),r=e(Ww),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map((e=>{if(-1===e)return{id:gq,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}}));return n})),Rq=lw((e=>{const t=e(Xw),r=e(Ww),n=e(Mq),o=e(Dq),i=e(Pq),a=e(Hw);if(void 0===t||void 0===n||void 0===o)return[];const s=-1===t.qHyperCube.qNoOfLeftDims,l=-1===i,u=s?n:n.slice(0,t.qHyperCube.qNoOfLeftDims),c=s?[]:n.slice(t.qHyperCube.qNoOfLeftDims),d=l?o:o.slice(0,i),p=l?[]:o.slice(i);return[{id:"rows",title:r("Common.Rows"),items:[...u,...d].filter(a)},{id:"columns",title:r("Common.Columns"),items:[...c,...p].filter(a)}]})),Lq=Cw((e=>lw((t=>t(Rq).at(e))))),Aq=Cw((({sectionIndex:e,itemIndex:t})=>lw((r=>r(Lq(e))?.items.at(t)?.title))),((e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex)),kq=Cw((e=>lw((t=>t(Lq(e))?.title)))),Oq=lw((e=>({sectionIndex:t,itemIndex:r})=>{const n=e(Lq(t)),o=0===t?"rows":"columns";return void 0===n?o:void 0!==r?n.items.at(r)?.id??o:n.id})),qq=lw((e=>t=>{const r=e(Lq(t));return r?.items.length??0})),Tq=Cw((e=>Eq(lw((t=>t(Lq(e))?.items)),new Set([gq])))),_q=Cw((e=>Iq(lw((t=>t(Lq(e))?.items)),new Set([gq])))),jq=lw((e=>{const t=e(Jw);return t?.qHyperCube.qMeasureInfo.filter(Vw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),Nq=lw((e=>{const t=e(Xw),r=e(jq),n=e(Hw);if(void 0===t||void 0===r)return[];const o=t.qHyperCube.qMeasureInfo.filter(Vw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})));return o.push(...r),o.filter(n)})),Fq=Cw((e=>lw((t=>t(Nq)[e].title)))),zq=lw((e=>({itemIndex:t})=>{const r=e(Nq);return void 0!==t?r[t].id:"measures"})),Wq=lw((e=>()=>e(Nq).length)),$q=Eq(Nq),Hq=Iq(Nq),Vq=(e,t,r,n)=>{if("measure"===t)return e(n?kw.noSearchFound.measure:kw.noItems.measure);const o=n?kw.noSearchFound:kw.noItems;return e(r?o.row:o.column)},Bq=(e,t,r)=>r?"":e("measure"===t?qw:Ow),Gq=Cw((e=>lw((t=>{const r=t(Ww);return n=>{const o="measure"===e?t(Wq)():t(qq)(n??0),i=0===n,a=t($w).length>0;if(!(o>0))return{title:Vq(r,e,i,a),message:Bq(r,e,a)}}})))),Uq=Gq("measure"),Yq=Gq("dimensions"),Kq=({children:e})=>Jo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),Xq=({children:e,sectionIndex:t})=>{const r=xw(void 0!==t?Tq(t):$q),n=Sw(void 0!==t?_q(t):Hq);return Jo.jsxs(Bu,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[Jo.jsx(vc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{n(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),Jo.jsx(Kq,{children:e})]})},Jq=({sectionIndex:e})=>{const t=xw(kq(e));return Jo.jsx(Xq,{sectionIndex:e,children:t})},Zq=x(((e,t)=>Jo.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:Jo.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"})}))),Qq=x(((e,t)=>Jo.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:Jo.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"})}))),eT=({children:e})=>Jo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),tT=({icon:e,title:t,...r})=>{const[n,o]=ww(sC),i=xw(Ww);return Jo.jsxs(Bu,{onClick:e=>{e.stopPropagation(),o(r.id)},style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 24px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"}},children:[Jo.jsx(vc,{checked:n.has(r.id),"aria-label":i("ChartExploration.ListItem.Label",t),size:"small",style:{padding:9,flexShrink:0,visibility:r.id===gq?"hidden":"visible"}}),Jo.jsx(e,{height:"12px",style:{flexShrink:0}}),Jo.jsx(eT,{children:t}),Jo.jsx(Qq,{height:"16px",style:{flexShrink:0,cursor:"grab"}})]})},rT=e=>{const t=xw(Aq(e))??"";return Jo.jsx(tT,{title:t,icon:Zq,...e})},nT=()=>{const e=xw(Oq),t=xw(qq),r=xw(Yq);return Jo.jsxs(pq,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,children:[Jq,rT]})},oT=()=>{const e=xw(Ww);return Jo.jsx(Xq,{children:e("Common.Values")})},iT=x(((e,t)=>Jo.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:Jo.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"})}))),aT=e=>{const{itemIndex:t}=e,r=xw(Fq(t));return Jo.jsx(tT,{title:r,icon:iT,...e})},sT=()=>{const e=xw(zq),t=xw(Wq),r=xw(Uq);return Jo.jsx(Bu,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:Jo.jsxs(pq,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,children:[oT,aT]})})},lT=x(((e,t)=>Jo.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:Jo.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"})}))),uT=il("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),cT=()=>{const[e,t]=ww($w),r=xw(Ww),n=xw(Nq),o=xw(qq),i=h((e=>{t(e.target.value)}),[t]),a=o(0),s=o(1),l=n.length,u=0===e.length||0===a&&0===s&&0===l?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),l.toString());return Jo.jsxs(Bu,{style:{paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[Jo.jsx(uT,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),Jo.jsx(Mp,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:i,startAdornment:Jo.jsx(od,{position:"start",children:Jo.jsx(lT,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},dT=e=>{const t=((e="light",t=!1)=>ws(bf(e,t)))();return Jo.jsx(sl,{theme:t,children:Jo.jsx(hw,{children:Jo.jsx(lC,{props:e,children:Jo.jsxs(Bu,{style:{display:"flex",flexDirection:"column"},children:[Jo.jsx(cT,{}),Jo.jsx(nT,{}),Jo.jsx(sT,{})]})})})})},pT=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:dT,classification:{tags:["exploration"],exclusive:!0}}};var fT={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:()=>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={},P=Array.isArray;function M(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(M(e)&&M(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(P(e)&&P(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}):M(i)&&M(a)?n=n.concat(D.generate(a,i,s)):P(i)&&P(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(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(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(M(a)&&M(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);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(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 O=D,q=function(e,r,n){if(!e)return Promise.resolve();var o=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 _(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=_(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(T))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",Pe={initBase:function(e,t){(t||Pe.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){Pe.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 Me=Pe;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:Oe,applyModifiers:qe,cleanUpMeasure:Te,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:Me.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 Oe(){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 qe({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}),qe({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 Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function qe(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 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;Me.isValid(r)||Me.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)):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"===Re(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.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:!Me.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):q(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 Oe({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 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}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}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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=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)}},_=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 P(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 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.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 M(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 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.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,P=void 0===D?O():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}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),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 M=i.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:M}),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",Pe="conditionalColoring",Me="measures",Re="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Pe,arrayName:Me,itemPath:Re})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Re,arrayName:Me,quarantineName:Pe})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="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:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,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})()}(fT);var hT=Te(fT.exports);const mT="qHyperCubeDef.qMeasures",gT="measures",vT="qHyperCubeDef.qDimensions",yT="dimensions",bT="qDef.representation",xT="tableRepresentation",ST="qDef.conditionalColoring",wT="conditionalColoring",CT="qMiniChartDef",ET="miniChartDef",IT=e=>{hT.unquarantineArrayProp({properties:e,arrayPath:vT,itemPath:bT,arrayName:yT,quarantineName:xT}),hT.unquarantineArrayProp({properties:e,arrayPath:mT,itemPath:bT,arrayName:gT,quarantineName:xT}),hT.unquarantineArrayProp({properties:e,arrayPath:mT,itemPath:ST,arrayName:gT,quarantineName:wT}),hT.unquarantineArrayProp({properties:e,arrayPath:mT,itemPath:CT,arrayName:gT,quarantineName:ET})},DT=e=>{hT.quarantineArrayProp({properties:e,arrayPath:vT,itemPath:bT,arrayName:yT,quarantineName:xT}),hT.quarantineArrayProp({properties:e,arrayPath:mT,itemPath:bT,arrayName:gT,quarantineName:xT}),hT.quarantineArrayProp({properties:e,arrayPath:mT,itemPath:ST,arrayName:gT,quarantineName:wT}),hT.quarantineArrayProp({properties:e,arrayPath:mT,itemPath:CT,arrayName:gT,quarantineName:ET})};function PT(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 MT(e){if("object"==typeof e&&PT(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 RT={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 LT(...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(PT(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 RT}(e)){const t=RT[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 AT(e){let t,r,n;if(PT(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?MT(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 kT(e){let t,r,n=0;const o="string"==typeof e?LT(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 OT(e){let t,r,n=0;const o="string"==typeof e?LT(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 qT(e){if(PT(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?MT(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function TT(e,t){return PT(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:TT(LT(e))}function _T(e){return PT(e)?1===e.a?qT(e):TT(e):_T(LT(e))}const jT=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function NT(e){return.2126*jT(e.r)+.7152*jT(e.g)+.0722*jT(e.b)}function FT(...e){const t=LT(...e);return t.invalid||NT(t)<.4}function zT(...e){const t=LT(...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=kT(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=LT(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:()=>FT(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=qT(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=TT(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=_T(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=AT(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?LT(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}=kT(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}=OT(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=OT(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)=>zT(o(18*e)),getDarkenedColor:(e=1)=>zT(o(18*-e))}}function WT(e,t){if(!e||!t)return;const r=NT(e),n=NT(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function $T(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 HT,VT="top",BT="top-right",GT="right",UT="bottom-right",YT="bottom",KT="bottom-left",XT="left",JT="top-left";$T($T($T($T($T($T($T($T($T($T(HT={},"equal-equal",[VT,YT]),"equal-higher",[YT,UT]),"equal-lower",[VT,BT]),"equal-void",[VT,YT]),"higher-equal",[XT,KT,VT,BT]),"higher-higher-acute",[YT,KT,XT,BT]),"higher-higher-obtuse",[YT,VT]),"higher-lower-negative",[VT,BT,GT]),"higher-lower-positive",[YT,KT,XT]),"higher-void",[VT]),$T($T($T($T($T($T($T($T($T($T(HT,"lower-equal",[VT]),"lower-higher-negative",[VT,JT]),"lower-higher-positive",[UT]),"lower-lower-acute",[VT,JT,XT,BT,GT]),"lower-lower-obtuse",[VT,YT]),"lower-void",[VT]),"void-equal",[VT]),"void-higher",[VT,YT]),"void-lower",[VT,YT,XT]),"void-void",[VT]),$T(HT,"unclassified",[VT,YT,GT,XT,BT,UT,KT,JT]);var ZT,QT,e_=["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"],t_=["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 r_(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?t_:e_}var n_=function(){if(QT)return ZT;QT=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 ZT=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},ZT}();function o_(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function a_(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(n_);var s_=1/.7,l_="\\s*([+-]?\\d+)\\s*",u_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d_=/^#([0-9a-f]{3,8})$/,p_=new RegExp(`^rgb\\(${l_},${l_},${l_}\\)$`),f_=new RegExp(`^rgb\\(${c_},${c_},${c_}\\)$`),h_=new RegExp(`^rgba\\(${l_},${l_},${l_},${u_}\\)$`),m_=new RegExp(`^rgba\\(${c_},${c_},${c_},${u_}\\)$`),g_=new RegExp(`^hsl\\(${u_},${c_},${c_}\\)$`),v_=new RegExp(`^hsla\\(${u_},${c_},${c_},${u_}\\)$`),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 b_(){return this.rgb().formatHex()}function x_(){return this.rgb().formatRgb()}function S_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=d_.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w_(t):3===r?new D_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?C_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?C_(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=p_.exec(e))?new D_(t[1],t[2],t[3],1):(t=f_.exec(e))?new D_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h_.exec(e))?C_(t[1],t[2],t[3],t[4]):(t=m_.exec(e))?C_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g_.exec(e))?k_(t[1],t[2]/100,t[3]/100,1):(t=v_.exec(e))?k_(t[1],t[2]/100,t[3]/100,t[4]):y_.hasOwnProperty(e)?w_(y_[e]):"transparent"===e?new D_(NaN,NaN,NaN,0):null}function w_(e){return new D_(e>>16&255,e>>8&255,255&e,1)}function C_(e,t,r,n){return n<=0&&(e=t=r=NaN),new D_(e,t,r,n)}function E_(e){return e instanceof a_||(e=S_(e)),e?new D_((e=e.rgb()).r,e.g,e.b,e.opacity):new D_}function I_(e,t,r,n){return 1===arguments.length?E_(e):new D_(e,t,r,null==n?1:n)}function D_(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function P_(){return`#${A_(this.r)}${A_(this.g)}${A_(this.b)}`}function M_(){const e=R_(this.opacity);return`${1===e?"rgb(":"rgba("}${L_(this.r)}, ${L_(this.g)}, ${L_(this.b)}${1===e?")":`, ${e})`}`}function R_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function L_(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function A_(e){return((e=L_(e))<16?"0":"")+e.toString(16)}function k_(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new q_(e,t,r,n)}function O_(e){if(e instanceof q_)return new q_(e.h,e.s,e.l,e.opacity);if(e instanceof a_||(e=S_(e)),!e)return new q_;if(e instanceof q_)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 q_(a,s,l,e.opacity)}function q_(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function T_(e){return(e=(e||0)%360)<0?e+360:e}function __(e){return Math.max(0,Math.min(1,e||0))}function j_(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_(a_,S_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:b_,formatHex:b_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return O_(this).formatHsl()},formatRgb:x_,toString:x_}),o_(D_,I_,i_(a_,{brighter(e){return e=null==e?s_:Math.pow(s_,e),new D_(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new D_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new D_(L_(this.r),L_(this.g),L_(this.b),R_(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:P_,formatHex:P_,formatHex8:function(){return`#${A_(this.r)}${A_(this.g)}${A_(this.b)}${A_(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:M_,toString:M_})),o_(q_,(function(e,t,r,n){return 1===arguments.length?O_(e):new q_(e,t,r,null==n?1:n)}),i_(a_,{brighter(e){return e=null==e?s_:Math.pow(s_,e),new q_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new q_(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 D_(j_(e>=240?e-240:e+120,o,n),j_(e,o,n),j_(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new q_(T_(this.h),__(this.s),__(this.l),R_(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=R_(this.opacity);return`${1===e?"hsl(":"hsla("}${T_(this.h)}, ${100*__(this.s)}%, ${100*__(this.l)}%${1===e?")":`, ${e})`}`}}));const N_=Math.PI/180,F_=180/Math.PI,z_=4/29,W_=6/29,$_=3*W_*W_;function H_(e){if(e instanceof V_)return new V_(e.l,e.a,e.b,e.opacity);if(e instanceof K_)return X_(e);e instanceof D_||(e=E_(e));var t,r,n=Y_(e.r),o=Y_(e.g),i=Y_(e.b),a=B_((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=B_((.4360747*n+.3850649*o+.1430804*i)/.96422),r=B_((.0139322*n+.0971045*o+.7141733*i)/.82521)),new V_(116*a-16,500*(t-a),200*(a-r),e.opacity)}function V_(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function B_(e){return e>.008856451679035631?Math.pow(e,1/3):e/$_+z_}function G_(e){return e>W_?e*e*e:$_*(e-z_)}function U_(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Y_(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function K_(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function X_(e){if(isNaN(e.h))return new V_(e.l,0,0,e.opacity);var t=e.h*N_;return new V_(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}o_(V_,(function(e,t,r,n){return 1===arguments.length?H_(e):new V_(e,t,r,null==n?1:n)}),i_(a_,{brighter(e){return new V_(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new V_(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 D_(U_(3.1338561*(t=.96422*G_(t))-1.6168667*(e=1*G_(e))-.4906146*(r=.82521*G_(r))),U_(-.9787684*t+1.9161415*e+.033454*r),U_(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),o_(K_,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof K_)return new K_(e.h,e.c,e.l,e.opacity);if(e instanceof V_||(e=H_(e)),0===e.a&&0===e.b)return new K_(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*F_;return new K_(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new K_(e,t,r,null==n?1:n)}),i_(a_,{brighter(e){return new K_(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new K_(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return X_(this).rgb()}}));var J_=e=>()=>e;function Z_(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):J_(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Z_: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):J_(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=I_(e)).r,(t=I_(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Z_(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 Q_="center",ej="bottom";[{key:"NoDataExist",alignment:Q_,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:Q_,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:Q_,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:Q_},{key:"DataRangeIncludingZero",alignment:ej},{key:"LimitedData",alignment:ej},{key:"NegativeOrZeroValues",alignment:ej}].reduce((function(e,t){return e[t.key]=t,e}),{});var tj,rj=["__proto__","constructor"];function nj(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!rj.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 oj(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 ij(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 aj(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 sj(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=uj)):void 0===t&&(t=lj);for(var r,n,o,i,a,s=new pj(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 pj(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(dj)}function lj(e){return e.children}function uj(e){return Array.isArray(e)?e[1]:null}function cj(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function dj(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function pj(e){this.data=e,this.depth=this.height=0,this.parent=null}function fj(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")}}]}}pj.prototype=sj.prototype={constructor:pj,count:function(){return this.eachAfter(aj)},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 sj(this).eachBefore(cj)},[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)}},tj=function(e){
|
|
100
|
+
*/var cS,dS,pS={},fS={};function hS(){if(cS)return fS;cS=1;var e=ja;Object.defineProperty(fS,"__esModule",{value:!0}),fS.default=void 0;var t=(0,e(av()).default)();return fS.default=t,fS}var mS,gS,vS={},yS={};function bS(){if(gS)return vS;gS=1;var e=ja;Object.defineProperty(vS,"__esModule",{value:!0}),vS.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(Rs()),r=vh,n=function(){if(mS)return yS;mS=1;var e=ja;Object.defineProperty(yS,"__esModule",{value:!0}),yS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},yS.getUnit=r,yS.toUnitless=n,yS.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}},yS.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},yS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},yS.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(jh());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return yS}();return vS}var xS,SS={};var wS,CS={};var ES,IS={};var DS,PS={};!function(e){var t=ja,n=Df;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=Pf;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(av()),s=t(function(){if(sv)return lv;sv=1;var e=ja;Object.defineProperty(lv,"__esModule",{value:!0}),lv.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=vh,r=e(av());return lv}()),l=t(function(){if(aS)return uv;aS=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.default=function(t){return(0,e.createStyles)(t)};var e=uS;return uv}()),u=t(function(){if(dS)return pS;dS=1;var e=ja;Object.defineProperty(pS,"__esModule",{value:!0}),pS.default=void 0;var t=e(Rs()),r=uS,n=e(hS()),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 pS.default=o,pS}()),c=t(bS()),d=t(function(){if(xS)return SS;xS=1;var e=ja;Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=void 0;var t=e(Rs()),r=uS,n=e(hS()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return SS.default=o,SS}()),p=rv();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(wS)return CS;wS=1;var e=ja;Object.defineProperty(CS,"__esModule",{value:!0}),CS.default=function(){return(0,t.useTheme)()||n.default};var t=uS;e(r);var n=e(hS());return CS}()),h=t(function(){if(ES)return IS;ES=1;var e=ja;Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var t=e(Rs()),r=uS,n=e(hS()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return IS.default=o,IS}()),m=t(function(){if(DS)return PS;DS=1;var e=ja;Object.defineProperty(PS,"__esModule",{value:!0}),PS.default=void 0;var t=uS,r=e(hS()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return PS.default=n,PS}()),g=uS}(wf),wf.alpha(Yp.GREYSCALE_0,.05),wf.alpha(Yp.GREEN_PALE,.5),wf.alpha(Yp.BLUE_PALE,.5),wf.alpha(Yp.GREEN_PALE,.5),wf.alpha(Yp.BLUE_PALE,.5),wf.alpha(Yp.GREEN_PALE,.5),wf.alpha(Yp.BLUE_PALE,.5),wf.alpha(Yp.GREEN_PALE,.5),wf.alpha(Yp.BLUE_PALE,.5),wf.alpha(Yp.GREEN_PALE,.5),wf.alpha(Yp.BLUE_PALE,.5);const MS=(e="light",t=!1)=>xf(e,t);function RS(e,t){return e.unstable_is?e.unstable_is(t):t===e}function LS(e){return"init"in e}function AS(e){return!!e.write}function kS(e){return"v"in e||"e"in e}function OS(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 qS=new WeakMap;function TS(e){var t;return jS(e)&&!!(null==(t=qS.get(e))?void 0:t[0])}function _S(e,t){let r=qS.get(e);if(!r){r=[!0,new Set],qS.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function jS(e){return"function"==typeof(null==e?void 0:e.then)}function NS(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function FS(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 zS=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e,i=(t.has(o)?t:t.set(o,new Set)).get(o);return i.add(n),()=>{null==i||i.delete(n),i.size||t.delete(o)}},r};function WS(e){return e.c||(e.c=zS()),e.m||(e.m=zS()),e.u||(e.u=zS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const $S=(e,t,...r)=>t.read(...r),HS=(e,t,...r)=>t.write(...r),VS=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},BS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},GS=(e,r)=>{const n=aw(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},US=e=>{const t=aw(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)},YS=e=>{const r=aw(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 FS(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)}},KS=(e,r)=>{var n;const o=aw(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(kS(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)||AS(r)||console.warn("setSelf function cannot be used with read-only atom"),!y&&AS(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(RS(r,t)){const r=c(e,t);if(!kS(r)){if(!LS(t))throw new Error("no atom init");tw(e,t,t.init)}return OS(r)}const o=f(e,t);try{return OS(o)}finally{g.d.set(t,o.n),TS(g.v)&&NS(r,g.v,o),null==(n=i.get(t))||n.t.add(r),b||x()}}),S);return tw(e,r,t),jS(t)&&(_S(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))}},XS=(e,t)=>{const r=aw(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 FS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},JS=(e,t,...r)=>{const n=aw(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=>OS(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(RS(t,r)){if(!LS(r))throw new Error("atom not writable");const t=c.n,s=n[0];return tw(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 JS(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},ZS=(e,t)=>{var r;const n=aw(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&&!TS(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)}}},QS=(e,t)=>{var r;const n=aw(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()){QS(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),AS(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},ew=(e,t)=>{var r;const n=aw(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)}},tw=(e,t,r)=>{const n=aw(e)[11],o=n(e,t),i="v"in o,a=o.v;if(jS(r))for(const i of o.d.keys())NS(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,jS(a)&&function(e){const t=qS.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},rw=(e,t)=>OS((0,aw(e)[14])(e,t)),nw=(e,t,...r)=>{const n=aw(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},ow=(e,t,r)=>{const n=aw(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)}},iw=new WeakMap;function aw(e){const r=iw.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 sw,lw=0;function uw(e,r){const n="atom"+ ++lw,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=cw,o.write=dw),r&&(o.write=r),o}function cw(e){return e(this)}function dw(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function pw(){return function(...e){const t={get:e=>(0,aw(t)[21])(t,e),set:(e,...r)=>(0,aw(t)[22])(t,e,...r),sub:(e,r)=>(0,aw(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},$S,HS,VS,BS,GS,US,YS,KS,XS,JS,ZS,QS,ew,tw,rw,nw,ow].map(((t,r)=>e[r]||t));return iw.set(t,Object.freeze(r)),t}()}const fw=c(void 0);function hw(e){return n(fw)||(sw||(sw=pw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=sw),globalThis.__JOTAI_DEFAULT_STORE__!==sw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),sw)}function mw({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=pw()),o(fw.Provider,{value:t||r.current},e)}const gw=e=>"function"==typeof(null==e?void 0:e.then),vw=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},yw=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(vw(e),e)}),bw=new WeakMap,xw=(e,t)=>{let r=bw.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();gw(e)?(bw.set(e,r),i=e,e.then(a(e),s(e)),_S(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),_S(e,l)})),bw.set(e,r)),r};function Sw(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=hw(),[[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);gw(t)&&vw(xw(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),gw(c)){const t=xw(c,(()=>i.get(e)));return o&&vw(t),yw(t)}return c}function ww(e,r){const n=hw();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 Cw(e,t){return[Sw(e),ww(e)]}function Ew(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}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 Iw=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),Dw=new WeakMap,Pw=()=>{};const Mw=new WeakMap;const Rw=e=>{let t=Mw.get(e);return t||(t=new WeakSet,Mw.set(e,t)),t};function Lw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Aw(e){const t=uw((()=>[])),r=uw((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.unstable_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!kS(t)){if(!LS(o))throw new Error("no atom init");S(e,o,o.init)}return OS(t)}const i=v(e,o);try{return OS(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!LS(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),y(e,n)))}return b(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(Lw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=aw(e),d=c[1],p=c[3],f=WS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let r=kw.get(e);r||(r=new Set,kw.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},Lw()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const kw=new WeakMap;const Ow=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionToAlternative(n.def.qDef.cId):await t.moveMeasureToAlternative(n.def.qDef.cId))},qw=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionFromAlternative(n.def.qDef.cId):await t.moveMeasureFromAlternative(n.def.qDef.cId))},Tw=async e=>{const{type:t,handler:r,model:n,fieldInfo:o}=e;if(void 0!==r&&void 0!==n){switch(t){case"apply":for(const t of e.localChecked)await qw(o,r,t);for(const t of e.localUnchecked)await Ow(o,r,t);break;case"checked":await qw(o,r,e.cId);break;case"unchecked":await Ow(o,r,e.cId)}await n.applyPatches([{qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef),qPath:"/qHyperCubeDef"}],!0)}},_w=uw(),jw=uw(),Nw=uw(),Fw=uw((e=>e(Nw)?.translate??(e=>e))),zw=uw(""),Ww=uw((e=>{const t=e(zw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)})),$w=e=>7005!==e.qError?.qErrorCode,Hw=new WeakMap,Vw={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},Bw=function(e,r=Pw){return((e,t,r)=>{const n=Iw((()=>new WeakMap),Dw,t);return Iw(e,n,r)})((()=>{const n=new WeakMap,o=new WeakMap,i=uw(0);"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0);const a=uw(((t,{setSelf:s})=>{t(i);const l=t(a),u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{o.set(u,e),s()}),(e=>{n.set(u,e),s()})),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}}),((e,t)=>{t(i,(e=>e+1))}));return a.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(a.debugPrivate=!0),uw((e=>{const t=e(a);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,r)}(uw((async e=>{const t=e(_w);if(t){if(Hw.has(t))return Hw.get(t);try{const e=await t.app.createSessionObject(Vw);return Hw.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}}))),Gw=uw(),Uw=Aw(((e,t)=>{const r=e(_w),n=e(Bw);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const i=await n.getLayout();t(Gw,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)})};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}})),Yw=uw((e=>(e(Uw),e(Gw)?.layout))),Kw=uw((e=>e(Gw)?.altLayout)),Xw=uw((e=>e(Gw)?.properties)),Jw=uw((e=>{const t=e(Gw)?.layout;return t?.qHyperCube.qDimensionInfo.filter($w)??[]})),Zw=uw((e=>{const t=e(Gw)?.layout;return t?.qHyperCube.qMeasureInfo.filter($w)??[]})),Qw=uw((e=>{const t=e(Yw),r=e(Jw),n=e(Zw),o=e(Xw),i=new Map;return t&&o?(r.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"dimension",def:o.qHyperCubeDef.qDimensions[t]})})),n.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"measure",def:o.qHyperCubeDef.qMeasures[t]})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})})),i):i})),eC=uw((e=>{const t=[...e(Jw),...e(Zw)].map((e=>e.cId));return new Set(t)})),tC=uw(new Set),rC=uw(new Set),nC=uw((e=>{const t=e(tC),r=e(rC);return e(eC).difference(r).union(t)})),oC=Aw(((e,t)=>{e(eC),t(tC,new Set),t(rC,new Set)})),iC=uw((e=>e(nC)),((e,t,r)=>{const n=e(nC).has(r);if(n){const n=new Set(e(rC));n.add(r),t(rC,n)}else{const n=new Set(e(tC));n.add(r),t(tC,n)}Tw({type:n?"unchecked":"checked",cId:r,handler:e(jw),model:e(_w),fieldInfo:e(Qw)})})),aC=({props:e,children:t})=>(function(e){const t=hw(),r=Rw(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[_w,e.args.model],[Nw,e.args.apis],[jw,e.args.handler]]),Cw(oC),t);function sC(e){return"init"in e}function lC(e){return!!e.write}function uC(e){return"v"in e||"e"in e}function cC(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 dC=new WeakMap;function pC(e){var t;return hC(e)&&!!(null==(t=dC.get(e))?void 0:t[0])}function fC(e,t){let r=dC.get(e);if(!r){r=[!0,new Set],dC.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function hC(e){return"function"==typeof(null==e?void 0:e.then)}function mC(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function gC(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 vC=(e,t,...r)=>t.read(...r),yC=(e,t,...r)=>t.write(...r),bC=(e,t)=>{var r;return null==(r=t.unstable_onInit)?void 0:r.call(t,e)},xC=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},SC=(e,r)=>{const n=TC(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},wC=e=>{const t=TC(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)},CC=e=>{const r=TC(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 gC(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)}},EC=(e,r)=>{var n,o;const i=TC(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(uC(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)||lC(r)||console.warn("setSelf function cannot be used with read-only atom"),!b&&lC(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(!uC(r)){if(!sC(t))throw new Error("no atom init");LC(e,t,t.init)}return cC(r)}const o=h(e,t);try{return cC(o)}finally{v.d.set(t,o.n),pC(v.v)&&mC(r,v.v,o),null==(n=a.get(t))||n.t.add(r),x||S()}}),w);return LC(e,r,t),hC(t)&&(fC(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))}},IC=(e,t)=>{const r=TC(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 gC(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},DC=(e,t,...r)=>{const n=TC(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=>cC(c(e,t)),m=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!sC(r))throw new Error("atom not writable");const t=c.n,s=n[0];return LC(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 DC(e,r,...n)}finally{f||(u(e),l(e))}};try{return a(e,t,h,m,...r)}finally{f=!1}},PC=(e,t)=>{var r;const n=TC(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&&!pC(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)}}},MC=(e,t)=>{var r;const n=TC(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()){MC(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),lC(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},RC=(e,t)=>{var r;const n=TC(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)}},LC=(e,t,r)=>{const n=TC(e)[11],o=n(e,t),i="v"in o,a=o.v;if(hC(r))for(const i of o.d.keys())mC(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,hC(a)&&function(e){const t=dC.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},AC=(e,t)=>cC((0,TC(e)[14])(e,t)),kC=(e,t,...r)=>{const n=TC(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},OC=(e,t,r)=>{const n=TC(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)}},qC=new WeakMap,TC=e=>{const r=qC.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 _C,jC=0;function NC(e,r){const n="atom"+ ++jC,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=FC,o.write=zC),o}function FC(e){return e(this)}function zC(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function WC(){return function(...e){const t={get:e=>(0,TC(t)[21])(t,e),set:(e,...r)=>(0,TC(t)[22])(t,e,...r),sub:(e,r)=>(0,TC(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},vC,yC,bC,xC,SC,wC,CC,EC,IC,DC,PC,MC,RC,LC,AC,kC,OC,void 0].map(((t,r)=>e[r]||t));return qC.set(t,Object.freeze(r)),t}()}const $C=c(void 0);function HC(e){return n($C)||(_C||(_C=WC(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=_C),globalThis.__JOTAI_DEFAULT_STORE__!==_C&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),_C)}function VC({children:e,store:t}){const r=u(void 0);return t||r.current||(r.current=WC()),o($C.Provider,{value:t||r.current},e)}const BC=e=>"function"==typeof(null==e?void 0:e.then),GC=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},UC=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(GC(e),e)}),YC=new WeakMap,KC=(e,t)=>{let r=YC.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();BC(e)?(YC.set(e,r),i=e,e.then(a(e),s(e)),fC(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),fC(e,l)})),YC.set(e,r)),r};function XC(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=HC(),[[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);BC(t)&&GC(KC(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),f(c),BC(c)){const t=KC(c,(()=>i.get(e)));return o&&GC(t),UC(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 JC=new WeakMap;const ZC=e=>{let t=JC.get(e);return t||(t=new WeakSet,JC.set(e,t)),t},QC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,eE=NC(),tE=NC((e=>e(eE)?.numberOfSections??0)),rE=NC((e=>e(eE)?.numberOfItemsInSection??(()=>0))),nE=NC((e=>e(eE)?.keyExtractor??QC)),oE=NC((e=>e(eE)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."})))),iE=NC((e=>e(eE)?.onDragOver)),aE=NC((e=>{const t=e(eE)?.children;return Array.isArray(t)?t[1]:t})),sE=NC((e=>{const t=e(eE)?.children;if(Array.isArray(t))return t[0]})),lE=NC((e=>e(eE)?.onClick)),uE=({props:e,children:t})=>(function(e){const t=HC(),r=ZC(t);for(const[n,...o]of e)r.has(n)||(r.add(n),t.set(n,...o))}([[eE,e]]),t);var cE=Symbol.for("preact-signals");function dE(){if(gE>1)gE--;else{for(var e,t=!1;void 0!==mE;){var r=mE;for(mE=void 0,vE++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&wE(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(vE=0,gE--,t)throw e}}function pE(e){if(gE>0)return e();gE++;try{return e()}finally{dE()}}var fE=void 0;function hE(e){var t=fE;fE=void 0;try{return e()}finally{fE=t}}var mE=void 0,gE=0,vE=0,yE=0;function bE(e){if(void 0!==fE){var t=e.n;if(void 0===t||t.t!==fE)return t={i:0,S:e,p:fE.s,n:void 0,t:fE,e:void 0,x:void 0,r:t},void 0!==fE.s&&(fE.s.n=t),fE.s=t,e.n=t,32&fE.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=fE.s,t.n=void 0,fE.s.n=t,fE.s=t),t}}function xE(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 SE(e,t){return new xE(e,t)}function wE(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 CE(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 EE(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 IE(e,t){xE.call(this,void 0),this.x=e,this.s=void 0,this.g=yE-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 DE(e,t){return new IE(e,t)}function PE(e){var t=e.u;if(e.u=void 0,"function"==typeof t){gE++;var r=fE;fE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ME(e),t}finally{fE=r,dE()}}}function ME(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,PE(e)}function RE(e){if(fE!==this)throw new Error("Out-of-order effect");EE(this),fE=e,this.f&=-2,8&this.f&&ME(this),dE()}function LE(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 AE(e,t){var r=new LE(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}xE.prototype.brand=cE,xE.prototype.h=function(){return!0},xE.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:hE((function(){var e;null==(e=t.W)||e.call(t)})))},xE.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&&hE((function(){var e;null==(e=t.Z)||e.call(t)})))}},xE.prototype.subscribe=function(e){var t=this;return AE((function(){var r=t.value,n=fE;fE=void 0;try{e(r)}finally{fE=n}}),{name:"sub"})},xE.prototype.valueOf=function(){return this.value},xE.prototype.toString=function(){return this.value+""},xE.prototype.toJSON=function(){return this.value},xE.prototype.peek=function(){var e=fE;fE=void 0;try{return this.value}finally{fE=e}},Object.defineProperty(xE.prototype,"value",{get:function(){var e=bE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(vE>100)throw new Error("Cycle detected");this.v=e,this.i++,yE++,gE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{dE()}}}}),IE.prototype=new xE,IE.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===yE)return!0;if(this.g=yE,this.f|=1,this.i>0&&!wE(this))return this.f&=-2,!0;var e=fE;try{CE(this),fE=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 fE=e,EE(this),this.f&=-2,!0},IE.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)}xE.prototype.S.call(this,e)},IE.prototype.U=function(e){if(void 0!==this.t&&(xE.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)}},IE.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(IE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=bE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),LE.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()}},LE.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,PE(this),CE(this),gE++;var e=fE;return fE=this,RE.bind(this,e)},LE.prototype.N=function(){2&this.f||(this.f|=2,this.o=mE,mE=this)},LE.prototype.d=function(){this.f|=8,1&this.f||ME(this)},LE.prototype.dispose=function(){this.d()};var kE,OE,qE,TE,_E,jE,NE,FE,zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE=Object.create,QE=Object.defineProperty,eI=Object.defineProperties,tI=Object.getOwnPropertyDescriptor,rI=Object.getOwnPropertyDescriptors,nI=Object.getOwnPropertySymbols,oI=Object.prototype.hasOwnProperty,iI=Object.prototype.propertyIsEnumerable,aI=e=>{throw TypeError(e)},sI=(e,t,r)=>t in e?QE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lI=(e,t)=>QE(e,"name",{value:t,configurable:!0}),uI=["class","method","getter","setter","accessor","field","value","get","set"],cI=e=>void 0!==e&&"function"!=typeof e?aI("Function expected"):e,dI=(e,t,r,n,o)=>({kind:uI[e],name:t,metadata:n,addInitializer:e=>r._?aI("Already initialized"):o.push(cI(e||null))}),pI=(e,t)=>{return sI(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},fI=(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},hI=(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=uI[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)&&tI(d<4?o:{get[r](){return vI(this,i)},set[r](e){return bI(this,i,e)}},r));d?f&&d<4&&lI(i,(d>2?"set ":d>1?"get ":"")+r):lI(o,r);for(var b=n.length-1;b>=0;b--)u=dI(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>gI(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?vI:xI)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>bI(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?cI(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?aI("Object expected"):(cI(a=s.get)&&(y.get=a),cI(a=s.set)&&(y.set=a),cI(a=s.init)&&g.unshift(a));return d||pI(e,o),y&&QE(o,r,y),f?4^d?i:y:o},mI=(e,t,r)=>t.has(e)||aI("Cannot "+r),gI=(e,t)=>Object(t)!==t?aI('Cannot use the "in" operator on this value'):e.has(t),vI=(e,t,r)=>(mI(e,t,"read from private field"),r?r.call(e):t.get(e)),yI=(e,t,r)=>t.has(e)?aI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),bI=(e,t,r,n)=>(mI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),xI=(e,t,r)=>(mI(e,t,"access private method"),r);function SI(e,t){if(t){let r;return DE((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return DE(e)}function wI(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)=>!wI(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=>!wI(e[r],t[r])));return!o}return!1}function CI({get:e},t){return{init:e=>SE(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function EI(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=SI(e.bind(this)),r.set(this,t)),t.value}}function II(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)=>eI(e,rI(t)))(((e,t)=>{for(var r in t||(t={}))oI.call(t,r)&&sI(e,r,t[r]);if(nI)for(var r of nI(t))iI.call(t,r)&&sI(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function DI(...e){const t=e.map((e=>AE(e)));return()=>t.forEach((e=>e()))}jE=[CI],_E=[CI],TE=[CI],qE=[II()],OE=[II()],kE=[II()];var PI,MI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,fI(NE,5,this),yI(this,HE),yI(this,FE,fI(NE,8,this)),fI(NE,11,this),yI(this,VE,fI(NE,12,this)),fI(NE,15,this),yI(this,YE,fI(NE,16,this)),fI(NE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return vI(this,HE,XE)}get initial(){return vI(this,HE,WE)}get previous(){return vI(this,HE,GE)}set current(e){const t=hE((()=>vI(this,HE,XE)));e&&t&&this.equals(t,e)||pE((()=>{vI(this,HE,WE)||bI(this,HE,e,$E),bI(this,HE,t,UE),bI(this,HE,e,JE)}))}reset(e=this.defaultValue){pE((()=>{bI(this,HE,void 0,UE),bI(this,HE,e,$E),bI(this,HE,e,JE)}))}};function RI(e){return hE((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}NE=[,,,ZE(null)],FE=new WeakMap,HE=new WeakSet,VE=new WeakMap,YE=new WeakMap,zE=hI(NE,20,"#initial",jE,HE,FE),WE=zE.get,$E=zE.set,BE=hI(NE,20,"#previous",_E,HE,VE),GE=BE.get,UE=BE.set,KE=hI(NE,20,"#current",TE,HE,YE),XE=KE.get,JE=KE.set,hI(NE,2,"current",qE,MI),hI(NE,2,"initial",OE,MI),hI(NE,2,"previous",kE,MI),pI(NE,MI);PI=new WeakMap;var LI,AI,kI,OI,qI,TI=Object.create,_I=Object.defineProperty,jI=Object.getOwnPropertyDescriptor,NI=Object.getOwnPropertySymbols,FI=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,WI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$I=e=>{throw TypeError(e)},HI=Math.pow,VI=(e,t,r)=>t in e?_I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BI=["class","method","getter","setter","accessor","field","value","get","set"],GI=e=>void 0!==e&&"function"!=typeof e?$I("Function expected"):e,UI=(e,t,r,n,o)=>({kind:BI[e],name:t,metadata:n,addInitializer:e=>r._?$I("Already initialized"):o.push(GI(e||null))}),YI=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=BI[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,jI(o,r)),h=n.length-1;h>=0;h--)(l=UI(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,GI(a)&&(f[d]=a);return f&&_I(o,r,f),o},KI=(e,t,r)=>t.has(e)||$I("Cannot "+r),XI=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)}},JI=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={}))FI.call(t,r)&&VI(e,r,t[r]);if(NI)for(var r of NI(t))zI.call(t,r)&&VI(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 XI((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 XI.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 ZI,QI=class extends(kI=MI,AI=[EI],LI=[EI],kI){constructor(e){var t,r,n;super(XI.from(e),((e,t)=>XI.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)})(qI,5,this),t=this,n=0,(r=OI).has(t)?$I("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 XI.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=XI.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(KI(a=this,s=OI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);pE((()=>{((e,t,r)=>{KI(e,t,"write to private field"),t.set(e,r)})(this,OI,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(XI.from(e)),this.velocity={x:0,y:0}}};function eD({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(HI(n,2)+HI(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}qI=(e=>{var t;return[,,,TI(null!=(t=null==e?void 0:e[WI("metadata")])?t:null)]})(kI),OI=new WeakMap,YI(qI,2,"delta",AI,QI),YI(qI,2,"direction",LI,QI),ZI=qI,VI(QI,WI("metadata"),ZI[3]);var tD,rD,nD,oD,iD=(e=>(e.Horizontal="x",e.Vertical="y",e))(iD||{}),aD=Object.values(iD),sD=Object.create,lD=Object.defineProperty,uD=Object.defineProperties,cD=Object.getOwnPropertyDescriptor,dD=Object.getOwnPropertyDescriptors,pD=Object.getOwnPropertySymbols,fD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,mD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gD=e=>{throw TypeError(e)},vD=(e,t,r)=>t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yD=(e,t)=>{for(var r in t||(t={}))fD.call(t,r)&&vD(e,r,t[r]);if(pD)for(var r of pD(t))hD.call(t,r)&&vD(e,r,t[r]);return e},bD=(e,t)=>uD(e,dD(t)),xD=(e,t)=>lD(e,"name",{value:t,configurable:!0}),SD=(e,t)=>{var r={};for(var n in e)fD.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&pD)for(var n of pD(e))t.indexOf(n)<0&&hD.call(e,n)&&(r[n]=e[n]);return r},wD=e=>{var t;return[,,,sD(null!=(t=null==e?void 0:e[mD("metadata")])?t:null)]},CD=["class","method","getter","setter","accessor","field","value","get","set"],ED=e=>void 0!==e&&"function"!=typeof e?gD("Function expected"):e,ID=(e,t,r,n,o)=>({kind:CD[e],name:t,metadata:n,addInitializer:e=>r._?gD("Already initialized"):o.push(ED(e||null))}),DD=(e,t)=>vD(t,mD("metadata"),e[3]),PD=(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},MD=(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=CD[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)&&cD(d<4?o:{get[r](){return AD(this,i)},set[r](e){return OD(this,i,e)}},r));d?f&&d<4&&xD(i,(d>2?"set ":d>1?"get ":"")+r):xD(o,r);for(var b=n.length-1;b>=0;b--)u=ID(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?AD:qD)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>OD(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?ED(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?gD("Object expected"):(ED(a=s.get)&&(y.get=a),ED(a=s.set)&&(y.set=a),ED(a=s.init)&&g.unshift(a));return d||DD(e,o),y&&lD(o,r,y),f?4^d?i:y:o},RD=(e,t,r)=>t.has(e)||gD("Cannot "+r),LD=(e,t)=>Object(t)!==t?gD('Cannot use the "in" operator on this value'):e.has(t),AD=(e,t,r)=>(RD(e,t,"read from private field"),r?r.call(e):t.get(e)),kD=(e,t,r)=>t.has(e)?gD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),OD=(e,t,r,n)=>(RD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),qD=(e,t,r)=>(RD(e,t,"access private method"),r);function TD(e,t){return{plugin:e,options:t}}function _D(e){return t=>TD(e,t)}function jD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}tD=[CI];var ND=class{constructor(e,t){this.manager=e,this.options=t,kD(this,nD,PD(rD,8,this,!1)),PD(rD,11,this),kD(this,oD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return hE((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=AE(e.bind(this));return AD(this,oD).add(t),t}destroy(){AD(this,oD).forEach((e=>e()))}static configure(e){return TD(this,e)}};rD=wD(null),nD=new WeakMap,oD=new WeakMap,MD(rD,4,"disabled",tD,ND,nD),DD(rD,ND);var FD,zD=class extends ND{},WD=class{constructor(e){this.manager=e,this.instances=new Map,kD(this,FD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(jD).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of AD(this,FD))if(!r.includes(e)){if(e.prototype instanceof zD)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);OD(this,FD,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 $D(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}FD=new WeakMap;var HD,VD,BD=[],GD=class extends ND{constructor(e){super(e),kD(this,HD),kD(this,VD),this.computeCollisions=this.computeCollisions.bind(this),OD(this,VD,SE(BD)),this.destroy=DI((()=>{const e=this.computeCollisions(),t=hE((()=>this.manager.dragOperation.position.current));if(e!==BD){const e=AD(this,HD);if(OD(this,HD,t),e&&t.x==e.x&&t.y==e.y)return}else OD(this,HD,void 0);AD(this,VD).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){hE((()=>{e?AD(this,VD).value=this.computeCollisions():OD(this,HD,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return BD;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=hE((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?BD:(s.sort($D),s)}get collisions(){return AD(this,VD).value}};HD=new WeakMap,VD=new WeakMap;var UD=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)}},YD=class extends UD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function KD(e,t=!0){let r=!1;return bD(yD({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var XD,JD,ZD,QD,eP,tP,rP,nP,oP,iP=class extends zD{constructor(e){super(e);let t=[];this.destroy=DI((()=>{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=KD({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;hE((()=>{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()})))}))}))}},aP=(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))(aP||{}),sP=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(sP||{});rP=[CI],tP=[EI],eP=[EI],QD=[EI],ZD=[EI],JD=[EI],XD=[EI];var lP=class{constructor(){PD(nP,5,this),kD(this,oP,PD(nP,8,this,"idle")),PD(nP,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}};nP=wD(null),oP=new WeakMap,MD(nP,4,"value",rP,lP,oP),MD(nP,2,"current",tP,lP),MD(nP,2,"idle",eP,lP),MD(nP,2,"initializing",QD,lP),MD(nP,2,"initialized",ZD,lP),MD(nP,2,"dragging",JD,lP),MD(nP,2,"dropped",XD,lP),DD(nP,lP);var uP,cP,dP,pP,fP,hP,mP,gP,vP,yP=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 hE((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=KD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return hE((()=>{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;pE((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=KD({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 hE((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=KD({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 hE((()=>{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=hE((()=>{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=AE((()=>{"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()}))}};pP=[CI],dP=[CI],cP=[CI],uP=[CI];var bP=class{constructor(e,t){kD(this,hP,PD(fP,8,this)),PD(fP,11,this),kD(this,mP,PD(fP,12,this)),PD(fP,15,this),kD(this,gP,PD(fP,16,this)),PD(fP,19,this),kD(this,vP,PD(fP,20,this)),PD(fP,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)}};fP=wD(null),hP=new WeakMap,mP=new WeakMap,gP=new WeakMap,vP=new WeakMap,MD(fP,4,"manager",pP,bP,hP),MD(fP,4,"id",dP,bP,mP),MD(fP,4,"data",cP,bP,gP),MD(fP,4,"disabled",uP,bP,vP),DD(fP,bP);var xP,SP,wP,CP,EP,IP,DP,PP,MP,RP,LP,AP,kP,OP,qP,TP,_P,jP,NP,FP,zP,WP,$P,HP,VP=class{constructor(){this.map=SE(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=DI(...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}},BP=class extends(DP=bP,IP=[CI],EP=[CI],CP=[CI],wP=[EI],SP=[EI],xP=[EI],DP){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=SD(r,["modifiers","type","sensors"]);super(a,t),PD(PP,5,this),kD(this,MP,PD(PP,8,this)),PD(PP,11,this),kD(this,RP,PD(PP,12,this)),PD(PP,15,this),kD(this,LP,PD(PP,16,this,this.isDragSource?"dragging":"idle")),PD(PP,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}};PP=wD(DP),MP=new WeakMap,RP=new WeakMap,LP=new WeakMap,MD(PP,4,"type",IP,BP,MP),MD(PP,4,"modifiers",EP,BP,RP),MD(PP,4,"status",CP,BP,LP),MD(PP,2,"isDropping",wP,BP),MD(PP,2,"isDragging",SP,BP),MD(PP,2,"isDragSource",xP,BP),DD(PP,BP);var GP=class extends(jP=bP,_P=[CI],TP=[CI],qP=[CI],OP=[CI],kP=[CI],AP=[EI],jP){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(SD(r,["accept","collisionDetector","collisionPriority","type"]),t),PD(NP,5,this),kD(this,FP,PD(NP,8,this)),PD(NP,11,this),kD(this,zP,PD(NP,12,this)),PD(NP,15,this),kD(this,WP,PD(NP,16,this)),PD(NP,19,this),kD(this,$P,PD(NP,20,this)),PD(NP,23,this),kD(this,HP,PD(NP,24,this)),PD(NP,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}};NP=wD(jP),FP=new WeakMap,zP=new WeakMap,WP=new WeakMap,$P=new WeakMap,HP=new WeakMap,MD(NP,4,"accept",_P,GP,FP),MD(NP,4,"type",TP,GP,zP),MD(NP,4,"collisionDetector",qP,GP,WP),MD(NP,4,"collisionPriority",OP,GP,$P),MD(NP,4,"shape",kP,GP,HP),MD(NP,2,"isDropTarget",AP,GP),DD(NP,GP);var UP,YP=class extends ND{constructor(e,t){super(e,t),this.manager=e,this.options=t}},KP=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},XP=class{constructor(e){this.options=e,kD(this,UP)}set controller(e){OD(this,UP,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=AD(this,UP))||t.activate(e)}};UP=new WeakMap;var JP,ZP,QP,eM,tM,rM,nM,oM,iM,aM,sM,lM,uM,cM,dM,pM,fM,hM,mM,gM=class extends ND{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},vM=class{constructor(e){this.draggables=new VP,this.droppables=new VP,this.plugins=new WD(e),this.sensors=new WD(e),this.modifiers=new WD(e)}register(e,t){if(e instanceof BP)return this.draggables.register(e.id,e);if(e instanceof GP)return this.droppables.register(e.id,e);if(e.prototype instanceof gM)return this.modifiers.register(e,t);if(e.prototype instanceof YP)return this.sensors.register(e,t);if(e.prototype instanceof ND)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof bP)return e instanceof BP?this.draggables.unregister(e.id,e):e instanceof GP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof gM)return this.modifiers.unregister(e);if(e.prototype instanceof YP)return this.sensors.unregister(e);if(e.prototype instanceof ND)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()}};iM=[EI],oM=[CI],nM=[CI],rM=[CI],tM=[CI],eM=[CI],QP=[EI],ZP=[EI],JP=[EI];var yM=class{constructor(e){PD(uM,5,this),kD(this,aM),kD(this,sM),kD(this,lM,new MI(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new lP,kD(this,cM,PD(uM,8,this,!1)),PD(uM,11,this),kD(this,dM,PD(uM,12,this,null)),PD(uM,15,this),kD(this,pM,PD(uM,16,this,null)),PD(uM,19,this),kD(this,fM,PD(uM,20,this,null)),PD(uM,23,this),kD(this,hM,PD(uM,24,this,[])),PD(uM,27,this),this.position=new QI({x:0,y:0}),kD(this,mM,{x:0,y:0}),OD(this,aM,e)}get shape(){const{current:e,initial:t,previous:r}=AD(this,lM);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?AD(this,lM).current=e:AD(this,lM).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=AD(this,aM).registry.draggables.get(t);return r&&OD(this,sM,r),null!=(e=null!=r?r:AD(this,sM))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=AD(this,aM).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(bD(yD({},this.snapshot()),{transform:r}));return OD(this,mM,r),r}snapshot(){return hE((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:AD(this,mM),shape:this.shape?RI(this.shape):null,position:RI(this.position),status:RI(this.status),canceled:this.canceled})))}reset(){pE((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,AD(this,lM).reset(),this.position.reset({x:0,y:0}),OD(this,mM,{x:0,y:0}),this.modifiers=[]}))}};uM=wD(null),aM=new WeakMap,sM=new WeakMap,lM=new WeakMap,cM=new WeakMap,dM=new WeakMap,pM=new WeakMap,fM=new WeakMap,hM=new WeakMap,mM=new WeakMap,MD(uM,2,"shape",iM,yM),MD(uM,4,"canceled",oM,yM,cM),MD(uM,4,"activatorEvent",nM,yM,dM),MD(uM,4,"sourceIdentifier",rM,yM,pM),MD(uM,4,"targetIdentifier",tM,yM,fM),MD(uM,4,"modifiers",eM,yM,hM),MD(uM,2,"source",QP,yM),MD(uM,2,"target",ZP,yM),MD(uM,2,"transform",JP,yM),DD(uM,yM);var bM={get rendering(){return Promise.resolve()}},xM=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=bM}=null!=e?e:{},i=new YD(this),a=new vM(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new yP(this),this.dragOperation=new yM(this),this.collisionObserver=new GD(this),this.plugins=[iP,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=DI((()=>{var e,t,r;const n=hE((()=>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}=jD(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}},SM=e=>{throw TypeError(e)},wM=(e,t,r)=>t.has(e)||SM("Cannot "+r),CM=(e,t,r)=>(wM(e,t,"read from private field"),t.get(e)),EM=(e,t,r)=>t.has(e)?SM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),IM=(e,t,r,n)=>(wM(e,t,"write to private field"),t.set(e,r),r),DM=(e,t,r)=>(wM(e,t,"access private method"),r);function PM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function MM(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=(PM(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function RM(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}}function LM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AM(e){return"nodeType"in e}function kM(e){var t,r,n;return e?LM(e)?e:AM(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 OM(e){const{Document:t}=kM(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function qM(e){return!(!e||LM(e))&&(e instanceof kM(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function TM(e){return e instanceof kM(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function _M(e){return e?LM(e)?e.document:AM(e)?OM(e)?e:qM(e)||TM(e)?e.ownerDocument:document:document:document}function jM(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 NM(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(!jM(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 FM(e){return{x:e.clientX,y:e.clientY}}var zM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function WM(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...WM(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...WM(o.document,t))}}catch(e){}return r}function $M(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function HM(e){return"value"in e}function VM(e){return"CANVAS"===e.tagName}function BM(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 BM(e,{x:t-o,y:r-i})}}return n}var GM=new WeakMap;var UM=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(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function YM(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 XM,JM=zM?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},ZM=class extends JM{constructor(e){super((t=>{CM(this,XM)?e(t,this):IM(this,XM,!0)})),EM(this,XM,!1)}};XM=new WeakMap;var QM,eR,tR,rR,nR,oR,iR,aR,sR,lR,uR,cR=Array.from({length:100},((e,t)=>t/100)),dR=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,EM(this,sR),this.disconnect=()=>{var e,t,r;IM(this,iR,!0),null==(e=CM(this,tR))||e.disconnect(),null==(t=CM(this,rR))||t.disconnect(),CM(this,nR).disconnect(),null==(r=CM(this,oR))||r.remove()},EM(this,QM,!0),EM(this,eR),EM(this,tR),EM(this,rR),EM(this,nR),EM(this,oR),EM(this,iR,!1),EM(this,aR,KM((()=>{var e,t,r;const{element:n}=this;if(null==(e=CM(this,rR))||e.disconnect(),CM(this,iR)||!CM(this,QM)||!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=NM(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,IM(this,rR,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:JI.intersectionRatio(r,NM(n)))&&CM(this,aR).call(this)}),{threshold:cR,rootMargin:m,root:o})),CM(this,rR).observe(n),DM(this,sR,lR).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),IM(this,QM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=NM(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)&&(IM(this,oR,document.createElement("div")),CM(this,oR).style.background="rgba(0,0,0,0.15)",CM(this,oR).style.position="fixed",CM(this,oR).style.pointerEvents="none",o.body.appendChild(CM(this,oR))),IM(this,nR,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=CM(this,QM);IM(this,QM,a),(s||l)&&(u&&!a?(null==(r=CM(this,rR))||r.disconnect(),this.callback(null),null==(n=CM(this,tR))||n.disconnect(),IM(this,tR,void 0),CM(this,oR)&&(CM(this,oR).style.visibility="hidden")):CM(this,aR).call(this),a&&!CM(this,tR)&&(IM(this,tR,new ZM(CM(this,aR))),CM(this,tR).observe(e)))}),{threshold:cR,root:o})),CM(this,QM)&&!r.skipInitial&&this.callback(this.boundingClientRect),CM(this,nR).observe(e)}};QM=new WeakMap,eR=new WeakMap,tR=new WeakMap,rR=new WeakMap,nR=new WeakMap,oR=new WeakMap,iR=new WeakMap,aR=new WeakMap,sR=new WeakSet,lR=function(){CM(this,iR)||(DM(this,sR,uR).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,CM(this,eR))||(this.callback(this.boundingClientRect),IM(this,eR,this.boundingClientRect)))},uR=function(){if(CM(this,oR)){const{top:e,left:t,width:r,height:n}=NM(this.element);CM(this,oR).style.overflow="hidden",CM(this,oR).style.visibility="visible",CM(this,oR).style.top=`${Math.floor(e)}px`,CM(this,oR).style.left=`${Math.floor(t)}px`,CM(this,oR).style.width=`${Math.floor(r)}px`,CM(this,oR).style.height=`${Math.floor(n)}px`}};var pR,fR,hR,mR,gR=new WeakMap,vR=new WeakMap;function yR(e,t){let r=gR.get(e);if(!r){const t=new dR(e,(t=>{const r=gR.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),gR.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(gR.delete(e),r.disconnect())}}var bR=class{constructor(e,t,r){this.callback=t,EM(this,pR),EM(this,fR,!1),EM(this,hR),EM(this,mR,KM((e=>{if(!CM(this,fR)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of CM(this,hR))if(e.target.contains(t)){this.callback(CM(this,pR).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=YM(e);for(;r;)t.add(r),r=YM(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=yR(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!vR.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}),vR.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=vR.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),vR.delete(n))}):()=>{}}(e,CM(this,mR));IM(this,hR,n),IM(this,pR,new dR(e,t,r)),this.disconnect=()=>{CM(this,fR)||(IM(this,fR,!0),o(),i(),CM(this,pR).disconnect())}}};function xR(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function SR(e){try{xR(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function wR(e){return!(!zM||!e)&&e===_M(e).scrollingElement}function CR(e){const t=kM(e),r=wR(e)?function(e){const{documentElement:t}=_M(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):RM(e),n=wR(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 ER(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=CR(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}}pR=new WeakMap,fR=new WeakMap,hR=new WeakMap,mR=new WeakMap;var IR=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)))}},DR=new IR((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),PR=new IR((e=>setTimeout(e,50))),MR=new Map,RR=MR.clear.bind(MR);function LR(e,t=!1){if(!t)return AR(e);let r=MR.get(e);return r||(r=AR(e),MR.set(e,r),PR.schedule(RR),r)}function AR(e){return kM(e).getComputedStyle(e)}var kR={excludeElement:!0};function OR(e,t=kR){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(OM(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!qM(i))return TM(i)?t(i.parentElement):o;if(o.has(i))return o;const a=LR(i,!0);if(n&&i===e||function(e,t=LR(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=LR(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 qR(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=YM(e);for(;n;){if(n===t)return r;const e=RM(n),{x:o,y:i}=TR(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=YM(n)}return r}function TR(e,t=RM(e)){const r=Math.round(t.width),n=Math.round(t.height);if(qM(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=LR(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function _R(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 jR(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=_R(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 NR=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(NR||{}),FR={x:.2,y:.2},zR={x:10,y:10};function WR(e,t,r,n=25,o=FR,i=zR){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=CR(e),f=qR(e),h=jR(LR(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new JI(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 $R(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!qM(e))return e.scrollIntoView();var n=function(e){const[t]=OR(e,{limit:1});return null!=t?t:null}(e);if(!qM(n))return;const o=LR(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 HR({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function VR(e,t=LR(e).translate,r=!0){if(r){const t=MM(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=_R(e);if(t)return t}}}if(t){const e=_R(t);if(e)return e}return{x:0,y:0,z:0}}var BR=new IR((e=>setTimeout(e,0))),GR=new Map,UR=GR.clear.bind(GR);function YR(e,t){const r=function(e){const t=e.ownerDocument;let r=GR.get(t);if(r)return r;r=t.getAnimations(),GR.set(t,r),BR.schedule(UR);const n=r.filter((t=>PM(t.effect)&&t.effect.target===e));return GR.set(e,n),r}(e).filter((e=>{var r,n;if(PM(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 KR=class extends JI{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=qR(e),ignoreTransforms:s,getBoundingClientRect:l=RM}=t,u=YR(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||$M())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=LR(e),v=jR(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=PM(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=jR({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 XR(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 JR=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(XR(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(XR(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(XR(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function ZR(e){return!!e&&(e instanceof kM(e).Element||AM(e)&&e.nodeType===Node.ELEMENT_NODE)}function QR(e){if(!e)return!1;const{KeyboardEvent:t}=kM(e.target);return e instanceof t}var eL={};function tL(e){const t=null==eL[e]?0:eL[e]+1;return eL[e]=t,`${e}-${t}`}var rL=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/XI.distance(t.shape.center,r),type:sP.PointerIntersection,priority:aP.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=XI.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:sP.ShapeIntersection,priority:aP.Normal}}return null})(e)},nL=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?JI.from(n.current.boundingRectangle).corners:void 0,a=JI.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+XI.distance(XI.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:sP.Collision,priority:aP.Normal}},oL=Object.create,iL=Object.defineProperty,aL=Object.defineProperties,sL=Object.getOwnPropertyDescriptor,lL=Object.getOwnPropertyDescriptors,uL=Object.getOwnPropertySymbols,cL=Object.prototype.hasOwnProperty,dL=Object.prototype.propertyIsEnumerable,pL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),fL=e=>{throw TypeError(e)},hL=(e,t,r)=>t in e?iL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mL=(e,t)=>{for(var r in t||(t={}))cL.call(t,r)&&hL(e,r,t[r]);if(uL)for(var r of uL(t))dL.call(t,r)&&hL(e,r,t[r]);return e},gL=(e,t)=>aL(e,lL(t)),vL=(e,t)=>iL(e,"name",{value:t,configurable:!0}),yL=(e,t)=>{var r={};for(var n in e)cL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&uL)for(var n of uL(e))t.indexOf(n)<0&&dL.call(e,n)&&(r[n]=e[n]);return r},bL=e=>{var t;return[,,,oL(null!=(t=null==e?void 0:e[pL("metadata")])?t:null)]},xL=["class","method","getter","setter","accessor","field","value","get","set"],SL=e=>void 0!==e&&"function"!=typeof e?fL("Function expected"):e,wL=(e,t,r,n,o)=>({kind:xL[e],name:t,metadata:n,addInitializer:e=>r._?fL("Already initialized"):o.push(SL(e||null))}),CL=(e,t)=>hL(t,pL("metadata"),e[3]),EL=(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},IL=(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=xL[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)&&sL(d<4?o:{get[r](){return ML(this,i)},set[r](e){return LL(this,i,e)}},r));d?f&&d<4&&vL(i,(d>2?"set ":d>1?"get ":"")+r):vL(o,r);for(var b=n.length-1;b>=0;b--)u=wL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>PL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?ML:AL)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>LL(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?SL(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?fL("Object expected"):(SL(a=s.get)&&(y.get=a),SL(a=s.set)&&(y.set=a),SL(a=s.init)&&g.unshift(a));return d||CL(e,o),y&&iL(o,r,y),f?4^d?i:y:o},DL=(e,t,r)=>t.has(e)||fL("Cannot "+r),PL=(e,t)=>Object(t)!==t?fL('Cannot use the "in" operator on this value'):e.has(t),ML=(e,t,r)=>(DL(e,t,"read from private field"),r?r.call(e):t.get(e)),RL=(e,t,r)=>t.has(e)?fL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),LL=(e,t,r,n)=>(DL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),AL=(e,t,r)=>(DL(e,t,"access private method"),r),kL="button",OL="draggable",qL="dnd-kit-description",TL="dnd-kit-announcement",_L={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."},jL={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 NL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var FL=["dragover","dragmove"];var zL="data-dnd-",WL=`${zL}dropping`,$L="--dnd-",HL=`${zL}dragging`,VL=`${zL}placeholder`,BL=[HL,VL,"popover","aria-pressed","aria-grabbing"],GL=["view-transition-name"],UL=`\n :root [${HL}] {\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(${$L}top, 0px) !important;\n left: var(${$L}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${$L}width, auto);\n max-width: var(${$L}width, auto);\n height: var(${$L}height, auto);\n max-height: var(${$L}height, auto);\n transition: var(${$L}transition) !important;\n }\n\n :root [${VL}] {\n transition: none;\n }\n\n :root [${VL}='hidden'] {\n visibility: hidden;\n }\n\n [${HL}] * {\n pointer-events: none !important;\n }\n\n [${HL}]:not([${WL}]) {\n translate: var(${$L}translate) !important;\n }\n\n [${HL}][style*='${$L}scale'] {\n scale: var(${$L}scale) !important;\n transform-origin: var(${$L}transform-origin) !important;\n }\n\n @layer {\n :where([${HL}][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 [${HL}]::backdrop, [${zL}overlay]:not([${HL}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function YL(e,t="hidden"){return hE((()=>{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=`${zL}${tL("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(HM(e)&&HM(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),VM(e)&&VM(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),GM.set(a,i),r.push((()=>{GM.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(VL,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function KL(e,t){return e===t||YM(e)===YM(t)}function XL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&ZR(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>SR(t)))}function JL(e){return"TR"===e.tagName}var ZL,QL,eA,tA,rA,nA,oA,iA=new Map,aA=class extends(QL=ND,ZL=[CI],QL){constructor(e,t){super(e,t),RL(this,rA),RL(this,tA,EL(eA,8,this)),EL(eA,11,this),this.state={initial:{},current:{}},this.registerEffect(AL(this,rA,oA)),this.registerEffect(AL(this,rA,nA))}destroy(){super.destroy();for(const[e,t]of iA.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),iA.delete(e)))}};eA=bL(QL),tA=new WeakMap,rA=new WeakSet,nA=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=qR(f),m=qR(c),g=!KL(c,f),v=new KR(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 JR(f),{transition:P,translate:M,boxSizing:R,paddingBlockStart:L,paddingBlockEnd:A,paddingInlineStart:k,paddingInlineEnd:O,borderInlineStartWidth:q,borderInlineEndWidth:T,borderBlockStartWidth:_,borderBlockEndWidth:j}=LR(c),N="clone"===d,F="content-box"===R,z=F?parseInt(k)+parseInt(O)+parseInt(q)+parseInt(T):0,W=F?parseInt(L)+parseInt(A)+parseInt(_)+parseInt(j):0,$="move"===d||this.overlay?null:YL(l,N?"clone":"hidden"),H=hE((()=>QR(o.dragOperation.activatorEvent)));if("none"!==M){const e=_R(M);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=hE((()=>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(HL,"true");const ee=hE((()=>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=P?`${P}, 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}%`},$L),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}xR(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),SR(f),f.addEventListener("beforetoggle",XL));const oe=new ResizeObserver((()=>{if(!$)return;const e=new KR($,{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},$L),null==x||x.takeRecords(),JL(c)&&JL($)){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 KR(f)})),ie=new KR(f);hE((()=>a.shape=ie));const ae=kM(f),se=e=>{this.manager.actions.stop({event:e})};H&&ae.addEventListener("resize",se),"idle"===hE((()=>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-")||BL.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(XR(c)&&XR($)){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(GL.includes(t)||t.startsWith($L))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 SR(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void SR(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;qM(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),xR(f)&&(f.removeEventListener("beforetoggle",XL),f.removeAttribute("popover")),f.removeAttribute(HL),D.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=DI((()=>{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=hE((()=>a.modifiers)),l=hE((()=>{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:`${P}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},$L),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=XI.delta(o,i);a.shape=JI.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new KR(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;{SR(f);const[,o]=null!=(r=MM(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:KL(f,i)?null:void 0},s=new KR(f,a),u=null!=(n=_R(LR(f).translate))?n:e,d=new KR(i,a),p=JI.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:P},$L),f.setAttribute(WL,""),null==x||x.takeRecords(),HR({element:f,keyframes:gL(mL(mL({},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(WL),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},oA=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=_M(null!=(t=null==o?void 0:o.element)?t:null),n=_M(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=iA.get(e);if(!t){const r=document.createElement("style");r.textContent=UL,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},iA.set(e,t)}t.instances.add(this)}}},IL(eA,4,"overlay",ZL,aA,tA),CL(eA,aA),aA.configure=_D(aA);var sA,lA,uA,cA,dA,pA,fA,hA=aA,mA=!0;uA=[CI],cA=NR.Forward,sA=[CI],lA=NR.Reverse;var gA=class{constructor(){RL(this,pA,EL(dA,8,this,mA)),EL(dA,11,this),RL(this,fA,EL(dA,12,this,mA)),EL(dA,15,this)}isLocked(e){return e!==NR.Idle&&(null==e?this[NR.Forward]===mA&&this[NR.Reverse]===mA:this[e]===mA)}unlock(e){e!==NR.Idle&&(this[e]=false)}};dA=bL(null),pA=new WeakMap,fA=new WeakMap,IL(dA,4,cA,uA,gA,pA),IL(dA,4,lA,sA,gA,fA),CL(dA,gA);var vA,yA,bA,xA,SA,wA,CA=[NR.Forward,NR.Reverse],EA=class{constructor(){this.x=new gA,this.y=new gA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},IA=class extends ND{constructor(e){super(e);const t=SE(new EA);let r=null;this.signal=t,AE((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new EA);const{delta:o}=e.dragOperation.position;if(r){const e={x:DA(o.x,r.x),y:DA(o.y,r.y)},n=t.peek();pE((()=>{for(const t of aD)for(const r of CA)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function DA(e,t){return Math.sign(e-t)}var PA=class extends(yA=zD,vA=[CI],yA){constructor(e){super(e),RL(this,xA,EL(bA,8,this,!1)),EL(bA,11,this),RL(this,SA),RL(this,wA,(()=>{if(!ML(this,SA))return;const{element:e,by:t}=ML(this,SA);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 LL(this,SA,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:MA(n.x),y:MA(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=ER(e,n);if(r.x||r.y){const{speed:r,direction:s}=WR(e,o,i);if(a)for(const e of aD)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=ML(this,SA))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return LL(this,SA,{element:e,by:{x:a,y:l}}),DR.schedule(ML(this,wA)),!0}}}}}return LL(this,SA,void 0),!1};let t=null,r=null;const n=SI((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=BM(_M(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=SI((()=>{const t=n.value,{documentElement:o}=_M(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=OR(n,{excludeElement:!1});return r=e,e}}if(t){const e=OR(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),wI);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new IA(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&QR(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function MA(e){return e>0?NR.Forward:e<0?NR.Reverse:NR.Idle}bA=bL(yA),xA=new WeakMap,SA=new WeakMap,wA=new WeakMap,IL(bA,4,"autoScrolling",vA,PA,xA),CL(bA,PA);var RA,LA=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()})),AA=class extends ND{constructor(e,t){super(e);const r=e.registry.plugins.get(PA);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=AE((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>LA.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},kA={capture:!0,passive:!0},OA=class extends zD{constructor(e){super(e),RL(this,RA),this.handleScroll=()=>{null==ML(this,RA)&&LL(this,RA,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),LL(this,RA,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=AE((()=>{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,kA),()=>{o.removeEventListener("scroll",this.handleScroll,kA)}}}))}};RA=new WeakMap;function qA(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var TA,_A=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target===n}}),jA=class extends YP{constructor(e,t){super(e),this.manager=e,this.options=t,RL(this,TA,[]),this.listeners=new UM,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!ZR(e.target))return;if(t.disabled)return;const{keyboardCodes:n=_A.keyboardCodes,preventActivation:o=_A.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=AE((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{QR(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(),$R(n);const{center:o}=new KR(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=_M(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];ML(this,TA).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=_A.keyboardCodes}=null!=r?r:{};if(zA(e,[...n.end,...n.cancel])){e.preventDefault();const t=zA(e,n.cancel);this.handleEnd(e,t)}else zA(e,n.up)?this.handleMove("up",e):zA(e,n.down)&&this.handleMove("down",e),zA(e,n.left)?this.handleMove("left",e):zA(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:_A.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(AA);!1===(null==e?void 0:e.disabled)&&(e.disable(),ML(this,TA).push((()=>{e.enable()})))}cleanup(){ML(this,TA).forEach((e=>e())),LL(this,TA,[])}destroy(){this.cleanup(),this.listeners.clear()}};TA=new WeakMap,jA.configure=_D(jA),jA.defaults=_A;var NA,FA=jA;function zA(e,t){return t.includes(e.code)}var WA,$A;NA=new WeakMap;WA=new WeakMap,$A=new WeakMap;var HA=class{};HA.Delay=class extends XP{constructor(){super(...arguments),RL(this,WA),RL(this,$A)}onEvent(e){switch(e.type){case"pointerdown":LL(this,$A,FM(e)),LL(this,WA,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!ML(this,$A))return;const{x:t,y:r}=FM(e);eD({x:t-ML(this,$A).x,y:r-ML(this,$A).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){ML(this,WA)&&(clearTimeout(ML(this,WA)),LL(this,$A,void 0),LL(this,WA,void 0))}},HA.Distance=class extends XP{constructor(){super(...arguments),RL(this,NA)}onEvent(e){switch(e.type){case"pointerdown":LL(this,NA,FM(e));break;case"pointermove":if(!ML(this,NA))return;const{x:t,y:r}=FM(e),n={x:t-ML(this,NA).x,y:r-ML(this,NA).y},{tolerance:o}=this.options;if(o&&eD(n,o))return void this.abort();eD(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){LL(this,NA,void 0)}};var VA,BA=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!ZR(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new HA.Delay({value:250,tolerance:5})]:function(e){if(!ZR(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?[new HA.Delay({value:200,tolerance:0})]:[new HA.Delay({value:200,tolerance:10}),new HA.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!ZR(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),GA=class extends YP{constructor(e,t){super(e),this.manager=e,this.options=t,RL(this,VA,new Set),this.listeners=new UM,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=BA.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=AE((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=kM(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&&(JA(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||!ZR(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=BA.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=qM(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=qR(t.element),{x:s,y:l}=FM(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t);e.sensor=this;const c=new KP(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=WM(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:YA,options:{capture:!0}}]);ML(this,VA).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=FM(e),n=qR(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,DR.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}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){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=_M(t.target);o.body.setPointerCapture(t.pointerId);const i=ZR(t.target)?[t.target,o.body]:o.body,a=this.listeners.bind(i,[{type:"touchmove",listener:YA,options:{passive:!1}},{type:"click",listener:YA},{type:"contextmenu",listener:YA},{type:"keydown",listener:this.handleKeyDown}]);ML(this,VA).add(a)}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},ML(this,VA).forEach((e=>e())),ML(this,VA).clear()}destroy(){this.cleanup(),this.listeners.clear()}};VA=new WeakMap,GA.configure=_D(GA),GA.defaults=BA;var UA=GA;function YA(e){e.preventDefault()}function KA(){}var XA=new WeakSet;function JA(e){e&&!XA.has(e)&&(e.addEventListener("touchmove",KA,{capture:!1,passive:!1}),XA.add(e))}var ZA,QA,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk,ck,dk,pk,fk,hk,mk,gk={modifiers:[],plugins:[class extends ND{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=qL,announcement:o=TL}={},announcements:i=jL,screenReaderInstructions:a=_L,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:tL(n),u=r?`${o}-${r}`:tL(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>DR.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,FL.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),NL(r)&&!$M()||r.hasAttribute("tabindex")||b.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add((()=>r.setAttribute("role",kL))),r.hasAttribute("aria-roledescription")||b.add((()=>r.setAttribute("aria-roledescription",OL))),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&&DR.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach((e=>e()))}}},AA,class extends ND{constructor(e,t){super(e,t),this.manager=e;const r=SI((()=>{var e;return _M(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=AE((()=>{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()}}))}},hA,class extends ND{constructor(e,t){super(e,t),this.manager=e,this.destroy=AE((()=>{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),qA(),document.addEventListener("selectionchange",qA,{capture:!0}),()=>{document.removeEventListener("selectionchange",qA,{capture:!0}),e.remove()}}}))}}],sensors:[UA,FA]},vk=class extends xM{constructor(e={}){const{plugins:t=gk.plugins,sensors:r=gk.sensors,modifiers:n=[]}=e;super(gL(mL({},e),{plugins:[OA,PA,...t],sensors:r,modifiers:n}))}},yk=class extends(tk=BP,ek=[CI],QA=[CI],ZA=[CI],tk){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=yL(r,["element","effects","handle","feedback"]);super(mL({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(jD))?t:[...r.sensors]).map((e=>{const t=e instanceof YP?e:r.registry.register(e.plugin),n=e instanceof YP?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),RL(this,nk,EL(rk,8,this)),EL(rk,11,this),RL(this,ok,EL(rk,12,this)),EL(rk,15,this),RL(this,ik,EL(rk,16,this)),EL(rk,19,this),this.element=n,this.handle=i,this.feedback=a}};rk=bL(tk),nk=new WeakMap,ok=new WeakMap,ik=new WeakMap,IL(rk,4,"handle",ek,yk,nk),IL(rk,4,"element",QA,yk,ok),IL(rk,4,"feedback",ZA,yk,ik),CL(rk,yk);var bk=class extends(lk=GP,sk=[CI],ak=[CI],lk){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=yL(r,["element","effects"]);const{collisionDetector:a=rL}=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 KR(r),o=hE((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=SE(!1);super(gL(mL({},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 bR(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),RL(this,hk),RL(this,ck,EL(uk,8,this)),EL(uk,11,this),RL(this,mk,EL(uk,12,this)),EL(uk,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){LL(this,hk,e,fk)}get element(){var e;return null!=(e=this.proxy)?e:ML(this,hk,pk)}};function xk(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}uk=bL(lk),ck=new WeakMap,hk=new WeakSet,mk=new WeakMap,dk=IL(uk,20,"#element",sk,hk,ck),pk=dk.get,fk=dk.set,IL(uk,4,"proxy",ak,bk,mk),CL(uk,bk);var Sk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:p;function wk(e,t){const r=u(new Map),n=function(){const e=v(0)[1];return h((()=>{e((e=>e+1))}),[e])}();return Sk((()=>{if(e)return AE((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=hE((()=>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?D(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 Ck(e,t){e()}function Ek(e){const t=u(e);return Sk((()=>{t.current=e}),[e]),t}function Ik(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 Dk(e,t){const r=u(xk(e));Sk((()=>{const n=xk(e);n!==r.current&&(r.current=n,t(n))}))}var Pk=Object.defineProperty,Mk=Object.defineProperties,Rk=Object.getOwnPropertyDescriptors,Lk=Object.getOwnPropertySymbols,Ak=Object.prototype.hasOwnProperty,kk=Object.prototype.propertyIsEnumerable,Ok=(e,t,r)=>t in e?Pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qk=new vk,Tk=c(qk),_k=y(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}))),S((()=>{e(),n((e=>e+1))}))}})),[]);return Sk((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),w(t,(()=>a)),null}))),jk=[void 0,wI];function Nk(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var r={};for(var n in e)Ak.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Lk)for(var n of Lk(e))t.indexOf(n)<0&&kk.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const d=u(null),{plugins:f,modifiers:h,sensors:m}=c,g=Ek(o),v=Ek(i),y=Ek(s),x=Ek(a),S=Ek(l),w=Ek(n),C=function(e){const t=u(null);t.current||(t.current=e());return b((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=c.manager)?e:new vk(c)}));return p((()=>{if(!d.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=d.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=g.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),Ik(f,(()=>C&&(C.plugins=null!=f?f:gk.plugins)),...jk),Ik(m,(()=>C&&(C.sensors=null!=m?m:gk.sensors)),...jk),Ik(h,(()=>C&&(C.modifiers=null!=h?h:gk.modifiers)),...jk),Zo.jsxs(Tk.Provider,{value:C,children:[Zo.jsx(_k,{ref:d,children:r}),r]})}function Fk(e){var t;const r=null!=(t=n(Tk))?t:void 0,[o]=v((()=>e(r)));return o.manager!==r&&(o.manager=r),Sk(o.register,[r,o]),o}var zk,Wk,$k,Hk,Vk,Bk=Object.create,Gk=Object.defineProperty,Uk=Object.getOwnPropertyDescriptor,Yk=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Kk=e=>{throw TypeError(e)},Xk=["class","method","getter","setter","accessor","field","value","get","set"],Jk=e=>void 0!==e&&"function"!=typeof e?Kk("Function expected"):e,Zk=(e,t,r,n,o)=>({kind:Xk[e],name:t,metadata:n,addInitializer:e=>r._?Kk("Already initialized"):o.push(Jk(e||null))}),Qk=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Xk[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Uk(o,r)),h=n.length-1;h>=0;h--)(l=Zk(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,Jk(a)&&(f[d]=a);return f&&Gk(o,r,f),o},eO=(e,t,r)=>t.has(e)||Kk("Cannot "+r),tO=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)}},rO=class extends($k=MI,Wk=[EI],zk=[EI],$k){constructor(e){var t,r,n;super(tO.from(e),((e,t)=>tO.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)})(Vk,5,this),t=this,n=0,(r=Hk).has(t)?Kk("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 tO.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=tO.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(eO(a=this,s=Hk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);pE((()=>{((e,t,r)=>{eO(e,t,"write to private field"),t.set(e,r)})(this,Hk,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(tO.from(e)),this.velocity={x:0,y:0}}};Vk=(e=>{var t;return[,,,Bk(null!=(t=null==e?void 0:e[Yk("metadata")])?t:null)]})($k),Hk=new WeakMap,Qk(Vk,2,"delta",Wk,rO),Qk(Vk,2,"direction",zk,rO),((e,t)=>{((e,t,r)=>{t in e?Gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,Yk("metadata"),e[3])})(Vk,rO);var nO=(e=>(e.Horizontal="x",e.Vertical="y",e))(nO||{});Object.values(nO);var oO=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/tO.distance(t.shape.center,r),type:sP.PointerIntersection,priority:aP.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=tO.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:sP.ShapeIntersection,priority:aP.Normal}}return null})(e)};function iO(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=Fk((t=>new bk(((e,t)=>Mk(e,Rk(t)))(((e,t)=>{for(var r in t||(t={}))Ak.call(t,r)&&Ok(e,r,t[r]);if(Lk)for(var r of Lk(t))kk.call(t,r)&&Ok(e,r,t[r]);return e})({},e),{register:!1,element:xk(o)}),t))),u=wk(l);return Ik(i,(()=>l.id=i)),Dk(o,(e=>l.element=e)),Ik(a,(()=>l.accept=a),void 0,wI),Ik(t,(()=>l.collisionDetector=null!=t?t:oO)),Ik(r,(()=>r&&(l.data=r))),Ik(n,(()=>l.disabled=!0===n)),Ik(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 aO=e=>Array.from({length:e},((e,t)=>t)),sO=({title:e,message:t})=>Zo.jsxs(Gu,{sx:{padding:2,display:"flex",flexDirection:"column",alignItems:"center"},children:[Zo.jsx(lu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"bold",fontSize:14},children:e}),Zo.jsx(lu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:12},children:t})]}),lO=({id:e,sectionIndex:t})=>{const r=XC(sE);return void 0===r?null:Zo.jsx(r,{id:e,sectionIndex:t})};var uO=Object.create,cO=Object.defineProperty,dO=Object.defineProperties,pO=Object.getOwnPropertyDescriptor,fO=Object.getOwnPropertyDescriptors,hO=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,gO=Object.prototype.propertyIsEnumerable,vO=e=>{throw TypeError(e)},yO=(e,t,r)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bO=["class","method","getter","setter","accessor","field","value","get","set"],xO=e=>void 0!==e&&"function"!=typeof e?vO("Function expected"):e,SO=(e,t,r,n,o)=>({kind:bO[e],name:t,metadata:n,addInitializer:e=>r._?vO("Already initialized"):o.push(xO(e||null))}),wO=(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},CO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=bO[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,pO({get[r](){return IO(this,i)},set[r](e){return PO(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=SO(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?xO(s)&&(g[f]=s):"object"!=typeof s||null===s?vO("Object expected"):(xO(a=s.get)&&(g.get=a),xO(a=s.set)&&(g.set=a),xO(a=s.init)&&h.unshift(a));return g&&cO(o,r,g),o},EO=(e,t,r)=>t.has(e)||vO("Cannot "+r),IO=(e,t,r)=>(EO(e,t,"read from private field"),t.get(e)),DO=(e,t,r)=>t.has(e)?vO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PO=(e,t,r,n)=>(EO(e,t,"write to private field"),t.set(e,r),r);function MO(e){return e instanceof nq||e instanceof rq}var RO=Object.defineProperty,LO=Object.defineProperties,AO=Object.getOwnPropertyDescriptors,kO=Object.getOwnPropertySymbols,OO=Object.prototype.hasOwnProperty,qO=Object.prototype.propertyIsEnumerable,TO=(e,t,r)=>t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_O=(e,t)=>{for(var r in t||(t={}))OO.call(t,r)&&TO(e,r,t[r]);if(kO)for(var r of kO(t))qO.call(t,r)&&TO(e,r,t[r]);return e},jO=(e,t)=>LO(e,AO(t));function NO(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function FO(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 jO(_O({},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 jO(_O({},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,NO)}var zO="__default__";function WO(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function $O(e,t){return e.index-t.index}function HO(e){return Array.from(e).sort($O)}var VO,BO,GO,UO,YO,KO,XO,JO,ZO=[class extends ND{constructor(e){super(e);const t=AE((()=>{const{dragOperation:t}=e;if(QR(t.activatorEvent)&&MO(t.source)&&t.status.initialized){const t=e.registry.plugins.get(PA);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(!QR(e.nativeEvent))return;if(!MO(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=[];pE((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&MO(e)||!e.element)continue;let r=e.shape;const n=new KR(e.element,{getBoundingClientRect:e=>NM(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,nL);pE((()=>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||!MO(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;$R(c);const d=new KR(c);if(!d)return;const p=JI.delta(d,JI.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 ND{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof nq){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(HO(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!MO(o)||!MO(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=HO(l),g=s?m:HO(u),v=null!=(c=o.sortable.group)?c:zO,y=null!=(d=i.sortable.group)?d:zO,b={[v]:m,[y]:g},x=FO(b,e);if(b===x)return;const S=x[y].indexOf(o.sortable),w=x[y].indexOf(i.sortable);r.collisionObserver.disable(),WO(f,S,h,w),pE((()=>{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;MO(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=HO(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(WO(r,i.index,a,o.index),pE((()=>{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()}}}],QO={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},eq=new class{constructor(){yI(this,PI,new WeakMap)}get(e,t){var r;return e?null==(r=vI(this,PI).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return vI(this,PI).has(e)||vI(this,PI).set(e,new Map),null==(n=vI(this,PI).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=vI(this,PI).get(e))?void 0:t.clear():void 0}};BO=[CI],VO=[CI];var tq=class{constructor(e,t){DO(this,UO,wO(GO,8,this)),wO(GO,11,this),DO(this,YO),DO(this,KO),DO(this,XO,wO(GO,12,this)),wO(GO,15,this),DO(this,JO),this.register=()=>(pE((()=>{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=()=>{pE((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{pE((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=QO,plugins:u=ZO}=r,c=((e,t)=>{var r={};for(var n in e)mO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&hO)for(var n of hO(e))t.indexOf(n)<0&&gO.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new nq(c,t,this),this.draggable=new rq(((e,t)=>dO(e,fO(t)))(((e,t)=>{for(var r in t||(t={}))mO.call(t,r)&&yO(e,r,t[r]);if(hO)for(var r of hO(t))gO.call(t,r)&&yO(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)&&eq.clear(this.manager),(null==n?void 0:n.dragging)&&eq.set(this.manager,this.id,hE((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=IO(this,KO),o=IO(this,YO);e===n&&t===o||(PO(this,KO,e),PO(this,YO,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),PO(this,JO,c.element),this.manager=t,this.index=i,PO(this,KO,i),this.group=o,PO(this,YO,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=eq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=eq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){hE((()=>{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}=LR(n),l=VR(n,s,!1),u=VR(n,s);(i||a)&&HR({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){pE((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){pE((()=>{const t=IO(this,JO),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),PO(this,JO,e)}))}get element(){var e,t;const r=IO(this,JO);if(r)return null!=(t=null!=(e=GM.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){pE((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){pE((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){pE((()=>{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:rL}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){pE((()=>{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)}};GO=[,,,uO(null)],UO=new WeakMap,YO=new WeakMap,KO=new WeakMap,XO=new WeakMap,JO=new WeakMap,CO(GO,4,"index",BO,tq,UO),CO(GO,4,"group",VO,tq,XO),((e,t)=>{return yO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(GO,tq);var rq=class extends yk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},nq=class extends bk{constructor(e,t,r){super(e,t),this.sortable=r}},oq=Object.defineProperty,iq=Object.defineProperties,aq=Object.getOwnPropertyDescriptors,sq=Object.getOwnPropertySymbols,lq=Object.prototype.hasOwnProperty,uq=Object.prototype.propertyIsEnumerable,cq=(e,t,r)=>t in e?oq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dq=(e,t)=>{for(var r in t||(t={}))lq.call(t,r)&&cq(e,r,t[r]);if(sq)for(var r of sq(t))uq.call(t,r)&&cq(e,r,t[r]);return e};function pq(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=dq(dq({},QO),e.transition),y=Fk((t=>new tq(((e,t)=>iq(e,aq(t)))(dq({},e),{transition:v,register:!1,handle:xk(s),element:xk(a),target:xk(m),feedback:d}),t))),b=wk(y,fq);return Ik(o,(()=>y.id=o)),Sk((()=>{pE((()=>{y.group=u,y.index=l}))}),[y,u,l]),Ik(g,(()=>y.type=g)),Ik(t,(()=>y.accept=t),void 0,wI),Ik(i,(()=>i&&(y.data=i))),Ik(l,(()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()}),Ck),Dk(s,(e=>y.handle=e)),Dk(a,(e=>y.element=e)),Dk(m,(e=>y.target=e)),Ik(c,(()=>y.disabled=!0===c)),Ik(f,(()=>y.sensors=f)),Ik(r,(()=>y.collisionDetector=r)),Ik(n,(()=>y.collisionPriority=n)),Ik(d,(()=>y.feedback=null!=d?d:"default")),Ik(v,(()=>y.transition=v),void 0,wI),Ik(p,(()=>y.modifiers=p),void 0,wI),Ik(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 fq(e,t,r){return!("isDragSource"!==e||r||!t)}const hq=({id:e,itemIndex:t,sectionIndex:r})=>Zo.jsx("div",{children:`${r}:${t} - ${e}`}),mq=({id:e,itemIndex:t,sectionIndex:r})=>{const n=XC(lE),o=XC(aE),i=XC(nE)({sectionIndex:r}),{ref:a,isDragging:s}=pq({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??hq;return Zo.jsx(Rd,{"data-testid":"section-item",onClick:l,ref:a,"data-dragging":s,sx:{padding:0},children:Zo.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},gq=({sectionIndex:e})=>{const t=XC(nE),r=XC(rE),n=XC(oE),o=t({sectionIndex:e}),i=n(e),{ref:a}=iO({id:o,type:"column",accept:"item",collisionPriority:aP.Low});return Zo.jsx(Gu,{className:"exploration-list",ref:a,style:{overflow:"auto"},children:Zo.jsxs(vd,{children:[Zo.jsx(zc,{}),Zo.jsx(lO,{id:o,sectionIndex:e}),Zo.jsx(zc,{}),i?Zo.jsx(sO,{title:i.title,message:i.message}):null,aO(r(e)).map((r=>{const n=t({sectionIndex:e,itemIndex:r});return Zo.jsx(mq,{id:n,itemIndex:r,sectionIndex:e},n)}))]})})},vq=()=>{const e=XC(tE),t=XC(nE),r=XC(iE);return Zo.jsx(Nk,{onDragOver:e=>{r?.(e)},children:Zo.jsx(Gu,{style:{display:"flex",flexDirection:"column"},children:aO(e).map((e=>Zo.jsx(gq,{sectionIndex:e},t({sectionIndex:e}))))})})},yq=e=>Zo.jsx(VC,{children:Zo.jsx(uE,{props:e,children:Zo.jsx(vq,{})})}),bq="12px",xq="nebula-table-utils-head-menu-button",Sq="sn-copy-cell",wq="PSEUDO-DIM";let Cq=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 Eq="nebula-table-utils-column-adjuster";let Iq=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}({}),Dq=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Pq={darker:.15,brighter:.3,opacity:.03},Mq={darker:.3,brighter:.5,opacity:.05};let Rq=function(e){return e.Cyclic="C",e}({});const Lq={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},Aq="ChartExploration.PivotTable.DimensionSectionEmpty.Message",kq="ChartExploration.PivotTable.MeasureSectionEmpty.Message",Oq="#177fe6",qq=(e,t)=>{const r=new Map;for(const t of e)r.set(t.id,t);return t.reduce(((e,t)=>{const n=-1===t?wq:t,o=r.get(n);return o&&e.push(o),e}),[])},Tq=(e,t=new Set)=>uw((r=>{const n=r(e),o=r(iC);if(!n||0===n.length)return"disabled";const i=n.filter((e=>!t.has(e.id)));if(0===i.length)return"disabled";const a=i.filter((e=>o.has(e.id))).length;return 0===a?"none":a===i.length?"all":"some"})),_q=(e,t=new Set)=>uw(null,((r,n,o)=>{const i=r(e);i&&0!==i.length&&(e=>{const{items:t,shouldCheckAll:r,get:n,set:o,excludedIds:i}=e,a=t.filter((e=>!i?.has(e.id)));if(0===a.length)return;const s=n(iC),l=new Set,u=new Set;if(a.forEach((e=>{const t=s.has(e.id);t&&!r&&u.add(e.id),!t&&r&&l.add(e.id)})),0!==l.size||0!==u.size){if(l.size>0){const e=new Set(n(tC));l.forEach((t=>e.add(t))),o(tC,e)}if(u.size>0){const e=new Set(n(rC));u.forEach((t=>e.add(t))),o(rC,e)}Tw({type:"apply",localChecked:l,localUnchecked:u,handler:n(jw),model:n(_w),fieldInfo:n(Qw)})}})({items:i,shouldCheckAll:o,get:r,set:n,excludedIds:t})})),jq=uw((e=>{const t=e(Kw);return t?.qHyperCube.qDimensionInfo.filter($w).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),Nq=uw((e=>e(Yw)?.qHyperCube.excludedNoOfLeftDims??-1)),Fq=uw((e=>{const t=e(Yw),r=e(Fw),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map((e=>{if(-1===e)return{id:wq,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}}));return n})),zq=uw((e=>{const t=e(Yw),r=e(Fw),n=e(Fq),o=e(jq),i=e(Nq),a=e(Ww),s=e(jw),l=t?.qHyperCube.rankedList?.columns??s?.getRankedList("columns"),u=t?.qHyperCube.rankedList?.rows??s?.getRankedList("rows");if(void 0===t||void 0===n||void 0===o||void 0===l||void 0===u)return[];const c=-1===t.qHyperCube.qNoOfLeftDims,d=-1===i,p=c?n:n.slice(0,t.qHyperCube.qNoOfLeftDims),f=c?[]:n.slice(t.qHyperCube.qNoOfLeftDims),h=d?o:o.slice(0,i),m=d?[]:o.slice(i),g=[...p,...h].filter(a),v=[...f,...m].filter(a);return[{id:"rows",title:r("Common.Rows"),items:qq(g,u)},{id:"columns",title:r("Common.Columns"),items:qq(v,l)}]})),Wq=Ew((e=>uw((t=>t(zq).at(e))))),$q=Ew((({sectionIndex:e,itemIndex:t})=>uw((r=>r(Wq(e))?.items.at(t)?.title))),((e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex)),Hq=Ew((e=>uw((t=>t(Wq(e))?.title)))),Vq=uw((e=>({sectionIndex:t,itemIndex:r})=>{const n=e(Wq(t)),o=0===t?"rows":"columns";return void 0===n?o:void 0!==r?n.items.at(r)?.id??o:n.id})),Bq=uw((e=>t=>{const r=e(Wq(t));return r?.items.length??0})),Gq=Ew((e=>Tq(uw((t=>t(Wq(e))?.items)),new Set([wq])))),Uq=Ew((e=>_q(uw((t=>t(Wq(e))?.items)),new Set([wq])))),Yq=uw((e=>{const t=e(Kw);return t?.qHyperCube.qMeasureInfo.filter($w).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),Kq=uw((e=>{const t=e(Yw),r=e(Yq),n=e(Ww),o=e(jw),i=t?.qHyperCube.rankedList?.measures??o?.getRankedList("measures");if(void 0===t||void 0===r||void 0===i)return[];const a=t.qHyperCube.qMeasureInfo.filter($w).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})));a.push(...r);const s=a.filter(n);return qq(s,i)})),Xq=Ew((e=>uw((t=>t(Kq)[e].title)))),Jq=uw((e=>({itemIndex:t})=>{const r=e(Kq);return void 0!==t?r[t].id:"measures"})),Zq=uw((e=>()=>e(Kq).length)),Qq=Tq(Kq),eT=_q(Kq),tT=(e,t,r,n)=>{if("measure"===t)return e(n?Lq.noSearchFound.measure:Lq.noItems.measure);const o=n?Lq.noSearchFound:Lq.noItems;return e(r?o.row:o.column)},rT=(e,t,r)=>r?"":e("measure"===t?kq:Aq),nT=Ew((e=>uw((t=>{const r=t(Fw);return n=>{const o="measure"===e?t(Zq)():t(Bq)(n??0),i=0===n,a=t(zw).length>0;if(!(o>0))return{title:tT(r,e,i,a),message:rT(r,e,a)}}})))),oT=nT("measure"),iT=nT("dimensions"),aT=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),sT=({children:e,sectionIndex:t})=>{const r=Sw(void 0!==t?Gq(t):Qq),n=ww(void 0!==t?Uq(t):eT);return Zo.jsxs(Gu,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[Zo.jsx(yc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{n(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),Zo.jsx(aT,{children:e})]})},lT=({sectionIndex:e})=>{const t=Sw(Hq(e));return Zo.jsx(sT,{sectionIndex:e,children:t})},uT=x(((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Zo.jsx("g",{clipPath:"url(#dimension_svg__clip0_482_3308)",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.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}),Zo.jsx("defs",{children:Zo.jsx("clipPath",{id:"dimension_svg__clip0_482_3308",children:Zo.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),cT=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"})}))),dT=al("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),pT=al(cT)((()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${Oq} inset`}}))),fT=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,hT=(e,t)=>{const r=e.closest(".exploration-list"),n=r?.nextElementSibling||r?.parentElement?.nextElementSibling;return n?n.getElementsByClassName(t)[0]:e.closest(".exploration-panel")?.getElementsByClassName(t)[0]},mT=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},gT=e=>{const t=e.key===Cq.Down?(e=>{const{currentTarget:t}=e,r=fT(t),n=t.closest("li"),o=n?.nextElementSibling?.getElementsByClassName(r)[0];return o||hT(t,r)})(e):(e=>{const{currentTarget:t}=e,r=fT(t),n=t.closest("li"),o=n?.previousElementSibling?.getElementsByClassName(r)[0];return o||((e,t)=>{const r=e.closest(".exploration-list"),n=r?.previousElementSibling||r?.parentElement?.parentElement?.previousElementSibling;if(!n){const r=e.closest(".exploration-panel")?.getElementsByClassName(t).length||0;return r>0?e.closest(".exploration-panel")?.getElementsByClassName(t)[r-1]:null}const o=n.getElementsByTagName("li").length;return n.getElementsByClassName(t)[o-1]})(t,r)})(e);t&&mT(t)},vT=(e,t)=>{const{key:r}=e;switch(e.preventDefault(),r){case Cq.Tab:((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.explorationItemFocusRef.current){if(r===t.items.draggableIconRef.current){const e=r.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const r=e&&e[t.itemIndex+1];return void(r&&mT(r))}const n=hT(r,"exploration-item-focus");n&&mT(n)}}else{const e=r.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];e&&mT(e)}})(e,t);break;case Cq.Down:case Cq.Up:e.stopPropagation(),gT(e);break;case Cq.Enter:case Cq.Space:e.stopPropagation(),((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.draggableIconRef.current)if(r!==t.items.explorationItemRef.current)r===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id);else{const e=r.getElementsByClassName("exploration-draggable-icon")[0];mT(e)}else{const e=r.closest("li")?.getElementsByClassName("exploration-item")[0];e&&mT(e)}})(e,t)}},yT=({children:e})=>Zo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),bT=({icon:e,title:t,...n})=>{const[o,i]=Cw(iC),a=Sw(Fw),s=r.useRef(null),l=r.useRef(null),u=r.useRef(null),c={id:n.id,itemIndex:n.itemIndex,toggleCheckedById:i,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:u}};return Zo.jsxs(Gu,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),i(n.id)},onKeyDown:e=>{vT(e,c)},tabIndex:-1,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 24px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${Oq} inset`}},children:[Zo.jsxs(Gu,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDown:e=>{vT(e,c)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${Oq} inset`}},children:[Zo.jsx(yc,{checked:o.has(n.id),"aria-label":a("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:n.id===wq?"hidden":"visible"}}),Zo.jsx(e,{height:"12px",style:{flexShrink:0}}),Zo.jsx(yT,{children:t})]}),Zo.jsx(pT,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onKeyDown:e=>{vT(e,c)}})]})},xT=e=>{const t=Sw($q(e))??"";return Zo.jsx(bT,{title:t,icon:uT,...e})},ST=()=>{const e=Sw(Vq),t=Sw(Bq),r=Sw(iT);return Zo.jsxs(yq,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,children:[lT,xT]})},wT=()=>{const e=Sw(Fw);return Zo.jsx(sT,{children:e("Common.Values")})},CT=x(((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Zo.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),Zo.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]}))),ET=e=>{const{itemIndex:t}=e,r=Sw(Xq(t));return Zo.jsx(bT,{title:r,icon:CT,...e})},IT=()=>{const e=Sw(Jq),t=Sw(Zq),r=Sw(oT);return Zo.jsx(Gu,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:Zo.jsxs(yq,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,children:[wT,ET]})})},DT=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"})}))),PT=()=>{const[e,t]=Cw(zw),r=Sw(Fw),n=Sw(Zq),o=Sw(Bq),i=h((e=>{t(e.target.value)}),[t]),a=o(0),s=o(1),l=n(),u=0===e.length||0===a&&0===s&&0===l?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),l.toString());return Zo.jsxs(Gu,{style:{paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[Zo.jsx(dT,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),Zo.jsx(Rp,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:i,startAdornment:Zo.jsx(id,{position:"start",children:Zo.jsx(DT,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},MT=e=>{const t=((e="light",t=!1)=>Cs(xf(e,t)))();return Zo.jsx(ll,{theme:t,children:Zo.jsx(mw,{children:Zo.jsx(aC,{props:e,children:Zo.jsxs(Gu,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Zo.jsx(PT,{}),Zo.jsx(ST,{}),Zo.jsx(IT,{})]})})})})},RT=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:MT,classification:{tags:["exploration"],exclusive:!0}}};var LT={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:()=>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={},P=Array.isArray;function M(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(M(e)&&M(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(P(e)&&P(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}):M(i)&&M(a)?n=n.concat(D.generate(a,i,s)):P(i)&&P(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(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(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(M(a)&&M(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);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(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 O=D,q=function(e,r,n){if(!e)return Promise.resolve();var o=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 _(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=_(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(T))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",Pe={initBase:function(e,t){(t||Pe.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){Pe.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 Me=Pe;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:Oe,applyModifiers:qe,cleanUpMeasure:Te,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:Me.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 Oe(){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 qe({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}),qe({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 Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function qe(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 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;Me.isValid(r)||Me.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)):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"===Re(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.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:!Me.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):q(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 Oe({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 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}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}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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=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)}},_=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 P(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 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.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 M(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 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.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,P=void 0===D?O():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}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),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 M=i.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:M}),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",Pe="conditionalColoring",Me="measures",Re="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Pe,arrayName:Me,itemPath:Re})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Re,arrayName:Me,quarantineName:Pe})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="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:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,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})()}(LT);var AT=_e(LT.exports);const kT="qHyperCubeDef.qMeasures",OT="measures",qT="qHyperCubeDef.qDimensions",TT="dimensions",_T="qDef.representation",jT="tableRepresentation",NT="qDef.conditionalColoring",FT="conditionalColoring",zT="qMiniChartDef",WT="miniChartDef",$T=e=>{AT.unquarantineArrayProp({properties:e,arrayPath:qT,itemPath:_T,arrayName:TT,quarantineName:jT}),AT.unquarantineArrayProp({properties:e,arrayPath:kT,itemPath:_T,arrayName:OT,quarantineName:jT}),AT.unquarantineArrayProp({properties:e,arrayPath:kT,itemPath:NT,arrayName:OT,quarantineName:FT}),AT.unquarantineArrayProp({properties:e,arrayPath:kT,itemPath:zT,arrayName:OT,quarantineName:WT})},HT=e=>{AT.quarantineArrayProp({properties:e,arrayPath:qT,itemPath:_T,arrayName:TT,quarantineName:jT}),AT.quarantineArrayProp({properties:e,arrayPath:kT,itemPath:_T,arrayName:OT,quarantineName:jT}),AT.quarantineArrayProp({properties:e,arrayPath:kT,itemPath:NT,arrayName:OT,quarantineName:FT}),AT.quarantineArrayProp({properties:e,arrayPath:kT,itemPath:zT,arrayName:OT,quarantineName:WT})};function VT(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 BT(e){if("object"==typeof e&&VT(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 GT={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 UT(...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(VT(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 GT}(e)){const t=GT[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 YT(e){let t,r,n;if(VT(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?BT(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 KT(e){let t,r,n=0;const o="string"==typeof e?UT(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 XT(e){let t,r,n=0;const o="string"==typeof e?UT(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 JT(e){if(VT(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?BT(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function ZT(e,t){return VT(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:ZT(UT(e))}function QT(e){return VT(e)?1===e.a?JT(e):ZT(e):QT(UT(e))}const e_=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function t_(e){return.2126*e_(e.r)+.7152*e_(e.g)+.0722*e_(e.b)}function r_(...e){const t=UT(...e);return t.invalid||t_(t)<.4}function n_(...e){const t=UT(...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=KT(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=UT(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=JT(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=ZT(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=QT(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=YT(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?UT(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}=KT(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}=XT(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=XT(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)=>n_(o(18*e)),getDarkenedColor:(e=1)=>n_(o(18*-e))}}function o_(e,t){if(!e||!t)return;const r=t_(e),n=t_(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function i_(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 a_,s_="top",l_="top-right",u_="right",c_="bottom-right",d_="bottom",p_="bottom-left",f_="left",h_="top-left";i_(i_(i_(i_(i_(i_(i_(i_(i_(i_(a_={},"equal-equal",[s_,d_]),"equal-higher",[d_,c_]),"equal-lower",[s_,l_]),"equal-void",[s_,d_]),"higher-equal",[f_,p_,s_,l_]),"higher-higher-acute",[d_,p_,f_,l_]),"higher-higher-obtuse",[d_,s_]),"higher-lower-negative",[s_,l_,u_]),"higher-lower-positive",[d_,p_,f_]),"higher-void",[s_]),i_(i_(i_(i_(i_(i_(i_(i_(i_(i_(a_,"lower-equal",[s_]),"lower-higher-negative",[s_,h_]),"lower-higher-positive",[c_]),"lower-lower-acute",[s_,h_,f_,l_,u_]),"lower-lower-obtuse",[s_,d_]),"lower-void",[s_]),"void-equal",[s_]),"void-higher",[s_,d_]),"void-lower",[s_,d_,f_]),"void-void",[s_]),i_(a_,"unclassified",[s_,d_,u_,f_,l_,c_,p_,h_]);var m_,g_,v_=["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"],y_=["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 b_(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?y_:v_}var x_=function(){if(g_)return m_;g_=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 m_=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},m_}();function S_(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function w_(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function C_(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(x_);var E_=1/.7,I_="\\s*([+-]?\\d+)\\s*",D_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",M_=/^#([0-9a-f]{3,8})$/,R_=new RegExp(`^rgb\\(${I_},${I_},${I_}\\)$`),L_=new RegExp(`^rgb\\(${P_},${P_},${P_}\\)$`),A_=new RegExp(`^rgba\\(${I_},${I_},${I_},${D_}\\)$`),k_=new RegExp(`^rgba\\(${P_},${P_},${P_},${D_}\\)$`),O_=new RegExp(`^hsl\\(${D_},${P_},${P_}\\)$`),q_=new RegExp(`^hsla\\(${D_},${P_},${P_},${D_}\\)$`),T_={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 __(){return this.rgb().formatHex()}function j_(){return this.rgb().formatRgb()}function N_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=M_.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?F_(t):3===r?new H_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?z_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?z_(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=R_.exec(e))?new H_(t[1],t[2],t[3],1):(t=L_.exec(e))?new H_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=A_.exec(e))?z_(t[1],t[2],t[3],t[4]):(t=k_.exec(e))?z_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=O_.exec(e))?K_(t[1],t[2]/100,t[3]/100,1):(t=q_.exec(e))?K_(t[1],t[2]/100,t[3]/100,t[4]):T_.hasOwnProperty(e)?F_(T_[e]):"transparent"===e?new H_(NaN,NaN,NaN,0):null}function F_(e){return new H_(e>>16&255,e>>8&255,255&e,1)}function z_(e,t,r,n){return n<=0&&(e=t=r=NaN),new H_(e,t,r,n)}function W_(e){return e instanceof C_||(e=N_(e)),e?new H_((e=e.rgb()).r,e.g,e.b,e.opacity):new H_}function $_(e,t,r,n){return 1===arguments.length?W_(e):new H_(e,t,r,null==n?1:n)}function H_(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function V_(){return`#${Y_(this.r)}${Y_(this.g)}${Y_(this.b)}`}function B_(){const e=G_(this.opacity);return`${1===e?"rgb(":"rgba("}${U_(this.r)}, ${U_(this.g)}, ${U_(this.b)}${1===e?")":`, ${e})`}`}function G_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function U_(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Y_(e){return((e=U_(e))<16?"0":"")+e.toString(16)}function K_(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new J_(e,t,r,n)}function X_(e){if(e instanceof J_)return new J_(e.h,e.s,e.l,e.opacity);if(e instanceof C_||(e=N_(e)),!e)return new J_;if(e instanceof J_)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 J_(a,s,l,e.opacity)}function J_(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Z_(e){return(e=(e||0)%360)<0?e+360:e}function Q_(e){return Math.max(0,Math.min(1,e||0))}function ej(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}S_(C_,N_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:__,formatHex:__,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return X_(this).formatHsl()},formatRgb:j_,toString:j_}),S_(H_,$_,w_(C_,{brighter(e){return e=null==e?E_:Math.pow(E_,e),new H_(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new H_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new H_(U_(this.r),U_(this.g),U_(this.b),G_(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:V_,formatHex:V_,formatHex8:function(){return`#${Y_(this.r)}${Y_(this.g)}${Y_(this.b)}${Y_(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:B_,toString:B_})),S_(J_,(function(e,t,r,n){return 1===arguments.length?X_(e):new J_(e,t,r,null==n?1:n)}),w_(C_,{brighter(e){return e=null==e?E_:Math.pow(E_,e),new J_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new J_(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 H_(ej(e>=240?e-240:e+120,o,n),ej(e,o,n),ej(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new J_(Z_(this.h),Q_(this.s),Q_(this.l),G_(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=G_(this.opacity);return`${1===e?"hsl(":"hsla("}${Z_(this.h)}, ${100*Q_(this.s)}%, ${100*Q_(this.l)}%${1===e?")":`, ${e})`}`}}));const tj=Math.PI/180,rj=180/Math.PI,nj=4/29,oj=6/29,ij=3*oj*oj;function aj(e){if(e instanceof sj)return new sj(e.l,e.a,e.b,e.opacity);if(e instanceof pj)return fj(e);e instanceof H_||(e=W_(e));var t,r,n=dj(e.r),o=dj(e.g),i=dj(e.b),a=lj((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=lj((.4360747*n+.3850649*o+.1430804*i)/.96422),r=lj((.0139322*n+.0971045*o+.7141733*i)/.82521)),new sj(116*a-16,500*(t-a),200*(a-r),e.opacity)}function sj(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function lj(e){return e>.008856451679035631?Math.pow(e,1/3):e/ij+nj}function uj(e){return e>oj?e*e*e:ij*(e-nj)}function cj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pj(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function fj(e){if(isNaN(e.h))return new sj(e.l,0,0,e.opacity);var t=e.h*tj;return new sj(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}S_(sj,(function(e,t,r,n){return 1===arguments.length?aj(e):new sj(e,t,r,null==n?1:n)}),w_(C_,{brighter(e){return new sj(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sj(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 H_(cj(3.1338561*(t=.96422*uj(t))-1.6168667*(e=1*uj(e))-.4906146*(r=.82521*uj(r))),cj(-.9787684*t+1.9161415*e+.033454*r),cj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),S_(pj,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pj)return new pj(e.h,e.c,e.l,e.opacity);if(e instanceof sj||(e=aj(e)),0===e.a&&0===e.b)return new pj(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rj;return new pj(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pj(e,t,r,null==n?1:n)}),w_(C_,{brighter(e){return new pj(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pj(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return fj(this).rgb()}}));var hj=e=>()=>e;function mj(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):hj(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?mj: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):hj(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$_(e)).r,(t=$_(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=mj(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 gj="center",vj="bottom";[{key:"NoDataExist",alignment:gj,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:gj,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:gj,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:gj},{key:"DataRangeIncludingZero",alignment:vj},{key:"LimitedData",alignment:vj},{key:"NegativeOrZeroValues",alignment:vj}].reduce((function(e,t){return e[t.key]=t,e}),{});var yj,bj=["__proto__","constructor"];function xj(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!bj.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 Sj(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 wj(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 Cj(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 Ej(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Dj)):void 0===t&&(t=Ij);for(var r,n,o,i,a,s=new Rj(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 Rj(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mj)}function Ij(e){return e.children}function Dj(e){return Array.isArray(e)?e[1]:null}function Pj(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mj(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rj(e){this.data=e,this.depth=this.height=0,this.parent=null}function Lj(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")}}]}}Rj.prototype=Ej.prototype={constructor:Rj,count:function(){return this.eachAfter(Cj)},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 Ej(this).eachBefore(Pj)},[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)}},yj=function(e){
|
|
101
101
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
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}},tj({exports:{}});const hj="qHyperCubeDef.qDimensions",mj="dimensions",gj="qOtherTotalSpec.qTotalMode",vj="totalMode",yj={quarantine(e){hT.quarantineArrayProp({properties:e,arrayPath:hj,quarantineName:vj,arrayName:mj,itemPath:gj})},unquarantine(e){hT.unquarantineArrayProp({properties:e,arrayPath:hj,quarantineName:vj,arrayName:mj,itemPath:gj})}};function bj(e){const t=fj(e);return(e,r,n,o)=>{const i=hT.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&&nj(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],nj(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&&nj(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&&(hT.unquarantineProperty(i.qProperty,"noOfLeftDims"),hT.unquarantineProperty(i.qProperty,"excludedNoOfLeftDims "))}return hT.conditionalShow.unquarantine(i.qProperty),yj.unquarantine(i.qProperty),IT(i.qProperty),hT.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function xj(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=hT.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;nj(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),hT.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,nj(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),nj(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 hT.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),hT.quarantineProperty(i.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),hT.conditionalShow.quarantine(i.properties),yj.quarantine(i.properties),DT(i.properties),i}const Sj=[];for(let e=0;e<256;++e)Sj.push((e+256).toString(16).slice(1));let wj;const Cj=new Uint8Array(16);var Ej={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ij(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!wj){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wj=crypto.getRandomValues.bind(crypto)}return wj(Cj)}();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(Sj[e[t+0]]+Sj[e[t+1]]+Sj[e[t+2]]+Sj[e[t+3]]+"-"+Sj[e[t+4]]+Sj[e[t+5]]+"-"+Sj[e[t+6]]+Sj[e[t+7]]+"-"+Sj[e[t+8]]+Sj[e[t+9]]+"-"+Sj[e[t+10]]+Sj[e[t+11]]+Sj[e[t+12]]+Sj[e[t+13]]+Sj[e[t+14]]+Sj[e[t+15]]).toLowerCase()}(n)}const Dj=()=>crypto?.randomUUID?.()??function(e){return Ej.randomUUID&&!e?Ej.randomUUID():Ij(e)}(),Pj=1e3,Mj=1e3,Rj=e=>{const t=e.qDimensions,r=((e,t)=>{const r={};let n=[],o=!1;const i=-1!==e.indexOf(-1);e.forEach((e=>{r[e]?o=!0:r[e]=!0})),t&&(o=i?o||t.length+1!==Object.keys(r).length:o||t.length!==Object.keys(r).length),Object.keys(r).forEach((e=>{"-1"!==e&&n.push(parseInt(e,10))})),n=n.sort(((e,t)=>e-t));for(let e=0;e<n.length;++e)o=o||n[e]!==e;return o})(e.qInterColumnSortOrder,t);r&&(e.qInterColumnSortOrder=((e,t)=>{const r=[];if(t)for(let e=0;e<t.length;e++)r.push(e);return e.qMeasures.length>=2&&r.push(-1),r})(e,t))},Lj=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Aj=e=>{if(!e)return;Rj(e);const t=e.qDimensions,{qInterColumnSortOrder:r}=e,n=r?.filter((e=>-1!==e))||[];t&&((e,t,r=[])=>{for(let n=0;n<e.length;n++)if(-1!==e[n]&&e[n]!==n){const o=e[n],i=e.indexOf(n),a=e[i];Lj(e,n,i),Lj(t,n,i),Lj(r,r.indexOf(o),r.indexOf(a))}})(n,t,r)},kj=(e,t,r)=>{t&&(t.splice(r||0,1),t.push(e),t.splice((r||-1)+1,0,-1))},Oj=D;class qj extends Oj{constructor(e){super(e),this.path=e.path}async addDimension(e,t,r,n){const o=this.getDimensions(),i=void 0!==n?.asColumn&&n.asColumn;return e.qDef&&!e.qDef.cId&&(e.qDef.cId=Dj()),t?this.addAlternativeDimension(e,i,r):o.length<this.maxDimensions()?Promise.resolve(this.autoSortDimension(e)).then((()=>(Aj(this.hcProperties),((e,t,r,n,o)=>{if(!e)return;let{qNoOfLeftDims:i}=e;const{qInterColumnSortOrder:a}=e,s=t.length,l=a?.indexOf(-1);if(n||!i||-1!==i&&!Number.isNaN(+i))if(!n&&i&&i>=0){if(l&&l>=i?kj(s,a,l):(-1!==l&&--i,o&&o<=i&&-1!==l?kj(s,a,l):a?.push(s)),"number"==typeof o&&o<i){const e=Math.max(o-1,0);t.splice(e,0,r)}else t.splice(i,0,r);e.qNoOfLeftDims&&e.qNoOfLeftDims++}else{0===s&&(e.qNoOfLeftDims=0);const n="number"==typeof o?o+(i||0):void 0;l&&n&&l>=n?kj(s,a,l):a?.push(s),"number"==typeof o&&n?l&&n>l&&l>-1?t.splice(n-1,0,r):t.splice(n,0,r):t.push(r)}else e.qNoOfLeftDims=1,a?.unshift(s),t.splice(0,0,r)})(this.hcProperties,o,e,i,r),e))):void 0}async addDimensions(e,t,r){const n=[];for await(const o of e){const e=await this.addDimension(o,t,void 0,r);e&&n.push(e)}return n}addAlternativeDimension(e,t,r){const n=this.getAlternativeDimensions();let o=r;return void 0===o&&(o=t||void 0===this.hcProperties?.excludedNoOfLeftDims?n.length:this.hcProperties?.excludedNoOfLeftDims),void 0!==o&&n.splice(o,0,e),this.hcProperties&&void 0===this.hcProperties.excludedNoOfLeftDims?this.hcProperties.excludedNoOfLeftDims=t?n.length-1:n.length:this.hcProperties&&this.hcProperties.excludedNoOfLeftDims&&!t&&this.hcProperties.excludedNoOfLeftDims++,e}async addFieldDimension(e,t,r,n){const o=this.createFieldDimension(e,t,r);return this.addDimension(o,!1,void 0,n)}async addFieldDimensions(e,t){const r=e.map((e=>this.createFieldDimension(e.field,e.label,e.defaults)));return this.addDimensions(r,void 0,t)}async addLibraryDimensions(e,t={}){const r=e.map((e=>this.createLibraryDimension(e.id,e.defaults)));return this.addDimensions(r,void 0,t)}reinsertDimension(e,t,r,n){const o=this.getDimensions(),i=this.getAlternativeDimensions();return e.qDef&&!e.qDef.cId&&(e.qDef.cId=Dj()),o.length<this.maxDimensions()?this.addDimension(e,t,r,n):o.length<Pj?(r=i.length,i.splice(r,0,e),Promise.resolve(e)):Promise.resolve()}async removeDimensions(e,t,r){return Promise.all([...e].reverse().map((e=>this.removeDimension(e,t,r))))}removeDimension(e,t,r){if(t){const t=this.getAlternativeDimensions().splice(e,1);return!r?.asColumn&&this.hcProperties?.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,t}const n=this.getDimensions(),o=this.properties?.qHyperCubeDef.qNoOfLeftDims,i=this.hcProperties?.qInterColumnSortOrder.indexOf(e);this.properties?.qHyperCubeDef.qNoOfLeftDims&&i&&o&&i+1<=o&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties?.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=n.splice(e,1)[0];return((e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;e.splice(r,1)})(this.hcProperties?.qInterColumnSortOrder,e),Aj(this.hcProperties),s}async addMeasures(e,t=!1){const r=[];for await(const n of e){const e=await this.addMeasure(n,t,void 0,{keepNumberFormat:!0});e&&r.push(e)}return r}addAlternativeMeasures(e,t){const r=this.getAlternativeMeasures(),n=void 0===t?r.length:t;return r.splice(n,0,e)}async addMeasure(e,t,r,n){const o=this.getMeasures();if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=Dj()),t)return this.addAlternativeMeasures(e,r);if(n?.keepNumberFormat||delete e.qDef?.qNumFormat,o.length<this.maxMeasures()){const t=1===o.length;return o.push(e),this.autoSortMeasure(e).then((()=>(t&&this.hcProperties?.qInterColumnSortOrder.push(-1),e)))}return o.length<Mj?(this.getAlternativeMeasures().push(e),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t,r){const n=this.getMeasures(),o=this.getAlternativeMeasures(),i=this.hcProperties?.qInterColumnSortOrder;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=Dj()),r=void 0!==r?r:n.length,n.length<this.maxMeasures()){if(n.splice(r,0,e),this.hcProperties&&i&&2===n.length){-1===i.indexOf(-1)&&i.push(-1)}}else n.length<Mj&&(r=o.length,o.splice(r,0,e));return Promise.resolve(e)}removeMeasure(e,t){if(t&&e)return this.getAlternativeMeasures().splice(e,1);const r=this.getMeasures();let n,o,i;if(e&&e<r.length){n=2===r.length,o=this.getMeasures().splice(e,1)[0];const t=this.hcProperties?.qInterColumnSortOrder;n&&t&&(i=t.indexOf(-1),t.splice(i,1),this.hcProperties?.qNoOfLeftDims&&i+1<=this.hcProperties?.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else e&&(o=this.getAlternativeMeasures().splice(e-r.length,1)[0]);return o}async removeMeasures(e,t){return await Promise.all([...e].reverse().map((e=>this.removeMeasure(e,t)))),e}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}}const Tj={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let _j=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}({}),jj=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Nj=e=>{switch(e?.type){case"url":return _j.Link;case"image":return _j.Image;case"indicator":return _j.Indicator;case"miniChart":return _j.MiniChart;default:return _j.Text}},Fj=({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}}),zj=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Nj(e.qDef.representation)===_j.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}}}}}},Wj=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Fj({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Nj(e.qDef.representation)===_j.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Nj(e.qDef.representation)===_j.Link&&e.qDef.representation?.urlPosition===jj.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Nj(e.qDef.representation)===_j.Link&&e.qDef.representation?.urlPosition===jj.Attribute},...zj(r)}},$j=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[_j.Image],i=!n?.("qMiniChartDef")&&t[_j.MiniChart],a=!n?.("tableIndicators")&&t[_j.Indicator],s=o&&t[_j.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=>Nj(e.qDef.representation)===_j.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 Hj=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),Vj=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),Bj=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),Gj=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const Uj="image",Yj=(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},Kj=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:xq.Auto,translation:"Common.Auto"},{value:xq.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:xq.Pixels,translation:"Object.Table.Column.Pixels"},{value:xq.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:xq.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:bq.PixelsDefault,show:e=>e.qDef.columnWidth?.type===xq.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:bq.PercentageDefault,show:e=>e.qDef.columnWidth?.type===xq.Percentage}}),Xj=({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!==Uj},[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!==Uj)}}},Jj="TOTAL_OFF",Zj={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Vj.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Vj.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},Qj="TOTAL_OFF",eN={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Vj.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Vj.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Vj.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},tN=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:Jj,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Jj,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&Yj},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!==Jj&&Yj(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:Zj,...Xj({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Xj({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wj(e),...Kj()}}}},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:Zj,...Xj({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Xj({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$j(e,{[_j.Image]:!0,[_j.Indicator]:!0}),...Kj()}}}}}}})(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:Qj,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Qj,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&Yj},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!==Qj&&Yj(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:eN,...Xj({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Xj({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Wj(e),...Kj()}},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:eN,...Xj({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...Xj({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$j(e,{[_j.Image]:!0,[_j.ImagesInIndentMode]:!0,[_j.Indicator]:!0}),...Kj()}},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"}}}}}},rN=PS().palette,nN={TEXT:rN.text.primary,DISABLED:rN.text.disabled,HOVER:rN.action.hover,WHITE:xf.GREYSCALE_100,BORDER_MEDIUM:xf.GREYSCALE_85,DARK_MODE_TEXT:xf.GREYSCALE_95,DARK_MODE_BORDER:xf.GREYSCALE_95,DARK_MODE_DISABLED:xf.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:rN.primary.main,LINK:rN.info.main,ERROR:rN.error.main},oN=(e,t=nN.TEXT,r=nN.WHITE)=>{const n=zT(e),o=zT(t),i=zT(r);return n.isInvalid()?t:function(e,t,r){const n=WT(e,t),o=WT(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},iN=e=>{const t=e.getStyle("","","dataColors.selected")||nN.SELECTED,r=function(e,t){const r=zT("#FFFFFF"),n=zT(e),o=zT(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=WT(r,n),a=WT(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,nN.TEXT);return{background:t,color:r}},aN=(e,t)=>{const r=zT(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},sN=e=>{const t=zT(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},lN=e=>{e.stopPropagation(),e.preventDefault()},uN=(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}}}),cN=(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},dN=({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=>cN(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...r_(n).filter((e=>!a.includes(e))).map((e=>cN(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),pN=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],fN=({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=>cN(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...pN.filter((e=>!i.includes(e))).map((e=>cN(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),hN=({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:dN({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:fN({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:uN(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:uN(`${e}.background`,"properties.background",((t,r)=>{const n=r?nN.WHITE:nN.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),mN=({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:uN(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:uN(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),gN=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),vN="12px",yN="Source Sans Pro, sans-serif",bN="600",xN=15e3,SN=4/3;let wN=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),CN=function(e){return e.Solid="solid",e.None="none",e}({});const EN={display:"flex",justifyContent:"center",alignItems:"center"},IN={borderStyle:"solid"},DN={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},PN={lineHeight:SN,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},MN=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),RN=(e,t)=>e>0?`${e}px ${CN.Solid} ${t}`:CN.None,LN=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?RN(i,r):CN.None,borderBottom:RN(a,r),borderLeft:"rtl"===n?RN(i,r):CN.None,borderTop:CN.None}},AN=(e,t,r,n,o,i,a)=>{const s=LN(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=RN(2,o)),r||(s.borderLeft="rtl"!==i?RN(1,o):"none",s.borderRight="rtl"===i?RN(1,o):"none")),s},kN=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=RN(1,r)),t&&(n.borderRight=RN(1,r)),n},ON=(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}},qN=(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,items:{headerSection:hN({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:ON}),dimensionValueSection:hN({section:"dimensionValues",translator:e,flags:t,getThemeValue:ON}),measureValueSection:hN({section:"measureValues",translator:e,flags:t,getThemeValue:ON}),measureLabelSection:mN({section:"measureLabels",getThemeValue:ON}),totalValuesSection:mN({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:ON}),nullValuesSection:mN({section:"nullValues",fallbackBackground:wN.NullValueBackground,getThemeValue:ON}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:gN("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:gN("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:uN("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??wN.DividerLight)),divider:uN("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??wN.DividerDark)),background:uN("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??wN.Transparent))}}}}}}]}),TN=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}}},_N=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[qN(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:xq.Auto,translation:"Common.Auto"},{value:xq.Pixels,translation:"Object.Table.Column.Pixels"},{value:xq.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:xq.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:bq.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===xq.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:bq.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===xq.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)}}}}]},...TN(t)}}),jN="auto",NN={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:jN,translation:"Object.Table.SortingInSearch",options:[{value:jN,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function FN(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:tN(e),sorting:NN,addons:Tj,settings:_N(t,r)},definition:r.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?{dataHandler:e=>new qj(e)}:void 0}}function zN(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:FN(e),importProperties:bj(e),exportProperties:xj,exploration:pT(e)}}const WN=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function $N(e,t){return P((()=>e),t)}const HN={},VN=e=>{const t=P((()=>({current:HN})),[]);return t.current=t.current===HN?e:t.current,t},BN=e=>!!e&&0===zT(e).a,GN="#grid",UN=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},YN=(e,t,r,n,o)=>{const i=UN(".qv-object .qv-inner-object",r),a=UN(".qv-panel-sheet",r),s=UN(GN,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 sN(r);if("none"===n)return"transparent";if(void 0===n)return;const i=zT(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=BN(d),f=!BN(h=p?s:d)&&oN(h,nN.TEXT,nN.DARK_MODE_TEXT)===qT(nN.DARK_MODE_TEXT);var h;const m=((e,t,r,n=nN.WHITE)=>e&&!BN(e)?e:BN(t)?r&&!BN(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},KN=(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(GN),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return P((()=>({...o,background:YN(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function XN(e,t){const r=P((()=>({isLoading:!0})),t),[n,o]=R((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const JN=3;function ZN(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 QN({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=JN}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=oj(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=oj((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=ZN(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 eF,tF=C;eF=tF.createRoot,tF.hydrateRoot;const rF="Source Sans Pro, sans-serif";function nF(e,t){const[r,n]=v(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var oF={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 iF=({translator:e})=>(g((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oF).forEach((t=>{e.add(oF[t])}))}}(e)}),[e]),e),aF={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},sF={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},lF=il("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":{...aF},"&::-moz-range-track":{...aF},"&::-ms-track":{...aF},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...sF},"&::-moz-range-thumb":{...sF},"&::-ms-thumb":{...sF},"&: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"}}))),uF=({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=iF({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}};nF((()=>{g&&b()}),[e]);const x=e=>{const t=Math.max(e,bq.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:xq.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=>{lN(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=>{lN(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===vq.Left||e.key===vq.Right){lN(e);const t=5,r=e.key===vq.Left?t:-t,n="rtl"===p?r:-r;l?.(!0),x(h.current.columnWidth+n)}else e.key===vq.Space||e.key===vq.Enter?(lN(e),s(e),l?.(!1),S()):e.key===vq.Esc&&(lN(e),s(e),l?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Jo.jsx(lF,{style:y,hoverColor:o,isLastColumn:r,className:yq,"data-testid":yq,onMouseDown:e=>{lN(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:xq.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(lN(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":P,"aria-valuemin":bq.PixelsMin,"aria-valuemax":bq.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},cF=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),dF=il(Bu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),pF=il(cF,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),fF=il(ap)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),hF=il(Fc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),mF=il(dp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),gF=il(dp,{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"}))),vF=il("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"}))),yF=il("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),bF=il(su)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),xF=il(Od,{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}))),SF=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),wF=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?wF(t):t:e.parentElement?.children?.[0]},CF=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?CF(t):t},EF=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===vq.Down||t===vq.Up){const r=e=>t===vq.Down?wF(e):CF(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},IF=(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 DF={};const PF=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,f]=v(!1),m=r.useRef(null),g=h((e=>{e.stopPropagation(),f(!1)}),[f]);return Jo.jsxs(Jo.Fragment,{children:[Jo.jsxs(gF,{ref:s?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),DF={}),s?.length&&(f(!0),DF[o]=f,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:EF,children:[u?Jo.jsx(vF,{direction:c,isPagination:d}):null,Jo.jsxs(yF,{children:[Jo.jsx(xF,{direction:c,isPagination:d,children:Jo.jsx(i,{})}),Jo.jsx(bF,{variant:"body2",children:o})]}),s?.length?Jo.jsx(SF,{}):null]},t),s?.length?Jo.jsx(AF,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:IF(s,DF),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},MF=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Jo.jsx(mF,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Jo.jsx(PF,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),RF=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[MF({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Jo.jsx(hF,{"data-testid":"group-divider",variant:"middle"}):void 0])),LF={appear:0,enter:0,exit:0},AF=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Jo.jsx(fF,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:LF,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:RF({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,kF=(e,t)=>e.some((e=>t[e]>0)),OF={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},qF=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=v(null),[a,s]=v(OF);return nF((()=>{e||(s(OF),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:kF(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:kF(["qSelected"],e),canSelectPossible:kF(["qOption"],e),canSelectAlternative:kF(["qAlternative"],e),canSelectExcluded:kF(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},TF=x(((e,t)=>Jo.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:Jo.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"})}))),_F=x(((e,t)=>Jo.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:Jo.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"})}))),jF=x(((e,t)=>Jo.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:Jo.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"})}))),NF=x(((e,t)=>Jo.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:Jo.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"})}))),FF=x(((e,t)=>Jo.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:Jo.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"})}))),zF=x(((e,t)=>Jo.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:Jo.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"})}))),WF=x(((e,t)=>Jo.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:Jo.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"})}))),$F=x(((e,t)=>Jo.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:Jo.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"})}))),HF=x(((e,t)=>Jo.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:Jo.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"})}))),VF=x(((e,t)=>Jo.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:Jo.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"})}))),BF=x(((e,t)=>Jo.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:Jo.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"})}))),GF=x(((e,t)=>Jo.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:Jo.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"})}))),UF=x(((e,t)=>Jo.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:Jo.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 YF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const KF="/qListObjectDef",XF=({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[YF.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:TF,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:NF,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:WF,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Zq,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[YF.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:$F,enabled:!0}]}]),!e.isLocked&&r[YF.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:UF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(KF))},icon:HF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(KF))},icon:GF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(KF))},icon:VF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(KF))},icon:BF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(KF))},icon:_F,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:zF,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:FF,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[YF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:jF,enabled:!0}]}]),f},JF=({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,iconSize:b=fq})=>{const x=u(null),S=iF({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=qF({open:e,headerData:n,app:I,qStateName:d?.qStateName}),M=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:n}),R=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>h((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=h((e=>{e.stopPropagation(),t(!1)}),[t]),A=h((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Jo.jsxs(dF,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?Jo.jsx(pF,{height:b,className:hq,"data-testid":hq,isInteractionsActive:i.active??!1,children:Jo.jsx(cF,{})}):null,Jo.jsx(AF,{open:e,anchorEl:!1===y?x.current:r.current,onClose:L,menuGroups:XF({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:i,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:f}),direction:g,isPagination:v})]}):null},ZF=e=>e.isDark?{background:e.color,borderColor:nN.DARK_MODE_BORDER,color:nN.DARK_MODE_TEXT,disabledColor:nN.DARK_MODE_DISABLED,iconColor:nN.DARK_MODE_TEXT}:{background:e.color,borderColor:nN.BORDER_MEDIUM,color:nN.TEXT,disabledColor:nN.DISABLED},QF=il(Bu,{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}`}))),ez=il(Bp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),tz=il(tc,{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)}))),rz=il(su)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),nz=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g((()=>ZF(n.background)),[n]);if(!r.active)return null;const a=o?Jo.jsx(QF,{footerStyle:i,children:e}):null;return t?C.createPortal(e,t):a},oz=c({}),iz=()=>n(oz),az=({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,visibilityThreshold:v})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=g((()=>ZF(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=iF({translator:d}),w=g((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:v})),[t,r,n,o,i,a,s,l,u,c,S,p,f,h,m,b,y,x,v]);return Jo.jsx(oz.Provider,{value:w,children:e})};let sz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lz=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 uz=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),cz=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),dz=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),pz={FirstPage:cz,PreviousPage:uz,NextPage:SF,LastPage:dz,FirstPageRTL:dz,PreviousPageRTL:SF,NextPageRTL:uz,LastPageRTL:cz},fz=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=iz(),u=r.concat("rtl"===n?"RTL":""),c=pz[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}},hz=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=iz(),o=0===e.page,{IconComponent:i,styledProps:a}=fz({type:sz.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||lz.FirstPage)?null:Jo.jsx(tz,{...a,disabled:!r.active,children:Jo.jsx(i,{height:fq})})},mz=(e,t,r=!1)=>{r&&e.key===vq.Tab&&!e.shiftKey&&(lN(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))},gz=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=iz(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=fz({type:sz.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{mz(e,t,n)}:void 0;return o<=(a?.lastPage||lz.LastPage)?null:Jo.jsx(tz,{...u,onKeyDown:c,disabled:!i.active,children:Jo.jsx(l,{height:fq})})},vz=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=iz(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=fz({type:sz.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>lz.FirstPage&&o>lz.LastPage)&&t.enabled?e=>{mz(e,t,n)}:void 0;return Jo.jsx(tz,{...l,onKeyDown:u,disabled:!i.active,children:Jo.jsx(s,{height:fq})})},yz=()=>{const{pageInfo:e,interactions:t}=iz(),r=0===e.page,{IconComponent:n,styledProps:o}=fz({type:sz.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Jo.jsx(tz,{...o,disabled:!t.active,children:Jo.jsx(n,{height:fq})})},bz=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=iz(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||lz.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return Jo.jsx(rz,{variant:"caption",dir:"ltr",children:s})},xz=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=iz(),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 Jo.jsxs(Jo.Fragment,{children:[Jo.jsxs(rz,{variant:"caption",id:p,children:[c,":"]}),Jo.jsx(ez,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Sz=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=iz();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||lz.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=Jo.jsx(Jo.Fragment,{children:e.rowsPerPageOptions.map((e=>Jo.jsx("option",{value:e,children:e},e)))});return Jo.jsx(xz,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},wz=1e3,Cz="…",Ez=({totalPages:e,page:t})=>{const r=Math.min(e,wz),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-wz):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Jo.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Jo.jsx("option",{value:Cz,disabled:!0,children:Cz},"startMoreOptions")),o<e-1&&a.push(Jo.jsx("option",{value:Cz,disabled:!0,children:Cz},"endMoreOptions")),Jo.jsx(Jo.Fragment,{children:a})},Iz=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=iz(),{page:i}=e;if(t<=(o?.selectPage||lz.SelectPage))return null;const a=Jo.jsx(Ez,{totalPages:r,page:i});return Jo.jsx(xz,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Dz=b((e=>Jo.jsxs(az,{...e,children:[Jo.jsx(Sz,{}),Jo.jsx(Iz,{}),Jo.jsx(bz,{}),Jo.jsx(hz,{}),Jo.jsx(yz,{}),Jo.jsx(vz,{}),Jo.jsx(gz,{})]})));const Pz=e=>Jo.jsx(nz,{...e,children:Jo.jsx(Dz,{...e})}),Mz=c({}),Rz=()=>n(Mz),Lz=({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 Jo.jsx(Mz.Provider,{value:a,children:i})},Az=c({}),kz=()=>n(Az),Oz=({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 Jo.jsx(Az.Provider,{value:u,children:l})},qz=c({}),Tz=()=>n(qz),_z=({children:e,...t})=>Jo.jsx(qz.Provider,{value:t,children:e}),jz=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=kz(),{layoutService:r}=Tz(),n=e.getStyle("","","fontFamily")??yN;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:Jo.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Jo.jsx("span",{style:{...PN,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},Nz="/qHyperCubeDef",Fz=-1,zz="PSEUDO-DIM",Wz=e=>e===Fz?zz:(({cId:e})=>e??Dj())(e),$z=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===Fz?r.columnWidthLocation=Hj.Measures:r.isLeftDimension?r.columnWidthLocation=Hj.Dimension:t.at(-1)===Fz?r.columnWidthLocation=Hj.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Hj.Pivot))},Hz=(e,t,r,n)=>{const o=Wz(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===Fz?{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:Hj.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===Cq.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Hj.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},Vz=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===Fz?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]=Hz(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=Hz(e,t,r,i)})),l},Bz=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(Fz)?Vz({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(Vz({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)=>{$z({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):$z({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 Gz={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:Yz(e),value:Yz(t),useEqualSign:r}}(n,o,i))})),t}},Uz=Gz;function Yz(e){try{return decodeURIComponent(e)}catch{return e}}function Kz(e){if(!(this instanceof Kz))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:()=>Uz.fromSearchString(t.search)}})}function Xz(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Kz.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Kz.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=Xz(t.key),t.value?r+=`=${Xz(t.value)}`:r+=t.useEqualSign?"=":"";return r};var Jz=Kz;var Zz,Qz=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}},eW=class{decode(e){let t="";const r=new Qz(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},tW=e=>e>=0&&e<=1114111,rW=e=>e.match(/[\s]/),nW=class extends eW{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&&!rW(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return tW(a)?String.fromCharCode(a):"�"}},oW=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}},iW=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 oW.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return oW.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||oW.newInstanceIfNeeded(e,t,this._value)}},aW=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 iW);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},sW=(()=>{const e=[],t=[],r=new aW;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})(),lW=class extends eW{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,sW.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=sW.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)&&tW(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)&&tW(n)?String.fromCharCode(n):null}},uW=class extends eW{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),tW(i))?String.fromCharCode(i):(e.reset(),null)}},cW=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,dW=5e6,pW=5e5,fW=(e,t)=>{const{maxByteSizeSvg:r=pW,maxByteSizeImage:n=dW}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=cW.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&&(Zz=document.createElement("div"));var hW=Array.prototype.indexOf,mW=[",",".","_"," "],gW=[",",".","-","_"," "],vW={width:["%"],height:["%"]},yW={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},bW={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":yW.image,"background-color":yW.color,"border-color":yW.color,"border-image":yW.image,color:yW.color,icon:yW.image,"list-style-image":yW.image,"outline-color":yW.color},xW={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SW(e,t,r){let n;if(t){if(hW)return hW.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 wW(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return Zz.appendChild(r),t=Zz.innerHTML,Zz.removeChild(r),t}function CW(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=IW(e).toLowerCase(),t=IW(t),i=0;i<xW.attr_name.length;i++)if(e.match(xW.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<xW.attr_val.length;i++)if(t.toLowerCase().match(xW.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=vW[e],n||(n=gW),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]/)&&SW(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function EW(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=IW(e).toLowerCase(),t=IW(t),SW(e,xW.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<xW.css_val.length;n++)if(t.toLowerCase().indexOf(xW.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=bW[e],o||(o=yW.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]/)&&SW(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function IW(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new lW,new uW,new nW];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 DW=[];for(let e=0;e<255;e++)DW[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var PW={html:e=>wW(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]=EW(t,r[t],!0),i+=EW(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]=CW(e,t[e],!0),o+=CW(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function MW(e,t){throw new Error(t)}var RW={canonicalize:IW,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?PW.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&MW(this,"Invalid parameter type"),PW.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&MW(this,"Invalid parameter type"),PW.attr(e)):void MW(this,"Invalid parameter type")},encodeForAttr:CW,encodeForAttr2:function(e){return CW("nonsens",e,!0)},encodeForCSS:EW,encodeForHref:function(e){IW(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new Jz(e),r=Jz.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+Jz.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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=mW),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),SW(o,t)>=0||null==DW[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:wW,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=IW(t).toLowerCase():MW(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:fW,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 LW=(e,t)=>t.qAttrExps?.qValues?.[e],AW=(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"}}},kW=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&RW.isSafeDataURL(t)?{type:_j.Image,url:t,text:e,imageSize:r,resolvedImagePosition:AW(n,a),labelStructure:o,imageBox:i}:{type:_j.Text,url:void 0,text:e,labelStructure:o},OW=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:_j.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:_j.MiniChart,text:n,miniChart:a}},qW=(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===jj.Attribute?void 0:r?.urlLabel},TW=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:_j.Link,url:RW.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:_j.Text,url:void 0,text:t,labelStructure:e}}},_W=({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=Nj(t),d=s(e);return c===_j.Image&&u[_j.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=LW(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),kW({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 kW({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=LW(r.imageLabel??-1,e)?.qText??n;return kW({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:_j.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===_j.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===jj.Attribute){const i=qW(r.url??-1,e,t);return TW({labelStructure:n,text:o||i||"",url:i})}if(i===jj.Dimension){const i=qW(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),TW({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:_j.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===_j.Indicator&&u[_j.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:_j.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===_j.MiniChart&&u[_j.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?OW(e,t,i,d):{type:_j.Text,url:void 0,text:d,labelStructure:a}},jW=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?sN(o):null,a=n?sN(n):null,s=((e,t)=>e||!t?null:oN(t))(a,i);return{color:s??a,background:i}},NW=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:NW(e,t)),e),FW=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:xN-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,NW(s,e))},zW=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==Fz){if(t){const t=Nj(e.representation);return t===_j.Link||t===_j.Image?e.representation:{type:_j.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===_j.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:Nj(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),b=_W({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[_j.Image]:!0,[_j.Indicator]:!0}}),x={id:Dj(),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:FW(e,o,i,n,u,h),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:g,expressionColor:jW(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},WW=(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(Fz);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;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;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?zW({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},$W=(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)}))}))},HW=(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},VW=({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=WW(e.grid,l,u,r,n,o,i,a,s);$W(c,r.rowsOnCurrentPage);const d=HW(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},BW=({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:Dj(),ref:t,isNull:l}}))})),o},GW=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?BW({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},UW=(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]??zW({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},YW=({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=UW(e.grid,u,c,r,n,o,i,a,s,l);$W(d,r.size.x);const p=HW(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},KW=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),XW=(e,t)=>{const{env:r}=kz(),{direction:n}=Rz(),{layoutService:o,effectivePropertiesService:i}=Tz(),{qPivotDataPages:a,pageInfo:s}=Rz(),[l,u]=v(null),c=((e,t,r)=>g((()=>({left:e.map(KW),top:t.map(KW),measures:r.map(KW)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g((()=>Bz(o,i,t,e)),[o,i,t,e]),p=h((()=>a.slice(1).reduce(((e,t)=>GW({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return BW({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),f=h((()=>a.slice(1).reduce(((e,i)=>YW({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=UW([],u,l,t,r,n,o,i,a,s);$W(c,t.size.x);const d=HW(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)=>VW({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=WW([],l,s,r,t,n,o,i,a);$W(u,r.rowsOnCurrentPage);const c=HW(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()));nF((()=>{b(p())}),[p]),nF((()=>{S(f())}),[f]),nF((()=>{C(m())}),[m]),nF((()=>{l&&l.forEach((i=>{b((e=>GW({prevData:e,dataPage:i,pageInfo:s}))),S((e=>YW({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>VW({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}},JW=Math.sqrt(1e4),ZW=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/bq.PixelsMin)}),QW=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/JW),n=Math.ceil(e.qHeight/JW);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*JW,qTop:e.qTop+r*JW,qWidth:Math.min(JW,e.qWidth-o*JW),qHeight:Math.min(JW,e.qHeight-r*JW)});return t};function e$({nextPageHandler:e}){const{model:t}=kz(),{pageInfo:r}=Rz(),{layoutService:n}=Tz(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h((async(e,t)=>{await(i?.collapseLeft(Nz,e,t,!1))}),[i]),s=h((async(e,t)=>{await(i?.collapseTop(Nz,e,t,!1))}),[i]),l=h((async(e,t)=>{await(i?.expandLeft(Nz,e,t,!1))}),[i]),c=h((async(e,t)=>{await(i?.expandTop(Nz,e,t,!1))}),[i]),d=h((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(Nz,t.reduce(((e,t)=>[...e,...QW(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 Hj.Dimension:c=[{qPath:`${Nz}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case Hj.Measures:if(o)c=s.map(((e,t)=>({qPath:`${Nz}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${Nz}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case Hj.Pivot:c=[{qPath:`${Nz}/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:`${Nz}/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 t$=(e,t,r)=>(n,o)=>{if("P"===n)return Fz;const i=t[r+o];return e[i]},r$=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},n$=c({}),o$=()=>n(n$),i$=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=Tz(),{qPivotDataPages:n}=Rz();return g((()=>{const o=r$(n[0]?.qLeft??[]),i=r$(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(t$(r,t,0)),visibleTopDimensionInfo:i.map(t$(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=XW(t,r),u=e$({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 Jo.jsx(n$.Provider,{value:c,children:e})},a$=20,s$=18,l$=.75,u$=e=>-1!==e&&e?.representation?.type===_j.Image,c$=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===_j.Image,d$=e=>void 0===e?bN:e,p$=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,f$=e=>p$(e,bq.PixelsDefault),h$=(e,t)=>p$(e,bq.PercentageDefault)*t/100,m$=(e,t,r)=>{switch(t?.type){case xq.Pixels:return f$(t.pixels);case xq.Percentage:return h$(t.percentage,e);case xq.FitToContent:case xq.Auto:default:return r}},g$=({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===zz)return e+0;const v=c$({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:_j.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+s$+y+v+b)}),0),v$=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*s$;return Math.max(e,o+t(n.qFallbackTitle))}),0),y$=(e,t,r,n)=>{const o=100*e/t,i=n*l$*(o/100),a=o/100*+r;return Math.min(a,i)},b$=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),x$=(e,t)=>e.some((e=>e>=t*l$)),S$=({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*l$,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,g$({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,v$(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex((e=>e.id===zz)),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===xq.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+s$+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,v$(e.visibleMeasureInfo,l,!0));g=Math.min(d,g$({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=xq.Pixels,x.pixels=i);return[xq.Pixels,xq.Percentage].includes(x.type)||x$(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=x$(e,r);l===xq.Auto&&d&&(o>i?o-=i:i-=o),l===xq.Pixels&&u&&(o=y$(e[0],s,u,r),i=y$(e[1],s,u,r)),l===xq.Percentage&&c&&(o=b$(e[0],s,c,r),i=b$(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 w$({tableWidth:e}){const t=e*l$,{styleService:r,layoutService:n,effectivePropertiesService:o}=Tz(),{translator:i}=kz(),{gridSectionsData:{headersData:a}}=o$(),{measureText:s}=QN(r.header),{estimateWidth:l,measureText:u}=QN({...r.dimensionValues,fontWeight:d$(r.dimensionValues.fontWeight)}),{measureText:c}=QN({...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)+s$,a=Math.max(i,t);return Math.max(r,m?a:m$(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===zz)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?a$:0;return s$+s(t)+a$+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=s$;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===Hj.Pivot?t=m?void 0:f:i.columnWidthLocation===Hj.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===zz)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(u$(s))return bq.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return s$+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===Hj.Dimension&&a.size.x>1&&(r=e)}else r=y(s),i.columnWidthLocation===Hj.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:m$(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u}));return m&&a.size.x>1?S$({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);nF((()=>{f(d())}),[d]);const m=h(((e,t)=>{f(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:m}}function C$({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=Tz(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=o$(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=QN(n.measureValues),{estimateWidth:p}=QN({...n.dimensionValues,fontWeight:d$(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),v=m===Fz,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(bq.PixelsMax,Math.max(bq.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 xq.Pixels:i(t,f$(o));break;case xq.Percentage:i(t,h$(a,f));break;case xq.FitToContent:i(t,((e,t,r)=>r?bq.PixelsDefault:s$+(v?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+y)))(s,l,u$(e)));break;case xq.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(bq.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 E$=`scrollable-container--${Bj.TopGrid}`,I$=`scrollable-container--${Bj.LeftGrid}`,D$=`scrollable-container--${Bj.DataGrid}`,P$=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},M$=(e,t)=>e>t?Gj.Forward:e<t?Gj.Backward:Gj.None,R$=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=Rz();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])},L$=()=>{const{interactions:e}=kz(),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(P$(e.current).width,P$(r.current).width))})),m((()=>{(t.current||r.current)&&a(Math.max(P$(t.current).height,P$(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}=Rz(),{downloadService:l,viewService:u,layoutService:c}=Tz(),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(Gj.None),t=u(Gj.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h((n=>{if(n instanceof WheelEvent&&(e.current=M$(n.deltaY,0),t.current=M$(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=M$(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=M$(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}=Tz();return h((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===I$&&(e.leftGridScrollLeft=n.scrollLeft),o===D$&&(e.scrollLeft=n.scrollLeft),o===E$&&(e.topGridScrollTop=n.scrollTop),o!==I$&&o!==D$||(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),R$(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}}},A$=()=>{const{layoutService:e}=Tz(),{rect:t,pageInfo:r}=Rz();return g((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},k$=({children:e,style:t})=>Jo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),O$=({children:e,style:t})=>{const{direction:r}=Rz();return Jo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},q$=e=>e&&`scrollable-container--${e}`,T$=({children:e,style:t,origin:r},n)=>{const{interactions:o}=kz(),i=o.scroll?t:{overflow:"hidden"};return Jo.jsx("div",{"data-testid":"scrollable","data-key":q$(r),style:i,ref:n,children:e})};var _$=r.forwardRef(T$);const j$=({children:e,style:t})=>{const{direction:r}=Rz();return Jo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};function N$(){return N$=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},N$.apply(null,arguments)}function F$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(e,t){return z$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z$(e,t)}function W$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,z$(e,t)}var $$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function H$(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||$$(n)&&$$(o)))return!1;var n,o;return!0}function V$(e,t){var r;void 0===t&&(t=H$);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}}function B$(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}var G$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function U$(e){cancelAnimationFrame(e.id)}function Y$(e,t){var r=G$();var n={id:requestAnimationFrame((function o(){G$()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var K$=-1;function X$(e){if(void 0===e&&(e=!1),-1===K$||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),K$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return K$}var J$=null;function Z$(e){if(void 0===e&&(e=!1),null===J$||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?J$="positive-descending":(t.scrollLeft=1,J$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),J$}return J$}var Q$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function eH(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,F$(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:F$(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=V$((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=V$((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=V$((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(Z$()){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=Y$(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}W$(t,e),t.getDerivedStateFromProps=function(e,t){return tH(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=X$();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(Z$()){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&&U$(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?Q$: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],P=I[1],M=[];if(n>0&&v)for(var R=D;R<=P;R++)for(var L=C;L<=E;L++)M.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:N$({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},o(c||d||"div",{children:M,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 tH=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rH=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},nH=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},oH=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]},iH=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?aH(e,t,r,i,0,n):sH(e,t,r,Math.max(0,i),n)},aH=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=oH(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},sH=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&oH(e,t,n,r).offset<o;)n+=a,a*=2;return aH(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},lH=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=oH(e,t,r,i),u="column"===e?nH(t,i):rH(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}},uH=eH({getColumnOffset:function(e,t,r){return oH("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return iH("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=oH("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=oH("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:rH,getEstimatedTotalWidth:nH,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return lH("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return lH("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return oH("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return iH("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=oH("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=oH("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}}),cH=function(e,t){return e};function dH(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,F$(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:F$(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=V$((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=V$((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=V$((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(Z$()){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=Y$(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}W$(t,e),t.getDerivedStateFromProps=function(e,t){return pH(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?X$():0:l.scrollHeight>l.clientHeight?X$():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(Z$()){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?cH: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 P=E;P<=I;P++)D.push(o(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:N$({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%":M,pointerEvents:x?"none":void 0,width:S?M:"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 pH=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},fH=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]},hH=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=fH(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},mH=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&fH(e,r,t).offset<n;)r+=i,i*=2;return hH(e,t,Math.min(r,o-1),Math.floor(r/2),n)},gH=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},vH=dH({getItemOffset:function(e,t,r){return fH(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:gH,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=fH(e,t,o),p=gH(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?hH(e,t,o,0,r):mH(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=fH(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=fH(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 yH(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 bH=["style"],xH=["style"];function SH(e,t){var r=e.style,n=B$(e,bH),o=t.style,i=B$(t,xH);return!yH(r,o)&&!yH(n,i)}const wH=10,CH=(e,t)=>e.current===Gj.Backward?t:0,EH=(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},IH=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,DH=({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(EH(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&IH(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},PH=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===Gj.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return DH({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},MH=({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=CH(r,wH),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+wH,s-u),pageTop:o,qHeight:a}})(n,o,r),u=DH({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...PH({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},RH=(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},LH=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,AH=({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(RH(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&LH(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},kH=({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=CH(r,wH),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+wH,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=AH({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===Gj.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=AH({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},OH=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Gj.None&&(p=kH({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==Gj.None&&(f=MH({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===Gj.None&&a.current===Gj.None&&(p=AH({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},qH=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))}}(OH,100),TH=ij(OH,75),_H=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),jH=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=Rz(),{styleService:{grid:{border:l,divider:u}}}=Tz();return Jo.jsx("div",{style:{...e,...DN,...LN(r,n,l,s,o),...kN({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},NH=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=Tz(),a=o&&i;return Jo.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})},FH=e=>{const{type:t,imageSize:r}=e;return t!==_j.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},zH=e=>"number"==typeof e&&!Number.isNaN(+e),WH=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,$H=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),HH=x(((e,t)=>Jo.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:Jo.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"})}))),VH=x(((e,t)=>Jo.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:[Jo.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"}),Jo.jsx("use",{fillRule:"evenodd"})]}))),BH=x(((e,t)=>Jo.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:Jo.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"})}))),GH=x(((e,t)=>Jo.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:Jo.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"})}))),UH=x(((e,t)=>Jo.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:Jo.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"})}))),YH=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"M2 7h12v2H2z"})}))),KH=x(((e,t)=>Jo.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:Jo.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"})}))),XH=x(((e,t)=>Jo.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:Jo.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"})}))),JH=x(((e,t)=>Jo.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:Jo.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"})}))),ZH=x(((e,t)=>Jo.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:Jo.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"})}))),QH=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),eV=x(((e,t)=>Jo.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:Jo.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"})}))),tV=x(((e,t)=>Jo.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:Jo.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"})}))),rV=x(((e,t)=>Jo.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:Jo.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"})}))),nV={m:QH,"ï":JH,R:x(((e,t)=>Jo.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:Jo.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:eV,T:tV,U:rV,P:XH,Q:UH,"è":x(((e,t)=>Jo.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:Jo.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"})}))),"¢":BH,"©":VH,"23F4":GH,2013:ZH,"&":KH,add:$H,"minus-2":YH,dot:HH},oV=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&nV[t];return o&&Jo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Jo.jsx(o,{style:{height:e}})})},iV=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),aV=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},sV=(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&&zT(e.localPaletteColors[t].color).blend(zT(s.color),s.t)},lV=(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:iV(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:aV(n,t,r)})))),n},uV=(e,t,r,n)=>{const o=lV(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=sV(e,a,t);break}n=i}return r})(o,t);return a},cV=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!zH(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||!zH(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)},dV=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=cV(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||!zH(t))return 0;let a=r&&zH(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}},pV=e=>"flex-start"===e?"flex-end":"flex-start",fV=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=dV(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 aV(o,r.limitPaletteColorIndex,n);const a=iV(r.limitRange,t);return uV(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}},hV=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=Tz(),{theme:o}=kz(),{direction:i}=Rz(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=fV(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||vN,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Jo.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&&oV({size:v,iconKey:y,color:b,pvStyle:S}),Jo.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&oV({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,oV({size:v,iconKey:y,color:b,pvStyle:S}))},mV=(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}},gV=(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},vV=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=c$({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===_j.Image)return a&&l&&"center"!==l&&"rtl"===n?pV(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return mV(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return mV(u,s,n)},yV=e=>!!e.target?.getAttribute("class")?.includes(yq),bV=(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}},xV=e=>null!==e.target?.closest("[data-prevent-selection]"),SV=e=>"A"===e.target?.tagName,wV=({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 CV=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),EV=()=>n(CV),IV=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=Rz(),r=e.isActive(),[n,o]=d(bV,{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:[Nz,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);yV(r)||xV(r)||SV(r)||!(e=>1===e.buttons)(r)||!n||o(wV({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=h((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([Nz]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=h(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);yV(r)||xV(r)||SV(r)||!n||(o(wV({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 Jo.jsx(CV.Provider,{value:r,children:e})},DV=e=>"fill"===e.representation.imageSize,PV=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&DV(e)&&t&&(r="center"),e.representation.type!==_j.Image||DV(e)?r:e.representation.resolvedImagePosition?.vertical};var MV=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(MV||{});const RV={brighter:.5,darker:.3,opacity:.03},LV=(e,{cell:t,styleService:r})=>{if(e===MV.Background||e===MV.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]},AV=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=LV(MV.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?LV(MV.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${aN(i=o,RV)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},kV=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:LV(MV.Color,{cell:e,styleService:t}),OV=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=LV(MV.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?bN:o},qV=({cell:e,styleService:t})=>LV(MV.FontStyle,{cell:e,styleService:t}),TV=({cell:e,styleService:t})=>LV(MV.TextDecoration,{cell:e,styleService:t}),_V=e=>e?"pointer":"default",jV=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},NV=(e,t)=>{if(!e.isLeftColumn||e.representation.type===_j.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},FV=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=Tz(),{interactions:i}=kz(),{isActive:a}=EV(),{dataModel:s}=o$();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=kV({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?zF:FF;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=c$({isLeftColumn:t,layoutService:o,representation:e.representation});return Jo.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,...NV(e,n),...f&&{alignSelf:PV(e)}},onClick:l?void 0:jV({cell:e,expandOrCollapse:p})})},zV=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},WV=(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%"}},$V=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},HV=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=c$({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}}},VV=e=>{if("alwaysFit"===e)return"contain"},BV=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),GV=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:WV(e,r,n),height:zV(e),objectFit:VV(e),objectPosition:$V(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),UV=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=Tz(),t=u(null),{promise:r,resolve:n}=g((()=>WN()),[]);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}}=Tz(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Jo.jsx("img",{src:a,alt:s,style:{...GV({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},YV=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=Tz(),{resolvedImagePosition:u}=e;return Jo.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",...HV({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Jo.jsx(UV,{representation:e,textStyle:t,isMeasureCell:!0})})},KV={display:"flex",flexDirection:"row",alignItems:"center"},XV={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},JV=(e,t,r,n)=>t?{...XV,...e.nullValues}:r?{...KV,color:e.totalValues.color,background:n??e.totalValues.background}:{...KV,color:e.measureValues.color,background:n??e.measureValues.background},ZV=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...PN,...!r&&MN(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?bN:l,fontStyle:u,textDecoration:c}},QV=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=Tz(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===_j.Image,c=t.type===_j.Indicator,d=zH(WH(l)),p=ZV(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Jo.jsx(YV,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=WH(e.isNull?t.text:e.ref.qNum);return c&&zH(f)?Jo.jsx(hV,{representation:t,cellValue:f,textStyle:p}):Jo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},eB=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,tB="flex-start",rB=(e,t)=>e.isNull?tB:t.type===_j.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:tB,nB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=kz(),{pageInfo:i,direction:a}=Rz(),{styleService:s,layoutService:l}=Tz(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:m}}=o$(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=Tz(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=o$(),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])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=o$(),r=t.length;return h((t=>{const n=e.grid.at(r-1)?.[t];return _H(n,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=Tz(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=o$(),n=r.length;return h((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return _H(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:b}=n,x=p.grid.at(m.length-1),S=d.grid.at(f.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return Jo.jsx(jH,{style:{...r,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?eB(S,t):eB(x,e),P=l.visibleMeasureInfo[D],M=_W({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:o,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[_j.Image]:!0,[_j.Indicator]:!0}}),R=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():M.text,A=!C.isNull||!Number.isNaN(+L),k=jW(u.measures[D],C.ref),O=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==_j.Image?mV(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,P,M,A,a),q={...JV(s,C.isNull,R,k.background),...LN(E,I,s.grid.border,a,b),...kN({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...DN,padding:"0px 4px",display:"flex",justifyContent:O};return Jo.jsx("div",{className:mq,title:L,style:{...q,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Jo.jsx(NH,{width:FH(M),verticalAlign:rB(C,M),children:Jo.jsx(QV,{cell:C,representation:M,isTotalValueCell:R,color:k.color,cellHorizontalAlignment:O})})})};var oB=r.memo(nB,SH);const iB=(e,t)=>t.list[e]?.id??e.toString(),aB=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,sB=e=>({...IN,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),lB=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=Rz(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=Tz(),{dataModel:f,gridSectionsData:{measureData:g}}=o$(),v={...sB(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=Rz(),{downloadService:n,viewService:o,layoutService:i}=Tz(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=o$(),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===Gj.None?0:wH),m=o.gridHeight+d+(e.current===Gj.None?0:wH);let g=qH;m*h>1500&&(g=TH),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return nF((()=>{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:Jo.jsx(uH,{"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:aB,direction:u,children:oB})};var uB=b(lB);const cB=x(((e,t)=>Jo.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:[Jo.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"}),Jo.jsx("use",{fillRule:"evenodd"})]}))),dB=e=>{const[t,r]=v(!1);return nF((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},pB=()=>{const[e,t]=v(!1),{dataModel:r}=o$(),{interactions:n}=kz(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=dB([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||yV(e)||o||t(!0)},setIsAdjustingWidth:i}};function fB(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===wN.Transparent?nN.WHITE:n,i=zT(e.grid.border),a=zT(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return zT(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 hB=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=Rz(),{interactions:l,translator:u}=kz(),{isActive:c}=EV(),{dataModel:d}=o$(),{styleService:p}=Tz(),[,f]=v({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=fB(p,e);return Jo.jsx(uF,{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)*l$,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},mB=il(Bu,{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}}))),gB=il("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),vB=il("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...EN,justifyContent:e??EN.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),yB=il("div")((()=>({...EN}))),bB=il("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}))),xB=il(ap)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),SB=il(dp,{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}}}))),wB=il("span")({textOverflow:"ellipsis",overflow:"hidden"}),CB=il("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:a$,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),EB=il("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let IB=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const DB=(e,t)=>({qExcludeList:t===IB.Expand,qPos:{qDimName:e,qElemNo:[]}}),PB=`${Nz}/qExpansionState`,MB=({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:DB(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=PB,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${PB}/-`,t=JSON.stringify(o)):(r=`${PB}/${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`})},RB=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:MB({...n,action:IB.Expand}),collapseCallback:MB({...n,action:IB.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},LB={[YF.Sorting]:!0,[YF.Selections]:!0,[YF.Searching]:!0},AB=({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}=Tz(),{app:g,interactions:v,embed:y,translator:b,model:x}=kz(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:I,color:D,background:P,hoverBackground:M,activeBackground:R}=f.header,L=u(null),{shouldShowLockIcon:A,shouldShowMenuIcon:k}=a,{open:O,setOpen:q,handleOpenMenu:T,setIsAdjustingWidth:_}=pB(),{direction:j}=Rz(),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)??{},$=mV(W,"flex-start",j);return Jo.jsxs(mB,{className:mq,title:e.label,interactions:v,background:O?R:P,hoverBackground:M,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...DN,...AN(e,o,r,n,f.grid.border,j),color:D},"data-testid":"title-cell",onClick:T,children:[Jo.jsxs(vB,{children:[A?Jo.jsx(yB,{children:Jo.jsx(cB,{height:12})}):null,Jo.jsx(bB,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:I,justifyContent:$,children:Jo.jsx("span",{style:PN,children:e.label})})]}),e.isDim?Jo.jsxs(Jo.Fragment,{children:[Jo.jsx(JF,{headerData:e,translator:b,anchorRef:L,open:O,setOpen:q,interactions:v,menuAvailabilityFlags:LB,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:RB({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),Jo.jsx(gB,{ref:p,direction:j}),Jo.jsx(gB,{ref:L,direction:j})]}):null,Jo.jsx(hB,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},kB=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=Tz(),{direction:n}=Rz();return e>0&&t>0?Jo.jsx("div",{style:{...IN,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},OB=x(((e,t)=>Jo.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:Jo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),qB=x(((e,t)=>Jo.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:[Jo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Jo.jsx("use",{fillRule:"evenodd"})]}))),TB=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=Rz(),{styleService:o}=Tz(),{interactions:i,translator:a}=kz(),{isActive:s}=EV(),{dataModel:l}=o$(),{setIsAdjustingWidth:u}=dB([l]);if(!(!!i.active&&!s))return null;const c=fB(o,{isLeftColumn:!0});return Jo.jsx(uF,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*l$))},confirmWidthCallback:n=>{if(n.type===xq.FitToContent)return void l.applyIndentModeColumnWidth({type:xq.Auto});const o=Math.min(n.pixels??t,e*l$);r(o),l.applyIndentModeColumnWidth({type:xq.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},_B=x(((e,t)=>Jo.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:Jo.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"})}))),jB=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=kz(),{layoutService:c,effectivePropertiesService:d}=Tz(),{open:p,setOpen:f,handleOpenMenu:h}=pB();return Jo.jsxs(SB,{onClick:h,isActive:p,children:[Jo.jsx(wB,{children:e.label}),Jo.jsxs(CB,{className:"indent-mode-dropdown-more",visible:p,children:[Jo.jsx(_B,{}),e.isDim?Jo.jsxs(Jo.Fragment,{children:[Jo.jsx(JF,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:LB,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:RB({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Jo.jsx(gB,{ref:n}),Jo.jsx(gB,{ref:r})]}):null]})]})},NB=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===zz,i=e+1<r.length&&r[e+1]?.id===zz;return!(n&&o&&i)&&(t?.id!==zz&&e<r.length-1)},FB=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=Tz(),{interactions:a,translator:s}=kz(),{dataModel:l,gridSectionsData:{headersData:c}}=o$(),[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}=dB([l]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Jo.jsxs(mB,{isDimension:!0,background:d?b:g,interactions:a,hoverBackground:y,style:{...P,...DN,color:m},onClick:e=>{!a.active||yV(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Jo.jsxs(vB,{justifyContent:"flex-start",children:[Jo.jsx(bB,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Jo.jsx("span",{style:PN,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Jo.jsx(qB,{}):Jo.jsx(OB,{}),Jo.jsx(gB,{ref:f})]}),Jo.jsx(xB,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==zz&&Jo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:Jo.jsx(jB,{cell:r,changeSortOrder:t})}),NB({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Jo.jsx(hF,{"data-testid":"group-divider",variant:"middle"})]))}),Jo.jsx(TB,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},zB=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,WB={display:"grid",width:"fit-content"},$B=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=Tz(),{gridSectionsData:{headersData:u}}=o$();return Jo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...WB,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Jo.jsx(kB,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(zB({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Jo.jsx(FB,{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(Jo.jsx(AB,{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 HB=b($B);const VB=(e,t,r,n)=>{const{layoutService:o}=Tz();m((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},BB=(e,t)=>{nF((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},GB=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},UB=()=>{},YB=({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}=Tz(),{interactions:f}=kz(),{direction:h}=Rz(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=EV(),{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=>GB(e,n))):void 0,C=S?v(c):void 0,E=S?y(c,(e=>GB(e,n))):void 0,I=c$({isLeftColumn:s,layoutService:p,representation:r.representation});return Jo.jsx("div",{className:mq,title:f.passive?r.representation.text:void 0,style:{...t,...LN(i,a,d.grid.border,h,b),...kN({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...DN,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:_V(S),background:AV({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:vV(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:gV(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:UB,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})},KB=e=>{e.stopPropagation()},XB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:KB,color:nN.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),JB=({href:e,text:t,interactions:r,color:n})=>Jo.jsx(dd,{...XB({href:e,text:t,interactions:r,color:n}),children:t}),ZB=U();ZB.use(G),ZB.renderer.prio(["canvas"]);const QB=(e,t)=>e&&"center"!==e&&"rtl"===t?pV(e):e,eG=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=Tz(),{direction:a}=Rz();return Jo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Jo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:PV(e),alignItems:QB(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Jo.jsx(UV,{representation:t,textStyle:r})}),Jo.jsx(EB,{padding:4/(i<=2?2:1),alignSelf:PV(e,!0),children:!!t.labelStructure&&BV(t.labelStructure)})]})},tG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,rG=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Jo.jsxs("span",{children:[Jo.jsx(dd,{...XB({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&tG(r)]}),nG=({children:e,textStyle:t,shouldEnableStickyText:r})=>Jo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),oG=({isLeftColumn:e,styleService:t,cell:r,isIndentModeEnabled:n})=>e?n?t.grid.lineClamp:Math.max(t.grid.lineClamp,r.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,iG=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=Rz(),{isActive:o}=EV(),{layoutService:i,styleService:a}=Tz(),{interactions:s}=kz(),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,isIndentModeEnabled:o})=>({...PN,...MN(oG({cell:e,isLeftColumn:n,styleService:t,isIndentModeEnabled:o})),color:kV({cell:e,styleService:t,isCellSelected:r}),fontWeight:OV({cell:e,styleService:t}),fontStyle:qV({cell:e,styleService:t}),textDecoration:TV({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r,isIndentModeEnabled:i.isIndentModeEnabled});if(e.representation.type===_j.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?eG:YV;return Jo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:vV(e,i,r,n)})}if(e.representation.type===_j.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?rG:JB;u=Jo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Jo.jsx(nG,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===_j.Image&&e.isNull?{alignSelf:PV(e)}:{}},children:u})},aG=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=Tz(),{isSelected:i}=EV(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=dB([r]),f=GB(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=_H(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Jo.jsx(jH,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return Jo.jsxs(YB,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Jo.jsxs(NH,{verticalAlign:PV(f),width:FH(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Jo.jsx(FV,{isLeftColumn:a,isCellSelected:v,cell:f}),Jo.jsx(iG,{isLeftColumn:a,isCellSelected:v,cell:f})]}),Jo.jsx(hB,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Hj.Measures:Hj.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var sG=r.memo(aG,SH);const lG=({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)},uG=(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}},cG=(e,t)=>r=>{e.current&&(e.current[t]=r)},dG={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...IN},pG={overflow:"hidden",willChange:"auto",flexShrink:0},fG=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=Rz(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=Tz(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=o$();BB(e,d),VB(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...dG,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Jo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=Wz(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=uG(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 Jo.jsx(vH,{ref:cG(e,u),style:{...pG,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:iB,estimatedItemSize:v,children:sG},m)}))})};var hG=b(fG);const mG={overflow:"hidden",willChange:"auto"},gG=e=>({...IN,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),vG=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=Rz(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=Tz(),{gridSectionsData:{headersData:c,topDimensionData:d}}=o$(),p={...gG(a),borderColor:l,height:n};BB(e,d),VB(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Jo.jsx("div",{style:{width:r,height:n,...gG(a)}}):Jo.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}=uG(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=zB({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?Wz(g):`empty ${l}`;return Jo.jsx(vH,{ref:cG(e,l),style:mG,height:t(),width:r,itemCount:p,itemSize:lG({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:iB,estimatedItemSize:h,direction:a,children:sG},v)}))})};var yG=b(vG);const bG=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=Tz(),r=A$(),n=(()=>{const{model:e}=kz(),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}}=L$(),{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}=Tz(),{gridSectionsData:{headersData:i}}=o$(),{measureText:a}=QN(o.header),s=w$({tableWidth:e}),l=C$({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)+s$;return t&&d+a$<=l&&(c=!0,d+=a$),d+a$<=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:P,topGridDims:M,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=A$(),{pageInfo:l}=Rz(),{gridSectionsData:{headersData:u,topDimensionData:c}}=o$(),d=Math.min(s.height*l$,Math.max(s.height*l$-25,s.height-t-a)),p=s.width*l$,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),P=Math.min(I,f),M=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:M-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:M-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:M-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,P-(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}}),O=h((()=>e),[e]),q=h((()=>t),[t]);return(()=>{const{downloadService:e}=Tz();p((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Jo.jsxs(O$,{style:D,children:[Jo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Jo.jsx(HB,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:n,overrideLeftGridWidth:I})}),Jo.jsx(_$,{style:k.topGrid,origin:Bj.TopGrid,ref:i,children:Jo.jsx(k$,{style:M.fullSizeWrapper,children:Jo.jsx(j$,{style:M.stickyWrapper,children:Jo.jsx(yG,{topGridRef:l,rowHightCallback:O,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Jo.jsx(_$,{style:k.leftGrid,origin:Bj.LeftGrid,ref:a,children:Jo.jsx(k$,{style:R.fullSizeWrapper,children:Jo.jsx(j$,{style:R.stickyWrapper,children:Jo.jsx(hG,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),Jo.jsx(_$,{style:k.dataGrid,origin:Bj.DataGrid,ref:s,children:Jo.jsx(k$,{style:L.fullSizeWrapper,children:Jo.jsx(j$,{style:L.stickyWrapper,children:Jo.jsx(uB,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},xG=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=kz(),{pageInfo:o,updatePageInfo:i,rect:a}=Rz(),{layoutService:s}=Tz(),{layout:l,hasData:u}=s;return Jo.jsxs(Jo.Fragment,{children:[u?Jo.jsx(bG,{}):null,Jo.jsx(jz,{}),Jo.jsx(Pz,{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 SG=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){const t=PS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ws({...t,direction:e})}(n.direction);e.render(Jo.jsx(r.StrictMode,{children:Jo.jsx(sl,{theme:a,children:Jo.jsx(Oz,{...i,children:Jo.jsx(Lz,{...n,children:Jo.jsx(IV,{selections:t,children:Jo.jsx(_z,{...o,children:Jo.jsx(i$,{children:Jo.jsx(xG,{})})})})})})})}))};var wG=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}(wG||{}),CG=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}(CG||{}),EG=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(EG||{}),IG=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}(IG||{});const DG=e=>e?`${parseInt(e,10)}px`:void 0,PG=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?wN.Transparent:r}},MG=(e,t)=>+(parseInt(e,10)*SN*t+8).toFixed(2),RG=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?bN:"normal",LG=e=>e?.some((e=>"italic"===e))?"italic":"normal",AG=e=>e?.some((e=>"underline"===e))?"underline":"none",kG=document.createElement("textarea");function OG(e){kG.value=e,document.body.appendChild(kG),kG.select(),kG.setSelectionRange(0,kG.value.length),document.execCommand("copy"),document.body.removeChild(kG)}kG.style.position="absolute",kG.style.left="-9999px",kG.setAttribute("readonly","");function qG(e){q?.(((t,r)=>{const n=r.target,o=n?.closest(`.${mq}`);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((()=>{OG(t)})):OG(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const TG=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>$N(((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(Nz,0,0,!0),await e.expandLeft(Nz,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:MB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:IB.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(Nz,0,0,!0),await e.collapseLeft(Nz,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:MB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:IB.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),_G=(e,t)=>P((()=>(({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,xN),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(Fz),h=new Map(i.map((e=>[s[e]??Fz,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===Fz?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:xq.Auto,pixels:bq.PixelsDefault,percentage:bq.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),jG=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=VN(e);return t.current=e,t})(ZW(o));return XN((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(xN,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(Nz,QW(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},NG=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),FG=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:NG({rowsPerPage:r,totalRowCount:e,page:t})}),zG=15,WG=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{const{freeResize:i}=M();return 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-zG,0),u=Math.max(s+o-zG,s,0),c=xN-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=ZW(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=QW(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(Nz,[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&&!i?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var $G={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 HG=()=>{const e=j(),t=e.language();return P((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys($G).forEach((t=>{e.add($G[t])}))}(e)}),[e]),{translator:e,language:t}},VG=e=>{const{flags:t}=e,r=N(),n=(e=>{const t=P((()=>eF(e)),[e]);return A((()=>()=>{t.unmount()}),[t]),t})(r),o=F(),i=z(),a=W(),s=$(),l=H(),u=(()=>{const{viewState:e}=M(),t=VN(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=P((()=>WN()),[]),i=$N((e=>{r&&t.current.add(e)}),[t]),a=$N(ij((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return R((async()=>{r&&await n}),[n,r]),P((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])})(),c=((e,t)=>{const[r]=XN((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return P((()=>{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=_G(o,t),p=(e=>{const t=O();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=V(),h=KN(o,r),{translator:m,language:g}=HG(),{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,...FG(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return A((()=>{s((t=>({...t,...FG(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=NG({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:NG({...a,...e})})}}})(d,u),b=((e,t,r)=>P((()=>((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=WG({rect:B(),layoutService:d,viewService:b,model:i,pageInfo:v}),[S,w]=jG({model:i,layoutService:d,viewService:b,pageInfo:v,rect:x}),C=P((()=>((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?.[wG.LineClamp]??c(CG.Grid,EG.Grid,IG.LineClamp)??1),p=+(u?.[wG.ColumnLineClamp]??c(CG.Grid,EG.Grid,IG.ColumnLineClamp)??1),f=PG(e,n?.[wG.Background])??c(CG.Dimension,EG.LabelName,IG.BackgroundColor)??wN.Transparent,h={header:{fontSize:DG(n?.[wG.FontSize])??c(CG.Dimension,EG.LabelName,IG.FontSize)??vN,fontFamily:n?.[wG.FontFamily]??c(CG.Dimension,EG.LabelName,IG.FontFamily)??yN,fontWeight:RG(n?.[wG.FontStyle],bN),fontStyle:LG(n?.[wG.FontStyle]),textDecoration:AG(n?.[wG.FontStyle]),color:PG(e,n?.[wG.FontColor])??c(CG.Dimension,EG.LabelName,IG.FontColor)??nN.TEXT,background:f,hoverBackground:aN(f,Sq),activeBackground:aN(f,wq)},dimensionValues:{fontSize:DG(o?.[wG.FontSize])??c(CG.Dimension,EG.LabelValue,IG.FontSize)??vN,fontFamily:o?.[wG.FontFamily]??c(CG.Dimension,EG.LabelValue,IG.FontFamily)??yN,fontWeight:RG(o?.[wG.FontStyle],void 0),fontStyle:LG(o?.[wG.FontStyle]),textDecoration:AG(o?.[wG.FontStyle]),color:PG(e,o?.[wG.FontColor])??c(CG.Dimension,EG.LabelValue,IG.FontColor)??nN.TEXT,background:PG(e,o?.[wG.Background])??c(CG.Dimension,EG.LabelValue,IG.BackgroundColor)??wN.Transparent},measureValues:{fontSize:DG(i?.[wG.FontSize])??c(CG.Measure,EG.LabelValue,IG.FontSize)??vN,fontFamily:i?.[wG.FontFamily]??c(CG.Measure,EG.LabelValue,IG.FontFamily)??yN,fontWeight:RG(i?.[wG.FontStyle],"normal"),fontStyle:LG(i?.[wG.FontStyle]),textDecoration:AG(i?.[wG.FontStyle]),color:PG(e,i?.[wG.FontColor])??c(CG.Measure,EG.LabelValue,IG.FontColor)??wN.FontSecondary,background:PG(e,i?.[wG.Background])??c(CG.Measure,EG.LabelValue,IG.BackgroundColor)??wN.Transparent},measureLabels:{fontWeight:RG(a?.[wG.FontStyle],"normal"),fontStyle:LG(a?.[wG.FontStyle]),textDecoration:AG(a?.[wG.FontStyle]),color:PG(e,a?.[wG.FontColor])??c(CG.Measure,EG.LabelName,IG.FontColor)??wN.FontSecondary,background:PG(e,a?.[wG.Background])??c(CG.Measure,EG.LabelName,IG.BackgroundColor)??wN.Transparent},totalValues:{fontWeight:RG(s?.[wG.FontStyle],bN),fontStyle:LG(s?.[wG.FontStyle]),textDecoration:AG(s?.[wG.FontStyle]),color:PG(e,s?.[wG.FontColor])??c(CG.Total,EG.LabelValue,IG.FontColor)??nN.TEXT,background:PG(e,s?.[wG.Background])??c(CG.Total,EG.LabelValue,IG.BackgroundColor)??wN.Transparent},nullValues:{fontWeight:RG(l?.[wG.FontStyle],"normal"),fontStyle:LG(l?.[wG.FontStyle]),textDecoration:AG(l?.[wG.FontStyle]),color:PG(e,l?.[wG.FontColor])??c(CG.Null,EG.LabelValue,IG.FontColor)??nN.TEXT,background:PG(e,l?.[wG.Background])??c(CG.Null,EG.LabelValue,IG.BackgroundColor)??wN.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:PG(e,u?.[wG.Border])??c(CG.Grid,EG.Grid,IG.BorderColor)??wN.DividerLight,divider:PG(e,u?.[wG.Divider])??c(CG.Grid,EG.Divider,IG.BorderColor)??wN.DividerDark,background:PG(e,u?.[wG.Background])??c(CG.Grid,EG.Grid,IG.BackgroundColor)??wN.Transparent},selectedColors:iN(e)};return h.headerCellHeight=Math.max(MG(h.header.fontSize,p),MG(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(MG(h.measureValues.fontSize,d),MG(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=MG(h.dimensionValues.fontSize,1),h})(h,d)),[h,d]),E=((e,t,r)=>{const[,n,o]=XN((async()=>{const t=r_(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,rF].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),{direction:I}=M();qG([TG({model:i,layoutService:d,effectivePropertiesService:c,translator:m})]),A((()=>{!w&&i&&!!S&&E&&SG(n,{selections:f,baseObjects:{rect:x,pageInfo:v,qPivotDataPages:S,updatePageInfo:y,direction:I},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,I])},BG={version:"7.0.6",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:[]},GG=()=>({...BG,qHyperCubeDef:{...BG.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}},yj({exports:{}});const Aj="qHyperCubeDef.qDimensions",kj="dimensions",Oj="qOtherTotalSpec.qTotalMode",qj="totalMode",Tj={quarantine(e){AT.quarantineArrayProp({properties:e,arrayPath:Aj,quarantineName:qj,arrayName:kj,itemPath:Oj})},unquarantine(e){AT.unquarantineArrayProp({properties:e,arrayPath:Aj,quarantineName:qj,arrayName:kj,itemPath:Oj})}};function _j(e){const t=Lj(e);return(e,r,n,o)=>{const i=AT.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&&xj(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],xj(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&&xj(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&&(AT.unquarantineProperty(i.qProperty,"noOfLeftDims"),AT.unquarantineProperty(i.qProperty,"excludedNoOfLeftDims "))}return AT.conditionalShow.unquarantine(i.qProperty),Tj.unquarantine(i.qProperty),$T(i.qProperty),AT.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function jj(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=AT.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;xj(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),AT.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,xj(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),xj(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 AT.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),AT.quarantineProperty(i.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),AT.conditionalShow.quarantine(i.properties),Tj.quarantine(i.properties),HT(i.properties),i}const Nj=[];for(let e=0;e<256;++e)Nj.push((e+256).toString(16).slice(1));let Fj;const zj=new Uint8Array(16);var Wj={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $j(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!Fj){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fj=crypto.getRandomValues.bind(crypto)}return Fj(zj)}();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(Nj[e[t+0]]+Nj[e[t+1]]+Nj[e[t+2]]+Nj[e[t+3]]+"-"+Nj[e[t+4]]+Nj[e[t+5]]+"-"+Nj[e[t+6]]+Nj[e[t+7]]+"-"+Nj[e[t+8]]+Nj[e[t+9]]+"-"+Nj[e[t+10]]+Nj[e[t+11]]+Nj[e[t+12]]+Nj[e[t+13]]+Nj[e[t+14]]+Nj[e[t+15]]).toLowerCase()}(n)}const Hj=()=>crypto?.randomUUID?.()??function(e){return Wj.randomUUID&&!e?Wj.randomUUID():$j(e)}(),Vj=1e3,Bj=1e3,Gj=e=>{const t=e.qDimensions,r=((e,t)=>{const r={};let n=[],o=!1;const i=-1!==e.indexOf(-1);e.forEach((e=>{r[e]?o=!0:r[e]=!0})),t&&(o=i?o||t.length+1!==Object.keys(r).length:o||t.length!==Object.keys(r).length),Object.keys(r).forEach((e=>{"-1"!==e&&n.push(parseInt(e,10))})),n=n.sort(((e,t)=>e-t));for(let e=0;e<n.length;++e)o=o||n[e]!==e;return o})(e.qInterColumnSortOrder,t);r&&(e.qInterColumnSortOrder=((e,t)=>{const r=[];if(t)for(let e=0;e<t.length;e++)r.push(e);return e.qMeasures.length>=2&&r.push(-1),r})(e,t))},Uj=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Yj=e=>{if(!e)return;Gj(e);const t=e.qDimensions,{qInterColumnSortOrder:r}=e,n=r?.filter((e=>-1!==e))||[];t&&((e,t,r=[])=>{for(let n=0;n<e.length;n++)if(-1!==e[n]&&e[n]!==n){const o=e[n],i=e.indexOf(n),a=e[i];Uj(e,n,i),Uj(t,n,i),Uj(r,r.indexOf(o),r.indexOf(a))}})(n,t,r)},Kj=(e,t,r)=>{t&&(t.splice(r||0,1),t.push(e),t.splice((r||-1)+1,0,-1))},Xj=P;class Jj extends Xj{constructor(e){super(e),this.path=e.path}async addDimension(e,t,r,n){const o=this.getDimensions(),i=void 0!==n?.asColumn&&n.asColumn;return e.qDef&&!e.qDef.cId&&(e.qDef.cId=Hj()),t?this.addAlternativeDimension(e,i,r):o.length<this.maxDimensions()?Promise.resolve(this.autoSortDimension(e)).then((()=>(Yj(this.hcProperties),((e,t,r,n,o)=>{if(!e)return;let{qNoOfLeftDims:i}=e;const{qInterColumnSortOrder:a}=e,s=t.length,l=a?.indexOf(-1);if(n||!i||-1!==i&&!Number.isNaN(+i))if(!n&&i&&i>=0){if(l&&l>=i?Kj(s,a,l):(-1!==l&&--i,o&&o<=i&&-1!==l?Kj(s,a,l):a?.push(s)),"number"==typeof o&&o<i){const e=Math.max(o-1,0);t.splice(e,0,r)}else t.splice(i,0,r);e.qNoOfLeftDims&&e.qNoOfLeftDims++}else{0===s&&(e.qNoOfLeftDims=0);const n="number"==typeof o?o+(i||0):void 0;l&&n&&l>=n?Kj(s,a,l):a?.push(s),"number"==typeof o&&n?l&&n>l&&l>-1?t.splice(n-1,0,r):t.splice(n,0,r):t.push(r)}else e.qNoOfLeftDims=1,a?.unshift(s),t.splice(0,0,r)})(this.hcProperties,o,e,i,r),e))):void 0}async addDimensions(e,t,r){const n=[];for await(const o of e){const e=await this.addDimension(o,t,void 0,r);e&&n.push(e)}return n}addAlternativeDimension(e,t,r){const n=this.getAlternativeDimensions();let o=r;return void 0===o&&(o=t||void 0===this.hcProperties?.excludedNoOfLeftDims?n.length:this.hcProperties?.excludedNoOfLeftDims),void 0!==o&&n.splice(o,0,e),this.hcProperties&&void 0===this.hcProperties.excludedNoOfLeftDims?this.hcProperties.excludedNoOfLeftDims=t?n.length-1:n.length:this.hcProperties&&this.hcProperties.excludedNoOfLeftDims&&!t&&this.hcProperties.excludedNoOfLeftDims++,e}async addFieldDimension(e,t,r,n){const o=this.createFieldDimension(e,t,r);return this.addDimension(o,!1,void 0,n)}async addFieldDimensions(e,t){const r=e.map((e=>this.createFieldDimension(e.field,e.label,e.defaults)));return this.addDimensions(r,void 0,t)}async addLibraryDimensions(e,t={}){const r=e.map((e=>this.createLibraryDimension(e.id,e.defaults)));return this.addDimensions(r,void 0,t)}reinsertDimension(e,t,r,n){const o=this.getDimensions(),i=this.getAlternativeDimensions();return e.qDef&&!e.qDef.cId&&(e.qDef.cId=Hj()),o.length<this.maxDimensions()?this.addDimension(e,t,r,n):o.length<Vj?(r=i.length,i.splice(r,0,e),Promise.resolve(e)):Promise.resolve()}async removeDimensions(e,t,r){return Promise.all([...e].reverse().map((e=>this.removeDimension(e,t,r))))}removeDimension(e,t,r){if(t){const t=this.getAlternativeDimensions().splice(e,1);return!r?.asColumn&&this.hcProperties?.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,t}const n=this.getDimensions(),o=this.properties?.qHyperCubeDef.qNoOfLeftDims,i=this.hcProperties?.qInterColumnSortOrder.indexOf(e);this.properties?.qHyperCubeDef.qNoOfLeftDims&&i&&o&&i+1<=o&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties?.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=n.splice(e,1)[0];return((e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;e.splice(r,1)})(this.hcProperties?.qInterColumnSortOrder,e),Yj(this.hcProperties),s}async addMeasures(e,t=!1){const r=[];for await(const n of e){const e=await this.addMeasure(n,t,void 0,{keepNumberFormat:!0});e&&r.push(e)}return r}addAlternativeMeasures(e,t){const r=this.getAlternativeMeasures(),n=void 0===t?r.length:t;return r.splice(n,0,e)}async addMeasure(e,t,r,n){const o=this.getMeasures();if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=Hj()),t)return this.addAlternativeMeasures(e,r);if(n?.keepNumberFormat||delete e.qDef?.qNumFormat,o.length<this.maxMeasures()){const t=1===o.length;return o.push(e),this.autoSortMeasure(e).then((()=>(t&&this.hcProperties?.qInterColumnSortOrder.push(-1),e)))}return o.length<Bj?(this.getAlternativeMeasures().push(e),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t,r){const n=this.getMeasures(),o=this.getAlternativeMeasures(),i=this.hcProperties?.qInterColumnSortOrder;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=Hj()),r=void 0!==r?r:n.length,n.length<this.maxMeasures()){if(n.splice(r,0,e),this.hcProperties&&i&&2===n.length){-1===i.indexOf(-1)&&i.push(-1)}}else n.length<Bj&&(r=o.length,o.splice(r,0,e));return Promise.resolve(e)}removeMeasure(e,t){if(t&&e)return this.getAlternativeMeasures().splice(e,1);const r=this.getMeasures();let n,o,i;if(e&&e<r.length){n=2===r.length,o=this.getMeasures().splice(e,1)[0];const t=this.hcProperties?.qInterColumnSortOrder;n&&t&&(i=t.indexOf(-1),t.splice(i,1),this.hcProperties?.qNoOfLeftDims&&i+1<=this.hcProperties?.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else e&&(o=this.getAlternativeMeasures().splice(e-r.length,1)[0]);return o}async removeMeasures(e,t){return await Promise.all([...e].reverse().map((e=>this.removeMeasure(e,t)))),e}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}}const Zj={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Qj=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}({}),eN=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const tN=e=>{switch(e?.type){case"url":return Qj.Link;case"image":return Qj.Image;case"indicator":return Qj.Indicator;case"miniChart":return Qj.MiniChart;default:return Qj.Text}},rN=({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}}),nN=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>tN(e.qDef.representation)===Qj.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}}}}}},oN=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:rN({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>tN(e.qDef.representation)===Qj.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>tN(e.qDef.representation)===Qj.Link&&e.qDef.representation?.urlPosition===eN.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>tN(e.qDef.representation)===Qj.Link&&e.qDef.representation?.urlPosition===eN.Attribute},...nN(r)}},iN=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[Qj.Image],i=!n?.("qMiniChartDef")&&t[Qj.MiniChart],a=!n?.("tableIndicators")&&t[Qj.Indicator],s=o&&t[Qj.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=>tN(e.qDef.representation)===Qj.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 aN=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),sN=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),lN=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),uN=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const cN="image",dN=(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},pN=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Dq.Auto,translation:"Common.Auto"},{value:Dq.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Dq.Pixels,translation:"Object.Table.Column.Pixels"},{value:Dq.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Dq.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Iq.PixelsDefault,show:e=>e.qDef.columnWidth?.type===Dq.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Iq.PercentageDefault,show:e=>e.qDef.columnWidth?.type===Dq.Percentage}}),fN=({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!==cN},[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!==cN)}}},hN="TOTAL_OFF",mN={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:sN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:sN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},gN="TOTAL_OFF",vN={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:sN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:sN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:sN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},yN=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:hN,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:hN,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&dN},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!==hN&&dN(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:mN,...fN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...fN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...oN(e),...pN()}}}},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:mN,...fN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...fN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...iN(e,{[Qj.Image]:!0,[Qj.Indicator]:!0}),...pN()}}}}}}})(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:gN,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:gN,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&dN},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!==gN&&dN(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:vN,...fN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...fN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...oN(e),...pN()}},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:vN,...fN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...fN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...iN(e,{[Qj.Image]:!0,[Qj.ImagesInIndentMode]:!0,[Qj.Indicator]:!0}),...pN()}},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"}}}}}},bN=MS().palette,xN={TEXT:bN.text.primary,DISABLED:bN.text.disabled,HOVER:bN.action.hover,WHITE:Sf.GREYSCALE_100,BORDER_MEDIUM:Sf.GREYSCALE_85,DARK_MODE_TEXT:Sf.GREYSCALE_95,DARK_MODE_BORDER:Sf.GREYSCALE_95,DARK_MODE_DISABLED:Sf.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:bN.primary.main,LINK:bN.info.main,ERROR:bN.error.main},SN=(e,t=xN.TEXT,r=xN.WHITE)=>{const n=n_(e),o=n_(t),i=n_(r);return n.isInvalid()?t:function(e,t,r){const n=o_(e,t),o=o_(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},wN=e=>{const t=e.getStyle("","","dataColors.selected")||xN.SELECTED,r=function(e,t){const r=n_("#FFFFFF"),n=n_(e),o=n_(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=o_(r,n),a=o_(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,xN.TEXT);return{background:t,color:r}},CN=(e,t)=>{const r=n_(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},EN=e=>{const t=n_(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},IN=e=>{e.stopPropagation(),e.preventDefault()},DN=(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}}}),PN=(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},MN=({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=>PN(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...b_(n).filter((e=>!a.includes(e))).map((e=>PN(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),RN=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],LN=({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=>PN(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...RN.filter((e=>!i.includes(e))).map((e=>PN(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),AN=({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:MN({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:LN({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:DN(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:DN(`${e}.background`,"properties.background",((t,r)=>{const n=r?xN.WHITE:xN.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),kN=({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:DN(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:DN(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),ON=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),qN="12px",TN="Source Sans Pro, sans-serif",_N="600",jN=15e3,NN=4/3;let FN=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),zN=function(e){return e.Solid="solid",e.None="none",e}({});const WN={display:"flex",justifyContent:"center",alignItems:"center"},$N={borderStyle:"solid"},HN={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},VN={lineHeight:NN,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},BN=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),GN=(e,t)=>e>0?`${e}px ${zN.Solid} ${t}`:zN.None,UN=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?GN(i,r):zN.None,borderBottom:GN(a,r),borderLeft:"rtl"===n?GN(i,r):zN.None,borderTop:zN.None}},YN=(e,t,r,n,o,i,a)=>{const s=UN(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=GN(2,o)),r||(s.borderLeft="rtl"!==i?GN(1,o):"none",s.borderRight="rtl"===i?GN(1,o):"none")),s},KN=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=GN(1,r)),t&&(n.borderRight=GN(1,r)),n},XN=(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}},JN=(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,items:{headerSection:AN({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:XN}),dimensionValueSection:AN({section:"dimensionValues",translator:e,flags:t,getThemeValue:XN}),measureValueSection:AN({section:"measureValues",translator:e,flags:t,getThemeValue:XN}),measureLabelSection:kN({section:"measureLabels",getThemeValue:XN}),totalValuesSection:kN({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:XN}),nullValuesSection:kN({section:"nullValues",fallbackBackground:FN.NullValueBackground,getThemeValue:XN}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:ON("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:ON("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:DN("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??FN.DividerLight)),divider:DN("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??FN.DividerDark)),background:DN("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??FN.Transparent))}}}}}}]}),ZN=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}}},QN=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[JN(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:Dq.Auto,translation:"Common.Auto"},{value:Dq.Pixels,translation:"Object.Table.Column.Pixels"},{value:Dq.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Dq.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:Iq.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===Dq.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:Iq.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===Dq.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)}}}}]},...ZN(t)}}),eF="auto",tF={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:eF,translation:"Object.Table.SortingInSearch",options:[{value:eF,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function rF(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:yN(e),sorting:tF,addons:Zj,settings:QN(t,r)},definition:r.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?{dataHandler:e=>new Jj(e)}:void 0}}function nF(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:rF(e),importProperties:_j(e),exportProperties:jj,exploration:RT(e)}}const oF=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function iF(e,t){return M((()=>e),t)}const aF={},sF=e=>{const t=M((()=>({current:aF})),[]);return t.current=t.current===aF?e:t.current,t},lF=e=>!!e&&0===n_(e).a,uF="#grid",cF=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},dF=(e,t,r,n,o)=>{const i=cF(".qv-object .qv-inner-object",r),a=cF(".qv-panel-sheet",r),s=cF(uF,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 EN(r);if("none"===n)return"transparent";if(void 0===n)return;const i=n_(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=lF(d),f=!lF(h=p?s:d)&&SN(h,xN.TEXT,xN.DARK_MODE_TEXT)===JT(xN.DARK_MODE_TEXT);var h;const m=((e,t,r,n=xN.WHITE)=>e&&!lF(e)?e:lF(t)?r&&!lF(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},pF=(e,t,r,n)=>{const o=O(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=A([]);return k((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(uF),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return M((()=>({...o,background:dF(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function fF(e,t){const r=M((()=>({isLoading:!0})),t),[n,o]=L((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const hF=3;function mF(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 gF({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=hF}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Sj(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Sj((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=mF(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 vF,yF=E;vF=yF.createRoot,yF.hydrateRoot;const bF="Source Sans Pro, sans-serif";function xF(e,t){const[r,n]=v(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var SF={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 wF=({translator:e})=>(g((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(SF).forEach((t=>{e.add(SF[t])}))}}(e)}),[e]),e),CF={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},EF={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},IF=al("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":{...CF},"&::-moz-range-track":{...CF},"&::-ms-track":{...CF},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...EF},"&::-moz-range-thumb":{...EF},"&::-ms-thumb":{...EF},"&: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"}}))),DF=({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=wF({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}};xF((()=>{g&&b()}),[e]);const x=e=>{const t=Math.max(e,Iq.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:Dq.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=>{IN(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=>{IN(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===Cq.Left||e.key===Cq.Right){IN(e);const t=5,r=e.key===Cq.Left?t:-t,n="rtl"===p?r:-r;l?.(!0),x(h.current.columnWidth+n)}else e.key===Cq.Space||e.key===Cq.Enter?(IN(e),s(e),l?.(!1),S()):e.key===Cq.Esc&&(IN(e),s(e),l?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Zo.jsx(IF,{style:y,hoverColor:o,isLastColumn:r,className:Eq,"data-testid":Eq,onMouseDown:e=>{IN(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:Dq.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(IN(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":P,"aria-valuemin":Iq.PixelsMin,"aria-valuemax":Iq.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},PF=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"})}))),MF=al(Gu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),RF=al(PF,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),LF=al(sp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),AF=al(zc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kF=al(pp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),OF=al(pp,{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"}))),qF=al("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"}))),TF=al("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),_F=al(lu)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),jF=al(qd,{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}))),NF=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"})}))),FF=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?FF(t):t:e.parentElement?.children?.[0]},zF=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?zF(t):t},WF=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===Cq.Down||t===Cq.Up){const r=e=>t===Cq.Down?FF(e):zF(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},$F=(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 HF={};const VF=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,f]=v(!1),m=r.useRef(null),g=h((e=>{e.stopPropagation(),f(!1)}),[f]);return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(OF,{ref:s?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),HF={}),s?.length&&(f(!0),HF[o]=f,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:WF,children:[u?Zo.jsx(qF,{direction:c,isPagination:d}):null,Zo.jsxs(TF,{children:[Zo.jsx(jF,{direction:c,isPagination:d,children:Zo.jsx(i,{})}),Zo.jsx(_F,{variant:"body2",children:o})]}),s?.length?Zo.jsx(NF,{}):null]},t),s?.length?Zo.jsx(YF,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:$F(s,HF),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},BF=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Zo.jsx(kF,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Zo.jsx(VF,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),GF=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[BF({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Zo.jsx(AF,{"data-testid":"group-divider",variant:"middle"}):void 0])),UF={appear:0,enter:0,exit:0},YF=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Zo.jsx(LF,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:UF,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:GF({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,KF=(e,t)=>e.some((e=>t[e]>0)),XF={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},JF=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=v(null),[a,s]=v(XF);return xF((()=>{e||(s(XF),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:KF(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:KF(["qSelected"],e),canSelectPossible:KF(["qOption"],e),canSelectAlternative:KF(["qAlternative"],e),canSelectExcluded:KF(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},ZF=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"})}))),QF=x(((e,t)=>Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Zo.jsx("g",{clipPath:"url(#clear_selections_svg__clip0_482_2951)",children:Zo.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}),Zo.jsx("defs",{children:Zo.jsx("clipPath",{id:"clear_selections_svg__clip0_482_2951",children:Zo.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),ez=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"})}))),tz=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"})}))),rz=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"})}))),nz=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"})}))),oz=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"})}))),iz=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"})}))),az=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"})}))),sz=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"})}))),lz=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"})}))),uz=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"})}))),cz=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 dz=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const pz="/qListObjectDef",fz=({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[dz.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:ZF,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:tz,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:oz,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:uT,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[dz.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:iz,enabled:!0}]}]),!e.isLocked&&r[dz.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:cz,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(pz))},icon:az,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(pz))},icon:uz,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(pz))},icon:sz,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(pz))},icon:lz,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(pz))},icon:QF,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:nz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:rz,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[dz.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:ez,enabled:!0}]}]),f},hz=({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,iconSize:b=bq})=>{const x=u(null),S=wF({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=JF({open:e,headerData:n,app:I,qStateName:d?.qStateName}),M=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:n}),R=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>h((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=h((e=>{e.stopPropagation(),t(!1)}),[t]),A=h((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Zo.jsxs(MF,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?Zo.jsx(RF,{height:b,className:xq,"data-testid":xq,isInteractionsActive:i.active??!1,children:Zo.jsx(PF,{})}):null,Zo.jsx(YF,{open:e,anchorEl:!1===y?x.current:r.current,onClose:L,menuGroups:fz({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:i,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:f}),direction:g,isPagination:v})]}):null},mz=e=>e.isDark?{background:e.color,borderColor:xN.DARK_MODE_BORDER,color:xN.DARK_MODE_TEXT,disabledColor:xN.DARK_MODE_DISABLED,iconColor:xN.DARK_MODE_TEXT}:{background:e.color,borderColor:xN.BORDER_MEDIUM,color:xN.TEXT,disabledColor:xN.DISABLED},gz=al(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}`}))),vz=al(Gp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),yz=al(rc,{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)}))),bz=al(lu)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),xz=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g((()=>mz(n.background)),[n]);if(!r.active)return null;const a=o?Zo.jsx(gz,{footerStyle:i,children:e}):null;return t?E.createPortal(e,t):a},Sz=c({}),wz=()=>n(Sz),Cz=({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,visibilityThreshold:v})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=g((()=>mz(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=wF({translator:d}),w=g((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:v})),[t,r,n,o,i,a,s,l,u,c,S,p,f,h,m,b,y,x,v]);return Zo.jsx(Sz.Provider,{value:w,children:e})};let Ez=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Iz=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 Dz=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"})}))),Pz=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"})}))),Mz=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"})}))),Rz={FirstPage:Pz,PreviousPage:Dz,NextPage:NF,LastPage:Mz,FirstPageRTL:Mz,PreviousPageRTL:NF,NextPageRTL:Dz,LastPageRTL:Pz},Lz=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=wz(),u=r.concat("rtl"===n?"RTL":""),c=Rz[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}},Az=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=wz(),o=0===e.page,{IconComponent:i,styledProps:a}=Lz({type:Ez.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Iz.FirstPage)?null:Zo.jsx(yz,{...a,disabled:!r.active,children:Zo.jsx(i,{height:bq})})},kz=(e,t,r=!1)=>{r&&e.key===Cq.Tab&&!e.shiftKey&&(IN(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))},Oz=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=wz(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=Lz({type:Ez.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{kz(e,t,n)}:void 0;return o<=(a?.lastPage||Iz.LastPage)?null:Zo.jsx(yz,{...u,onKeyDown:c,disabled:!i.active,children:Zo.jsx(l,{height:bq})})},qz=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=wz(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=Lz({type:Ez.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Iz.FirstPage&&o>Iz.LastPage)&&t.enabled?e=>{kz(e,t,n)}:void 0;return Zo.jsx(yz,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:bq})})},Tz=()=>{const{pageInfo:e,interactions:t}=wz(),r=0===e.page,{IconComponent:n,styledProps:o}=Lz({type:Ez.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Zo.jsx(yz,{...o,disabled:!t.active,children:Zo.jsx(n,{height:bq})})},_z=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=wz(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Iz.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return Zo.jsx(bz,{variant:"caption",dir:"ltr",children:s})},jz=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=wz(),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(bz,{variant:"caption",id:p,children:[c,":"]}),Zo.jsx(vz,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Nz=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=wz();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Iz.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=Zo.jsx(Zo.Fragment,{children:e.rowsPerPageOptions.map((e=>Zo.jsx("option",{value:e,children:e},e)))});return Zo.jsx(jz,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Fz=1e3,zz="…",Wz=({totalPages:e,page:t})=>{const r=Math.min(e,Fz),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Fz):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:zz,disabled:!0,children:zz},"startMoreOptions")),o<e-1&&a.push(Zo.jsx("option",{value:zz,disabled:!0,children:zz},"endMoreOptions")),Zo.jsx(Zo.Fragment,{children:a})},$z=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=wz(),{page:i}=e;if(t<=(o?.selectPage||Iz.SelectPage))return null;const a=Zo.jsx(Wz,{totalPages:r,page:i});return Zo.jsx(jz,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Hz=y((e=>Zo.jsxs(Cz,{...e,children:[Zo.jsx(Nz,{}),Zo.jsx($z,{}),Zo.jsx(_z,{}),Zo.jsx(Az,{}),Zo.jsx(Tz,{}),Zo.jsx(qz,{}),Zo.jsx(Oz,{})]})));const Vz=e=>Zo.jsx(xz,{...e,children:Zo.jsx(Hz,{...e})}),Bz=c({}),Gz=()=>n(Bz),Uz=({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(Bz.Provider,{value:a,children:i})},Yz=c({}),Kz=()=>n(Yz),Xz=({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(Yz.Provider,{value:u,children:l})},Jz=c({}),Zz=()=>n(Jz),Qz=({children:e,...t})=>Zo.jsx(Jz.Provider,{value:t,children:e}),eW=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=Kz(),{layoutService:r}=Zz(),n=e.getStyle("","","fontFamily")??TN;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:{...VN,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},tW="/qHyperCubeDef",rW=-1,nW="PSEUDO-DIM",oW=e=>e===rW?nW:(({cId:e})=>e??Hj())(e),iW=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===rW?r.columnWidthLocation=aN.Measures:r.isLeftDimension?r.columnWidthLocation=aN.Dimension:t.at(-1)===rW?r.columnWidthLocation=aN.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=aN.Pivot))},aW=(e,t,r,n)=>{const o=oW(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===rW?{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:aN.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===Rq.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:aN.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},sW=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===rW?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]=aW(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=aW(e,t,r,i)})),l},lW=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(rW)?sW({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(sW({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)=>{iW({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):iW({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 uW={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:dW(e),value:dW(t),useEqualSign:r}}(n,o,i))})),t}},cW=uW;function dW(e){try{return decodeURIComponent(e)}catch{return e}}function pW(e){if(!(this instanceof pW))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:()=>cW.fromSearchString(t.search)}})}function fW(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}pW.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},pW.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=fW(t.key),t.value?r+=`=${fW(t.value)}`:r+=t.useEqualSign?"=":"";return r};var hW=pW;var mW,gW=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}},vW=class{decode(e){let t="";const r=new gW(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},yW=e=>e>=0&&e<=1114111,bW=e=>e.match(/[\s]/),xW=class extends vW{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&&!bW(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return yW(a)?String.fromCharCode(a):"�"}},SW=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}},wW=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 SW.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return SW.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||SW.newInstanceIfNeeded(e,t,this._value)}},CW=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 wW);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},EW=(()=>{const e=[],t=[],r=new CW;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})(),IW=class extends vW{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,EW.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=EW.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)&&yW(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)&&yW(n)?String.fromCharCode(n):null}},DW=class extends vW{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),yW(i))?String.fromCharCode(i):(e.reset(),null)}},PW=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,MW=5e6,RW=5e5,LW=(e,t)=>{const{maxByteSizeSvg:r=RW,maxByteSizeImage:n=MW}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=PW.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&&(mW=document.createElement("div"));var AW=Array.prototype.indexOf,kW=[",",".","_"," "],OW=[",",".","-","_"," "],qW={width:["%"],height:["%"]},TW={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},_W={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":TW.image,"background-color":TW.color,"border-color":TW.color,"border-image":TW.image,color:TW.color,icon:TW.image,"list-style-image":TW.image,"outline-color":TW.color},jW={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function NW(e,t,r){let n;if(t){if(AW)return AW.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 FW(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return mW.appendChild(r),t=mW.innerHTML,mW.removeChild(r),t}function zW(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=$W(e).toLowerCase(),t=$W(t),i=0;i<jW.attr_name.length;i++)if(e.match(jW.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<jW.attr_val.length;i++)if(t.toLowerCase().match(jW.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=qW[e],n||(n=OW),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]/)&&NW(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function WW(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=$W(e).toLowerCase(),t=$W(t),NW(e,jW.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<jW.css_val.length;n++)if(t.toLowerCase().indexOf(jW.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=_W[e],o||(o=TW.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]/)&&NW(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function $W(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new IW,new DW,new xW];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 HW=[];for(let e=0;e<255;e++)HW[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var VW={html:e=>FW(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]=WW(t,r[t],!0),i+=WW(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]=zW(e,t[e],!0),o+=zW(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function BW(e,t){throw new Error(t)}var GW={canonicalize:$W,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?VW.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&BW(this,"Invalid parameter type"),VW.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&BW(this,"Invalid parameter type"),VW.attr(e)):void BW(this,"Invalid parameter type")},encodeForAttr:zW,encodeForAttr2:function(e){return zW("nonsens",e,!0)},encodeForCSS:WW,encodeForHref:function(e){$W(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new hW(e),r=hW.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+hW.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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=kW),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),NW(o,t)>=0||null==HW[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:FW,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=$W(t).toLowerCase():BW(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:LW,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 UW=(e,t)=>t.qAttrExps?.qValues?.[e],YW=(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"}}},KW=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&GW.isSafeDataURL(t)?{type:Qj.Image,url:t,text:e,imageSize:r,resolvedImagePosition:YW(n,a),labelStructure:o,imageBox:i}:{type:Qj.Text,url:void 0,text:e,labelStructure:o},XW=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:Qj.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:Qj.MiniChart,text:n,miniChart:a}},JW=(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===eN.Attribute?void 0:r?.urlLabel},ZW=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Qj.Link,url:GW.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:Qj.Text,url:void 0,text:t,labelStructure:e}}},QW=({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=tN(t),d=s(e);return c===Qj.Image&&u[Qj.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=UW(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),KW({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 KW({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=UW(r.imageLabel??-1,e)?.qText??n;return KW({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:Qj.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===Qj.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===eN.Attribute){const i=JW(r.url??-1,e,t);return ZW({labelStructure:n,text:o||i||"",url:i})}if(i===eN.Dimension){const i=JW(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),ZW({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:Qj.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===Qj.Indicator&&u[Qj.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:Qj.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===Qj.MiniChart&&u[Qj.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?XW(e,t,i,d):{type:Qj.Text,url:void 0,text:d,labelStructure:a}},e$=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?EN(o):null,a=n?EN(n):null,s=((e,t)=>e||!t?null:SN(t))(a,i);return{color:s??a,background:i}},t$=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:t$(e,t)),e),r$=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:jN-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,t$(s,e))},n$=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==rW){if(t){const t=tN(e.representation);return t===Qj.Link||t===Qj.Image?e.representation:{type:Qj.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===Qj.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:tN(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),b=QW({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[Qj.Image]:!0,[Qj.Indicator]:!0}}),x={id:Hj(),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:r$(e,o,i,n,u,h),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:g,expressionColor:e$(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},o$=(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(rW);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;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;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?n$({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},i$=(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)}))}))},a$=(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},s$=({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=o$(e.grid,l,u,r,n,o,i,a,s);i$(c,r.rowsOnCurrentPage);const d=a$(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},l$=({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:Hj(),ref:t,isNull:l}}))})),o},u$=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?l$({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},c$=(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]??n$({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},d$=({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=c$(e.grid,u,c,r,n,o,i,a,s,l);i$(d,r.size.x);const p=a$(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},p$=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),f$=(e,t)=>{const{env:r}=Kz(),{direction:n}=Gz(),{layoutService:o,effectivePropertiesService:i}=Zz(),{qPivotDataPages:a,pageInfo:s}=Gz(),[l,u]=v(null),c=((e,t,r)=>g((()=>({left:e.map(p$),top:t.map(p$),measures:r.map(p$)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g((()=>lW(o,i,t,e)),[o,i,t,e]),p=h((()=>a.slice(1).reduce(((e,t)=>u$({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return l$({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),f=h((()=>a.slice(1).reduce(((e,i)=>d$({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=c$([],u,l,t,r,n,o,i,a,s);i$(c,t.size.x);const d=a$(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)=>s$({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=o$([],l,s,r,t,n,o,i,a);i$(u,r.rowsOnCurrentPage);const c=a$(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()));xF((()=>{b(p())}),[p]),xF((()=>{S(f())}),[f]),xF((()=>{C(m())}),[m]),xF((()=>{l&&l.forEach((i=>{b((e=>u$({prevData:e,dataPage:i,pageInfo:s}))),S((e=>d$({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>s$({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}},h$=Math.sqrt(1e4),m$=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/Iq.PixelsMin)}),g$=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/h$),n=Math.ceil(e.qHeight/h$);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*h$,qTop:e.qTop+r*h$,qWidth:Math.min(h$,e.qWidth-o*h$),qHeight:Math.min(h$,e.qHeight-r*h$)});return t};function v$({nextPageHandler:e}){const{model:t}=Kz(),{pageInfo:r}=Gz(),{layoutService:n}=Zz(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h((async(e,t)=>{await(i?.collapseLeft(tW,e,t,!1))}),[i]),s=h((async(e,t)=>{await(i?.collapseTop(tW,e,t,!1))}),[i]),l=h((async(e,t)=>{await(i?.expandLeft(tW,e,t,!1))}),[i]),c=h((async(e,t)=>{await(i?.expandTop(tW,e,t,!1))}),[i]),d=h((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(tW,t.reduce(((e,t)=>[...e,...g$(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 aN.Dimension:c=[{qPath:`${tW}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case aN.Measures:if(o)c=s.map(((e,t)=>({qPath:`${tW}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${tW}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case aN.Pivot:c=[{qPath:`${tW}/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:`${tW}/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 y$=(e,t,r)=>(n,o)=>{if("P"===n)return rW;const i=t[r+o];return e[i]},b$=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},x$=c({}),S$=()=>n(x$),w$=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=Zz(),{qPivotDataPages:n}=Gz();return g((()=>{const o=b$(n[0]?.qLeft??[]),i=b$(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(y$(r,t,0)),visibleTopDimensionInfo:i.map(y$(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=f$(t,r),u=v$({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(x$.Provider,{value:c,children:e})},C$=20,E$=18,I$=.75,D$=e=>-1!==e&&e?.representation?.type===Qj.Image,P$=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===Qj.Image,M$=e=>void 0===e?_N:e,R$=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,L$=e=>R$(e,Iq.PixelsDefault),A$=(e,t)=>R$(e,Iq.PercentageDefault)*t/100,k$=(e,t,r)=>{switch(t?.type){case Dq.Pixels:return L$(t.pixels);case Dq.Percentage:return A$(t.percentage,e);case Dq.FitToContent:case Dq.Auto:default:return r}},O$=({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===nW)return e+0;const v=P$({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:Qj.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+E$+y+v+b)}),0),q$=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*E$;return Math.max(e,o+t(n.qFallbackTitle))}),0),T$=(e,t,r,n)=>{const o=100*e/t,i=n*I$*(o/100),a=o/100*+r;return Math.min(a,i)},_$=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),j$=(e,t)=>e.some((e=>e>=t*I$)),N$=({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*I$,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,O$({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,q$(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex((e=>e.id===nW)),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===Dq.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+E$+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,q$(e.visibleMeasureInfo,l,!0));g=Math.min(d,O$({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=Dq.Pixels,x.pixels=i);return[Dq.Pixels,Dq.Percentage].includes(x.type)||j$(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=j$(e,r);l===Dq.Auto&&d&&(o>i?o-=i:i-=o),l===Dq.Pixels&&u&&(o=T$(e[0],s,u,r),i=T$(e[1],s,u,r)),l===Dq.Percentage&&c&&(o=_$(e[0],s,c,r),i=_$(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 F$({tableWidth:e}){const t=e*I$,{styleService:r,layoutService:n,effectivePropertiesService:o}=Zz(),{translator:i}=Kz(),{gridSectionsData:{headersData:a}}=S$(),{measureText:s}=gF(r.header),{estimateWidth:l,measureText:u}=gF({...r.dimensionValues,fontWeight:M$(r.dimensionValues.fontWeight)}),{measureText:c}=gF({...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)+E$,a=Math.max(i,t);return Math.max(r,m?a:k$(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===nW)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?C$:0;return E$+s(t)+C$+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=E$;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===aN.Pivot?t=m?void 0:f:i.columnWidthLocation===aN.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===nW)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(D$(s))return Iq.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return E$+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===aN.Dimension&&a.size.x>1&&(r=e)}else r=y(s),i.columnWidthLocation===aN.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:k$(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u}));return m&&a.size.x>1?N$({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);xF((()=>{f(d())}),[d]);const m=h(((e,t)=>{f(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:m}}function z$({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=Zz(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=S$(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=gF(n.measureValues),{estimateWidth:p}=gF({...n.dimensionValues,fontWeight:M$(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),v=m===rW,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(Iq.PixelsMax,Math.max(Iq.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 Dq.Pixels:i(t,L$(o));break;case Dq.Percentage:i(t,A$(a,f));break;case Dq.FitToContent:i(t,((e,t,r)=>r?Iq.PixelsDefault:E$+(v?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+y)))(s,l,D$(e)));break;case Dq.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(Iq.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 W$=`scrollable-container--${lN.TopGrid}`,$$=`scrollable-container--${lN.LeftGrid}`,H$=`scrollable-container--${lN.DataGrid}`,V$=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},B$=(e,t)=>e>t?uN.Forward:e<t?uN.Backward:uN.None,G$=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=Gz();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])},U$=()=>{const{interactions:e}=Kz(),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(V$(e.current).width,V$(r.current).width))})),m((()=>{(t.current||r.current)&&a(Math.max(V$(t.current).height,V$(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}=Gz(),{downloadService:l,viewService:u,layoutService:c}=Zz(),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(uN.None),t=u(uN.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h((n=>{if(n instanceof WheelEvent&&(e.current=B$(n.deltaY,0),t.current=B$(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=B$(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=B$(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}=Zz();return h((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===$$&&(e.leftGridScrollLeft=n.scrollLeft),o===H$&&(e.scrollLeft=n.scrollLeft),o===W$&&(e.topGridScrollTop=n.scrollTop),o!==$$&&o!==H$||(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),G$(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}}},Y$=()=>{const{layoutService:e}=Zz(),{rect:t,pageInfo:r}=Gz();return g((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},K$=({children:e,style:t})=>Zo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),X$=({children:e,style:t})=>{const{direction:r}=Gz();return Zo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},J$=e=>e&&`scrollable-container--${e}`,Z$=({children:e,style:t,origin:r},n)=>{const{interactions:o}=Kz(),i=o.scroll?t:{overflow:"hidden"};return Zo.jsx("div",{"data-testid":"scrollable","data-key":J$(r),style:i,ref:n,children:e})};var Q$=r.forwardRef(Z$);const eH=({children:e,style:t})=>{const{direction:r}=Gz();return Zo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};function tH(){return tH=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},tH.apply(null,arguments)}function rH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nH(e,t){return nH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nH(e,t)}function oH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nH(e,t)}var iH=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function aH(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||iH(n)&&iH(o)))return!1;var n,o;return!0}function sH(e,t){var r;void 0===t&&(t=aH);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}}function lH(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}var uH="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function cH(e){cancelAnimationFrame(e.id)}function dH(e,t){var r=uH();var n={id:requestAnimationFrame((function o(){uH()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var pH=-1;function fH(e){if(void 0===e&&(e=!1),-1===pH||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),pH=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pH}var hH=null;function mH(e){if(void 0===e&&(e=!1),null===hH||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?hH="positive-descending":(t.scrollLeft=1,hH=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),hH}return hH}var gH=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function vH(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,rH(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:rH(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=sH((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=sH((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=sH((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(mH()){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&&cH(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=dH(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}oH(t,e),t.getDerivedStateFromProps=function(e,t){return yH(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=fH();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(mH()){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&&cH(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?gH: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],P=I[1],M=[];if(n>0&&v)for(var R=D;R<=P;R++)for(var L=C;L<=E;L++)M.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:tH({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},o(c||d||"div",{children:M,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}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var yH=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},bH=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},xH=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},SH=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]},wH=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?CH(e,t,r,i,0,n):EH(e,t,r,Math.max(0,i),n)},CH=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=SH(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},EH=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&SH(e,t,n,r).offset<o;)n+=a,a*=2;return CH(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},IH=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=SH(e,t,r,i),u="column"===e?xH(t,i):bH(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}},DH=vH({getColumnOffset:function(e,t,r){return SH("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return wH("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=SH("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=SH("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:bH,getEstimatedTotalWidth:xH,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return IH("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return IH("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return SH("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return wH("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=SH("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=SH("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}}),PH=function(e,t){return e};function MH(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,rH(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:rH(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=sH((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=sH((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=sH((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(mH()){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&&cH(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=dH(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}oH(t,e),t.getDerivedStateFromProps=function(e,t){return RH(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?fH():0:l.scrollHeight>l.clientHeight?fH():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(mH()){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&&cH(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?PH: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 P=E;P<=I;P++)D.push(o(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:tH({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%":M,pointerEvents:x?"none":void 0,width:S?M:"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}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var RH=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},LH=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]},AH=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=LH(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},kH=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&LH(e,r,t).offset<n;)r+=i,i*=2;return AH(e,t,Math.min(r,o-1),Math.floor(r/2),n)},OH=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},qH=MH({getItemOffset:function(e,t,r){return LH(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:OH,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=LH(e,t,o),p=OH(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?AH(e,t,o,0,r):kH(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=LH(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=LH(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 TH(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 _H=["style"],jH=["style"];function NH(e,t){var r=e.style,n=lH(e,_H),o=t.style,i=lH(t,jH);return!TH(r,o)&&!TH(n,i)}const FH=10,zH=(e,t)=>e.current===uN.Backward?t:0,WH=(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},$H=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,HH=({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(WH(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&$H(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},VH=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===uN.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return HH({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},BH=({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=zH(r,FH),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+FH,s-u),pageTop:o,qHeight:a}})(n,o,r),u=HH({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...VH({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},GH=(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},UH=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,YH=({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(GH(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&UH(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},KH=({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=zH(r,FH),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+FH,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=YH({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===uN.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=YH({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},XH=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==uN.None&&(p=KH({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==uN.None&&(f=BH({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===uN.None&&a.current===uN.None&&(p=YH({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},JH=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))}}(XH,100),ZH=wj(XH,75),QH=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),eV=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=Gz(),{styleService:{grid:{border:l,divider:u}}}=Zz();return Zo.jsx("div",{style:{...e,...HN,...UN(r,n,l,s,o),...KN({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},tV=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=Zz(),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})},rV=e=>{const{type:t,imageSize:r}=e;return t!==Qj.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},nV=e=>"number"==typeof e&&!Number.isNaN(+e),oV=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,iV=x(((e,t)=>Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Zo.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),aV=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"})}))),sV=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"})]}))),lV=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"})}))),uV=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"})}))),cV=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"})}))),dV=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"})}))),pV=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"})}))),fV=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"})}))),hV=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"})}))),mV=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"})}))),gV=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"})}))),vV=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"})}))),yV=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"})}))),bV=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"})}))),xV={m:gV,"ï":hV,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:vV,T:yV,U:bV,P:fV,Q:cV,"è":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"})}))),"¢":lV,"©":sV,"23F4":uV,2013:mV,"&":pV,add:iV,"minus-2":dV,dot:aV},SV=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&xV[t];return o&&Zo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Zo.jsx(o,{style:{height:e}})})},wV=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),CV=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},EV=(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&&n_(e.localPaletteColors[t].color).blend(n_(s.color),s.t)},IV=(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:wV(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:CV(n,t,r)})))),n},DV=(e,t,r,n)=>{const o=IV(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=EV(e,a,t);break}n=i}return r})(o,t);return a},PV=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!nV(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||!nV(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)},MV=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=PV(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||!nV(t))return 0;let a=r&&nV(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}},RV=e=>"flex-start"===e?"flex-end":"flex-start",LV=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=MV(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 CV(o,r.limitPaletteColorIndex,n);const a=wV(r.limitRange,t);return DV(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}},AV=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=Zz(),{theme:o}=Kz(),{direction:i}=Gz(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=LV(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||qN,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&&SV({size:v,iconKey:y,color:b,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&&SV({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,SV({size:v,iconKey:y,color:b,pvStyle:S}))},kV=(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}},OV=(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},qV=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=P$({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===Qj.Image)return a&&l&&"center"!==l&&"rtl"===n?RV(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return kV(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return kV(u,s,n)},TV=e=>!!e.target?.getAttribute("class")?.includes(Eq),_V=(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}},jV=e=>null!==e.target?.closest("[data-prevent-selection]"),NV=e=>"A"===e.target?.tagName,FV=({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 zV=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),WV=()=>n(zV),$V=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=Gz(),r=e.isActive(),[n,o]=d(_V,{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:[tW,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);TV(r)||jV(r)||NV(r)||!(e=>1===e.buttons)(r)||!n||o(FV({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=h((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([tW]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=h(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);TV(r)||jV(r)||NV(r)||!n||(o(FV({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(zV.Provider,{value:r,children:e})},HV=e=>"fill"===e.representation.imageSize,VV=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&HV(e)&&t&&(r="center"),e.representation.type!==Qj.Image||HV(e)?r:e.representation.resolvedImagePosition?.vertical};var BV=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(BV||{});const GV={brighter:.5,darker:.3,opacity:.03},UV=(e,{cell:t,styleService:r})=>{if(e===BV.Background||e===BV.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]},YV=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=UV(BV.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?UV(BV.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${CN(i=o,GV)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},KV=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:UV(BV.Color,{cell:e,styleService:t}),XV=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=UV(BV.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?_N:o},JV=({cell:e,styleService:t})=>UV(BV.FontStyle,{cell:e,styleService:t}),ZV=({cell:e,styleService:t})=>UV(BV.TextDecoration,{cell:e,styleService:t}),QV=e=>e?"pointer":"default",eB=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},tB=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Qj.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},rB=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=Zz(),{interactions:i}=Kz(),{isActive:a}=WV(),{dataModel:s}=S$();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=KV({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?nz:rz;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=P$({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,...tB(e,n),...f&&{alignSelf:VV(e)}},onClick:l?void 0:eB({cell:e,expandOrCollapse:p})})},nB=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},oB=(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%"}},iB=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},aB=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=P$({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}}},sB=e=>{if("alwaysFit"===e)return"contain"},lB=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),uB=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:oB(e,r,n),height:nB(e),objectFit:sB(e),objectPosition:iB(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),cB=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=Zz(),t=u(null),{promise:r,resolve:n}=g((()=>oF()),[]);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}}=Zz(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Zo.jsx("img",{src:a,alt:s,style:{...uB({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},dB=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=Zz(),{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",...aB({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Zo.jsx(cB,{representation:e,textStyle:t,isMeasureCell:!0})})},pB={display:"flex",flexDirection:"row",alignItems:"center"},fB={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},hB=(e,t,r,n)=>t?{...fB,...e.nullValues}:r?{...pB,color:e.totalValues.color,background:n??e.totalValues.background}:{...pB,color:e.measureValues.color,background:n??e.measureValues.background},mB=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...VN,...!r&&BN(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?_N:l,fontStyle:u,textDecoration:c}},gB=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=Zz(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===Qj.Image,c=t.type===Qj.Indicator,d=nV(oV(l)),p=mB(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Zo.jsx(dB,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=oV(e.isNull?t.text:e.ref.qNum);return c&&nV(f)?Zo.jsx(AV,{representation:t,cellValue:f,textStyle:p}):Zo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},vB=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,yB="flex-start",bB=(e,t)=>e.isNull?yB:t.type===Qj.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:yB,xB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=Kz(),{pageInfo:i,direction:a}=Gz(),{styleService:s,layoutService:l}=Zz(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:m}}=S$(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=Zz(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=S$(),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])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=S$(),r=t.length;return h((t=>{const n=e.grid.at(r-1)?.[t];return QH(n,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=Zz(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=S$(),n=r.length;return h((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return QH(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:b}=n,x=p.grid.at(m.length-1),S=d.grid.at(f.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return Zo.jsx(eV,{style:{...r,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?vB(S,t):vB(x,e),P=l.visibleMeasureInfo[D],M=QW({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:o,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[Qj.Image]:!0,[Qj.Indicator]:!0}}),R=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():M.text,A=!C.isNull||!Number.isNaN(+L),k=e$(u.measures[D],C.ref),O=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==Qj.Image?kV(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,P,M,A,a),q={...hB(s,C.isNull,R,k.background),...UN(E,I,s.grid.border,a,b),...KN({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...HN,padding:"0px 4px",display:"flex",justifyContent:O};return Zo.jsx("div",{className:Sq,title:L,style:{...q,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Zo.jsx(tV,{width:rV(M),verticalAlign:bB(C,M),children:Zo.jsx(gB,{cell:C,representation:M,isTotalValueCell:R,color:k.color,cellHorizontalAlignment:O})})})};var SB=r.memo(xB,NH);const wB=(e,t)=>t.list[e]?.id??e.toString(),CB=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,EB=e=>({...$N,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),IB=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=Gz(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=Zz(),{dataModel:f,gridSectionsData:{measureData:g}}=S$(),v={...EB(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=Gz(),{downloadService:n,viewService:o,layoutService:i}=Zz(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=S$(),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===uN.None?0:FH),m=o.gridHeight+d+(e.current===uN.None?0:FH);let g=JH;m*h>1500&&(g=ZH),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return xF((()=>{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(DH,{"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:CB,direction:u,children:SB})};var DB=y(IB);const PB=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"})]}))),MB=e=>{const[t,r]=v(!1);return xF((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},RB=()=>{const[e,t]=v(!1),{dataModel:r}=S$(),{interactions:n}=Kz(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=MB([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||TV(e)||o||t(!0)},setIsAdjustingWidth:i}};function LB(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===FN.Transparent?xN.WHITE:n,i=n_(e.grid.border),a=n_(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return n_(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 AB=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=Gz(),{interactions:l,translator:u}=Kz(),{isActive:c}=WV(),{dataModel:d}=S$(),{styleService:p}=Zz(),[,f]=v({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=LB(p,e);return Zo.jsx(DF,{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)*I$,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},kB=al(Gu,{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}}))),OB=al("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),qB=al("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...WN,justifyContent:e??WN.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),TB=al("div")((()=>({...WN}))),_B=al("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}))),jB=al(sp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),NB=al(pp,{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}}}))),FB=al("span")({textOverflow:"ellipsis",overflow:"hidden"}),zB=al("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:C$,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),WB=al("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let $B=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const HB=(e,t)=>({qExcludeList:t===$B.Expand,qPos:{qDimName:e,qElemNo:[]}}),VB=`${tW}/qExpansionState`,BB=({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:HB(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=VB,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${VB}/-`,t=JSON.stringify(o)):(r=`${VB}/${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`})},GB=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:BB({...n,action:$B.Expand}),collapseCallback:BB({...n,action:$B.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},UB={[dz.Sorting]:!0,[dz.Selections]:!0,[dz.Searching]:!0},YB=({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}=Zz(),{app:g,interactions:v,embed:y,translator:b,model:x}=Kz(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:I,color:D,background:P,hoverBackground:M,activeBackground:R}=f.header,L=u(null),{shouldShowLockIcon:A,shouldShowMenuIcon:k}=a,{open:O,setOpen:q,handleOpenMenu:T,setIsAdjustingWidth:_}=RB(),{direction:j}=Gz(),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)??{},$=kV(W,"flex-start",j);return Zo.jsxs(kB,{className:Sq,title:e.label,interactions:v,background:O?R:P,hoverBackground:M,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...HN,...YN(e,o,r,n,f.grid.border,j),color:D},"data-testid":"title-cell",onClick:T,children:[Zo.jsxs(qB,{children:[A?Zo.jsx(TB,{children:Zo.jsx(PB,{height:12})}):null,Zo.jsx(_B,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:I,justifyContent:$,children:Zo.jsx("span",{style:VN,children:e.label})})]}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(hz,{headerData:e,translator:b,anchorRef:L,open:O,setOpen:q,interactions:v,menuAvailabilityFlags:UB,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:GB({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),Zo.jsx(OB,{ref:p,direction:j}),Zo.jsx(OB,{ref:L,direction:j})]}):null,Zo.jsx(AB,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},KB=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=Zz(),{direction:n}=Gz();return e>0&&t>0?Zo.jsx("div",{style:{...$N,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},XB=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 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),JB=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:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),ZB=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=Gz(),{styleService:o}=Zz(),{interactions:i,translator:a}=Kz(),{isActive:s}=WV(),{dataModel:l}=S$(),{setIsAdjustingWidth:u}=MB([l]);if(!(!!i.active&&!s))return null;const c=LB(o,{isLeftColumn:!0});return Zo.jsx(DF,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*I$))},confirmWidthCallback:n=>{if(n.type===Dq.FitToContent)return void l.applyIndentModeColumnWidth({type:Dq.Auto});const o=Math.min(n.pixels??t,e*I$);r(o),l.applyIndentModeColumnWidth({type:Dq.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},QB=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"})}))),eG=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=Kz(),{layoutService:c,effectivePropertiesService:d}=Zz(),{open:p,setOpen:f,handleOpenMenu:h}=RB();return Zo.jsxs(NB,{onClick:h,isActive:p,children:[Zo.jsx(FB,{children:e.label}),Zo.jsxs(zB,{className:"indent-mode-dropdown-more",visible:p,children:[Zo.jsx(QB,{}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(hz,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:UB,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:GB({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Zo.jsx(OB,{ref:n}),Zo.jsx(OB,{ref:r})]}):null]})]})},tG=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===nW,i=e+1<r.length&&r[e+1]?.id===nW;return!(n&&o&&i)&&(t?.id!==nW&&e<r.length-1)},rG=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=Zz(),{interactions:a,translator:s}=Kz(),{dataModel:l,gridSectionsData:{headersData:c}}=S$(),[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}=MB([l]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Zo.jsxs(kB,{isDimension:!0,background:d?b:g,interactions:a,hoverBackground:y,style:{...P,...HN,color:m},onClick:e=>{!a.active||TV(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Zo.jsxs(qB,{justifyContent:"flex-start",children:[Zo.jsx(_B,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Zo.jsx("span",{style:VN,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Zo.jsx(JB,{}):Zo.jsx(XB,{}),Zo.jsx(OB,{ref:f})]}),Zo.jsx(jB,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==nW&&Zo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:Zo.jsx(eG,{cell:r,changeSortOrder:t})}),tG({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Zo.jsx(AF,{"data-testid":"group-divider",variant:"middle"})]))}),Zo.jsx(ZB,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},nG=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,oG={display:"grid",width:"fit-content"},iG=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=Zz(),{gridSectionsData:{headersData:u}}=S$();return Zo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...oG,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Zo.jsx(KB,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(nG({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Zo.jsx(rG,{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(YB,{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 aG=y(iG);const sG=(e,t,r,n)=>{const{layoutService:o}=Zz();m((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},lG=(e,t)=>{xF((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},uG=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},cG=()=>{},dG=({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}=Zz(),{interactions:f}=Kz(),{direction:h}=Gz(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=WV(),{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=>uG(e,n))):void 0,C=S?v(c):void 0,E=S?y(c,(e=>uG(e,n))):void 0,I=P$({isLeftColumn:s,layoutService:p,representation:r.representation});return Zo.jsx("div",{className:Sq,title:f.passive?r.representation.text:void 0,style:{...t,...UN(i,a,d.grid.border,h,b),...KN({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...HN,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:QV(S),background:YV({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:qV(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:OV(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:cG,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})},pG=e=>{e.stopPropagation()},fG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:pG,color:xN.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),hG=({href:e,text:t,interactions:r,color:n})=>Zo.jsx(pd,{...fG({href:e,text:t,interactions:r,color:n}),children:t}),mG=Y();mG.use(U),mG.renderer.prio(["canvas"]);const gG=(e,t)=>e&&"center"!==e&&"rtl"===t?RV(e):e,vG=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=Zz(),{direction:a}=Gz();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:VV(e),alignItems:gG(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Zo.jsx(cB,{representation:t,textStyle:r})}),Zo.jsx(WB,{padding:4/(i<=2?2:1),alignSelf:VV(e,!0),children:!!t.labelStructure&&lB(t.labelStructure)})]})},yG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,bG=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Zo.jsxs("span",{children:[Zo.jsx(pd,{...fG({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&yG(r)]}),xG=({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}),SG=({isLeftColumn:e,styleService:t,cell:r,isIndentModeEnabled:n})=>e?n?t.grid.lineClamp:Math.max(t.grid.lineClamp,r.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,wG=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=Gz(),{isActive:o}=WV(),{layoutService:i,styleService:a}=Zz(),{interactions:s}=Kz(),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,isIndentModeEnabled:o})=>({...VN,...BN(SG({cell:e,isLeftColumn:n,styleService:t,isIndentModeEnabled:o})),color:KV({cell:e,styleService:t,isCellSelected:r}),fontWeight:XV({cell:e,styleService:t}),fontStyle:JV({cell:e,styleService:t}),textDecoration:ZV({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r,isIndentModeEnabled:i.isIndentModeEnabled});if(e.representation.type===Qj.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?vG:dB;return Zo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:qV(e,i,r,n)})}if(e.representation.type===Qj.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?bG:hG;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(xG,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===Qj.Image&&e.isNull?{alignSelf:VV(e)}:{}},children:u})},CG=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=Zz(),{isSelected:i}=WV(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=MB([r]),f=uG(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=QH(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Zo.jsx(eV,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return Zo.jsxs(dG,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Zo.jsxs(tV,{verticalAlign:VV(f),width:rV(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Zo.jsx(rB,{isLeftColumn:a,isCellSelected:v,cell:f}),Zo.jsx(wG,{isLeftColumn:a,isCellSelected:v,cell:f})]}),Zo.jsx(AB,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?aN.Measures:aN.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var EG=r.memo(CG,NH);const IG=({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)},DG=(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}},PG=(e,t)=>r=>{e.current&&(e.current[t]=r)},MG={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...$N},RG={overflow:"hidden",willChange:"auto",flexShrink:0},LG=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=Gz(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=Zz(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=S$();lG(e,d),sG(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...MG,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=oW(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=DG(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(qH,{ref:PG(e,u),style:{...RG,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:wB,estimatedItemSize:v,children:EG},m)}))})};var AG=y(LG);const kG={overflow:"hidden",willChange:"auto"},OG=e=>({...$N,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),qG=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=Gz(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=Zz(),{gridSectionsData:{headersData:c,topDimensionData:d}}=S$(),p={...OG(a),borderColor:l,height:n};lG(e,d),sG(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Zo.jsx("div",{style:{width:r,height:n,...OG(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}=DG(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=nG({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?oW(g):`empty ${l}`;return Zo.jsx(qH,{ref:PG(e,l),style:kG,height:t(),width:r,itemCount:p,itemSize:IG({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:wB,estimatedItemSize:h,direction:a,children:EG},v)}))})};var TG=y(qG);const _G=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=Zz(),r=Y$(),n=(()=>{const{model:e}=Kz(),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}}=U$(),{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}=Zz(),{gridSectionsData:{headersData:i}}=S$(),{measureText:a}=gF(o.header),s=F$({tableWidth:e}),l=z$({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)+E$;return t&&d+C$<=l&&(c=!0,d+=C$),d+C$<=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:P,topGridDims:M,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=Y$(),{pageInfo:l}=Gz(),{gridSectionsData:{headersData:u,topDimensionData:c}}=S$(),d=Math.min(s.height*I$,Math.max(s.height*I$-25,s.height-t-a)),p=s.width*I$,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),P=Math.min(I,f),M=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:M-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:M-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:M-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,P-(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}}),O=h((()=>e),[e]),q=h((()=>t),[t]);return(()=>{const{downloadService:e}=Zz();p((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Zo.jsxs(X$,{style:D,children:[Zo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Zo.jsx(aG,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:n,overrideLeftGridWidth:I})}),Zo.jsx(Q$,{style:k.topGrid,origin:lN.TopGrid,ref:i,children:Zo.jsx(K$,{style:M.fullSizeWrapper,children:Zo.jsx(eH,{style:M.stickyWrapper,children:Zo.jsx(TG,{topGridRef:l,rowHightCallback:O,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Zo.jsx(Q$,{style:k.leftGrid,origin:lN.LeftGrid,ref:a,children:Zo.jsx(K$,{style:R.fullSizeWrapper,children:Zo.jsx(eH,{style:R.stickyWrapper,children:Zo.jsx(AG,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),Zo.jsx(Q$,{style:k.dataGrid,origin:lN.DataGrid,ref:s,children:Zo.jsx(K$,{style:L.fullSizeWrapper,children:Zo.jsx(eH,{style:L.stickyWrapper,children:Zo.jsx(DB,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},jG=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=Kz(),{pageInfo:o,updatePageInfo:i,rect:a}=Gz(),{layoutService:s}=Zz(),{layout:l,hasData:u}=s;return Zo.jsxs(Zo.Fragment,{children:[u?Zo.jsx(_G,{}):null,Zo.jsx(eW,{}),Zo.jsx(Vz,{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 NG=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){const t=MS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Cs({...t,direction:e})}(n.direction);e.render(Zo.jsx(r.StrictMode,{children:Zo.jsx(ll,{theme:a,children:Zo.jsx(Xz,{...i,children:Zo.jsx(Uz,{...n,children:Zo.jsx($V,{selections:t,children:Zo.jsx(Qz,{...o,children:Zo.jsx(w$,{children:Zo.jsx(jG,{})})})})})})})}))};var FG=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}(FG||{}),zG=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}(zG||{}),WG=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(WG||{}),$G=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}($G||{});const HG=e=>e?`${parseInt(e,10)}px`:void 0,VG=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?FN.Transparent:r}},BG=(e,t)=>+(parseInt(e,10)*NN*t+8).toFixed(2),GG=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?_N:"normal",UG=e=>e?.some((e=>"italic"===e))?"italic":"normal",YG=e=>e?.some((e=>"underline"===e))?"underline":"none",KG=document.createElement("textarea");function XG(e){KG.value=e,document.body.appendChild(KG),KG.select(),KG.setSelectionRange(0,KG.value.length),document.execCommand("copy"),document.body.removeChild(KG)}KG.style.position="absolute",KG.style.left="-9999px",KG.setAttribute("readonly","");function JG(e){T?.(((t,r)=>{const n=r.target,o=n?.closest(`.${Sq}`);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((()=>{XG(t)})):XG(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const ZG=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>iF(((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(tW,0,0,!0),await e.expandLeft(tW,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:BB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:$B.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(tW,0,0,!0),await e.collapseLeft(tW,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:BB({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:$B.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),QG=(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,jN),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(rW),h=new Map(i.map((e=>[s[e]??rW,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===rW?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:Dq.Auto,pixels:Iq.PixelsDefault,percentage:Iq.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),eU=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=sF(e);return t.current=e,t})(m$(o));return fF((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(jN,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(tW,g$(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},tU=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),rU=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:tU({rowsPerPage:r,totalRowCount:e,page:t})}),nU=15,oU=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{const{freeResize:i}=R();return _((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-nU,0),u=Math.max(s+o-nU,s,0),c=jN-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=m$(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=g$(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(tW,[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})),j((()=>({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&&!i?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var iU={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 aU=()=>{const e=N(),t=e.language();return M((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(iU).forEach((t=>{e.add(iU[t])}))}(e)}),[e]),{translator:e,language:t}},sU=e=>{const{flags:t}=e,r=F(),n=(e=>{const t=M((()=>vF(e)),[e]);return k((()=>()=>{t.unmount()}),[t]),t})(r),o=z(),i=W(),a=$(),s=H(),l=V(),u=(()=>{const{viewState:e}=R(),t=sF(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=M((()=>oF()),[]),i=iF((e=>{r&&t.current.add(e)}),[t]),a=iF(wj((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return L((async()=>{r&&await n}),[n,r]),M((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])})(),c=((e,t)=>{const[r]=fF((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=QG(o,t),p=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=B(),h=pF(o,r),{translator:m,language:g}=aU(),{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]=A((()=>{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,...rU(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return k((()=>{s((t=>({...t,...rU(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),k((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=tU({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:tU({...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=oU({rect:G(),layoutService:d,viewService:b,model:i,pageInfo:v}),[S,w]=eU({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?.[FG.LineClamp]??c(zG.Grid,WG.Grid,$G.LineClamp)??1),p=+(u?.[FG.ColumnLineClamp]??c(zG.Grid,WG.Grid,$G.ColumnLineClamp)??1),f=VG(e,n?.[FG.Background])??c(zG.Dimension,WG.LabelName,$G.BackgroundColor)??FN.Transparent,h={header:{fontSize:HG(n?.[FG.FontSize])??c(zG.Dimension,WG.LabelName,$G.FontSize)??qN,fontFamily:n?.[FG.FontFamily]??c(zG.Dimension,WG.LabelName,$G.FontFamily)??TN,fontWeight:GG(n?.[FG.FontStyle],_N),fontStyle:UG(n?.[FG.FontStyle]),textDecoration:YG(n?.[FG.FontStyle]),color:VG(e,n?.[FG.FontColor])??c(zG.Dimension,WG.LabelName,$G.FontColor)??xN.TEXT,background:f,hoverBackground:CN(f,Pq),activeBackground:CN(f,Mq)},dimensionValues:{fontSize:HG(o?.[FG.FontSize])??c(zG.Dimension,WG.LabelValue,$G.FontSize)??qN,fontFamily:o?.[FG.FontFamily]??c(zG.Dimension,WG.LabelValue,$G.FontFamily)??TN,fontWeight:GG(o?.[FG.FontStyle],void 0),fontStyle:UG(o?.[FG.FontStyle]),textDecoration:YG(o?.[FG.FontStyle]),color:VG(e,o?.[FG.FontColor])??c(zG.Dimension,WG.LabelValue,$G.FontColor)??xN.TEXT,background:VG(e,o?.[FG.Background])??c(zG.Dimension,WG.LabelValue,$G.BackgroundColor)??FN.Transparent},measureValues:{fontSize:HG(i?.[FG.FontSize])??c(zG.Measure,WG.LabelValue,$G.FontSize)??qN,fontFamily:i?.[FG.FontFamily]??c(zG.Measure,WG.LabelValue,$G.FontFamily)??TN,fontWeight:GG(i?.[FG.FontStyle],"normal"),fontStyle:UG(i?.[FG.FontStyle]),textDecoration:YG(i?.[FG.FontStyle]),color:VG(e,i?.[FG.FontColor])??c(zG.Measure,WG.LabelValue,$G.FontColor)??FN.FontSecondary,background:VG(e,i?.[FG.Background])??c(zG.Measure,WG.LabelValue,$G.BackgroundColor)??FN.Transparent},measureLabels:{fontWeight:GG(a?.[FG.FontStyle],"normal"),fontStyle:UG(a?.[FG.FontStyle]),textDecoration:YG(a?.[FG.FontStyle]),color:VG(e,a?.[FG.FontColor])??c(zG.Measure,WG.LabelName,$G.FontColor)??FN.FontSecondary,background:VG(e,a?.[FG.Background])??c(zG.Measure,WG.LabelName,$G.BackgroundColor)??FN.Transparent},totalValues:{fontWeight:GG(s?.[FG.FontStyle],_N),fontStyle:UG(s?.[FG.FontStyle]),textDecoration:YG(s?.[FG.FontStyle]),color:VG(e,s?.[FG.FontColor])??c(zG.Total,WG.LabelValue,$G.FontColor)??xN.TEXT,background:VG(e,s?.[FG.Background])??c(zG.Total,WG.LabelValue,$G.BackgroundColor)??FN.Transparent},nullValues:{fontWeight:GG(l?.[FG.FontStyle],"normal"),fontStyle:UG(l?.[FG.FontStyle]),textDecoration:YG(l?.[FG.FontStyle]),color:VG(e,l?.[FG.FontColor])??c(zG.Null,WG.LabelValue,$G.FontColor)??xN.TEXT,background:VG(e,l?.[FG.Background])??c(zG.Null,WG.LabelValue,$G.BackgroundColor)??FN.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:VG(e,u?.[FG.Border])??c(zG.Grid,WG.Grid,$G.BorderColor)??FN.DividerLight,divider:VG(e,u?.[FG.Divider])??c(zG.Grid,WG.Divider,$G.BorderColor)??FN.DividerDark,background:VG(e,u?.[FG.Background])??c(zG.Grid,WG.Grid,$G.BackgroundColor)??FN.Transparent},selectedColors:wN(e)};return h.headerCellHeight=Math.max(BG(h.header.fontSize,p),BG(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(BG(h.measureValues.fontSize,d),BG(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=BG(h.dimensionValues.fontSize,1),h})(h,d)),[h,d]),E=((e,t,r)=>{const[,n,o]=fF((async()=>{const t=b_(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,bF].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),{direction:I}=R();JG([ZG({model:i,layoutService:d,effectivePropertiesService:c,translator:m})]),k((()=>{!w&&i&&!!S&&E&&NG(n,{selections:f,baseObjects:{rect:x,pageInfo:v,qPivotDataPages:S,updatePageInfo:y,direction:I},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,I])},lU={version:"7.0.8",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:[]},uU=()=>({...lU,qHyperCubeDef:{...lU.qHyperCubeDef,qIndentMode:!1}})}}}));
|