@nebula.js/sn-pivot-table 7.21.0 → 7.22.0

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.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v7.21.0
2
+ * @nebula.js/sn-pivot-table v7.22.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,R,P,M,L,A,k,O,q,T,j,N,_,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){n=e.default,r=e.createElement,i=e,o=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){R=e.HyperCubeHandler,P=e.useMemo,M=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,j=e.onTakeSnapshot,N=e.useImperativeHandle,_=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:TY()},data:SF(e)},ext:Pz(e),component(){OY(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",ne="#ce93d8",re="#ba68c8",ie="#ab47bc",oe="#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",Re="#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 Le=Object.freeze({__proto__:null,default:Me}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var qe="-ms-",Te="-moz-",je="-webkit-",Ne="comm",_e="rule",Fe="decl",ze="@keyframes",We=Math.abs,$e=String.fromCharCode,He=Object.assign;function Ve(e){return e.trim()}function Be(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Ue(e,t,n){return e.indexOf(t,n)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ke(e,t,n){return e.slice(t,n)}function Xe(e){return e.length}function Je(e){return e.length}function Ze(e,t){return t.push(e),e}function Qe(e,t){return e.filter(function(e){return!Be(e,t)})}var et,tt,nt=1,rt=1,it=0,ot=0,at=0,st="";function lt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:nt,column:rt,length:a,return:"",siblings:s}}function ut(e,t){return He(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});Ze(e,e.siblings)}function dt(){return at=ot>0?Ye(st,--ot):0,rt--,10===at&&(rt=1,nt--),at}function pt(){return at=ot<it?Ye(st,ot++):0,rt++,10===at&&(rt=1,nt++),at}function ft(){return Ye(st,ot)}function ht(){return ot}function mt(e,t){return Ke(st,e,t)}function gt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vt(e){return Ve(mt(ot-1,xt(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function bt(e,t){for(;--t&&pt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ht()+(t<6&&32==ft()&&32==pt()))}function xt(e){for(;pt();)switch(at){case e:return ot;case 34:case 39:34!==e&&39!==e&&xt(at);break;case 40:41===e&&xt(e);break;case 92:pt()}return ot}function St(e,t){for(;pt()&&e+at!==57&&(e+at!==84||47!==ft()););return"/*"+mt(t,ot-1)+"*"+$e(47===e?e:pt())}function wt(e){for(;!gt(ft());)pt();return mt(e,ot)}function Ct(e){return function(e){return st="",e}(Et("",null,null,null,[""],e=function(e){return nt=rt=1,it=Xe(st=e),ot=0,[]}(e),0,[0],e))}function Et(e,t,n,r,i,o,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=i,S=o,w=r,C=b;g;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Ye(C,d-1)){-1!=Ue(C+=Ge(vt(y),"&","&\f"),"&\f",We(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(y);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=bt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ze(Dt(St(pt(),ht()),t,n,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Xe(C)||" "===Ke(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Xe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ge(C,/\f/g,"")),f>0&&(Xe(C)-d||0===m&&47===h)&&Ze(f>32?Rt(C+";",r,n,d-1,l):Rt(Ge(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Ze(w=It(C,t,n,u,c,i,s,b,x=[],S=[],d,o),o),123===y)if(0===c)Et(C,t,w,w,x,o,d,s,S);else{switch(p){case 99:if(110===Ye(C,3))break;case 108:if(97===Ye(C,2))break;default:c=0;case 100:case 109:case 115:}c?Et(e,w,w,r&&Ze(It(e,w,w,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Et(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Xe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==dt())continue;switch(C+=$e(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Xe(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),c=d=Xe(b=C+=wt(ht())),y++;break;case 45:45===h&&2==Xe(C)&&(m=0)}}return o}function It(e,t,n,r,i,o,a,s,l,u,c,d){for(var p=i-1,f=0===i?o:[""],h=Je(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Ke(e,p+1,p=We(g=a[m])),x=e;y<h;++y)(x=Ve(g>0?f[y]+" "+b:Ge(b,/&\f/g,f[y])))&&(l[v++]=x);return lt(e,t,n,0===i?_e:s,l,u,c,d)}function Dt(e,t,n,r){return lt(e,t,n,Ne,$e(at),Ke(e,2,-2),0,r)}function Rt(e,t,n,r,i){return lt(e,t,n,Fe,Ke(e,0,r),Ke(e,r+1,-1),r,i)}function Pt(e,t,n){switch(function(e,t){return 45^Ye(e,0)?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}(e,t)){case 5103:return je+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return je+e+e;case 4855:return je+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return je+e+Te+e+qe+e+e;case 5936:switch(Ye(e,t+11)){case 114:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return je+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return je+e+qe+e+e;case 6165:return je+e+qe+"flex-"+e+e;case 5187:return je+e+Ge(e,/(\w+).+(:[^]+)/,je+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return je+e+qe+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Be(e,/flex-|baseline/)?"":qe+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return je+e+qe+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return je+e+qe+Ge(e,"shrink","negative")+e;case 5292:return je+e+qe+Ge(e,"basis","preferred-size")+e;case 6060:return je+"box-"+Ge(e,"-grow","")+je+e+qe+Ge(e,"grow","positive")+e;case 4554:return je+Ge(e,/([^-])(transform)/g,"$1"+je+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,je+"$1"),/(image-set)/,je+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,je+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,je+"box-pack:$3"+qe+"flex-pack:$3"),/space-between/,"justify")+je+e+e;case 4200:if(!Be(e,/flex-|baseline/))return qe+"grid-column-align"+Ke(e,t)+e;break;case 2592:case 3360:return qe+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Be(e.props,/grid-\w+-end/)})?~Ue(e+(n=n[t].value),"span",0)?e:qe+Ge(e,"-start","")+e+qe+"grid-row-span:"+(~Ue(n,"span",0)?Be(n,/\d+/):+Be(n,/\d+/)-+Be(e,/\d+/))+";":qe+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Be(e.props,/grid-\w+-start/)})?e:qe+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,je+"$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(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+je+"$2-$3$1"+Te+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ue(e,"stretch",0)?Pt(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,a,s){return qe+n+":"+r+s+(i?qe+n+"-span:"+(o?a:+a-+r)+s:"")+e});case 4949:if(121===Ye(e,t+6))return Ge(e,":",":"+je)+e;break;case 6444:switch(Ye(e,45===Ye(e,14)?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+je+(45===Ye(e,14)?"inline-":"")+"box$3$1"+je+"$2$3$1"+qe+"$2box$3")+e;case 100:return Ge(e,":",":"+qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Mt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Fe:return e.return=e.return||e.value;case Ne:return"";case ze:return e.return=e.value+"{"+Mt(e.children,r)+"}";case _e:if(!Xe(e.value=e.props.join(",")))return""}return Xe(n=Mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function At(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fe:return void(e.return=Pt(e.value,e.length,n));case ze:return Mt([ut(e,{value:Ge(e.value,"@","@"+je)})],r);case _e:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Be(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ge(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)});break;case"::placeholder":ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":"+je+"input-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,qe+"input-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)})}return""})}}const kt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",qt="data-styled-version",Tt="6.4.0",jt="/*!sc*/\n",Nt="undefined"!=typeof window&&"undefined"!=typeof document;function _t(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ft=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(tt=null!==(et=_t("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==et?et:_t("SC_DISABLE_SPEEDY"))&&void 0!==tt?tt:"undefined"==typeof process||void 0===process.env||!1),zt="sc-keyframes-",Wt={};function $t(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Ht=new Map,Vt=new Map,Bt=1;const Gt=e=>{if(Ht.has(e))return Ht.get(e);for(;Vt.has(Bt);)Bt++;const t=Bt++;return Ht.set(e,t),Vt.set(t,e),t},Ut=e=>Vt.get(e),Yt=(e,t)=>{Bt=t+1,Ht.set(e,t),Vt.set(t,e)},Kt=Object.freeze([]),Xt=Object.freeze({});function Jt(e,t,n=Xt){return e.theme!==n.theme&&e.theme||t||n.theme}const Zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qt=/(^-|-$)/g;function en(e){return e.replace(Zt,"-").replace(Qt,"")}const tn=/(a)(d)/gi,nn=e=>String.fromCharCode(e+(e>25?39:97));function rn(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nn(t%52)+n;return(nn(t%52)+n).replace(tn,"$1-$2")}const on=5381,an=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},sn=e=>an(on,e);function ln(e){return rn(sn(e)>>>0)}function un(e){return"string"==typeof e&&!0}function cn(e){return un(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const dn=Symbol.for("react.memo"),pn=Symbol.for("react.forward_ref"),fn={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},hn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gn={[pn]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[dn]:mn};function vn(e){return("type"in(t=e)&&t.type.$$typeof)===dn?mn:"$$typeof"in e?gn[e.$$typeof]:fn;var t}const yn=Object.defineProperty,bn=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sn=Object.getOwnPropertyDescriptor,wn=Object.getPrototypeOf,Cn=Object.prototype;function En(e,t,n){if("string"!=typeof t){const r=wn(t);r&&r!==Cn&&En(e,r,n);const i=bn(t).concat(xn(t)),o=vn(e),a=vn(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in hn||n&&n[s]||a&&s in a||o&&s in o)){const n=Sn(t,s);try{yn(e,s,n)}catch(e){}}}}return e}function In(e){return"function"==typeof e}function Dn(e){return"object"==typeof e&&"styledComponentId"in e}function Rn(e,t){return e&&t?e+" "+t:e||t||""}function Pn(e,t){return e.join("")}function Mn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ln(e,t,n=!1){if(!n&&!Mn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ln(e[n],t[n]);else if(Mn(t))for(const n in t)e[n]=Ln(e[n],t[n]);return e}function An(e,t){Object.defineProperty(e,"toString",{value:t})}const kn=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw $t(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+jt;return t}},On=`style[${kt}][${qt}="${Tt}"]`,qn=new RegExp(`^${kt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Tn=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,jn=e=>{if(!e)return document;if(Tn(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Tn(t))return t}return document},Nn=(e,t,n)=>{const r=n.split(",");let i;for(let n=0,o=r.length;n<o;n++)(i=r[n])&&e.registerName(t,i)},_n=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(jt),i=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const o=n.match(qn);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(Yt(n,t),Nn(e,n,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},Fn=e=>{const t=jn(e.options.target).querySelectorAll(On);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(kt)!==Ot&&(_n(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let zn=!1;const Wn=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),o=(e=>{const t=Array.from(e.querySelectorAll(`style[${kt}]`));return t[t.length-1]})(r),a=void 0!==o?o.nextSibling:null;i.setAttribute(kt,Ot),i.setAttribute(qt,Tt);const s=t||function(){if(!1!==zn)return zn;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return zn=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return zn=t.getAttribute("content")||void 0}return zn="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},$n=class{constructor(e,t){this.element=Wn(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw $t(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Hn=class{constructor(e,t){this.element=Wn(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vn=Nt;const Bn={isServer:!Nt,useCSSOMInjection:!Ft};class Gn{static registerId(e){return Gt(e)}constructor(e=Xt,t={},n){this.options=Object.assign(Object.assign({},Bn),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Nt&&Vn&&(Vn=!1,Fn(this)),An(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let i=0;i<n;i++){const n=Ut(i);if(void 0===n)continue;const o=e.names.get(n);if(void 0===o||!o.size)continue;const a=t.getGroup(i);if(0===a.length)continue;const s=kt+".g"+i+'[id="'+n+'"]';let l="";for(const e of o)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+jt}return r})(this))}rehydrate(){!this.server&&Nt&&Fn(this)}reconstructWithOptions(e,t=!0){const n=new Gn(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Nt&&e.target!==this.options.target&&jn(this.options.target)!==jn(e.target)&&Fn(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new $n(t,n):new Hn(t,n))(this.options),new kn(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Gt(e),e.startsWith(zt)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Gt(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Gt(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Un=new WeakSet,Yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Kn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Yn||e.startsWith("--")?String(t).trim():t+"px"}const Xn=e=>e>="A"&&e<="Z";function Jn(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}const Zn=Symbol.for("sc-keyframes");function Qn(e){return In(e)&&!(e.prototype&&e.prototype.isReactComponent)}const er=e=>null==e||!1===e||""===e,tr=Symbol.for("react.client.reference");function nr(e){return e.$$typeof===tr}const rr=e=>{const t=[];for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!er(r)&&(Array.isArray(r)&&Un.has(r)||In(r)?t.push(Jn(n)+":",r,";"):Mn(r)?t.push(n+" {",...rr(r),"}"):t.push(Jn(n)+": "+Kn(n,r)+";"))}return t};function ir(e,t,n,r,i=[]){if(er(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o){if(nr(e))return i;if(Qn(e)&&t){return ir(e(t),t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let o=0;o<e.length;o++)ir(e[o],t,n,r,i);return i}if(Dn(e))return i.push(`.${e.styledComponentId}`),i;if(function(e){return"object"==typeof e&&null!==e&&Zn in e}(e))return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(nr(e))return i;if(Mn(e)){const t=rr(e);for(let e=0;e<t.length;e++)i.push(t[e]);return i}return i.push(e.toString()),i}const or=sn(Tt);class ar{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=an(or,t),this.baseStyle=n,Gn.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){const o=this.rules[r];if("string"==typeof o)i+=o;else if(o)if(Qn(o)){const r=o(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=Pn(ir(r,e,t,n)))}else i+=Pn(ir(o,e,t,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+i:i;let o=this.dynamicNameCache.get(e);if(!o){if(o=rn(an(an(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){const e=n(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}r=Rn(r,o)}}return r}}const sr=/&/g,lr=47;function ur(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function cr(e){const t=e.length;let n="",r=0,i=0,o=0,a=!1,s=!1;for(let l=0;l<t;l++){const u=e.charCodeAt(l);if(0!==o||a||u!==lr||42!==e.charCodeAt(l+1))if(a)42===u&&e.charCodeAt(l+1)===lr&&(a=!1,l++);else if(34!==u&&39!==u||ur(e,l)){if(0===o)if(123===u)i++;else if(125===u){if(i--,i<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===u&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===o?o=u:o===u&&(o=0);else a=!0,l++}return s||0!==i||0!==o?(r<t&&0===i&&0===o&&(n+=e.substring(r)),n):e}function dr(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("rule"===r.type){r.value=t+" "+r.value,r.value=r.value.replaceAll(",",","+t+" ");const e=r.props,n=[];for(let r=0;r<e.length;r++)n[r]=t+" "+e[r];r.props=n}Array.isArray(r.children)&&"@keyframes"!==r.type&&(r.children=dr(r.children,t))}return e}const pr=new Gn,fr=function({options:e=Xt,plugins:t=Kt}=Xt){let n,r,i;const o=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===_e&&e.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(sr,r).replace(i,o))}),e.prefix&&a.push(At),a.push(Lt);let s=[];const l=function(e){var t=Je(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),u=(t,o="",a="",u="&")=>{n=u,r=o,i=void 0;const c=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return cr(e);const r=e.length;let i="",o=0,a=0,s=0,l=0,u=0,c=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||ur(e,a))if(0===s)if(t===lr&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==lr);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===lr)i+=e.substring(o,a),a+=2,o=a,c=!0;else if(t===lr&&a+1<r&&e.charCodeAt(a+1)===lr){for(i+=e.substring(o,a);a<r&&10!==e.charCodeAt(a);)a++;o=a,c=!0}else 123===t?u++:125===t&&u--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return c?(o<r&&(i+=e.substring(o)),0===u?i:cr(i)):0===u?e:cr(e)}(t);let d=Ct(a||o?a+" "+o+" { "+c+" }":c);return e.namespace&&(d=dr(d,e.namespace)),s=[],Mt(d,l),s},c=e;var d;let p=on;for(let e=0;e<t.length;e++)t[e].name||$t(15),p=an(p,t[e].name);return(null==c?void 0:c.namespace)&&(p=an(p,c.namespace)),(null==c?void 0:c.prefix)&&(p=an(p,"p")),u.hash=p!==on?p.toString():"",u}(),hr=n.createContext({shouldForwardProp:void 0,styleSheet:pr,stylis:fr,stylisPlugins:void 0});function mr(){return n.useContext(hr)}hr.Consumer;const gr=n.createContext(void 0);gr.Consumer;const vr=Object.prototype.hasOwnProperty,yr={};function br(e,t){const n="string"!=typeof e?"sc":en(e);yr[n]=(yr[n]||0)+1;const r=n+"-"+ln(Tt+n+yr[n]);return t?t+"-"+r:r}function xr(e,t,i){const o=Dn(e),a=e,s=!un(e),{attrs:l=Kt,componentId:u=br(t.displayName,t.parentComponentId),displayName:c=cn(e)}=t,d=t.displayName&&t.componentId?en(t.displayName)+"-"+t.componentId:t.componentId||u,p=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:f}=t;if(o&&a.shouldForwardProp){const e=a.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}const h=new ar(i,d,o?a.componentStyle:void 0);function m(e,t){return function(e,t,i){const{attrs:o,componentStyle:a,defaultProps:s,foldedComponentIds:l,styledComponentId:u,target:c}=e,d=n.useContext(gr),p=mr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Jt(t,d,s)||Xt;let m,g;{const e=n.useRef(null),r=e.current;if(null!==r&&r[1]===h&&r[2]===p.styleSheet&&r[3]===p.stylis&&r[7]===a&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(vr.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(r[0],t,r[4]))m=r[5],g=r[6];else{m=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){const o=e[n],a=In(o)?o(i?Object.assign({},r):r):o;for(const e in a)"className"===e?r.className=Rn(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=Rn(r.className,t.className)),r}(o,t,h),g=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(a,m,p.styleSheet,p.stylis);let n=0;for(const e in t)vr.call(t,e)&&n++;e.current=[t,h,p.styleSheet,p.stylis,n,m,g,a]}}const v=m.as||c,y=function(e,t,n,r){const i={};for(const o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?i.as=e.forwardedAs:r&&!r(o,t)||(i[o]=e[o]));return i}(m,v,h,f);let b=Rn(l,u);return g&&(b+=" "+g),m.className&&(b+=" "+m.className),y[un(v)&&v.includes("-")?"class":"className"]=b,i&&(y.ref=i),r(v,y)}(g,e,t)}m.displayName=c;let g=n.forwardRef(m);return g.attrs=p,g.componentStyle=h,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=o?Rn(a.foldedComponentIds,a.styledComponentId):"",g.styledComponentId=d,g.target=o?a.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=o?function(e,...t){for(const n of t)Ln(e,n,!0);return e}({},a.defaultProps,e):e}}),An(g,()=>`.${g.styledComponentId}`),s&&En(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var Sr=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function wr(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Cr=e=>(Un.add(e),e);function Er(e,...t){if(In(e)||Mn(e))return Cr(ir(wr(Kt,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ir(n):Cr(ir(wr(n,t)))}function Ir(e,t,n=Xt){if(!t)throw $t(1,t);const r=(r,...i)=>e(t,n,Er(r,...i));return r.attrs=r=>Ir(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Ir(e,t,Object.assign(Object.assign({},n),r)),r}const Dr=e=>Ir(xr,e),Rr=Dr;Sr.forEach(e=>{Rr[e]=Dr(e)});let Pr=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(In(n)&&!Dn(n))return!1}return!0}(e),Gn.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const o=this.computeRules(e,t,n,r);n.insertRules(i,o.name,o.rules)}return}const o=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&o){const t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const i=Pn(ir(this.rules,t,n,r)),o={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var Mr;let Lr=class{constructor(e,t){this[Mr]=!0,this.inject=(e,t=fr)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=zt+e,this.rules=t,Gt(this.id),An(this,()=>{throw $t(12,String(this.name))})}getName(e=fr){return e.hash?this.name+rn(+e.hash>>>0):this.name}};function Ar(e,...t){const n=Pn(Er(e,...t)),r=ln(n);return new Lr(r,n)}function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Or(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}Mr=Zn;var qr={exports:{}};function Tr(){}function jr(){}jr.resetWarningCache=Tr;qr.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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 n={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:jr,resetWarningCache:Tr};return n.PropTypes=n,n}();var Nr=kr(qr.exports);function _r(e){const{injectFirst:t,children:n}=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 n}_r.propTypes={children:Nr.node,injectFirst:Nr.bool};const Fr=function(e,...t){const r=Er(e,...t),i=`sc-global-${ln(JSON.stringify(r))}`,o=new Pr(r,i),a=e=>{const t=mr(),r=n.useContext(gr);let a;{const e=n.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(i)),a=e.current}t.styleSheet.server&&s(a,e,t.styleSheet,r,t.stylis);{const l=o.isStatic?[a,t.styleSheet,o]:[a,e,t.styleSheet,r,t.stylis,o],u=n.useRef(o);n.useLayoutEffect(()=>(t.styleSheet.server||(u.current!==o&&(t.styleSheet.clearRules(i),u.current=o),s(a,e,t.styleSheet,r,t.stylis)),()=>{o.removeStyles(a,t.styleSheet)}),l)}return t.styleSheet.server&&o.instanceRules.delete(a),null};function s(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,Wt,n,i);else{const s=Object.assign(Object.assign({},t),{theme:Jt(t,r,a.defaultProps)});o.renderStyles(e,s,n,i)}}return n.memo(a)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
7
+ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,R,P,M,L,A,k,O,q,T,N,j,_,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){n=e.default,r=e.createElement,i=e,o=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){R=e.HyperCubeHandler,P=e.useMemo,M=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,N=e.onTakeSnapshot,j=e.useImperativeHandle,_=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:qY()},data:bF(e)},ext:Dz(e),component(){kY(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",ne="#ce93d8",re="#ba68c8",ie="#ab47bc",oe="#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",Re="#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 Le=Object.freeze({__proto__:null,default:Me}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var qe="-ms-",Te="-moz-",Ne="-webkit-",je="comm",_e="rule",Fe="decl",ze="@keyframes",We=Math.abs,$e=String.fromCharCode,He=Object.assign;function Ve(e){return e.trim()}function Be(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Ue(e,t,n){return e.indexOf(t,n)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ke(e,t,n){return e.slice(t,n)}function Xe(e){return e.length}function Je(e){return e.length}function Ze(e,t){return t.push(e),e}function Qe(e,t){return e.filter(function(e){return!Be(e,t)})}var et,tt,nt=1,rt=1,it=0,ot=0,at=0,st="";function lt(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:nt,column:rt,length:a,return:"",siblings:s}}function ut(e,t){return He(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});Ze(e,e.siblings)}function dt(){return at=ot>0?Ye(st,--ot):0,rt--,10===at&&(rt=1,nt--),at}function pt(){return at=ot<it?Ye(st,ot++):0,rt++,10===at&&(rt=1,nt++),at}function ft(){return Ye(st,ot)}function ht(){return ot}function mt(e,t){return Ke(st,e,t)}function gt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vt(e){return Ve(mt(ot-1,xt(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function bt(e,t){for(;--t&&pt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ht()+(t<6&&32==ft()&&32==pt()))}function xt(e){for(;pt();)switch(at){case e:return ot;case 34:case 39:34!==e&&39!==e&&xt(at);break;case 40:41===e&&xt(e);break;case 92:pt()}return ot}function St(e,t){for(;pt()&&e+at!==57&&(e+at!==84||47!==ft()););return"/*"+mt(t,ot-1)+"*"+$e(47===e?e:pt())}function wt(e){for(;!gt(ft());)pt();return mt(e,ot)}function Ct(e){return function(e){return st="",e}(Et("",null,null,null,[""],e=function(e){return nt=rt=1,it=Xe(st=e),ot=0,[]}(e),0,[0],e))}function Et(e,t,n,r,i,o,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=i,S=o,w=r,C=b;g;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Ye(C,d-1)){-1!=Ue(C+=Ge(vt(y),"&","&\f"),"&\f",We(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(y);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=bt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ze(Dt(St(pt(),ht()),t,n,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Xe(C)||" "===Ke(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Xe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ge(C,/\f/g,"")),f>0&&(Xe(C)-d||0===m&&47===h)&&Ze(f>32?Rt(C+";",r,n,d-1,l):Rt(Ge(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Ze(w=It(C,t,n,u,c,i,s,b,x=[],S=[],d,o),o),123===y)if(0===c)Et(C,t,w,w,x,o,d,s,S);else{switch(p){case 99:if(110===Ye(C,3))break;case 108:if(97===Ye(C,2))break;default:c=0;case 100:case 109:case 115:}c?Et(e,w,w,r&&Ze(It(e,w,w,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Et(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Xe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==dt())continue;switch(C+=$e(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Xe(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),c=d=Xe(b=C+=wt(ht())),y++;break;case 45:45===h&&2==Xe(C)&&(m=0)}}return o}function It(e,t,n,r,i,o,a,s,l,u,c,d){for(var p=i-1,f=0===i?o:[""],h=Je(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Ke(e,p+1,p=We(g=a[m])),x=e;y<h;++y)(x=Ve(g>0?f[y]+" "+b:Ge(b,/&\f/g,f[y])))&&(l[v++]=x);return lt(e,t,n,0===i?_e:s,l,u,c,d)}function Dt(e,t,n,r){return lt(e,t,n,je,$e(at),Ke(e,2,-2),0,r)}function Rt(e,t,n,r,i){return lt(e,t,n,Fe,Ke(e,0,r),Ke(e,r+1,-1),r,i)}function Pt(e,t,n){switch(function(e,t){return 45^Ye(e,0)?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}(e,t)){case 5103:return Ne+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ne+e+e;case 4855:return Ne+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+Te+e+qe+e+e;case 5936:switch(Ye(e,t+11)){case 114:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+qe+e+e;case 6165:return Ne+e+qe+"flex-"+e+e;case 5187:return Ne+e+Ge(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return Ne+e+qe+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Be(e,/flex-|baseline/)?"":qe+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+qe+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+qe+Ge(e,"shrink","negative")+e;case 5292:return Ne+e+qe+Ge(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ge(e,"-grow","")+Ne+e+qe+Ge(e,"grow","positive")+e;case 4554:return Ne+Ge(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+qe+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Be(e,/flex-|baseline/))return qe+"grid-column-align"+Ke(e,t)+e;break;case 2592:case 3360:return qe+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Be(e.props,/grid-\w+-end/)})?~Ue(e+(n=n[t].value),"span",0)?e:qe+Ge(e,"-start","")+e+qe+"grid-row-span:"+(~Ue(n,"span",0)?Be(n,/\d+/):+Be(n,/\d+/)-+Be(e,/\d+/))+";":qe+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Be(e.props,/grid-\w+-start/)})?e:qe+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(e,/(.+)-inline(.+)/,Ne+"$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(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+Te+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ue(e,"stretch",0)?Pt(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,a,s){return qe+n+":"+r+s+(i?qe+n+"-span:"+(o?a:+a-+r)+s:"")+e});case 4949:if(121===Ye(e,t+6))return Ge(e,":",":"+Ne)+e;break;case 6444:switch(Ye(e,45===Ye(e,14)?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+qe+"$2box$3")+e;case 100:return Ge(e,":",":"+qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Mt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Lt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Fe:return e.return=e.return||e.value;case je:return"";case ze:return e.return=e.value+"{"+Mt(e.children,r)+"}";case _e:if(!Xe(e.value=e.props.join(",")))return""}return Xe(n=Mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function At(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fe:return void(e.return=Pt(e.value,e.length,n));case ze:return Mt([ut(e,{value:Ge(e.value,"@","@"+Ne)})],r);case _e:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Be(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ge(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)});break;case"::placeholder":ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":"+Ne+"input-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ge(t,/:(plac\w+)/,qe+"input-$1")]})),ct(ut(e,{props:[t]})),He(e,{props:Qe(n,r)})}return""})}}const kt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",qt="data-styled-version",Tt="6.4.0",Nt="/*!sc*/\n",jt="undefined"!=typeof window&&"undefined"!=typeof document;function _t(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ft=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(tt=null!==(et=_t("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==et?et:_t("SC_DISABLE_SPEEDY"))&&void 0!==tt?tt:"undefined"==typeof process||void 0===process.env||!1),zt="sc-keyframes-",Wt={};function $t(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Ht=new Map,Vt=new Map,Bt=1;const Gt=e=>{if(Ht.has(e))return Ht.get(e);for(;Vt.has(Bt);)Bt++;const t=Bt++;return Ht.set(e,t),Vt.set(t,e),t},Ut=e=>Vt.get(e),Yt=(e,t)=>{Bt=t+1,Ht.set(e,t),Vt.set(t,e)},Kt=Object.freeze([]),Xt=Object.freeze({});function Jt(e,t,n=Xt){return e.theme!==n.theme&&e.theme||t||n.theme}const Zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qt=/(^-|-$)/g;function en(e){return e.replace(Zt,"-").replace(Qt,"")}const tn=/(a)(d)/gi,nn=e=>String.fromCharCode(e+(e>25?39:97));function rn(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nn(t%52)+n;return(nn(t%52)+n).replace(tn,"$1-$2")}const on=5381,an=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},sn=e=>an(on,e);function ln(e){return rn(sn(e)>>>0)}function un(e){return"string"==typeof e&&!0}function cn(e){return un(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const dn=Symbol.for("react.memo"),pn=Symbol.for("react.forward_ref"),fn={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},hn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gn={[pn]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[dn]:mn};function vn(e){return("type"in(t=e)&&t.type.$$typeof)===dn?mn:"$$typeof"in e?gn[e.$$typeof]:fn;var t}const yn=Object.defineProperty,bn=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sn=Object.getOwnPropertyDescriptor,wn=Object.getPrototypeOf,Cn=Object.prototype;function En(e,t,n){if("string"!=typeof t){const r=wn(t);r&&r!==Cn&&En(e,r,n);const i=bn(t).concat(xn(t)),o=vn(e),a=vn(t);for(let r=0;r<i.length;++r){const s=i[r];if(!(s in hn||n&&n[s]||a&&s in a||o&&s in o)){const n=Sn(t,s);try{yn(e,s,n)}catch(e){}}}}return e}function In(e){return"function"==typeof e}function Dn(e){return"object"==typeof e&&"styledComponentId"in e}function Rn(e,t){return e&&t?e+" "+t:e||t||""}function Pn(e,t){return e.join("")}function Mn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ln(e,t,n=!1){if(!n&&!Mn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ln(e[n],t[n]);else if(Mn(t))for(const n in t)e[n]=Ln(e[n],t[n]);return e}function An(e,t){Object.defineProperty(e,"toString",{value:t})}const kn=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw $t(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,o=t.length;i<o;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Nt;return t}},On=`style[${kt}][${qt}="${Tt}"]`,qn=new RegExp(`^${kt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Tn=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Nn=e=>{if(!e)return document;if(Tn(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Tn(t))return t}return document},jn=(e,t,n)=>{const r=n.split(",");let i;for(let n=0,o=r.length;n<o;n++)(i=r[n])&&e.registerName(t,i)},_n=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Nt),i=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const o=n.match(qn);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(Yt(n,t),jn(e,n,o[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(n)}},Fn=e=>{const t=Nn(e.options.target).querySelectorAll(On);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(kt)!==Ot&&(_n(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let zn=!1;const Wn=(e,t)=>{const n=document.head,r=e||n,i=document.createElement("style"),o=(e=>{const t=Array.from(e.querySelectorAll(`style[${kt}]`));return t[t.length-1]})(r),a=void 0!==o?o.nextSibling:null;i.setAttribute(kt,Ot),i.setAttribute(qt,Tt);const s=t||function(){if(!1!==zn)return zn;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return zn=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return zn=t.getAttribute("content")||void 0}return zn="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},$n=class{constructor(e,t){this.element=Wn(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw $t(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Hn=class{constructor(e,t){this.element=Wn(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vn=jt;const Bn={isServer:!jt,useCSSOMInjection:!Ft};class Gn{static registerId(e){return Gt(e)}constructor(e=Xt,t={},n){this.options=Object.assign(Object.assign({},Bn),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&jt&&Vn&&(Vn=!1,Fn(this)),An(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let i=0;i<n;i++){const n=Ut(i);if(void 0===n)continue;const o=e.names.get(n);if(void 0===o||!o.size)continue;const a=t.getGroup(i);if(0===a.length)continue;const s=kt+".g"+i+'[id="'+n+'"]';let l="";for(const e of o)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+Nt}return r})(this))}rehydrate(){!this.server&&jt&&Fn(this)}reconstructWithOptions(e,t=!0){const n=new Gn(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&jt&&e.target!==this.options.target&&Nn(this.options.target)!==Nn(e.target)&&Fn(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new $n(t,n):new Hn(t,n))(this.options),new kn(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Gt(e),e.startsWith(zt)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Gt(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Gt(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Un=new WeakSet,Yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Kn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Yn||e.startsWith("--")?String(t).trim():t+"px"}const Xn=e=>e>="A"&&e<="Z";function Jn(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Xn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}const Zn=Symbol.for("sc-keyframes");function Qn(e){return In(e)&&!(e.prototype&&e.prototype.isReactComponent)}const er=e=>null==e||!1===e||""===e,tr=Symbol.for("react.client.reference");function nr(e){return e.$$typeof===tr}const rr=e=>{const t=[];for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!er(r)&&(Array.isArray(r)&&Un.has(r)||In(r)?t.push(Jn(n)+":",r,";"):Mn(r)?t.push(n+" {",...rr(r),"}"):t.push(Jn(n)+": "+Kn(n,r)+";"))}return t};function ir(e,t,n,r,i=[]){if(er(e))return i;const o=typeof e;if("string"===o)return i.push(e),i;if("function"===o){if(nr(e))return i;if(Qn(e)&&t){return ir(e(t),t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let o=0;o<e.length;o++)ir(e[o],t,n,r,i);return i}if(Dn(e))return i.push(`.${e.styledComponentId}`),i;if(function(e){return"object"==typeof e&&null!==e&&Zn in e}(e))return n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i;if(nr(e))return i;if(Mn(e)){const t=rr(e);for(let e=0;e<t.length;e++)i.push(t[e]);return i}return i.push(e.toString()),i}const or=sn(Tt);class ar{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=an(or,t),this.baseStyle=n,Gn.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let i="";for(let r=0;r<this.rules.length;r++){const o=this.rules[r];if("string"==typeof o)i+=o;else if(o)if(Qn(o)){const r=o(e);"string"==typeof r?i+=r:null!=r&&!1!==r&&(i+=Pn(ir(r,e,t,n)))}else i+=Pn(ir(o,e,t,n))}if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+i:i;let o=this.dynamicNameCache.get(e);if(!o){if(o=rn(an(an(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,o)}if(!t.hasNameForId(this.componentId,o)){const e=n(i,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}r=Rn(r,o)}}return r}}const sr=/&/g,lr=47;function ur(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function cr(e){const t=e.length;let n="",r=0,i=0,o=0,a=!1,s=!1;for(let l=0;l<t;l++){const u=e.charCodeAt(l);if(0!==o||a||u!==lr||42!==e.charCodeAt(l+1))if(a)42===u&&e.charCodeAt(l+1)===lr&&(a=!1,l++);else if(34!==u&&39!==u||ur(e,l)){if(0===o)if(123===u)i++;else if(125===u){if(i--,i<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,i=0,l=n-1,r=n;continue}0===i&&(n+=e.substring(r,l+1),r=l+1)}else 59===u&&0===i&&(n+=e.substring(r,l+1),r=l+1)}else 0===o?o=u:o===u&&(o=0);else a=!0,l++}return s||0!==i||0!==o?(r<t&&0===i&&0===o&&(n+=e.substring(r)),n):e}function dr(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("rule"===r.type){r.value=t+" "+r.value,r.value=r.value.replaceAll(",",","+t+" ");const e=r.props,n=[];for(let r=0;r<e.length;r++)n[r]=t+" "+e[r];r.props=n}Array.isArray(r.children)&&"@keyframes"!==r.type&&(r.children=dr(r.children,t))}return e}const pr=new Gn,fr=function({options:e=Xt,plugins:t=Kt}=Xt){let n,r,i;const o=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===_e&&e.value.includes("&")&&(i||(i=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(sr,r).replace(i,o))}),e.prefix&&a.push(At),a.push(Lt);let s=[];const l=function(e){var t=Je(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),u=(t,o="",a="",u="&")=>{n=u,r=o,i=void 0;const c=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return cr(e);const r=e.length;let i="",o=0,a=0,s=0,l=0,u=0,c=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||ur(e,a))if(0===s)if(t===lr&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==lr);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===lr)i+=e.substring(o,a),a+=2,o=a,c=!0;else if(t===lr&&a+1<r&&e.charCodeAt(a+1)===lr){for(i+=e.substring(o,a);a<r&&10!==e.charCodeAt(a);)a++;o=a,c=!0}else 123===t?u++:125===t&&u--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return c?(o<r&&(i+=e.substring(o)),0===u?i:cr(i)):0===u?e:cr(e)}(t);let d=Ct(a||o?a+" "+o+" { "+c+" }":c);return e.namespace&&(d=dr(d,e.namespace)),s=[],Mt(d,l),s},c=e;var d;let p=on;for(let e=0;e<t.length;e++)t[e].name||$t(15),p=an(p,t[e].name);return(null==c?void 0:c.namespace)&&(p=an(p,c.namespace)),(null==c?void 0:c.prefix)&&(p=an(p,"p")),u.hash=p!==on?p.toString():"",u}(),hr=n.createContext({shouldForwardProp:void 0,styleSheet:pr,stylis:fr,stylisPlugins:void 0});function mr(){return n.useContext(hr)}hr.Consumer;const gr=n.createContext(void 0);gr.Consumer;const vr=Object.prototype.hasOwnProperty,yr={};function br(e,t){const n="string"!=typeof e?"sc":en(e);yr[n]=(yr[n]||0)+1;const r=n+"-"+ln(Tt+n+yr[n]);return t?t+"-"+r:r}function xr(e,t,i){const o=Dn(e),a=e,s=!un(e),{attrs:l=Kt,componentId:u=br(t.displayName,t.parentComponentId),displayName:c=cn(e)}=t,d=t.displayName&&t.componentId?en(t.displayName)+"-"+t.componentId:t.componentId||u,p=o&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:f}=t;if(o&&a.shouldForwardProp){const e=a.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}const h=new ar(i,d,o?a.componentStyle:void 0);function m(e,t){return function(e,t,i){const{attrs:o,componentStyle:a,defaultProps:s,foldedComponentIds:l,styledComponentId:u,target:c}=e,d=n.useContext(gr),p=mr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Jt(t,d,s)||Xt;let m,g;{const e=n.useRef(null),r=e.current;if(null!==r&&r[1]===h&&r[2]===p.styleSheet&&r[3]===p.stylis&&r[7]===a&&function(e,t,n){const r=e,i=t;let o=0;for(const e in i)if(vr.call(i,e)&&(o++,r[e]!==i[e]))return!1;return o===n}(r[0],t,r[4]))m=r[5],g=r[6];else{m=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){const o=e[n],a=In(o)?o(i?Object.assign({},r):r):o;for(const e in a)"className"===e?r.className=Rn(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=Rn(r.className,t.className)),r}(o,t,h),g=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(a,m,p.styleSheet,p.stylis);let n=0;for(const e in t)vr.call(t,e)&&n++;e.current=[t,h,p.styleSheet,p.stylis,n,m,g,a]}}const v=m.as||c,y=function(e,t,n,r){const i={};for(const o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?i.as=e.forwardedAs:r&&!r(o,t)||(i[o]=e[o]));return i}(m,v,h,f);let b=Rn(l,u);return g&&(b+=" "+g),m.className&&(b+=" "+m.className),y[un(v)&&v.includes("-")?"class":"className"]=b,i&&(y.ref=i),r(v,y)}(g,e,t)}m.displayName=c;let g=n.forwardRef(m);return g.attrs=p,g.componentStyle=h,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=o?Rn(a.foldedComponentIds,a.styledComponentId):"",g.styledComponentId=d,g.target=o?a.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=o?function(e,...t){for(const n of t)Ln(e,n,!0);return e}({},a.defaultProps,e):e}}),An(g,()=>`.${g.styledComponentId}`),s&&En(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var Sr=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function wr(e,t){const n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}const Cr=e=>(Un.add(e),e);function Er(e,...t){if(In(e)||Mn(e))return Cr(ir(wr(Kt,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ir(n):Cr(ir(wr(n,t)))}function Ir(e,t,n=Xt){if(!t)throw $t(1,t);const r=(r,...i)=>e(t,n,Er(r,...i));return r.attrs=r=>Ir(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Ir(e,t,Object.assign(Object.assign({},n),r)),r}const Dr=e=>Ir(xr,e),Rr=Dr;Sr.forEach(e=>{Rr[e]=Dr(e)});let Pr=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(In(n)&&!Dn(n))return!1}return!0}(e),Gn.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const o=this.computeRules(e,t,n,r);n.insertRules(i,o.name,o.rules)}return}const o=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&o){const t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const i=Pn(ir(this.rules,t,n,r)),o={name:this.componentId+e,rules:r(i,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var Mr;let Lr=class{constructor(e,t){this[Mr]=!0,this.inject=(e,t=fr)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=zt+e,this.rules=t,Gt(this.id),An(this,()=>{throw $t(12,String(this.name))})}getName(e=fr){return e.hash?this.name+rn(+e.hash>>>0):this.name}};function Ar(e,...t){const n=Pn(Er(e,...t)),r=ln(n);return new Lr(r,n)}function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Or(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}Mr=Zn;var qr={exports:{}};function Tr(){}function Nr(){}Nr.resetWarningCache=Tr;qr.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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 n={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:Nr,resetWarningCache:Tr};return n.PropTypes=n,n}();var jr=kr(qr.exports);function _r(e){const{injectFirst:t,children:n}=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 n}_r.propTypes={children:jr.node,injectFirst:jr.bool};const Fr=function(e,...t){const r=Er(e,...t),i=`sc-global-${ln(JSON.stringify(r))}`,o=new Pr(r,i),a=e=>{const t=mr(),r=n.useContext(gr);let a;{const e=n.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(i)),a=e.current}t.styleSheet.server&&s(a,e,t.styleSheet,r,t.stylis);{const l=o.isStatic?[a,t.styleSheet,o]:[a,e,t.styleSheet,r,t.stylis,o],u=n.useRef(o);n.useLayoutEffect(()=>(t.styleSheet.server||(u.current!==o&&(t.styleSheet.clearRules(i),u.current=o),s(a,e,t.styleSheet,r,t.stylis)),()=>{o.removeStyles(a,t.styleSheet)}),l)}return t.styleSheet.server&&o.instanceRules.delete(a),null};function s(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,Wt,n,i);else{const s=Object.assign(Object.assign({},t),{theme:Jt(t,r,a.defaultProps)});o.renderStyles(e,s,n,i)}}return n.memo(a)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
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 zr(e,t){let n;return n=t?Rr(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Rr(e),n}function Wr(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function $r(e){return e}Fr.propTypes={defaultTheme:Nr.object,styles:Nr.oneOfType([Nr.array,Nr.string,Nr.object,Nr.func])};var Hr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:_r,ThemeContext:gr,css:Er,default:zr,internal_mutateStyles:Wr,internal_processStyles:function(e,t){return Wr(e,t)},internal_serializeStyles:$r,keyframes:Ar});function Vr(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 Br(e){if(i.isValidElement(e)||!Vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Br(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?ke({},e):e;return Vr(e)&&Vr(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])?r[o]=t[o]:Vr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vr(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Vr(t[o])?Br(t[o]):t[o]:r[o]=t[o]}),r}var Ur=Object.freeze({__proto__:null,default:Gr,isPlainObject:Vr});const Yr=["values","unit","step"];function Kr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Oe(e,Yr),o=(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(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return ke({keys:a,values:o,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:n},i)}const Xr={borderRadius:4};function Jr(e,t){return t?Gr(e,t,{clone:!1}):e}const Zr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zr[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Qr;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||Qr;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||Zr).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r},{})}return n(t)}function ti(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ni(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ri=Object.freeze({__proto__:null,default:ni});function ii(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oi(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ii(e,n)||r,t&&(i=t(i,r,e)),i}function ai(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=ii(e.theme,r)||{};return ei(e,o,e=>{let r=oi(a,i,e);return e===r&&"string"==typeof e&&(r=oi(a,i,`${t}${"default"===e?"":ni(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const si={m:"margin",p:"padding"},li={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ui={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ci=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ui[e])return[e];e=ui[e]}const[t,n]=e.split(""),r=si[t],i=li[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fi(e,t,n,r){var i;const o=null!=(i=ii(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function hi(e){return fi(e,"spacing",8)}function mi(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function gi(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=mi(t,n),e),{})}(ci(n),r);return ei(e,e[n],i)}function vi(e,t){const n=hi(e.theme);return Object.keys(e).map(r=>gi(e,t,r,n)).reduce(Jr,{})}function yi(e){return vi(e,di)}function bi(e){return vi(e,pi)}function xi(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Jr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Si(e){return"number"!=typeof e?e:`${e}px solid`}function wi(e,t){return ai({prop:e,themeKey:"borders",transform:t})}yi.propTypes={},yi.filterProps=di,bi.propTypes={},bi.filterProps=pi;const Ci=wi("border",Si),Ei=wi("borderTop",Si),Ii=wi("borderRight",Si),Di=wi("borderBottom",Si),Ri=wi("borderLeft",Si),Pi=wi("borderColor"),Mi=wi("borderTopColor"),Li=wi("borderRightColor"),Ai=wi("borderBottomColor"),ki=wi("borderLeftColor"),Oi=wi("outline",Si),qi=wi("outlineColor"),Ti=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fi(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:mi(t,e)});return ei(e,e.borderRadius,n)}return null};Ti.propTypes={},Ti.filterProps=["borderRadius"],xi(Ci,Ei,Ii,Di,Ri,Pi,Mi,Li,Ai,ki,Ti,Oi,qi);const ji=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fi(e.theme,"spacing",8),n=e=>({gap:mi(t,e)});return ei(e,e.gap,n)}return null};ji.propTypes={},ji.filterProps=["gap"];const Ni=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fi(e.theme,"spacing",8),n=e=>({columnGap:mi(t,e)});return ei(e,e.columnGap,n)}return null};Ni.propTypes={},Ni.filterProps=["columnGap"];const _i=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fi(e.theme,"spacing",8),n=e=>({rowGap:mi(t,e)});return ei(e,e.rowGap,n)}return null};_i.propTypes={},_i.filterProps=["rowGap"];function Fi(e,t){return"grey"===t?t:e}xi(ji,Ni,_i,ai({prop:"gridColumn"}),ai({prop:"gridRow"}),ai({prop:"gridAutoFlow"}),ai({prop:"gridAutoColumns"}),ai({prop:"gridAutoRows"}),ai({prop:"gridTemplateColumns"}),ai({prop:"gridTemplateRows"}),ai({prop:"gridTemplateAreas"}),ai({prop:"gridArea"}));function zi(e){return e<=1&&0!==e?100*e+"%":e}xi(ai({prop:"color",themeKey:"palette",transform:Fi}),ai({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fi}),ai({prop:"backgroundColor",themeKey:"palette",transform:Fi}));const Wi=ai({prop:"width",transform:zi}),$i=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Zr[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:zi(t)}};return ei(e,e.maxWidth,t)}return null};$i.filterProps=["maxWidth"];const Hi=ai({prop:"minWidth",transform:zi}),Vi=ai({prop:"height",transform:zi}),Bi=ai({prop:"maxHeight",transform:zi}),Gi=ai({prop:"minHeight",transform:zi});ai({prop:"size",cssProperty:"width",transform:zi}),ai({prop:"size",cssProperty:"height",transform:zi});xi(Wi,$i,Hi,Vi,Bi,Gi,ai({prop:"boxSizing"}));const Ui={border:{themeKey:"borders",transform:Si},borderTop:{themeKey:"borders",transform:Si},borderRight:{themeKey:"borders",transform:Si},borderBottom:{themeKey:"borders",transform:Si},borderLeft:{themeKey:"borders",transform:Si},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Si},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ti},color:{themeKey:"palette",transform:Fi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fi},backgroundColor:{themeKey:"palette",transform:Fi},p:{style:bi},pt:{style:bi},pr:{style:bi},pb:{style:bi},pl:{style:bi},px:{style:bi},py:{style:bi},padding:{style:bi},paddingTop:{style:bi},paddingRight:{style:bi},paddingBottom:{style:bi},paddingLeft:{style:bi},paddingX:{style:bi},paddingY:{style:bi},paddingInline:{style:bi},paddingInlineStart:{style:bi},paddingInlineEnd:{style:bi},paddingBlock:{style:bi},paddingBlockStart:{style:bi},paddingBlockEnd:{style:bi},m:{style:yi},mt:{style:yi},mr:{style:yi},mb:{style:yi},ml:{style:yi},mx:{style:yi},my:{style:yi},margin:{style:yi},marginTop:{style:yi},marginRight:{style:yi},marginBottom:{style:yi},marginLeft:{style:yi},marginX:{style:yi},marginY:{style:yi},marginInline:{style:yi},marginInlineStart:{style:yi},marginInlineEnd:{style:yi},marginBlock:{style:yi},marginBlockStart:{style:yi},marginBlockEnd:{style:yi},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:ji},rowGap:{style:_i},columnGap:{style:Ni},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zi},maxWidth:{style:$i},minWidth:{transform:zi},height:{transform:zi},maxHeight:{transform:zi},minHeight:{transform:zi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yi(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ii(n,s)||{};if(u)return u(i);return ei(i,t,t=>{let n=oi(c,l,t);return t===n&&"string"==typeof t&&(n=oi(c,l,`${e}${"default"===t?"":ni(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:i,theme:o={},nested:a}=n||{};if(!i)return null;const s=null!=(r=o.unstable_sxConfig)?r:Ui;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(o.breakpoints),l=Object.keys(i);let u=i;return Object.keys(r).forEach(n=>{const i=(a=r[n],l=o,"function"==typeof a?a(l):a);var a,l;if(null!=i)if("object"==typeof i)if(s[n])u=Jr(u,e(n,i,o,s));else{const e=ei({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=Jr(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=Jr(u,e(n,i,o,s))}),!a&&o.modularCssLayers?{"@layer sx":ti(l,u)}:ti(l,u)}return Array.isArray(i)?i.map(l):l(i)}}const Ki=Yi();function Xi(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Ki.filterProps=["sx"];const Ji=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Oe(e,Ji),s=Kr(n),l=function(e=8){if(e.mui)return e;const t=hi({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i);let u=Gr({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},r),spacing:l,shape:ke({},Xr,o)},a);return u.applyStyles=Xi,u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}var Qi=Object.freeze({__proto__:null,default:Zi,private_createBreakpoints:Kr,unstable_applyStyles:Xi});function eo(e=null){const t=i.useContext(gr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const to=Zi();function no(e=to){return eo(e)}var ro={exports:{}},io={},oo=n,ao=Symbol.for("react.element"),so=Symbol.for("react.fragment"),lo=Object.prototype.hasOwnProperty,uo=oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,co={key:!0,ref:!0,__self:!0,__source:!0};function po(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)lo.call(t,r)&&!co.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:ao,type:e,key:o,ref:a,props:i,_owner:uo.current}}io.Fragment=so,io.jsx=po,io.jsxs=po,ro.exports=io;var fo=ro.exports;function ho(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mo({styles:e,themeId:t,defaultTheme:n={}}){const r=no(n),i=t&&r[t]||r;let o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>ho("function"==typeof e?e(i):e)):ho(o)),fo.jsx(Fr,{styles:o})}const go=["sx"];function vo(e){const{sx:t}=e,n=Oe(e,go),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ui;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Vr(n)?ke({},r,n):r}:ke({},r,t),ke({},i,{sx:o})}var yo=Object.freeze({__proto__:null,default:Ki,extendSxProp:vo,unstable_createStyleFunctionSx:Yi,unstable_defaultSxConfig:Ui});const bo=e=>e,xo=(()=>{let e=bo;return{configure(t){e=t},generate:t=>e(t),reset(){e=bo}}})();function So(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=So(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=So(e))&&(r&&(r+=" "),r+=t);return r}const Co=["className","component"];const Eo={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 Io(e,t,n="Mui"){const r=Eo[t];return r?`${n}-${r}`:`${xo.generate(e)}-${t}`}function Do(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Io(e,t,n)}),r}var Ro={exports:{}},Po={},Mo=Symbol.for("react.transitional.element"),Lo=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ko=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),qo=Symbol.for("react.consumer"),To=Symbol.for("react.context"),jo=Symbol.for("react.forward_ref"),No=Symbol.for("react.suspense"),_o=Symbol.for("react.suspense_list"),Fo=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),Wo=Symbol.for("react.view_transition"),$o=Symbol.for("react.client.reference");function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mo:switch(e=e.type){case Ao:case Oo:case ko:case No:case _o:case Wo:return e;default:switch(e=e&&e.$$typeof){case To:case jo:case zo:case Fo:case qo:return e;default:return t}}case Lo:return t}}}Po.ContextConsumer=qo,Po.ContextProvider=To,Po.Element=Mo,Po.ForwardRef=jo,Po.Fragment=Ao,Po.Lazy=zo,Po.Memo=Fo,Po.Portal=Lo,Po.Profiler=Oo,Po.StrictMode=ko,Po.Suspense=No,Po.SuspenseList=_o,Po.isContextConsumer=function(e){return Ho(e)===qo},Po.isContextProvider=function(e){return Ho(e)===To},Po.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mo},Po.isForwardRef=function(e){return Ho(e)===jo},Po.isFragment=function(e){return Ho(e)===Ao},Po.isLazy=function(e){return Ho(e)===zo},Po.isMemo=function(e){return Ho(e)===Fo},Po.isPortal=function(e){return Ho(e)===Lo},Po.isProfiler=function(e){return Ho(e)===Oo},Po.isStrictMode=function(e){return Ho(e)===ko},Po.isSuspense=function(e){return Ho(e)===No},Po.isSuspenseList=function(e){return Ho(e)===_o},Po.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ao||e===Oo||e===ko||e===No||e===_o||"object"==typeof e&&null!==e&&(e.$$typeof===zo||e.$$typeof===Fo||e.$$typeof===To||e.$$typeof===qo||e.$$typeof===jo||e.$$typeof===$o||void 0!==e.getModuleId)},Po.typeOf=Ho,Ro.exports=Po;var Vo=Ro.exports;const Bo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Go(e){const t=`${e}`.match(Bo);return t&&t[1]||""}function Uo(e,t=""){return e.displayName||e.name||Go(e)||t}function Yo(e,t,n){const r=Uo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ko=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Uo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Vo.ForwardRef:return Yo(e,e.render,"ForwardRef");case Vo.Memo:return Yo(e,e.type,"memo");default:return}}},getFunctionName:Go});function Xo(e,t){const n=ke({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ke({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=ke({},o),Object.keys(i).forEach(e=>{n[r][e]=Xo(i[e],o[e])})):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])}),n}const Jo="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Zo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Qo=Object.freeze({__proto__:null,default:Zo});function ea(e){if(e.type)return e;if("#"===e.charAt(0))return ea(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Me(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Me(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}function ta(e,t){return e=ea(e),t=function(e,t=0,n=1){return Zo(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function na(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ra(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ia(e){return e&&e.ownerDocument||document}function oa(e){return ia(e).defaultView||window}function aa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let sa=0;const la=i["useId".toString()];function ua(e){if(void 0!==la){return la()}return function(e){const[t,n]=i.useState(e),r=t;return i.useEffect(()=>{null==t&&(sa+=1,n(`mui-${sa}`))},[t]),r}(e)}function ca({controlled:e,default:t,name:n,state:r="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 da(e){const t=i.useRef(e);return Jo(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function pa(...e){return i.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{aa(e,t)})},e)}const fa={};const ha=[];class ma{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ma}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function ga(){const e=function(e,t){const n=i.useRef(fa);return n.current===fa&&(n.current=e(t)),n}(ma.create).current;return function(e){i.useEffect(e,ha)}(e.disposeEffect),e}let va=!0,ya=!1;const ba=new ma,xa={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 Sa(e){e.metaKey||e.altKey||e.ctrlKey||(va=!0)}function wa(){va=!1}function Ca(){"hidden"===this.visibilityState&&ya&&(va=!0)}function Ea(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return va||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!xa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ia(){const e=i.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Sa,!0),t.addEventListener("mousedown",wa,!0),t.addEventListener("pointerdown",wa,!0),t.addEventListener("touchstart",wa,!0),t.addEventListener("visibilitychange",Ca,!0))},[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ea(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ya=!0,ba.start(100,()=>{ya=!1}),t.current=!1,!0)},ref:e}}function Da(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ra(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pa(e){return"string"==typeof e}function Ma(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function La(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const Aa=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ka(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Oe(e,Aa),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=wo(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=ke({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=ke({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ma(ke({},i,r)),s=La(r),l=La(i),u=t(a),c=wo(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=ke({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=ke({},u,n,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,n){return void 0===e||Pa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,n)})}(n,ke({},l,{ref:pa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}function Oa(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 qa=i.createContext(null);function Ta(){return i.useContext(qa)}var ja="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Na(e){const{children:t,theme:n}=e,r=Ta(),o=i.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(r,n);return null!=e&&(e[ja]=null!==r),e},[n,r]);return fo.jsx(qa.Provider,{value:o,children:t})}const _a=["value"],Fa=i.createContext();function za(e){let{value:t}=e,n=Oe(e,_a);return fo.jsx(Fa.Provider,ke({value:null==t||t},n))}const Wa=i.createContext(void 0);function $a({value:e,children:t}){return fo.jsx(Wa.Provider,{value:e,children:t})}function Ha({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Xo(i.defaultProps,r):i.styleOverrides||i.variants?r:Xo(i,r)}({props:e,name:t,theme:{components:i.useContext(Wa)}})}const Va={};function Ba(e,t,n,r=!1){return i.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?ke({},t,{[e]:o}):o;return r?()=>a:a}return ke({},t,e?{[e]:n}:n)},[e,t,n,r])}function Ga(e){const{children:t,theme:n,themeId:r}=e,i=eo(Va),o=Ta()||Va,a=Ba(r,i,n),s=Ba(r,o,n,!0),l="rtl"===a.direction,u=function(e){const t=eo(),n=ua()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",Jo(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",n),o.textContent=i,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${n}"]`))||o.remove()}},[i,n]),i?fo.jsx(mo,{styles:i}):null}(a);return fo.jsx(Na,{theme:s,children:fo.jsx(gr.Provider,{value:a,children:fo.jsx(za,{value:l,children:fo.jsxs($a,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ua(e){return Ua="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},Ua(e)}function Ya(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}function Ka(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Xa={},Ja={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ja);var Za=Ja.exports,Qa=Or(Le),es=Or(Qo),ts=Za;Object.defineProperty(Xa,"__esModule",{value:!0});var ns=Xa.alpha=ms;Xa.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=cs(e),a=cs(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return ps({type:"rgb",values:s})},Xa.colorChannel=void 0;var rs=Xa.darken=gs;Xa.decomposeColor=cs,Xa.emphasize=ys;var is=Xa.getContrastRatio=function(e,t){const n=hs(e),r=hs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Xa.getLuminance=hs,Xa.hexToRgb=us,Xa.hslToRgb=fs;var os=Xa.lighten=vs;Xa.private_safeAlpha=function(e,t,n){try{return ms(e,t)}catch(t){return e}},Xa.private_safeColorChannel=void 0,Xa.private_safeDarken=function(e,t,n){try{return gs(e,t)}catch(t){return e}},Xa.private_safeEmphasize=function(e,t,n){try{return ys(e,t)}catch(t){return e}},Xa.private_safeLighten=function(e,t,n){try{return vs(e,t)}catch(t){return e}},Xa.recomposeColor=ps,Xa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=cs(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 as=ts(Qa),ss=ts(es);function ls(e,t=0,n=1){return(0,ss.default)(e,t,n)}function us(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function cs(e){if(e.type)return e;if("#"===e.charAt(0))return cs(us(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,as.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,as.default)(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const ds=e=>{const t=cs(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Xa.colorChannel=ds;function ps(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function fs(e){e=cs(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*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])),ps({type:s,values:l})}function hs(e){let t="hsl"===(e=cs(e)).type||"hsla"===e.type?cs(fs(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 ms(e,t){return e=cs(e),t=ls(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ps(e)}function gs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ps(e)}function vs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ps(e)}function ys(e,t=.15){return hs(e)>.5?gs(e,t):vs(e,t)}Xa.private_safeColorChannel=(e,t)=>{try{return ds(e)}catch(t){return e}};const bs=["mode","contrastThreshold","tonalOffset"],xs={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}},Ss={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 ws(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=os(e.main,i):"dark"===t&&(e.dark=rs(e.main,o)))}function Cs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Oe(e,bs),o=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:ne,light:te,dark:ie}:{main:oe,light:re,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:Re}}(t);function d(e){return is(e,Ss.text.primary)>=n?Ss.text.primary:xs.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=ke({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return ws(e,"light",i,r),ws(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ss,light:xs};return Gr(ke({common:ke({},K),mode:t,primary:p({color:o,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:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),i)}const Es=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Is={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function Rs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ds,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Oe(n,Es),f=i/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,i,o)=>{return ke({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ds?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,c);var a},g={h1:m(o,96,1.167,-1.5),h2:m(o,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,Is),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(ke({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,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 Ms=["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)],Ls=["duration","easing","delay"],As={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)"},ks={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Os(e){return`${Math.round(e)}ms`}function qs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ts(e){const t=ke({},As,e.easing),n=ke({},ks,e.duration);return ke({getAutoHeightDuration:qs,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return Oe(r,Ls),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Os(i)} ${o} ${"string"==typeof a?a:Os(a)}`).join(",")}},e,{easing:t,duration:n})}const js={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ns=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _s(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Oe(e,Ns);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=Cs(r),l=Zi(e);let u=Gr(l,{mixins:Ka(l.breakpoints,n),palette:s,shadows:Ms.slice(),typography:Rs(s,o),transitions:Ts(i),zIndex:ke({},js)});return u=Gr(u,a),u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}const Fs=_s();function zs(){const e=no(Fs);return e[Ae]||e}var Ws,$s={},Hs={exports:{}};function Vs(){return Ws||(Ws=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(Hs)),Hs.exports}var Bs,Gs={exports:{}};function Us(){return Bs||(Bs=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Gs)),Gs.exports}var Ys=Or(Hr),Ks=Or(Ur),Xs=Or(ri),Js=Or(Ko),Zs=Or(Qi),Qs=Or(yo),el=Za;Object.defineProperty($s,"__esModule",{value:!0});var tl=$s.default=function(e={}){const{themeId:t,defaultTheme:n=hl,rootShouldForwardProp:r=pl,slotShouldForwardProp:i=pl}=e,o=e=>(0,sl.default)((0,nl.default)({},e,{theme:gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,il.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vl(ml(l))}=a,p=(0,rl.default)(a,cl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=pl;"Root"===l||"root"===l?g=r:l?g=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,il.default)(e,(0,nl.default)({shouldForwardProp:g,label:void 0},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ol.isPlainObject)(e)?r=>{const i=gl({theme:r.theme,defaultTheme:n,themeId:t});return yl(e,(0,nl.default)({},r,{theme:i}),i.modularCssLayers?f:void 0)}:e,b=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push(e=>{const r=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=yl(n,(0,nl.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,o)}),s&&!h&&l.push(e=>{var r;const i=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));return yl({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,nl.default)({},e,{theme:i}),i.modularCssLayers?"theme":void 0)}),m||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};$s.shouldForwardProp=pl,$s.systemDefaultTheme=void 0;var nl=el(Vs()),rl=el(Us()),il=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=dl(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(Ys),ol=Ks;el(Xs),el(Js);var al=el(Zs),sl=el(Qs);const ll=["ownerState"],ul=["variants"],cl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(dl=function(e){return e?n:t})(e)}function pl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const hl=$s.systemDefaultTheme=(0,al.default)(),ml=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vl(e){return e?(t,n)=>n[e]:null}function yl(e,t,n){let{ownerState:r}=t,i=(0,rl.default)(t,ll);const o="function"==typeof e?e((0,nl.default)({ownerState:r},i)):e;if(Array.isArray(o))return o.flatMap(e=>yl(e,(0,nl.default)({ownerState:r},i),n));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rl.default)(o,ul);return e.forEach(e=>{let o=!0;if("function"==typeof e.props?o=e.props((0,nl.default)({ownerState:r},i,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&i[t]!==e.props[t]&&(o=!1)}),o){Array.isArray(t)||(t=[t]);const o="function"==typeof e.style?e.style((0,nl.default)({ownerState:r},i,r)):e.style;t.push(n?fl((0,il.internal_serializeStyles)(o),n):o)}}),t}return n?fl((0,il.internal_serializeStyles)(o),n):o}function bl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const xl=e=>bl(e)&&"classes"!==e,Sl=tl({themeId:Ae,defaultTheme:Fs,rootShouldForwardProp:xl}),wl=["theme"];function Cl(e){let{theme:t}=e,n=Oe(e,wl);const r=t[Ae];let i=r||t;return"function"!=typeof t&&(r&&!r.vars?i=ke({},r,{vars:null}):t&&!t.vars&&(i=ke({},t,{vars:null}))),fo.jsx(Ga,ke({},n,{themeId:r?Ae:void 0,theme:i}))}const El=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Il(e){return Ha(e)}function Dl(e){return Io("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Rl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Pl=Sl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ni(n.color)}`],t[`fontSize${ni(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,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]}}),Ml=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Oe(n,Rl),h=i.isValidElement(r)&&"svg"===r.type,m=ke({},n,{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:n,classes:r}=e;return Ra({root:["root","inherit"!==t&&`color${ni(t)}`,`fontSize${ni(n)}`]},Dl,r)})(m);return fo.jsxs(Pl,ke({as:s,className:wo(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&r.props,{ownerState:m,children:[h?r.props.children:r,d?fo.jsx("title",{children:d}):null]}))});function Ll(e,t){function n(n,r){return fo.jsx(Ml,ke({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ml.muiName,i.memo(i.forwardRef(n))}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}function kl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Al(e,t)}Ml.muiName="SvgIcon";var Ol=!1,ql=n.createContext(null),Tl="unmounted",jl="exited",Nl="entering",_l="entered",Fl="exiting",zl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=jl,r.appearStatus=Nl):i=_l:i=t.unmountOnExit||t.mountOnEnter?Tl:jl,r.state={status:i},r.nextCallback=null,r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tl?{status:jl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Nl&&n!==_l&&(t=Nl):n!==Nl&&n!==_l||(t=Fl)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Nl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jl&&this.setState({status:Tl})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[E.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ol?this.safeSetState({status:_l},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:Nl},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:_l},function(){t.props.onEntered(o,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Ol?(this.props.onExit(r),this.safeSetState({status:Fl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:jl},function(){e.props.onExited(r)})})})):this.safeSetState({status:jl},function(){e.props.onExited(r)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Tl)return null;var t=this.props,r=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 i=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return n.createElement(ql.Provider,{value:null},"function"==typeof r?r(e,i):n.cloneElement(n.Children.only(r),i))},t}(n.Component);function Wl(){}function $l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hl(e,t){var n=Object.create(null);return e&&s.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&o(e)?t(e):e}(e)}),n}function Vl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Bl(e,t,n){var r=Hl(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(s){var l=i[s];if(o(l)){var u=s in t,c=s in r,d=t[s],p=o(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&o(d)&&(i[s]=a(l,{onExited:n.bind(null,l),in:d.props.in,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})):i[s]=a(l,{in:!1}):i[s]=a(l,{onExited:n.bind(null,l),in:!0,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})}}),i}zl.contextType=ql,zl.propTypes={},zl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wl,onEntering:Wl,onEntered:Wl,onExit:Wl,onExiting:Wl,onExited:Wl},zl.UNMOUNTED=Tl,zl.EXITED=jl,zl.ENTERING=Nl,zl.ENTERED=_l,zl.EXITING=Fl;var Gl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ul=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind($l(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}kl(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Hl(n.children,function(e){return a(e,{onExited:r.bind(null,e),in:!0,appear:Vl(e,"appear",n),enter:Vl(e,"enter",n),exit:Vl(e,"exit",n)})})):Bl(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=Hl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ke({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=Oe(e,["component","childFactory"]),o=this.state.contextValue,a=Gl(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?n.createElement(ql.Provider,{value:o},a):n.createElement(ql.Provider,{value:o},n.createElement(t,i,a))},t}(n.Component);Ul.propTypes={},Ul.defaultProps={component:"div",childFactory:function(e){return e}};const Yl=e=>e.scrollTop;function Kl(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function Xl(e){return Io("MuiPaper",e)}Do("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 Jl=["className","component","elevation","square","variant"],Zl=Sl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;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(${ns("#fff",El(t.elevation))}, ${ns("#fff",El(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ql=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=Oe(n,Jl),u=ke({},n,{component:i,elevation:o,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ra({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xl,i)})(u);return fo.jsx(Zl,ke({as:i,ownerState:u,className:wo(c.root,r),ref:t},l))});const eu=Do("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tu=["center","classes","className"];let nu,ru,iu,ou,au=e=>e;const su=Ar(nu||(nu=au`
15
+ function zr(e,t){let n;return n=t?Rr(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Rr(e),n}function Wr(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function $r(e){return e}Fr.propTypes={defaultTheme:jr.object,styles:jr.oneOfType([jr.array,jr.string,jr.object,jr.func])};var Hr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:_r,ThemeContext:gr,css:Er,default:zr,internal_mutateStyles:Wr,internal_processStyles:function(e,t){return Wr(e,t)},internal_serializeStyles:$r,keyframes:Ar});function Vr(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 Br(e){if(i.isValidElement(e)||!Vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Br(e[n])}),t}function Gr(e,t,n={clone:!0}){const r=n.clone?ke({},e):e;return Vr(e)&&Vr(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])?r[o]=t[o]:Vr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vr(e[o])?r[o]=Gr(e[o],t[o],n):n.clone?r[o]=Vr(t[o])?Br(t[o]):t[o]:r[o]=t[o]}),r}var Ur=Object.freeze({__proto__:null,default:Gr,isPlainObject:Vr});const Yr=["values","unit","step"];function Kr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Oe(e,Yr),o=(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(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return ke({keys:a,values:o,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:n},i)}const Xr={borderRadius:4};function Jr(e,t){return t?Gr(e,t,{clone:!1}):e}const Zr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zr[e]}px)`};function ei(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Qr;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||Qr;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||Zr).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r},{})}return n(t)}function ti(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ni(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ri=Object.freeze({__proto__:null,default:ni});function ii(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oi(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ii(e,n)||r,t&&(i=t(i,r,e)),i}function ai(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=ii(e.theme,r)||{};return ei(e,o,e=>{let r=oi(a,i,e);return e===r&&"string"==typeof e&&(r=oi(a,i,`${t}${"default"===e?"":ni(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const si={m:"margin",p:"padding"},li={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ui={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ci=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ui[e])return[e];e=ui[e]}const[t,n]=e.split(""),r=si[t],i=li[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fi(e,t,n,r){var i;const o=null!=(i=ii(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function hi(e){return fi(e,"spacing",8)}function mi(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function gi(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=mi(t,n),e),{})}(ci(n),r);return ei(e,e[n],i)}function vi(e,t){const n=hi(e.theme);return Object.keys(e).map(r=>gi(e,t,r,n)).reduce(Jr,{})}function yi(e){return vi(e,di)}function bi(e){return vi(e,pi)}function xi(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Jr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Si(e){return"number"!=typeof e?e:`${e}px solid`}function wi(e,t){return ai({prop:e,themeKey:"borders",transform:t})}yi.propTypes={},yi.filterProps=di,bi.propTypes={},bi.filterProps=pi;const Ci=wi("border",Si),Ei=wi("borderTop",Si),Ii=wi("borderRight",Si),Di=wi("borderBottom",Si),Ri=wi("borderLeft",Si),Pi=wi("borderColor"),Mi=wi("borderTopColor"),Li=wi("borderRightColor"),Ai=wi("borderBottomColor"),ki=wi("borderLeftColor"),Oi=wi("outline",Si),qi=wi("outlineColor"),Ti=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fi(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:mi(t,e)});return ei(e,e.borderRadius,n)}return null};Ti.propTypes={},Ti.filterProps=["borderRadius"],xi(Ci,Ei,Ii,Di,Ri,Pi,Mi,Li,Ai,ki,Ti,Oi,qi);const Ni=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fi(e.theme,"spacing",8),n=e=>({gap:mi(t,e)});return ei(e,e.gap,n)}return null};Ni.propTypes={},Ni.filterProps=["gap"];const ji=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fi(e.theme,"spacing",8),n=e=>({columnGap:mi(t,e)});return ei(e,e.columnGap,n)}return null};ji.propTypes={},ji.filterProps=["columnGap"];const _i=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fi(e.theme,"spacing",8),n=e=>({rowGap:mi(t,e)});return ei(e,e.rowGap,n)}return null};_i.propTypes={},_i.filterProps=["rowGap"];function Fi(e,t){return"grey"===t?t:e}xi(Ni,ji,_i,ai({prop:"gridColumn"}),ai({prop:"gridRow"}),ai({prop:"gridAutoFlow"}),ai({prop:"gridAutoColumns"}),ai({prop:"gridAutoRows"}),ai({prop:"gridTemplateColumns"}),ai({prop:"gridTemplateRows"}),ai({prop:"gridTemplateAreas"}),ai({prop:"gridArea"}));function zi(e){return e<=1&&0!==e?100*e+"%":e}xi(ai({prop:"color",themeKey:"palette",transform:Fi}),ai({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fi}),ai({prop:"backgroundColor",themeKey:"palette",transform:Fi}));const Wi=ai({prop:"width",transform:zi}),$i=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Zr[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:zi(t)}};return ei(e,e.maxWidth,t)}return null};$i.filterProps=["maxWidth"];const Hi=ai({prop:"minWidth",transform:zi}),Vi=ai({prop:"height",transform:zi}),Bi=ai({prop:"maxHeight",transform:zi}),Gi=ai({prop:"minHeight",transform:zi});ai({prop:"size",cssProperty:"width",transform:zi}),ai({prop:"size",cssProperty:"height",transform:zi});xi(Wi,$i,Hi,Vi,Bi,Gi,ai({prop:"boxSizing"}));const Ui={border:{themeKey:"borders",transform:Si},borderTop:{themeKey:"borders",transform:Si},borderRight:{themeKey:"borders",transform:Si},borderBottom:{themeKey:"borders",transform:Si},borderLeft:{themeKey:"borders",transform:Si},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Si},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ti},color:{themeKey:"palette",transform:Fi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fi},backgroundColor:{themeKey:"palette",transform:Fi},p:{style:bi},pt:{style:bi},pr:{style:bi},pb:{style:bi},pl:{style:bi},px:{style:bi},py:{style:bi},padding:{style:bi},paddingTop:{style:bi},paddingRight:{style:bi},paddingBottom:{style:bi},paddingLeft:{style:bi},paddingX:{style:bi},paddingY:{style:bi},paddingInline:{style:bi},paddingInlineStart:{style:bi},paddingInlineEnd:{style:bi},paddingBlock:{style:bi},paddingBlockStart:{style:bi},paddingBlockEnd:{style:bi},m:{style:yi},mt:{style:yi},mr:{style:yi},mb:{style:yi},ml:{style:yi},mx:{style:yi},my:{style:yi},margin:{style:yi},marginTop:{style:yi},marginRight:{style:yi},marginBottom:{style:yi},marginLeft:{style:yi},marginX:{style:yi},marginY:{style:yi},marginInline:{style:yi},marginInlineStart:{style:yi},marginInlineEnd:{style:yi},marginBlock:{style:yi},marginBlockStart:{style:yi},marginBlockEnd:{style:yi},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:Ni},rowGap:{style:_i},columnGap:{style:ji},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zi},maxWidth:{style:$i},minWidth:{transform:zi},height:{transform:zi},maxHeight:{transform:zi},minHeight:{transform:zi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Yi(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ii(n,s)||{};if(u)return u(i);return ei(i,t,t=>{let n=oi(c,l,t);return t===n&&"string"==typeof t&&(n=oi(c,l,`${e}${"default"===t?"":ni(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:i,theme:o={},nested:a}=n||{};if(!i)return null;const s=null!=(r=o.unstable_sxConfig)?r:Ui;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(o.breakpoints),l=Object.keys(i);let u=i;return Object.keys(r).forEach(n=>{const i=(a=r[n],l=o,"function"==typeof a?a(l):a);var a,l;if(null!=i)if("object"==typeof i)if(s[n])u=Jr(u,e(n,i,o,s));else{const e=ei({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=Jr(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=Jr(u,e(n,i,o,s))}),!a&&o.modularCssLayers?{"@layer sx":ti(l,u)}:ti(l,u)}return Array.isArray(i)?i.map(l):l(i)}}const Ki=Yi();function Xi(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Ki.filterProps=["sx"];const Ji=["breakpoints","palette","spacing","shape"];function Zi(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Oe(e,Ji),s=Kr(n),l=function(e=8){if(e.mui)return e;const t=hi({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i);let u=Gr({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},r),spacing:l,shape:ke({},Xr,o)},a);return u.applyStyles=Xi,u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}var Qi=Object.freeze({__proto__:null,default:Zi,private_createBreakpoints:Kr,unstable_applyStyles:Xi});function eo(e=null){const t=i.useContext(gr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const to=Zi();function no(e=to){return eo(e)}var ro={exports:{}},io={},oo=n,ao=Symbol.for("react.element"),so=Symbol.for("react.fragment"),lo=Object.prototype.hasOwnProperty,uo=oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,co={key:!0,ref:!0,__self:!0,__source:!0};function po(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)lo.call(t,r)&&!co.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:ao,type:e,key:o,ref:a,props:i,_owner:uo.current}}io.Fragment=so,io.jsx=po,io.jsxs=po,ro.exports=io;var fo=ro.exports;function ho(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mo({styles:e,themeId:t,defaultTheme:n={}}){const r=no(n),i=t&&r[t]||r;let o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>ho("function"==typeof e?e(i):e)):ho(o)),fo.jsx(Fr,{styles:o})}const go=["sx"];function vo(e){const{sx:t}=e,n=Oe(e,go),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ui;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Vr(n)?ke({},r,n):r}:ke({},r,t),ke({},i,{sx:o})}var yo=Object.freeze({__proto__:null,default:Ki,extendSxProp:vo,unstable_createStyleFunctionSx:Yi,unstable_defaultSxConfig:Ui});const bo=e=>e,xo=(()=>{let e=bo;return{configure(t){e=t},generate:t=>e(t),reset(){e=bo}}})();function So(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=So(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wo(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=So(e))&&(r&&(r+=" "),r+=t);return r}const Co=["className","component"];const Eo={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 Io(e,t,n="Mui"){const r=Eo[t];return r?`${n}-${r}`:`${xo.generate(e)}-${t}`}function Do(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Io(e,t,n)}),r}var Ro={exports:{}},Po={},Mo=Symbol.for("react.transitional.element"),Lo=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ko=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),qo=Symbol.for("react.consumer"),To=Symbol.for("react.context"),No=Symbol.for("react.forward_ref"),jo=Symbol.for("react.suspense"),_o=Symbol.for("react.suspense_list"),Fo=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),Wo=Symbol.for("react.view_transition"),$o=Symbol.for("react.client.reference");function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mo:switch(e=e.type){case Ao:case Oo:case ko:case jo:case _o:case Wo:return e;default:switch(e=e&&e.$$typeof){case To:case No:case zo:case Fo:case qo:return e;default:return t}}case Lo:return t}}}Po.ContextConsumer=qo,Po.ContextProvider=To,Po.Element=Mo,Po.ForwardRef=No,Po.Fragment=Ao,Po.Lazy=zo,Po.Memo=Fo,Po.Portal=Lo,Po.Profiler=Oo,Po.StrictMode=ko,Po.Suspense=jo,Po.SuspenseList=_o,Po.isContextConsumer=function(e){return Ho(e)===qo},Po.isContextProvider=function(e){return Ho(e)===To},Po.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mo},Po.isForwardRef=function(e){return Ho(e)===No},Po.isFragment=function(e){return Ho(e)===Ao},Po.isLazy=function(e){return Ho(e)===zo},Po.isMemo=function(e){return Ho(e)===Fo},Po.isPortal=function(e){return Ho(e)===Lo},Po.isProfiler=function(e){return Ho(e)===Oo},Po.isStrictMode=function(e){return Ho(e)===ko},Po.isSuspense=function(e){return Ho(e)===jo},Po.isSuspenseList=function(e){return Ho(e)===_o},Po.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ao||e===Oo||e===ko||e===jo||e===_o||"object"==typeof e&&null!==e&&(e.$$typeof===zo||e.$$typeof===Fo||e.$$typeof===To||e.$$typeof===qo||e.$$typeof===No||e.$$typeof===$o||void 0!==e.getModuleId)},Po.typeOf=Ho,Ro.exports=Po;var Vo=Ro.exports;const Bo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Go(e){const t=`${e}`.match(Bo);return t&&t[1]||""}function Uo(e,t=""){return e.displayName||e.name||Go(e)||t}function Yo(e,t,n){const r=Uo(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ko=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Uo(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Vo.ForwardRef:return Yo(e,e.render,"ForwardRef");case Vo.Memo:return Yo(e,e.type,"memo");default:return}}},getFunctionName:Go});function Xo(e,t){const n=ke({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ke({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=ke({},o),Object.keys(i).forEach(e=>{n[r][e]=Xo(i[e],o[e])})):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])}),n}const Jo="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function Zo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Qo=Object.freeze({__proto__:null,default:Zo});function ea(e){if(e.type)return e;if("#"===e.charAt(0))return ea(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Me(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Me(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}function ta(e,t){return e=ea(e),t=function(e,t=0,n=1){return Zo(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function na(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ra(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function ia(e){return e&&e.ownerDocument||document}function oa(e){return ia(e).defaultView||window}function aa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let sa=0;const la=i["useId".toString()];function ua(e){if(void 0!==la){return la()}return function(e){const[t,n]=i.useState(e),r=t;return i.useEffect(()=>{null==t&&(sa+=1,n(`mui-${sa}`))},[t]),r}(e)}function ca({controlled:e,default:t,name:n,state:r="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 da(e){const t=i.useRef(e);return Jo(()=>{t.current=e}),i.useRef((...e)=>(0,t.current)(...e)).current}function pa(...e){return i.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{aa(e,t)})},e)}const fa={};const ha=[];class ma{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ma}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function ga(){const e=function(e,t){const n=i.useRef(fa);return n.current===fa&&(n.current=e(t)),n}(ma.create).current;return function(e){i.useEffect(e,ha)}(e.disposeEffect),e}let va=!0,ya=!1;const ba=new ma,xa={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 Sa(e){e.metaKey||e.altKey||e.ctrlKey||(va=!0)}function wa(){va=!1}function Ca(){"hidden"===this.visibilityState&&ya&&(va=!0)}function Ea(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return va||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!xa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ia(){const e=i.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Sa,!0),t.addEventListener("mousedown",wa,!0),t.addEventListener("pointerdown",wa,!0),t.addEventListener("touchstart",wa,!0),t.addEventListener("visibilitychange",Ca,!0))},[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ea(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ya=!0,ba.start(100,()=>{ya=!1}),t.current=!1,!0)},ref:e}}function Da(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ra(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Pa(e){return"string"==typeof e}function Ma(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function La(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const Aa=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ka(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Oe(e,Aa),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=wo(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=ke({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=ke({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ma(ke({},i,r)),s=La(r),l=La(i),u=t(a),c=wo(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=ke({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=ke({},u,n,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,n){return void 0===e||Pa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,n)})}(n,ke({},l,{ref:pa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}function Oa(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 qa=i.createContext(null);function Ta(){return i.useContext(qa)}var Na="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ja(e){const{children:t,theme:n}=e,r=Ta(),o=i.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(r,n);return null!=e&&(e[Na]=null!==r),e},[n,r]);return fo.jsx(qa.Provider,{value:o,children:t})}const _a=["value"],Fa=i.createContext();function za(e){let{value:t}=e,n=Oe(e,_a);return fo.jsx(Fa.Provider,ke({value:null==t||t},n))}const Wa=i.createContext(void 0);function $a({value:e,children:t}){return fo.jsx(Wa.Provider,{value:e,children:t})}function Ha({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Xo(i.defaultProps,r):i.styleOverrides||i.variants?r:Xo(i,r)}({props:e,name:t,theme:{components:i.useContext(Wa)}})}const Va={};function Ba(e,t,n,r=!1){return i.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?ke({},t,{[e]:o}):o;return r?()=>a:a}return ke({},t,e?{[e]:n}:n)},[e,t,n,r])}function Ga(e){const{children:t,theme:n,themeId:r}=e,i=eo(Va),o=Ta()||Va,a=Ba(r,i,n),s=Ba(r,o,n,!0),l="rtl"===a.direction,u=function(e){const t=eo(),n=ua()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",Jo(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",n),o.textContent=i,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${n}"]`))||o.remove()}},[i,n]),i?fo.jsx(mo,{styles:i}):null}(a);return fo.jsx(ja,{theme:s,children:fo.jsx(gr.Provider,{value:a,children:fo.jsx(za,{value:l,children:fo.jsxs($a,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ua(e){return Ua="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},Ua(e)}function Ya(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}function Ka(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Xa={},Ja={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ja);var Za=Ja.exports,Qa=Or(Le),es=Or(Qo),ts=Za;Object.defineProperty(Xa,"__esModule",{value:!0});var ns=Xa.alpha=ms;Xa.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=cs(e),a=cs(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return ps({type:"rgb",values:s})},Xa.colorChannel=void 0;var rs=Xa.darken=gs;Xa.decomposeColor=cs,Xa.emphasize=ys;var is=Xa.getContrastRatio=function(e,t){const n=hs(e),r=hs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Xa.getLuminance=hs,Xa.hexToRgb=us,Xa.hslToRgb=fs;var os=Xa.lighten=vs;Xa.private_safeAlpha=function(e,t,n){try{return ms(e,t)}catch(t){return e}},Xa.private_safeColorChannel=void 0,Xa.private_safeDarken=function(e,t,n){try{return gs(e,t)}catch(t){return e}},Xa.private_safeEmphasize=function(e,t,n){try{return ys(e,t)}catch(t){return e}},Xa.private_safeLighten=function(e,t,n){try{return vs(e,t)}catch(t){return e}},Xa.recomposeColor=ps,Xa.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=cs(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 as=ts(Qa),ss=ts(es);function ls(e,t=0,n=1){return(0,ss.default)(e,t,n)}function us(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function cs(e){if(e.type)return e;if("#"===e.charAt(0))return cs(us(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,as.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,as.default)(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}const ds=e=>{const t=cs(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Xa.colorChannel=ds;function ps(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function fs(e){e=cs(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*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])),ps({type:s,values:l})}function hs(e){let t="hsl"===(e=cs(e)).type||"hsla"===e.type?cs(fs(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 ms(e,t){return e=cs(e),t=ls(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ps(e)}function gs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ps(e)}function vs(e,t){if(e=cs(e),t=ls(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ps(e)}function ys(e,t=.15){return hs(e)>.5?gs(e,t):vs(e,t)}Xa.private_safeColorChannel=(e,t)=>{try{return ds(e)}catch(t){return e}};const bs=["mode","contrastThreshold","tonalOffset"],xs={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}},Ss={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 ws(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=os(e.main,i):"dark"===t&&(e.dark=rs(e.main,o)))}function Cs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Oe(e,bs),o=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:ne,light:te,dark:ie}:{main:oe,light:re,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:Re}}(t);function d(e){return is(e,Ss.text.primary)>=n?Ss.text.primary:xs.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=ke({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return ws(e,"light",i,r),ws(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ss,light:xs};return Gr(ke({common:ke({},K),mode:t,primary:p({color:o,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:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),i)}const Es=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Is={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function Rs(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ds,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Oe(n,Es),f=i/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,i,o)=>{return ke({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ds?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,c);var a},g={h1:m(o,96,1.167,-1.5),h2:m(o,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,Is),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(ke({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,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 Ms=["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)],Ls=["duration","easing","delay"],As={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)"},ks={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Os(e){return`${Math.round(e)}ms`}function qs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ts(e){const t=ke({},As,e.easing),n=ke({},ks,e.duration);return ke({getAutoHeightDuration:qs,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return Oe(r,Ls),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:Os(i)} ${o} ${"string"==typeof a?a:Os(a)}`).join(",")}},e,{easing:t,duration:n})}const Ns={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},js=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _s(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Oe(e,js);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=Cs(r),l=Zi(e);let u=Gr(l,{mixins:Ka(l.breakpoints,n),palette:s,shadows:Ms.slice(),typography:Rs(s,o),transitions:Ts(i),zIndex:ke({},Ns)});return u=Gr(u,a),u=t.reduce((e,t)=>Gr(e,t),u),u.unstable_sxConfig=ke({},Ui,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ki({sx:e,theme:this})},u}const Fs=_s();function zs(){const e=no(Fs);return e[Ae]||e}var Ws,$s={},Hs={exports:{}};function Vs(){return Ws||(Ws=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(Hs)),Hs.exports}var Bs,Gs={exports:{}};function Us(){return Bs||(Bs=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Gs)),Gs.exports}var Ys=Or(Hr),Ks=Or(Ur),Xs=Or(ri),Js=Or(Ko),Zs=Or(Qi),Qs=Or(yo),el=Za;Object.defineProperty($s,"__esModule",{value:!0});var tl=$s.default=function(e={}){const{themeId:t,defaultTheme:n=hl,rootShouldForwardProp:r=pl,slotShouldForwardProp:i=pl}=e,o=e=>(0,sl.default)((0,nl.default)({},e,{theme:gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,il.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vl(ml(l))}=a,p=(0,rl.default)(a,cl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=pl;"Root"===l||"root"===l?g=r:l?g=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,il.default)(e,(0,nl.default)({shouldForwardProp:g,label:void 0},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ol.isPlainObject)(e)?r=>{const i=gl({theme:r.theme,defaultTheme:n,themeId:t});return yl(e,(0,nl.default)({},r,{theme:i}),i.modularCssLayers?f:void 0)}:e,b=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push(e=>{const r=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach(([t,n])=>{o[t]=yl(n,(0,nl.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),d(e,o)}),s&&!h&&l.push(e=>{var r;const i=gl((0,nl.default)({},e,{defaultTheme:n,themeId:t}));return yl({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,nl.default)({},e,{theme:i}),i.modularCssLayers?"theme":void 0)}),m||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};$s.shouldForwardProp=pl,$s.systemDefaultTheme=void 0;var nl=el(Vs()),rl=el(Us()),il=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=dl(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(Ys),ol=Ks;el(Xs),el(Js);var al=el(Zs),sl=el(Qs);const ll=["ownerState"],ul=["variants"],cl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(dl=function(e){return e?n:t})(e)}function pl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const hl=$s.systemDefaultTheme=(0,al.default)(),ml=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function vl(e){return e?(t,n)=>n[e]:null}function yl(e,t,n){let{ownerState:r}=t,i=(0,rl.default)(t,ll);const o="function"==typeof e?e((0,nl.default)({ownerState:r},i)):e;if(Array.isArray(o))return o.flatMap(e=>yl(e,(0,nl.default)({ownerState:r},i),n));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,rl.default)(o,ul);return e.forEach(e=>{let o=!0;if("function"==typeof e.props?o=e.props((0,nl.default)({ownerState:r},i,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&i[t]!==e.props[t]&&(o=!1)}),o){Array.isArray(t)||(t=[t]);const o="function"==typeof e.style?e.style((0,nl.default)({ownerState:r},i,r)):e.style;t.push(n?fl((0,il.internal_serializeStyles)(o),n):o)}}),t}return n?fl((0,il.internal_serializeStyles)(o),n):o}function bl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const xl=e=>bl(e)&&"classes"!==e,Sl=tl({themeId:Ae,defaultTheme:Fs,rootShouldForwardProp:xl}),wl=["theme"];function Cl(e){let{theme:t}=e,n=Oe(e,wl);const r=t[Ae];let i=r||t;return"function"!=typeof t&&(r&&!r.vars?i=ke({},r,{vars:null}):t&&!t.vars&&(i=ke({},t,{vars:null}))),fo.jsx(Ga,ke({},n,{themeId:r?Ae:void 0,theme:i}))}const El=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Il(e){return Ha(e)}function Dl(e){return Io("MuiSvgIcon",e)}Do("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Rl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Pl=Sl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ni(n.color)}`],t[`fontSize${ni(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,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]}}),Ml=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=Oe(n,Rl),h=i.isValidElement(r)&&"svg"===r.type,m=ke({},n,{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:n,classes:r}=e;return Ra({root:["root","inherit"!==t&&`color${ni(t)}`,`fontSize${ni(n)}`]},Dl,r)})(m);return fo.jsxs(Pl,ke({as:s,className:wo(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&r.props,{ownerState:m,children:[h?r.props.children:r,d?fo.jsx("title",{children:d}):null]}))});function Ll(e,t){function n(n,r){return fo.jsx(Ml,ke({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ml.muiName,i.memo(i.forwardRef(n))}function Al(e,t){return Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Al(e,t)}function kl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Al(e,t)}Ml.muiName="SvgIcon";var Ol=!1,ql=n.createContext(null),Tl="unmounted",Nl="exited",jl="entering",_l="entered",Fl="exiting",zl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Nl,r.appearStatus=jl):i=_l:i=t.unmountOnExit||t.mountOnEnter?Tl:Nl,r.state={status:i},r.nextCallback=null,r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tl?{status:Nl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==jl&&n!==_l&&(t=jl):n!==jl&&n!==_l||(t=Fl)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nl&&this.setState({status:Tl})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[E.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ol?this.safeSetState({status:_l},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:jl},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:_l},function(){t.props.onEntered(o,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Ol?(this.props.onExit(r),this.safeSetState({status:Fl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Nl},function(){e.props.onExited(r)})})})):this.safeSetState({status:Nl},function(){e.props.onExited(r)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Tl)return null;var t=this.props,r=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 i=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return n.createElement(ql.Provider,{value:null},"function"==typeof r?r(e,i):n.cloneElement(n.Children.only(r),i))},t}(n.Component);function Wl(){}function $l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hl(e,t){var n=Object.create(null);return e&&s.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&o(e)?t(e):e}(e)}),n}function Vl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Bl(e,t,n){var r=Hl(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(s){var l=i[s];if(o(l)){var u=s in t,c=s in r,d=t[s],p=o(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&o(d)&&(i[s]=a(l,{onExited:n.bind(null,l),in:d.props.in,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})):i[s]=a(l,{in:!1}):i[s]=a(l,{onExited:n.bind(null,l),in:!0,exit:Vl(l,"exit",e),enter:Vl(l,"enter",e)})}}),i}zl.contextType=ql,zl.propTypes={},zl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wl,onEntering:Wl,onEntered:Wl,onExit:Wl,onExiting:Wl,onExited:Wl},zl.UNMOUNTED=Tl,zl.EXITED=Nl,zl.ENTERING=jl,zl.ENTERED=_l,zl.EXITING=Fl;var Gl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ul=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind($l(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}kl(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Hl(n.children,function(e){return a(e,{onExited:r.bind(null,e),in:!0,appear:Vl(e,"appear",n),enter:Vl(e,"enter",n),exit:Vl(e,"exit",n)})})):Bl(e,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=Hl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ke({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=Oe(e,["component","childFactory"]),o=this.state.contextValue,a=Gl(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===t?n.createElement(ql.Provider,{value:o},a):n.createElement(ql.Provider,{value:o},n.createElement(t,i,a))},t}(n.Component);Ul.propTypes={},Ul.defaultProps={component:"div",childFactory:function(e){return e}};const Yl=e=>e.scrollTop;function Kl(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function Xl(e){return Io("MuiPaper",e)}Do("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 Jl=["className","component","elevation","square","variant"],Zl=Sl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;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(${ns("#fff",El(t.elevation))}, ${ns("#fff",El(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Ql=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=Oe(n,Jl),u=ke({},n,{component:i,elevation:o,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ra({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xl,i)})(u);return fo.jsx(Zl,ke({as:i,ownerState:u,className:wo(c.root,r),ref:t},l))});const eu=Do("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tu=["center","classes","className"];let nu,ru,iu,ou,au=e=>e;const su=Ar(nu||(nu=au`
16
16
  0% {
17
17
  transform: scale(0);
18
18
  opacity: 0.1;
@@ -85,18 +85,18 @@ function zr(e,t){let n;return n=t?Rr(e).withConfig({displayName:t.label,shouldFo
85
85
  animation-iteration-count: infinite;
86
86
  animation-delay: 200ms;
87
87
  }
88
- `),eu.rippleVisible,su,550,({theme:e})=>e.transitions.easing.easeInOut,eu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,eu.child,eu.childLeaving,lu,550,({theme:e})=>e.transitions.easing.easeInOut,eu.childPulsate,uu,({theme:e})=>e.transitions.easing.easeInOut),pu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,s=Oe(n,tu),[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=ga(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,fo.jsx(du,{classes:{ripple:wo(o.ripple,eu.ripple),rippleVisible:wo(o.rippleVisible,eu.rippleVisible),ripplePulsate:wo(o.ripplePulsate,eu.ripplePulsate),child:wo(o.child,eu.child),childLeaving:wo(o.childLeaving,eu.childLeaving),childPulsate:wo(o.childPulsate,eu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=i.useCallback((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||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(o||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)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:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[r,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]),fo.jsx(cu,ke({className:wo(eu.root,o.root,a),ref:m},s,{children:fo.jsx(Ul,{component:null,exit:!0,children:l})}))});function fu(e){return Io("MuiButtonBase",e)}const hu=Do("MuiButtonBase",["root","disabled","focusVisible"]),mu=["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"],gu=Sl("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"},[`&.${hu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiButtonBase"}),{action:r,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:R,tabIndex:P=0,TouchRippleProps:M,touchRippleRef:L,type:A}=n,k=Oe(n,mu),O=i.useRef(null),q=i.useRef(null),T=pa(q,L),{isFocusVisibleRef:j,onFocus:N,onBlur:_,ref:F}=Ia(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),O.current.focus()}}),[]);const[$,H]=i.useState(!1);i.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,n=d){return da(r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!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",R),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{_(e),!1===j.current&&W(!1),h&&h(e)},!1),te=da(e=>{O.current||(O.current=e.currentTarget),N(e),!0===j.current&&(W(!0),b&&b(e)),y&&y(e)}),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=i.useRef(!1),ie=da(e=>{p&&!re.current&&z&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),oe=da(e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===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=pa(t,F,O),ue=ke({},n,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Ra({root:["root",t&&"disabled",n&&"focusVisible"]},fu,i);return n&&r&&(o.root+=` ${r}`),o})(ue);return fo.jsxs(gu,ke({as:ae,className:wo(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:P,type:A},se,k,{children:[a,V?fo.jsx(pu,ke({ref:T,center:o},M)):null]}))});function yu(e){return Io("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xu=Sl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ni(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.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})),Su={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTypography"}),r=(e=>wu[e]||e)(n.color),i=vo(ke({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Su}=i,f=Oe(i,bu),h=ke({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Su[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ra({root:["root",o,"inherit"!==e.align&&`align${ni(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},yu,a)})(h);return fo.jsx(xu,ke({as:m,ref:t,ownerState:h,className:wo(g.root,a)},f))});const Eu=i.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=pa(i.isValidElement(n)?Oa(n):null,t);if(Jo(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Jo(()=>{if(a&&!o)return aa(t,a),()=>{aa(t,null)}},[t,a,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return fo.jsx(i.Fragment,{children:n})}return fo.jsx(i.Fragment,{children:a?I.createPortal(n,a):a})}),Iu=["onChange","maxRows","minRows","style","value"];function Du(e){return parseInt(e,10)||0}const Ru={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 Mu=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s}=e,l=Oe(e,Iu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=pa(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=oa(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Du(i.paddingBottom)+Du(i.paddingTop),l=Du(i.borderBottomWidth)+Du(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),m=da(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=i.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=i.useRef(-1);Jo(()=>{const e=ra(g),t=null==c?void 0:c.current;if(!t)return;const n=oa(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),Jo(()=>{g()});return fo.jsxs(i.Fragment,{children:[fo.jsx("textarea",ke({value:s,onChange:e=>{u||g(),n&&n(e)},ref:d,rows:o,style:a},l)),fo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},Ru,a,{paddingTop:0,paddingBottom:0})})]})});function Lu({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Au=i.createContext(void 0);function ku(){return i.useContext(Au)}function Ou(e){return fo.jsx(mo,ke({},e,{defaultTheme:Fs,themeId:Ae}))}function qu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Tu(e,t=!1){return e&&(qu(e.value)&&""!==e.value||t&&qu(e.defaultValue)&&""!==e.defaultValue)}function ju(e){return Io("MuiInputBase",e)}const Nu=Do("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_u=["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"],Fu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ni(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zu=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Wu=Sl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fu})(({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",[`&.${Nu.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%"})),$u=Sl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Nu.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"})}),Hu=fo.jsx(Ou,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vu=i.forwardRef(function(e,t){var n;const r=Il({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:R,onKeyDown:P,onKeyUp:M,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:j,type:N="text",value:_}=r,F=Oe(r,_u),z=null!=y.value?y.value:_,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback(e=>{},[]),V=pa($,b,y.ref,H),[B,G]=i.useState(!1),U=ku(),Y=Lu({props:r,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=>{Tu(e)?K&&K():X&&X()},[K,X]);Jo(()=>{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=Mu);i.useEffect(()=>{U&&U.setAdornedStart(Boolean(j))},[U,j]);const ee=ke({},r,{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:j,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Ra({root:["root",`color${ni(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ni(p)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},ju,t)})(ee),ne=T.root||u.Root||Wu,re=q.root||c.root||{},ie=T.input||u.Input||$u;return Q=ke({},Q,null!=(n=q.input)?n:c.input),fo.jsxs(i.Fragment,{children:[!f&&Hu,fo.jsxs(ne,ke({},re,!Pa(ne)&&{ownerState:ke({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:wo(te.root,re.className,l,A&&"MuiInputBase-readOnly"),children:[j,fo.jsx(Au.Provider,{value:null,children:fo.jsx(ie,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:P,onKeyUp:M,type:N},Q,!Pa(ie)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:wo(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():(R&&R(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:j})):null]}))]})});function Bu(e){return Io("MuiInput",e)}const Gu=ke({},Nu,Do("MuiInput",["root","underline","input"]));function Uu(e){return Io("MuiOutlinedInput",e)}const Yu=ke({},Nu,Do("MuiOutlinedInput",["root","notchedOutline","input"]));function Ku(e){return Io("MuiFilledInput",e)}const Xu=ke({},Nu,Do("MuiFilledInput",["root","underline","input"]));var Ju=Ll(fo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qu={entering:{opacity:1},entered:{opacity:1}},ec=i.forwardRef(function(e,t){const n=zs(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:y=zl}=e,b=Oe(e,Zu),x=i.useRef(null),S=pa(x,Oa(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(p),E=w((e,t)=>{Yl(e);const r=Kl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),I=w(d),D=w(m),R=w(e=>{const t=Kl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),P=w(h);return fo.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:R,onExited:P,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"},Qu[e],g,s.props.style),ref:S},t))}))});function tc(e){return Io("MuiBackdrop",e)}Do("MuiBackdrop",["root","invisible"]);const nc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rc=Sl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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"})),ic=i.forwardRef(function(e,t){var n,r,i;const o=Il({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=ec,transitionDuration:g}=o,v=Oe(o,nc),y=ke({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Ra({root:["root",n&&"invisible"]},tc,t)})(y),x=null!=(n=f.root)?n:c.root;return fo.jsx(m,ke({in:p,timeout:g},v,{children:fo.jsx(rc,ke({"aria-hidden":!0},x,{as:null!=(r=null!=(i=h.root)?i:u.Root)?r:l,className:wo(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),oc=Do("MuiBox",["root"]),ac=_s(),sc=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=zr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ki);return i.forwardRef(function(e,i){const s=no(n),l=vo(e),{className:u,component:c="div"}=l,d=Oe(l,Co);return fo.jsx(a,ke({as:c,ref:i,className:wo(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Ae,defaultTheme:ac,defaultClassName:oc.root,generateClassName:xo.generate});function lc(e){return Io("MuiButton",e)}const uc=Do("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"]),cc=i.createContext({}),dc=i.createContext(void 0),pc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fc=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}}),hc=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ni(n.color)}`],t[`size${ni(n.size)}`],t[`${n.variant}Size${ni(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="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})`:ns(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})`:ns(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})`:ns(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:o,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]}),[`&.${uc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${uc.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 ${ns(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,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"},[`&.${uc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uc.disabled}`]:{boxShadow:"none"}}),mc=Sl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},fc(e))),gc=Sl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},fc(e))),vc=i.forwardRef(function(e,t){const n=i.useContext(cc),r=i.useContext(dc),o=Il({props:Xo(n,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,pc),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:n,fullWidth:r,size:i,variant:o,classes:a}=e;return ke({},a,Ra({root:["root",o,`${o}${ni(t)}`,`size${ni(i)}`,`${o}Size${ni(i)}`,`color${ni(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ni(i)}`],endIcon:["icon","endIcon",`iconSize${ni(i)}`]},lc,a))})(S),C=v&&fo.jsx(mc,{className:w.startIcon,ownerState:S,children:v}),E=f&&fo.jsx(gc,{className:w.endIcon,ownerState:S,children:f}),I=r||"";return fo.jsxs(hc,ke({ownerState:S,className:wo(n.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:wo(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function yc(e){return Io("PrivateSwitchBase",e)}Do("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xc=Sl(vu,{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})),Sc=Sl("input",{name:"MuiSwitchBase",shouldForwardProp:xl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wc=i.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,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,bc),[E,I]=ca({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=ku();let R=s;D&&void 0===R&&(R=D.disabled);const P="checkbox"===S||"radio"===S,M=ke({},e,{checked:E,disabled:R,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ra({root:["root",n&&"checked",r&&"disabled",i&&`edge${ni(i)}`],input:["input"]},yc,t)})(M);return fo.jsxs(xc,ke({component:"span",className:wo(L.root,o),centerRipple:!0,focusRipple:!l,disabled:R,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:M,ref:t},C,{children:[fo.jsx(Sc,ke({autoFocus:n,checked:r,defaultChecked:a,className:L.input,disabled:R,id:P?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?i:c]}))});var Cc=Ll(fo.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"),Ec=Ll(fo.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"),Ic=Ll(fo.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 Io("MuiCheckbox",e)}const Rc=Do("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Pc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Mc=Sl(wc,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ni(n.size)}`],"default"!==n.color&&t[`color${ni(n.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})`:ns("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rc.checked}, &.${Rc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Lc=fo.jsx(Ec,{}),Ac=fo.jsx(Cc,{}),kc=fo.jsx(Ic,{}),Oc=i.forwardRef(function(e,t){var n,r;const o=Il({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Lc,color:s="primary",icon:l=Ac,indeterminate:u=!1,indeterminateIcon:c=kc,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,Pc),m=u?c:l,g=u?c:a,v=ke({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e;return ke({},t,Ra({root:["root",n&&"indeterminate",`color${ni(r)}`,`size${ni(i)}`]},Dc,t))})(v);return fo.jsx(Mc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:wo(y.root,f)},h,{classes:y}))});function qc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tc(e){return parseInt(oa(e).getComputedStyle(e).paddingRight,10)||0}function jc(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&qc(e,i)})}function Nc(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function _c(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ia(e);return t.body===e?oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Da(ia(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Tc(r)+e}px`;const t=ia(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ia(r).body;else{const t=r.parentElement,n=oa(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fc)).forEach((e,r)=>{const i=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!==i&&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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Wc(){return!0}function $c(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=zc,isEnabled:s=Wc,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=pa(Oa(t),m),v=i.useRef(null);i.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ia(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=ia(m.current),t=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var i,o;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return fo.jsxs(i.Fragment,{children:[fo.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 n=t.props.onFocus;n&&n(e)}}),fo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Hc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&qc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);jc(t,e.mount,e.modalRef,r,!0);const i=Nc(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Nc(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=_c(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nc(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&qc(e.modalRef,t),jc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&qc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Hc,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=pa(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:r}),m.current&&(m.current.scrollTop=0)},C=da(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ia(h.current).body;o.add(S(),e),m.current&&w()}),E=i.useCallback(()=>o.isTopModal(S()),[o]),I=da(e=>{h.current=e,e&&(d&&E()?w():m.current&&qc(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 R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ma(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ke({},n,t);return ke({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:na(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:na(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function Bc(e){return Io("MuiModal",e)}Do("MuiModal",["root","hidden","backdrop"]);const Gc=["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"],Uc=Sl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.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"})),Yc=Sl(ic,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kc=i.forwardRef(function(e,t){var n,r,o,a,s,l;const u=Il({name:"MuiModal",props:e}),{BackdropComponent:c=Yc,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:R,open:P,slotProps:M,slots:L}=u,A=Oe(u,Gc),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:j,isTopModal:N,exited:_,hasTransition:F}=Vc(ke({},k,{rootRef:t})),z=ke({},k,{exited:_}),W=(e=>{const{open:t,exited:n,classes:r}=e;return Ra({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bc,r)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==L?void 0:L.root)?r:v.Root)?n:Uc,V=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?o:c,B=null!=(s=null==M?void 0:M.root)?s:y.root,G=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,U=ka({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:wo(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=ka({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wo(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||P||F&&!_?fo.jsx(Eu,{ref:j,container:m,disablePortal:w,children:fo.jsxs(H,ke({},U,{children:[!I&&c?fo.jsx(V,ke({},Y)):null,fo.jsx($c,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:N,open:P,children:i.cloneElement(h,$)})]}))}):null});function Xc(e){return Io("MuiDivider",e)}const Jc=Do("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Qc=Sl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.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)`:ns(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%"}})),ed=Sl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.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)`})),td=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Oe(n,Zc),h=ke({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ra({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Xc,r)})(h);return fo.jsx(Qc,ke({as:a,className:wo(m.root,o),role:c,ref:t,ownerState:h},f,{children:i?fo.jsx(ed,{className:m.wrapper,ownerState:h,children:i}):null}))});td.muiSkipListHighlight=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],rd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:o}},[`&.${Xu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Xu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${Xu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xu.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})`:i}`,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(.${Xu.disabled}, .${Xu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xu.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}))}),id=Sl($u,{name:"MuiFilledInput",slot:"Input",overridesResolver:zu})(({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})),od=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({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,nd),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Ku,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Gr(y,null!=p?p:l):y,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:rd,S=null!=(i=null!=(o=f.input)?o:s.Input)?i:id;return fo.jsx(Vu,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});od.muiName="Input";const ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sd(e){return`scale(${e}, ${e**2})`}const ld={entering:{opacity:1,transform:sd(1)},entered:{opacity:1,transform:"none"}},ud="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cd=i.forwardRef(function(e,t){const{addEndListener:n,appear:r=!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=zl}=e,v=Oe(e,ad),y=ga(),b=i.useRef(),x=zs(),S=i.useRef(null),w=pa(S,Oa(o),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(c),I=C((e,t)=>{Yl(e);const{duration:n,delay:r,easing:i}=Kl({style:h,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ud?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),D=C(u),R=C(f),P=C(e=>{const{duration:t,delay:n,easing:r}=Kl({style:h,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:ud?i:.666*i,delay:ud?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=sd(.75),d&&d(e)}),M=C(p);return fo.jsx(g,ke({appear:r,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:P,onExited:M,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,ke({style:ke({opacity:0,transform:sd(.75),visibility:"exited"!==e||s?void 0:"hidden"},ld[e],h,o.props.style),ref:w},t))}))});cd.muiSupportAuto=!0;const dd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`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"},[`&.${Gu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Gu.disabled}, .${Gu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gu.disabled}:before`]:{borderBottomStyle:"dotted"}})}),fd=Sl($u,{name:"MuiInput",slot:"Input",overridesResolver:zu})({}),hd=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({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,dd),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Bu,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Gr(null!=f?f:u,y):y,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:pd,S=null!=(i=null!=(o=h.input)?o:l.Input)?i:fd;return fo.jsx(Vu,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function md(e){return Io("MuiInputAdornment",e)}hd.muiName="Input";const gd=Do("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vd;const yd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],bd=Sl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ni(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.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&&{[`&.${gd.positionStart}&:not(.${gd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),xd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,d=Oe(n,yd),p=ku()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return Ra({root:["root",n&&"disablePointerEvents",i&&`position${ni(i)}`,a,r&&"hiddenLabel",o&&`size${ni(o)}`]},md,t)})(h);return fo.jsx(Au.Provider,{value:null,children:fo.jsx(bd,ke({as:a,ownerState:h,className:wo(m.root,o),ref:t},d,{children:"string"!=typeof r||l?fo.jsxs(i.Fragment,{children:["start"===u?vd||(vd=fo.jsx("span",{className:"notranslate",children:"​"})):null,r]}):fo.jsx(Cu,{color:"text.secondary",children:r})}))})});function Sd(e){return Io("MuiLink",e)}const wd=Do("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ed=({theme:e,ownerState:t})=>{const n=(e=>Cd[e]||e)(t.color),r=ii(e,`palette.${n}`,!1)||t.color,i=ii(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:ns(r,.4)},Id=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Dd=Sl(Cu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ni(n.underline)}`],"button"===n.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:Ed({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"},[`&.${wd.focusVisible}`]:{outline:"auto"}})),Rd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Oe(n,Id),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=Ia(),[y,b]=i.useState(!1),x=pa(t,v),S=ke({},n,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ra({root:["root",`underline${ni(i)}`,"button"===n&&"button",r&&"focusVisible"]},Sd,t)})(S);return fo.jsx(Dd,ke({color:o,className:wo(w.root,r),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(Cd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),Pd=i.createContext({});function Md(e){return Io("MuiList",e)}Do("MuiList",["root","padding","dense","subheader"]);const Ld=["children","className","component","dense","disablePadding","subheader"],Ad=Sl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Oe(n,Ld),d=i.useMemo(()=>({dense:s}),[s]),p=ke({},n,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ra({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Md,t)})(p);return fo.jsx(Pd.Provider,{value:d,children:fo.jsxs(Ad,ke({as:a,className:wo(f.root,o),ref:t,ownerState:p},c,{children:[u,r]}))})});function Od(e){return Io("MuiListItem",e)}const qd=Do("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Td=Do("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function jd(e){return Io("MuiListItemSecondaryAction",e)}Do("MuiListItemSecondaryAction",["root","disableGutters"]);const Nd=["className"],_d=Sl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Fd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Oe(n,Nd),a=ke({},n,{disableGutters:i.useContext(Pd).disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e;return Ra({root:["root",t&&"disableGutters"]},jd,n)})(a);return fo.jsx(_d,ke({className:wo(s.root,r),ownerState:a,ref:t},o))});Fd.muiName="ListItemSecondaryAction";const zd=["className"],Wd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$d=Sl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.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&&{[`& > .${Td.root}`]:{paddingRight:48}},{[`&.${qd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qd.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"}},[`&.${qd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Hd=Sl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItem"}),{alignItems:r="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={}}=n,E=Oe(n.ContainerProps,zd),I=Oe(n,Wd),D=i.useContext(Pd),R=i.useMemo(()=>({dense:h||D.dense||!1,alignItems:r,disableGutters:g}),[r,D.dense,h,g]),P=i.useRef(null);Jo(()=>{o&&P.current&&P.current.focus()},[o]);const M=i.Children.toArray(s),L=M.length&&(A=M[M.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({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),j=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ra({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Od,r)})(T),N=pa(P,t),_=C.root||c.Root||$d,F=w.root||d.root||{},z=ke({className:wo(j.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=wo(qd.focusVisible,b),W=vu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(Hd,ke({as:p,className:wo(j.container,f),ref:N,ownerState:T},E,{children:[fo.jsx(_,ke({},F,!Pa(_)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:M})),M.pop()]}))})):fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(_,ke({},F,{as:W,ref:N},!Pa(_)&&{ownerState:ke({},T,F.ownerState)},z,{children:[M,x&&fo.jsx(Fd,{children:x})]}))})});function Bd(e){return Io("MuiListItemIcon",e)}const Gd=Do("MuiListItemIcon",["root","alignItemsFlexStart"]),Ud=["className"],Yd=Sl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.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})),Kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Oe(n,Ud),a=ke({},n,{alignItems:i.useContext(Pd).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Ra({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Bd,n)})(a);return fo.jsx(Yd,ke({className:wo(s.root,r),ownerState:a,ref:t},o))}),Xd=Do("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ep(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tp(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ep(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const np=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Jd),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jo(()=>{r&&f.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Da(ia(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=pa(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 fo.jsx(kd,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=ia(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tp(t,r,u,l,Zd);else if("ArrowUp"===n)e.preventDefault(),tp(t,r,u,l,Qd);else if("Home"===n)e.preventDefault(),tp(t,null,u,l,Zd);else if("End"===n)e.preventDefault(),tp(t,null,u,l,Qd);else if(1===n.length){const i=h.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&ep(r,i);i.previousKeyMatched&&(s||tp(t,r,!1,l,Zd,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))});function rp(e){return Io("MuiPopover",e)}Do("MuiPopover",["root","paper"]);const ip=["onEntering"],op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ap=["slotProps"];function sp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function up(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function cp(e){return"function"==typeof e?e():e}const dp=Sl(Kc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=Sl(Ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fp=i.forwardRef(function(e,t){var n,r,o;const a=Il({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=cd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,ip),R=Oe(a,op),P=null!=(n=null==x?void 0:x.paper)?n:y,M=i.useRef(),L=pa(M,P.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return Ra({root:["root"],paper:["paper"]},rp,t)})(A),O=i.useCallback(()=>{if("anchorPosition"===d)return c;const e=cp(l),t=(e&&1===e.nodeType?e:ia(M.current).body).getBoundingClientRect();return{top:t.top+sp(t,u.vertical),left:t.left+lp(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),q=i.useCallback(e=>({vertical:sp(e,S.vertical),horizontal:lp(e,S.horizontal)}),[S.horizontal,S.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===d)return{top:null,left:null,transformOrigin:up(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,u=oa(cp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:up(n)}},[l,d,O,q,g]),[j,N]=i.useState(v),_=i.useCallback(()=>{const e=M.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,N(!0)},[T]);i.useEffect(()=>(I&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[l,I,_]);i.useEffect(()=>{v&&_()}),i.useImperativeHandle(s,()=>v?{updatePosition:()=>{_()}}:null,[v,_]),i.useEffect(()=>{if(!v)return;const e=ra(()=>{_()}),t=oa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,_]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?ia(cp(l)).body:void 0),W=null!=(r=null==b?void 0:b.root)?r:dp,$=null!=(o=null==b?void 0:b.paper)?o:pp,H=ka({elementType:$,externalSlotProps:ke({},P,{style:j?P.style:ke({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:wo(k.paper,null==P?void 0:P.className)}),V=ka({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:wo(k.root,f)}),{slotProps:B}=V,G=Oe(V,ap);return fo.jsx(W,ke({},G,!Pa(W)&&{slotProps:B,disableScrollLock:I},{children:fo.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{N(!1)},timeout:F},D,{children:fo.jsx($,ke({},H,{children:p}))}))}))});function hp(e){return Io("MuiMenu",e)}Do("MuiMenu",["root","paper","list"]);const mp=["onEntering"],gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vp={vertical:"top",horizontal:"right"},yp={vertical:"top",horizontal:"left"},bp=Sl(fp,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xp=Sl(pp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sp=Sl(np,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wp=i.forwardRef(function(e,t){var n,r;const o=Il({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,mp),S=Oe(o,gp),w=(()=>{const e=i.useContext(Fa);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 Ra({root:["root"],paper:["paper"],list:["list"]},hp,t)})(C),I=a&&!u&&p,D=i.useRef(null);let R=-1;i.Children.map(s,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===R)&&(R=t))});const P=null!=(n=y.paper)?n:xp,M=null!=(r=b.paper)?r:f,L=ka({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=ka({elementType:P,externalSlotProps:M,ownerState:C,className:E.paper});return fo.jsx(bp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?vp:yp,slots:{paper:P,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:fo.jsx(Sp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===R||u),autoFocusItem:I,variant:v},c,{className:wo(E.list,c.className),children:s}))}))});function Cp(e){return Io("MuiMenuItem",e)}const Ep=Do("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ip=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dp=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.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"}},[`&.${Ep.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ep.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ep.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ep.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ep.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jc.inset}`]:{marginLeft:52},[`& .${Xd.root}`]:{marginTop:0,marginBottom:0},[`& .${Xd.inset}`]:{paddingLeft:36},[`& .${Gd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gd.root} svg`]:{fontSize:"1.25rem"}}))),Rp=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Oe(n,Ip),h=i.useContext(Pd),m=i.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=i.useRef(null);Jo(()=>{r&&g.current&&g.current.focus()},[r]);const v=ke({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e;return ke({},a,Ra({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Cp,a))})(n),b=pa(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),fo.jsx(Pd.Provider,{value:m,children:fo.jsx(Dp,ke({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:wo(y.focusVisible,u),className:wo(y.root,p)},f,{ownerState:v,classes:y}))})});function Pp(e){return Io("MuiNativeSelect",e)}const Mp=Do("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lp=["className","disabled","error","IconComponent","inputRef","variant"],Ap=({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"},[`&.${Mp.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}}),kp=Sl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xl,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mp.multiple}`]:t.multiple}]}})(Ap),Op=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),qp=Sl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Tp=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,Lp),c=ke({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"]},Pp,t)})(c);return fo.jsxs(i.Fragment,{children:[fo.jsx(kp,ke({ownerState:c,className:wo(d.select,n),disabled:r,ref:s||t},u)),e.multiple?null:fo.jsx(qp,{as:a,ownerState:c,className:d.icon})]})});var jp;const Np=["children","classes","className","label","notched"],_p=Sl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:xl})({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%"}),Fp=Sl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:xl})(({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 zp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Wp=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fu})(({theme:e,ownerState:t})=>{const n="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 .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Yu.focused} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yu.error} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yu.disabled} .${Yu.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"}))}),$p=Sl(function(e){const{className:t,label:n,notched:r}=e,i=Oe(e,Np),o=null!=n&&""!==n,a=ke({},e,{notched:r,withLabel:o});return fo.jsx(_p,ke({"aria-hidden":!0,className:t,ownerState:a},i,{children:fo.jsx(Fp,{ownerState:a,children:o?fo.jsx("span",{children:n}):jp||(jp=fo.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Hp=Sl($u,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zu})(({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})),Vp=i.forwardRef(function(e,t){var n,r,o,a,s;const l=Il({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,zp),y=(e=>{const{classes:t}=e;return ke({},t,Ra({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Uu,t))})(l),b=ku(),x=Lu({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!=(n=null!=(r=m.root)?r:u.Root)?n:Wp,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Hp;return fo.jsx(Vu,ke({slots:{root:w,input:C},renderSuffix:e=>fo.jsx($p,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=fo.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 Bp(e){return Io("MuiSelect",e)}Vp.muiName="Input";const Gp=Do("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Up;const Yp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Kp=Sl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gp.select}`]:t.select},{[`&.${Gp.select}`]:t[n.variant]},{[`&.${Gp.error}`]:t.error},{[`&.${Gp.multiple}`]:t.multiple}]}})(Ap,{[`&.${Gp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xp=Sl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Jp=Sl("input",{shouldForwardProp:e=>bl(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 Zp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Qp(e){return null==e||"string"==typeof e&&!e.trim()}const ef=i.forwardRef(function(e,t){var n;const{"aria-describedby":r,"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:R,renderValue:P,SelectDisplayProps:M={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,Yp),[q,T]=ca({controlled:A,default:d,name:"Select"}),[j,N]=ca({controlled:D,default:c,name:"Select"}),_=i.useRef(null),F=i.useRef(null),[z,W]=i.useState(null),{current:$}=i.useRef(null!=D),[H,V]=i.useState(),B=pa(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:_.current,value:q}),[q]),i.useEffect(()=>{c&&j&&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=ia(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),N(e))},K=i.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==n&&(T(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:x}}),w(i,e)}b||Y(!1,t)}},J=null!==z&&j;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Tu({value:q})||f)&&(P?Z=P(q):te=!0);const ne=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=>Zp(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Zp(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,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,ie=H;!s&&$&&z&&(ie=U.clientWidth),re=void 0!==L?L:p?null:0;const oe=M.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:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Bp,t)})(ae),le=ke({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ue=ua();return fo.jsxs(i.Fragment,{children:[fo.jsx(Kp,ke({ref:G,tabIndex:re,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,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||R?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},M,{ownerState:ae,className:wo(M.className,se.select,u),id:oe,children:Qp(Z)?Up||(Up=fo.jsx("span",{className:"notranslate",children:"​"})):Z})),fo.jsx(Jp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:_,"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)),fo.jsx(Xp,{as:m,className:se.icon,ownerState:ae}),fo.jsx(wp,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:ie},null!=le?le.style:null)})}),children:ne}))]})}),tf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],nf=["root"],rf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xl(e)&&"variant"!==e,slot:"Root"},of=Sl(hd,rf)(""),af=Sl(Vp,rf)(""),sf=Sl(od,rf)(""),lf=i.forwardRef(function(e,t){const n=Il({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ju,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"}=n,I=Oe(n,tf),D=y?Tp:ef,R=Lu({props:n,muiFormControl:ku(),states:["variant","error"]}),P=R.variant||E,M=ke({},n,{variant:P,classes:a}),L=(e=>{const{classes:t}=e;return t})(M),A=Oe(L,nf),k=p||{standard:fo.jsx(of,{ownerState:M}),outlined:fo.jsx(af,{label:h,ownerState:M}),filled:fo.jsx(sf,{ownerState:M})}[P],O=pa(t,Oa(k));return fo.jsx(i.Fragment,{children:i.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:o,error:R.error,IconComponent:c,variant:P,type:void 0,multiple:v},y?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?Gr(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===P?{notched:!0}:{},{ref:O,className:wo(k.props.className,s,L.root)},!p&&{variant:P},I))})});lf.muiName="Select";const uf={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"},cf={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",...uf,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)"},df=12,pf=14,ff=16,hf=24,mf=3,gf=300,vf=400,yf=600,bf=700,xf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Sf(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function wf({fontSize:e="medium",children:t=null,className:n=""}={}){return fo.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:n,children:t})}function Cf(e={}){return fo.jsx(wf,{...e,children:fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[fo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),fo.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 Ef(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[fo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),fo.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 If(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.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 fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[fo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),fo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Rf(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:fo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Pf({className:e}){return fo.jsx(wf,{fontSize:"small",className:e,children:fo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:fo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[fo.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"}),fo.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 Mf(e={}){return fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("rect",{stroke:cf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Lf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:cf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:fo.jsx(Sf,{"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 ${cf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,borderRadius:mf,backgroundColor:cf.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 ${cf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:cf.WHITE,color:cf.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:mf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:cf.GREYSCALE_0_15,backgroundColor:cf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.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:mf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:cf.GREYSCALE_0_42,backgroundColor:cf.GREYSCALE_100_60,"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:cf.PURPLE,"&.Mui-focusVisible":{borderColor:cf.PURPLE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:cf.GREEN,"&.Mui-focusVisible":{borderColor:cf.GREEN,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:cf.BLUE,"&.Mui-focusVisible":{borderColor:cf.BLUE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:cf.ORANGE,"&.Mui-focusVisible":{borderColor:cf.ORANGE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:cf.RED,"&.Mui-focusVisible":{borderColor:cf.RED,boxShadow:`0 0 0 3px ${ta(cf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:cf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:cf.PURPLE_PALE},"&:active":{backgroundColor:cf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:cf.PURPLE_PALE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:cf.ORANGE_PALE},"&:active":{backgroundColor:cf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:cf.ORANGE_PALE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:cf.RED_PALE},"&:active":{backgroundColor:cf.RED_DARK},"&.Mui-focusVisible":{borderColor:cf.RED_PALE,boxShadow:`0 0 0 3px ${ta(cf.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:cf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:cf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mf,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:df,borderRadius:mf,color:cf.TEXT_PRIMARY,backgroundColor:cf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:cf.GREYSCALE_0_05,color:cf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:cf.GREEN,borderColor:cf.GREEN},"&.MuiChip-outlinedInfo":{color:cf.BLUE,borderColor:cf.BLUE},"&.MuiChip-outlinedWarning":{color:cf.ORANGE,borderColor:cf.ORANGE},"&.MuiChip-outlinedError":{color:cf.RED,borderColor:cf.RED}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mf,boxShadow:"none",backgroundColor:cf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:cf.GREEN,borderColor:cf.GREEN},outlinedSecondary:{color:cf.BLUE,borderColor:cf.BLUE},label:{fontFamily:xf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:fo.jsx(Sf,{"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:mf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mf,fontSize:pf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:cf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${cf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:cf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:cf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mf,border:`solid 1px ${cf.GREYSCALE_0_15}`,color:cf.GREYSCALE_0_60,marginRight:0,width:hf,height:hf},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${cf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:cf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:pf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:cf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:cf.GREYSCALE_25,fontSize:df,fontFamily:xf.FONT_FAMILY,fontWeight:yf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:cf.TEXT_PRIMARY},"&.Mui-error":{color:cf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:cf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:cf.TEXT_SECONDARY,content:"'(required)'",fontWeight:vf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:pf,lineHeight:"16px",backgroundColor:cf.WHITE,borderRadius:mf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_05}`,borderColor:cf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.RED}`,boxShadow:`0px 0px 0px 1px ${cf.RED}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_10}`,borderColor:cf.GREYSCALE_0_10,backgroundColor:cf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:cf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:cf.GREYSCALE_0_15,borderRadius:mf,boxShadow:`inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>fo.jsx(Sf,{...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:cf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:cf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&:focus":{backgroundColor:cf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:cf.GREYSCALE_0_30,"&:hover":{backgroundColor:cf.GREYSCALE_0_0,borderColor:cf.GREYSCALE_0_15},"& ~svg":{color:cf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:cf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:pf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:df,fontWeight:yf,color:cf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:fo.jsx(Rf,{}),checkedIcon:fo.jsx(Ef,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:cf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:cf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:cf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:fo.jsx(Mf,{}),checkedIcon:fo.jsx(Cf,{}),indeterminateIcon:fo.jsx(Df,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:cf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:cf.GREYSCALE_0_55,color:cf.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:cf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:cf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:cf.GREYSCALE_0_55,"&:hover":{color:cf.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:cf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:cf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:pf,color:cf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yf},secondary:{fontSize:df,color:cf.GREYSCALE_45,fontWeight:vf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:pf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:pf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:cf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:df,borderBottom:`solid 1px ${cf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:pf,color:cf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:cf.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:cf.RED}}},"&.Mui-focusVisible":{backgroundColor:cf.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:cf.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:cf.GREEN,height:"24px","&.Mui-disabled":{color:cf.GREYSCALE_0_15}},rail:{backgroundColor:cf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf,boxShadow:`inset 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.WHITE,boxShadow:`0px 1px 2px 0px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`,"&:hover":{borderRadius:mf,boxShadow:`0 2px 4px 0 ${cf.GREYSCALE_0_30}, 0 0 0 1px ${cf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:cf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:cf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:cf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:cf.GREYSCALE_0_15},markLabel:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:cf.WHITE,color:cf.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:cf.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:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:cf.GREYSCALE_0_15,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.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:pf,fontWeight:yf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${cf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,backgroundColor:cf.GREYSCALE_0_03,borderRadius:mf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:cf.GREYSCALE_25,"&.Mui-selected":{color:cf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:pf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mf,"&:hover":{backgroundColor:cf.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 ${cf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${cf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderRight:`1px solid ${cf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yf,backgroundColor:cf.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:cf.GREYSCALE_98,borderBottom:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderTop:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05,"&:hover":{backgroundColor:cf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:cf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>fo.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 ${cf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:pf,borderRadius:mf,padding:"7px 16px",border:`1px solid ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_60,color:cf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,border:`1px solid ${cf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:cf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`,border:`1px solid ${cf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:cf.GREYSCALE_25,backgroundColor:cf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:df,height:24,width:24,padding:7},sizeLarge:{fontSize:ff,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:pf,borderRadius:mf}}},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:cf.GREYSCALE_20},tooltip:{backgroundColor:cf.GREYSCALE_20,fontSize:df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Af=e=>({mode:"light",primary:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},secondary:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},error:{ultraLight:cf.RED_ULTRA_LIGHT,light:cf.RED_PALE,main:cf.RED,dark:cf.RED_DARK,extraDark:cf.RED_EXTRA_DARK,contrastText:cf.WHITE},warning:{ultraLight:cf.ORANGE_ULTRA_LIGHT,light:cf.ORANGE_PALE,main:cf.ORANGE,dark:cf.ORANGE_DARK,extraDark:cf.ORANGE_EXTRA_DARK,contrastText:cf.WHITE},success:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},info:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},text:{primary:cf.TEXT_PRIMARY,secondary:cf.TEXT_SECONDARY,disabled:cf.GREYSCALE_0_30},action:{hover:cf.GREYSCALE_0_03,hoverOpacity:.03,selected:cf.GREYSCALE_0_05,selectedOpacity:.05,focus:cf.MISC_FOCUS_BORDER},amethyst:{ultraLight:cf.WHITE,main:cf.PURPLE,light:cf.PURPLE_PALE,dark:cf.PURPLE_DARK,extraDark:cf.GREYSCALE_0_0,contrastText:cf.WHITE},background:{paper:cf.WHITE,default:cf.GREYSCALE_95},divider:cf.GREYSCALE_0_15}),kf=e=>({components:Lf(),palette:Af(),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:pf,fontWeightLight:gf,fontWeightRegular:vf,fontWeightMedium:yf,fontWeightBold:bf,htmlFontSize:pf,fontFamily:xf.FONT_FAMILY,button:{fontWeight:yf,fontSize:pf,textTransform:"none"},body1:{fontSize:ff,lineHeight:"24px"},body2:{fontSize:pf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:hf,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ff,fontWeight:yf,lineHeight:"16px"},h6:{fontSize:pf,fontWeight:yf,lineHeight:"16px"},caption:{color:cf.TEXT_SECONDARY},subtitle1:{fontSize:pf,color:cf.TEXT_SECONDARY},subtitle2:{fontSize:df,color:cf.TEXT_SECONDARY}},shape:{borderRadius:mf}}),Of={...uf};var qf={},Tf={exports:{}},jf={exports:{}};!function(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(jf);var Nf=jf.exports;!function(e){var t=Nf.default;function n(r,i){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:o){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?r(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Tf);var _f=Tf.exports,Ff={};function zf(e,t){return function(){return null}}function Wf(e){return e&&"object"===Ua(e)&&e.constructor===Object}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ke({},e):e;return Wf(e)&&Wf(t)&&Object.keys(t).forEach(function(i){"__proto__"!==i&&(Wf(t[i])&&i in e?r[i]=$f(e[i],t[i],n):r[i]=t[i])}),r}var Hf=(Nr.element,function(){return null});Hf.isRequired=(Nr.element.isRequired,function(){return null});var Vf=function(){return null};var Bf={exports:{}},Gf={},Uf=60103,Yf=60106,Kf=60107,Xf=60108,Jf=60114,Zf=60109,Qf=60110,eh=60112,th=60113,nh=60120,rh=60115,ih=60116,oh=60121,ah=60122,sh=60117,lh=60129,uh=60131;if("function"==typeof Symbol&&Symbol.for){var ch=Symbol.for;Uf=ch("react.element"),Yf=ch("react.portal"),Kf=ch("react.fragment"),Xf=ch("react.strict_mode"),Jf=ch("react.profiler"),Zf=ch("react.provider"),Qf=ch("react.context"),eh=ch("react.forward_ref"),th=ch("react.suspense"),nh=ch("react.suspense_list"),rh=ch("react.memo"),ih=ch("react.lazy"),oh=ch("react.block"),ah=ch("react.server.block"),sh=ch("react.fundamental"),lh=ch("react.debug_trace_mode"),uh=ch("react.legacy_hidden")}function dh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Uf:switch(e=e.type){case Kf:case Jf:case Xf:case th:case nh:return e;default:switch(e=e&&e.$$typeof){case Qf:case eh:case ih:case rh:case Zf:return e;default:return t}}case Yf:return t}}}var ph=Zf,fh=Uf,hh=eh,mh=Kf,gh=ih,vh=rh,yh=Yf,bh=Jf,xh=Xf,Sh=th;Gf.ContextConsumer=Qf,Gf.ContextProvider=ph,Gf.Element=fh,Gf.ForwardRef=hh,Gf.Fragment=mh,Gf.Lazy=gh,Gf.Memo=vh,Gf.Portal=yh,Gf.Profiler=bh,Gf.StrictMode=xh,Gf.Suspense=Sh,Gf.isAsyncMode=function(){return!1},Gf.isConcurrentMode=function(){return!1},Gf.isContextConsumer=function(e){return dh(e)===Qf},Gf.isContextProvider=function(e){return dh(e)===Zf},Gf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Uf},Gf.isForwardRef=function(e){return dh(e)===eh},Gf.isFragment=function(e){return dh(e)===Kf},Gf.isLazy=function(e){return dh(e)===ih},Gf.isMemo=function(e){return dh(e)===rh},Gf.isPortal=function(e){return dh(e)===Yf},Gf.isProfiler=function(e){return dh(e)===Jf},Gf.isStrictMode=function(e){return dh(e)===Xf},Gf.isSuspense=function(e){return dh(e)===th},Gf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kf||e===Jf||e===lh||e===Xf||e===th||e===nh||e===uh||"object"==typeof e&&null!==e&&(e.$$typeof===ih||e.$$typeof===rh||e.$$typeof===Zf||e.$$typeof===Qf||e.$$typeof===eh||e.$$typeof===sh||e.$$typeof===oh||e[0]===ah)},Gf.typeOf=dh,Bf.exports=Gf;var wh=Bf.exports,Ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Eh(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 Ih(e,t,n){var r=Eh(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Dh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rh=Nr.oneOfType([Nr.func,Nr.object]),Ph=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,i){return null},chainPropTypes:zf,deepmerge:$f,elementAcceptingRef:Hf,elementTypeAcceptingRef:Vf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);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 Eh(e,"Component");if("object"===Ua(e))switch(e.$$typeof){case wh.ForwardRef:return Ih(e,e.render,"ForwardRef");case wh.Memo:return Ih(e,e.type,"memo");default:return}}},ponyfillGlobal:Dh,refType:Rh}),Mh=Or(Ph);Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.hexToRgb=kh,Ff.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=qh(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Ff.hslToRgb=Oh,Ff.decomposeColor=qh,Ff.recomposeColor=Th,Ff.getContrastRatio=function(e,t){var n=jh(e),r=jh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ff.getLuminance=jh,Ff.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return jh(e)>.5?_h(e,t):Fh(e,t)},Ff.fade=function(e,t){return Nh(e,t)},Ff.alpha=Nh,Ff.darken=_h,Ff.lighten=Fh;var Lh=Mh;function Ah(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kh(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Oh(e){var t=(e=qh(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),Th({type:s,values:l})}function qh(e){if(e.type)return e;if("#"===e.charAt(0))return qh(kh(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,Lh.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function Th(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function jh(e){var t="hsl"===(e=qh(e)).type?qh(Oh(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 Nh(e,t){return e=qh(e),t=Ah(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Th(e)}function _h(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Th(e)}function Fh(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Th(e)}var zh,Wh,$h,Hh={},Vh={exports:{}},Bh={exports:{}},Gh={exports:{}};function Uh(){return zh||(zh=1,function(e){var t=Nf.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh)),Gh.exports}function Yh(){return Wh||(Wh=1,function(e){var t=Nf.default,n=Uh();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Bh)),Bh.exports}function Kh(){return $h||($h=1,function(e){var t=Yh();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Vh)),Vh.exports}var Xh,Jh={exports:{}};function Zh(){return Xh||(Xh=1,function(e){var t=Us();e.exports=function(e,n){if(null==e)return{};var r,i,o=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Jh)),Jh.exports}var Qh,em={};var tm,nm={};var rm,im={},om={};var am,sm={};var lm,um={};var cm,dm={};var pm,fm={};var hm,mm={};var gm,vm={};var ym,bm,xm={};function Sm(){if(bm)return im;bm=1;var e=Za;Object.defineProperty(im,"__esModule",{value:!0}),im.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,R=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,P=e.type,M=void 0===P?"light":P,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,n.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 j=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",i,O),m(e,"dark",o,O),e.contrastText||(e.contrastText=T(e.main)),e},N={dark:h,light:f},_=(0,r.deepmerge)((0,t.default)({common:i.default,type:M,primary:j(v),secondary:j(b,"A400","A200","A700"),error:j(S),warning:j(C),info:j(I),success:j(R),grey:o.default,contrastThreshold:A,getContrastText:T,augmentColor:j,tonalOffset:O},N[M]),q);return _},im.dark=im.light=void 0;var t=e(Vs()),n=e(Zh()),r=Mh,i=e(function(){if(rm)return om;rm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={black:"#000",white:"#fff"};return om.default=e,om}()),o=e(function(){if(am)return sm;am=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.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 sm.default=e,sm}()),a=e(function(){if(lm)return um;lm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.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 um.default=e,um}()),s=e(function(){if(cm)return dm;cm=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.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 dm.default=e,dm}()),l=e(function(){if(pm)return fm;pm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.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 fm.default=e,fm}()),u=e(function(){if(hm)return mm;hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.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 mm.default=e,mm}()),c=e(function(){if(gm)return vm;gm=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.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 vm.default=e,vm}()),d=e(function(){if(ym)return xm;ym=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.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 xm.default=e,xm}()),p=Ff,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:i.default.white,default:o.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}};im.light=f;var h={text:{primary:i.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:o.default[800],default:"#303030"},action:{active:i.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,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,i):"dark"===t&&(e.dark=(0,p.darken)(e.main,o)))}return im.dark=h,im}var wm,Cm={};var Em,Im={};var Dm,Rm={};var Pm={};function Mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lm(e,t){if(e){if("string"==typeof e)return Mm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mm(e,t):void 0}}function Am(e){return function(e){if(Array.isArray(e))return Mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lm(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 km(e,t){return t?$f(e,t,{clone:!1}):e}var Om={xs:0,sm:600,md:960,lg:1280,xl:1920},qm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Om[e],"px)")}};function Tm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||qm;return t.reduce(function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e},{})}if("object"===Ua(t)){var i=e.theme.breakpoints||qm;return Object.keys(t).reduce(function(e,r){return e[i.up(r)]=n(t[r]),e},{})}return n(t)}function jm(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Nm(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=jm(e.theme,i)||{};return Tm(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=jm(a,e)||e,o&&(t=o(t))),!1===r?t:function(e,t,n){return(t=Ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function _m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?km(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function Fm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var zm=Nm({prop:"border",themeKey:"borders",transform:Fm}),Wm=Nm({prop:"borderTop",themeKey:"borders",transform:Fm}),$m=Nm({prop:"borderRight",themeKey:"borders",transform:Fm}),Hm=Nm({prop:"borderBottom",themeKey:"borders",transform:Fm}),Vm=Nm({prop:"borderLeft",themeKey:"borders",transform:Fm}),Bm=Nm({prop:"borderColor",themeKey:"palette"}),Gm=Nm({prop:"borderRadius",themeKey:"shape"}),Um=_m(zm,Wm,$m,Hm,Vm,Bm,Gm);function Ym(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function Km(e){var t=function(t){var n=e(t);return t.css?ke({},km(n,e(ke({theme:t.theme},t.css))),Ym(t.css,[e.filterProps])):t.sx?ke({},km(n,e(ke({theme:t.theme},t.sx))),Ym(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Am(e.filterProps)),t}var Xm=_m(Nm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Nm({prop:"display"}),Nm({prop:"overflow"}),Nm({prop:"textOverflow"}),Nm({prop:"visibility"}),Nm({prop:"whiteSpace"})),Jm=Nm({prop:"flexBasis"}),Zm=Nm({prop:"flexDirection"}),Qm=Nm({prop:"flexWrap"}),eg=Nm({prop:"justifyContent"}),tg=Nm({prop:"alignItems"}),ng=Nm({prop:"alignContent"}),rg=Nm({prop:"order"}),ig=Nm({prop:"flex"}),og=Nm({prop:"flexGrow"}),ag=Nm({prop:"flexShrink"}),sg=Nm({prop:"alignSelf"}),lg=Nm({prop:"justifyItems"}),ug=Nm({prop:"justifySelf"}),cg=_m(Jm,Zm,Qm,eg,tg,ng,rg,ig,og,ag,sg,lg,ug),dg=Nm({prop:"gridGap"}),pg=Nm({prop:"gridColumnGap"}),fg=Nm({prop:"gridRowGap"}),hg=Nm({prop:"gridColumn"}),mg=Nm({prop:"gridRow"}),gg=Nm({prop:"gridAutoFlow"}),vg=Nm({prop:"gridAutoColumns"}),yg=Nm({prop:"gridAutoRows"}),bg=Nm({prop:"gridTemplateColumns"}),xg=Nm({prop:"gridTemplateRows"}),Sg=Nm({prop:"gridTemplateAreas"}),wg=Nm({prop:"gridArea"}),Cg=_m(dg,pg,fg,hg,mg,gg,vg,yg,bg,xg,Sg,wg),Eg=Nm({prop:"color",themeKey:"palette"}),Ig=Nm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Dg=_m(Eg,Ig),Rg=Nm({prop:"position"}),Pg=Nm({prop:"zIndex",themeKey:"zIndex"}),Mg=Nm({prop:"top"}),Lg=Nm({prop:"right"}),Ag=Nm({prop:"bottom"}),kg=Nm({prop:"left"}),Og=_m(Rg,Pg,Mg,Lg,Ag,kg),qg=Nm({prop:"boxShadow",themeKey:"shadows"});function Tg(e){return e<=1?"".concat(100*e,"%"):e}var jg=Nm({prop:"width",transform:Tg}),Ng=Nm({prop:"maxWidth",transform:Tg}),_g=Nm({prop:"minWidth",transform:Tg}),Fg=Nm({prop:"height",transform:Tg}),zg=Nm({prop:"maxHeight",transform:Tg}),Wg=Nm({prop:"minHeight",transform:Tg}),$g=Nm({prop:"size",cssProperty:"width",transform:Tg}),Hg=Nm({prop:"size",cssProperty:"height",transform:Tg}),Vg=Nm({prop:"boxSizing"}),Bg=_m(jg,Ng,_g,Fg,zg,Wg,Vg);function Gg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Lm(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 Ug={m:"margin",p:"padding"},Yg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xg=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!Kg[e])return[e];e=Kg[e]}var t=Gg(e.split(""),2),n=t[0],r=t[1],i=Ug[n],o=Yg[r]||"";return Array.isArray(o)?o.map(function(e){return i+e}):[i+o]}),Jg=["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 Qg(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function ev(e){var t=Zg(e.theme);return Object.keys(e).map(function(n){if(-1===Jg.indexOf(n))return null;var r=Qg(Xg(n),t),i=e[n];return Tm(e,i,r)}).reduce(km,{})}ev.propTypes={},ev.filterProps=Jg;var tv,nv=Nm({prop:"fontFamily",themeKey:"typography"}),rv=Nm({prop:"fontSize",themeKey:"typography"}),iv=Nm({prop:"fontStyle",themeKey:"typography"}),ov=Nm({prop:"fontWeight",themeKey:"typography"}),av=Nm({prop:"letterSpacing"}),sv=Nm({prop:"lineHeight"}),lv=Nm({prop:"textAlign"}),uv=_m(nv,rv,iv,ov,av,sv,lv),cv=Object.freeze({__proto__:null,alignContent:ng,alignItems:tg,alignSelf:sg,bgcolor:Ig,border:zm,borderBottom:Hm,borderColor:Bm,borderLeft:Vm,borderRadius:Gm,borderRight:$m,borderTop:Wm,borders:Um,bottom:Ag,boxSizing:Vg,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||qm,i=r.keys.reduce(function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e(ke({theme:t.theme},t[i]))),n},null);return km(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Am(e.filterProps)),t},color:Eg,compose:_m,createUnarySpacing:Zg,css:function(e){return Km(e)},display:Xm,flex:ig,flexBasis:Jm,flexDirection:Zm,flexGrow:og,flexShrink:ag,flexWrap:Qm,flexbox:cg,fontFamily:nv,fontSize:rv,fontStyle:iv,fontWeight:ov,grid:Cg,gridArea:wg,gridAutoColumns:vg,gridAutoFlow:gg,gridAutoRows:yg,gridColumn:hg,gridColumnGap:pg,gridGap:dg,gridRow:mg,gridRowGap:fg,gridTemplateAreas:Sg,gridTemplateColumns:bg,gridTemplateRows:xg,height:Fg,justifyContent:eg,justifyItems:lg,justifySelf:ug,left:kg,letterSpacing:av,lineHeight:sv,maxHeight:zg,maxWidth:Ng,minHeight:Wg,minWidth:_g,order:rg,palette:Dg,position:Rg,positions:Og,right:Lg,shadows:qg,sizeHeight:Hg,sizeWidth:$g,sizing:Bg,spacing:ev,style:Nm,styleFunctionSx:Km,textAlign:lv,top:Mg,typography:uv,width:jg,zIndex:Pg}),dv=Or(cv);var pv,fv={};function hv(){if(pv)return fv;pv=1;var e=Za;Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=fv.duration=fv.easing=void 0;var t=e(Zh()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};fv.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}fv.duration=r;var o={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?r.standard:a,l=o.easing,u=void 0===l?n.easeInOut:l,c=o.delay,d=void 0===c?0:c;return(0,t.default)(o,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(u," ").concat("string"==typeof d?d:i(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 fv.default=o,fv}var mv,gv,vv={};function yv(){if(gv)return Hh;gv=1;var e=Za;Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.createMuiTheme=function(){return p.apply(void 0,arguments)},Hh.default=void 0,e(Kh());var t=e(Zh()),n=Mh,r=e(function(){if(Qh)return em;Qh=1;var e=Za;Object.defineProperty(em,"__esModule",{value:!0}),em.default=function(e){var i=e.values,o=void 0===i?{xs:0,sm:600,md:960,lg:1280,xl:1920}:i,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof o[e]?o[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof o[e]?o[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof o[r[n+1]]?o[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:o,up:d,down:function(e){var t=r.indexOf(e)+1,n=o[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return o[e]}},c)},em.keys=void 0;var t=e(Vs()),n=e(Zh()),r=["xs","sm","md","lg","xl"];return em.keys=r,em}()),i=e(function(){if(tm)return nm;tm=1;var e=Za;Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=function(e,r,i){var o;return(0,n.default)({gutters:function(){var i=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,n.default)({paddingLeft:r(2),paddingRight:r(2)},i,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},i[e.up("sm")])))},toolbar:(o={minHeight:56},(0,t.default)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(o,e.up("sm"),{minHeight:64}),o)},i)};var t=e(Kh()),n=e(Vs());return nm}()),o=e(Sm()),a=e(function(){if(wm)return Cm;wm=1;var e=Za;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,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,P=I||function(e){return"".concat(e/C*R,"rem")},M=function(e,n,r,o,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(n),lineHeight:r},d===s?{letterSpacing:"".concat(i(o/n),"em")}:{},a,E)},L={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(v,48,1.167,0),h4:M(v,34,1.235,.25),h5:M(v,24,1.334,0),h6:M(b,20,1.6,.15),subtitle1:M(v,16,1.75,.15),subtitle2:M(b,14,1.57,.1),body1:M(v,16,1.5,.15),body2:M(v,14,1.43,.15),button:M(b,14,1.75,.4,a),caption:M(v,12,1.66,.4),overline:M(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:o,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Vs()),n=e(Zh()),r=Mh;function i(e){return Math.round(1e5*e)/1e5}function o(e){return i(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Cm}()),s=e(function(){if(Em)return Im;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(",")}Em=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.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 Im.default=t,Im}()),l=e(function(){if(Dm)return Rm;Dm=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=void 0;var e={borderRadius:4};return Rm.default=e,Rm}()),u=e(function(){if(tv)return Pm;tv=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=dv;return Pm}()),c=e(hv()),d=e(function(){if(mv)return vv;mv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return vv.default=e,vv}());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,o.default)(v),C=(0,r.default)(f),E=(0,u.default)(y),I=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,i.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,R=new Array(D>1?D-1:0),P=1;P<D;P++)R[P-1]=arguments[P];return I=R.reduce(function(e,t){return(0,n.deepmerge)(e,t)},I)}var f=p;return Hh.default=f,Hh}var bv,xv={};var Sv={},wv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Cv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ev(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Cv.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[wv]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Iv(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Dv="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},Rv="object"===("undefined"==typeof window?"undefined":Dv(window))&&"object"===("undefined"==typeof document?"undefined":Dv(document))&&9===document.nodeType;function Pv(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ya(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Mv={}.constructor;function Lv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Lv);if(e.constructor!==Mv)return e;var t={};for(var n in e)t[n]=Lv(e[n]);return t}function Av(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Lv(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var kv=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ov=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=kv(e[n]," ");else t=kv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Tv(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function jv(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=qv(n),l=s.linebreak,u=s.space;if(e&&o++,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&&(r&&(r+=l),r+=Tv(p+":"+u+Ov(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Tv(h+":"+u+Ov(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Tv(g+":"+u+Ov(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Tv(""+e+u+"{"+r,--o)+Tv("}",o)):r}var Nv=/([[\].#*$><+~=|^:(),"'`\s])/g,_v="undefined"!=typeof CSS&&CSS.escape,Fv=function(e){return _v?_v(e):e.replace(Nv,"\\$1")},zv=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Wv=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l($l($l(i)),s),i.selectorText="."+Fv(i.id)),i}kl(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ov(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return jv(this.selectorText,this.style,n)},Pv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(zv),$v={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Wv(e,t,n)}},Hv={indent:1,children:!0},Vv=/@([\w-]+)/,Bv=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Vv);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(i,t[i]);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,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Hv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Hv.indent),null==e.children&&(e.children=Hv.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Gv=/@container|@media|@supports\s+/,Uv={onCreateRule:function(e,t,n){return Gv.test(e)?new Bv(e,t,n):null}},Yv={indent:1,children:!0},Kv=/@keyframes\s+([\w-]+)/,Xv=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Kv);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Fv(a(this,o)),this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(s,t[s],ke({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Yv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Yv.indent),null==e.children&&(e.children=Yv.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Jv=/@keyframes\s+/,Zv=/\$([\w-]+)/g,Qv=function(e,t){return"string"==typeof e?e.replace(Zv,function(e,n){return n in t?t[n]:e}):e},ey=function(e,t,n){var r=e[t],i=Qv(r,n);i!==r&&(e[t]=i)},ty={onCreateRule:function(e,t,n){return"string"==typeof e&&Jv.test(e)?new Xv(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ey(e,"animation-name",n.keyframes),"animation"in e&&ey(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Qv(e,r.keyframes);default:return e}}},ny=function(e){function t(){return e.apply(this,arguments)||this}return kl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return jv(this.key,this.style,n)},t}(zv),ry={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ny(e,t,n):null}},iy=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qv(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=jv(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return jv(this.at,this.style,e)},e}(),oy=/@font-face/,ay={onCreateRule:function(e,t,n){return oy.test(e)?new iy(e,t,n):null}},sy=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return jv(this.key,this.style,e)},e}(),ly={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new sy(e,t,n):null}},uy=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),cy={"@charset":!0,"@import":!0,"@namespace":!0},dy={onCreateRule:function(e,t,n){return e in cy?new uy(e,t,n):null}},py=[$v,Uv,ty,ry,ay,ly,dy],fy={process:!0},hy={force:!0,process:!0},my=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,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=ke({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Fv(this.classes[d]));var p=Av(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,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=ke({},n,{index:i})),this.add(e,t,o)},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 Wv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Xv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Wv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Xv&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;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],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=fy);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,hy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,hy)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=qv(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),gy=function(){function e(e,t){for(var n 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 my(this.options),e)this.rules.add(n,e[n]);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,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},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,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),vy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),yy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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,n=t.attached,r=Oe(t,["attached"]),i=qv(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},Pv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),by=new yy,xy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Sy="2f1acc6c3a606b082e5eef5e54414ffb";null==xy[Sy]&&(xy[Sy]=0);var wy=xy[Sy]++,Cy=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+wy+i+t:o+n.key+"-"+wy+(i?"-"+i:"")+"-"+t}},Ey=function(e){var t;return function(){return t||(t=e()),t}},Iy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Dy=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ov(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ry=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Py=function(e,t){return e.selectorText=t,e.selectorText===t},My=Ey(function(){return document.querySelector("head")});function Ly(e){var t=by.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=My(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Ay=Ey(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ky=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Oy=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qy=function(){function e(e){this.getPropertyValue=Iy,this.setProperty=Dy,this.removeProperty=Ry,this.setSelector=Py,this.hasInsertedRules=!1,this.cssRules=[],e&&by.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ay();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ly(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else My().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 n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Oy(n,t);if(!1===(i=ky(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Oy(n,t),l=ky(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof gy&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ty=0,jy=function(){function e(e){this.id=Ty++,this.version="10.10.0",this.plugins=new vy,this.options={id:{minify:!1},createGenerateId:Cy,Renderer:Rv?qy:null,plugins:[]},this.generateId=Cy({minify:!1});for(var t=0;t<py.length;t++)this.plugins.use(py[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 n=t.index;"number"!=typeof n&&(n=0===by.index?0:by.index+1);var r=new gy(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),by.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=ke({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Av(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ny=function(e){return new jy(e)},_y="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Fy(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Fy(r);o&&(t||(t={}),t[n]=o)}}return t}
88
+ `),eu.rippleVisible,su,550,({theme:e})=>e.transitions.easing.easeInOut,eu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,eu.child,eu.childLeaving,lu,550,({theme:e})=>e.transitions.easing.easeInOut,eu.childPulsate,uu,({theme:e})=>e.transitions.easing.easeInOut),pu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,s=Oe(n,tu),[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=ga(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,fo.jsx(du,{classes:{ripple:wo(o.ripple,eu.ripple),rippleVisible:wo(o.rippleVisible,eu.rippleVisible),ripplePulsate:wo(o.ripplePulsate,eu.ripplePulsate),child:wo(o.child,eu.child),childLeaving:wo(o.childLeaving,eu.childLeaving),childPulsate:wo(o.childPulsate,eu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=i.useCallback((e={},t={},n=()=>{})=>{const{pulsate:i=!1,center:o=r||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(o||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)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:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:i,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[r,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]),fo.jsx(cu,ke({className:wo(eu.root,o.root,a),ref:m},s,{children:fo.jsx(Ul,{component:null,exit:!0,children:l})}))});function fu(e){return Io("MuiButtonBase",e)}const hu=Do("MuiButtonBase",["root","disabled","focusVisible"]),mu=["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"],gu=Sl("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"},[`&.${hu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiButtonBase"}),{action:r,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:R,tabIndex:P=0,TouchRippleProps:M,touchRippleRef:L,type:A}=n,k=Oe(n,mu),O=i.useRef(null),q=i.useRef(null),T=pa(q,L),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:F}=Ia(),[z,W]=i.useState(!1);u&&z&&W(!1),i.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),O.current.focus()}}),[]);const[$,H]=i.useState(!1);i.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,n=d){return da(r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!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",R),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{_(e),!1===N.current&&W(!1),h&&h(e)},!1),te=da(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&(W(!0),b&&b(e)),y&&y(e)}),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=i.useRef(!1),ie=da(e=>{p&&!re.current&&z&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,()=>{q.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),oe=da(e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,()=>{q.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===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=pa(t,F,O),ue=ke({},n,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Ra({root:["root",t&&"disabled",n&&"focusVisible"]},fu,i);return n&&r&&(o.root+=` ${r}`),o})(ue);return fo.jsxs(gu,ke({as:ae,className:wo(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:P,type:A},se,k,{children:[a,V?fo.jsx(pu,ke({ref:T,center:o},M)):null]}))});function yu(e){return Io("MuiTypography",e)}Do("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xu=Sl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ni(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.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})),Su={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cu=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiTypography"}),r=(e=>wu[e]||e)(n.color),i=vo(ke({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Su}=i,f=Oe(i,bu),h=ke({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Su[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ra({root:["root",o,"inherit"!==e.align&&`align${ni(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},yu,a)})(h);return fo.jsx(xu,ke({as:m,ref:t,ownerState:h,className:wo(g.root,a)},f))});const Eu=i.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=pa(i.isValidElement(n)?Oa(n):null,t);if(Jo(()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Jo(()=>{if(a&&!o)return aa(t,a),()=>{aa(t,null)}},[t,a,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return fo.jsx(i.Fragment,{children:n})}return fo.jsx(i.Fragment,{children:a?I.createPortal(n,a):a})}),Iu=["onChange","maxRows","minRows","style","value"];function Du(e){return parseInt(e,10)||0}const Ru={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 Mu=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s}=e,l=Oe(e,Iu),{current:u}=i.useRef(null!=s),c=i.useRef(null),d=pa(t,c),p=i.useRef(null),f=i.useRef(null),h=i.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=oa(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Du(i.paddingBottom)+Du(i.paddingTop),l=Du(i.borderBottomWidth)+Du(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),m=da(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=i.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Pu(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=i.useRef(-1);Jo(()=>{const e=ra(g),t=null==c?void 0:c.current;if(!t)return;const n=oa(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),Jo(()=>{g()});return fo.jsxs(i.Fragment,{children:[fo.jsx("textarea",ke({value:s,onChange:e=>{u||g(),n&&n(e)},ref:d,rows:o,style:a},l)),fo.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},Ru,a,{paddingTop:0,paddingBottom:0})})]})});function Lu({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Au=i.createContext(void 0);function ku(){return i.useContext(Au)}function Ou(e){return fo.jsx(mo,ke({},e,{defaultTheme:Fs,themeId:Ae}))}function qu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Tu(e,t=!1){return e&&(qu(e.value)&&""!==e.value||t&&qu(e.defaultValue)&&""!==e.defaultValue)}function Nu(e){return Io("MuiInputBase",e)}const ju=Do("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_u=["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"],Fu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ni(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zu=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Wu=Sl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Fu})(({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",[`&.${ju.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%"})),$u=Sl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ju.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ju.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"})}),Hu=fo.jsx(Ou,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Vu=i.forwardRef(function(e,t){var n;const r=Il({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:R,onKeyDown:P,onKeyUp:M,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:N,type:j="text",value:_}=r,F=Oe(r,_u),z=null!=y.value?y.value:_,{current:W}=i.useRef(null!=z),$=i.useRef(),H=i.useCallback(e=>{},[]),V=pa($,b,y.ref,H),[B,G]=i.useState(!1),U=ku(),Y=Lu({props:r,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=>{Tu(e)?K&&K():X&&X()},[K,X]);Jo(()=>{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=Mu);i.useEffect(()=>{U&&U.setAdornedStart(Boolean(N))},[U,N]);const ee=ke({},r,{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:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Ra({root:["root",`color${ni(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ni(p)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Nu,t)})(ee),ne=T.root||u.Root||Wu,re=q.root||c.root||{},ie=T.input||u.Input||$u;return Q=ke({},Q,null!=(n=q.input)?n:c.input),fo.jsxs(i.Fragment,{children:[!f&&Hu,fo.jsxs(ne,ke({},re,!Pa(ne)&&{ownerState:ke({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:wo(te.root,re.className,l,A&&"MuiInputBase-readOnly"),children:[N,fo.jsx(Au.Provider,{value:null,children:fo.jsx(ie,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:P,onKeyUp:M,type:j},Q,!Pa(ie)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:wo(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():(R&&R(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:N})):null]}))]})});function Bu(e){return Io("MuiInput",e)}const Gu=ke({},ju,Do("MuiInput",["root","underline","input"]));function Uu(e){return Io("MuiOutlinedInput",e)}const Yu=ke({},ju,Do("MuiOutlinedInput",["root","notchedOutline","input"]));function Ku(e){return Io("MuiFilledInput",e)}const Xu=ke({},ju,Do("MuiFilledInput",["root","underline","input"]));var Ju=Ll(fo.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Zu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qu={entering:{opacity:1},entered:{opacity:1}},ec=i.forwardRef(function(e,t){const n=zs(),r={enter:n.transitions.duration.enteringScreen,exit:n.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=r,TransitionComponent:y=zl}=e,b=Oe(e,Zu),x=i.useRef(null),S=pa(x,Oa(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(p),E=w((e,t)=>{Yl(e);const r=Kl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),I=w(d),D=w(m),R=w(e=>{const t=Kl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),P=w(h);return fo.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:R,onExited:P,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"},Qu[e],g,s.props.style),ref:S},t))}))});function tc(e){return Io("MuiBackdrop",e)}Do("MuiBackdrop",["root","invisible"]);const nc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rc=Sl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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"})),ic=i.forwardRef(function(e,t){var n,r,i;const o=Il({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=ec,transitionDuration:g}=o,v=Oe(o,nc),y=ke({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Ra({root:["root",n&&"invisible"]},tc,t)})(y),x=null!=(n=f.root)?n:c.root;return fo.jsx(m,ke({in:p,timeout:g},v,{children:fo.jsx(rc,ke({"aria-hidden":!0},x,{as:null!=(r=null!=(i=h.root)?i:u.Root)?r:l,className:wo(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),oc=Do("MuiBox",["root"]),ac=_s(),sc=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=zr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ki);return i.forwardRef(function(e,i){const s=no(n),l=vo(e),{className:u,component:c="div"}=l,d=Oe(l,Co);return fo.jsx(a,ke({as:c,ref:i,className:wo(u,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Ae,defaultTheme:ac,defaultClassName:oc.root,generateClassName:xo.generate});function lc(e){return Io("MuiButton",e)}const uc=Do("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"]),cc=i.createContext({}),dc=i.createContext(void 0),pc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fc=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}}),hc=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ni(n.color)}`],t[`size${ni(n.size)}`],t[`${n.variant}Size${ni(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="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})`:ns(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})`:ns(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})`:ns(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:o,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]}),[`&.${uc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${uc.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 ${ns(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,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"},[`&.${uc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uc.disabled}`]:{boxShadow:"none"}}),mc=Sl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},fc(e))),gc=Sl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ni(n.size)}`]]}})(({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},fc(e))),vc=i.forwardRef(function(e,t){const n=i.useContext(cc),r=i.useContext(dc),o=Il({props:Xo(n,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,pc),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:n,fullWidth:r,size:i,variant:o,classes:a}=e;return ke({},a,Ra({root:["root",o,`${o}${ni(t)}`,`size${ni(i)}`,`${o}Size${ni(i)}`,`color${ni(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ni(i)}`],endIcon:["icon","endIcon",`iconSize${ni(i)}`]},lc,a))})(S),C=v&&fo.jsx(mc,{className:w.startIcon,ownerState:S,children:v}),E=f&&fo.jsx(gc,{className:w.endIcon,ownerState:S,children:f}),I=r||"";return fo.jsxs(hc,ke({ownerState:S,className:wo(n.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:wo(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function yc(e){return Io("PrivateSwitchBase",e)}Do("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xc=Sl(vu,{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})),Sc=Sl("input",{name:"MuiSwitchBase",shouldForwardProp:xl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wc=i.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,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,bc),[E,I]=ca({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=ku();let R=s;D&&void 0===R&&(R=D.disabled);const P="checkbox"===S||"radio"===S,M=ke({},e,{checked:E,disabled:R,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ra({root:["root",n&&"checked",r&&"disabled",i&&`edge${ni(i)}`],input:["input"]},yc,t)})(M);return fo.jsxs(xc,ke({component:"span",className:wo(L.root,o),centerRipple:!0,focusRipple:!l,disabled:R,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:M,ref:t},C,{children:[fo.jsx(Sc,ke({autoFocus:n,checked:r,defaultChecked:a,className:L.input,disabled:R,id:P?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?i:c]}))});var Cc=Ll(fo.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"),Ec=Ll(fo.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"),Ic=Ll(fo.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 Io("MuiCheckbox",e)}const Rc=Do("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Pc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Mc=Sl(wc,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ni(n.size)}`],"default"!==n.color&&t[`color${ni(n.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})`:ns("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rc.checked}, &.${Rc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Lc=fo.jsx(Ec,{}),Ac=fo.jsx(Cc,{}),kc=fo.jsx(Ic,{}),Oc=i.forwardRef(function(e,t){var n,r;const o=Il({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Lc,color:s="primary",icon:l=Ac,indeterminate:u=!1,indeterminateIcon:c=kc,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,Pc),m=u?c:l,g=u?c:a,v=ke({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e;return ke({},t,Ra({root:["root",n&&"indeterminate",`color${ni(r)}`,`size${ni(i)}`]},Dc,t))})(v);return fo.jsx(Mc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:i.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:wo(y.root,f)},h,{classes:y}))});function qc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tc(e){return parseInt(oa(e).getComputedStyle(e).paddingRight,10)||0}function Nc(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&qc(e,i)})}function jc(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function _c(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ia(e);return t.body===e?oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Da(ia(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Tc(r)+e}px`;const t=ia(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ia(r).body;else{const t=r.parentElement,n=oa(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Fc)).forEach((e,r)=>{const i=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!==i&&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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Wc(){return!0}function $c(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=zc,isEnabled:s=Wc,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=pa(Oa(t),m),v=i.useRef(null);i.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),i.useEffect(()=>{if(!l||!m.current)return;const e=ia(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=ia(m.current),t=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{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(r&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var i,o;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return fo.jsxs(i.Fragment,{children:[fo.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 n=t.props.onFocus;n&&n(e)}}),fo.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Hc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&qc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Nc(t,e.mount,e.modalRef,r,!0);const i=jc(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=jc(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=_c(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=jc(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&qc(e.modalRef,t),Nc(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&qc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Hc,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=pa(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:r}),m.current&&(m.current.scrollTop=0)},C=da(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ia(h.current).body;o.add(S(),e),m.current&&w()}),E=i.useCallback(()=>o.isTopModal(S()),[o]),I=da(e=>{h.current=e,e&&(d&&E()?w():m.current&&qc(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 R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ma(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=ke({},n,t);return ke({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:P(e),open:d}),getTransitionProps:()=>({onEnter:na(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:na(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function Bc(e){return Io("MuiModal",e)}Do("MuiModal",["root","hidden","backdrop"]);const Gc=["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"],Uc=Sl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.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"})),Yc=Sl(ic,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kc=i.forwardRef(function(e,t){var n,r,o,a,s,l;const u=Il({name:"MuiModal",props:e}),{BackdropComponent:c=Yc,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:R,open:P,slotProps:M,slots:L}=u,A=Oe(u,Gc),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:N,isTopModal:j,exited:_,hasTransition:F}=Vc(ke({},k,{rootRef:t})),z=ke({},k,{exited:_}),W=(e=>{const{open:t,exited:n,classes:r}=e;return Ra({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bc,r)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==L?void 0:L.root)?r:v.Root)?n:Uc,V=null!=(o=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?o:c,B=null!=(s=null==M?void 0:M.root)?s:y.root,G=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,U=ka({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:wo(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=ka({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wo(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||P||F&&!_?fo.jsx(Eu,{ref:N,container:m,disablePortal:w,children:fo.jsxs(H,ke({},U,{children:[!I&&c?fo.jsx(V,ke({},Y)):null,fo.jsx($c,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:P,children:i.cloneElement(h,$)})]}))}):null});function Xc(e){return Io("MuiDivider",e)}const Jc=Do("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Zc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Qc=Sl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.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)`:ns(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%"}})),ed=Sl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.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)`})),td=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Oe(n,Zc),h=ke({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ra({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Xc,r)})(h);return fo.jsx(Qc,ke({as:a,className:wo(m.root,o),role:c,ref:t,ownerState:h},f,{children:i?fo.jsx(ed,{className:m.wrapper,ownerState:h,children:i}):null}))});td.muiSkipListHighlight=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],rd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:o}},[`&.${Xu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Xu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${Xu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xu.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})`:i}`,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(.${Xu.disabled}, .${Xu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xu.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}))}),id=Sl($u,{name:"MuiFilledInput",slot:"Input",overridesResolver:zu})(({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})),od=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({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,nd),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Ku,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Gr(y,null!=p?p:l):y,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:rd,S=null!=(i=null!=(o=f.input)?o:s.Input)?i:id;return fo.jsx(Vu,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});od.muiName="Input";const ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sd(e){return`scale(${e}, ${e**2})`}const ld={entering:{opacity:1,transform:sd(1)},entered:{opacity:1,transform:"none"}},ud="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),cd=i.forwardRef(function(e,t){const{addEndListener:n,appear:r=!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=zl}=e,v=Oe(e,ad),y=ga(),b=i.useRef(),x=zs(),S=i.useRef(null),w=pa(S,Oa(o),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(c),I=C((e,t)=>{Yl(e);const{duration:n,delay:r,easing:i}=Kl({style:h,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ud?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),D=C(u),R=C(f),P=C(e=>{const{duration:t,delay:n,easing:r}=Kl({style:h,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:ud?i:.666*i,delay:ud?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=sd(.75),d&&d(e)}),M=C(p);return fo.jsx(g,ke({appear:r,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:P,onExited:M,onExiting:R,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,ke({style:ke({opacity:0,transform:sd(.75),visibility:"exited"!==e||s?void 0:"hidden"},ld[e],h,o.props.style),ref:w},t))}))});cd.muiSupportAuto=!0;const dd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pd=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Fu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`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"},[`&.${Gu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Gu.disabled}, .${Gu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Gu.disabled}:before`]:{borderBottomStyle:"dotted"}})}),fd=Sl($u,{name:"MuiInput",slot:"Input",overridesResolver:zu})({}),hd=i.forwardRef(function(e,t){var n,r,i,o;const a=Il({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,dd),v=(e=>{const{classes:t,disableUnderline:n}=e;return ke({},t,Ra({root:["root",!n&&"underline"],input:["input"]},Bu,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Gr(null!=f?f:u,y):y,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:pd,S=null!=(i=null!=(o=h.input)?o:l.Input)?i:fd;return fo.jsx(Vu,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function md(e){return Io("MuiInputAdornment",e)}hd.muiName="Input";const gd=Do("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vd;const yd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],bd=Sl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ni(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.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&&{[`&.${gd.positionStart}&:not(.${gd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),xd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,d=Oe(n,yd),p=ku()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return Ra({root:["root",n&&"disablePointerEvents",i&&`position${ni(i)}`,a,r&&"hiddenLabel",o&&`size${ni(o)}`]},md,t)})(h);return fo.jsx(Au.Provider,{value:null,children:fo.jsx(bd,ke({as:a,ownerState:h,className:wo(m.root,o),ref:t},d,{children:"string"!=typeof r||l?fo.jsxs(i.Fragment,{children:["start"===u?vd||(vd=fo.jsx("span",{className:"notranslate",children:"​"})):null,r]}):fo.jsx(Cu,{color:"text.secondary",children:r})}))})});function Sd(e){return Io("MuiLink",e)}const wd=Do("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ed=({theme:e,ownerState:t})=>{const n=(e=>Cd[e]||e)(t.color),r=ii(e,`palette.${n}`,!1)||t.color,i=ii(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:ns(r,.4)},Id=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Dd=Sl(Cu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ni(n.underline)}`],"button"===n.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:Ed({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"},[`&.${wd.focusVisible}`]:{outline:"auto"}})),Rd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Oe(n,Id),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=Ia(),[y,b]=i.useState(!1),x=pa(t,v),S=ke({},n,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ra({root:["root",`underline${ni(i)}`,"button"===n&&"button",r&&"focusVisible"]},Sd,t)})(S);return fo.jsx(Dd,ke({color:o,className:wo(w.root,r),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(Cd).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),Pd=i.createContext({});function Md(e){return Io("MuiList",e)}Do("MuiList",["root","padding","dense","subheader"]);const Ld=["children","className","component","dense","disablePadding","subheader"],Ad=Sl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Oe(n,Ld),d=i.useMemo(()=>({dense:s}),[s]),p=ke({},n,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ra({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Md,t)})(p);return fo.jsx(Pd.Provider,{value:d,children:fo.jsxs(Ad,ke({as:a,className:wo(f.root,o),ref:t,ownerState:p},c,{children:[u,r]}))})});function Od(e){return Io("MuiListItem",e)}const qd=Do("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Td=Do("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Nd(e){return Io("MuiListItemSecondaryAction",e)}Do("MuiListItemSecondaryAction",["root","disableGutters"]);const jd=["className"],_d=Sl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Fd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Oe(n,jd),a=ke({},n,{disableGutters:i.useContext(Pd).disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e;return Ra({root:["root",t&&"disableGutters"]},Nd,n)})(a);return fo.jsx(_d,ke({className:wo(s.root,r),ownerState:a,ref:t},o))});Fd.muiName="ListItemSecondaryAction";const zd=["className"],Wd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],$d=Sl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.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&&{[`& > .${Td.root}`]:{paddingRight:48}},{[`&.${qd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qd.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"}},[`&.${qd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Hd=Sl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItem"}),{alignItems:r="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={}}=n,E=Oe(n.ContainerProps,zd),I=Oe(n,Wd),D=i.useContext(Pd),R=i.useMemo(()=>({dense:h||D.dense||!1,alignItems:r,disableGutters:g}),[r,D.dense,h,g]),P=i.useRef(null);Jo(()=>{o&&P.current&&P.current.focus()},[o]);const M=i.Children.toArray(s),L=M.length&&(A=M[M.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({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ra({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Od,r)})(T),j=pa(P,t),_=C.root||c.Root||$d,F=w.root||d.root||{},z=ke({className:wo(N.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=wo(qd.focusVisible,b),W=vu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(Hd,ke({as:p,className:wo(N.container,f),ref:j,ownerState:T},E,{children:[fo.jsx(_,ke({},F,!Pa(_)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:M})),M.pop()]}))})):fo.jsx(Pd.Provider,{value:R,children:fo.jsxs(_,ke({},F,{as:W,ref:j},!Pa(_)&&{ownerState:ke({},T,F.ownerState)},z,{children:[M,x&&fo.jsx(Fd,{children:x})]}))})});function Bd(e){return Io("MuiListItemIcon",e)}const Gd=Do("MuiListItemIcon",["root","alignItemsFlexStart"]),Ud=["className"],Yd=Sl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.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})),Kd=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Oe(n,Ud),a=ke({},n,{alignItems:i.useContext(Pd).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return Ra({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Bd,n)})(a);return fo.jsx(Yd,ke({className:wo(s.root,r),ownerState:a,ref:t},o))}),Xd=Do("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Jd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Qd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ep(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tp(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ep(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const np=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Jd),f=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jo(()=>{r&&f.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Da(ia(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=pa(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 fo.jsx(kd,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=ia(t).activeElement;if("ArrowDown"===n)e.preventDefault(),tp(t,r,u,l,Zd);else if("ArrowUp"===n)e.preventDefault(),tp(t,r,u,l,Qd);else if("Home"===n)e.preventDefault(),tp(t,null,u,l,Zd);else if("End"===n)e.preventDefault(),tp(t,null,u,l,Qd);else if(1===n.length){const i=h.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&ep(r,i);i.previousKeyMatched&&(s||tp(t,r,!1,l,Zd,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))});function rp(e){return Io("MuiPopover",e)}Do("MuiPopover",["root","paper"]);const ip=["onEntering"],op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ap=["slotProps"];function sp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function up(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function cp(e){return"function"==typeof e?e():e}const dp=Sl(Kc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=Sl(Ql,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fp=i.forwardRef(function(e,t){var n,r,o;const a=Il({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=cd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,ip),R=Oe(a,op),P=null!=(n=null==x?void 0:x.paper)?n:y,M=i.useRef(),L=pa(M,P.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return Ra({root:["root"],paper:["paper"]},rp,t)})(A),O=i.useCallback(()=>{if("anchorPosition"===d)return c;const e=cp(l),t=(e&&1===e.nodeType?e:ia(M.current).body).getBoundingClientRect();return{top:t.top+sp(t,u.vertical),left:t.left+lp(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),q=i.useCallback(e=>({vertical:sp(e,S.vertical),horizontal:lp(e,S.horizontal)}),[S.horizontal,S.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===d)return{top:null,left:null,transformOrigin:up(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,u=oa(cp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:up(n)}},[l,d,O,q,g]),[N,j]=i.useState(v),_=i.useCallback(()=>{const e=M.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",_),()=>window.removeEventListener("scroll",_)),[l,I,_]);i.useEffect(()=>{v&&_()}),i.useImperativeHandle(s,()=>v?{updatePosition:()=>{_()}}:null,[v,_]),i.useEffect(()=>{if(!v)return;const e=ra(()=>{_()}),t=oa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,_]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?ia(cp(l)).body:void 0),W=null!=(r=null==b?void 0:b.root)?r:dp,$=null!=(o=null==b?void 0:b.paper)?o:pp,H=ka({elementType:$,externalSlotProps:ke({},P,{style:N?P.style:ke({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:wo(k.paper,null==P?void 0:P.className)}),V=ka({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:wo(k.root,f)}),{slotProps:B}=V,G=Oe(V,ap);return fo.jsx(W,ke({},G,!Pa(W)&&{slotProps:B,disableScrollLock:I},{children:fo.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:F},D,{children:fo.jsx($,ke({},H,{children:p}))}))}))});function hp(e){return Io("MuiMenu",e)}Do("MuiMenu",["root","paper","list"]);const mp=["onEntering"],gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vp={vertical:"top",horizontal:"right"},yp={vertical:"top",horizontal:"left"},bp=Sl(fp,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xp=Sl(pp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sp=Sl(np,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),wp=i.forwardRef(function(e,t){var n,r;const o=Il({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,mp),S=Oe(o,gp),w=(()=>{const e=i.useContext(Fa);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 Ra({root:["root"],paper:["paper"],list:["list"]},hp,t)})(C),I=a&&!u&&p,D=i.useRef(null);let R=-1;i.Children.map(s,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===R)&&(R=t))});const P=null!=(n=y.paper)?n:xp,M=null!=(r=b.paper)?r:f,L=ka({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=ka({elementType:P,externalSlotProps:M,ownerState:C,className:E.paper});return fo.jsx(bp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?vp:yp,slots:{paper:P,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:fo.jsx(Sp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===R||u),autoFocusItem:I,variant:v},c,{className:wo(E.list,c.className),children:s}))}))});function Cp(e){return Io("MuiMenuItem",e)}const Ep=Do("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ip=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dp=Sl(vu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.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"}},[`&.${Ep.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ep.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ns(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ep.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ns(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})`:ns(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ep.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ep.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jc.inset}`]:{marginLeft:52},[`& .${Xd.root}`]:{marginTop:0,marginBottom:0},[`& .${Xd.inset}`]:{paddingLeft:36},[`& .${Gd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gd.root} svg`]:{fontSize:"1.25rem"}}))),Rp=i.forwardRef(function(e,t){const n=Il({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Oe(n,Ip),h=i.useContext(Pd),m=i.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=i.useRef(null);Jo(()=>{r&&g.current&&g.current.focus()},[r]);const v=ke({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e;return ke({},a,Ra({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Cp,a))})(n),b=pa(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),fo.jsx(Pd.Provider,{value:m,children:fo.jsx(Dp,ke({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:wo(y.focusVisible,u),className:wo(y.root,p)},f,{ownerState:v,classes:y}))})});function Pp(e){return Io("MuiNativeSelect",e)}const Mp=Do("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lp=["className","disabled","error","IconComponent","inputRef","variant"],Ap=({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"},[`&.${Mp.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}}),kp=Sl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xl,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mp.multiple}`]:t.multiple}]}})(Ap),Op=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Mp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),qp=Sl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Tp=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,Lp),c=ke({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"]},Pp,t)})(c);return fo.jsxs(i.Fragment,{children:[fo.jsx(kp,ke({ownerState:c,className:wo(d.select,n),disabled:r,ref:s||t},u)),e.multiple?null:fo.jsx(qp,{as:a,ownerState:c,className:d.icon})]})});var Np;const jp=["children","classes","className","label","notched"],_p=Sl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:xl})({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%"}),Fp=Sl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:xl})(({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 zp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Wp=Sl(Wu,{shouldForwardProp:e=>xl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Fu})(({theme:e,ownerState:t})=>{const n="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 .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Yu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Yu.focused} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Yu.error} .${Yu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Yu.disabled} .${Yu.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"}))}),$p=Sl(function(e){const{className:t,label:n,notched:r}=e,i=Oe(e,jp),o=null!=n&&""!==n,a=ke({},e,{notched:r,withLabel:o});return fo.jsx(_p,ke({"aria-hidden":!0,className:t,ownerState:a},i,{children:fo.jsx(Fp,{ownerState:a,children:o?fo.jsx("span",{children:n}):Np||(Np=fo.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Hp=Sl($u,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zu})(({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})),Vp=i.forwardRef(function(e,t){var n,r,o,a,s;const l=Il({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,zp),y=(e=>{const{classes:t}=e;return ke({},t,Ra({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Uu,t))})(l),b=ku(),x=Lu({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!=(n=null!=(r=m.root)?r:u.Root)?n:Wp,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:Hp;return fo.jsx(Vu,ke({slots:{root:w,input:C},renderSuffix:e=>fo.jsx($p,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=fo.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 Bp(e){return Io("MuiSelect",e)}Vp.muiName="Input";const Gp=Do("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Up;const Yp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Kp=Sl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Gp.select}`]:t.select},{[`&.${Gp.select}`]:t[n.variant]},{[`&.${Gp.error}`]:t.error},{[`&.${Gp.multiple}`]:t.multiple}]}})(Ap,{[`&.${Gp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Xp=Sl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ni(n.variant)}`],n.open&&t.iconOpen]}})(Op),Jp=Sl("input",{shouldForwardProp:e=>bl(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 Zp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Qp(e){return null==e||"string"==typeof e&&!e.trim()}const ef=i.forwardRef(function(e,t){var n;const{"aria-describedby":r,"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:R,renderValue:P,SelectDisplayProps:M={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,Yp),[q,T]=ca({controlled:A,default:d,name:"Select"}),[N,j]=ca({controlled:D,default:c,name:"Select"}),_=i.useRef(null),F=i.useRef(null),[z,W]=i.useState(null),{current:$}=i.useRef(null!=D),[H,V]=i.useState(),B=pa(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:_.current,value:q}),[q]),i.useEffect(()=>{c&&N&&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=ia(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 n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==n&&(T(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:x}}),w(i,e)}b||Y(!1,t)}},J=null!==z&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Tu({value:q})||f)&&(P?Z=P(q):te=!0);const ne=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=>Zp(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Zp(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,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,ie=H;!s&&$&&z&&(ie=U.clientWidth),re=void 0!==L?L:p?null:0;const oe=M.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:n,disabled:r,multiple:i,open:o,error:a}=e;return Ra({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ni(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Bp,t)})(ae),le=ke({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ue=ua();return fo.jsxs(i.Fragment,{children:[fo.jsx(Kp,ke({ref:G,tabIndex:re,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,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||R?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},M,{ownerState:ae,className:wo(M.className,se.select,u),id:oe,children:Qp(Z)?Up||(Up=fo.jsx("span",{className:"notranslate",children:"​"})):Z})),fo.jsx(Jp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:_,"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)),fo.jsx(Xp,{as:m,className:se.icon,ownerState:ae}),fo.jsx(wp,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:ie},null!=le?le.style:null)})}),children:ne}))]})}),tf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],nf=["root"],rf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xl(e)&&"variant"!==e,slot:"Root"},of=Sl(hd,rf)(""),af=Sl(Vp,rf)(""),sf=Sl(od,rf)(""),lf=i.forwardRef(function(e,t){const n=Il({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ju,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"}=n,I=Oe(n,tf),D=y?Tp:ef,R=Lu({props:n,muiFormControl:ku(),states:["variant","error"]}),P=R.variant||E,M=ke({},n,{variant:P,classes:a}),L=(e=>{const{classes:t}=e;return t})(M),A=Oe(L,nf),k=p||{standard:fo.jsx(of,{ownerState:M}),outlined:fo.jsx(af,{label:h,ownerState:M}),filled:fo.jsx(sf,{ownerState:M})}[P],O=pa(t,Oa(k));return fo.jsx(i.Fragment,{children:i.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:o,error:R.error,IconComponent:c,variant:P,type:void 0,multiple:v},y?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?Gr(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===P?{notched:!0}:{},{ref:O,className:wo(k.props.className,s,L.root)},!p&&{variant:P},I))})});lf.muiName="Select";const uf={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"},cf={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",...uf,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)"},df=12,pf=14,ff=16,hf=24,mf=3,gf=300,vf=400,yf=600,bf=700,xf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Sf(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function wf({fontSize:e="medium",children:t=null,className:n=""}={}){return fo.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:n,children:t})}function Cf(e={}){return fo.jsx(wf,{...e,children:fo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[fo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),fo.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 Ef(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[fo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),fo.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 If(e){return fo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fo.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 fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[fo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),fo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Rf(e={}){return fo.jsx(wf,{fontSize:"medium",...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:fo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Pf({className:e}){return fo.jsx(wf,{fontSize:"small",className:e,children:fo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:fo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[fo.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"}),fo.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 Mf(e={}){return fo.jsx(wf,{...e,children:fo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fo.jsx("rect",{stroke:cf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Lf=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:cf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:fo.jsx(Sf,{"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 ${cf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,borderRadius:mf,backgroundColor:cf.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 ${cf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:cf.WHITE,color:cf.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:mf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:cf.GREYSCALE_0_15,backgroundColor:cf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.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:mf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:cf.GREYSCALE_0_42,backgroundColor:cf.GREYSCALE_100_60,"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:cf.PURPLE,"&.Mui-focusVisible":{borderColor:cf.PURPLE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:cf.GREEN,"&.Mui-focusVisible":{borderColor:cf.GREEN,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:cf.BLUE,"&.Mui-focusVisible":{borderColor:cf.BLUE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:cf.ORANGE,"&.Mui-focusVisible":{borderColor:cf.ORANGE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:cf.RED,"&.Mui-focusVisible":{borderColor:cf.RED,boxShadow:`0 0 0 3px ${ta(cf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:cf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:cf.PURPLE_PALE},"&:active":{backgroundColor:cf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:cf.PURPLE_PALE,boxShadow:`0 0 0 3px ${ta(cf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:cf.GREEN_PALE},"&:active":{backgroundColor:cf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:cf.BLUE_PALE},"&:active":{backgroundColor:cf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:cf.ORANGE_PALE},"&:active":{backgroundColor:cf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:cf.ORANGE_PALE,boxShadow:`0 0 0 3px ${ta(cf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:cf.RED_PALE},"&:active":{backgroundColor:cf.RED_DARK},"&.Mui-focusVisible":{borderColor:cf.RED_PALE,boxShadow:`0 0 0 3px ${ta(cf.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:cf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:cf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mf,boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:df,borderRadius:mf,color:cf.TEXT_PRIMARY,backgroundColor:cf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:cf.GREYSCALE_0_05,color:cf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:cf.GREEN,borderColor:cf.GREEN},"&.MuiChip-outlinedInfo":{color:cf.BLUE,borderColor:cf.BLUE},"&.MuiChip-outlinedWarning":{color:cf.ORANGE,borderColor:cf.ORANGE},"&.MuiChip-outlinedError":{color:cf.RED,borderColor:cf.RED}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mf,boxShadow:"none",backgroundColor:cf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:cf.GREEN,borderColor:cf.GREEN},outlinedSecondary:{color:cf.BLUE,borderColor:cf.BLUE},label:{fontFamily:xf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:fo.jsx(If,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:fo.jsx(Sf,{"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:mf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mf,fontSize:pf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:cf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${cf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:cf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:cf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:cf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mf,border:`solid 1px ${cf.GREYSCALE_0_15}`,color:cf.GREYSCALE_0_60,marginRight:0,width:hf,height:hf},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${cf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:cf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:pf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:cf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:cf.GREYSCALE_25,fontSize:df,fontFamily:xf.FONT_FAMILY,fontWeight:yf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:cf.TEXT_PRIMARY},"&.Mui-error":{color:cf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:cf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:vf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:cf.TEXT_SECONDARY,content:"'(required)'",fontWeight:vf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:pf,lineHeight:"16px",backgroundColor:cf.WHITE,borderRadius:mf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_05}`,borderColor:cf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.RED}`,boxShadow:`0px 0px 0px 1px ${cf.RED}, inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cf.GREYSCALE_0_10}`,borderColor:cf.GREYSCALE_0_10,backgroundColor:cf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:cf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:cf.GREYSCALE_0_15,borderRadius:mf,boxShadow:`inset 0 2px 0 0 ${cf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>fo.jsx(Sf,{...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:cf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:cf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&:active":{backgroundColor:cf.GREYSCALE_0_10},"&:focus":{backgroundColor:cf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${cf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:cf.GREYSCALE_0_30,"&:hover":{backgroundColor:cf.GREYSCALE_0_0,borderColor:cf.GREYSCALE_0_15},"& ~svg":{color:cf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${cf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:cf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:cf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:pf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:df,fontWeight:yf,color:cf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:fo.jsx(Rf,{}),checkedIcon:fo.jsx(Ef,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:cf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:cf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:cf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:fo.jsx(Mf,{}),checkedIcon:fo.jsx(Cf,{}),indeterminateIcon:fo.jsx(Df,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:cf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:cf.GREYSCALE_0_55,color:cf.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:cf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:cf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:cf.GREYSCALE_0_55,"&:hover":{color:cf.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:cf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:cf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:pf,color:cf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yf},secondary:{fontSize:df,color:cf.GREYSCALE_45,fontWeight:vf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:pf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:pf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:cf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:df,borderBottom:`solid 1px ${cf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:pf,color:cf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:cf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:cf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:cf.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:cf.RED}}},"&.Mui-focusVisible":{backgroundColor:cf.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:cf.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:cf.GREEN,height:"24px","&.Mui-disabled":{color:cf.GREYSCALE_0_15}},rail:{backgroundColor:cf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf,boxShadow:`inset 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${cf.GREYSCALE_0_05}`,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.WHITE,boxShadow:`0px 1px 2px 0px ${cf.GREYSCALE_0_15}, 0px 0px 0px 1px ${cf.GREYSCALE_0_05}`,"&:hover":{borderRadius:mf,boxShadow:`0 2px 4px 0 ${cf.GREYSCALE_0_30}, 0 0 0 1px ${cf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${cf.GREYSCALE_0_15}, 0 0 0 1px ${cf.GREYSCALE_0_06}, 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:cf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:cf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:cf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:cf.GREYSCALE_0_15},markLabel:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:cf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:cf.WHITE,color:cf.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:cf.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:cf.GREEN_PALE,boxShadow:`0 0 0 3px ${ta(cf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:cf.BLUE_PALE,boxShadow:`0 0 0 3px ${ta(cf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:cf.GREYSCALE_0_15,borderRadius:mf},thumb:{height:"16px",width:"16px",borderRadius:mf,backgroundColor:cf.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:pf,fontWeight:yf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${cf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${cf.MISC_FOCUS_BORDER}`,backgroundColor:cf.GREYSCALE_0_03,borderRadius:mf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:cf.GREYSCALE_25,"&.Mui-selected":{color:cf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:pf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mf,"&:hover":{backgroundColor:cf.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 ${cf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${cf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderRight:`1px solid ${cf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yf,backgroundColor:cf.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:cf.GREYSCALE_98,borderBottom:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${cf.GREYSCALE_85}`,borderTop:`1px solid ${cf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:cf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:cf.GREYSCALE_0_05,"&:hover":{backgroundColor:cf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:cf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>fo.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 ${cf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:pf,borderRadius:mf,padding:"7px 16px",border:`1px solid ${cf.GREYSCALE_0_15}`,backgroundColor:cf.GREYSCALE_100_60,color:cf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:cf.GREYSCALE_0_03,border:`1px solid ${cf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:cf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${cf.MISC_FOCUS_BORDER}`,border:`1px solid ${cf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:cf.GREYSCALE_25,backgroundColor:cf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:cf.GREYSCALE_0_10,border:`1px solid ${cf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:df,height:24,width:24,padding:7},sizeLarge:{fontSize:ff,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:pf,borderRadius:mf}}},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:cf.GREYSCALE_20},tooltip:{backgroundColor:cf.GREYSCALE_20,fontSize:df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Af=e=>({mode:"light",primary:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},secondary:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},error:{ultraLight:cf.RED_ULTRA_LIGHT,light:cf.RED_PALE,main:cf.RED,dark:cf.RED_DARK,extraDark:cf.RED_EXTRA_DARK,contrastText:cf.WHITE},warning:{ultraLight:cf.ORANGE_ULTRA_LIGHT,light:cf.ORANGE_PALE,main:cf.ORANGE,dark:cf.ORANGE_DARK,extraDark:cf.ORANGE_EXTRA_DARK,contrastText:cf.WHITE},success:{ultraLight:cf.GREEN_ULTRA_LIGHT,light:cf.GREEN_PALE,main:cf.GREEN,dark:cf.GREEN_DARK,extraDark:cf.GREEN_EXTRA_DARK,contrastText:cf.WHITE},info:{ultraLight:cf.BLUE_ULTRA_LIGHT,light:cf.BLUE_PALE,main:cf.BLUE,dark:cf.BLUE_DARK,extraDark:cf.BLUE_EXTRA_DARK,contrastText:cf.WHITE},text:{primary:cf.TEXT_PRIMARY,secondary:cf.TEXT_SECONDARY,disabled:cf.GREYSCALE_0_30},action:{hover:cf.GREYSCALE_0_03,hoverOpacity:.03,selected:cf.GREYSCALE_0_05,selectedOpacity:.05,focus:cf.MISC_FOCUS_BORDER},amethyst:{ultraLight:cf.WHITE,main:cf.PURPLE,light:cf.PURPLE_PALE,dark:cf.PURPLE_DARK,extraDark:cf.GREYSCALE_0_0,contrastText:cf.WHITE},background:{paper:cf.WHITE,default:cf.GREYSCALE_95},divider:cf.GREYSCALE_0_15}),kf=e=>({components:Lf(),palette:Af(),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:pf,fontWeightLight:gf,fontWeightRegular:vf,fontWeightMedium:yf,fontWeightBold:bf,htmlFontSize:pf,fontFamily:xf.FONT_FAMILY,button:{fontWeight:yf,fontSize:pf,textTransform:"none"},body1:{fontSize:ff,lineHeight:"24px"},body2:{fontSize:pf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:hf,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ff,fontWeight:yf,lineHeight:"16px"},h6:{fontSize:pf,fontWeight:yf,lineHeight:"16px"},caption:{color:cf.TEXT_SECONDARY},subtitle1:{fontSize:pf,color:cf.TEXT_SECONDARY},subtitle2:{fontSize:df,color:cf.TEXT_SECONDARY}},shape:{borderRadius:mf}}),Of={...uf};var qf={},Tf={exports:{}},Nf={exports:{}};!function(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Nf);var jf=Nf.exports;!function(e){var t=jf.default;function n(r,i){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:o){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?r(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Tf);var _f=Tf.exports,Ff={};function zf(e,t){return function(){return null}}function Wf(e){return e&&"object"===Ua(e)&&e.constructor===Object}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?ke({},e):e;return Wf(e)&&Wf(t)&&Object.keys(t).forEach(function(i){"__proto__"!==i&&(Wf(t[i])&&i in e?r[i]=$f(e[i],t[i],n):r[i]=t[i])}),r}var Hf=(jr.element,function(){return null});Hf.isRequired=(jr.element.isRequired,function(){return null});var Vf=function(){return null};var Bf={exports:{}},Gf={},Uf=60103,Yf=60106,Kf=60107,Xf=60108,Jf=60114,Zf=60109,Qf=60110,eh=60112,th=60113,nh=60120,rh=60115,ih=60116,oh=60121,ah=60122,sh=60117,lh=60129,uh=60131;if("function"==typeof Symbol&&Symbol.for){var ch=Symbol.for;Uf=ch("react.element"),Yf=ch("react.portal"),Kf=ch("react.fragment"),Xf=ch("react.strict_mode"),Jf=ch("react.profiler"),Zf=ch("react.provider"),Qf=ch("react.context"),eh=ch("react.forward_ref"),th=ch("react.suspense"),nh=ch("react.suspense_list"),rh=ch("react.memo"),ih=ch("react.lazy"),oh=ch("react.block"),ah=ch("react.server.block"),sh=ch("react.fundamental"),lh=ch("react.debug_trace_mode"),uh=ch("react.legacy_hidden")}function dh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Uf:switch(e=e.type){case Kf:case Jf:case Xf:case th:case nh:return e;default:switch(e=e&&e.$$typeof){case Qf:case eh:case ih:case rh:case Zf:return e;default:return t}}case Yf:return t}}}var ph=Zf,fh=Uf,hh=eh,mh=Kf,gh=ih,vh=rh,yh=Yf,bh=Jf,xh=Xf,Sh=th;Gf.ContextConsumer=Qf,Gf.ContextProvider=ph,Gf.Element=fh,Gf.ForwardRef=hh,Gf.Fragment=mh,Gf.Lazy=gh,Gf.Memo=vh,Gf.Portal=yh,Gf.Profiler=bh,Gf.StrictMode=xh,Gf.Suspense=Sh,Gf.isAsyncMode=function(){return!1},Gf.isConcurrentMode=function(){return!1},Gf.isContextConsumer=function(e){return dh(e)===Qf},Gf.isContextProvider=function(e){return dh(e)===Zf},Gf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Uf},Gf.isForwardRef=function(e){return dh(e)===eh},Gf.isFragment=function(e){return dh(e)===Kf},Gf.isLazy=function(e){return dh(e)===ih},Gf.isMemo=function(e){return dh(e)===rh},Gf.isPortal=function(e){return dh(e)===Yf},Gf.isProfiler=function(e){return dh(e)===Jf},Gf.isStrictMode=function(e){return dh(e)===Xf},Gf.isSuspense=function(e){return dh(e)===th},Gf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kf||e===Jf||e===lh||e===Xf||e===th||e===nh||e===uh||"object"==typeof e&&null!==e&&(e.$$typeof===ih||e.$$typeof===rh||e.$$typeof===Zf||e.$$typeof===Qf||e.$$typeof===eh||e.$$typeof===sh||e.$$typeof===oh||e[0]===ah)},Gf.typeOf=dh,Bf.exports=Gf;var wh=Bf.exports,Ch=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Eh(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 Ih(e,t,n){var r=Eh(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var Dh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rh=jr.oneOfType([jr.func,jr.object]),Ph=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,i){return null},chainPropTypes:zf,deepmerge:$f,elementAcceptingRef:Hf,elementTypeAcceptingRef:Vf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);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 Eh(e,"Component");if("object"===Ua(e))switch(e.$$typeof){case wh.ForwardRef:return Ih(e,e.render,"ForwardRef");case wh.Memo:return Ih(e,e.type,"memo");default:return}}},ponyfillGlobal:Dh,refType:Rh}),Mh=Or(Ph);Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.hexToRgb=kh,Ff.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=qh(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Ff.hslToRgb=Oh,Ff.decomposeColor=qh,Ff.recomposeColor=Th,Ff.getContrastRatio=function(e,t){var n=Nh(e),r=Nh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ff.getLuminance=Nh,Ff.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Nh(e)>.5?_h(e,t):Fh(e,t)},Ff.fade=function(e,t){return jh(e,t)},Ff.alpha=jh,Ff.darken=_h,Ff.lighten=Fh;var Lh=Mh;function Ah(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kh(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Oh(e){var t=(e=qh(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),Th({type:s,values:l})}function qh(e){if(e.type)return e;if("#"===e.charAt(0))return qh(kh(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,Lh.formatMuiErrorMessage)(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function Th(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Nh(e){var t="hsl"===(e=qh(e)).type?qh(Oh(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 jh(e,t){return e=qh(e),t=Ah(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Th(e)}function _h(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Th(e)}function Fh(e,t){if(e=qh(e),t=Ah(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Th(e)}var zh,Wh,$h,Hh={},Vh={exports:{}},Bh={exports:{}},Gh={exports:{}};function Uh(){return zh||(zh=1,function(e){var t=jf.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh)),Gh.exports}function Yh(){return Wh||(Wh=1,function(e){var t=jf.default,n=Uh();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Bh)),Bh.exports}function Kh(){return $h||($h=1,function(e){var t=Yh();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Vh)),Vh.exports}var Xh,Jh={exports:{}};function Zh(){return Xh||(Xh=1,function(e){var t=Us();e.exports=function(e,n){if(null==e)return{};var r,i,o=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Jh)),Jh.exports}var Qh,em={};var tm,nm={};var rm,im={},om={};var am,sm={};var lm,um={};var cm,dm={};var pm,fm={};var hm,mm={};var gm,vm={};var ym,bm,xm={};function Sm(){if(bm)return im;bm=1;var e=Za;Object.defineProperty(im,"__esModule",{value:!0}),im.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,R=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,P=e.type,M=void 0===P?"light":P,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,n.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 N=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",i,O),m(e,"dark",o,O),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},_=(0,r.deepmerge)((0,t.default)({common:i.default,type:M,primary:N(v),secondary:N(b,"A400","A200","A700"),error:N(S),warning:N(C),info:N(I),success:N(R),grey:o.default,contrastThreshold:A,getContrastText:T,augmentColor:N,tonalOffset:O},j[M]),q);return _},im.dark=im.light=void 0;var t=e(Vs()),n=e(Zh()),r=Mh,i=e(function(){if(rm)return om;rm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={black:"#000",white:"#fff"};return om.default=e,om}()),o=e(function(){if(am)return sm;am=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.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 sm.default=e,sm}()),a=e(function(){if(lm)return um;lm=1,Object.defineProperty(um,"__esModule",{value:!0}),um.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 um.default=e,um}()),s=e(function(){if(cm)return dm;cm=1,Object.defineProperty(dm,"__esModule",{value:!0}),dm.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 dm.default=e,dm}()),l=e(function(){if(pm)return fm;pm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.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 fm.default=e,fm}()),u=e(function(){if(hm)return mm;hm=1,Object.defineProperty(mm,"__esModule",{value:!0}),mm.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 mm.default=e,mm}()),c=e(function(){if(gm)return vm;gm=1,Object.defineProperty(vm,"__esModule",{value:!0}),vm.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 vm.default=e,vm}()),d=e(function(){if(ym)return xm;ym=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.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 xm.default=e,xm}()),p=Ff,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:i.default.white,default:o.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}};im.light=f;var h={text:{primary:i.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:o.default[800],default:"#303030"},action:{active:i.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,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,i):"dark"===t&&(e.dark=(0,p.darken)(e.main,o)))}return im.dark=h,im}var wm,Cm={};var Em,Im={};var Dm,Rm={};var Pm={};function Mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lm(e,t){if(e){if("string"==typeof e)return Mm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mm(e,t):void 0}}function Am(e){return function(e){if(Array.isArray(e))return Mm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lm(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 km(e,t){return t?$f(e,t,{clone:!1}):e}var Om={xs:0,sm:600,md:960,lg:1280,xl:1920},qm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Om[e],"px)")}};function Tm(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||qm;return t.reduce(function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e},{})}if("object"===Ua(t)){var i=e.theme.breakpoints||qm;return Object.keys(t).reduce(function(e,r){return e[i.up(r)]=n(t[r]),e},{})}return n(t)}function Nm(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function jm(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Nm(e.theme,i)||{};return Tm(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Nm(a,e)||e,o&&(t=o(t))),!1===r?t:function(e,t,n){return(t=Ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function _m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?km(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function Fm(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var zm=jm({prop:"border",themeKey:"borders",transform:Fm}),Wm=jm({prop:"borderTop",themeKey:"borders",transform:Fm}),$m=jm({prop:"borderRight",themeKey:"borders",transform:Fm}),Hm=jm({prop:"borderBottom",themeKey:"borders",transform:Fm}),Vm=jm({prop:"borderLeft",themeKey:"borders",transform:Fm}),Bm=jm({prop:"borderColor",themeKey:"palette"}),Gm=jm({prop:"borderRadius",themeKey:"shape"}),Um=_m(zm,Wm,$m,Hm,Vm,Bm,Gm);function Ym(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function Km(e){var t=function(t){var n=e(t);return t.css?ke({},km(n,e(ke({theme:t.theme},t.css))),Ym(t.css,[e.filterProps])):t.sx?ke({},km(n,e(ke({theme:t.theme},t.sx))),Ym(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Am(e.filterProps)),t}var Xm=_m(jm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),jm({prop:"display"}),jm({prop:"overflow"}),jm({prop:"textOverflow"}),jm({prop:"visibility"}),jm({prop:"whiteSpace"})),Jm=jm({prop:"flexBasis"}),Zm=jm({prop:"flexDirection"}),Qm=jm({prop:"flexWrap"}),eg=jm({prop:"justifyContent"}),tg=jm({prop:"alignItems"}),ng=jm({prop:"alignContent"}),rg=jm({prop:"order"}),ig=jm({prop:"flex"}),og=jm({prop:"flexGrow"}),ag=jm({prop:"flexShrink"}),sg=jm({prop:"alignSelf"}),lg=jm({prop:"justifyItems"}),ug=jm({prop:"justifySelf"}),cg=_m(Jm,Zm,Qm,eg,tg,ng,rg,ig,og,ag,sg,lg,ug),dg=jm({prop:"gridGap"}),pg=jm({prop:"gridColumnGap"}),fg=jm({prop:"gridRowGap"}),hg=jm({prop:"gridColumn"}),mg=jm({prop:"gridRow"}),gg=jm({prop:"gridAutoFlow"}),vg=jm({prop:"gridAutoColumns"}),yg=jm({prop:"gridAutoRows"}),bg=jm({prop:"gridTemplateColumns"}),xg=jm({prop:"gridTemplateRows"}),Sg=jm({prop:"gridTemplateAreas"}),wg=jm({prop:"gridArea"}),Cg=_m(dg,pg,fg,hg,mg,gg,vg,yg,bg,xg,Sg,wg),Eg=jm({prop:"color",themeKey:"palette"}),Ig=jm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Dg=_m(Eg,Ig),Rg=jm({prop:"position"}),Pg=jm({prop:"zIndex",themeKey:"zIndex"}),Mg=jm({prop:"top"}),Lg=jm({prop:"right"}),Ag=jm({prop:"bottom"}),kg=jm({prop:"left"}),Og=_m(Rg,Pg,Mg,Lg,Ag,kg),qg=jm({prop:"boxShadow",themeKey:"shadows"});function Tg(e){return e<=1?"".concat(100*e,"%"):e}var Ng=jm({prop:"width",transform:Tg}),jg=jm({prop:"maxWidth",transform:Tg}),_g=jm({prop:"minWidth",transform:Tg}),Fg=jm({prop:"height",transform:Tg}),zg=jm({prop:"maxHeight",transform:Tg}),Wg=jm({prop:"minHeight",transform:Tg}),$g=jm({prop:"size",cssProperty:"width",transform:Tg}),Hg=jm({prop:"size",cssProperty:"height",transform:Tg}),Vg=jm({prop:"boxSizing"}),Bg=_m(Ng,jg,_g,Fg,zg,Wg,Vg);function Gg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Lm(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 Ug={m:"margin",p:"padding"},Yg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xg=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!Kg[e])return[e];e=Kg[e]}var t=Gg(e.split(""),2),n=t[0],r=t[1],i=Ug[n],o=Yg[r]||"";return Array.isArray(o)?o.map(function(e){return i+e}):[i+o]}),Jg=["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 Qg(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function ev(e){var t=Zg(e.theme);return Object.keys(e).map(function(n){if(-1===Jg.indexOf(n))return null;var r=Qg(Xg(n),t),i=e[n];return Tm(e,i,r)}).reduce(km,{})}ev.propTypes={},ev.filterProps=Jg;var tv,nv=jm({prop:"fontFamily",themeKey:"typography"}),rv=jm({prop:"fontSize",themeKey:"typography"}),iv=jm({prop:"fontStyle",themeKey:"typography"}),ov=jm({prop:"fontWeight",themeKey:"typography"}),av=jm({prop:"letterSpacing"}),sv=jm({prop:"lineHeight"}),lv=jm({prop:"textAlign"}),uv=_m(nv,rv,iv,ov,av,sv,lv),cv=Object.freeze({__proto__:null,alignContent:ng,alignItems:tg,alignSelf:sg,bgcolor:Ig,border:zm,borderBottom:Hm,borderColor:Bm,borderLeft:Vm,borderRadius:Gm,borderRight:$m,borderTop:Wm,borders:Um,bottom:Ag,boxSizing:Vg,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||qm,i=r.keys.reduce(function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e(ke({theme:t.theme},t[i]))),n},null);return km(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Am(e.filterProps)),t},color:Eg,compose:_m,createUnarySpacing:Zg,css:function(e){return Km(e)},display:Xm,flex:ig,flexBasis:Jm,flexDirection:Zm,flexGrow:og,flexShrink:ag,flexWrap:Qm,flexbox:cg,fontFamily:nv,fontSize:rv,fontStyle:iv,fontWeight:ov,grid:Cg,gridArea:wg,gridAutoColumns:vg,gridAutoFlow:gg,gridAutoRows:yg,gridColumn:hg,gridColumnGap:pg,gridGap:dg,gridRow:mg,gridRowGap:fg,gridTemplateAreas:Sg,gridTemplateColumns:bg,gridTemplateRows:xg,height:Fg,justifyContent:eg,justifyItems:lg,justifySelf:ug,left:kg,letterSpacing:av,lineHeight:sv,maxHeight:zg,maxWidth:jg,minHeight:Wg,minWidth:_g,order:rg,palette:Dg,position:Rg,positions:Og,right:Lg,shadows:qg,sizeHeight:Hg,sizeWidth:$g,sizing:Bg,spacing:ev,style:jm,styleFunctionSx:Km,textAlign:lv,top:Mg,typography:uv,width:Ng,zIndex:Pg}),dv=Or(cv);var pv,fv={};function hv(){if(pv)return fv;pv=1;var e=Za;Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=fv.duration=fv.easing=void 0;var t=e(Zh()),n={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};fv.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}fv.duration=r;var o={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?r.standard:a,l=o.easing,u=void 0===l?n.easeInOut:l,c=o.delay,d=void 0===c?0:c;return(0,t.default)(o,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(u," ").concat("string"==typeof d?d:i(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 fv.default=o,fv}var mv,gv,vv={};function yv(){if(gv)return Hh;gv=1;var e=Za;Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.createMuiTheme=function(){return p.apply(void 0,arguments)},Hh.default=void 0,e(Kh());var t=e(Zh()),n=Mh,r=e(function(){if(Qh)return em;Qh=1;var e=Za;Object.defineProperty(em,"__esModule",{value:!0}),em.default=function(e){var i=e.values,o=void 0===i?{xs:0,sm:600,md:960,lg:1280,xl:1920}:i,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof o[e]?o[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof o[e]?o[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof o[r[n+1]]?o[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:o,up:d,down:function(e){var t=r.indexOf(e)+1,n=o[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return o[e]}},c)},em.keys=void 0;var t=e(Vs()),n=e(Zh()),r=["xs","sm","md","lg","xl"];return em.keys=r,em}()),i=e(function(){if(tm)return nm;tm=1;var e=Za;Object.defineProperty(nm,"__esModule",{value:!0}),nm.default=function(e,r,i){var o;return(0,n.default)({gutters:function(){var i=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,n.default)({paddingLeft:r(2),paddingRight:r(2)},i,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},i[e.up("sm")])))},toolbar:(o={minHeight:56},(0,t.default)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(o,e.up("sm"),{minHeight:64}),o)},i)};var t=e(Kh()),n=e(Vs());return nm}()),o=e(Sm()),a=e(function(){if(wm)return Cm;wm=1;var e=Za;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,n.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),R=f/14,P=I||function(e){return"".concat(e/C*R,"rem")},M=function(e,n,r,o,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(n),lineHeight:r},d===s?{letterSpacing:"".concat(i(o/n),"em")}:{},a,E)},L={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(v,48,1.167,0),h4:M(v,34,1.235,.25),h5:M(v,24,1.334,0),h6:M(b,20,1.6,.15),subtitle1:M(v,16,1.75,.15),subtitle2:M(b,14,1.57,.1),body1:M(v,16,1.5,.15),body2:M(v,14,1.43,.15),button:M(b,14,1.75,.4,a),caption:M(v,12,1.66,.4),overline:M(v,12,2.66,1,a)};return(0,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:o,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(Vs()),n=e(Zh()),r=Mh;function i(e){return Math.round(1e5*e)/1e5}function o(e){return i(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Cm}()),s=e(function(){if(Em)return Im;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(",")}Em=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.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 Im.default=t,Im}()),l=e(function(){if(Dm)return Rm;Dm=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=void 0;var e={borderRadius:4};return Rm.default=e,Rm}()),u=e(function(){if(tv)return Pm;tv=1,Object.defineProperty(Pm,"__esModule",{value:!0}),Pm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=dv;return Pm}()),c=e(hv()),d=e(function(){if(mv)return vv;mv=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return vv.default=e,vv}());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,o.default)(v),C=(0,r.default)(f),E=(0,u.default)(y),I=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,i.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,R=new Array(D>1?D-1:0),P=1;P<D;P++)R[P-1]=arguments[P];return I=R.reduce(function(e,t){return(0,n.deepmerge)(e,t)},I)}var f=p;return Hh.default=f,Hh}var bv,xv={};var Sv={},wv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Cv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ev(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Cv.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[wv]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Iv(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Dv="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},Rv="object"===("undefined"==typeof window?"undefined":Dv(window))&&"object"===("undefined"==typeof document?"undefined":Dv(document))&&9===document.nodeType;function Pv(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ya(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Mv={}.constructor;function Lv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Lv);if(e.constructor!==Mv)return e;var t={};for(var n in e)t[n]=Lv(e[n]);return t}function Av(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Lv(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var kv=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ov=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=kv(e[n]," ");else t=kv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function qv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Tv(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Nv(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=qv(n),l=s.linebreak,u=s.space;if(e&&o++,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&&(r&&(r+=l),r+=Tv(p+":"+u+Ov(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Tv(h+":"+u+Ov(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Tv(g+":"+u+Ov(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Tv(""+e+u+"{"+r,--o)+Tv("}",o)):r}var jv=/([[\].#*$><+~=|^:(),"'`\s])/g,_v="undefined"!=typeof CSS&&CSS.escape,Fv=function(e){return _v?_v(e):e.replace(jv,"\\$1")},zv=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Wv=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l($l($l(i)),s),i.selectorText="."+Fv(i.id)),i}kl(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ov(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Nv(this.selectorText,this.style,n)},Pv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(zv),$v={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Wv(e,t,n)}},Hv={indent:1,children:!0},Vv=/@([\w-]+)/,Bv=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Vv);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(i,t[i]);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,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Hv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Hv.indent),null==e.children&&(e.children=Hv.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Gv=/@container|@media|@supports\s+/,Uv={onCreateRule:function(e,t,n){return Gv.test(e)?new Bv(e,t,n):null}},Yv={indent:1,children:!0},Kv=/@keyframes\s+([\w-]+)/,Xv=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Kv);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Fv(a(this,o)),this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(s,t[s],ke({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Yv);var t=qv(e).linebreak;if(null==e.indent&&(e.indent=Yv.indent),null==e.children&&(e.children=Yv.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Jv=/@keyframes\s+/,Zv=/\$([\w-]+)/g,Qv=function(e,t){return"string"==typeof e?e.replace(Zv,function(e,n){return n in t?t[n]:e}):e},ey=function(e,t,n){var r=e[t],i=Qv(r,n);i!==r&&(e[t]=i)},ty={onCreateRule:function(e,t,n){return"string"==typeof e&&Jv.test(e)?new Xv(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ey(e,"animation-name",n.keyframes),"animation"in e&&ey(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Qv(e,r.keyframes);default:return e}}},ny=function(e){function t(){return e.apply(this,arguments)||this}return kl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Nv(this.key,this.style,n)},t}(zv),ry={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new ny(e,t,n):null}},iy=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=qv(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Nv(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Nv(this.at,this.style,e)},e}(),oy=/@font-face/,ay={onCreateRule:function(e,t,n){return oy.test(e)?new iy(e,t,n):null}},sy=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Nv(this.key,this.style,e)},e}(),ly={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new sy(e,t,n):null}},uy=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),cy={"@charset":!0,"@import":!0,"@namespace":!0},dy={onCreateRule:function(e,t,n){return e in cy?new uy(e,t,n):null}},py=[$v,Uv,ty,ry,ay,ly,dy],fy={process:!0},hy={force:!0,process:!0},my=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,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=ke({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Fv(this.classes[d]));var p=Av(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,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=ke({},n,{index:i})),this.add(e,t,o)},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 Wv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Xv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Wv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Xv&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;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],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=fy);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,hy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,hy)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=qv(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),gy=function(){function e(e,t){for(var n 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 my(this.options),e)this.rules.add(n,e[n]);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,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},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,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),vy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),yy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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,n=t.attached,r=Oe(t,["attached"]),i=qv(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},Pv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),by=new yy,xy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Sy="2f1acc6c3a606b082e5eef5e54414ffb";null==xy[Sy]&&(xy[Sy]=0);var wy=xy[Sy]++,Cy=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+wy+i+t:o+n.key+"-"+wy+(i?"-"+i:"")+"-"+t}},Ey=function(e){var t;return function(){return t||(t=e()),t}},Iy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Dy=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ov(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Ry=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Py=function(e,t){return e.selectorText=t,e.selectorText===t},My=Ey(function(){return document.querySelector("head")});function Ly(e){var t=by.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=My(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Ay=Ey(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ky=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Oy=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},qy=function(){function e(e){this.getPropertyValue=Iy,this.setProperty=Dy,this.removeProperty=Ry,this.setSelector=Py,this.hasInsertedRules=!1,this.cssRules=[],e&&by.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Ay();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ly(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else My().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 n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Oy(n,t);if(!1===(i=ky(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Oy(n,t),l=ky(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof gy&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ty=0,Ny=function(){function e(e){this.id=Ty++,this.version="10.10.0",this.plugins=new vy,this.options={id:{minify:!1},createGenerateId:Cy,Renderer:Rv?qy:null,plugins:[]},this.generateId=Cy({minify:!1});for(var t=0;t<py.length;t++)this.plugins.use(py[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 n=t.index;"number"!=typeof n&&(n=0===by.index?0:by.index+1);var r=new gy(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),by.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=ke({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Av(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),jy=function(e){return new Ny(e)},_y="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Fy(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Fy(r);o&&(t||(t={}),t[n]=o)}}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
- */Ny();var zy=Date.now(),Wy="fnValues"+zy,$y="fnStyle"+ ++zy,Hy="@global",Vy="@global ",By=function(){function e(e,t,n){for(var r in this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Gy=function(){function e(e,t,n){this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,ke({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Uy=/\s*,\s*/g;function Yy(e,t){for(var n=e.split(Uy),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Ky(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Hy)return new By(e,t,n);if("@"===e[0]&&e.substr(0,8)===Vy)return new Gy(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Hy]:null;if(i){for(var o in i)t.addRule(o,i[o],ke({},n,{selector:Yy(o,e.selector)}));delete r[Hy]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===Hy){var o=Yy(i.substr(7),e.selector);t.addRule(o,r[i],ke({},n,{selector:o})),delete r[i]}}(e,t))}}}var Xy=/\s*,\s*/g,Jy=/&/g,Zy=/\$([\w-]+)/g;function Qy(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Xy),r=e.split(Xy),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Jy,a):a+" "+l}return i}function n(e,t,n){if(n)return ke({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=ke({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,o)),f=f.replace(Zy,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],ke({},a,{selector:f})):u.addRule(h,r[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var eb=/[A-Z]/g,tb=/^ms-/,nb={};function rb(e){return"-"+e.toLowerCase()}function ib(e){if(nb.hasOwnProperty(e))return nb[e];var t=e.replace(eb,rb);return nb[e]=tb.test(t)?"-"+t:t}function ob(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ib(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ob):t.fallbacks=ob(e.fallbacks)),t}var ab=_y&&CSS?CSS.px:"px",sb=_y&&CSS?CSS.ms:"ms",lb=_y&&CSS?CSS.percent:"%";function ub(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var cb=ub({"animation-delay":sb,"animation-duration":sb,"background-position":ab,"background-position-x":ab,"background-position-y":ab,"background-size":ab,border:ab,"border-bottom":ab,"border-bottom-left-radius":ab,"border-bottom-right-radius":ab,"border-bottom-width":ab,"border-left":ab,"border-left-width":ab,"border-radius":ab,"border-right":ab,"border-right-width":ab,"border-top":ab,"border-top-left-radius":ab,"border-top-right-radius":ab,"border-top-width":ab,"border-width":ab,"border-block":ab,"border-block-end":ab,"border-block-end-width":ab,"border-block-start":ab,"border-block-start-width":ab,"border-block-width":ab,"border-inline":ab,"border-inline-end":ab,"border-inline-end-width":ab,"border-inline-start":ab,"border-inline-start-width":ab,"border-inline-width":ab,"border-start-start-radius":ab,"border-start-end-radius":ab,"border-end-start-radius":ab,"border-end-end-radius":ab,margin:ab,"margin-bottom":ab,"margin-left":ab,"margin-right":ab,"margin-top":ab,"margin-block":ab,"margin-block-end":ab,"margin-block-start":ab,"margin-inline":ab,"margin-inline-end":ab,"margin-inline-start":ab,padding:ab,"padding-bottom":ab,"padding-left":ab,"padding-right":ab,"padding-top":ab,"padding-block":ab,"padding-block-end":ab,"padding-block-start":ab,"padding-inline":ab,"padding-inline-end":ab,"padding-inline-start":ab,"mask-position-x":ab,"mask-position-y":ab,"mask-size":ab,height:ab,width:ab,"min-height":ab,"max-height":ab,"min-width":ab,"max-width":ab,bottom:ab,left:ab,top:ab,right:ab,inset:ab,"inset-block":ab,"inset-block-end":ab,"inset-block-start":ab,"inset-inline":ab,"inset-inline-end":ab,"inset-inline-start":ab,"box-shadow":ab,"text-shadow":ab,"column-gap":ab,"column-rule":ab,"column-rule-width":ab,"column-width":ab,"font-size":ab,"font-size-delta":ab,"letter-spacing":ab,"text-decoration-thickness":ab,"text-indent":ab,"text-stroke":ab,"text-stroke-width":ab,"word-spacing":ab,motion:ab,"motion-offset":ab,outline:ab,"outline-offset":ab,"outline-width":ab,perspective:ab,"perspective-origin-x":lb,"perspective-origin-y":lb,"transform-origin":lb,"transform-origin-x":lb,"transform-origin-y":lb,"transform-origin-z":lb,"transition-delay":sb,"transition-duration":sb,"vertical-align":ab,"flex-basis":ab,"shape-margin":ab,size:ab,gap:ab,grid:ab,"grid-gap":ab,"row-gap":ab,"grid-row-gap":ab,"grid-column-gap":ab,"grid-template-rows":ab,"grid-template-columns":ab,"grid-auto-rows":ab,"grid-auto-columns":ab,"box-shadow-x":ab,"box-shadow-y":ab,"box-shadow-blur":ab,"box-shadow-spread":ab,"font-line-height":ab,"text-shadow-x":ab,"text-shadow-y":ab,"text-shadow-blur":ab});function db(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=db(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=db(i,t[i],n);else for(var o in t)t[o]=db(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||cb[e];return!a||0===t&&a===ab?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pb(e){void 0===e&&(e={});var t=ub(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=db(r,e[r],t);return e},onChangeValue:function(e,n){return db(n,e,t)}}}var fb="",hb="",mb="",gb="",vb=Rv&&"ontouchstart"in document.documentElement;if(Rv){var yb={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bb=document.createElement("p").style;for(var xb in yb)if(xb+"Transform"in bb){fb=xb,hb=yb[xb];break}"Webkit"===fb&&"msHyphens"in bb&&(fb="ms",hb=yb.ms,gb="edge"),"Webkit"===fb&&"-apple-trailing-word"in bb&&(mb="apple")}var Sb=fb,wb=hb,Cb=mb,Eb=gb,Ib=vb;var Db={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Sb?"-webkit-"+e:wb+e)}},Rb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Sb?wb+"print-"+e:e)}},Pb=/[-\s]+(.)?/g;function Mb(e,t){return t?t.toUpperCase():""}function Lb(e){return e.replace(Pb,Mb)}function Ab(e){return Lb("-"+e)}var kb,Ob={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Sb){var n="mask-image";if(Lb(n)in t)return e;if(Sb+Ab(n)in t)return wb+e}return e}},qb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Cb||Ib?e:wb+e)}},Tb={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wb+e)}},jb={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wb+e)}},Nb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Sb||"ms"===Sb&&"edge"!==Eb?wb+e:e)}},_b={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Sb||"ms"===Sb||"apple"===Cb?wb+e:e)}},Fb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Sb?"WebkitColumn"+Ab(e)in t&&wb+"column-"+e:"Moz"===Sb&&("page"+Ab(e)in t&&"page-"+e))}},zb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Sb)return e;var n=e.replace("-inline","");return Sb+Ab(n)in t&&wb+n}},Wb={supportedProperty:function(e,t){return Lb(e)in t&&e}},$b={supportedProperty:function(e,t){var n=Ab(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Sb+n in t?wb+e:"Webkit"!==Sb&&"Webkit"+n in t&&"-webkit-"+e}},Hb={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Sb?""+wb+e:e)}},Vb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Sb?wb+"scroll-chaining":e)}},Bb={"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"},Gb={supportedProperty:function(e,t){var n=Bb[e];return!!n&&(Sb+Ab(n)in t&&wb+n)}},Ub={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"},Yb=Object.keys(Ub),Kb=function(e){return wb+e},Xb={supportedProperty:function(e,t,n){var r=n.multiple;if(Yb.indexOf(e)>-1){var i=Ub[e];if(!Array.isArray(i))return Sb+Ab(i)in t&&wb+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Sb+Ab(i[0])in t))return!1;return i.map(Kb)}return!1}},Jb=[Db,Rb,Ob,qb,Tb,jb,Nb,_b,Fb,zb,Wb,$b,Hb,Vb,Gb,Xb],Zb=Jb.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Qb=Jb.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Am(t.noPrefill)),e},[]),ex={};if(Rv){kb=document.createElement("p");var tx=window.getComputedStyle(document.documentElement,"");for(var nx in tx)isNaN(nx)||(ex[tx[nx]]=tx[nx]);Qb.forEach(function(e){return delete ex[e]})}function rx(e,t){if(void 0===t&&(t={}),!kb)return e;if(null!=ex[e])return ex[e];"transition"!==e&&"transform"!==e||(t[e]=e in kb.style);for(var n=0;n<Zb.length&&(ex[e]=Zb[n](e,kb.style,t),!ex[e]);n++);try{kb.style[e]=""}catch(e){return!1}return ex[e]}var ix,ox={},ax={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},sx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function lx(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?rx(t):", "+rx(n);return r||(t||n)}function ux(e,t){var n=t;if(!ix||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ox[r])return ox[r];try{ix.style[e]=n}catch(e){return ox[r]=!1,!1}if(ax[e])n=n.replace(sx,lx);else if(""===ix.style[e]&&("-ms-flex"===(n=wb+n)&&(ix.style[e]="-ms-flexbox"),ix.style[e]=n,""===ix.style[e]))return ox[r]=!1,!1;return ix.style[e]="",ox[r]=n,ox[r]}function cx(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=rx(n);o&&o!==n&&(i=!0);var a=!1,s=ux(o,Ov(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Sb?e:"@"+wb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ux(t,Ov(e))||e}}}function dx(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function px(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Av(e,{},n);return r[$y]=t,r},onProcessStyle:function(e,t){if(Wy in t||$y in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Wy]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[$y];o&&(i.style=o(e)||{});var a=i[Wy];if(a)for(var s in a)i.prop(s,a[s](e),r)}},Ky(),Qy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ob(e[t]);return e}return ob(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ib(t);return t===r?e:(n.prop(r,e),null)}},pb(),"undefined"==typeof window?null:cx(),dx()]}}function fx(e,t){if(null==e)return{};var n,r,i=Oe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=ke({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}Rv&&(ix=document.createElement("p"));var mx=function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},gx=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},vx=function(e,t,n){e.get(t).delete(n)},yx=n.createContext(null);function bx(){return n.useContext(yx)}var xx,Sx=Ny(px()),wx=Ev(),Cx=new Map,Ex={disableGeneration:!1,generateClassName:wx,jss:Sx,sheetsCache:null,sheetsManager:Cx,sheetsRegistry:null},Ix=n.createContext(Ex);function Dx(e){var t=e.children,r=e.injectFirst,i=void 0!==r&&r,o=e.disableGeneration,a=void 0!==o&&o,s=fx(e,["children","injectFirst","disableGeneration"]),l=ke({},n.useContext(Ix),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&i&&"undefined"!=typeof window){if(!xx){var u=document.head;xx=document.createComment("mui-inject-first"),u.insertBefore(xx,u.firstChild)}l.jss=Ny({plugins:px().plugins,insertionPoint:xx})}return n.createElement(Ix.Provider,{value:l},t)}var Rx=-1e9;var Px={};function Mx(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=gx(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},mx(i.sheetsManager,o,r,s));var l=ke({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=gx(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,ke({link:!1},l))).attach(),i.sheetsCache&&mx(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Fy(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=hx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Lx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,i=t.classNamePrefix,o=t.Component,a=t.defaultTheme,s=void 0===a?Px:a,l=fx(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=ke({},i);return Object.keys(o).forEach(function(e){a[e]=$f(a[e],o[e])}),a},options:{}}}(e),c=r||i||"makeStyles";u.options={index:Rx+=1,name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=bx()||s,i=ke({},n.useContext(Ix),l),a=n.useRef(),c=n.useRef();!function(e,t){var r,i=n.useRef([]),o=n.useMemo(function(){return{}},t);i.current!==o&&(i.current=o,r=e()),n.useEffect(function(){return function(){r&&r()}},[o])}(function(){var n={name:r,state:{},stylesCreator:u,stylesOptions:i,theme:t};return Mx(n,e),c.current=!1,a.current=n,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=gx(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(vx(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(n)}},[t,u]),n.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=hx({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,o);return d}}var Ax=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 Pv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new yy;var r=Ev();return n.createElement(Dx,ke({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return n.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function kx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ox(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kx(e))&&(r&&(r+=" "),r+=t);return r}var qx={exports:{}},Tx={},jx="function"==typeof Symbol&&Symbol.for,Nx=jx?Symbol.for("react.element"):60103,_x=jx?Symbol.for("react.portal"):60106,Fx=jx?Symbol.for("react.fragment"):60107,zx=jx?Symbol.for("react.strict_mode"):60108,Wx=jx?Symbol.for("react.profiler"):60114,$x=jx?Symbol.for("react.provider"):60109,Hx=jx?Symbol.for("react.context"):60110,Vx=jx?Symbol.for("react.async_mode"):60111,Bx=jx?Symbol.for("react.concurrent_mode"):60111,Gx=jx?Symbol.for("react.forward_ref"):60112,Ux=jx?Symbol.for("react.suspense"):60113,Yx=jx?Symbol.for("react.suspense_list"):60120,Kx=jx?Symbol.for("react.memo"):60115,Xx=jx?Symbol.for("react.lazy"):60116,Jx=jx?Symbol.for("react.block"):60121,Zx=jx?Symbol.for("react.fundamental"):60117,Qx=jx?Symbol.for("react.responder"):60118,eS=jx?Symbol.for("react.scope"):60119;function tS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Nx:switch(e=e.type){case Vx:case Bx:case Fx:case Wx:case zx:case Ux:return e;default:switch(e=e&&e.$$typeof){case Hx:case Gx:case Xx:case Kx:case $x:return e;default:return t}}case _x:return t}}}function nS(e){return tS(e)===Bx}Tx.AsyncMode=Vx,Tx.ConcurrentMode=Bx,Tx.ContextConsumer=Hx,Tx.ContextProvider=$x,Tx.Element=Nx,Tx.ForwardRef=Gx,Tx.Fragment=Fx,Tx.Lazy=Xx,Tx.Memo=Kx,Tx.Portal=_x,Tx.Profiler=Wx,Tx.StrictMode=zx,Tx.Suspense=Ux,Tx.isAsyncMode=function(e){return nS(e)||tS(e)===Vx},Tx.isConcurrentMode=nS,Tx.isContextConsumer=function(e){return tS(e)===Hx},Tx.isContextProvider=function(e){return tS(e)===$x},Tx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Nx},Tx.isForwardRef=function(e){return tS(e)===Gx},Tx.isFragment=function(e){return tS(e)===Fx},Tx.isLazy=function(e){return tS(e)===Xx},Tx.isMemo=function(e){return tS(e)===Kx},Tx.isPortal=function(e){return tS(e)===_x},Tx.isProfiler=function(e){return tS(e)===Wx},Tx.isStrictMode=function(e){return tS(e)===zx},Tx.isSuspense=function(e){return tS(e)===Ux},Tx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fx||e===Bx||e===Wx||e===zx||e===Ux||e===Yx||"object"==typeof e&&null!==e&&(e.$$typeof===Xx||e.$$typeof===Kx||e.$$typeof===$x||e.$$typeof===Hx||e.$$typeof===Gx||e.$$typeof===Zx||e.$$typeof===Qx||e.$$typeof===eS||e.$$typeof===Jx)},Tx.typeOf=tS,qx.exports=Tx;var rS=qx.exports,iS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sS={};function lS(e){return rS.isMemo(e)?aS:sS[e.$$typeof]||iS}sS[rS.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sS[rS.Memo]=aS;var uS=Object.defineProperty,cS=Object.getOwnPropertyNames,dS=Object.getOwnPropertySymbols,pS=Object.getOwnPropertyDescriptor,fS=Object.getPrototypeOf,hS=Object.prototype;var mS=function e(t,n,r){if("string"!=typeof n){if(hS){var i=fS(n);i&&i!==hS&&e(t,i,r)}var o=cS(n);dS&&(o=o.concat(dS(n)));for(var a=lS(t),s=lS(n),l=0;l<o.length;++l){var u=o[l];if(!(oS[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=pS(n,u);try{uS(t,u,c)}catch(e){}}}}return t},gS=kr(mS);function vS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=n.forwardRef(function(r,i){var o=r.innerRef,a=fx(r,["innerRef"]),s=bx()||e;return n.createElement(t,ke({theme:s,ref:o||i},a))});return gS(r,t),r}}var yS,bS=vS(),xS=Object.freeze({__proto__:null,ServerStyleSheets:Ax,StylesContext:Ix,StylesProvider:Dx,ThemeProvider:function(e){var t=e.children,r=e.theme,i=bx(),o=n.useMemo(function(){var e=null===i?r:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(i,r);return null!=e&&(e[wv]=null!==i),e},[r,i]);return n.createElement(yx.Provider,{value:o},t)},createGenerateClassName:Ev,createStyles:function(e){return e},getThemeProps:Iv,jssPreset:px,makeStyles:Lx,mergeClasses:hx,sheetsManager:Cx,styled:function(e){return function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.name,a=fx(i,["name"]),s=o,l=Lx("function"==typeof t?function(e){return{root:function(n){return t(ke({theme:e},n))}}}:{root:t},ke({Component:e,name:o||e.displayName,classNamePrefix:s},a));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=n.forwardRef(function(t,i){var o,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=fx(t,["children","className","clone","component"]),h=Ox(l(t).root,c),m=f;if(r&&(o=m,a=r,s={},Object.keys(o).forEach(function(e){-1===a.indexOf(e)&&(s[e]=o[e])}),m=s),d)return n.cloneElement(u,ke({className:Ox(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return n.createElement(g,ke({ref:i,className:h},m),u)});return gS(u,e),u}},useTheme:bx,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var i=t.defaultTheme,o=t.withTheme,a=void 0!==o&&o,s=t.name,l=fx(t,["defaultTheme","withTheme","name"]),u=s,c=Lx(e,ke({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:u},l)),d=n.forwardRef(function(e,t){e.classes;var o,l=e.innerRef,u=fx(e,["classes","innerRef"]),d=c(ke({},r.defaultProps,e)),p=u;return("string"==typeof s||a)&&(o=bx()||i,s&&(p=Iv({theme:o,name:s,props:u})),a&&!p.theme&&(p.theme=o)),n.createElement(r,ke({ref:l||t,classes:d},p))});return gS(d,r),d}},withTheme:bS,withThemeCreator:vS}),SS=Or(xS);
95
+ */jy();var zy=Date.now(),Wy="fnValues"+zy,$y="fnStyle"+ ++zy,Hy="@global",Vy="@global ",By=function(){function e(e,t,n){for(var r in this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new my(ke({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Gy=function(){function e(e,t,n){this.type="global",this.at=Hy,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,ke({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Uy=/\s*,\s*/g;function Yy(e,t){for(var n=e.split(Uy),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Ky(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Hy)return new By(e,t,n);if("@"===e[0]&&e.substr(0,8)===Vy)return new Gy(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Hy]:null;if(i){for(var o in i)t.addRule(o,i[o],ke({},n,{selector:Yy(o,e.selector)}));delete r[Hy]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===Hy){var o=Yy(i.substr(7),e.selector);t.addRule(o,r[i],ke({},n,{selector:o})),delete r[i]}}(e,t))}}}var Xy=/\s*,\s*/g,Jy=/&/g,Zy=/\$([\w-]+)/g;function Qy(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Xy),r=e.split(Xy),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Jy,a):a+" "+l}return i}function n(e,t,n){if(n)return ke({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=ke({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,o)),f=f.replace(Zy,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],ke({},a,{selector:f})):u.addRule(h,r[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var eb=/[A-Z]/g,tb=/^ms-/,nb={};function rb(e){return"-"+e.toLowerCase()}function ib(e){if(nb.hasOwnProperty(e))return nb[e];var t=e.replace(eb,rb);return nb[e]=tb.test(t)?"-"+t:t}function ob(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ib(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ob):t.fallbacks=ob(e.fallbacks)),t}var ab=_y&&CSS?CSS.px:"px",sb=_y&&CSS?CSS.ms:"ms",lb=_y&&CSS?CSS.percent:"%";function ub(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var cb=ub({"animation-delay":sb,"animation-duration":sb,"background-position":ab,"background-position-x":ab,"background-position-y":ab,"background-size":ab,border:ab,"border-bottom":ab,"border-bottom-left-radius":ab,"border-bottom-right-radius":ab,"border-bottom-width":ab,"border-left":ab,"border-left-width":ab,"border-radius":ab,"border-right":ab,"border-right-width":ab,"border-top":ab,"border-top-left-radius":ab,"border-top-right-radius":ab,"border-top-width":ab,"border-width":ab,"border-block":ab,"border-block-end":ab,"border-block-end-width":ab,"border-block-start":ab,"border-block-start-width":ab,"border-block-width":ab,"border-inline":ab,"border-inline-end":ab,"border-inline-end-width":ab,"border-inline-start":ab,"border-inline-start-width":ab,"border-inline-width":ab,"border-start-start-radius":ab,"border-start-end-radius":ab,"border-end-start-radius":ab,"border-end-end-radius":ab,margin:ab,"margin-bottom":ab,"margin-left":ab,"margin-right":ab,"margin-top":ab,"margin-block":ab,"margin-block-end":ab,"margin-block-start":ab,"margin-inline":ab,"margin-inline-end":ab,"margin-inline-start":ab,padding:ab,"padding-bottom":ab,"padding-left":ab,"padding-right":ab,"padding-top":ab,"padding-block":ab,"padding-block-end":ab,"padding-block-start":ab,"padding-inline":ab,"padding-inline-end":ab,"padding-inline-start":ab,"mask-position-x":ab,"mask-position-y":ab,"mask-size":ab,height:ab,width:ab,"min-height":ab,"max-height":ab,"min-width":ab,"max-width":ab,bottom:ab,left:ab,top:ab,right:ab,inset:ab,"inset-block":ab,"inset-block-end":ab,"inset-block-start":ab,"inset-inline":ab,"inset-inline-end":ab,"inset-inline-start":ab,"box-shadow":ab,"text-shadow":ab,"column-gap":ab,"column-rule":ab,"column-rule-width":ab,"column-width":ab,"font-size":ab,"font-size-delta":ab,"letter-spacing":ab,"text-decoration-thickness":ab,"text-indent":ab,"text-stroke":ab,"text-stroke-width":ab,"word-spacing":ab,motion:ab,"motion-offset":ab,outline:ab,"outline-offset":ab,"outline-width":ab,perspective:ab,"perspective-origin-x":lb,"perspective-origin-y":lb,"transform-origin":lb,"transform-origin-x":lb,"transform-origin-y":lb,"transform-origin-z":lb,"transition-delay":sb,"transition-duration":sb,"vertical-align":ab,"flex-basis":ab,"shape-margin":ab,size:ab,gap:ab,grid:ab,"grid-gap":ab,"row-gap":ab,"grid-row-gap":ab,"grid-column-gap":ab,"grid-template-rows":ab,"grid-template-columns":ab,"grid-auto-rows":ab,"grid-auto-columns":ab,"box-shadow-x":ab,"box-shadow-y":ab,"box-shadow-blur":ab,"box-shadow-spread":ab,"font-line-height":ab,"text-shadow-x":ab,"text-shadow-y":ab,"text-shadow-blur":ab});function db(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=db(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=db(i,t[i],n);else for(var o in t)t[o]=db(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||cb[e];return!a||0===t&&a===ab?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pb(e){void 0===e&&(e={});var t=ub(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=db(r,e[r],t);return e},onChangeValue:function(e,n){return db(n,e,t)}}}var fb="",hb="",mb="",gb="",vb=Rv&&"ontouchstart"in document.documentElement;if(Rv){var yb={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bb=document.createElement("p").style;for(var xb in yb)if(xb+"Transform"in bb){fb=xb,hb=yb[xb];break}"Webkit"===fb&&"msHyphens"in bb&&(fb="ms",hb=yb.ms,gb="edge"),"Webkit"===fb&&"-apple-trailing-word"in bb&&(mb="apple")}var Sb=fb,wb=hb,Cb=mb,Eb=gb,Ib=vb;var Db={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Sb?"-webkit-"+e:wb+e)}},Rb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Sb?wb+"print-"+e:e)}},Pb=/[-\s]+(.)?/g;function Mb(e,t){return t?t.toUpperCase():""}function Lb(e){return e.replace(Pb,Mb)}function Ab(e){return Lb("-"+e)}var kb,Ob={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Sb){var n="mask-image";if(Lb(n)in t)return e;if(Sb+Ab(n)in t)return wb+e}return e}},qb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Cb||Ib?e:wb+e)}},Tb={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wb+e)}},Nb={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wb+e)}},jb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Sb||"ms"===Sb&&"edge"!==Eb?wb+e:e)}},_b={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Sb||"ms"===Sb||"apple"===Cb?wb+e:e)}},Fb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Sb?"WebkitColumn"+Ab(e)in t&&wb+"column-"+e:"Moz"===Sb&&("page"+Ab(e)in t&&"page-"+e))}},zb={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Sb)return e;var n=e.replace("-inline","");return Sb+Ab(n)in t&&wb+n}},Wb={supportedProperty:function(e,t){return Lb(e)in t&&e}},$b={supportedProperty:function(e,t){var n=Ab(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Sb+n in t?wb+e:"Webkit"!==Sb&&"Webkit"+n in t&&"-webkit-"+e}},Hb={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Sb?""+wb+e:e)}},Vb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Sb?wb+"scroll-chaining":e)}},Bb={"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"},Gb={supportedProperty:function(e,t){var n=Bb[e];return!!n&&(Sb+Ab(n)in t&&wb+n)}},Ub={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"},Yb=Object.keys(Ub),Kb=function(e){return wb+e},Xb={supportedProperty:function(e,t,n){var r=n.multiple;if(Yb.indexOf(e)>-1){var i=Ub[e];if(!Array.isArray(i))return Sb+Ab(i)in t&&wb+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Sb+Ab(i[0])in t))return!1;return i.map(Kb)}return!1}},Jb=[Db,Rb,Ob,qb,Tb,Nb,jb,_b,Fb,zb,Wb,$b,Hb,Vb,Gb,Xb],Zb=Jb.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Qb=Jb.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Am(t.noPrefill)),e},[]),ex={};if(Rv){kb=document.createElement("p");var tx=window.getComputedStyle(document.documentElement,"");for(var nx in tx)isNaN(nx)||(ex[tx[nx]]=tx[nx]);Qb.forEach(function(e){return delete ex[e]})}function rx(e,t){if(void 0===t&&(t={}),!kb)return e;if(null!=ex[e])return ex[e];"transition"!==e&&"transform"!==e||(t[e]=e in kb.style);for(var n=0;n<Zb.length&&(ex[e]=Zb[n](e,kb.style,t),!ex[e]);n++);try{kb.style[e]=""}catch(e){return!1}return ex[e]}var ix,ox={},ax={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},sx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function lx(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?rx(t):", "+rx(n);return r||(t||n)}function ux(e,t){var n=t;if(!ix||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ox[r])return ox[r];try{ix.style[e]=n}catch(e){return ox[r]=!1,!1}if(ax[e])n=n.replace(sx,lx);else if(""===ix.style[e]&&("-ms-flex"===(n=wb+n)&&(ix.style[e]="-ms-flexbox"),ix.style[e]=n,""===ix.style[e]))return ox[r]=!1,!1;return ix.style[e]="",ox[r]=n,ox[r]}function cx(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=rx(n);o&&o!==n&&(i=!0);var a=!1,s=ux(o,Ov(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Sb?e:"@"+wb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ux(t,Ov(e))||e}}}function dx(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function px(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Av(e,{},n);return r[$y]=t,r},onProcessStyle:function(e,t){if(Wy in t||$y in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[Wy]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[$y];o&&(i.style=o(e)||{});var a=i[Wy];if(a)for(var s in a)i.prop(s,a[s](e),r)}},Ky(),Qy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ob(e[t]);return e}return ob(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ib(t);return t===r?e:(n.prop(r,e),null)}},pb(),"undefined"==typeof window?null:cx(),dx()]}}function fx(e,t){if(null==e)return{};var n,r,i=Oe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=ke({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}Rv&&(ix=document.createElement("p"));var mx=function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},gx=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},vx=function(e,t,n){e.get(t).delete(n)},yx=n.createContext(null);function bx(){return n.useContext(yx)}var xx,Sx=jy(px()),wx=Ev(),Cx=new Map,Ex={disableGeneration:!1,generateClassName:wx,jss:Sx,sheetsCache:null,sheetsManager:Cx,sheetsRegistry:null},Ix=n.createContext(Ex);function Dx(e){var t=e.children,r=e.injectFirst,i=void 0!==r&&r,o=e.disableGeneration,a=void 0!==o&&o,s=fx(e,["children","injectFirst","disableGeneration"]),l=ke({},n.useContext(Ix),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&i&&"undefined"!=typeof window){if(!xx){var u=document.head;xx=document.createComment("mui-inject-first"),u.insertBefore(xx,u.firstChild)}l.jss=jy({plugins:px().plugins,insertionPoint:xx})}return n.createElement(Ix.Provider,{value:l},t)}var Rx=-1e9;var Px={};function Mx(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=gx(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},mx(i.sheetsManager,o,r,s));var l=ke({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=gx(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,ke({link:!1},l))).attach(),i.sheetsCache&&mx(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Fy(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=hx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Lx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,i=t.classNamePrefix,o=t.Component,a=t.defaultTheme,s=void 0===a?Px:a,l=fx(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=ke({},i);return Object.keys(o).forEach(function(e){a[e]=$f(a[e],o[e])}),a},options:{}}}(e),c=r||i||"makeStyles";u.options={index:Rx+=1,name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=bx()||s,i=ke({},n.useContext(Ix),l),a=n.useRef(),c=n.useRef();!function(e,t){var r,i=n.useRef([]),o=n.useMemo(function(){return{}},t);i.current!==o&&(i.current=o,r=e()),n.useEffect(function(){return function(){r&&r()}},[o])}(function(){var n={name:r,state:{},stylesCreator:u,stylesOptions:i,theme:t};return Mx(n,e),c.current=!1,a.current=n,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=gx(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(vx(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(n)}},[t,u]),n.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=hx({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,o);return d}}var Ax=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 Pv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new yy;var r=Ev();return n.createElement(Dx,ke({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return n.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function kx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ox(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kx(e))&&(r&&(r+=" "),r+=t);return r}var qx={exports:{}},Tx={},Nx="function"==typeof Symbol&&Symbol.for,jx=Nx?Symbol.for("react.element"):60103,_x=Nx?Symbol.for("react.portal"):60106,Fx=Nx?Symbol.for("react.fragment"):60107,zx=Nx?Symbol.for("react.strict_mode"):60108,Wx=Nx?Symbol.for("react.profiler"):60114,$x=Nx?Symbol.for("react.provider"):60109,Hx=Nx?Symbol.for("react.context"):60110,Vx=Nx?Symbol.for("react.async_mode"):60111,Bx=Nx?Symbol.for("react.concurrent_mode"):60111,Gx=Nx?Symbol.for("react.forward_ref"):60112,Ux=Nx?Symbol.for("react.suspense"):60113,Yx=Nx?Symbol.for("react.suspense_list"):60120,Kx=Nx?Symbol.for("react.memo"):60115,Xx=Nx?Symbol.for("react.lazy"):60116,Jx=Nx?Symbol.for("react.block"):60121,Zx=Nx?Symbol.for("react.fundamental"):60117,Qx=Nx?Symbol.for("react.responder"):60118,eS=Nx?Symbol.for("react.scope"):60119;function tS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jx:switch(e=e.type){case Vx:case Bx:case Fx:case Wx:case zx:case Ux:return e;default:switch(e=e&&e.$$typeof){case Hx:case Gx:case Xx:case Kx:case $x:return e;default:return t}}case _x:return t}}}function nS(e){return tS(e)===Bx}Tx.AsyncMode=Vx,Tx.ConcurrentMode=Bx,Tx.ContextConsumer=Hx,Tx.ContextProvider=$x,Tx.Element=jx,Tx.ForwardRef=Gx,Tx.Fragment=Fx,Tx.Lazy=Xx,Tx.Memo=Kx,Tx.Portal=_x,Tx.Profiler=Wx,Tx.StrictMode=zx,Tx.Suspense=Ux,Tx.isAsyncMode=function(e){return nS(e)||tS(e)===Vx},Tx.isConcurrentMode=nS,Tx.isContextConsumer=function(e){return tS(e)===Hx},Tx.isContextProvider=function(e){return tS(e)===$x},Tx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jx},Tx.isForwardRef=function(e){return tS(e)===Gx},Tx.isFragment=function(e){return tS(e)===Fx},Tx.isLazy=function(e){return tS(e)===Xx},Tx.isMemo=function(e){return tS(e)===Kx},Tx.isPortal=function(e){return tS(e)===_x},Tx.isProfiler=function(e){return tS(e)===Wx},Tx.isStrictMode=function(e){return tS(e)===zx},Tx.isSuspense=function(e){return tS(e)===Ux},Tx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fx||e===Bx||e===Wx||e===zx||e===Ux||e===Yx||"object"==typeof e&&null!==e&&(e.$$typeof===Xx||e.$$typeof===Kx||e.$$typeof===$x||e.$$typeof===Hx||e.$$typeof===Gx||e.$$typeof===Zx||e.$$typeof===Qx||e.$$typeof===eS||e.$$typeof===Jx)},Tx.typeOf=tS,qx.exports=Tx;var rS=qx.exports,iS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sS={};function lS(e){return rS.isMemo(e)?aS:sS[e.$$typeof]||iS}sS[rS.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sS[rS.Memo]=aS;var uS=Object.defineProperty,cS=Object.getOwnPropertyNames,dS=Object.getOwnPropertySymbols,pS=Object.getOwnPropertyDescriptor,fS=Object.getPrototypeOf,hS=Object.prototype;var mS=function e(t,n,r){if("string"!=typeof n){if(hS){var i=fS(n);i&&i!==hS&&e(t,i,r)}var o=cS(n);dS&&(o=o.concat(dS(n)));for(var a=lS(t),s=lS(n),l=0;l<o.length;++l){var u=o[l];if(!(oS[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=pS(n,u);try{uS(t,u,c)}catch(e){}}}}return t},gS=kr(mS);function vS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=n.forwardRef(function(r,i){var o=r.innerRef,a=fx(r,["innerRef"]),s=bx()||e;return n.createElement(t,ke({theme:s,ref:o||i},a))});return gS(r,t),r}}var yS,bS=vS(),xS=Object.freeze({__proto__:null,ServerStyleSheets:Ax,StylesContext:Ix,StylesProvider:Dx,ThemeProvider:function(e){var t=e.children,r=e.theme,i=bx(),o=n.useMemo(function(){var e=null===i?r:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(i,r);return null!=e&&(e[wv]=null!==i),e},[r,i]);return n.createElement(yx.Provider,{value:o},t)},createGenerateClassName:Ev,createStyles:function(e){return e},getThemeProps:Iv,jssPreset:px,makeStyles:Lx,mergeClasses:hx,sheetsManager:Cx,styled:function(e){return function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.name,a=fx(i,["name"]),s=o,l=Lx("function"==typeof t?function(e){return{root:function(n){return t(ke({theme:e},n))}}}:{root:t},ke({Component:e,name:o||e.displayName,classNamePrefix:s},a));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=n.forwardRef(function(t,i){var o,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=fx(t,["children","className","clone","component"]),h=Ox(l(t).root,c),m=f;if(r&&(o=m,a=r,s={},Object.keys(o).forEach(function(e){-1===a.indexOf(e)&&(s[e]=o[e])}),m=s),d)return n.cloneElement(u,ke({className:Ox(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return n.createElement(g,ke({ref:i,className:h},m),u)});return gS(u,e),u}},useTheme:bx,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var i=t.defaultTheme,o=t.withTheme,a=void 0!==o&&o,s=t.name,l=fx(t,["defaultTheme","withTheme","name"]),u=s,c=Lx(e,ke({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:u},l)),d=n.forwardRef(function(e,t){e.classes;var o,l=e.innerRef,u=fx(e,["classes","innerRef"]),d=c(ke({},r.defaultProps,e)),p=u;return("string"==typeof s||a)&&(o=bx()||i,s&&(p=Iv({theme:o,name:s,props:u})),a&&!p.theme&&(p.theme=o)),n.createElement(r,ke({ref:l||t,classes:d},p))});return gS(d,r),d}},withTheme:bS,withThemeCreator:vS}),SS=Or(xS);
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 wS,CS,ES={},IS={};function DS(){if(wS)return IS;wS=1;var e=Za;Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var t=(0,e(yv()).default)();return IS.default=t,IS}var RS,PS,MS={},LS={};function AS(){if(PS)return MS;PS=1;var e=Za;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.breakpoints,a=void 0===o?["sm","md","lg"]:o,s=i.disableAlign,l=void 0!==s&&s,u=i.factor,c=void 0===u?2:u,d=i.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,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var i=h[e],o=parseFloat(m(i.fontSize,"rem"));if(!(o<=1)){var a=o,s=1+(a-1)/c,u=i.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(o));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},i,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Vs()),n=Mh,r=function(){if(RS)return LS;RS=1;var e=Za;Object.defineProperty(LS,"__esModule",{value:!0}),LS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},LS.getUnit=n,LS.toUnitless=r,LS.convertLength=function(e){return function(t,i){var o=n(t);if(o===i)return t;var a=r(t);if("px"!==o)if("em"===o)a=r(t)*r(e);else if("rem"===o)return a=r(t)*r(e),t;var s=a;if("px"!==i)if("em"===i)s=a/r(e);else{if("rem"!==i)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+i}},LS.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i},LS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},LS.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,i=e.max,o=e.unit,a=void 0===o?"rem":o,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(i-r)/l[l.length-1];return l.forEach(function(e){var i=r+p*e;null!==c&&(i=c(i)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*i)/1e4).concat(a))}),d};var t=e(Kh());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return LS}();return MS}var kS,OS={};var qS,TS={};var jS,NS={};var _S,FS={};!function(e){var t=Za,r=_f;Object.defineProperty(e,"__esModule",{value:!0});var i={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 o=Ff;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var a=r(yv()),s=t(function(){if(bv)return xv;bv=1;var e=Za;Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(i))};var t=Mh,n=e(yv());return xv}()),l=t(function(){if(yS)return Sv;yS=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.default=function(t){return(0,e.createStyles)(t)};var e=SS;return Sv}()),u=t(function(){if(CS)return ES;CS=1;var e=Za;Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return ES.default=i,ES}()),c=t(AS()),d=t(function(){if(kS)return OS;kS=1;var e=Za;Object.defineProperty(OS,"__esModule",{value:!0}),OS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=(0,n.styled)(e);return function(e,n){return i(e,(0,t.default)({defaultTheme:r.default},n))}};return OS.default=i,OS}()),p=hv();Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))});var f=t(function(){if(qS)return TS;qS=1;var e=Za;Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=function(){return(0,t.useTheme)()||r.default};var t=SS;e(n);var r=e(DS());return TS}()),h=t(function(){if(jS)return NS;jS=1;var e=Za;Object.defineProperty(NS,"__esModule",{value:!0}),NS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e,i){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return NS.default=i,NS}()),m=t(function(){if(_S)return FS;_S=1;var e=Za;Object.defineProperty(FS,"__esModule",{value:!0}),FS.default=void 0;var t=SS,n=e(DS()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return FS.default=r,FS}()),g=SS}(qf),qf.alpha(cf.GREYSCALE_0,.05),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5);const zS=(e="light")=>kf();function WS(e){return"init"in e}function $S(e){return!!e.write}function HS(e){return"v"in e||"e"in e}function VS(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}function BS(e){return"function"==typeof(null==e?void 0:e.then)}function GS(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function US(e,t,n){const r=n.get(e),i=null==r?void 0:r.t,o=t.p;if(!(null==i?void 0:i.size))return o;if(!o.size)return i;const a=new Set(i);for(const e of o)a.add(e);return a}const YS=()=>{const e={},t=new WeakMap,n=n=>{var r,i;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(i=t.get(n))||i.forEach(e=>e())};return n.add=(n,r)=>{const i=n||e;let o=t.get(i);return o||(o=new Set,t.set(i,o)),o.add(r),()=>{o.delete(r),o.size||t.delete(i)}},n};function KS(e){return e.i||(e.i=YS()),e.r||(e.r=YS()),e.c||(e.c=YS()),e.m||(e.m=YS()),e.u||(e.u=YS()),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 XS=(e,t,...n)=>t.read(...n),JS=(e,t,...n)=>t.write(...n),ZS=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},QS=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},ew=(e,n)=>{var r;const i=vw(e),o=i[0],a=i[6],s=i[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Atom is undefined or null");let l=o.get(n);return l||(l={d:new Map,p:new Set,n:0},o.set(n,l),null==(r=a.i)||r.call(a,n),null==s||s(e,n)),l},tw=e=>{var t;const n=vw(e),r=n[1],i=n[3],o=n[4],a=n[5],s=n[6],l=n[13];if(!(s.f||i.size||o.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const n=new Set;for(const e of i){const i=null==(t=r.get(e))?void 0:t.l;if(i)for(const e of i)n.add(e)}i.clear();for(const e of a)n.add(e);a.clear();for(const e of o)n.add(e);o.clear();for(const e of n)c(e);i.size&&l(e)}while(i.size||a.size||o.size);if(u.length)throw new AggregateError(u)},nw=e=>{const n=vw(e),r=n[1],i=n[2],o=n[3],a=n[11],s=n[14],l=n[17];if(!o.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of o)f.push(t),h.push(a(e,t));for(;f.length;){const n=f.length-1,o=f[n],s=h[n];if(p.has(o))f.pop(),h.pop();else if(d.has(o)){if(i.get(o)===s.n)u.push(o),c.push(s);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&i.has(o))throw new Error("[Bug] invalidated atom exists");p.add(o),f.pop(),h.pop()}else{d.add(o);for(const t of US(o,s,r))d.has(t)||(f.push(t),h.push(a(e,t)))}}for(let t=u.length-1;t>=0;--t){const n=u[t],r=c[t];let a=!1;for(const e of r.d.keys())if(e!==n&&o.has(e)){a=!0;break}a&&(i.set(n,r.n),s(e,n),l(e,n)),i.delete(n)}},rw=new WeakSet,iw=(e,n)=>{var r,i;const o=vw(e),a=o[1],s=o[2],l=o[3],u=o[6],c=o[7],d=o[11],p=o[12],f=o[13],h=o[14],m=o[16],g=o[17],v=o[20],y=o[26],b=o[28],x=d(e,n),S=b[0];if(HS(x)){if(a.has(n)&&s.get(n)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[n,r]of x.d)if(h(e,n).n!==r){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(n)){const t=!l.size;g(e,n),t&&(f(e),p(e))}},D=t=>{var r;if(t===n){const n=d(e,t);if(!HS(n)){if(!WS(t))throw new Error("no atom init");v(e,t,t.init)}return VS(n)}const i=h(e,t);try{return VS(i)}finally{C.delete(t),x.d.set(t,i.n),BS(x.v)&&GS(n,x.v,i),a.has(n)&&(null==(r=a.get(t))||r.t.add(n)),w||I()}};let R,P;const M={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||$S(n)||console.warn("setSelf function cannot be used with read-only atom"),!P&&$S(n)&&(P=(...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,...r)}finally{f(e),p(e)}}),P}},L=x.n,A=s.get(n)===L;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.delete(e);const i=c(e,n,D,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,n,i),BS(i)){y(e,i,()=>null==R?void 0:R.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(r=u.r)||r.call(u,n),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==L&&A&&(s.set(n,x.n),l.add(n),null==(i=u.c)||i.call(u,n))}},ow=(e,t)=>{const n=vw(e),r=n[1],i=n[2],o=n[11],a=[t];for(;a.length;){const t=a.pop(),n=o(e,t);for(const s of US(t,n,r)){const t=o(e,s);i.get(s)!==t.n&&(i.set(s,t.n),a.push(s))}}},aw=(e,n,...r)=>{const i=vw(e),o=i[3],a=i[6],s=i[8],l=i[11],u=i[12],c=i[13],d=i[14],p=i[15],f=i[16],h=i[17],m=i[20],g=i[28];let v=!0;const y=t=>VS(d(e,t)),b=(r,...i)=>{var s;const d=l(e,r);try{if(r===n){if(!WS(r))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.add(e);const n=d.n,l=i[0];return m(e,r,l),h(e,r),void(n!==d.n&&(++g[0],o.add(r),p(e,r),null==(s=a.c)||s.call(a,r)))}return f(e,r,...i)}finally{v||(c(e),u(e))}};try{return s(e,n,y,b,...r)}finally{v=!1}},sw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[3],a=r[6],s=r[11],l=r[15],u=r[18],c=r[19],d=s(e,t),p=i.get(t);if(p&&d.d.size>0){for(const[r,i]of d.d)if(!p.d.has(r)){const c=s(e,r);u(e,r).t.add(t),p.d.add(r),i!==c.n&&(o.add(r),l(e,r),null==(n=a.c)||n.call(a,r))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const r=c(e,n);null==r||r.t.delete(t)}}},lw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[4],a=r[6],s=r[10],l=r[11],u=r[12],c=r[13],d=r[14],p=r[16],f=r[18],h=l(e,t);let m=i.get(t);if(!m){d(e,t);for(const n of h.d.keys()){f(e,n).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,m),$S(t)&&function(e){return!!e.onMount}(t)){const n=()=>{let n=!0;const r=(...r)=>{try{return p(e,t,...r)}finally{n||(c(e),u(e))}};try{const i=s(e,t,r);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};o.add(n)}null==(n=a.m)||n.call(a,t)}return m},uw=(e,t)=>{var n,r;const i=vw(e),o=i[1],a=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t);let d=o.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=o.get(e))?void 0:n.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,o.delete(t);for(const n of c.d.keys()){const r=u(e,n);null==r||r.t.delete(t)}null==(r=s.u)||r.call(s,t)},cw=(e,t,n)=>{const r=vw(e),i=r[11],o=r[27],a=i(e,t),s="v"in a,l=a.v;if(BS(n))for(const r of a.d.keys())GS(t,n,i(e,r));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,BS(l)&&o(e,l))},dw=(e,t)=>VS((0,vw(e)[14])(e,t)),pw=(e,t,...n)=>{const r=vw(e),i=r[3],o=r[12],a=r[13],s=r[16],l=i.size;try{return s(e,t,...n)}finally{i.size!==l&&(a(e),o(e))}},fw=(e,t,n)=>{const r=vw(e),i=r[12],o=r[18],a=r[19],s=o(e,t).l;return s.add(n),i(e),()=>{s.delete(n),a(e,t),i(e)}},hw=(e,t,n)=>{const r=vw(e)[25];let i=r.get(t);if(!i){i=new Set,r.set(t,i);const e=()=>r.delete(t);t.then(e,e)}i.add(n)},mw=(e,t)=>{const n=vw(e)[25].get(t);null==n||n.forEach(e=>e())},gw=new WeakMap,vw=e=>{const n=gw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");return n};function yw(e){const t=vw(e),n=t[24];return n?n(t):t}function bw(...e){const t={get:e=>(0,vw(t)[21])(t,e),set:(e,...n)=>(0,vw(t)[22])(t,e,...n),sub:(e,n)=>(0,vw(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},XS,JS,ZS,QS,ew,tw,nw,iw,ow,aw,sw,lw,uw,cw,dw,pw,fw,void 0,new WeakMap,hw,mw,[0]].map((t,n)=>e[n]||t);return gw.set(t,Object.freeze(n)),t}let xw,Sw=0;function ww(e,n){const r="atom"+ ++Sw,i={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?i.read=e:(i.init=e,i.read=Cw,i.write=Ew),n&&(i.write=n),i}function Cw(e){return e(this)}function Ew(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Iw(){return bw()}const Dw=u(void 0);function Rw(e){const n=h(Dw);return(null==e?void 0:e.store)||n||(xw||(xw=Iw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=xw),globalThis.__JOTAI_DEFAULT_STORE__!==xw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),xw)}function Pw({children:e,store:t}){const n=l(null);return t?r(Dw.Provider,{value:t},e):(null===n.current&&(n.current=Iw()),r(Dw.Provider,{value:n.current},e))}const Mw=e=>"function"==typeof(null==e?void 0:e.then),Lw=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Aw=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Lw(e),e)}),kw=new WeakMap,Ow=(e,t,n)=>{const r=yw(e)[26];let i=kw.get(t);return i||(i=new Promise((o,a)=>{let s=t;const l=e=>t=>{s===e&&o(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=n();Mw(t)?(kw.set(t,i),s=t,t.then(l(t),u(t)),r(e,t,c)):o(t)}catch(e){a(e)}};t.then(l(t),u(t)),r(e,t,c)}),kw.set(t,i)),i};function qw(e,t){const{delay:r,unstable_promiseStatus:i=!n.use}={},o=Rw(t),[[a,s,l],u]=c(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let f=a;if(s===o&&l===e||(u(),f=o.get(e)),d(()=>{const t=o.sub(e,()=>{if(i)try{const t=o.get(e);Mw(t)&&Lw(Ow(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(u,r);u()});return u(),t},[o,e,r,i]),p(f),Mw(f)){const t=Ow(o,f,()=>o.get(e));return i&&Lw(t),Aw(t)}return f}function Tw(e,n){const r=Rw(n);return f((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function jw(e,t){return[qw(e,t),Tw(e,t)]}t.meta.env&&t.meta.env.MODE;!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))}},n){var r;let i,o;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(i!==(e=e||"")){try{o=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}i=e}return o},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,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const Nw=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),_w=new WeakMap,Fw=()=>{};const zw=new WeakMap;function Ww(e,t){const n=Rw(t),r=$w(n);for(const[i,...o]of e)r.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(i),n.set(i,...o))}const $w=e=>{let t=zw.get(e);return t||(t=new WeakSet,zw.set(e,t)),t};function Hw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Vw(e){const t=ww(()=>[]),n=ww(function(e){const[r,i,o]=e(t);o.has(n)&&(r.forEach(e),++i.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=new Set;let i,o=0,a=!1,s=!1,l=!1;function u(){if(o)return;r.clear();let t=!0;const c=i=>{if(l)return e.get(i);if(i===n){const t=h(e,i);if(!HS(t)){if(!WS(i))throw new Error("no atom init");S(e,i,i.init)}return VS(t)}const o=v(e,i);try{return VS(o)}finally{C.d.set(i,o.n),d.get(i)?.t.add(n),t?r.add(i):d.has(i)&&(x(e,n),g(e),m(e))}};c.peek=e.get;const w=(r,...i)=>{const a=h(e,r);try{if(++o,r===n){if(!WS(r))throw new Error("atom not writable");const t=a.n,n=i[0];return S(e,r,n),x(e,r),void(t!==a.n&&(p.add(r),f.c?.(r),y(e,r)))}return b(e,r,...i)}finally{t||(g(e),m(e)),--o}};w.recurse=(t,...r)=>{if(l){if(Hw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,n),w(t,...r)}finally{g(e),a=!1,s&&(s=!1,u())}};try{i?.();const e=n.effect(c,w);if("function"!=typeof e)return;i=()=>{if(!o)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,i=void 0}}}finally{t=!1,r.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,n),g(e)}}const c=yw(e),d=c[1],p=c[3],f=KS(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 n=Bw.get(e);n||(n=new Set,Bw.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,f),C=h(e,n);C.v=void 0,Object.assign(e.get(t),[r,C,d]),f.c.add(n,function(){p.delete(n)}),f.m.add(n,function(){w.add(u),i&&w.delete(i)}),f.u.add(n,function(){w.delete(u),i&&w.add(i)}),f.c.add(n,function(){a?s=!0:w.add(u)})},Hw()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Bw=new WeakMap;const Gw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionToAlternative(r.def.qDef.cId):await t.moveMeasureToAlternative(r.def.qDef.cId))},Uw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionFromAlternative(r.def.qDef.cId):await t.moveMeasureFromAlternative(r.def.qDef.cId))},Yw=async e=>{const{type:t,handler:n,model:r,fieldInfo:i,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await Uw(i,n,t);for(const t of e.localUnchecked)await Gw(i,n,t);break;case"checked":await Uw(i,n,e.cId);break;case"unchecked":await Gw(i,n,e.cId)}})},Kw=ww(),Xw=ww(),Jw=ww(),Zw=ww(e=>e(Jw)?.translate??(e=>e)),Qw=ww(""),eC=ww(e=>{const t=e(Qw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),tC=e=>7005!==e.qError?.qErrorCode,nC=new WeakMap,rC={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},iC=function(e,n=Fw){return((e,t,n)=>{const r=Nw(()=>new WeakMap,_w,t);return Nw(e,r,n)})(()=>{const r=new WeakMap,i=new WeakMap,o=ww(0),a=ww([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(o,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(o.debugPrivate=!0,a.debugPrivate=!0);const s=ww(t=>{let l;t(o);try{l=t(s)}catch(e){}const 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=>{i.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u))throw r.get(u);return i.has(u)?{p:u,v:i.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),ww(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}(ww(async e=>{const t=e(Kw);if(t){if(nC.has(t))return nC.get(t);try{const e=await t.app.createSessionObject(rC);return nC.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),oC=ww(null),aC=ww(),sC=Vw((e,t)=>{const n=e(Kw),r=e(iC);if(!n||!r)return;const i=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const i=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const o=await r.getLayout();t(aC,{layout:structuredClone(e),properties:structuredClone(i),altLayout:structuredClone(o)}),t(oC,null)};return i(),n.Invalidated?.bind(i),()=>{n.Invalidated?.unbind(i)}}),lC=ww(e=>e(aC)?.layout),uC=ww(e=>e(aC)?.altLayout),cC=ww(e=>e(aC)?.properties),dC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qDimensionInfo.filter(tC)??[]}),pC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qMeasureInfo.filter(tC)??[]}),fC=ww(e=>{const t=e(lC),n=e(dC),r=e(pC),i=e(cC),o=new Map;return t&&i?(n.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"dimension",def:i.qHyperCubeDef.qDimensions[t]})}),r.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"measure",def:i.qHyperCubeDef.qMeasures[t]})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})}),o):o});class hC{#e=[];#t=!1;#n=!1;#r;#i;#o;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#i=void 0,this.#o=void 0,this.#a=void 0}pause(){this.#i&&(clearTimeout(this.#a),this.#o?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#i=e,this.#o=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#o;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#o&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#o?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#i)await this.#i;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const mC=ww(null),gC=Vw((e,t)=>{const n=e(Kw),r=e(Xw),i=new hC({onQueueCompleted:async()=>{n&&r&&await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(mC,i);const o=()=>{i.pause()},a=()=>{i.continue(500)},s=()=>{i.abort()};return n?.Invalidated?.bind(o),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{i.abort(),n?.Invalidated?.unbind(o),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),vC=ww(e=>{const t=[...e(dC),...e(pC)].map(e=>e.cId);return new Set(t)}),yC=ww(new Set),bC=ww(new Set),xC=ww(e=>{const t=e(yC),n=e(bC);return e(vC).difference(n).union(t)}),SC=Vw((e,t)=>{e(vC),t(yC,new Set),t(bC,new Set)}),wC=ww(e=>e(xC),(e,t,n)=>{const r=e(xC).has(n),i=new Set(e(bC)),o=new Set(e(yC));r?(i.add(n),o.delete(n)):(o.add(n),i.delete(n)),t(bC,i),t(yC,o),Yw({type:r?"unchecked":"checked",cId:n,handler:e(Xw),model:e(Kw),fieldInfo:e(fC),handlerQueue:e(mC)})}),CC=({props:e,children:t})=>(Ww([[Kw,e.args.model],[Jw,e.args.apis],[Xw,e.args.handler]]),qw(SC),qw(sC),qw(gC),t);function EC(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function IC(e){return"write"in e}const DC=new WeakMap,RC={},{read:PC,write:MC}=ww(null);function LC(e,t,n){const[r,i,o,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=i.get(t);return r||(r=[qC(e,t,n),n],i.set(t,r)),r}const l=n??RC;let u=o.get(l);u||(u=new WeakMap,o.set(l,u));let c=u.get(t);if(!c){const[r,i]=a?LC(a,t,n):[t];c=[t.read===PC?r:qC(e,t,i),i],u.set(t,c)}return c}function AC(e){for(const t of e[5])t()}function kC(e,t,n,r,i){if(n.read===PC&&IC(n)&&IC(t)&&n.write!==MC&&e!==r){const{write:o}=n;return t.write=OC(e,n.write.bind(n),r,i),()=>{t.write=o}}}function OC(e,t,n,r=n){return function(i,o,...a){return t(function(t){const[r]=LC(e,t,n);return i(r)},function(t,...i){const[a]=LC(e,t,n),s=kC(e,a,t,n,r);try{return o(a,...i)}finally{null==s||s()}},...a)}}function qC(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const i=Object.getPrototypeOf(t),o=Object.create(i,r);return o.read!==PC&&(o.read=function(e,t,n){return function(r,i){return t(function(t){const[i]=LC(e,t,n);return r(i)},i)}}(e,t.read.bind(t),n)),IC(o)&&IC(t)&&o.write!==MC&&(o.write=OC(e,t.write.bind(t),n)),o}function TC({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const i=new WeakSet(e),o=DC.get(n),a=(null==o?void 0:o[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,o,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=[...yw(t)],r=n[21],i=n[22],o=n[23],a=n[9],s={};n[9]=(e,t)=>a(l,t),n[21]=h(r),n[22]=p,n[23]=h(o),n[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],e=>d(t[0],e)),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=bw(...n);return l;function u(t){const n=new WeakMap;return function(r){let i=n.get(r);if(i)return i;const o=t(r);return o?(i={...o,d:m(o.d,function(t){return n=>t(LC(e,n)[0])}),p:g(o.p),get n(){return o.n},set n(e){o.n=e},get v(){return o.v},set v(e){o.v=e},get e(){return o.e},set e(e){o.e=e}},n.set(r,i),i):void 0}}function c(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const i=e(n);return i?(r={...i,d:g(i.d),t:g(i.t),get u(){return i.u},set u(e){i.u=e}},t.set(n,r),r):void 0}}function d(e,t){return function(n,r){return e.get(r)||(e.set(r,t(n,r)),e.get(r))}}function p(t,n,...r){const[o,a]=LC(e,n),s=kC(e,o,n,a,e);try{return i(t,o,...r)}finally{null==s||s()}}function f(t,n){return function(r,...i){const[o]=LC(e,r);return(n?n(t):t)(o,...i)}}function h(t,n){return function(r,i,...o){const[a]=LC(e,i);return(n?n(t):t)(r,a,...o)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield LC(e,n)[0]}}}function v(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[i]=LC(e,n);return t.add(i,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),DC.set(c,s);for(const t of new Set(e))l.set(t,[qC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[qC(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!i.has(t)&&l.delete(t):l.set(t,[qC(s,t,s),s])});u.add(t)}return c}const jC=function(e,t){return function(n){const{atoms:i=[],atomFamilies:o=[],children:a,scope:s,name:l}=n,u=t(),c=Array.from(i,e=>Array.isArray(e)?e[0]:e);function p(){return[s??TC({atoms:c,atomFamilies:o,parentStore:u,name:l}),function(e){return u!==e.parentStore||!EC(c,e.atoms)||!EC(o,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:o,parentStore:u,providedScope:s})){const e=DC.get(f);e&&AC(e),g(p)}return Ww(Array.from(i).filter(Array.isArray),{store:f}),d(()=>{const e=DC.get(f);return()=>{e&&AC(e)}},[f]),r(e,{store:f,children:a})}}(Pw,Rw);var NC=Object.defineProperty,_C=Object.defineProperties,FC=Object.getOwnPropertyDescriptors,zC=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,HC=(e,t,n)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VC=(e,t)=>{for(var n in t||(t={}))WC.call(t,n)&&HC(e,n,t[n]);if(zC)for(var n of zC(t))$C.call(t,n)&&HC(e,n,t[n]);return e},BC=(e,t)=>_C(e,FC(t));function GC(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function UC(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function YC(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(UC(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&UC(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return BC(VC({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return BC(VC({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&UC(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return BC(VC({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return BC(VC({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,GC)}function KC(e,t){let n=null;const r=new Map,i=new Set;function o(i){let s;if(void 0===t)s=r.get(i);else for(const[e,n]of r)if(t(e,i)){s=n;break}if(void 0!==s){if(!n?.(s[1],i))return s[0];o.remove(i)}const l=e(i);return r.set(i,[l,Date.now()]),a("CREATE",i,l),l}function a(e,t,n){for(const r of i)r({type:e,param:t,atom:n})}return o.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),o.getParams=()=>r.keys(),o.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[i]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,i);break}},o.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,i]]of r)n(i,e)&&(r.delete(e),a("REMOVE",e,t))},o}const XC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,JC=ww(),ZC=ww(e=>e(JC)?.numberOfSections??0),QC=ww(e=>e(JC)?.numberOfItemsInSection??[]),eE=ww(e=>e(JC)?.keyExtractor??XC),tE=ww(e=>e(JC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),nE=ww(e=>e(JC)?.onDragEnd),rE=ww(e=>e(JC)?.onDragOver),iE=ww(e=>e(JC)?.itemRenderer),oE=ww(e=>e(JC)?.headerRenderer),aE=ww(e=>e(JC)?.dragOverlayRenderer),sE=ww(e=>e(JC)?.onClick),lE=ww(e=>{const t=e(ZC),n=e(QC),r=e(eE),i={};for(let e=0;e<t;e++)i[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return i}),uE=ww(null),cE=ww(e=>e(uE),(e,t,n)=>{if(null===n)return void t(uE,null);const r=e(uE);t(uE,{...r,...n})}),dE=KC(e=>ww(null,(t,n,r)=>{let i;"over"===e?i=t(rE):"end"===e&&(i=t(nE),n(cE,null));const{source:o,target:a}=r.operation;if(null===a)return void n(cE,{toIndex:void 0,toSectionIndex:void 0});const s=YC(t(lE),r)[a.data.sectionIndex].indexOf(o.id),l=-1!==s?s:a.sortable?.index??0;"start"===e?n(cE,{id:o.id,startSection:o.data.sectionKey,startIndex:o.data.itemIndex,startSectionIndex:o.data.sectionIndex}):"over"===e&&n(cE,{toIndex:l,toSectionIndex:a.data.sectionIndex}),i?.({id:o.id,toIndex:l,toSection:a.data.sectionKey,fromSection:o.data.sectionKey,startSection:t(cE)?.startSection??o.data.sectionKey,event:r})})),pE=[JC,ZC,QC,eE,tE,nE,iE,oE,sE,cE],fE=[dE],hE=({props:e,children:t})=>{const n=Tw(JC);return g(()=>{n(e)},[e,n]),t};var mE=Symbol.for("preact-signals");function gE(){if(SE>1)SE--;else{var e,t=!1;for(!function(){var e=IE;for(IE=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==xE;){var n=xE;for(xE=void 0,wE++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&LE(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(wE=0,SE--,t)throw e}}function vE(e){if(SE>0)return e();EE=++CE,SE++;try{return e()}finally{gE()}}var yE=void 0;function bE(e){var t=yE;yE=void 0;try{return e()}finally{yE=t}}var xE=void 0,SE=0,wE=0,CE=0,EE=0,IE=void 0,DE=0;function RE(e){if(void 0!==yE){var t=e.n;if(void 0===t||t.t!==yE)return t={i:0,S:e,p:yE.s,n:void 0,t:yE,e:void 0,x:void 0,r:t},void 0!==yE.s&&(yE.s.n=t),yE.s=t,e.n=t,32&yE.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=yE.s,t.n=void 0,yE.s.n=t,yE.s=t),t}}function PE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ME(e,t){return new PE(e,t)}function LE(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 AE(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function kE(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function OE(e,t){PE.call(this,void 0),this.x=e,this.s=void 0,this.g=DE-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 qE(e,t){return new OE(e,t)}function TE(e){var t=e.m;if(e.m=void 0,"function"==typeof t){SE++;var n=yE;yE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,jE(e),t}finally{yE=n,gE()}}}function jE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TE(e)}function NE(e){if(yE!==this)throw new Error("Out-of-order effect");kE(this),yE=e,this.f&=-2,8&this.f&&jE(this),gE()}function _E(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function FE(e,t){var n=new _E(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}PE.prototype.brand=mE,PE.prototype.h=function(){return!0},PE.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:bE(function(){var e;null==(e=t.W)||e.call(t)}))},PE.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&bE(function(){var e;null==(e=t.Z)||e.call(t)}))}},PE.prototype.subscribe=function(e){var t=this;return FE(function(){var n=t.value,r=yE;yE=void 0;try{e(n)}finally{yE=r}},{name:"sub"})},PE.prototype.valueOf=function(){return this.value},PE.prototype.toString=function(){return this.value+""},PE.prototype.toJSON=function(){return this.value},PE.prototype.peek=function(){var e=yE;yE=void 0;try{return this.value}finally{yE=e}},Object.defineProperty(PE.prototype,"value",{get:function(){var e=RE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wE>100)throw new Error("Cycle detected");!function(e){0!==SE&&0===wE&&e.l!==EE&&(e.l=EE,IE={S:e,v:e.v,i:e.i,o:IE})}(this),this.v=e,this.i++,DE++,SE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gE()}}}}),OE.prototype=new PE,OE.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===DE)return!0;if(this.g=DE,this.f|=1,this.i>0&&!LE(this))return this.f&=-2,!0;var e=yE;try{AE(this),yE=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 yE=e,kE(this),this.f&=-2,!0},OE.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)}PE.prototype.S.call(this,e)},OE.prototype.U=function(e){if(void 0!==this.t&&(PE.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)}},OE.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(OE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),_E.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},_E.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TE(this),AE(this),SE++;var e=yE;return yE=this,NE.bind(this,e)},_E.prototype.N=function(){2&this.f||(this.f|=2,this.u=xE,xE=this)},_E.prototype.d=function(){this.f|=8,1&this.f||jE(this)},_E.prototype.dispose=function(){this.d()};var zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE,QE,eI,tI,nI,rI,iI,oI,aI=Object.create,sI=Object.defineProperty,lI=Object.defineProperties,uI=Object.getOwnPropertyDescriptor,cI=Object.getOwnPropertyDescriptors,dI=Object.getOwnPropertySymbols,pI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,hI=e=>{throw TypeError(e)},mI=(e,t,n)=>t in e?sI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gI=(e,t)=>sI(e,"name",{value:t,configurable:!0}),vI=["class","method","getter","setter","accessor","field","value","get","set"],yI=e=>void 0!==e&&"function"!=typeof e?hI("Function expected"):e,bI=(e,t,n,r,i)=>({kind:vI[e],name:t,metadata:r,addInitializer:e=>n._?hI("Already initialized"):i.push(yI(e||null))}),xI=(e,t)=>{return mI(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},SI=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},wI=(e,t,n,r,i,o)=>{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=vI[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&uI(d<4?i:{get[n](){return II(this,o)},set[n](e){return RI(this,o,e)}},n));d?f&&d<4&&gI(o,(d>2?"set ":d>1?"get ":"")+n):gI(i,n);for(var b=r.length-1;b>=0;b--)u=bI(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EI(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?II:PI)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>RI(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?yI(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?hI("Object expected"):(yI(a=s.get)&&(y.get=a),yI(a=s.set)&&(y.set=a),yI(a=s.init)&&g.unshift(a));return d||xI(e,i),y&&sI(i,n,y),f?4^d?o:y:i},CI=(e,t,n)=>t.has(e)||hI("Cannot "+n),EI=(e,t)=>Object(t)!==t?hI('Cannot use the "in" operator on this value'):e.has(t),II=(e,t,n)=>(CI(e,t,"read from private field"),n?n.call(e):t.get(e)),DI=(e,t,n)=>t.has(e)?hI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),RI=(e,t,n,r)=>(CI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),PI=(e,t,n)=>(CI(e,t,"access private method"),n);function MI(e,t){if(t){let n;return qE(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return qE(e)}function LI(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 n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!LI(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=n.some(n=>!LI(e[n],t[n]));return!i}return!1}function AI({get:e},t){return{init:e=>ME(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function kI(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=MI(e.bind(this)),n.set(this,t)),t.value}}function OI(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>lI(e,cI(t)))(((e,t)=>{for(var n in t||(t={}))pI.call(t,n)&&mI(e,n,t[n]);if(dI)for(var n of dI(t))fI.call(t,n)&&mI(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function qI(...e){const t=e.map(e=>FE(e));return()=>t.forEach(e=>e())}BE=[AI],VE=[AI],HE=[AI],$E=[OI()],WE=[OI()],zE=[OI()];var TI,jI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,SI(GE,5,this),DI(this,JE),DI(this,UE,SI(GE,8,this)),SI(GE,11,this),DI(this,ZE,SI(GE,12,this)),SI(GE,15,this),DI(this,nI,SI(GE,16,this)),SI(GE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return II(this,JE,iI)}get initial(){return II(this,JE,KE)}get previous(){return II(this,JE,eI)}set current(e){const t=bE(()=>II(this,JE,iI));e&&t&&this.equals(t,e)||vE(()=>{II(this,JE,KE)||RI(this,JE,e,XE),RI(this,JE,t,tI),RI(this,JE,e,oI)})}reset(e=this.defaultValue){vE(()=>{RI(this,JE,void 0,tI),RI(this,JE,e,XE),RI(this,JE,e,oI)})}};function NI(e){return bE(()=>{const t={};for(const n in e)t[n]=e[n];return t})}GE=[,,,aI(null)],UE=new WeakMap,JE=new WeakSet,ZE=new WeakMap,nI=new WeakMap,YE=wI(GE,20,"#initial",BE,JE,UE),KE=YE.get,XE=YE.set,QE=wI(GE,20,"#previous",VE,JE,ZE),eI=QE.get,tI=QE.set,rI=wI(GE,20,"#current",HE,JE,nI),iI=rI.get,oI=rI.set,wI(GE,2,"current",$E,jI),wI(GE,2,"initial",WE,jI),wI(GE,2,"previous",zE,jI),xI(GE,jI);TI=new WeakMap;var _I,FI,zI,WI,$I,HI=Object.create,VI=Object.defineProperty,BI=Object.getOwnPropertyDescriptor,GI=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable,KI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),XI=e=>{throw TypeError(e)},JI=Math.pow,ZI=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QI=["class","method","getter","setter","accessor","field","value","get","set"],eD=e=>void 0!==e&&"function"!=typeof e?XI("Function expected"):e,tD=(e,t,n,r,i)=>({kind:QI[e],name:t,metadata:r,addInitializer:e=>n._?XI("Already initialized"):i.push(eD(e||null))}),nD=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=QI[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,BI(i,n)),h=r.length-1;h>=0;h--)(l=tD(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,eD(a)&&(f[d]=a);return f&&VI(i,n,f),i},rD=(e,t,n)=>t.has(e)||XI("Cannot "+n),iD=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},oD=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:o,height:a,scale:s}=this,l=new e(i+t,r+n,o,a);return l.scale=((e,t)=>{for(var n in t||(t={}))UI.call(t,n)&&ZI(e,n,t[n]);if(GI)for(var n of GI(t))YI.call(t,n)&&ZI(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new iD((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}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:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return iD.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var aD,sD=class extends(zI=jI,FI=[kI],_I=[kI],zI){constructor(e){var t,n,r;super(iD.from(e),(e,t)=>iD.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})($I,5,this),t=this,r=0,(n=WI).has(t)?XI("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return iD.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=iD.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(rD(a=this,s=WI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{rD(e,t,"write to private field"),t.set(e,n)})(this,WI,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(iD.from(e)),this.velocity={x:0,y:0}}};function lD({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(JI(r,2)+JI(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}$I=(e=>{var t;return[,,,HI(null!=(t=null==e?void 0:e[KI("metadata")])?t:null)]})(zI),WI=new WeakMap,nD($I,2,"delta",FI,sD),nD($I,2,"direction",_I,sD),aD=$I,ZI(sD,KI("metadata"),aD[3]);var uD,cD,dD,pD,fD=(e=>(e.Horizontal="x",e.Vertical="y",e))(fD||{}),hD=Object.values(fD),mD=Object.create,gD=Object.defineProperty,vD=Object.defineProperties,yD=Object.getOwnPropertyDescriptor,bD=Object.getOwnPropertyDescriptors,xD=Object.getOwnPropertySymbols,SD=Object.prototype.hasOwnProperty,wD=Object.prototype.propertyIsEnumerable,CD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ED=e=>{throw TypeError(e)},ID=(e,t,n)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DD=(e,t)=>{for(var n in t||(t={}))SD.call(t,n)&&ID(e,n,t[n]);if(xD)for(var n of xD(t))wD.call(t,n)&&ID(e,n,t[n]);return e},RD=(e,t)=>vD(e,bD(t)),PD=(e,t)=>gD(e,"name",{value:t,configurable:!0}),MD=(e,t)=>{var n={};for(var r in e)SD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xD)for(var r of xD(e))t.indexOf(r)<0&&wD.call(e,r)&&(n[r]=e[r]);return n},LD=e=>{var t;return[,,,mD(null!=(t=null==e?void 0:e[CD("metadata")])?t:null)]},AD=["class","method","getter","setter","accessor","field","value","get","set"],kD=e=>void 0!==e&&"function"!=typeof e?ED("Function expected"):e,OD=(e,t,n,r,i)=>({kind:AD[e],name:t,metadata:r,addInitializer:e=>n._?ED("Already initialized"):i.push(kD(e||null))}),qD=(e,t)=>ID(t,CD("metadata"),e[3]),TD=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},jD=(e,t,n,r,i,o)=>{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=AD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&yD(d<4?i:{get[n](){return FD(this,o)},set[n](e){return WD(this,o,e)}},n));d?f&&d<4&&PD(o,(d>2?"set ":d>1?"get ":"")+n):PD(i,n);for(var b=r.length-1;b>=0;b--)u=OD(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>_D(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?FD:$D)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>WD(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?kD(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?ED("Object expected"):(kD(a=s.get)&&(y.get=a),kD(a=s.set)&&(y.set=a),kD(a=s.init)&&g.unshift(a));return d||qD(e,i),y&&gD(i,n,y),f?4^d?o:y:i},ND=(e,t,n)=>t.has(e)||ED("Cannot "+n),_D=(e,t)=>Object(t)!==t?ED('Cannot use the "in" operator on this value'):e.has(t),FD=(e,t,n)=>(ND(e,t,"read from private field"),n?n.call(e):t.get(e)),zD=(e,t,n)=>t.has(e)?ED("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),WD=(e,t,n,r)=>(ND(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$D=(e,t,n)=>(ND(e,t,"access private method"),n);function HD(e,t){return{plugin:e,options:t}}function VD(e){return t=>HD(e,t)}function BD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}uD=[AI];var GD=class{constructor(e,t){this.manager=e,this.options=t,zD(this,dD,TD(cD,8,this,!1)),TD(cD,11,this),zD(this,pD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bE(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=FE(e.bind(this));return FD(this,pD).add(t),t}destroy(){FD(this,pD).forEach(e=>e())}static configure(e){return HD(this,e)}};cD=LD(null),dD=new WeakMap,pD=new WeakMap,jD(cD,4,"disabled",uD,GD,dD),qD(cD,GD);var UD,YD=class extends GD{},KD=class{constructor(e){this.manager=e,this.instances=new Map,zD(this,UD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BD).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(const e of FD(this,UD))if(!n.includes(e)){if(e.prototype instanceof YD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);WD(this,UD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}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 XD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}UD=new WeakMap;var JD,ZD,QD=[],eR=class extends GD{constructor(e){super(e),zD(this,JD),zD(this,ZD),this.computeCollisions=this.computeCollisions.bind(this),WD(this,ZD,ME(QD)),this.destroy=qI(()=>{const e=this.computeCollisions(),t=bE(()=>this.manager.dragOperation.position.current);if(e!==QD){const e=FD(this,JD);if(WD(this,JD,t),e&&t.x==e.x&&t.y==e.y)return}else WD(this,JD,void 0);FD(this,ZD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bE(()=>{e?FD(this,ZD).value=this.computeCollisions():WD(this,JD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:a}=r;if(!a.initialized||!o)return QD;const s=[],l=[];for(const o of null!=e?e:n.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;const n=bE(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),s.push(n))}return 0===l.length?QD:(s.sort(XD),s)}get collisions(){return FD(this,ZD).value}};JD=new WeakMap,ZD=new WeakMap;var tR=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},nR=class extends tR{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function rR(e,t=!0){let n=!1;return RD(DD({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var iR,oR,aR,sR,lR,uR,cR,dR,pR,fR=class extends YD{constructor(e){super(e);let t=[];this.destroy=qI(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:i}=n;if(n.isDisabled())return;const o=rR({collisions:i});if(r.dispatch("collision",o),o.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(i,t))return;t=i;const[a]=i;bE(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},hR=(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))(hR||{}),mR=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(mR||{});cR=[AI],uR=[kI],lR=[kI],sR=[kI],aR=[kI],oR=[kI],iR=[kI];var gR=class{constructor(){TD(dR,5,this),zD(this,pR,TD(dR,8,this,"idle")),TD(dR,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}};dR=LD(null),pR=new WeakMap,jD(dR,4,"value",cR,gR,pR),jD(dR,2,"current",uR,gR),jD(dR,2,"idle",lR,gR),jD(dR,2,"initializing",sR,gR),jD(dR,2,"initialized",aR,gR),jD(dR,2,"dragging",oR,gR),jD(dR,2,"dropped",iR,gR),qD(dR,gR);var vR,yR,bR,xR,SR,wR,CR,ER,IR,DR=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 bE(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=rR({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return bE(()=>{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 n=new AbortController,{event:r,coordinates:i}=e;vE(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});const o=rR({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))}),n)})}move(e){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;const a=rR({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,i,o,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let o;i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=bE(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=FE(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),o?o.then(a).catch(()=>r.reset()):a()})}};xR=[AI],bR=[AI],yR=[AI],vR=[AI];var RR=class{constructor(e,t){zD(this,wR,TD(SR,8,this)),TD(SR,11,this),zD(this,CR,TD(SR,12,this)),TD(SR,15,this),zD(this,ER,TD(SR,16,this)),TD(SR,19,this),zD(this,IR,TD(SR,20,this)),TD(SR,23,this);const{effects:n,id:r,data:i={},disabled:o=!1,register:a=!0}=e;let s=r;this.manager=t,this.id=r,this.data=i,this.disabled=o,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==n?void 0:n())?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)}};SR=LD(null),wR=new WeakMap,CR=new WeakMap,ER=new WeakMap,IR=new WeakMap,jD(SR,4,"manager",xR,RR,wR),jD(SR,4,"id",bR,RR,CR),jD(SR,4,"data",yR,RR,ER),jD(SR,4,"disabled",vR,RR,IR),qD(SR,RR);var PR,MR,LR,AR,kR,OR,qR,TR,jR,NR,_R,FR,zR,WR,$R,HR,VR,BR,GR,UR,YR,KR,XR,JR,ZR=class{constructor(){this.map=ME(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const o=new Map(n);o.set(e,t),this.map.value=o;const a=qI(...t.effects());return this.cleanupFunctions.set(t,a),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[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}},QR=class extends(qR=RR,OR=[AI],kR=[AI],AR=[AI],LR=[kI],MR=[kI],PR=[kI],qR){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:o}=n,a=MD(n,["modifiers","type","sensors"]);super(a,t),TD(TR,5,this),zD(this,jR,TD(TR,8,this)),TD(TR,11,this),zD(this,NR,TD(TR,12,this)),TD(TR,15,this),zD(this,_R,TD(TR,16,this,this.isDragSource?"dragging":"idle")),TD(TR,19,this),this.type=i,this.sensors=o,this.modifiers=r,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}};TR=LD(qR),jR=new WeakMap,NR=new WeakMap,_R=new WeakMap,jD(TR,4,"type",OR,QR,jR),jD(TR,4,"modifiers",kR,QR,NR),jD(TR,4,"status",AR,QR,_R),jD(TR,2,"isDropping",LR,QR),jD(TR,2,"isDragging",MR,QR),jD(TR,2,"isDragSource",PR,QR),qD(TR,QR);var eP=class extends(BR=RR,VR=[AI],HR=[AI],$R=[AI],WR=[AI],zR=[AI],FR=[kI],BR){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:o,type:a}=n;super(MD(n,["accept","collisionDetector","collisionPriority","type"]),t),TD(GR,5,this),zD(this,UR,TD(GR,8,this)),TD(GR,11,this),zD(this,YR,TD(GR,12,this)),TD(GR,15,this),zD(this,KR,TD(GR,16,this)),TD(GR,19,this),zD(this,XR,TD(GR,20,this)),TD(GR,23,this),zD(this,JR,TD(GR,24,this)),TD(GR,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=o,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}};GR=LD(BR),UR=new WeakMap,YR=new WeakMap,KR=new WeakMap,XR=new WeakMap,JR=new WeakMap,jD(GR,4,"accept",VR,eP,UR),jD(GR,4,"type",HR,eP,YR),jD(GR,4,"collisionDetector",$R,eP,KR),jD(GR,4,"collisionPriority",WR,eP,XR),jD(GR,4,"shape",zR,eP,JR),jD(GR,2,"isDropTarget",FR,eP),qD(GR,eP);var tP,nP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},rP=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)}},iP=class{constructor(e){this.options=e,zD(this,tP)}set controller(e){WD(this,tP,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=FD(this,tP))||t.activate(e)}};tP=new WeakMap;var oP,aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,vP,yP,bP,xP,SP,wP,CP,EP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},IP=class{constructor(e){this.draggables=new ZR,this.droppables=new ZR,this.plugins=new KD(e),this.sensors=new KD(e),this.modifiers=new KD(e)}register(e,t){if(e instanceof QR)return this.draggables.register(e.id,e);if(e instanceof eP)return this.droppables.register(e.id,e);if(e.prototype instanceof EP)return this.modifiers.register(e,t);if(e.prototype instanceof nP)return this.sensors.register(e,t);if(e.prototype instanceof GD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof RR)return e instanceof QR?this.draggables.unregister(e.id,e):e instanceof eP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof EP)return this.modifiers.unregister(e);if(e.prototype instanceof nP)return this.sensors.unregister(e);if(e.prototype instanceof GD)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()}};fP=[kI],pP=[AI],dP=[AI],cP=[AI],uP=[AI],lP=[AI],sP=[kI],aP=[kI],oP=[kI];var DP=class{constructor(e){TD(vP,5,this),zD(this,hP),zD(this,mP),zD(this,gP,new jI(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new gR,zD(this,yP,TD(vP,8,this,!1)),TD(vP,11,this),zD(this,bP,TD(vP,12,this,null)),TD(vP,15,this),zD(this,xP,TD(vP,16,this,null)),TD(vP,19,this),zD(this,SP,TD(vP,20,this,null)),TD(vP,23,this),zD(this,wP,TD(vP,24,this,[])),TD(vP,27,this),this.position=new sD({x:0,y:0}),zD(this,CP,{x:0,y:0}),WD(this,hP,e)}get shape(){const{current:e,initial:t,previous:n}=FD(this,gP);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?FD(this,gP).current=e:FD(this,gP).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=FD(this,hP).registry.draggables.get(t);return n&&WD(this,mP,n),null!=(e=null!=n?n:FD(this,mP))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=FD(this,hP).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(RD(DD({},this.snapshot()),{transform:n}));return WD(this,CP,n),n}snapshot(){return bE(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:FD(this,CP),shape:this.shape?NI(this.shape):null,position:NI(this.position),status:NI(this.status),canceled:this.canceled}))}reset(){vE(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,FD(this,gP).reset(),this.position.reset({x:0,y:0}),WD(this,CP,{x:0,y:0}),this.modifiers=[]})}};vP=LD(null),hP=new WeakMap,mP=new WeakMap,gP=new WeakMap,yP=new WeakMap,bP=new WeakMap,xP=new WeakMap,SP=new WeakMap,wP=new WeakMap,CP=new WeakMap,jD(vP,2,"shape",fP,DP),jD(vP,4,"canceled",pP,DP,yP),jD(vP,4,"activatorEvent",dP,DP,bP),jD(vP,4,"sourceIdentifier",cP,DP,xP),jD(vP,4,"targetIdentifier",uP,DP,SP),jD(vP,4,"modifiers",lP,DP,wP),jD(vP,2,"source",sP,DP),jD(vP,2,"target",aP,DP),jD(vP,2,"transform",oP,DP),qD(vP,DP);var RP={get rendering(){return Promise.resolve()}};function PP(e,t){return"function"==typeof e?e(t):null!=e?e:t}var MP=class{constructor(e){var t;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 n=null!=e?e:{},r=PP(n.plugins,[]),i=PP(n.sensors,[]),o=PP(n.modifiers,[]),a=null!=(t=n.renderer)?t:RP,s=new nR(this),l=new IP(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new DR(this),this.dragOperation=new DP(this),this.collisionObserver=new eR(this),this.plugins=[fR,...r],this.modifiers=o,this.sensors=i;const{destroy:u}=this,c=qI(()=>{var e,t,n;const r=bE(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of r)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=BD(e);return new t(this,n)}))?n:i});this.destroy=()=>{c(),u()}}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}},LP=e=>{throw TypeError(e)},AP=(e,t,n)=>t.has(e)||LP("Cannot "+n),kP=(e,t,n)=>(AP(e,t,"read from private field"),t.get(e)),OP=(e,t,n)=>t.has(e)?LP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qP=(e,t,n,r)=>(AP(e,t,"write to private field"),t.set(e,n),n),TP=(e,t,n)=>(AP(e,t,"access private method"),n);function jP(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function NP(e,t){const n=e.getAnimations();if(n.length>0)for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,r=(jP(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function _P(e){const{width:t,height:n,top:r,left:i,bottom:o,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:a}}function FP(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function zP(e){return"nodeType"in e}function WP(e){var t,n,r;return e?FP(e)?e:zP(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function $P(e){const{Document:t}=WP(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function HP(e){return!(!e||FP(e))&&(e instanceof WP(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function VP(e){return e instanceof WP(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function BP(e){return e?FP(e)?e.document:zP(e)?$P(e)?e:HP(e)||VP(e)?e.ownerDocument:document:document:document}function GP(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}function UP(e,t=e.getBoundingClientRect(),n=0){var r,i,o,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!GP(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),i=n*(e.bottom-e.top),o=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(i=null==p?void 0:p.offsetTop)?i:0,h=null!=(o=null==p?void 0:p.offsetLeft)?o:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=n*g,y=n*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+y),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function YP(e){return{x:e.clientX,y:e.clientY}}var KP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function XP(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...XP(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...XP(i.document,t))}}catch(e){}return n}function JP(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZP(){var e,t;const n=JP()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function QP(e){return!(!e||!zP(e))&&e instanceof WP(e).ShadowRoot}function eM(e){if(e&&zP(e)){let t=e.getRootNode();if(QP(t))return t;if(t instanceof Document)return t}return BP(e)}function tM(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function nM(e){return"value"in e}function rM(e){return"CANVAS"===e.tagName}function iM(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:i,top:o}=r.getBoundingClientRect();return iM(e,{x:t-i,y:n-o})}}return r}var oM=new WeakMap;var aM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:o}=t,a=[e,t];e.addEventListener(n,r,o),this.entries.add(a),i.push(a)}return function(){for(const[e,{type:t,listener:n,options:r}]of i)e.removeEventListener(t,n,r)}}};function sM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function lM(e,t){const n=()=>performance.now();let r,i;return function(...o){const a=this;i?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,o),i=n()},t-(n()-i))):(e.apply(a,o),i=n())}}var uM,cM=KP?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},dM=class extends cM{constructor(e){super(t=>{kP(this,uM)?e(t,this):qP(this,uM,!0)}),OP(this,uM,!1)}};uM=new WeakMap;var pM,fM,hM,mM,gM,vM,yM,bM,xM,SM,wM,CM=Array.from({length:100},(e,t)=>t/100),EM=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,OP(this,xM),this.disconnect=()=>{var e,t,n;qP(this,yM,!0),null==(e=kP(this,hM))||e.disconnect(),null==(t=kP(this,mM))||t.disconnect(),kP(this,gM).disconnect(),null==(n=kP(this,vM))||n.remove()},OP(this,pM,!0),OP(this,fM),OP(this,hM),OP(this,mM),OP(this,gM),OP(this,vM),OP(this,yM,!1),OP(this,bM,lM(()=>{var e,t,n;const{element:r}=this;if(null==(e=kP(this,mM))||e.disconnect(),kP(this,yM)||!kP(this,pM)||!r.isConnected)return;const i=null!=(t=r.ownerDocument)?t:document,{innerHeight:o,innerWidth:a}=null!=(n=i.defaultView)?n:window,s=r.getBoundingClientRect(),l=UP(r,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(o-d)}px ${h}px`;this.boundingClientRect=s,qP(this,mM,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:oD.intersectionRatio(n,UP(r)))&&kP(this,bM).call(this)},{threshold:CM,rootMargin:m,root:i})),kP(this,mM).observe(r),TP(this,xM,SM).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),qP(this,pM,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=UP(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const i=e.ownerDocument;(null==n?void 0:n.debug)&&(qP(this,vM,document.createElement("div")),kP(this,vM).style.background="rgba(0,0,0,0.15)",kP(this,vM).style.position="fixed",kP(this,vM).style.pointerEvents="none",i.body.appendChild(kP(this,vM))),qP(this,gM,new IntersectionObserver(t=>{var n,r;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:s,height:l}=o,u=kP(this,pM);qP(this,pM,a),(s||l)&&(u&&!a?(null==(n=kP(this,mM))||n.disconnect(),this.callback(null),null==(r=kP(this,hM))||r.disconnect(),qP(this,hM,void 0),kP(this,vM)&&(kP(this,vM).style.visibility="hidden")):kP(this,bM).call(this),a&&!kP(this,hM)&&(qP(this,hM,new dM(kP(this,bM))),kP(this,hM).observe(e)))},{threshold:CM,root:i})),kP(this,pM)&&!n.skipInitial&&this.callback(this.boundingClientRect),kP(this,gM).observe(e)}};pM=new WeakMap,fM=new WeakMap,hM=new WeakMap,mM=new WeakMap,gM=new WeakMap,vM=new WeakMap,yM=new WeakMap,bM=new WeakMap,xM=new WeakSet,SM=function(){kP(this,yM)||(TP(this,xM,wM).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,kP(this,fM))||(this.callback(this.boundingClientRect),qP(this,fM,this.boundingClientRect)))},wM=function(){if(kP(this,vM)){const{top:e,left:t,width:n,height:r}=UP(this.element);kP(this,vM).style.overflow="hidden",kP(this,vM).style.visibility="visible",kP(this,vM).style.top=`${Math.floor(e)}px`,kP(this,vM).style.left=`${Math.floor(t)}px`,kP(this,vM).style.width=`${Math.floor(n)}px`,kP(this,vM).style.height=`${Math.floor(r)}px`}};var IM,DM,RM,PM,MM=new WeakMap,LM=new WeakMap;function AM(e,t){let n=MM.get(e);if(!n){const t=new EM(e,t=>{const n=MM.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),MM.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(MM.delete(e),n.disconnect())}}var kM=class{constructor(e,t,n){this.callback=t,OP(this,IM),OP(this,DM,!1),OP(this,RM),OP(this,PM,lM(e=>{if(!kP(this,DM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kP(this,RM))if(e.target.contains(t)){this.callback(kP(this,IM).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=sM(e);for(;n;)t.add(n),n=sM(n);return t}(e),i=function(e,t){const n=new Set;for(const r of e){const e=AM(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;const r=e.ownerDocument;if(!LM.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),LM.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(n=LM.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),LM.delete(r))}):()=>{}}(e,kP(this,PM));qP(this,RM,r),qP(this,IM,new EM(e,t,n)),this.disconnect=()=>{kP(this,DM)||(qP(this,DM,!0),i(),o(),kP(this,IM).disconnect())}}};function OM(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function qM(e){try{OM(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function TM(e){return!(!KP||!e)&&e===BP(e).scrollingElement}function jM(e){var t,n;const r=WP(e),i=TM(e)?function(e){var t,n,r,i;const{documentElement:o}=BP(e),a=WP(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:o.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:o.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(i=null==a?void 0:a.offsetLeft)?i:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):_P(e),o=r.visualViewport,a=TM(e)?{height:null!=(t=null==o?void 0:o.height)?t:r.innerHeight,width:null!=(n=null==o?void 0:o.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:i,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function NM(e,t){const{isTop:n,isBottom:r,isLeft:i,isRight:o,position:a}=jM(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!i&&a.current.x+s>0,p=!o&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}IM=new WeakMap,DM=new WeakMap,RM=new WeakMap,PM=new WeakMap;var _M=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))}},FM=new _M(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),zM=new _M(e=>setTimeout(e,50)),WM=new Map,$M=WM.clear.bind(WM);function HM(e,t=!1){if(!t)return VM(e);let n=WM.get(e);return n||(n=VM(e),WM.set(e,n),zM.schedule($M),n)}function VM(e){return WP(e).getComputedStyle(e)}var BM={excludeElement:!0,escapeShadowDOM:!0};function GM(e,t=BM){const{limit:n,excludeElement:r,escapeShadowDOM:i}=t,o=new Set;return e?function t(a){if(null!=n&&o.size>=n)return o;if(!a)return o;if($P(a)&&null!=a.scrollingElement&&!o.has(a.scrollingElement))return o.add(a.scrollingElement),o;if(i&&QP(a))return t(a.host);if(!HP(a))return VP(a)?t(a.parentElement):o;if(o.has(a))return o;const s=HM(a,!0);if(r&&a===e||function(e,t=HM(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&o.add(a),function(e,t=HM(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&o.add(e),o}return t(a.parentNode)}(e):o}function UM(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=sM(e);for(;r;){if(r===t)return n;const e=_P(r),{x:i,y:o}=YM(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*o,r=sM(r)}return n}function YM(e,t=_P(e)){const n=Math.round(t.width),r=Math.round(t.height);if(HP(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const i=HM(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function KM(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function XM(e){var t,n,r,i,o,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=KM(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!=(n=null==f?void 0:f.y)?n:1,y=null!=(r=null==h?void 0:h.x)?r:0,b=null!=(i=null==h?void 0:h.y)?i:0,x=null!=(o=null==m?void 0:m.x)?o: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 JM=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(JM||{}),ZM={x:.2,y:.2},QM={x:10,y:10};function eL(e,t,n,r=25,i=ZM,o=QM){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=jM(e),f=UM(e),h=XM(HM(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new oD(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*i.y,S=v.width*i.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x?(y.y=g?1:-1,b.y=r*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x&&(y.y=g?-1:1,b.y=r*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y?(y.x=m?-1:1,b.x=r*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y&&(y.x=m?1:-1,b.x=r*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function tL(e,t=!1){if("scrollIntoViewIfNeeded"in(n=e)&&"function"==typeof n.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var n;if(!HP(e))return e.scrollIntoView();var r=function(e){const[t]=GM(e,{limit:1});return null!=t?t:null}(e);if(!HP(r))return;const i=HM(r,!0),o=parseInt(i.getPropertyValue("border-top-width")),a=parseInt(i.getPropertyValue("border-left-width")),s=e.offsetTop-r.offsetTop<r.scrollTop,l=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,u=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-a>r.scrollLeft+r.clientWidth,d=s&&!l;(s||l)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(u||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function nL({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function rL(e,t=HM(e).translate,n=!0){if(n){const t=NP(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=KM(e);if(t)return t}}}if(t){const e=KM(t);if(e)return e}return{x:0,y:0,z:0}}var iL=new _M(e=>setTimeout(e,0)),oL=new Map,aL=oL.clear.bind(oL);function sL(e,t){const n=function(e){const t=e.ownerDocument;let n=oL.get(t);if(n)return n;n=t.getAnimations(),oL.set(t,n),iL.schedule(aL);const r=n.filter(t=>jP(t.effect)&&t.effect.target===e);return oL.set(e,r),n}(e).filter(e=>{var n,r;if(jP(e.effect)){const{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var lL=class extends oD{constructor(e,t={}){var n,r,i,o;const{frameTransform:a=UM(e),ignoreTransforms:s,getBoundingClientRect:l=_P}=t,u=sL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||JP())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=HM(e),v=XM(g),y={x:null!=(n=null==v?void 0:v.scaleX)?n:1,y:null!=(r=null==v?void 0:v.scaleY)?r:1},b=function(e,t){var n;const r=e.getAnimations();let i=null;if(!r.length)return null;for(const e of r){if("running"!==e.playState)continue;const r=jP(e.effect)?e.effect.getKeyframes():[],o=r[r.length-1];if(!o)continue;const{transform:a,translate:s,scale:l}=o;if(a||s||l){const e=XM({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&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(n=i.z)?n:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,g);null==u||u(),v&&(d=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left-o-(1-r)*parseFloat(n),l=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=i?e.height/i: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!=(i=null==d?void 0:d.width)?i:h,height:null!=(o=null==d?void 0:d.height)?o:m};if(b&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left+o+(1-r)*parseFloat(n),l=e.top+a+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=i?e.height*i: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 uL(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 cL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(uL(n))for(const[r,i]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:n}=this;if(uL(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(uL(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function dL(e){return!!e&&(e instanceof WP(e).Element||zP(e)&&e.nodeType===Node.ELEMENT_NODE)}function pL(e){if(!e)return!1;const{KeyboardEvent:t}=WP(e.target);return e instanceof t}var fL={};function hL(e){const t=null==fL[e]?0:fL[e]+1;return fL[e]=t,`${e}-${t}`}var mL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/iD.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=iD.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)},gL=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:i}=t;if(!n.shape)return null;const o=r?oD.from(r.current.boundingRectangle).corners:void 0,a=oD.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+iD.distance(iD.from(t),null!=(r=null==o?void 0:o[n])?r:i.current)},0),s=a/4;return{id:n.id,value:1/s,type:mR.Collision,priority:hR.Normal}},vL=Object.create,yL=Object.defineProperty,bL=Object.defineProperties,xL=Object.getOwnPropertyDescriptor,SL=Object.getOwnPropertyDescriptors,wL=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,IL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),DL=e=>{throw TypeError(e)},RL=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PL=(e,t)=>{for(var n in t||(t={}))CL.call(t,n)&&RL(e,n,t[n]);if(wL)for(var n of wL(t))EL.call(t,n)&&RL(e,n,t[n]);return e},ML=(e,t)=>bL(e,SL(t)),LL=(e,t)=>yL(e,"name",{value:t,configurable:!0}),AL=(e,t)=>{var n={};for(var r in e)CL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wL)for(var r of wL(e))t.indexOf(r)<0&&EL.call(e,r)&&(n[r]=e[r]);return n},kL=e=>{var t;return[,,,vL(null!=(t=null==e?void 0:e[IL("metadata")])?t:null)]},OL=["class","method","getter","setter","accessor","field","value","get","set"],qL=e=>void 0!==e&&"function"!=typeof e?DL("Function expected"):e,TL=(e,t,n,r,i)=>({kind:OL[e],name:t,metadata:r,addInitializer:e=>n._?DL("Already initialized"):i.push(qL(e||null))}),jL=(e,t)=>RL(t,IL("metadata"),e[3]),NL=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},_L=(e,t,n,r,i,o)=>{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=OL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&xL(d<4?i:{get[n](){return WL(this,o)},set[n](e){return HL(this,o,e)}},n));d?f&&d<4&&LL(o,(d>2?"set ":d>1?"get ":"")+n):LL(i,n);for(var b=r.length-1;b>=0;b--)u=TL(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>zL(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?WL:VL)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>HL(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?qL(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?DL("Object expected"):(qL(a=s.get)&&(y.get=a),qL(a=s.set)&&(y.set=a),qL(a=s.init)&&g.unshift(a));return d||jL(e,i),y&&yL(i,n,y),f?4^d?o:y:i},FL=(e,t,n)=>t.has(e)||DL("Cannot "+n),zL=(e,t)=>Object(t)!==t?DL('Cannot use the "in" operator on this value'):e.has(t),WL=(e,t,n)=>(FL(e,t,"read from private field"),n?n.call(e):t.get(e)),$L=(e,t,n)=>t.has(e)?DL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HL=(e,t,n,r)=>(FL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),VL=(e,t,n)=>(FL(e,t,"access private method"),n),BL="button",GL="draggable",UL="dnd-kit-description",YL="dnd-kit-announcement",KL={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."},XL={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:n}){if(e)return n?`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 JL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var ZL=["dragover","dragmove"];var QL,eA,tA,nA,rA,iA,oA,aA,sA,lA,uA,cA,dA,pA=new Map,fA=class extends(rA=YD,nA=[AI],tA=[kI],eA=[kI],QL=[kI],rA){constructor(e){super(e),NL(oA,5,this),$L(this,sA),$L(this,iA,new Set),$L(this,aA,NL(oA,8,this,new Set)),NL(oA,11,this),this.registerEffect(VL(this,sA,lA))}register(e){return WL(this,iA).add(e),()=>{WL(this,iA).delete(e)}}addRoot(e){return bE(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{bE(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};oA=kL(rA),iA=new WeakMap,aA=new WeakMap,sA=new WeakSet,lA=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of WL(this,iA))t.push(VL(this,sA,uA).call(this,n,e));return()=>{for(const e of t)e()}},uA=function(e,t){let n=pA.get(e);n||(n=new Map,pA.set(e,n));let r=n.get(t);if(!r){const i=$P(e)?VL(this,sA,cA).call(this,e,n,t):VL(this,sA,dA).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,0===r.refCount&&r.cleanup())}},cA=function(e,t,n){const r=e.createElement("style");r.textContent=n,e.head.prepend(r);const i=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===r)return void e.head.prepend(r)});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),r.remove(),t.delete(n),0===t.size&&pA.delete(e)}}},dA=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=r?r:{};if(!i)return null;const o=new i;return o.replaceSync(n),e.adoptedStyleSheets.push(o),{refCount:0,cleanup:()=>{var r;if(QP(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&pA.delete(e)}}},_L(oA,4,"additionalRoots",nA,fA,aA),_L(oA,2,"sourceRoot",tA,fA),_L(oA,2,"targetRoot",eA,fA),_L(oA,2,"roots",QL,fA),jL(oA,fA);var hA="data-dnd-",mA=`${hA}dropping`,gA="--dnd-",vA=`${hA}dragging`,yA=`${hA}placeholder`,bA=[vA,yA,"popover","aria-pressed","aria-grabbing"],xA=["view-transition-name"],SA=`\n :is(:root,:host) [${vA}] {\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(${gA}top, 0px) !important;\n left: var(${gA}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${gA}width, auto);\n max-width: var(${gA}width, auto);\n height: var(${gA}height, auto);\n max-height: var(${gA}height, auto);\n transition: var(${gA}transition) !important;\n }\n\n :is(:root,:host) [${yA}] {\n transition: none;\n }\n\n :is(:root,:host) [${yA}='hidden'] {\n visibility: hidden;\n }\n\n [${vA}] * {\n pointer-events: none !important;\n }\n\n [${vA}]:not([${mA}]) {\n translate: var(${gA}translate) !important;\n }\n\n [${vA}][style*='${gA}scale'] {\n scale: var(${gA}scale) !important;\n transform-origin: var(${gA}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${vA}][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 [${vA}]::backdrop, [${hA}overlay]:not([${vA}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function wA(e,t="hidden"){return bE(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const i=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${hA}${hL("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),o=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(nM(e)&&nM(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),rM(e)&&rM(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,i]of e){if(!r.element)continue;const e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!o)continue;const a=r.element;r.proxy=o,o.removeAttribute(i),oM.set(a,o),n.push(()=>{oM.delete(a),r.proxy=void 0})}}(i,a,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(yA,t)}(a,t),a.remove=()=>{o.forEach(e=>e()),s.call(a)},a})}function CA(e,t){return e===t||sM(e)===sM(t)}function EA(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&dL(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>qM(t))}function IA(e){return"TR"===e.tagName}var DA,RA,PA,MA,LA,AA,kA,OA=250,qA="ease";var TA=class extends(RA=GD,DA=[AI],RA){constructor(e,t){super(e,t),$L(this,LA),$L(this,MA,NL(PA,8,this)),NL(PA,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(fA),r=null==n?void 0:n.register(SA);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(VL(this,LA,AA).bind(this,n)),this.registerEffect(VL(this,LA,kA))}};PA=kL(RA),MA=new WeakMap,LA=new WeakSet,AA=function(e){const{overlay:t}=this;if(!t||!e)return;const n=eM(t);return n?e.addRoot(n):void 0},kA=function(){var e,t,n;const{state:r,manager:i,options:o}=this,{dragOperation:a}=i,{position:s,source:l,status:u}=a;if(u.idle)return r.current={},void(r.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=r,f=null!=(e=this.overlay)?e:c,h=UM(f),m=UM(c),g=!CA(c,f),v=new lL(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new cL(f),{transition:I,translate:D,boxSizing:R,paddingBlockStart:P,paddingBlockEnd:M,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=HM(c),j="clone"===d,N="content-box"===R,_=N?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=N?parseInt(P)+parseInt(M)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:wA(l,j?"clone":"hidden"),W=bE(()=>pL(i.dragOperation.activatorEvent));if("none"!==D){const e=KM(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=bE(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,H=w*h.scaleY+h.y,V=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:n,y:r}=$;p.coordinates.x+=(x*e-x)*n,p.coordinates.y+=(S*t-S)*r}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-V,G=p.coordinates.y-H,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(vA,"true");const Z=bE(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,ne=ZP();if(E.set({width:x-_,height:S-F,top:J+ne.y,left:X+ne.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},gA),z&&(c.insertAdjacentElement("afterend",z),null==o?void 0:o.rootElement)){("function"==typeof o.rootElement?o.rootElement(l):o.rootElement).appendChild(c)}let re,ie,oe;OM(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),qM(f),f.addEventListener("beforetoggle",EA));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>re,getSavedCellWidths:()=>oe,setSavedCellWidths:e=>{oe=e}},new ResizeObserver(()=>{var e,t;const n=new lL(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),r=null!=(e=se.transformOrigin)?e:{x:1,y:1},i=(se.width-n.width)*r.x+se.delta.x,o=(se.height-n.height)*r.y+se.delta.y,a=ZP();if(se.styles.set({width:n.width-se.widthOffset,height:n.height-se.heightOffset,top:se.top+o+a.y,left:se.left+i+a.x},gA),null==(t=se.getElementMutationObserver())||t.takeRecords(),IA(se.element)&&IA(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new lL(se.feedbackElement)}));var se;const le=new lL(f);bE(()=>a.shape=le);const ue=WP(f),ce=e=>{this.manager.actions.stop({event:e})},de=tM(ue);W&&ue.addEventListener("resize",ce),"idle"===bE(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),z&&(ae.observe(z),re=function(e,t,n){const r=new MutationObserver(r=>{let i=!1;for(const n of r){if(n.target!==e){i=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||bA.includes(r))continue;const o=e.getAttribute(r);if("style"===r){if(uL(e)&&uL(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(xA.includes(e)||e.startsWith(gA))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==o?t.setAttribute(r,o):t.removeAttribute(r)}i&&n&&(t.innerHTML=e.innerHTML)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(c,z,j),ie=function(e,t,n){const r=new MutationObserver(r=>{for(const i of r)if(0!==i.addedNodes.length)for(const r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void qM(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void qM(n)}});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(c,z,f));const pe=null==(n=i.dragOperation.source)?void 0:n.id,fe=()=>{var e;if(!W||null==pe)return;const t=i.registry.draggables.get(pe),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;HP(n)&&n.focus()},he=()=>{var e;if(null==re||re.disconnect(),null==ie||ie.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),OM(f)&&(f.removeEventListener("beforetoggle",EA),f.removeAttribute("popover")),f.removeAttribute(vA),E.reset(),oe&&IA(c)){const t=Array.from(c.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=oe[n])?e:""}l.status="idle";const t=null!=r.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==o?void 0:o.dropAnimation,ge=this,ve=qI(()=>{var e;const{transform:t,status:n}=a;if((t.x||t.y||r.current.translate)&&n.dragging){const n=null!=(e=p.translate)?e:{x:0,y:0},i={x:t.x/h.scaleX+n.x,y:t.y/h.scaleY+n.y},o=r.current.translate,s=bE(()=>a.modifiers),l=bE(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=W&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${i.x}px ${i.y}px 0`},gA),null==re||re.takeRecords(),l&&l!==le&&o&&!s.length){const e=iD.delta(i,o);a.shape=oD.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new lL(f);r.current.translate=i}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=r.current.translate;const n=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();i.renderer.rendering.then(()=>{!function(e){var t,n,r,i;const{animation:o}=e;if("function"==typeof o){const t=o({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=OA,easing:s=qA}=null!=o?o:{};qM(e.feedbackElement);const[,l]=null!=(t=NP(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:CA(e.feedbackElement,u)?null:void 0},d=new lL(e.feedbackElement,c),p=null!=(r=KM(HM(e.feedbackElement).translate))?r:e.translate,f=new lL(u,c),h=oD.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},gA),e.feedbackElement.setAttribute(mA,""),null==(i=e.getElementMutationObserver())||i.takeRecords(),nL({element:e.feedbackElement,keyframes:ML(PL(PL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:tM(WP(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(mA),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:n,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>re,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},_L(PA,4,"overlay",DA,TA,MA),jL(PA,TA),TA.configure=VD(TA);var jA,NA,_A,FA,zA,WA,$A,HA=TA,VA=!0;_A=[AI],FA=JM.Forward,jA=[AI],NA=JM.Reverse;var BA=class{constructor(){$L(this,WA,NL(zA,8,this,VA)),NL(zA,11,this),$L(this,$A,NL(zA,12,this,VA)),NL(zA,15,this)}isLocked(e){return e!==JM.Idle&&(null==e?this[JM.Forward]===VA&&this[JM.Reverse]===VA:this[e]===VA)}unlock(e){e!==JM.Idle&&(this[e]=false)}};zA=kL(null),WA=new WeakMap,$A=new WeakMap,_L(zA,4,FA,_A,BA,WA),_L(zA,4,NA,jA,BA,$A),jL(zA,BA);var GA,UA,YA,KA,XA,JA,ZA=[JM.Forward,JM.Reverse],QA=class{constructor(){this.x=new BA,this.y=new BA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ek=class extends GD{constructor(e){super(e);const t=ME(new QA);let n=null;this.signal=t,FE(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new QA);const{delta:i}=e.dragOperation.position;if(n){const e={x:tk(i.x,n.x),y:tk(i.y,n.y)},r=t.peek();vE(()=>{for(const t of hD)for(const n of ZA)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function tk(e,t){return Math.sign(e-t)}var nk=class extends(UA=YD,GA=[AI],UA){constructor(e){super(e),$L(this,KA,NL(YA,8,this,!1)),NL(YA,11,this),$L(this,XA),$L(this,JA,()=>{if(!WL(this,XA))return;const{element:e,by:t}=WL(this,XA);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return HL(this,XA,void 0),!1;const{position:r}=this.manager.dragOperation,i=null==r?void 0:r.current;if(i){const{by:r}=null!=e?e:{},o=r?{x:rk(r.x),y:rk(r.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of n){const n=NM(e,r);if(n.x||n.y){const{speed:n,direction:s}=eL(e,i,o);if(a)for(const e of hD)a[e].isLocked(s[e])&&(n[e]=0,s[e]=0);if(s.x||s.y){const{x:i,y:o}=null!=r?r:s,a=i*n.x,l=o*n.y;if(a||l){const n=null==(t=WL(this,XA))?void 0:t.by;if(this.autoScrolling&&n){if(n.x&&!a||n.y&&!l)continue}return HL(this,XA,{element:e,by:{x:a,y:l}}),FM.schedule(WL(this,JA)),!0}}}}}return HL(this,XA,void 0),!1};let t=null,n=null;const r=MI(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const i=iM(eM(null==r?void 0:r.element),n.current);return i&&(t=i),null!=i?i:t}),i=MI(()=>{const t=r.value,{documentElement:i}=BP(t);if(!t||t===i){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=GM(r,{excludeElement:!1});return n=e,e}}if(t){const e=GM(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},LI);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new ek(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&pL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function rk(e){return e>0?JM.Forward:e<0?JM.Reverse:JM.Idle}YA=kL(UA),KA=new WeakMap,XA=new WeakMap,JA=new WeakMap,_L(YA,4,"autoScrolling",GA,nk,KA),jL(YA,nk);var ik,ok=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()}),ak=class extends GD{constructor(e,t){super(e);const n=e.registry.plugins.get(nk);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=FE(()=>{if(this.disabled)return;const{position:t,status:r}=e.dragOperation;if(r.dragging){if(n.scroll()){n.autoScrolling=!0;const e=setInterval(()=>ok.schedule(n.scroll),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}},sk={capture:!0,passive:!0},lk=class extends YD{constructor(e){super(e),$L(this,ik),this.handleScroll=()=>{null==WL(this,ik)&&HL(this,ik,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),HL(this,ik,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=FE(()=>{var e,n,r;if(t.status.dragging){const i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,sk),()=>{i.removeEventListener("scroll",this.handleScroll,sk)}}})}};ik=new WeakMap;function uk(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var ck,dk=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 n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),pk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,ck,[]),this.listeners=new aM,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!dL(e.target))return;if(t.disabled)return;const{keyboardCodes:r=dk.keyboardCodes,preventActivation:i=dk.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=FE(()=>{var n;const r=null!=(n=e.handle)?n:e.element,i=n=>{pL(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),tL(r);const{center:i}=new lL(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const o=BP(r),a=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];WL(this,ck).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=dk.keyboardCodes}=null!=n?n:{};if(mk(e,[...r.end,...r.cancel])){e.preventDefault();const t=mk(e,r.cancel);return void this.handleEnd(e,t)}mk(e,r.up)?this.handleMove("up",e):mk(e,r.down)&&this.handleMove("down",e),mk(e,r.left)?this.handleMove("left",e):mk(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:dk.offset;if("number"==typeof s&&(s={x:s,y:s}),i){switch(e){case"up":a={x:0,y:-s.y*o};break;case"down":a={x:0,y:s.y*o};break;case"left":a={x:-s.x*o,y:0};break;case"right":a={x:s.x*o,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ak);!1===(null==e?void 0:e.disabled)&&(e.disable(),WL(this,ck).push(()=>{e.enable()}))}cleanup(){WL(this,ck).forEach(e=>e()),HL(this,ck,[])}destroy(){this.cleanup(),this.listeners.clear()}};ck=new WeakMap,pk.configure=VD(pk),pk.defaults=dk;var fk,hk=pk;function mk(e,t){return t.includes(e.code)}var gk,vk;fk=new WeakMap;gk=new WeakMap,vk=new WeakMap;var yk=class{};yk.Delay=class extends iP{constructor(){super(...arguments),$L(this,gk),$L(this,vk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,vk,YP(e)),HL(this,gk,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!WL(this,vk))return;const{x:t,y:n}=YP(e);lD({x:t-WL(this,vk).x,y:n-WL(this,vk).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){WL(this,gk)&&(clearTimeout(WL(this,gk)),HL(this,vk,void 0),HL(this,gk,void 0))}},yk.Distance=class extends iP{constructor(){super(...arguments),$L(this,fk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,fk,YP(e));break;case"pointermove":if(!WL(this,fk))return;const{x:t,y:n}=YP(e),r={x:t-WL(this,fk).x,y:n-WL(this,fk).y},{tolerance:i}=this.options;if(i&&lD(r,i))return void this.abort();lD(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){HL(this,fk,void 0)}};var bk,xk=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:i}=e;if("mouse"!==r||!dL(i)||t.handle!==i&&!(null==(n=t.handle)?void 0:n.contains(i)))return"touch"===r?[new yk.Delay({value:250,tolerance:5})]:function(e){if(!dL(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(i)&&!e.defaultPrevented?[new yk.Delay({value:200,tolerance:0})]:[new yk.Delay({value:200,tolerance:10}),new yk.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!dL(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.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 ')))))}}),Sk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,bk,new Set),this.listeners=new aM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=xk.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=FE(()=>{var n;const r=new AbortController,{signal:i}=r,o=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=WP(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(Dk(e.ownerDocument.defaultView),e.addEventListener("pointerdown",o,{signal:i}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!dL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=xk.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:i}=e,o=HP(i)&&i.draggable&&"true"===i.getAttribute("draggable"),a=UM(t.element),{x:s,y:l}=YP(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new rP(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=XP(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:o?this.handleCancel:Ck,options:{capture:!0}}]);WL(this,bk).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=YP(e),r=UM(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,FM.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=BP(t.target).body;i.setPointerCapture(t.pointerId);const o=dL(t.target)?[t.target,i]:i,a=this.listeners.bind(o,[{type:"touchmove",listener:Ck,options:{passive:!1}},{type:"click",listener:Ck},{type:"contextmenu",listener:Ck},{type:"keydown",listener:this.handleKeyDown}]);WL(this,bk).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},WL(this,bk).forEach(e=>e()),WL(this,bk).clear()}destroy(){this.cleanup(),this.listeners.clear()}};bk=new WeakMap,Sk.configure=VD(Sk),Sk.defaults=xk;var wk=Sk;function Ck(e){e.preventDefault()}function Ek(){}var Ik=new WeakSet;function Dk(e){e&&!Ik.has(e)&&(e.addEventListener("touchmove",Ek,{capture:!1,passive:!1}),Ik.add(e))}var Rk,Pk,Mk,Lk,Ak,kk,Ok,qk,Tk,jk,Nk,_k,Fk,zk,Wk,$k,Hk,Vk,Bk={modifiers:[],plugins:[class extends GD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=UL,announcement:i=YL}={},announcements:o=XL,screenReaderInstructions:a=KL,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:hL(r),u=n?`${i}-${n}`:hL(i);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>FM.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),v=Object.entries(o).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const i=p;if(!i)return;const o=null==t?void 0:t(n,r);o&&i.nodeValue!==o&&(f=o,ZL.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(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 n=null!=(e=t.handle)?e:t.element;if(n){c&&d||b.add(y),JL(n)&&!JP()||n.hasAttribute("tabindex")||b.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||b.add(()=>n.setAttribute("role",BL)),n.hasAttribute("aria-roledescription")||b.add(()=>n.setAttribute("aria-roledescription",GL)),n.hasAttribute("aria-describedby")||b.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&b.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&b.add(()=>n.setAttribute("aria-disabled",e))}}b.size>0&&FM.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},ak,class extends GD{constructor(e,t){super(e,t),this.manager=e;const n=MI(()=>{var e;return BP(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{cursor:r="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=n.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${r} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},HA,class extends GD{constructor(e,t){super(e,t),this.manager=e,this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{nonce:n}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),uk(),document.addEventListener("selectionchange",uk,{capture:!0}),()=>{document.removeEventListener("selectionchange",uk,{capture:!0}),e.remove()}}})}}],sensors:[wk,hk]},Gk=class extends MP{constructor(e={}){const t=PP(e.plugins,Bk.plugins),n=PP(e.sensors,Bk.sensors),r=PP(e.modifiers,Bk.modifiers);super(ML(PL({},e),{plugins:[lk,nk,fA,...t],sensors:n,modifiers:r}))}},Uk=class extends(Lk=QR,Mk=[AI],Pk=[AI],Rk=[AI],Lk){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:o,feedback:a="default"}=n,s=AL(n,["element","effects","handle","feedback"]);super(PL({effects:()=>[...i(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(BD))?t:[...n.sensors]).map(e=>{const t=e instanceof nP?e:n.registry.register(e.plugin),r=e instanceof nP?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},s),t),$L(this,kk,NL(Ak,8,this)),NL(Ak,11,this),$L(this,Ok,NL(Ak,12,this)),NL(Ak,15,this),$L(this,qk,NL(Ak,16,this)),NL(Ak,19,this),this.element=r,this.handle=o,this.feedback=a}};Ak=kL(Lk),kk=new WeakMap,Ok=new WeakMap,qk=new WeakMap,_L(Ak,4,"handle",Mk,Uk,kk),_L(Ak,4,"element",Pk,Uk,Ok),_L(Ak,4,"feedback",Rk,Uk,qk),jL(Ak,Uk);var Yk=class extends(Nk=eP,jk=[AI],Tk=[AI],Nk){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,o=AL(n,["element","effects"]);const{collisionDetector:a=mL}=o,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new lL(n),i=bE(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},l=ME(!1);super(ML(PL({},o),{collisionDetector:a,effects:()=>[...i(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kM(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),$L(this,Hk),$L(this,Fk,NL(_k,8,this)),NL(_k,11,this),$L(this,Vk,NL(_k,12,this)),NL(_k,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){HL(this,Hk,e,$k)}get element(){var e;return null!=(e=this.proxy)?e:WL(this,Hk,Wk)}};function Kk(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}_k=kL(Nk),Fk=new WeakMap,Hk=new WeakSet,Vk=new WeakMap,zk=_L(_k,20,"#element",jk,Hk,Fk),Wk=zk.get,$k=zk.set,_L(_k,4,"proxy",Tk,Yk,Vk),jL(_k,Yk);var Xk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function Jk(){const e=m(0)[1];return f(()=>{e(e=>e+1)},[e])}function Zk(e,t=[],n=!1){const r=l(e);return r.current=e,function(e,t=!1){const n=l(e.peek()),r=l(!1),i=Jk();return Xk(()=>FE(()=>{const o=n.current,a=e.value;if(o!==a){if(n.current=a,!r.current)return;t?D(i):i()}}),[e,t,i]),{get value(){return r.current=!0,e.peek()}}}(v(()=>MI(()=>r.current()),t),n)}function Qk(e,t){const n=l(new Map),r=Jk();return Xk(()=>{if(e)return FE(()=>{var i;let o=!1,a=!1;for(const r of n.current){const[s]=r,l=bE(()=>r[1]),u=e[s];l!==u&&(o=!0,n.current.set(s,u),a=null!=(i=null==t?void 0:t(s,l,u))&&i)}o&&(a?D(r):r())});n.current.clear()},[e]),v(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function eO(e,t){e()}function tO(e){const t=l(e);return Xk(()=>{t.current=e},[e]),t}function nO(e,t,n=d,r=Object.is){const i=l(e);n(()=>{const n=i.current;r(e,n)||(i.current=e,t(e,n))},[t,e])}function rO(e,t){const n=l(Kk(e));Xk(()=>{const r=Kk(e);r!==n.current&&(n.current=r,t(r))})}var iO=Object.defineProperty,oO=Object.defineProperties,aO=Object.getOwnPropertyDescriptors,sO=Object.getOwnPropertySymbols,lO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,cO=(e,t,n)=>t in e?iO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dO=new Gk,pO=u(dO),fO=b(x(({children:e},t)=>{const[n,r]=m(0),i=l(null),o=l(null),a=v(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),S(()=>{e(),r(e=>e+1)})}}),[]);return Xk(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,n]),w(t,()=>a),null})),hO=[void 0,LI];function mO(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:i,onDragStart:o,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var n={};for(var r in e)lO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sO)for(var r of sO(e))t.indexOf(r)<0&&uO.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=PP(f,Bk.plugins),v=PP(m,Bk.sensors),b=PP(h,Bk.modifiers),x=tO(i),S=tO(o),w=tO(s),C=tO(a),E=tO(u),I=tO(r),D=function(e){const t=l(null);t.current||(t.current=e());return y(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new Gk(c)});return d(()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:n}=D;D.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=x.current;n&&t(()=>n(e,D))}),n.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),n.addEventListener("dragover",e=>{const n=w.current;n&&t(()=>n(e,D))}),n.addEventListener("dragmove",e=>{const n=C.current;n&&t(()=>n(e,D))}),n.addEventListener("dragend",e=>{const n=E.current;n&&t(()=>n(e,D))}),n.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>r.forEach(e=>e())},[D]),nO(g,()=>D&&(D.plugins=g),...hO),nO(v,()=>D&&(D.sensors=v),...hO),nO(b,()=>D&&(D.modifiers=b),...hO),fo.jsxs(pO.Provider,{value:D,children:[fo.jsx(fO,{ref:p,children:n}),n]})}function gO(){return h(pO)}function vO(e){var t;const n=null!=(t=gO())?t:void 0,[r]=m(()=>e(n));return r.manager!==n&&(r.manager=n),Xk(r.register,[n,r]),r}function yO({children:e,className:t,dropAnimation:n,style:i,tag:o,disabled:a}){var s;const u=l(null),c=gO(),p=null!=(s=Zk(()=>null==c?void 0:c.dragOperation.source,[c]).value)?s:null,f="function"==typeof a?a(p):a;d(()=>{if(!u.current||!c||f)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.overlay=u.current,()=>{e.overlay=void 0}):void 0},[c,f]),d(()=>{if(!c)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[c,n]);const h=v(()=>{if(!c)return null;const e=new Proxy(c.registry,{get:(e,t)=>"register"===t||"unregister"===t?bO:e[t]});return new Proxy(c,{get:(t,n)=>"registry"===n?e:t[n]})},[c]);return fo.jsx(pO.Provider,{value:h,children:r(o||"div",{ref:u,className:t,style:i,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return fo.jsx(xO,{source:p,children:e});return e}())})}function bO(){return()=>{}}function xO({children:e,source:t}){return e(Qk(t))}var SO,wO,CO,EO,IO,DO=Object.create,RO=Object.defineProperty,PO=Object.getOwnPropertyDescriptor,MO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),LO=e=>{throw TypeError(e)},AO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?LO("Function expected"):e,OO=(e,t,n,r,i)=>({kind:AO[e],name:t,metadata:r,addInitializer:e=>n._?LO("Already initialized"):i.push(kO(e||null))}),qO=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=AO[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,PO(i,n)),h=r.length-1;h>=0;h--)(l=OO(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,kO(a)&&(f[d]=a);return f&&RO(i,n,f),i},TO=(e,t,n)=>t.has(e)||LO("Cannot "+n),jO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},NO=class extends(CO=jI,wO=[kI],SO=[kI],CO){constructor(e){var t,n,r;super(jO.from(e),(e,t)=>jO.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})(IO,5,this),t=this,r=0,(n=EO).has(t)?LO("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return jO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=jO.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(TO(a=this,s=EO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{TO(e,t,"write to private field"),t.set(e,n)})(this,EO,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(jO.from(e)),this.velocity={x:0,y:0}}};IO=(e=>{var t;return[,,,DO(null!=(t=null==e?void 0:e[MO("metadata")])?t:null)]})(CO),EO=new WeakMap,qO(IO,2,"delta",wO,NO),qO(IO,2,"direction",SO,NO),((e,t)=>{((e,t,n)=>{t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,MO("metadata"),e[3])})(IO,NO);var _O=(e=>(e.Horizontal="x",e.Vertical="y",e))(_O||{});Object.values(_O);var FO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/jO.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=jO.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)};function zO(e){const{collisionDetector:t,data:n,disabled:r,element:i,id:o,accept:a,type:s}=e,l=vO(t=>new Yk(((e,t)=>oO(e,aO(t)))(((e,t)=>{for(var n in t||(t={}))lO.call(t,n)&&cO(e,n,t[n]);if(sO)for(var n of sO(t))uO.call(t,n)&&cO(e,n,t[n]);return e})({},e),{register:!1,element:Kk(i)}),t)),u=Qk(l);return nO(o,()=>l.id=o),rO(i,e=>l.element=e),nO(a,()=>l.accept=a,void 0,LI),nO(t,()=>l.collisionDetector=null!=t?t:FO),nO(n,()=>n&&(l.data=n)),nO(r,()=>l.disabled=!0===r),nO(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const WO=e=>Array.from({length:e},(e,t)=>t),$O=({id:e,sectionIndex:t,itemIndex:n})=>fo.jsx("span",{children:`${e}-${t}-${n}`}),HO=n.memo(()=>{const e=qw(aE)??$O,{startSectionIndex:t,startIndex:n,id:r}=qw(cE)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:fo.jsx(yO,{dropAnimation:null,children:fo.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:fo.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),VO=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=qw(cE),i=r?.toSectionIndex===e,o=r?.startSectionIndex===e,a=t>(r?.startIndex??t)&&e===r?.startSectionIndex?t-1:t;let s=!1;return o&&r.startIndex===a?s=!1:i&&r.toIndex===a&&(s=!0),fo.jsx("div",{"data-key":"drop-target-indicator",style:{visibility:s&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},BO=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,GO=n.memo(({sectionIndex:e})=>{const t=qw(QC)[e],n=qw(eE),r=qw(tE),i=null!==qw(cE),o=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=zO({id:a,type:"section",accept:"item",collisionPriority:hR.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:fo.jsxs(sc,{ref:s,sx:{margin:"4px",outline:BO(l,i),borderRadius:"4px",boxSizing:"border-box"},children:[fo.jsx(sc,{sx:{position:"relative",top:"4px"},children:fo.jsx(VO,{sectionIndex:e,itemIndex:0,isDragging:!1})}),fo.jsxs(sc,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:o.title}),fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:o.message})]})]})}),UO=n.memo(({id:e,sectionIndex:t})=>{const n=qw(oE);return void 0===n?null:fo.jsx(n,{id:e,sectionIndex:t})});var YO=Object.defineProperty,KO=Object.defineProperties,XO=Object.getOwnPropertyDescriptors,JO=Object.getOwnPropertySymbols,ZO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable,eq=(e,t,n)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tq=(e,t)=>{for(var n in t||(t={}))ZO.call(t,n)&&eq(e,n,t[n]);if(JO)for(var n of JO(t))QO.call(t,n)&&eq(e,n,t[n]);return e},nq=(e,t)=>KO(e,XO(t)),rq=class extends EP{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return nq(tq({},e),{[t]:n})}};rq.configure=VD(rq);var iq=rq,oq=iq.configure({axis:"x",value:0});iq.configure({axis:"y",value:0});var aq=class extends EP{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,i="number"==typeof n?n:n.y;return nq(tq({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/i)*i})}};aq.configure=VD(aq);var sq=Object.create,lq=Object.defineProperty,uq=Object.defineProperties,cq=Object.getOwnPropertyDescriptor,dq=Object.getOwnPropertyDescriptors,pq=Object.getOwnPropertySymbols,fq=Object.prototype.hasOwnProperty,hq=Object.prototype.propertyIsEnumerable,mq=e=>{throw TypeError(e)},gq=(e,t,n)=>t in e?lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vq=(e,t)=>{for(var n in t||(t={}))fq.call(t,n)&&gq(e,n,t[n]);if(pq)for(var n of pq(t))hq.call(t,n)&&gq(e,n,t[n]);return e},yq=(e,t)=>uq(e,dq(t)),bq=["class","method","getter","setter","accessor","field","value","get","set"],xq=e=>void 0!==e&&"function"!=typeof e?mq("Function expected"):e,Sq=(e,t,n,r,i)=>({kind:bq[e],name:t,metadata:r,addInitializer:e=>n._?mq("Already initialized"):i.push(xq(e||null))}),wq=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},Cq=(e,t,n,r,i,o)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=bq[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(i=i.prototype,cq({get[n](){return Iq(this,o)},set[n](e){return Rq(this,o,e)}},n)),v=r.length-1;v>=0;v--)(u=Sq(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[v])({get:g.get,set:g.set},u),l._=1,void 0===s?xq(s)&&(g[f]=s):"object"!=typeof s||null===s?mq("Object expected"):(xq(a=s.get)&&(g.get=a),xq(a=s.set)&&(g.set=a),xq(a=s.init)&&h.unshift(a));return g&&lq(i,n,g),i},Eq=(e,t,n)=>t.has(e)||mq("Cannot "+n),Iq=(e,t,n)=>(Eq(e,t,"read from private field"),t.get(e)),Dq=(e,t,n)=>t.has(e)?mq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rq=(e,t,n,r)=>(Eq(e,t,"write to private field"),t.set(e,n),n);function Pq(e){return e instanceof oT||e instanceof iT}var Mq=class extends GD{constructor(e){super(e);const t=FE(()=>{const{dragOperation:t}=e;if(pL(t.activatorEvent)&&Pq(t.source)&&t.status.initialized){const t=e.registry.plugins.get(nk);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!pL(e.nativeEvent))return;if(!Pq(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:i,registry:o}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];vE(()=>{for(const e of o.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&Pq(e)||!e.element)continue;let n=e.shape;const r=new lL(e.element,{getBoundingClientRect:e=>UP(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),i.disable();const f=i.computeCollisions(d,gL);vE(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:o}=n;if(!e||!Pq(e)||!o)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;tL(c);const d=new lL(c);if(!d)return;const p=oD.delta(d,oD.from(o.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),t()}}};var Lq=Object.defineProperty,Aq=Object.defineProperties,kq=Object.getOwnPropertyDescriptors,Oq=Object.getOwnPropertySymbols,qq=Object.prototype.hasOwnProperty,Tq=Object.prototype.propertyIsEnumerable,jq=(e,t,n)=>t in e?Lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nq=(e,t)=>{for(var n in t||(t={}))qq.call(t,n)&&jq(e,n,t[n]);if(Oq)for(var n of Oq(t))Tq.call(t,n)&&jq(e,n,t[n]);return e},_q=(e,t)=>Aq(e,kq(t));function Fq(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function zq(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Wq(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(zq(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&zq(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return _q(Nq({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return _q(Nq({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&zq(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return _q(Nq({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return _q(Nq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return _q(Nq({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return _q(Nq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,Fq)}var $q="__default__";function Hq(e,t,n,r){const i=r<t?"afterend":"beforebegin";n.insertAdjacentElement(i,e)}function Vq(e,t){return e.index-t.index}function Bq(e){return Array.from(e).sort(Vq)}var Gq,Uq,Yq,Kq,Xq,Jq,Zq,Qq,eT=[Mq,class extends GD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof oT){const{sortable:e}=n,{group:r}=e;let i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}for(const[e,n]of t)t.set(e,new Set(Bq(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:i,target:o}=r;if(!Pq(i)||!Pq(o))return;if(i.sortable===o.sortable)return;const a=t(),s=i.sortable.group===o.sortable.group,l=a.get(i.sortable.group),u=s?l:a.get(o.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,c,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,i]of n)if(i.index!==t||i.group!==e||!(null==(r=p.get(e))?void 0:r.has(i)))return}const f=i.sortable.element,h=o.sortable.element;if(!h||!f)return;if(!s&&o.id===i.sortable.group)return;const m=Bq(l),g=s?m:Bq(u),v=null!=(c=i.sortable.group)?c:$q,y=null!=(d=o.sortable.group)?d:$q,b={[v]:m,[y]:g},x=Wq(b,e);if(b===x)return;const S=x[y].indexOf(i.sortable),w=x[y].indexOf(o.sortable);n.collisionObserver.disable(),Hq(f,S,h,w),vE(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=o.sortable.group,t.index=e}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:i}=r;Pq(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(i.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=Bq(r),n=i.sortable.element,o=t[i.sortable.initialIndex],a=null==o?void 0:o.element;o&&a&&n&&(Hq(n,o.index,a,i.index),vE(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],tT={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},nT=new class{constructor(){DI(this,TI,new WeakMap)}get(e,t){var n;return e?null==(n=II(this,TI).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return II(this,TI).has(e)||II(this,TI).set(e,new Map),null==(r=II(this,TI).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=II(this,TI).get(e))?void 0:t.clear():void 0}};Uq=[AI],Gq=[AI];var rT=class{constructor(e,t){Dq(this,Kq,wq(Yq,8,this)),wq(Yq,11,this),Dq(this,Xq),Dq(this,Jq),Dq(this,Zq,wq(Yq,12,this)),wq(Yq,15,this),Dq(this,Qq),this.register=()=>(vE(()=>{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=()=>{vE(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{vE(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:i,index:o,sensors:a,type:s,transition:l=tT,plugins:u=eT}=n,c=((e,t)=>{var n={};for(var r in e)fq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pq)for(var r of pq(e))t.indexOf(r)<0&&hq.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new oT(c,t,this),this.draggable=new iT(yq(vq({},c),{effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&nT.clear(this.manager),(null==r?void 0:r.dragging)&&nT.set(this.manager,this.id,bE(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=Iq(this,Jq),i=Iq(this,Xq);e===r&&t===i||(Rq(this,Jq,e),Rq(this,Xq,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:n}=this.draggable;"move"==t&&n&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...r()],type:s,sensors:a}),t,this),Rq(this,Qq,c.element),this.manager=t,this.index=o,Rq(this,Jq,o),this.group=i,Rq(this,Xq,i),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bE(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;const i=this.refreshShape();if(!i)return;const o=n.boundingRectangle.left-i.boundingRectangle.left,a=n.boundingRectangle.top-i.boundingRectangle.top,{translate:s}=HM(r),l=rL(r,s,!1),u=rL(r,s);if(o||a){const n=tM(WP(r))?yq(vq({},t),{duration:0}):t;nL({element:r,keyframes:{translate:[`${l.x+o}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){vE(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){vE(()=>{const t=Iq(this,Qq),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Rq(this,Qq,e)})}get element(){var e,t;const n=Iq(this,Qq);if(n)return null!=(t=null!=(e=oM.get(n))?e:n)?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){vE(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){vE(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){vE(()=>{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:mL}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vE(()=>{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)}};Yq=[,,,sq(null)],Kq=new WeakMap,Xq=new WeakMap,Jq=new WeakMap,Zq=new WeakMap,Qq=new WeakMap,Cq(Yq,4,"index",Uq,rT,Kq),Cq(Yq,4,"group",Gq,rT,Zq),((e,t)=>{return gq(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(Yq,rT);var iT=class extends Uk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},oT=class extends Yk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},aT=Object.defineProperty,sT=Object.defineProperties,lT=Object.getOwnPropertyDescriptors,uT=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,pT=(e,t,n)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fT=(e,t)=>{for(var n in t||(t={}))cT.call(t,n)&&pT(e,n,t[n]);if(uT)for(var n of uT(t))dT.call(t,n)&&pT(e,n,t[n]);return e};function hT(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:i,data:o,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=fT(fT({},tT),e.transition),y=vO(t=>new rT(((e,t)=>sT(e,lT(t)))(fT({},e),{transition:v,register:!1,handle:Kk(s),element:Kk(a),target:Kk(m),feedback:d}),t)),b=Qk(y,mT);return nO(i,()=>y.id=i),Xk(()=>{vE(()=>{y.group=u,y.index=l})},[y,u,l]),nO(g,()=>y.type=g),nO(t,()=>y.accept=t,void 0,LI),nO(o,()=>o&&(y.data=o)),nO(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},eO),rO(s,e=>y.handle=e),rO(a,e=>y.element=e),rO(m,e=>y.target=e),nO(c,()=>y.disabled=!0===c),nO(h,()=>y.sensors=h),nO(n,()=>y.collisionDetector=n),nO(r,()=>y.collisionPriority=r),nO(d,()=>y.feedback=null!=d?d:"default"),nO(v,()=>y.transition=v,void 0,LI),nO(p,()=>y.modifiers=p,void 0,LI),nO(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:f(e=>{y.handle=null!=e?e:void 0},[y]),ref:f(e=>{var t,n;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:f(e=>{var t,n;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:f(e=>{var t,n;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function mT(e,t,n){return!("isDragSource"!==e||n||!t)}const gT=({id:e,itemIndex:t,sectionIndex:n})=>fo.jsx("div",{children:`${n}:${t} - ${e}`}),vT=({id:e,itemIndex:t,sectionIndex:n})=>{const r=qw(sE),i=qw(iE),o=qw(QC).at(n)??0,a=qw(eE)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=hT({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[oq],plugins:[Mq],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=i??gT;return fo.jsx(Vd,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:fo.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[fo.jsx(VO,{isDragging:l,itemIndex:t,sectionIndex:n}),fo.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===o-1&&fo.jsx(VO,{isDragging:l,itemIndex:t+1,sectionIndex:n})]})})},yT=n.memo(vT),bT=n.memo(({sectionIndex:e})=>{const t=qw(eE),n=qw(QC).at(e)??0,r=t({sectionIndex:e});return fo.jsxs(sc,{className:"exploration-list",style:{overflow:"auto"},children:[fo.jsx(td,{}),fo.jsx(UO,{id:r,sectionIndex:e}),fo.jsx(td,{}),fo.jsx(GO,{sectionIndex:e}),fo.jsx(kd,{sx:{padding:"2px 8px"},children:WO(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return fo.jsx(yT,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),xT=[wk.configure({activationConstraints:[new yk.Distance({value:5})]}),hk],ST=n.memo(()=>{const e=qw(ZC),t=qw(eE),n=Tw(dE("start")),r=Tw(dE("over")),i=Tw(dE("end"));return fo.jsxs(mO,{sensors:xT,onDragEnd:i,onDragOver:r,onDragStart:n,children:[fo.jsx(sc,{style:{display:"flex",flexDirection:"column"},children:WO(e).map(e=>fo.jsx(bT,{sectionIndex:e},t({sectionIndex:e})))}),fo.jsx(HO,{})]})}),wT=n.memo(e=>fo.jsx(jC,{atoms:pE,atomFamilies:fE,children:fo.jsx(hE,{props:e,children:fo.jsx(ST,{})})})),CT="12px",ET="nebula-table-utils-head-menu-button",IT="sn-copy-cell";let DT=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 RT="nebula-table-utils-column-adjuster";let PT=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}({}),MT=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const LT={darker:.15,brighter:.3,opacity:.03},AT={darker:.3,brighter:.5,opacity:.05};let kT=function(e){return e.Cyclic="C",e}({});const OT=(e,t)=>{const n=new Map;for(const t of e)n.set(t.id,t);return t.reduce((e,t)=>{const r=n.get(t);return r&&e.push(r),e},[])},qT=KC(e=>ww(t=>{const n=t(lC),r=t(Xw),i=t(oC)?.[e],o=n?.qHyperCube.rankedList?.[e];return i||(r?.isRankedListCorrupt(e)||void 0===o?r?.createRankedList(e):o)})),TT=(e,t=new Set)=>ww(n=>{const r=n(e),i=n(wC);if(!r||0===r.length)return"disabled";const o=r.filter(e=>!t.has(e.id));if(0===o.length)return"disabled";const a=o.filter(e=>i.has(e.id)).length;return 0===a?"none":a===o.length?"all":"some"}),jT=(e,t=new Set)=>ww(null,(n,r,i)=>{const o=n(e);o&&0!==o.length&&(e=>{const{items:t,shouldCheckAll:n,get:r,set:i,excludedIds:o}=e,a=t.filter(e=>!o?.has(e.id));if(0===a.length)return;const s=r(wC),l=new Set,u=new Set;if(a.forEach(e=>{const t=s.has(e.id);t&&!n&&u.add(e.id),!t&&n&&l.add(e.id)}),0===l.size&&0===u.size)return;const c=new Set(r(yC)),d=new Set(r(bC));l.forEach(e=>c.add(e)),l.forEach(e=>d.delete(e)),u.forEach(e=>d.add(e)),u.forEach(e=>c.delete(e)),i(yC,c),i(bC,d),Yw({type:"apply",localChecked:l,localUnchecked:u,handler:r(Xw),model:r(Kw),fieldInfo:r(fC),handlerQueue:r(mC)})})({items:o,shouldCheckAll:i,get:n,set:r,excludedIds:t})}),NT=ww(e=>{const t=e(uC);return t?.qHyperCube.qDimensionInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),_T=ww(e=>{const t=e(lC),n=e(Zw),r=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:n("Common.Values")};const{cId:r,qFallbackTitle:i}=t.qHyperCube.qDimensionInfo[e];return{id:r,title:i??""}});return r}),FT=ww(e=>{const t=e(Zw),n=e(NT),r=e(eC),i=e(qT("columns")),o=e(qT("rows")),a=e(_T);if(void 0===n||void 0===i||void 0===o||void 0===a)return[];const s=[...a,...n].filter(r);return[{id:"rows",title:t("Common.Rows"),items:OT(s,o)},{id:"columns",title:t("Common.Columns"),items:OT(s,i)}]}),zT=KC(e=>ww(t=>t(FT).at(e))),WT=KC(({sectionIndex:e,itemIndex:t})=>ww(n=>n(zT(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),$T=KC(e=>ww(t=>t(zT(e))?.title)),HT=ww(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(zT(t));return void 0===r?0===t?"rows":"columns":void 0===n?r.id:r.items.at(n)?.id??`missing-item-${t}-${n}`}),VT=ww(e=>e(FT).map(e=>e.items.length)),BT=KC(e=>TT(ww(t=>t(zT(e))?.items),new Set([-1]))),GT=KC(e=>jT(ww(t=>t(zT(e))?.items),new Set([-1]))),UT=ww(null,async(e,t,{event:n,id:r,toIndex:i,toSection:o,startSection:a})=>{const s=e(Xw),l=e(Kw),u=e(mC),c=e(qT("rows")),d=e(qT("columns")),p=o;if(void 0===s||void 0===l||void 0===c||void 0===d||null===u)return;if(n.operation.canceled)return void t(oC,null);if("section"===n.operation.target?.type&&a===o)return void t(oC,null);const f=YC({rows:c,columns:d},n);t(oC,f),u.add(async()=>{"number"==typeof r?await s.movePseudoDimension({toIndex:i,toSection:p}):await s.moveDimension({cId:r,toIndex:i,toSection:p})})}),YT={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"}},KT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",XT="ChartExploration.PivotTable.MeasureSectionEmpty.Message",JT="#177fe6",ZT=(e,t,n,r)=>{if("measure"===t)return e(r?YT.noSearchFound.measure:YT.noItems.measure);const i=r?YT.noSearchFound:YT.noItems;return e(n?i.row:i.column)},QT=(e,t,n)=>n?"":e("measure"===t?XT:KT),ej=KC(e=>ww(t=>{const n=t(Zw),r=t(Qw).length>0;return t=>({title:ZT(n,e,0===t,r),message:QT(n,e,r)})})),tj=ej("measure"),nj=ej("dimensions"),rj=({children:e})=>fo.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),ij=e=>{const t=qw(WT(e));return fo.jsx(rj,{children:t})},oj=ww(e=>{const t=e(uC);return t?.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),aj=ww(e=>{const t=e(lC),n=e(oj),r=e(eC),i=e(qT("measures"));if(void 0===t||void 0===n||void 0===i)return[];const o=t.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));o.push(...n);const a=o.filter(r);return OT(a,i)}),sj=KC(e=>ww(t=>t(aj).at(e)?.title??"")),lj=ww(e=>({itemIndex:t})=>{const n=e(aj);return void 0===t?"measures":n.at(t)?.id??`missing-item-${t}`}),uj=ww(e=>[e(aj).length]),cj=TT(aj),dj=jT(aj),pj=ww(null,async(e,t,{id:n,toIndex:r,event:i})=>{const o=e(Xw),a=e(Kw),s=e(mC),l=e(qT("measures"));if(void 0===o||void 0===a||void 0===l||"string"!=typeof n||null===s)return;const u=YC({measures:l},i);t(oC,u),s.add(async()=>{await o.moveMeasure({cId:n,toIndex:r})})}),fj=zS().palette,hj={TEXT:fj.text.primary,DISABLED:fj.text.disabled,HOVER:fj.action.hover,WHITE:Of.GREYSCALE_100,BORDER_MEDIUM:Of.GREYSCALE_85,DARK_MODE_TEXT:Of.GREYSCALE_95,DARK_MODE_BORDER:Of.GREYSCALE_95,DARK_MODE_DISABLED:Of.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:fj.primary.main,LINK:fj.info.main,ERROR:fj.error.main};function mj(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 gj(e){if("object"==typeof e&&mj(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let i;(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(i[1],16),n=parseInt(i[2],16),r=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(i[1]+i[1],16),n=parseInt(i[2]+i[2],16),r=parseInt(i[3]+i[3],16))}return(t<<16)+(n<<8)+r}const vj={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}},yj="qcm-color";function bj(...e){const t={type:yj,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,i=0,o=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===yj)({r:n,g:r,b:i,a:o}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(mj(e[0]))({r:n,g:r,b:i}=e[0]),"a"in e[0]&&({a:o}=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=parseInt(s[3],10),o=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))o=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),i=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))n=parseInt(s[1],16),r=parseInt(s[2],16),i=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),i=parseInt(s[3]+s[3],16),o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=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]);o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i)}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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=1}else{const e=a.toLowerCase();if(function(e){return e in vj}(e)){const t=vj[e];({r:n,g:r,b:i}=t),o="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(o=(4278190080&e[0])>>>24,o/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],i=e[2],o=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+i+o)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(i),t.a=o,t}function xj(e){let t,n,r;if(mj(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const i="string"==typeof e?gj(e):e;return t=((16711680&i)>>16).toString(16),n=((65280&i)>>8).toString(16),r=(255&i).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function Sj(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,{a:l}=i,u=Math.max(o,a,s),c=Math.min(o,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function wj(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function Cj(e){if(mj(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?gj(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Ej(e,t){return mj(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Ej(bj(e))}function Ij(e){return mj(e)?1===e.a?Cj(e):Ej(e):Ij(bj(e))}const Dj=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Rj(e){return.2126*Dj(e.r)+.7152*Dj(e.g)+.0722*Dj(e.b)}function Pj(...e){const t=bj(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Sj(n)),n.spaces.hslaObject),i=e=>{const t=r(),{h:n,s:i,l:o,a:a}=t;return`hsla(${n}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=bj(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=bj(...e);return t.invalid||Rj(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Cj(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Ej(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Ij(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=xj(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const i="string"==typeof e?bj(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:i}=Sj(e);return`hsla(${t}, ${n}, ${r}, ${i})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:i,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=wj(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=wj(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Pj(i(18*e)),getDarkenedColor:(e=1)=>Pj(i(18*-e))}}function Mj(e,t){if(!e||!t)return;const n=Rj(e),r=Rj(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const Lj="#FFFFFF";function Aj(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kj,Oj="top",qj="top-right",Tj="right",jj="bottom-right",Nj="bottom",_j="bottom-left",Fj="left",zj="top-left";Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(kj={},"equal-equal",[Oj,Nj]),"equal-higher",[Nj,jj]),"equal-lower",[Oj,qj]),"equal-void",[Oj,Nj]),"higher-equal",[Fj,_j,Oj,qj]),"higher-higher-acute",[Nj,_j,Fj,qj]),"higher-higher-obtuse",[Nj,Oj]),"higher-lower-negative",[Oj,qj,Tj]),"higher-lower-positive",[Nj,_j,Fj]),"higher-void",[Oj]),Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(Aj(kj,"lower-equal",[Oj]),"lower-higher-negative",[Oj,zj]),"lower-higher-positive",[jj]),"lower-lower-acute",[Oj,zj,Fj,qj,Tj]),"lower-lower-obtuse",[Oj,Nj]),"lower-void",[Oj]),"void-equal",[Oj]),"void-higher",[Oj,Nj]),"void-lower",[Oj,Nj,Fj]),"void-void",[Oj]),Aj(kj,"unclassified",[Oj,Nj,Tj,Fj,qj,jj,_j,zj]);var Wj,$j,Hj=["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"],Vj=["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 Bj(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Vj:Hj}var Gj=function(){if($j)return Wj;$j=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Wj=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(u=i(l)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Wj}();function Uj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kj(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Gj);var Xj=.7,Jj=1/Xj,Zj="\\s*([+-]?\\d+)\\s*",Qj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",eN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tN=/^#([0-9a-f]{3,8})$/,nN=new RegExp(`^rgb\\(${Zj},${Zj},${Zj}\\)$`),rN=new RegExp(`^rgb\\(${eN},${eN},${eN}\\)$`),iN=new RegExp(`^rgba\\(${Zj},${Zj},${Zj},${Qj}\\)$`),oN=new RegExp(`^rgba\\(${eN},${eN},${eN},${Qj}\\)$`),aN=new RegExp(`^hsl\\(${Qj},${eN},${eN}\\)$`),sN=new RegExp(`^hsla\\(${Qj},${eN},${eN},${Qj}\\)$`),lN={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 uN(){return this.rgb().formatHex()}function cN(){return this.rgb().formatRgb()}function dN(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pN(t):3===n?new gN(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fN(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fN(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=nN.exec(e))?new gN(t[1],t[2],t[3],1):(t=rN.exec(e))?new gN(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=iN.exec(e))?fN(t[1],t[2],t[3],t[4]):(t=oN.exec(e))?fN(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=aN.exec(e))?wN(t[1],t[2]/100,t[3]/100,1):(t=sN.exec(e))?wN(t[1],t[2]/100,t[3]/100,t[4]):lN.hasOwnProperty(e)?pN(lN[e]):"transparent"===e?new gN(NaN,NaN,NaN,0):null}function pN(e){return new gN(e>>16&255,e>>8&255,255&e,1)}function fN(e,t,n,r){return r<=0&&(e=t=n=NaN),new gN(e,t,n,r)}function hN(e){return e instanceof Kj||(e=dN(e)),e?new gN((e=e.rgb()).r,e.g,e.b,e.opacity):new gN}function mN(e,t,n,r){return 1===arguments.length?hN(e):new gN(e,t,n,null==r?1:r)}function gN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vN(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}`}function yN(){const e=bN(this.opacity);return`${1===e?"rgb(":"rgba("}${xN(this.r)}, ${xN(this.g)}, ${xN(this.b)}${1===e?")":`, ${e})`}`}function bN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xN(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SN(e){return((e=xN(e))<16?"0":"")+e.toString(16)}function wN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new EN(e,t,n,r)}function CN(e){if(e instanceof EN)return new EN(e.h,e.s,e.l,e.opacity);if(e instanceof Kj||(e=dN(e)),!e)return new EN;if(e instanceof EN)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new EN(a,s,l,e.opacity)}function EN(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function IN(e){return(e=(e||0)%360)<0?e+360:e}function DN(e){return Math.max(0,Math.min(1,e||0))}function RN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Uj(Kj,dN,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uN,formatHex:uN,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return CN(this).formatHsl()},formatRgb:cN,toString:cN}),Uj(gN,mN,Yj(Kj,{brighter(e){return e=null==e?Jj:Math.pow(Jj,e),new gN(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Xj:Math.pow(Xj,e),new gN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gN(xN(this.r),xN(this.g),xN(this.b),bN(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:vN,formatHex:vN,formatHex8:function(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}${SN(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yN,toString:yN})),Uj(EN,function(e,t,n,r){return 1===arguments.length?CN(e):new EN(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return e=null==e?Jj:Math.pow(Jj,e),new EN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Xj:Math.pow(Xj,e),new EN(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gN(RN(e>=240?e-240:e+120,i,r),RN(e,i,r),RN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new EN(IN(this.h),DN(this.s),DN(this.l),bN(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=bN(this.opacity);return`${1===e?"hsl(":"hsla("}${IN(this.h)}, ${100*DN(this.s)}%, ${100*DN(this.l)}%${1===e?")":`, ${e})`}`}}));const PN=Math.PI/180,MN=180/Math.PI,LN=.96422,AN=.82521,kN=4/29,ON=6/29,qN=3*ON*ON,TN=ON*ON*ON;function jN(e){if(e instanceof NN)return new NN(e.l,e.a,e.b,e.opacity);if(e instanceof $N)return HN(e);e instanceof gN||(e=hN(e));var t,n,r=WN(e.r),i=WN(e.g),o=WN(e.b),a=_N((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=_N((.4360747*r+.3850649*i+.1430804*o)/LN),n=_N((.0139322*r+.0971045*i+.7141733*o)/AN)),new NN(116*a-16,500*(t-a),200*(a-n),e.opacity)}function NN(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _N(e){return e>TN?Math.pow(e,1/3):e/qN+kN}function FN(e){return e>ON?e*e*e:qN*(e-kN)}function zN(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function WN(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $N(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function HN(e){if(isNaN(e.h))return new NN(e.l,0,0,e.opacity);var t=e.h*PN;return new NN(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Uj(NN,function(e,t,n,r){return 1===arguments.length?jN(e):new NN(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return new NN(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new NN(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,n=isNaN(this.b)?e:e-this.b/200;return new gN(zN(3.1338561*(t=LN*FN(t))-1.6168667*(e=1*FN(e))-.4906146*(n=AN*FN(n))),zN(-.9787684*t+1.9161415*e+.033454*n),zN(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Uj($N,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $N)return new $N(e.h,e.c,e.l,e.opacity);if(e instanceof NN||(e=jN(e)),0===e.a&&0===e.b)return new $N(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*MN;return new $N(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $N(e,t,n,null==r?1:r)},Yj(Kj,{brighter(e){return new $N(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new $N(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return HN(this).rgb()}}));var VN=e=>()=>e;function BN(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):VN(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?BN:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):VN(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=mN(e)).r,(t=mN(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=BN(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var GN="center",UN="bottom";[{key:"NoDataExist",alignment:GN,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:GN,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:GN,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:GN},{key:"DataRangeIncludingZero",alignment:UN},{key:"LimitedData",alignment:UN},{key:"NegativeOrZeroValues",alignment:UN}].reduce(function(e,t){return e[t.key]=t,e},{});var YN,KN=["__proto__","constructor"];function XN(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!KN.some(function(e){return r.includes(e)})){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function JN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function ZN(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,o)},n)}}function QN(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function e_(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=n_)):void 0===t&&(t=t_);for(var n,r,i,o,a,s=new o_(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new o_(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(i_)}function t_(e){return e.children}function n_(e){return Array.isArray(e)?e[1]:null}function r_(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function i_(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function o_(e){this.data=e,this.depth=this.height=0,this.parent=null}o_.prototype=e_.prototype={constructor:o_,count:function(){return this.eachAfter(QN)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return e_(this).eachBefore(r_)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},YN=function(e){
100
+ */var wS,CS,ES={},IS={};function DS(){if(wS)return IS;wS=1;var e=Za;Object.defineProperty(IS,"__esModule",{value:!0}),IS.default=void 0;var t=(0,e(yv()).default)();return IS.default=t,IS}var RS,PS,MS={},LS={};function AS(){if(PS)return MS;PS=1;var e=Za;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.breakpoints,a=void 0===o?["sm","md","lg"]:o,s=i.disableAlign,l=void 0!==s&&s,u=i.factor,c=void 0===u?2:u,d=i.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,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var i=h[e],o=parseFloat(m(i.fontSize,"rem"));if(!(o<=1)){var a=o,s=1+(a-1)/c,u=i.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(o));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},i,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Vs()),n=Mh,r=function(){if(RS)return LS;RS=1;var e=Za;Object.defineProperty(LS,"__esModule",{value:!0}),LS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},LS.getUnit=n,LS.toUnitless=r,LS.convertLength=function(e){return function(t,i){var o=n(t);if(o===i)return t;var a=r(t);if("px"!==o)if("em"===o)a=r(t)*r(e);else if("rem"===o)return a=r(t)*r(e),t;var s=a;if("px"!==i)if("em"===i)s=a/r(e);else{if("rem"!==i)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+i}},LS.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i},LS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},LS.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,i=e.max,o=e.unit,a=void 0===o?"rem":o,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(i-r)/l[l.length-1];return l.forEach(function(e){var i=r+p*e;null!==c&&(i=c(i)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*i)/1e4).concat(a))}),d};var t=e(Kh());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return LS}();return MS}var kS,OS={};var qS,TS={};var NS,jS={};var _S,FS={};!function(e){var t=Za,r=_f;Object.defineProperty(e,"__esModule",{value:!0});var i={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 o=Ff;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var a=r(yv()),s=t(function(){if(bv)return xv;bv=1;var e=Za;Object.defineProperty(xv,"__esModule",{value:!0}),xv.default=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(i))};var t=Mh,n=e(yv());return xv}()),l=t(function(){if(yS)return Sv;yS=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.default=function(t){return(0,e.createStyles)(t)};var e=SS;return Sv}()),u=t(function(){if(CS)return ES;CS=1;var e=Za;Object.defineProperty(ES,"__esModule",{value:!0}),ES.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return ES.default=i,ES}()),c=t(AS()),d=t(function(){if(kS)return OS;kS=1;var e=Za;Object.defineProperty(OS,"__esModule",{value:!0}),OS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e){var i=(0,n.styled)(e);return function(e,n){return i(e,(0,t.default)({defaultTheme:r.default},n))}};return OS.default=i,OS}()),p=hv();Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))});var f=t(function(){if(qS)return TS;qS=1;var e=Za;Object.defineProperty(TS,"__esModule",{value:!0}),TS.default=function(){return(0,t.useTheme)()||r.default};var t=SS;e(n);var r=e(DS());return TS}()),h=t(function(){if(NS)return jS;NS=1;var e=Za;Object.defineProperty(jS,"__esModule",{value:!0}),jS.default=void 0;var t=e(Vs()),n=SS,r=e(DS()),i=function(e,i){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return jS.default=i,jS}()),m=t(function(){if(_S)return FS;_S=1;var e=Za;Object.defineProperty(FS,"__esModule",{value:!0}),FS.default=void 0;var t=SS,n=e(DS()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return FS.default=r,FS}()),g=SS}(qf),qf.alpha(cf.GREYSCALE_0,.05),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5),qf.alpha(cf.GREEN_PALE,.5),qf.alpha(cf.BLUE_PALE,.5);const zS=(e="light")=>kf();function WS(e){return"init"in e}function $S(e){return!!e.write}function HS(e){return"v"in e||"e"in e}function VS(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}function BS(e){return"function"==typeof(null==e?void 0:e.then)}function GS(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function US(e,t,n){const r=n.get(e),i=null==r?void 0:r.t,o=t.p;if(!(null==i?void 0:i.size))return o;if(!o.size)return i;const a=new Set(i);for(const e of o)a.add(e);return a}const YS=()=>{const e={},t=new WeakMap,n=n=>{var r,i;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(i=t.get(n))||i.forEach(e=>e())};return n.add=(n,r)=>{const i=n||e;let o=t.get(i);return o||(o=new Set,t.set(i,o)),o.add(r),()=>{o.delete(r),o.size||t.delete(i)}},n};function KS(e){return e.i||(e.i=YS()),e.r||(e.r=YS()),e.c||(e.c=YS()),e.m||(e.m=YS()),e.u||(e.u=YS()),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 XS=(e,t,...n)=>t.read(...n),JS=(e,t,...n)=>t.write(...n),ZS=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},QS=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},ew=(e,n)=>{var r;const i=vw(e),o=i[0],a=i[6],s=i[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Atom is undefined or null");let l=o.get(n);return l||(l={d:new Map,p:new Set,n:0},o.set(n,l),null==(r=a.i)||r.call(a,n),null==s||s(e,n)),l},tw=e=>{var t;const n=vw(e),r=n[1],i=n[3],o=n[4],a=n[5],s=n[6],l=n[13];if(!(s.f||i.size||o.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const n=new Set;for(const e of i){const i=null==(t=r.get(e))?void 0:t.l;if(i)for(const e of i)n.add(e)}i.clear();for(const e of a)n.add(e);a.clear();for(const e of o)n.add(e);o.clear();for(const e of n)c(e);i.size&&l(e)}while(i.size||a.size||o.size);if(u.length)throw new AggregateError(u)},nw=e=>{const n=vw(e),r=n[1],i=n[2],o=n[3],a=n[11],s=n[14],l=n[17];if(!o.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of o)f.push(t),h.push(a(e,t));for(;f.length;){const n=f.length-1,o=f[n],s=h[n];if(p.has(o))f.pop(),h.pop();else if(d.has(o)){if(i.get(o)===s.n)u.push(o),c.push(s);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&i.has(o))throw new Error("[Bug] invalidated atom exists");p.add(o),f.pop(),h.pop()}else{d.add(o);for(const t of US(o,s,r))d.has(t)||(f.push(t),h.push(a(e,t)))}}for(let t=u.length-1;t>=0;--t){const n=u[t],r=c[t];let a=!1;for(const e of r.d.keys())if(e!==n&&o.has(e)){a=!0;break}a&&(i.set(n,r.n),s(e,n),l(e,n)),i.delete(n)}},rw=new WeakSet,iw=(e,n)=>{var r,i;const o=vw(e),a=o[1],s=o[2],l=o[3],u=o[6],c=o[7],d=o[11],p=o[12],f=o[13],h=o[14],m=o[16],g=o[17],v=o[20],y=o[26],b=o[28],x=d(e,n),S=b[0];if(HS(x)){if(a.has(n)&&s.get(n)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[n,r]of x.d)if(h(e,n).n!==r){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(n)){const t=!l.size;g(e,n),t&&(f(e),p(e))}},D=t=>{var r;if(t===n){const n=d(e,t);if(!HS(n)){if(!WS(t))throw new Error("no atom init");v(e,t,t.init)}return VS(n)}const i=h(e,t);try{return VS(i)}finally{C.delete(t),x.d.set(t,i.n),BS(x.v)&&GS(n,x.v,i),a.has(n)&&(null==(r=a.get(t))||r.t.add(n)),w||I()}};let R,P;const M={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||$S(n)||console.warn("setSelf function cannot be used with read-only atom"),!P&&$S(n)&&(P=(...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,...r)}finally{f(e),p(e)}}),P}},L=x.n,A=s.get(n)===L;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.delete(e);const i=c(e,n,D,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,n,i),BS(i)){y(e,i,()=>null==R?void 0:R.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(r=u.r)||r.call(u,n),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==L&&A&&(s.set(n,x.n),l.add(n),null==(i=u.c)||i.call(u,n))}},ow=(e,t)=>{const n=vw(e),r=n[1],i=n[2],o=n[11],a=[t];for(;a.length;){const t=a.pop(),n=o(e,t);for(const s of US(t,n,r)){const t=o(e,s);i.get(s)!==t.n&&(i.set(s,t.n),a.push(s))}}},aw=(e,n,...r)=>{const i=vw(e),o=i[3],a=i[6],s=i[8],l=i[11],u=i[12],c=i[13],d=i[14],p=i[15],f=i[16],h=i[17],m=i[20],g=i[28];let v=!0;const y=t=>VS(d(e,t)),b=(r,...i)=>{var s;const d=l(e,r);try{if(r===n){if(!WS(r))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&rw.add(e);const n=d.n,l=i[0];return m(e,r,l),h(e,r),void(n!==d.n&&(++g[0],o.add(r),p(e,r),null==(s=a.c)||s.call(a,r)))}return f(e,r,...i)}finally{v||(c(e),u(e))}};try{return s(e,n,y,b,...r)}finally{v=!1}},sw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[3],a=r[6],s=r[11],l=r[15],u=r[18],c=r[19],d=s(e,t),p=i.get(t);if(p&&d.d.size>0){for(const[r,i]of d.d)if(!p.d.has(r)){const c=s(e,r);u(e,r).t.add(t),p.d.add(r),i!==c.n&&(o.add(r),l(e,r),null==(n=a.c)||n.call(a,r))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const r=c(e,n);null==r||r.t.delete(t)}}},lw=(e,t)=>{var n;const r=vw(e),i=r[1],o=r[4],a=r[6],s=r[10],l=r[11],u=r[12],c=r[13],d=r[14],p=r[16],f=r[18],h=l(e,t);let m=i.get(t);if(!m){d(e,t);for(const n of h.d.keys()){f(e,n).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,m),$S(t)&&function(e){return!!e.onMount}(t)){const n=()=>{let n=!0;const r=(...r)=>{try{return p(e,t,...r)}finally{n||(c(e),u(e))}};try{const i=s(e,t,r);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};o.add(n)}null==(n=a.m)||n.call(a,t)}return m},uw=(e,t)=>{var n,r;const i=vw(e),o=i[1],a=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t);let d=o.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=o.get(e))?void 0:n.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,o.delete(t);for(const n of c.d.keys()){const r=u(e,n);null==r||r.t.delete(t)}null==(r=s.u)||r.call(s,t)},cw=(e,t,n)=>{const r=vw(e),i=r[11],o=r[27],a=i(e,t),s="v"in a,l=a.v;if(BS(n))for(const r of a.d.keys())GS(t,n,i(e,r));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,BS(l)&&o(e,l))},dw=(e,t)=>VS((0,vw(e)[14])(e,t)),pw=(e,t,...n)=>{const r=vw(e),i=r[3],o=r[12],a=r[13],s=r[16],l=i.size;try{return s(e,t,...n)}finally{i.size!==l&&(a(e),o(e))}},fw=(e,t,n)=>{const r=vw(e),i=r[12],o=r[18],a=r[19],s=o(e,t).l;return s.add(n),i(e),()=>{s.delete(n),a(e,t),i(e)}},hw=(e,t,n)=>{const r=vw(e)[25];let i=r.get(t);if(!i){i=new Set,r.set(t,i);const e=()=>r.delete(t);t.then(e,e)}i.add(n)},mw=(e,t)=>{const n=vw(e)[25].get(t);null==n||n.forEach(e=>e())},gw=new WeakMap,vw=e=>{const n=gw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");return n};function yw(e){const t=vw(e),n=t[24];return n?n(t):t}function bw(...e){const t={get:e=>(0,vw(t)[21])(t,e),set:(e,...n)=>(0,vw(t)[22])(t,e,...n),sub:(e,n)=>(0,vw(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},XS,JS,ZS,QS,ew,tw,nw,iw,ow,aw,sw,lw,uw,cw,dw,pw,fw,void 0,new WeakMap,hw,mw,[0]].map((t,n)=>e[n]||t);return gw.set(t,Object.freeze(n)),t}let xw,Sw=0;function ww(e,n){const r="atom"+ ++Sw,i={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?i.read=e:(i.init=e,i.read=Cw,i.write=Ew),n&&(i.write=n),i}function Cw(e){return e(this)}function Ew(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Iw(){return bw()}const Dw=u(void 0);function Rw(e){const n=h(Dw);return(null==e?void 0:e.store)||n||(xw||(xw=Iw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=xw),globalThis.__JOTAI_DEFAULT_STORE__!==xw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),xw)}function Pw({children:e,store:t}){const n=l(null);return t?r(Dw.Provider,{value:t},e):(null===n.current&&(n.current=Iw()),r(Dw.Provider,{value:n.current},e))}const Mw=e=>"function"==typeof(null==e?void 0:e.then),Lw=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Aw=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Lw(e),e)}),kw=new WeakMap,Ow=(e,t,n)=>{const r=yw(e)[26];let i=kw.get(t);return i||(i=new Promise((o,a)=>{let s=t;const l=e=>t=>{s===e&&o(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=n();Mw(t)?(kw.set(t,i),s=t,t.then(l(t),u(t)),r(e,t,c)):o(t)}catch(e){a(e)}};t.then(l(t),u(t)),r(e,t,c)}),kw.set(t,i)),i};function qw(e,t){const{delay:r,unstable_promiseStatus:i=!n.use}={},o=Rw(t),[[a,s,l],u]=c(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let f=a;if(s===o&&l===e||(u(),f=o.get(e)),d(()=>{const t=o.sub(e,()=>{if(i)try{const t=o.get(e);Mw(t)&&Lw(Ow(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(u,r);u()});return u(),t},[o,e,r,i]),p(f),Mw(f)){const t=Ow(o,f,()=>o.get(e));return i&&Lw(t),Aw(t)}return f}function Tw(e,n){const r=Rw(n);return f((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function Nw(e,t){return[qw(e,t),Tw(e,t)]}t.meta.env&&t.meta.env.MODE;!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))}},n){var r;let i,o;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(i!==(e=e||"")){try{o=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}i=e}return o},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,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const jw=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),_w=new WeakMap,Fw=()=>{};const zw=new WeakMap;function Ww(e,t){const n=Rw(t),r=$w(n);for(const[i,...o]of e)r.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(i),n.set(i,...o))}const $w=e=>{let t=zw.get(e);return t||(t=new WeakSet,zw.set(e,t)),t};function Hw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Vw(e){const t=ww(()=>[]),n=ww(function(e){const[r,i,o]=e(t);o.has(n)&&(r.forEach(e),++i.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=new Set;let i,o=0,a=!1,s=!1,l=!1;function u(){if(o)return;r.clear();let t=!0;const c=i=>{if(l)return e.get(i);if(i===n){const t=h(e,i);if(!HS(t)){if(!WS(i))throw new Error("no atom init");S(e,i,i.init)}return VS(t)}const o=v(e,i);try{return VS(o)}finally{C.d.set(i,o.n),d.get(i)?.t.add(n),t?r.add(i):d.has(i)&&(x(e,n),g(e),m(e))}};c.peek=e.get;const w=(r,...i)=>{const a=h(e,r);try{if(++o,r===n){if(!WS(r))throw new Error("atom not writable");const t=a.n,n=i[0];return S(e,r,n),x(e,r),void(t!==a.n&&(p.add(r),f.c?.(r),y(e,r)))}return b(e,r,...i)}finally{t||(g(e),m(e)),--o}};w.recurse=(t,...r)=>{if(l){if(Hw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,n),w(t,...r)}finally{g(e),a=!1,s&&(s=!1,u())}};try{i?.();const e=n.effect(c,w);if("function"!=typeof e)return;i=()=>{if(!o)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,i=void 0}}}finally{t=!1,r.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,n),g(e)}}const c=yw(e),d=c[1],p=c[3],f=KS(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 n=Bw.get(e);n||(n=new Set,Bw.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,f),C=h(e,n);C.v=void 0,Object.assign(e.get(t),[r,C,d]),f.c.add(n,function(){p.delete(n)}),f.m.add(n,function(){w.add(u),i&&w.delete(i)}),f.u.add(n,function(){w.delete(u),i&&w.add(i)}),f.c.add(n,function(){a?s=!0:w.add(u)})},Hw()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Bw=new WeakMap;const Gw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionToAlternative(r.def.qDef.cId):await t.moveMeasureToAlternative(r.def.qDef.cId))},Uw=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionFromAlternative(r.def.qDef.cId):await t.moveMeasureFromAlternative(r.def.qDef.cId))},Yw=async e=>{const{type:t,handler:n,model:r,fieldInfo:i,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await Uw(i,n,t);for(const t of e.localUnchecked)await Gw(i,n,t);break;case"checked":await Uw(i,n,e.cId);break;case"unchecked":await Gw(i,n,e.cId)}})},Kw=ww(),Xw=ww(),Jw=ww(),Zw=ww(e=>e(Jw)?.translate??(e=>e)),Qw=ww(""),eC=ww(e=>{const t=e(Qw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),tC=e=>7005!==e.qError?.qErrorCode,nC=new WeakMap,rC={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},iC=function(e,n=Fw){return((e,t,n)=>{const r=jw(()=>new WeakMap,_w,t);return jw(e,r,n)})(()=>{const r=new WeakMap,i=new WeakMap,o=ww(0),a=ww([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(o,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(o.debugPrivate=!0,a.debugPrivate=!0);const s=ww(t=>{let l;t(o);try{l=t(s)}catch(e){}const 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=>{i.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u))throw r.get(u);return i.has(u)?{p:u,v:i.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),ww(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}(ww(async e=>{const t=e(Kw);if(t){if(nC.has(t))return nC.get(t);try{const e=await t.app.createSessionObject(rC);return nC.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),oC=ww(null),aC=ww(),sC=Vw((e,t)=>{const n=e(Kw),r=e(iC);if(!n||!r)return;const i=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const i=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const o=await r.getLayout();t(aC,{layout:structuredClone(e),properties:structuredClone(i),altLayout:structuredClone(o)}),t(oC,null)};return i(),n.Invalidated?.bind(i),()=>{n.Invalidated?.unbind(i)}}),lC=ww(e=>e(aC)?.layout),uC=ww(e=>e(aC)?.altLayout),cC=ww(e=>e(aC)?.properties),dC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qDimensionInfo.filter(tC)??[]}),pC=ww(e=>{const t=e(aC)?.layout;return t?.qHyperCube.qMeasureInfo.filter(tC)??[]}),fC=ww(e=>{const t=e(lC),n=e(dC),r=e(pC),i=e(cC),o=new Map;return t&&i?(n.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"dimension",def:i.qHyperCubeDef.qDimensions[t]})}),r.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"measure",def:i.qHyperCubeDef.qMeasures[t]})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions?.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures?.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})}),o):o});class hC{#e=[];#t=!1;#n=!1;#r;#i;#o;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#i=void 0,this.#o=void 0,this.#a=void 0}pause(){this.#i&&(clearTimeout(this.#a),this.#o?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#i=e,this.#o=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#o;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#o&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#o?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#i)await this.#i;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const mC=ww(null),gC=Vw((e,t)=>{const n=e(Kw),r=e(Xw),i=new hC({onQueueCompleted:async()=>{n&&r&&await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(mC,i);const o=()=>{i.pause()},a=()=>{i.continue(500)},s=()=>{i.abort()};return n?.Invalidated?.bind(o),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{i.abort(),n?.Invalidated?.unbind(o),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),vC=ww(e=>{const t=[...e(dC),...e(pC)].map(e=>e.cId);return new Set(t)}),yC=ww(new Set),bC=ww(new Set),xC=ww(e=>{const t=e(yC),n=e(bC);return e(vC).difference(n).union(t)}),SC=Vw((e,t)=>{e(vC),t(yC,new Set),t(bC,new Set)}),wC=ww(e=>e(xC),(e,t,n)=>{const r=e(xC).has(n),i=new Set(e(bC)),o=new Set(e(yC));r?(i.add(n),o.delete(n)):(o.add(n),i.delete(n)),t(bC,i),t(yC,o),Yw({type:r?"unchecked":"checked",cId:n,handler:e(Xw),model:e(Kw),fieldInfo:e(fC),handlerQueue:e(mC)})}),CC=({props:e,children:t})=>(Ww([[Kw,e.args.model],[Jw,e.args.apis],[Xw,e.args.handler]]),qw(SC),qw(sC),qw(gC),t);function EC(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function IC(e){return"write"in e}const DC=new WeakMap,RC={},{read:PC,write:MC}=ww(null);function LC(e,t,n){const[r,i,o,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=i.get(t);return r||(r=[qC(e,t,n),n],i.set(t,r)),r}const l=n??RC;let u=o.get(l);u||(u=new WeakMap,o.set(l,u));let c=u.get(t);if(!c){const[r,i]=a?LC(a,t,n):[t];c=[t.read===PC?r:qC(e,t,i),i],u.set(t,c)}return c}function AC(e){for(const t of e[5])t()}function kC(e,t,n,r,i){if(n.read===PC&&IC(n)&&IC(t)&&n.write!==MC&&e!==r){const{write:o}=n;return t.write=OC(e,n.write.bind(n),r,i),()=>{t.write=o}}}function OC(e,t,n,r=n){return function(i,o,...a){return t(function(t){const[r]=LC(e,t,n);return i(r)},function(t,...i){const[a]=LC(e,t,n),s=kC(e,a,t,n,r);try{return o(a,...i)}finally{null==s||s()}},...a)}}function qC(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const i=Object.getPrototypeOf(t),o=Object.create(i,r);return o.read!==PC&&(o.read=function(e,t,n){return function(r,i){return t(function(t){const[i]=LC(e,t,n);return r(i)},i)}}(e,t.read.bind(t),n)),IC(o)&&IC(t)&&o.write!==MC&&(o.write=OC(e,t.write.bind(t),n)),o}function TC({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const i=new WeakSet(e),o=DC.get(n),a=(null==o?void 0:o[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,o,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=[...yw(t)],r=n[21],i=n[22],o=n[23],a=n[9],s={};n[9]=(e,t)=>a(l,t),n[21]=h(r),n[22]=p,n[23]=h(o),n[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],e=>d(t[0],e)),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=bw(...n);return l;function u(t){const n=new WeakMap;return function(r){let i=n.get(r);if(i)return i;const o=t(r);return o?(i={...o,d:m(o.d,function(t){return n=>t(LC(e,n)[0])}),p:g(o.p),get n(){return o.n},set n(e){o.n=e},get v(){return o.v},set v(e){o.v=e},get e(){return o.e},set e(e){o.e=e}},n.set(r,i),i):void 0}}function c(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const i=e(n);return i?(r={...i,d:g(i.d),t:g(i.t),get u(){return i.u},set u(e){i.u=e}},t.set(n,r),r):void 0}}function d(e,t){return function(n,r){return e.get(r)||(e.set(r,t(n,r)),e.get(r))}}function p(t,n,...r){const[o,a]=LC(e,n),s=kC(e,o,n,a,e);try{return i(t,o,...r)}finally{null==s||s()}}function f(t,n){return function(r,...i){const[o]=LC(e,r);return(n?n(t):t)(o,...i)}}function h(t,n){return function(r,i,...o){const[a]=LC(e,i);return(n?n(t):t)(r,a,...o)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield LC(e,n)[0]}}}function v(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[i]=LC(e,n);return t.add(i,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),DC.set(c,s);for(const t of new Set(e))l.set(t,[qC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[qC(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!i.has(t)&&l.delete(t):l.set(t,[qC(s,t,s),s])});u.add(t)}return c}const NC=function(e,t){return function(n){const{atoms:i=[],atomFamilies:o=[],children:a,scope:s,name:l}=n,u=t(),c=Array.from(i,e=>Array.isArray(e)?e[0]:e);function p(){return[s??TC({atoms:c,atomFamilies:o,parentStore:u,name:l}),function(e){return u!==e.parentStore||!EC(c,e.atoms)||!EC(o,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:o,parentStore:u,providedScope:s})){const e=DC.get(f);e&&AC(e),g(p)}return Ww(Array.from(i).filter(Array.isArray),{store:f}),d(()=>{const e=DC.get(f);return()=>{e&&AC(e)}},[f]),r(e,{store:f,children:a})}}(Pw,Rw);var jC=Object.defineProperty,_C=Object.defineProperties,FC=Object.getOwnPropertyDescriptors,zC=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,HC=(e,t,n)=>t in e?jC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VC=(e,t)=>{for(var n in t||(t={}))WC.call(t,n)&&HC(e,n,t[n]);if(zC)for(var n of zC(t))$C.call(t,n)&&HC(e,n,t[n]);return e},BC=(e,t)=>_C(e,FC(t));function GC(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function UC(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function YC(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(UC(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&UC(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return BC(VC({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return BC(VC({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&UC(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return BC(VC({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return BC(VC({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return BC(VC({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,GC)}function KC(e,t){let n=null;const r=new Map,i=new Set;function o(i){let s;if(void 0===t)s=r.get(i);else for(const[e,n]of r)if(t(e,i)){s=n;break}if(void 0!==s){if(!n?.(s[1],i))return s[0];o.remove(i)}const l=e(i);return r.set(i,[l,Date.now()]),a("CREATE",i,l),l}function a(e,t,n){for(const r of i)r({type:e,param:t,atom:n})}return o.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),o.getParams=()=>r.keys(),o.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[i]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,i);break}},o.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,i]]of r)n(i,e)&&(r.delete(e),a("REMOVE",e,t))},o}const XC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,JC=ww(),ZC=ww(e=>e(JC)?.numberOfSections??0),QC=ww(e=>e(JC)?.numberOfItemsInSection??[]),eE=ww(e=>e(JC)?.keyExtractor??XC),tE=ww(e=>e(JC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),nE=ww(e=>e(JC)?.onDragEnd),rE=ww(e=>e(JC)?.onDragOver),iE=ww(e=>e(JC)?.itemRenderer),oE=ww(e=>e(JC)?.headerRenderer),aE=ww(e=>e(JC)?.dragOverlayRenderer),sE=ww(e=>e(JC)?.onClick),lE=ww(e=>{const t=e(ZC),n=e(QC),r=e(eE),i={};for(let e=0;e<t;e++)i[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return i}),uE=ww(null),cE=ww(e=>e(uE),(e,t,n)=>{if(null===n)return void t(uE,null);const r=e(uE);t(uE,{...r,...n})}),dE=KC(e=>ww(null,(t,n,r)=>{let i;"over"===e?i=t(rE):"end"===e&&(i=t(nE),n(cE,null));const{source:o,target:a}=r.operation;if(null===a)return void n(cE,{toIndex:void 0,toSectionIndex:void 0});const s=YC(t(lE),r)[a.data.sectionIndex].indexOf(o.id),l=-1!==s?s:a.sortable?.index??0;"start"===e?n(cE,{id:o.id,startSection:o.data.sectionKey,startIndex:o.data.itemIndex,startSectionIndex:o.data.sectionIndex}):"over"===e&&n(cE,{toIndex:l,toSectionIndex:a.data.sectionIndex}),i?.({id:o.id,toIndex:l,toSection:a.data.sectionKey,fromSection:o.data.sectionKey,startSection:t(cE)?.startSection??o.data.sectionKey,event:r})})),pE=[JC,ZC,QC,eE,tE,nE,iE,oE,sE,cE],fE=[dE],hE=({props:e,children:t})=>{const n=Tw(JC);return g(()=>{n(e)},[e,n]),t};var mE=Symbol.for("preact-signals");function gE(){if(SE>1)SE--;else{var e,t=!1;for(!function(){var e=IE;for(IE=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==xE;){var n=xE;for(xE=void 0,wE++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&LE(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(wE=0,SE--,t)throw e}}function vE(e){if(SE>0)return e();EE=++CE,SE++;try{return e()}finally{gE()}}var yE=void 0;function bE(e){var t=yE;yE=void 0;try{return e()}finally{yE=t}}var xE=void 0,SE=0,wE=0,CE=0,EE=0,IE=void 0,DE=0;function RE(e){if(void 0!==yE){var t=e.n;if(void 0===t||t.t!==yE)return t={i:0,S:e,p:yE.s,n:void 0,t:yE,e:void 0,x:void 0,r:t},void 0!==yE.s&&(yE.s.n=t),yE.s=t,e.n=t,32&yE.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=yE.s,t.n=void 0,yE.s.n=t,yE.s=t),t}}function PE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ME(e,t){return new PE(e,t)}function LE(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 AE(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function kE(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function OE(e,t){PE.call(this,void 0),this.x=e,this.s=void 0,this.g=DE-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 qE(e,t){return new OE(e,t)}function TE(e){var t=e.m;if(e.m=void 0,"function"==typeof t){SE++;var n=yE;yE=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,NE(e),t}finally{yE=n,gE()}}}function NE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TE(e)}function jE(e){if(yE!==this)throw new Error("Out-of-order effect");kE(this),yE=e,this.f&=-2,8&this.f&&NE(this),gE()}function _E(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function FE(e,t){var n=new _E(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}PE.prototype.brand=mE,PE.prototype.h=function(){return!0},PE.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:bE(function(){var e;null==(e=t.W)||e.call(t)}))},PE.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&bE(function(){var e;null==(e=t.Z)||e.call(t)}))}},PE.prototype.subscribe=function(e){var t=this;return FE(function(){var n=t.value,r=yE;yE=void 0;try{e(n)}finally{yE=r}},{name:"sub"})},PE.prototype.valueOf=function(){return this.value},PE.prototype.toString=function(){return this.value+""},PE.prototype.toJSON=function(){return this.value},PE.prototype.peek=function(){var e=yE;yE=void 0;try{return this.value}finally{yE=e}},Object.defineProperty(PE.prototype,"value",{get:function(){var e=RE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wE>100)throw new Error("Cycle detected");!function(e){0!==SE&&0===wE&&e.l!==EE&&(e.l=EE,IE={S:e,v:e.v,i:e.i,o:IE})}(this),this.v=e,this.i++,DE++,SE++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gE()}}}}),OE.prototype=new PE,OE.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===DE)return!0;if(this.g=DE,this.f|=1,this.i>0&&!LE(this))return this.f&=-2,!0;var e=yE;try{AE(this),yE=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 yE=e,kE(this),this.f&=-2,!0},OE.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)}PE.prototype.S.call(this,e)},OE.prototype.U=function(e){if(void 0!==this.t&&(PE.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)}},OE.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(OE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),_E.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},_E.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TE(this),AE(this),SE++;var e=yE;return yE=this,jE.bind(this,e)},_E.prototype.N=function(){2&this.f||(this.f|=2,this.u=xE,xE=this)},_E.prototype.d=function(){this.f|=8,1&this.f||NE(this)},_E.prototype.dispose=function(){this.d()};var zE,WE,$E,HE,VE,BE,GE,UE,YE,KE,XE,JE,ZE,QE,eI,tI,nI,rI,iI,oI,aI=Object.create,sI=Object.defineProperty,lI=Object.defineProperties,uI=Object.getOwnPropertyDescriptor,cI=Object.getOwnPropertyDescriptors,dI=Object.getOwnPropertySymbols,pI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,hI=e=>{throw TypeError(e)},mI=(e,t,n)=>t in e?sI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gI=(e,t)=>sI(e,"name",{value:t,configurable:!0}),vI=["class","method","getter","setter","accessor","field","value","get","set"],yI=e=>void 0!==e&&"function"!=typeof e?hI("Function expected"):e,bI=(e,t,n,r,i)=>({kind:vI[e],name:t,metadata:r,addInitializer:e=>n._?hI("Already initialized"):i.push(yI(e||null))}),xI=(e,t)=>{return mI(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},SI=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},wI=(e,t,n,r,i,o)=>{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=vI[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&uI(d<4?i:{get[n](){return II(this,o)},set[n](e){return RI(this,o,e)}},n));d?f&&d<4&&gI(o,(d>2?"set ":d>1?"get ":"")+n):gI(i,n);for(var b=r.length-1;b>=0;b--)u=bI(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EI(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?II:PI)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>RI(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?yI(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?hI("Object expected"):(yI(a=s.get)&&(y.get=a),yI(a=s.set)&&(y.set=a),yI(a=s.init)&&g.unshift(a));return d||xI(e,i),y&&sI(i,n,y),f?4^d?o:y:i},CI=(e,t,n)=>t.has(e)||hI("Cannot "+n),EI=(e,t)=>Object(t)!==t?hI('Cannot use the "in" operator on this value'):e.has(t),II=(e,t,n)=>(CI(e,t,"read from private field"),n?n.call(e):t.get(e)),DI=(e,t,n)=>t.has(e)?hI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),RI=(e,t,n,r)=>(CI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),PI=(e,t,n)=>(CI(e,t,"access private method"),n);function MI(e,t){if(t){let n;return qE(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return qE(e)}function LI(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 n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!LI(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=n.some(n=>!LI(e[n],t[n]));return!i}return!1}function AI({get:e},t){return{init:e=>ME(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function kI(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=MI(e.bind(this)),n.set(this,t)),t.value}}function OI(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>lI(e,cI(t)))(((e,t)=>{for(var n in t||(t={}))pI.call(t,n)&&mI(e,n,t[n]);if(dI)for(var n of dI(t))fI.call(t,n)&&mI(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function qI(...e){const t=e.map(e=>FE(e));return()=>t.forEach(e=>e())}BE=[AI],VE=[AI],HE=[AI],$E=[OI()],WE=[OI()],zE=[OI()];var TI,NI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,SI(GE,5,this),DI(this,JE),DI(this,UE,SI(GE,8,this)),SI(GE,11,this),DI(this,ZE,SI(GE,12,this)),SI(GE,15,this),DI(this,nI,SI(GE,16,this)),SI(GE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return II(this,JE,iI)}get initial(){return II(this,JE,KE)}get previous(){return II(this,JE,eI)}set current(e){const t=bE(()=>II(this,JE,iI));e&&t&&this.equals(t,e)||vE(()=>{II(this,JE,KE)||RI(this,JE,e,XE),RI(this,JE,t,tI),RI(this,JE,e,oI)})}reset(e=this.defaultValue){vE(()=>{RI(this,JE,void 0,tI),RI(this,JE,e,XE),RI(this,JE,e,oI)})}};function jI(e){return bE(()=>{const t={};for(const n in e)t[n]=e[n];return t})}GE=[,,,aI(null)],UE=new WeakMap,JE=new WeakSet,ZE=new WeakMap,nI=new WeakMap,YE=wI(GE,20,"#initial",BE,JE,UE),KE=YE.get,XE=YE.set,QE=wI(GE,20,"#previous",VE,JE,ZE),eI=QE.get,tI=QE.set,rI=wI(GE,20,"#current",HE,JE,nI),iI=rI.get,oI=rI.set,wI(GE,2,"current",$E,NI),wI(GE,2,"initial",WE,NI),wI(GE,2,"previous",zE,NI),xI(GE,NI);TI=new WeakMap;var _I,FI,zI,WI,$I,HI=Object.create,VI=Object.defineProperty,BI=Object.getOwnPropertyDescriptor,GI=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable,KI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),XI=e=>{throw TypeError(e)},JI=Math.pow,ZI=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QI=["class","method","getter","setter","accessor","field","value","get","set"],eD=e=>void 0!==e&&"function"!=typeof e?XI("Function expected"):e,tD=(e,t,n,r,i)=>({kind:QI[e],name:t,metadata:r,addInitializer:e=>n._?XI("Already initialized"):i.push(eD(e||null))}),nD=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=QI[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,BI(i,n)),h=r.length-1;h>=0;h--)(l=tD(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,eD(a)&&(f[d]=a);return f&&VI(i,n,f),i},rD=(e,t,n)=>t.has(e)||XI("Cannot "+n),iD=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},oD=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:o,height:a,scale:s}=this,l=new e(i+t,r+n,o,a);return l.scale=((e,t)=>{for(var n in t||(t={}))UI.call(t,n)&&ZI(e,n,t[n]);if(GI)for(var n of GI(t))YI.call(t,n)&&ZI(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new iD((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}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:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return iD.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var aD,sD=class extends(zI=NI,FI=[kI],_I=[kI],zI){constructor(e){var t,n,r;super(iD.from(e),(e,t)=>iD.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})($I,5,this),t=this,r=0,(n=WI).has(t)?XI("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return iD.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=iD.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(rD(a=this,s=WI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{rD(e,t,"write to private field"),t.set(e,n)})(this,WI,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(iD.from(e)),this.velocity={x:0,y:0}}};function lD({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(JI(r,2)+JI(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}$I=(e=>{var t;return[,,,HI(null!=(t=null==e?void 0:e[KI("metadata")])?t:null)]})(zI),WI=new WeakMap,nD($I,2,"delta",FI,sD),nD($I,2,"direction",_I,sD),aD=$I,ZI(sD,KI("metadata"),aD[3]);var uD,cD,dD,pD,fD=(e=>(e.Horizontal="x",e.Vertical="y",e))(fD||{}),hD=Object.values(fD),mD=Object.create,gD=Object.defineProperty,vD=Object.defineProperties,yD=Object.getOwnPropertyDescriptor,bD=Object.getOwnPropertyDescriptors,xD=Object.getOwnPropertySymbols,SD=Object.prototype.hasOwnProperty,wD=Object.prototype.propertyIsEnumerable,CD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ED=e=>{throw TypeError(e)},ID=(e,t,n)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DD=(e,t)=>{for(var n in t||(t={}))SD.call(t,n)&&ID(e,n,t[n]);if(xD)for(var n of xD(t))wD.call(t,n)&&ID(e,n,t[n]);return e},RD=(e,t)=>vD(e,bD(t)),PD=(e,t)=>gD(e,"name",{value:t,configurable:!0}),MD=(e,t)=>{var n={};for(var r in e)SD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xD)for(var r of xD(e))t.indexOf(r)<0&&wD.call(e,r)&&(n[r]=e[r]);return n},LD=e=>{var t;return[,,,mD(null!=(t=null==e?void 0:e[CD("metadata")])?t:null)]},AD=["class","method","getter","setter","accessor","field","value","get","set"],kD=e=>void 0!==e&&"function"!=typeof e?ED("Function expected"):e,OD=(e,t,n,r,i)=>({kind:AD[e],name:t,metadata:r,addInitializer:e=>n._?ED("Already initialized"):i.push(kD(e||null))}),qD=(e,t)=>ID(t,CD("metadata"),e[3]),TD=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},ND=(e,t,n,r,i,o)=>{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=AD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&yD(d<4?i:{get[n](){return FD(this,o)},set[n](e){return WD(this,o,e)}},n));d?f&&d<4&&PD(o,(d>2?"set ":d>1?"get ":"")+n):PD(i,n);for(var b=r.length-1;b>=0;b--)u=OD(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>_D(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?FD:$D)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>WD(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?kD(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?ED("Object expected"):(kD(a=s.get)&&(y.get=a),kD(a=s.set)&&(y.set=a),kD(a=s.init)&&g.unshift(a));return d||qD(e,i),y&&gD(i,n,y),f?4^d?o:y:i},jD=(e,t,n)=>t.has(e)||ED("Cannot "+n),_D=(e,t)=>Object(t)!==t?ED('Cannot use the "in" operator on this value'):e.has(t),FD=(e,t,n)=>(jD(e,t,"read from private field"),n?n.call(e):t.get(e)),zD=(e,t,n)=>t.has(e)?ED("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),WD=(e,t,n,r)=>(jD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$D=(e,t,n)=>(jD(e,t,"access private method"),n);function HD(e,t){return{plugin:e,options:t}}function VD(e){return t=>HD(e,t)}function BD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}uD=[AI];var GD=class{constructor(e,t){this.manager=e,this.options=t,zD(this,dD,TD(cD,8,this,!1)),TD(cD,11,this),zD(this,pD,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bE(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=FE(e.bind(this));return FD(this,pD).add(t),t}destroy(){FD(this,pD).forEach(e=>e())}static configure(e){return HD(this,e)}};cD=LD(null),dD=new WeakMap,pD=new WeakMap,ND(cD,4,"disabled",uD,GD,dD),qD(cD,GD);var UD,YD=class extends GD{},KD=class{constructor(e){this.manager=e,this.instances=new Map,zD(this,UD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BD).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(const e of FD(this,UD))if(!n.includes(e)){if(e.prototype instanceof YD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);WD(this,UD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}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 XD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}UD=new WeakMap;var JD,ZD,QD=[],eR=class extends GD{constructor(e){super(e),zD(this,JD),zD(this,ZD),this.computeCollisions=this.computeCollisions.bind(this),WD(this,ZD,ME(QD)),this.destroy=qI(()=>{const e=this.computeCollisions(),t=bE(()=>this.manager.dragOperation.position.current);if(e!==QD){const e=FD(this,JD);if(WD(this,JD,t),e&&t.x==e.x&&t.y==e.y)return}else WD(this,JD,void 0);FD(this,ZD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bE(()=>{e?FD(this,ZD).value=this.computeCollisions():WD(this,JD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:a}=r;if(!a.initialized||!o)return QD;const s=[],l=[];for(const o of null!=e?e:n.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;const n=bE(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),s.push(n))}return 0===l.length?QD:(s.sort(XD),s)}get collisions(){return FD(this,ZD).value}};JD=new WeakMap,ZD=new WeakMap;var tR=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},nR=class extends tR{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function rR(e,t=!0){let n=!1;return RD(DD({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var iR,oR,aR,sR,lR,uR,cR,dR,pR,fR=class extends YD{constructor(e){super(e);let t=[];this.destroy=qI(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:i}=n;if(n.isDisabled())return;const o=rR({collisions:i});if(r.dispatch("collision",o),o.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(i,t))return;t=i;const[a]=i;bE(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},hR=(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))(hR||{}),mR=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(mR||{});cR=[AI],uR=[kI],lR=[kI],sR=[kI],aR=[kI],oR=[kI],iR=[kI];var gR=class{constructor(){TD(dR,5,this),zD(this,pR,TD(dR,8,this,"idle")),TD(dR,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}};dR=LD(null),pR=new WeakMap,ND(dR,4,"value",cR,gR,pR),ND(dR,2,"current",uR,gR),ND(dR,2,"idle",lR,gR),ND(dR,2,"initializing",sR,gR),ND(dR,2,"initialized",aR,gR),ND(dR,2,"dragging",oR,gR),ND(dR,2,"dropped",iR,gR),qD(dR,gR);var vR,yR,bR,xR,SR,wR,CR,ER,IR,DR=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 bE(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=rR({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return bE(()=>{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 n=new AbortController,{event:r,coordinates:i}=e;vE(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});const o=rR({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))}),n)})}move(e){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;const a=rR({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,i,o,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return bE(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let o;i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=bE(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=FE(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),o?o.then(a).catch(()=>r.reset()):a()})}};xR=[AI],bR=[AI],yR=[AI],vR=[AI];var RR=class{constructor(e,t){zD(this,wR,TD(SR,8,this)),TD(SR,11,this),zD(this,CR,TD(SR,12,this)),TD(SR,15,this),zD(this,ER,TD(SR,16,this)),TD(SR,19,this),zD(this,IR,TD(SR,20,this)),TD(SR,23,this);const{effects:n,id:r,data:i={},disabled:o=!1,register:a=!0}=e;let s=r;this.manager=t,this.id=r,this.data=i,this.disabled=o,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==n?void 0:n())?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)}};SR=LD(null),wR=new WeakMap,CR=new WeakMap,ER=new WeakMap,IR=new WeakMap,ND(SR,4,"manager",xR,RR,wR),ND(SR,4,"id",bR,RR,CR),ND(SR,4,"data",yR,RR,ER),ND(SR,4,"disabled",vR,RR,IR),qD(SR,RR);var PR,MR,LR,AR,kR,OR,qR,TR,NR,jR,_R,FR,zR,WR,$R,HR,VR,BR,GR,UR,YR,KR,XR,JR,ZR=class{constructor(){this.map=ME(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const o=new Map(n);o.set(e,t),this.map.value=o;const a=qI(...t.effects());return this.cleanupFunctions.set(t,a),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[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}},QR=class extends(qR=RR,OR=[AI],kR=[AI],AR=[AI],LR=[kI],MR=[kI],PR=[kI],qR){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:o}=n,a=MD(n,["modifiers","type","sensors"]);super(a,t),TD(TR,5,this),zD(this,NR,TD(TR,8,this)),TD(TR,11,this),zD(this,jR,TD(TR,12,this)),TD(TR,15,this),zD(this,_R,TD(TR,16,this,this.isDragSource?"dragging":"idle")),TD(TR,19,this),this.type=i,this.sensors=o,this.modifiers=r,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}};TR=LD(qR),NR=new WeakMap,jR=new WeakMap,_R=new WeakMap,ND(TR,4,"type",OR,QR,NR),ND(TR,4,"modifiers",kR,QR,jR),ND(TR,4,"status",AR,QR,_R),ND(TR,2,"isDropping",LR,QR),ND(TR,2,"isDragging",MR,QR),ND(TR,2,"isDragSource",PR,QR),qD(TR,QR);var eP=class extends(BR=RR,VR=[AI],HR=[AI],$R=[AI],WR=[AI],zR=[AI],FR=[kI],BR){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:o,type:a}=n;super(MD(n,["accept","collisionDetector","collisionPriority","type"]),t),TD(GR,5,this),zD(this,UR,TD(GR,8,this)),TD(GR,11,this),zD(this,YR,TD(GR,12,this)),TD(GR,15,this),zD(this,KR,TD(GR,16,this)),TD(GR,19,this),zD(this,XR,TD(GR,20,this)),TD(GR,23,this),zD(this,JR,TD(GR,24,this)),TD(GR,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=o,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}};GR=LD(BR),UR=new WeakMap,YR=new WeakMap,KR=new WeakMap,XR=new WeakMap,JR=new WeakMap,ND(GR,4,"accept",VR,eP,UR),ND(GR,4,"type",HR,eP,YR),ND(GR,4,"collisionDetector",$R,eP,KR),ND(GR,4,"collisionPriority",WR,eP,XR),ND(GR,4,"shape",zR,eP,JR),ND(GR,2,"isDropTarget",FR,eP),qD(GR,eP);var tP,nP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},rP=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)}},iP=class{constructor(e){this.options=e,zD(this,tP)}set controller(e){WD(this,tP,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=FD(this,tP))||t.activate(e)}};tP=new WeakMap;var oP,aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,vP,yP,bP,xP,SP,wP,CP,EP=class extends GD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},IP=class{constructor(e){this.draggables=new ZR,this.droppables=new ZR,this.plugins=new KD(e),this.sensors=new KD(e),this.modifiers=new KD(e)}register(e,t){if(e instanceof QR)return this.draggables.register(e.id,e);if(e instanceof eP)return this.droppables.register(e.id,e);if(e.prototype instanceof EP)return this.modifiers.register(e,t);if(e.prototype instanceof nP)return this.sensors.register(e,t);if(e.prototype instanceof GD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof RR)return e instanceof QR?this.draggables.unregister(e.id,e):e instanceof eP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof EP)return this.modifiers.unregister(e);if(e.prototype instanceof nP)return this.sensors.unregister(e);if(e.prototype instanceof GD)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()}};fP=[kI],pP=[AI],dP=[AI],cP=[AI],uP=[AI],lP=[AI],sP=[kI],aP=[kI],oP=[kI];var DP=class{constructor(e){TD(vP,5,this),zD(this,hP),zD(this,mP),zD(this,gP,new NI(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new gR,zD(this,yP,TD(vP,8,this,!1)),TD(vP,11,this),zD(this,bP,TD(vP,12,this,null)),TD(vP,15,this),zD(this,xP,TD(vP,16,this,null)),TD(vP,19,this),zD(this,SP,TD(vP,20,this,null)),TD(vP,23,this),zD(this,wP,TD(vP,24,this,[])),TD(vP,27,this),this.position=new sD({x:0,y:0}),zD(this,CP,{x:0,y:0}),WD(this,hP,e)}get shape(){const{current:e,initial:t,previous:n}=FD(this,gP);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?FD(this,gP).current=e:FD(this,gP).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=FD(this,hP).registry.draggables.get(t);return n&&WD(this,mP,n),null!=(e=null!=n?n:FD(this,mP))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=FD(this,hP).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(RD(DD({},this.snapshot()),{transform:n}));return WD(this,CP,n),n}snapshot(){return bE(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:FD(this,CP),shape:this.shape?jI(this.shape):null,position:jI(this.position),status:jI(this.status),canceled:this.canceled}))}reset(){vE(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,FD(this,gP).reset(),this.position.reset({x:0,y:0}),WD(this,CP,{x:0,y:0}),this.modifiers=[]})}};vP=LD(null),hP=new WeakMap,mP=new WeakMap,gP=new WeakMap,yP=new WeakMap,bP=new WeakMap,xP=new WeakMap,SP=new WeakMap,wP=new WeakMap,CP=new WeakMap,ND(vP,2,"shape",fP,DP),ND(vP,4,"canceled",pP,DP,yP),ND(vP,4,"activatorEvent",dP,DP,bP),ND(vP,4,"sourceIdentifier",cP,DP,xP),ND(vP,4,"targetIdentifier",uP,DP,SP),ND(vP,4,"modifiers",lP,DP,wP),ND(vP,2,"source",sP,DP),ND(vP,2,"target",aP,DP),ND(vP,2,"transform",oP,DP),qD(vP,DP);var RP={get rendering(){return Promise.resolve()}};function PP(e,t){return"function"==typeof e?e(t):null!=e?e:t}var MP=class{constructor(e){var t;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 n=null!=e?e:{},r=PP(n.plugins,[]),i=PP(n.sensors,[]),o=PP(n.modifiers,[]),a=null!=(t=n.renderer)?t:RP,s=new nR(this),l=new IP(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new DR(this),this.dragOperation=new DP(this),this.collisionObserver=new eR(this),this.plugins=[fR,...r],this.modifiers=o,this.sensors=i;const{destroy:u}=this,c=qI(()=>{var e,t,n;const r=bE(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of r)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=BD(e);return new t(this,n)}))?n:i});this.destroy=()=>{c(),u()}}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}},LP=e=>{throw TypeError(e)},AP=(e,t,n)=>t.has(e)||LP("Cannot "+n),kP=(e,t,n)=>(AP(e,t,"read from private field"),t.get(e)),OP=(e,t,n)=>t.has(e)?LP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qP=(e,t,n,r)=>(AP(e,t,"write to private field"),t.set(e,n),n),TP=(e,t,n)=>(AP(e,t,"access private method"),n);function NP(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function jP(e,t){const n=e.getAnimations();if(n.length>0)for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,r=(NP(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function _P(e){const{width:t,height:n,top:r,left:i,bottom:o,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:a}}function FP(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function zP(e){return"nodeType"in e}function WP(e){var t,n,r;return e?FP(e)?e:zP(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function $P(e){const{Document:t}=WP(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function HP(e){return!(!e||FP(e))&&(e instanceof WP(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function VP(e){return e instanceof WP(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function BP(e){return e?FP(e)?e.document:zP(e)?$P(e)?e:HP(e)||VP(e)?e.ownerDocument:document:document:document}function GP(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}function UP(e,t=e.getBoundingClientRect(),n=0){var r,i,o,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!GP(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),i=n*(e.bottom-e.top),o=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(i=null==p?void 0:p.offsetTop)?i:0,h=null!=(o=null==p?void 0:p.offsetLeft)?o:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=n*g,y=n*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+y),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function YP(e){return{x:e.clientX,y:e.clientY}}var KP="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function XP(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...XP(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...XP(i.document,t))}}catch(e){}return n}function JP(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ZP(){var e,t;const n=JP()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function QP(e){return!(!e||!zP(e))&&e instanceof WP(e).ShadowRoot}function eM(e){if(e&&zP(e)){let t=e.getRootNode();if(QP(t))return t;if(t instanceof Document)return t}return BP(e)}function tM(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function nM(e){return"value"in e}function rM(e){return"CANVAS"===e.tagName}function iM(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:i,top:o}=r.getBoundingClientRect();return iM(e,{x:t-i,y:n-o})}}return r}var oM=new WeakMap;var aM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:o}=t,a=[e,t];e.addEventListener(n,r,o),this.entries.add(a),i.push(a)}return function(){for(const[e,{type:t,listener:n,options:r}]of i)e.removeEventListener(t,n,r)}}};function sM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function lM(e,t){const n=()=>performance.now();let r,i;return function(...o){const a=this;i?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,o),i=n()},t-(n()-i))):(e.apply(a,o),i=n())}}var uM,cM=KP?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},dM=class extends cM{constructor(e){super(t=>{kP(this,uM)?e(t,this):qP(this,uM,!0)}),OP(this,uM,!1)}};uM=new WeakMap;var pM,fM,hM,mM,gM,vM,yM,bM,xM,SM,wM,CM=Array.from({length:100},(e,t)=>t/100),EM=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,OP(this,xM),this.disconnect=()=>{var e,t,n;qP(this,yM,!0),null==(e=kP(this,hM))||e.disconnect(),null==(t=kP(this,mM))||t.disconnect(),kP(this,gM).disconnect(),null==(n=kP(this,vM))||n.remove()},OP(this,pM,!0),OP(this,fM),OP(this,hM),OP(this,mM),OP(this,gM),OP(this,vM),OP(this,yM,!1),OP(this,bM,lM(()=>{var e,t,n;const{element:r}=this;if(null==(e=kP(this,mM))||e.disconnect(),kP(this,yM)||!kP(this,pM)||!r.isConnected)return;const i=null!=(t=r.ownerDocument)?t:document,{innerHeight:o,innerWidth:a}=null!=(n=i.defaultView)?n:window,s=r.getBoundingClientRect(),l=UP(r,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(o-d)}px ${h}px`;this.boundingClientRect=s,qP(this,mM,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:oD.intersectionRatio(n,UP(r)))&&kP(this,bM).call(this)},{threshold:CM,rootMargin:m,root:i})),kP(this,mM).observe(r),TP(this,xM,SM).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),qP(this,pM,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=UP(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const i=e.ownerDocument;(null==n?void 0:n.debug)&&(qP(this,vM,document.createElement("div")),kP(this,vM).style.background="rgba(0,0,0,0.15)",kP(this,vM).style.position="fixed",kP(this,vM).style.pointerEvents="none",i.body.appendChild(kP(this,vM))),qP(this,gM,new IntersectionObserver(t=>{var n,r;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:s,height:l}=o,u=kP(this,pM);qP(this,pM,a),(s||l)&&(u&&!a?(null==(n=kP(this,mM))||n.disconnect(),this.callback(null),null==(r=kP(this,hM))||r.disconnect(),qP(this,hM,void 0),kP(this,vM)&&(kP(this,vM).style.visibility="hidden")):kP(this,bM).call(this),a&&!kP(this,hM)&&(qP(this,hM,new dM(kP(this,bM))),kP(this,hM).observe(e)))},{threshold:CM,root:i})),kP(this,pM)&&!n.skipInitial&&this.callback(this.boundingClientRect),kP(this,gM).observe(e)}};pM=new WeakMap,fM=new WeakMap,hM=new WeakMap,mM=new WeakMap,gM=new WeakMap,vM=new WeakMap,yM=new WeakMap,bM=new WeakMap,xM=new WeakSet,SM=function(){kP(this,yM)||(TP(this,xM,wM).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,kP(this,fM))||(this.callback(this.boundingClientRect),qP(this,fM,this.boundingClientRect)))},wM=function(){if(kP(this,vM)){const{top:e,left:t,width:n,height:r}=UP(this.element);kP(this,vM).style.overflow="hidden",kP(this,vM).style.visibility="visible",kP(this,vM).style.top=`${Math.floor(e)}px`,kP(this,vM).style.left=`${Math.floor(t)}px`,kP(this,vM).style.width=`${Math.floor(n)}px`,kP(this,vM).style.height=`${Math.floor(r)}px`}};var IM,DM,RM,PM,MM=new WeakMap,LM=new WeakMap;function AM(e,t){let n=MM.get(e);if(!n){const t=new EM(e,t=>{const n=MM.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),MM.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(MM.delete(e),n.disconnect())}}var kM=class{constructor(e,t,n){this.callback=t,OP(this,IM),OP(this,DM,!1),OP(this,RM),OP(this,PM,lM(e=>{if(!kP(this,DM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kP(this,RM))if(e.target.contains(t)){this.callback(kP(this,IM).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=sM(e);for(;n;)t.add(n),n=sM(n);return t}(e),i=function(e,t){const n=new Set;for(const r of e){const e=AM(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;const r=e.ownerDocument;if(!LM.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),LM.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(n=LM.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),LM.delete(r))}):()=>{}}(e,kP(this,PM));qP(this,RM,r),qP(this,IM,new EM(e,t,n)),this.disconnect=()=>{kP(this,DM)||(qP(this,DM,!0),i(),o(),kP(this,IM).disconnect())}}};function OM(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function qM(e){try{OM(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function TM(e){return!(!KP||!e)&&e===BP(e).scrollingElement}function NM(e){var t,n;const r=WP(e),i=TM(e)?function(e){var t,n,r,i;const{documentElement:o}=BP(e),a=WP(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:o.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:o.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(i=null==a?void 0:a.offsetLeft)?i:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):_P(e),o=r.visualViewport,a=TM(e)?{height:null!=(t=null==o?void 0:o.height)?t:r.innerHeight,width:null!=(n=null==o?void 0:o.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:i,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function jM(e,t){const{isTop:n,isBottom:r,isLeft:i,isRight:o,position:a}=NM(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!i&&a.current.x+s>0,p=!o&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}IM=new WeakMap,DM=new WeakMap,RM=new WeakMap,PM=new WeakMap;var _M=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))}},FM=new _M(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),zM=new _M(e=>setTimeout(e,50)),WM=new Map,$M=WM.clear.bind(WM);function HM(e,t=!1){if(!t)return VM(e);let n=WM.get(e);return n||(n=VM(e),WM.set(e,n),zM.schedule($M),n)}function VM(e){return WP(e).getComputedStyle(e)}var BM={excludeElement:!0,escapeShadowDOM:!0};function GM(e,t=BM){const{limit:n,excludeElement:r,escapeShadowDOM:i}=t,o=new Set;return e?function t(a){if(null!=n&&o.size>=n)return o;if(!a)return o;if($P(a)&&null!=a.scrollingElement&&!o.has(a.scrollingElement))return o.add(a.scrollingElement),o;if(i&&QP(a))return t(a.host);if(!HP(a))return VP(a)?t(a.parentElement):o;if(o.has(a))return o;const s=HM(a,!0);if(r&&a===e||function(e,t=HM(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&o.add(a),function(e,t=HM(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&o.add(e),o}return t(a.parentNode)}(e):o}function UM(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=sM(e);for(;r;){if(r===t)return n;const e=_P(r),{x:i,y:o}=YM(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*o,r=sM(r)}return n}function YM(e,t=_P(e)){const n=Math.round(t.width),r=Math.round(t.height);if(HP(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const i=HM(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function KM(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function XM(e){var t,n,r,i,o,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=KM(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!=(n=null==f?void 0:f.y)?n:1,y=null!=(r=null==h?void 0:h.x)?r:0,b=null!=(i=null==h?void 0:h.y)?i:0,x=null!=(o=null==m?void 0:m.x)?o: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 JM=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(JM||{}),ZM={x:.2,y:.2},QM={x:10,y:10};function eL(e,t,n,r=25,i=ZM,o=QM){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=NM(e),f=UM(e),h=XM(HM(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new oD(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*i.y,S=v.width*i.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x?(y.y=g?1:-1,b.y=r*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x&&(y.y=g?-1:1,b.y=r*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y?(y.x=m?-1:1,b.x=r*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y&&(y.x=m?1:-1,b.x=r*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function tL(e,t=!1){if("scrollIntoViewIfNeeded"in(n=e)&&"function"==typeof n.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var n;if(!HP(e))return e.scrollIntoView();var r=function(e){const[t]=GM(e,{limit:1});return null!=t?t:null}(e);if(!HP(r))return;const i=HM(r,!0),o=parseInt(i.getPropertyValue("border-top-width")),a=parseInt(i.getPropertyValue("border-left-width")),s=e.offsetTop-r.offsetTop<r.scrollTop,l=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,u=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-a>r.scrollLeft+r.clientWidth,d=s&&!l;(s||l)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(u||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function nL({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function rL(e,t=HM(e).translate,n=!0){if(n){const t=jP(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=KM(e);if(t)return t}}}if(t){const e=KM(t);if(e)return e}return{x:0,y:0,z:0}}var iL=new _M(e=>setTimeout(e,0)),oL=new Map,aL=oL.clear.bind(oL);function sL(e,t){const n=function(e){const t=e.ownerDocument;let n=oL.get(t);if(n)return n;n=t.getAnimations(),oL.set(t,n),iL.schedule(aL);const r=n.filter(t=>NP(t.effect)&&t.effect.target===e);return oL.set(e,r),n}(e).filter(e=>{var n,r;if(NP(e.effect)){const{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var lL=class extends oD{constructor(e,t={}){var n,r,i,o;const{frameTransform:a=UM(e),ignoreTransforms:s,getBoundingClientRect:l=_P}=t,u=sL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||JP())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=HM(e),v=XM(g),y={x:null!=(n=null==v?void 0:v.scaleX)?n:1,y:null!=(r=null==v?void 0:v.scaleY)?r:1},b=function(e,t){var n;const r=e.getAnimations();let i=null;if(!r.length)return null;for(const e of r){if("running"!==e.playState)continue;const r=NP(e.effect)?e.effect.getKeyframes():[],o=r[r.length-1];if(!o)continue;const{transform:a,translate:s,scale:l}=o;if(a||s||l){const e=XM({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&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(n=i.z)?n:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,g);null==u||u(),v&&(d=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left-o-(1-r)*parseFloat(n),l=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=i?e.height/i: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!=(i=null==d?void 0:d.width)?i:h,height:null!=(o=null==d?void 0:d.height)?o:m};if(b&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left+o+(1-r)*parseFloat(n),l=e.top+a+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=i?e.height*i: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 uL(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 cL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(uL(n))for(const[r,i]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:n}=this;if(uL(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(uL(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function dL(e){return!!e&&(e instanceof WP(e).Element||zP(e)&&e.nodeType===Node.ELEMENT_NODE)}function pL(e){if(!e)return!1;const{KeyboardEvent:t}=WP(e.target);return e instanceof t}var fL={};function hL(e){const t=null==fL[e]?0:fL[e]+1;return fL[e]=t,`${e}-${t}`}var mL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/iD.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=iD.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)},gL=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:i}=t;if(!n.shape)return null;const o=r?oD.from(r.current.boundingRectangle).corners:void 0,a=oD.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+iD.distance(iD.from(t),null!=(r=null==o?void 0:o[n])?r:i.current)},0),s=a/4;return{id:n.id,value:1/s,type:mR.Collision,priority:hR.Normal}},vL=Object.create,yL=Object.defineProperty,bL=Object.defineProperties,xL=Object.getOwnPropertyDescriptor,SL=Object.getOwnPropertyDescriptors,wL=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,IL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),DL=e=>{throw TypeError(e)},RL=(e,t,n)=>t in e?yL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PL=(e,t)=>{for(var n in t||(t={}))CL.call(t,n)&&RL(e,n,t[n]);if(wL)for(var n of wL(t))EL.call(t,n)&&RL(e,n,t[n]);return e},ML=(e,t)=>bL(e,SL(t)),LL=(e,t)=>yL(e,"name",{value:t,configurable:!0}),AL=(e,t)=>{var n={};for(var r in e)CL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wL)for(var r of wL(e))t.indexOf(r)<0&&EL.call(e,r)&&(n[r]=e[r]);return n},kL=e=>{var t;return[,,,vL(null!=(t=null==e?void 0:e[IL("metadata")])?t:null)]},OL=["class","method","getter","setter","accessor","field","value","get","set"],qL=e=>void 0!==e&&"function"!=typeof e?DL("Function expected"):e,TL=(e,t,n,r,i)=>({kind:OL[e],name:t,metadata:r,addInitializer:e=>n._?DL("Already initialized"):i.push(qL(e||null))}),NL=(e,t)=>RL(t,IL("metadata"),e[3]),jL=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},_L=(e,t,n,r,i,o)=>{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=OL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&xL(d<4?i:{get[n](){return WL(this,o)},set[n](e){return HL(this,o,e)}},n));d?f&&d<4&&LL(o,(d>2?"set ":d>1?"get ":"")+n):LL(i,n);for(var b=r.length-1;b>=0;b--)u=TL(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>zL(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?WL:VL)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>HL(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?qL(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?DL("Object expected"):(qL(a=s.get)&&(y.get=a),qL(a=s.set)&&(y.set=a),qL(a=s.init)&&g.unshift(a));return d||NL(e,i),y&&yL(i,n,y),f?4^d?o:y:i},FL=(e,t,n)=>t.has(e)||DL("Cannot "+n),zL=(e,t)=>Object(t)!==t?DL('Cannot use the "in" operator on this value'):e.has(t),WL=(e,t,n)=>(FL(e,t,"read from private field"),n?n.call(e):t.get(e)),$L=(e,t,n)=>t.has(e)?DL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HL=(e,t,n,r)=>(FL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),VL=(e,t,n)=>(FL(e,t,"access private method"),n),BL="button",GL="draggable",UL="dnd-kit-description",YL="dnd-kit-announcement",KL={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."},XL={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:n}){if(e)return n?`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 JL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var ZL=["dragover","dragmove"];var QL,eA,tA,nA,rA,iA,oA,aA,sA,lA,uA,cA,dA,pA=new Map,fA=class extends(rA=YD,nA=[AI],tA=[kI],eA=[kI],QL=[kI],rA){constructor(e){super(e),jL(oA,5,this),$L(this,sA),$L(this,iA,new Set),$L(this,aA,jL(oA,8,this,new Set)),jL(oA,11,this),this.registerEffect(VL(this,sA,lA))}register(e){return WL(this,iA).add(e),()=>{WL(this,iA).delete(e)}}addRoot(e){return bE(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{bE(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return eM(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};oA=kL(rA),iA=new WeakMap,aA=new WeakMap,sA=new WeakSet,lA=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of WL(this,iA))t.push(VL(this,sA,uA).call(this,n,e));return()=>{for(const e of t)e()}},uA=function(e,t){let n=pA.get(e);n||(n=new Map,pA.set(e,n));let r=n.get(t);if(!r){const i=$P(e)?VL(this,sA,cA).call(this,e,n,t):VL(this,sA,dA).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,0===r.refCount&&r.cleanup())}},cA=function(e,t,n){const r=e.createElement("style");r.textContent=n,e.head.prepend(r);const i=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===r)return void e.head.prepend(r)});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),r.remove(),t.delete(n),0===t.size&&pA.delete(e)}}},dA=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=r?r:{};if(!i)return null;const o=new i;return o.replaceSync(n),e.adoptedStyleSheets.push(o),{refCount:0,cleanup:()=>{var r;if(QP(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&pA.delete(e)}}},_L(oA,4,"additionalRoots",nA,fA,aA),_L(oA,2,"sourceRoot",tA,fA),_L(oA,2,"targetRoot",eA,fA),_L(oA,2,"roots",QL,fA),NL(oA,fA);var hA="data-dnd-",mA=`${hA}dropping`,gA="--dnd-",vA=`${hA}dragging`,yA=`${hA}placeholder`,bA=[vA,yA,"popover","aria-pressed","aria-grabbing"],xA=["view-transition-name"],SA=`\n :is(:root,:host) [${vA}] {\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(${gA}top, 0px) !important;\n left: var(${gA}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${gA}width, auto);\n max-width: var(${gA}width, auto);\n height: var(${gA}height, auto);\n max-height: var(${gA}height, auto);\n transition: var(${gA}transition) !important;\n }\n\n :is(:root,:host) [${yA}] {\n transition: none;\n }\n\n :is(:root,:host) [${yA}='hidden'] {\n visibility: hidden;\n }\n\n [${vA}] * {\n pointer-events: none !important;\n }\n\n [${vA}]:not([${mA}]) {\n translate: var(${gA}translate) !important;\n }\n\n [${vA}][style*='${gA}scale'] {\n scale: var(${gA}scale) !important;\n transform-origin: var(${gA}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${vA}][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 [${vA}]::backdrop, [${hA}overlay]:not([${vA}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function wA(e,t="hidden"){return bE(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const i=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${hA}${hL("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),o=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(nM(e)&&nM(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),rM(e)&&rM(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,i]of e){if(!r.element)continue;const e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!o)continue;const a=r.element;r.proxy=o,o.removeAttribute(i),oM.set(a,o),n.push(()=>{oM.delete(a),r.proxy=void 0})}}(i,a,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(yA,t)}(a,t),a.remove=()=>{o.forEach(e=>e()),s.call(a)},a})}function CA(e,t){return e===t||sM(e)===sM(t)}function EA(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&dL(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>qM(t))}function IA(e){return"TR"===e.tagName}var DA,RA,PA,MA,LA,AA,kA,OA=250,qA="ease";var TA=class extends(RA=GD,DA=[AI],RA){constructor(e,t){super(e,t),$L(this,LA),$L(this,MA,jL(PA,8,this)),jL(PA,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(fA),r=null==n?void 0:n.register(SA);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(VL(this,LA,AA).bind(this,n)),this.registerEffect(VL(this,LA,kA))}};PA=kL(RA),MA=new WeakMap,LA=new WeakSet,AA=function(e){const{overlay:t}=this;if(!t||!e)return;const n=eM(t);return n?e.addRoot(n):void 0},kA=function(){var e,t,n;const{state:r,manager:i,options:o}=this,{dragOperation:a}=i,{position:s,source:l,status:u}=a;if(u.idle)return r.current={},void(r.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=r,f=null!=(e=this.overlay)?e:c,h=UM(f),m=UM(c),g=!CA(c,f),v=new lL(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new cL(f),{transition:I,translate:D,boxSizing:R,paddingBlockStart:P,paddingBlockEnd:M,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=HM(c),N="clone"===d,j="content-box"===R,_=j?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=j?parseInt(P)+parseInt(M)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:wA(l,N?"clone":"hidden"),W=bE(()=>pL(i.dragOperation.activatorEvent));if("none"!==D){const e=KM(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=bE(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,H=w*h.scaleY+h.y,V=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:n,y:r}=$;p.coordinates.x+=(x*e-x)*n,p.coordinates.y+=(S*t-S)*r}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-V,G=p.coordinates.y-H,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(vA,"true");const Z=bE(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,ne=ZP();if(E.set({width:x-_,height:S-F,top:J+ne.y,left:X+ne.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},gA),z&&(c.insertAdjacentElement("afterend",z),null==o?void 0:o.rootElement)){("function"==typeof o.rootElement?o.rootElement(l):o.rootElement).appendChild(c)}let re,ie,oe;OM(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),qM(f),f.addEventListener("beforetoggle",EA));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>re,getSavedCellWidths:()=>oe,setSavedCellWidths:e=>{oe=e}},new ResizeObserver(()=>{var e,t;const n=new lL(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),r=null!=(e=se.transformOrigin)?e:{x:1,y:1},i=(se.width-n.width)*r.x+se.delta.x,o=(se.height-n.height)*r.y+se.delta.y,a=ZP();if(se.styles.set({width:n.width-se.widthOffset,height:n.height-se.heightOffset,top:se.top+o+a.y,left:se.left+i+a.x},gA),null==(t=se.getElementMutationObserver())||t.takeRecords(),IA(se.element)&&IA(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new lL(se.feedbackElement)}));var se;const le=new lL(f);bE(()=>a.shape=le);const ue=WP(f),ce=e=>{this.manager.actions.stop({event:e})},de=tM(ue);W&&ue.addEventListener("resize",ce),"idle"===bE(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),z&&(ae.observe(z),re=function(e,t,n){const r=new MutationObserver(r=>{let i=!1;for(const n of r){if(n.target!==e){i=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||bA.includes(r))continue;const o=e.getAttribute(r);if("style"===r){if(uL(e)&&uL(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(xA.includes(e)||e.startsWith(gA))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==o?t.setAttribute(r,o):t.removeAttribute(r)}i&&n&&(t.innerHTML=e.innerHTML)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(c,z,N),ie=function(e,t,n){const r=new MutationObserver(r=>{for(const i of r)if(0!==i.addedNodes.length)for(const r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void qM(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void qM(n)}});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(c,z,f));const pe=null==(n=i.dragOperation.source)?void 0:n.id,fe=()=>{var e;if(!W||null==pe)return;const t=i.registry.draggables.get(pe),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;HP(n)&&n.focus()},he=()=>{var e;if(null==re||re.disconnect(),null==ie||ie.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),OM(f)&&(f.removeEventListener("beforetoggle",EA),f.removeAttribute("popover")),f.removeAttribute(vA),E.reset(),oe&&IA(c)){const t=Array.from(c.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=oe[n])?e:""}l.status="idle";const t=null!=r.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==o?void 0:o.dropAnimation,ge=this,ve=qI(()=>{var e;const{transform:t,status:n}=a;if((t.x||t.y||r.current.translate)&&n.dragging){const n=null!=(e=p.translate)?e:{x:0,y:0},i={x:t.x/h.scaleX+n.x,y:t.y/h.scaleY+n.y},o=r.current.translate,s=bE(()=>a.modifiers),l=bE(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=W&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${i.x}px ${i.y}px 0`},gA),null==re||re.takeRecords(),l&&l!==le&&o&&!s.length){const e=iD.delta(i,o);a.shape=oD.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new lL(f);r.current.translate=i}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=r.current.translate;const n=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();i.renderer.rendering.then(()=>{!function(e){var t,n,r,i;const{animation:o}=e;if("function"==typeof o){const t=o({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=OA,easing:s=qA}=null!=o?o:{};qM(e.feedbackElement);const[,l]=null!=(t=jP(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:CA(e.feedbackElement,u)?null:void 0},d=new lL(e.feedbackElement,c),p=null!=(r=KM(HM(e.feedbackElement).translate))?r:e.translate,f=new lL(u,c),h=oD.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},gA),e.feedbackElement.setAttribute(mA,""),null==(i=e.getElementMutationObserver())||i.takeRecords(),nL({element:e.feedbackElement,keyframes:ML(PL(PL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:tM(WP(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(mA),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:n,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>re,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},_L(PA,4,"overlay",DA,TA,MA),NL(PA,TA),TA.configure=VD(TA);var NA,jA,_A,FA,zA,WA,$A,HA=TA,VA=!0;_A=[AI],FA=JM.Forward,NA=[AI],jA=JM.Reverse;var BA=class{constructor(){$L(this,WA,jL(zA,8,this,VA)),jL(zA,11,this),$L(this,$A,jL(zA,12,this,VA)),jL(zA,15,this)}isLocked(e){return e!==JM.Idle&&(null==e?this[JM.Forward]===VA&&this[JM.Reverse]===VA:this[e]===VA)}unlock(e){e!==JM.Idle&&(this[e]=false)}};zA=kL(null),WA=new WeakMap,$A=new WeakMap,_L(zA,4,FA,_A,BA,WA),_L(zA,4,jA,NA,BA,$A),NL(zA,BA);var GA,UA,YA,KA,XA,JA,ZA=[JM.Forward,JM.Reverse],QA=class{constructor(){this.x=new BA,this.y=new BA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ek=class extends GD{constructor(e){super(e);const t=ME(new QA);let n=null;this.signal=t,FE(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new QA);const{delta:i}=e.dragOperation.position;if(n){const e={x:tk(i.x,n.x),y:tk(i.y,n.y)},r=t.peek();vE(()=>{for(const t of hD)for(const n of ZA)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function tk(e,t){return Math.sign(e-t)}var nk=class extends(UA=YD,GA=[AI],UA){constructor(e){super(e),$L(this,KA,jL(YA,8,this,!1)),jL(YA,11,this),$L(this,XA),$L(this,JA,()=>{if(!WL(this,XA))return;const{element:e,by:t}=WL(this,XA);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return HL(this,XA,void 0),!1;const{position:r}=this.manager.dragOperation,i=null==r?void 0:r.current;if(i){const{by:r}=null!=e?e:{},o=r?{x:rk(r.x),y:rk(r.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of n){const n=jM(e,r);if(n.x||n.y){const{speed:n,direction:s}=eL(e,i,o);if(a)for(const e of hD)a[e].isLocked(s[e])&&(n[e]=0,s[e]=0);if(s.x||s.y){const{x:i,y:o}=null!=r?r:s,a=i*n.x,l=o*n.y;if(a||l){const n=null==(t=WL(this,XA))?void 0:t.by;if(this.autoScrolling&&n){if(n.x&&!a||n.y&&!l)continue}return HL(this,XA,{element:e,by:{x:a,y:l}}),FM.schedule(WL(this,JA)),!0}}}}}return HL(this,XA,void 0),!1};let t=null,n=null;const r=MI(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const i=iM(eM(null==r?void 0:r.element),n.current);return i&&(t=i),null!=i?i:t}),i=MI(()=>{const t=r.value,{documentElement:i}=BP(t);if(!t||t===i){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=GM(r,{excludeElement:!1});return n=e,e}}if(t){const e=GM(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},LI);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new ek(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&pL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function rk(e){return e>0?JM.Forward:e<0?JM.Reverse:JM.Idle}YA=kL(UA),KA=new WeakMap,XA=new WeakMap,JA=new WeakMap,_L(YA,4,"autoScrolling",GA,nk,KA),NL(YA,nk);var ik,ok=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()}),ak=class extends GD{constructor(e,t){super(e);const n=e.registry.plugins.get(nk);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=FE(()=>{if(this.disabled)return;const{position:t,status:r}=e.dragOperation;if(r.dragging){if(n.scroll()){n.autoScrolling=!0;const e=setInterval(()=>ok.schedule(n.scroll),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}},sk={capture:!0,passive:!0},lk=class extends YD{constructor(e){super(e),$L(this,ik),this.handleScroll=()=>{null==WL(this,ik)&&HL(this,ik,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),HL(this,ik,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=FE(()=>{var e,n,r;if(t.status.dragging){const i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,sk),()=>{i.removeEventListener("scroll",this.handleScroll,sk)}}})}};ik=new WeakMap;function uk(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var ck,dk=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 n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),pk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,ck,[]),this.listeners=new aM,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!dL(e.target))return;if(t.disabled)return;const{keyboardCodes:r=dk.keyboardCodes,preventActivation:i=dk.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=FE(()=>{var n;const r=null!=(n=e.handle)?n:e.element,i=n=>{pL(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),tL(r);const{center:i}=new lL(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const o=BP(r),a=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];WL(this,ck).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=dk.keyboardCodes}=null!=n?n:{};if(mk(e,[...r.end,...r.cancel])){e.preventDefault();const t=mk(e,r.cancel);return void this.handleEnd(e,t)}mk(e,r.up)?this.handleMove("up",e):mk(e,r.down)&&this.handleMove("down",e),mk(e,r.left)?this.handleMove("left",e):mk(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:dk.offset;if("number"==typeof s&&(s={x:s,y:s}),i){switch(e){case"up":a={x:0,y:-s.y*o};break;case"down":a={x:0,y:s.y*o};break;case"left":a={x:-s.x*o,y:0};break;case"right":a={x:s.x*o,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(ak);!1===(null==e?void 0:e.disabled)&&(e.disable(),WL(this,ck).push(()=>{e.enable()}))}cleanup(){WL(this,ck).forEach(e=>e()),HL(this,ck,[])}destroy(){this.cleanup(),this.listeners.clear()}};ck=new WeakMap,pk.configure=VD(pk),pk.defaults=dk;var fk,hk=pk;function mk(e,t){return t.includes(e.code)}var gk,vk;fk=new WeakMap;gk=new WeakMap,vk=new WeakMap;var yk=class{};yk.Delay=class extends iP{constructor(){super(...arguments),$L(this,gk),$L(this,vk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,vk,YP(e)),HL(this,gk,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!WL(this,vk))return;const{x:t,y:n}=YP(e);lD({x:t-WL(this,vk).x,y:n-WL(this,vk).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){WL(this,gk)&&(clearTimeout(WL(this,gk)),HL(this,vk,void 0),HL(this,gk,void 0))}},yk.Distance=class extends iP{constructor(){super(...arguments),$L(this,fk)}onEvent(e){switch(e.type){case"pointerdown":HL(this,fk,YP(e));break;case"pointermove":if(!WL(this,fk))return;const{x:t,y:n}=YP(e),r={x:t-WL(this,fk).x,y:n-WL(this,fk).y},{tolerance:i}=this.options;if(i&&lD(r,i))return void this.abort();lD(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){HL(this,fk,void 0)}};var bk,xk=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:i}=e;if("mouse"!==r||!dL(i)||t.handle!==i&&!(null==(n=t.handle)?void 0:n.contains(i)))return"touch"===r?[new yk.Delay({value:250,tolerance:5})]:function(e){if(!dL(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(i)&&!e.defaultPrevented?[new yk.Delay({value:200,tolerance:0})]:[new yk.Delay({value:200,tolerance:10}),new yk.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!dL(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.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 ')))))}}),Sk=class extends nP{constructor(e,t){super(e),this.manager=e,this.options=t,$L(this,bk,new Set),this.listeners=new aM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=xk.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=FE(()=>{var n;const r=new AbortController,{signal:i}=r,o=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=WP(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(Dk(e.ownerDocument.defaultView),e.addEventListener("pointerdown",o,{signal:i}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!dL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=xk.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:i}=e,o=HP(i)&&i.draggable&&"true"===i.getAttribute("draggable"),a=UM(t.element),{x:s,y:l}=YP(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new rP(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=XP(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:o?this.handleCancel:Ck,options:{capture:!0}}]);WL(this,bk).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=YP(e),r=UM(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,FM.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=BP(t.target).body;i.setPointerCapture(t.pointerId);const o=dL(t.target)?[t.target,i]:i,a=this.listeners.bind(o,[{type:"touchmove",listener:Ck,options:{passive:!1}},{type:"click",listener:Ck},{type:"contextmenu",listener:Ck},{type:"keydown",listener:this.handleKeyDown}]);WL(this,bk).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},WL(this,bk).forEach(e=>e()),WL(this,bk).clear()}destroy(){this.cleanup(),this.listeners.clear()}};bk=new WeakMap,Sk.configure=VD(Sk),Sk.defaults=xk;var wk=Sk;function Ck(e){e.preventDefault()}function Ek(){}var Ik=new WeakSet;function Dk(e){e&&!Ik.has(e)&&(e.addEventListener("touchmove",Ek,{capture:!1,passive:!1}),Ik.add(e))}var Rk,Pk,Mk,Lk,Ak,kk,Ok,qk,Tk,Nk,jk,_k,Fk,zk,Wk,$k,Hk,Vk,Bk={modifiers:[],plugins:[class extends GD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=UL,announcement:i=YL}={},announcements:o=XL,screenReaderInstructions:a=KL,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:hL(r),u=n?`${i}-${n}`:hL(i);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>FM.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),v=Object.entries(o).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const i=p;if(!i)return;const o=null==t?void 0:t(n,r);o&&i.nodeValue!==o&&(f=o,ZL.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(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 n=null!=(e=t.handle)?e:t.element;if(n){c&&d||b.add(y),JL(n)&&!JP()||n.hasAttribute("tabindex")||b.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||b.add(()=>n.setAttribute("role",BL)),n.hasAttribute("aria-roledescription")||b.add(()=>n.setAttribute("aria-roledescription",GL)),n.hasAttribute("aria-describedby")||b.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&b.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&b.add(()=>n.setAttribute("aria-disabled",e))}}b.size>0&&FM.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},ak,class extends GD{constructor(e,t){super(e,t),this.manager=e;const n=MI(()=>{var e;return BP(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{cursor:r="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=n.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${r} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},HA,class extends GD{constructor(e,t){super(e,t),this.manager=e,this.destroy=FE(()=>{var e;const{dragOperation:t}=this.manager,{nonce:n}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),uk(),document.addEventListener("selectionchange",uk,{capture:!0}),()=>{document.removeEventListener("selectionchange",uk,{capture:!0}),e.remove()}}})}}],sensors:[wk,hk]},Gk=class extends MP{constructor(e={}){const t=PP(e.plugins,Bk.plugins),n=PP(e.sensors,Bk.sensors),r=PP(e.modifiers,Bk.modifiers);super(ML(PL({},e),{plugins:[lk,nk,fA,...t],sensors:n,modifiers:r}))}},Uk=class extends(Lk=QR,Mk=[AI],Pk=[AI],Rk=[AI],Lk){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:o,feedback:a="default"}=n,s=AL(n,["element","effects","handle","feedback"]);super(PL({effects:()=>[...i(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(BD))?t:[...n.sensors]).map(e=>{const t=e instanceof nP?e:n.registry.register(e.plugin),r=e instanceof nP?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},s),t),$L(this,kk,jL(Ak,8,this)),jL(Ak,11,this),$L(this,Ok,jL(Ak,12,this)),jL(Ak,15,this),$L(this,qk,jL(Ak,16,this)),jL(Ak,19,this),this.element=r,this.handle=o,this.feedback=a}};Ak=kL(Lk),kk=new WeakMap,Ok=new WeakMap,qk=new WeakMap,_L(Ak,4,"handle",Mk,Uk,kk),_L(Ak,4,"element",Pk,Uk,Ok),_L(Ak,4,"feedback",Rk,Uk,qk),NL(Ak,Uk);var Yk=class extends(jk=eP,Nk=[AI],Tk=[AI],jk){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,o=AL(n,["element","effects"]);const{collisionDetector:a=mL}=o,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new lL(n),i=bE(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},l=ME(!1);super(ML(PL({},o),{collisionDetector:a,effects:()=>[...i(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kM(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),$L(this,Hk),$L(this,Fk,jL(_k,8,this)),jL(_k,11,this),$L(this,Vk,jL(_k,12,this)),jL(_k,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){HL(this,Hk,e,$k)}get element(){var e;return null!=(e=this.proxy)?e:WL(this,Hk,Wk)}};function Kk(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}_k=kL(jk),Fk=new WeakMap,Hk=new WeakSet,Vk=new WeakMap,zk=_L(_k,20,"#element",Nk,Hk,Fk),Wk=zk.get,$k=zk.set,_L(_k,4,"proxy",Tk,Yk,Vk),NL(_k,Yk);var Xk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function Jk(){const e=m(0)[1];return f(()=>{e(e=>e+1)},[e])}function Zk(e,t=[],n=!1){const r=l(e);return r.current=e,function(e,t=!1){const n=l(e.peek()),r=l(!1),i=Jk();return Xk(()=>FE(()=>{const o=n.current,a=e.value;if(o!==a){if(n.current=a,!r.current)return;t?D(i):i()}}),[e,t,i]),{get value(){return r.current=!0,e.peek()}}}(v(()=>MI(()=>r.current()),t),n)}function Qk(e,t){const n=l(new Map),r=Jk();return Xk(()=>{if(e)return FE(()=>{var i;let o=!1,a=!1;for(const r of n.current){const[s]=r,l=bE(()=>r[1]),u=e[s];l!==u&&(o=!0,n.current.set(s,u),a=null!=(i=null==t?void 0:t(s,l,u))&&i)}o&&(a?D(r):r())});n.current.clear()},[e]),v(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function eO(e,t){e()}function tO(e){const t=l(e);return Xk(()=>{t.current=e},[e]),t}function nO(e,t,n=d,r=Object.is){const i=l(e);n(()=>{const n=i.current;r(e,n)||(i.current=e,t(e,n))},[t,e])}function rO(e,t){const n=l(Kk(e));Xk(()=>{const r=Kk(e);r!==n.current&&(n.current=r,t(r))})}var iO=Object.defineProperty,oO=Object.defineProperties,aO=Object.getOwnPropertyDescriptors,sO=Object.getOwnPropertySymbols,lO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,cO=(e,t,n)=>t in e?iO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dO=new Gk,pO=u(dO),fO=b(x(({children:e},t)=>{const[n,r]=m(0),i=l(null),o=l(null),a=v(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),S(()=>{e(),r(e=>e+1)})}}),[]);return Xk(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,n]),w(t,()=>a),null})),hO=[void 0,LI];function mO(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:i,onDragStart:o,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var n={};for(var r in e)lO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sO)for(var r of sO(e))t.indexOf(r)<0&&uO.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=PP(f,Bk.plugins),v=PP(m,Bk.sensors),b=PP(h,Bk.modifiers),x=tO(i),S=tO(o),w=tO(s),C=tO(a),E=tO(u),I=tO(r),D=function(e){const t=l(null);t.current||(t.current=e());return y(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new Gk(c)});return d(()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:n}=D;D.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=x.current;n&&t(()=>n(e,D))}),n.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),n.addEventListener("dragover",e=>{const n=w.current;n&&t(()=>n(e,D))}),n.addEventListener("dragmove",e=>{const n=C.current;n&&t(()=>n(e,D))}),n.addEventListener("dragend",e=>{const n=E.current;n&&t(()=>n(e,D))}),n.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>r.forEach(e=>e())},[D]),nO(g,()=>D&&(D.plugins=g),...hO),nO(v,()=>D&&(D.sensors=v),...hO),nO(b,()=>D&&(D.modifiers=b),...hO),fo.jsxs(pO.Provider,{value:D,children:[fo.jsx(fO,{ref:p,children:n}),n]})}function gO(){return h(pO)}function vO(e){var t;const n=null!=(t=gO())?t:void 0,[r]=m(()=>e(n));return r.manager!==n&&(r.manager=n),Xk(r.register,[n,r]),r}function yO({children:e,className:t,dropAnimation:n,style:i,tag:o,disabled:a}){var s;const u=l(null),c=gO(),p=null!=(s=Zk(()=>null==c?void 0:c.dragOperation.source,[c]).value)?s:null,f="function"==typeof a?a(p):a;d(()=>{if(!u.current||!c||f)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.overlay=u.current,()=>{e.overlay=void 0}):void 0},[c,f]),d(()=>{if(!c)return;const e=c.plugins.find(e=>e instanceof HA);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[c,n]);const h=v(()=>{if(!c)return null;const e=new Proxy(c.registry,{get:(e,t)=>"register"===t||"unregister"===t?bO:e[t]});return new Proxy(c,{get:(t,n)=>"registry"===n?e:t[n]})},[c]);return fo.jsx(pO.Provider,{value:h,children:r(o||"div",{ref:u,className:t,style:i,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return fo.jsx(xO,{source:p,children:e});return e}())})}function bO(){return()=>{}}function xO({children:e,source:t}){return e(Qk(t))}var SO,wO,CO,EO,IO,DO=Object.create,RO=Object.defineProperty,PO=Object.getOwnPropertyDescriptor,MO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),LO=e=>{throw TypeError(e)},AO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?LO("Function expected"):e,OO=(e,t,n,r,i)=>({kind:AO[e],name:t,metadata:r,addInitializer:e=>n._?LO("Already initialized"):i.push(kO(e||null))}),qO=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=AO[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,PO(i,n)),h=r.length-1;h>=0;h--)(l=OO(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,kO(a)&&(f[d]=a);return f&&RO(i,n,f),i},TO=(e,t,n)=>t.has(e)||LO("Cannot "+n),NO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},jO=class extends(CO=NI,wO=[kI],SO=[kI],CO){constructor(e){var t,n,r;super(NO.from(e),(e,t)=>NO.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})(IO,5,this),t=this,r=0,(n=EO).has(t)?LO("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return NO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=NO.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(TO(a=this,s=EO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);vE(()=>{((e,t,n)=>{TO(e,t,"write to private field"),t.set(e,n)})(this,EO,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(NO.from(e)),this.velocity={x:0,y:0}}};IO=(e=>{var t;return[,,,DO(null!=(t=null==e?void 0:e[MO("metadata")])?t:null)]})(CO),EO=new WeakMap,qO(IO,2,"delta",wO,jO),qO(IO,2,"direction",SO,jO),((e,t)=>{((e,t,n)=>{t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,MO("metadata"),e[3])})(IO,jO);var _O=(e=>(e.Horizontal="x",e.Vertical="y",e))(_O||{});Object.values(_O);var FO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/NO.distance(t.shape.center,n),type:mR.PointerIntersection,priority:hR.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=NO.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:mR.ShapeIntersection,priority:hR.Normal}}return null})(e)};function zO(e){const{collisionDetector:t,data:n,disabled:r,element:i,id:o,accept:a,type:s}=e,l=vO(t=>new Yk(((e,t)=>oO(e,aO(t)))(((e,t)=>{for(var n in t||(t={}))lO.call(t,n)&&cO(e,n,t[n]);if(sO)for(var n of sO(t))uO.call(t,n)&&cO(e,n,t[n]);return e})({},e),{register:!1,element:Kk(i)}),t)),u=Qk(l);return nO(o,()=>l.id=o),rO(i,e=>l.element=e),nO(a,()=>l.accept=a,void 0,LI),nO(t,()=>l.collisionDetector=null!=t?t:FO),nO(n,()=>n&&(l.data=n)),nO(r,()=>l.disabled=!0===r),nO(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const WO=e=>Array.from({length:e},(e,t)=>t),$O=({id:e,sectionIndex:t,itemIndex:n})=>fo.jsx("span",{children:`${e}-${t}-${n}`}),HO=n.memo(()=>{const e=qw(aE)??$O,{startSectionIndex:t,startIndex:n,id:r}=qw(cE)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:fo.jsx(yO,{dropAnimation:null,children:fo.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:fo.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),VO=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=qw(cE),i=r?.toSectionIndex===e,o=r?.startSectionIndex===e,a=t>(r?.startIndex??t)&&e===r?.startSectionIndex?t-1:t;let s=!1;return o&&r.startIndex===a?s=!1:i&&r.toIndex===a&&(s=!0),fo.jsx("div",{"data-key":"drop-target-indicator",style:{visibility:s&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},BO=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,GO=n.memo(({sectionIndex:e})=>{const t=qw(QC)[e],n=qw(eE),r=qw(tE),i=null!==qw(cE),o=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=zO({id:a,type:"section",accept:"item",collisionPriority:hR.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:fo.jsxs(sc,{ref:s,sx:{margin:"4px",outline:BO(l,i),borderRadius:"4px",boxSizing:"border-box"},children:[fo.jsx(sc,{sx:{position:"relative",top:"4px"},children:fo.jsx(VO,{sectionIndex:e,itemIndex:0,isDragging:!1})}),fo.jsxs(sc,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:o.title}),fo.jsx(Cu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:o.message})]})]})}),UO=n.memo(({id:e,sectionIndex:t})=>{const n=qw(oE);return void 0===n?null:fo.jsx(n,{id:e,sectionIndex:t})});var YO=Object.defineProperty,KO=Object.defineProperties,XO=Object.getOwnPropertyDescriptors,JO=Object.getOwnPropertySymbols,ZO=Object.prototype.hasOwnProperty,QO=Object.prototype.propertyIsEnumerable,eq=(e,t,n)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tq=(e,t)=>{for(var n in t||(t={}))ZO.call(t,n)&&eq(e,n,t[n]);if(JO)for(var n of JO(t))QO.call(t,n)&&eq(e,n,t[n]);return e},nq=(e,t)=>KO(e,XO(t)),rq=class extends EP{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return nq(tq({},e),{[t]:n})}};rq.configure=VD(rq);var iq=rq,oq=iq.configure({axis:"x",value:0});iq.configure({axis:"y",value:0});var aq=class extends EP{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,i="number"==typeof n?n:n.y;return nq(tq({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/i)*i})}};aq.configure=VD(aq);var sq=Object.create,lq=Object.defineProperty,uq=Object.defineProperties,cq=Object.getOwnPropertyDescriptor,dq=Object.getOwnPropertyDescriptors,pq=Object.getOwnPropertySymbols,fq=Object.prototype.hasOwnProperty,hq=Object.prototype.propertyIsEnumerable,mq=e=>{throw TypeError(e)},gq=(e,t,n)=>t in e?lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vq=(e,t)=>{for(var n in t||(t={}))fq.call(t,n)&&gq(e,n,t[n]);if(pq)for(var n of pq(t))hq.call(t,n)&&gq(e,n,t[n]);return e},yq=(e,t)=>uq(e,dq(t)),bq=["class","method","getter","setter","accessor","field","value","get","set"],xq=e=>void 0!==e&&"function"!=typeof e?mq("Function expected"):e,Sq=(e,t,n,r,i)=>({kind:bq[e],name:t,metadata:r,addInitializer:e=>n._?mq("Already initialized"):i.push(xq(e||null))}),wq=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},Cq=(e,t,n,r,i,o)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=bq[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(i=i.prototype,cq({get[n](){return Iq(this,o)},set[n](e){return Rq(this,o,e)}},n)),v=r.length-1;v>=0;v--)(u=Sq(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[v])({get:g.get,set:g.set},u),l._=1,void 0===s?xq(s)&&(g[f]=s):"object"!=typeof s||null===s?mq("Object expected"):(xq(a=s.get)&&(g.get=a),xq(a=s.set)&&(g.set=a),xq(a=s.init)&&h.unshift(a));return g&&lq(i,n,g),i},Eq=(e,t,n)=>t.has(e)||mq("Cannot "+n),Iq=(e,t,n)=>(Eq(e,t,"read from private field"),t.get(e)),Dq=(e,t,n)=>t.has(e)?mq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rq=(e,t,n,r)=>(Eq(e,t,"write to private field"),t.set(e,n),n);function Pq(e){return e instanceof oT||e instanceof iT}var Mq=class extends GD{constructor(e){super(e);const t=FE(()=>{const{dragOperation:t}=e;if(pL(t.activatorEvent)&&Pq(t.source)&&t.status.initialized){const t=e.registry.plugins.get(nk);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!pL(e.nativeEvent))return;if(!Pq(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:i,registry:o}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];vE(()=>{for(const e of o.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&Pq(e)||!e.element)continue;let n=e.shape;const r=new lL(e.element,{getBoundingClientRect:e=>UP(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),i.disable();const f=i.computeCollisions(d,gL);vE(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:o}=n;if(!e||!Pq(e)||!o)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;tL(c);const d=new lL(c);if(!d)return;const p=oD.delta(d,oD.from(o.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),t()}}};var Lq=Object.defineProperty,Aq=Object.defineProperties,kq=Object.getOwnPropertyDescriptors,Oq=Object.getOwnPropertySymbols,qq=Object.prototype.hasOwnProperty,Tq=Object.prototype.propertyIsEnumerable,Nq=(e,t,n)=>t in e?Lq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jq=(e,t)=>{for(var n in t||(t={}))qq.call(t,n)&&Nq(e,n,t[n]);if(Oq)for(var n of Oq(t))Tq.call(t,n)&&Nq(e,n,t[n]);return e},_q=(e,t)=>Aq(e,kq(t));function Fq(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function zq(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Wq(e,t){return function(e,t,n){var r,i,o;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(zq(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&zq(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return _q(jq({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return _q(jq({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&zq(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return _q(jq({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return _q(jq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return _q(jq({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return _q(jq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,Fq)}var $q="__default__";function Hq(e,t,n,r){const i=r<t?"afterend":"beforebegin";n.insertAdjacentElement(i,e)}function Vq(e,t){return e.index-t.index}function Bq(e){return Array.from(e).sort(Vq)}var Gq,Uq,Yq,Kq,Xq,Jq,Zq,Qq,eT=[Mq,class extends GD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof oT){const{sortable:e}=n,{group:r}=e;let i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}for(const[e,n]of t)t.set(e,new Set(Bq(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:i,target:o}=r;if(!Pq(i)||!Pq(o))return;if(i.sortable===o.sortable)return;const a=t(),s=i.sortable.group===o.sortable.group,l=a.get(i.sortable.group),u=s?l:a.get(o.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,c,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,i]of n)if(i.index!==t||i.group!==e||!(null==(r=p.get(e))?void 0:r.has(i)))return}const f=i.sortable.element,h=o.sortable.element;if(!h||!f)return;if(!s&&o.id===i.sortable.group)return;const m=Bq(l),g=s?m:Bq(u),v=null!=(c=i.sortable.group)?c:$q,y=null!=(d=o.sortable.group)?d:$q,b={[v]:m,[y]:g},x=Wq(b,e);if(b===x)return;const S=x[y].indexOf(i.sortable),w=x[y].indexOf(o.sortable);n.collisionObserver.disable(),Hq(f,S,h,w),vE(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=o.sortable.group,t.index=e}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:i}=r;Pq(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(i.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=Bq(r),n=i.sortable.element,o=t[i.sortable.initialIndex],a=null==o?void 0:o.element;o&&a&&n&&(Hq(n,o.index,a,i.index),vE(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],tT={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},nT=new class{constructor(){DI(this,TI,new WeakMap)}get(e,t){var n;return e?null==(n=II(this,TI).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return II(this,TI).has(e)||II(this,TI).set(e,new Map),null==(r=II(this,TI).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=II(this,TI).get(e))?void 0:t.clear():void 0}};Uq=[AI],Gq=[AI];var rT=class{constructor(e,t){Dq(this,Kq,wq(Yq,8,this)),wq(Yq,11,this),Dq(this,Xq),Dq(this,Jq),Dq(this,Zq,wq(Yq,12,this)),wq(Yq,15,this),Dq(this,Qq),this.register=()=>(vE(()=>{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=()=>{vE(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{vE(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:i,index:o,sensors:a,type:s,transition:l=tT,plugins:u=eT}=n,c=((e,t)=>{var n={};for(var r in e)fq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&pq)for(var r of pq(e))t.indexOf(r)<0&&hq.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new oT(c,t,this),this.draggable=new iT(yq(vq({},c),{effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&nT.clear(this.manager),(null==r?void 0:r.dragging)&&nT.set(this.manager,this.id,bE(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=Iq(this,Jq),i=Iq(this,Xq);e===r&&t===i||(Rq(this,Jq,e),Rq(this,Xq,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:n}=this.draggable;"move"==t&&n&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...r()],type:s,sensors:a}),t,this),Rq(this,Qq,c.element),this.manager=t,this.index=o,Rq(this,Jq,o),this.group=i,Rq(this,Xq,i),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=nT.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bE(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;const i=this.refreshShape();if(!i)return;const o=n.boundingRectangle.left-i.boundingRectangle.left,a=n.boundingRectangle.top-i.boundingRectangle.top,{translate:s}=HM(r),l=rL(r,s,!1),u=rL(r,s);if(o||a){const n=tM(WP(r))?yq(vq({},t),{duration:0}):t;nL({element:r,keyframes:{translate:[`${l.x+o}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){vE(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){vE(()=>{const t=Iq(this,Qq),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Rq(this,Qq,e)})}get element(){var e,t;const n=Iq(this,Qq);if(n)return null!=(t=null!=(e=oM.get(n))?e:n)?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){vE(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){vE(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){vE(()=>{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:mL}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vE(()=>{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)}};Yq=[,,,sq(null)],Kq=new WeakMap,Xq=new WeakMap,Jq=new WeakMap,Zq=new WeakMap,Qq=new WeakMap,Cq(Yq,4,"index",Uq,rT,Kq),Cq(Yq,4,"group",Gq,rT,Zq),((e,t)=>{return gq(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(Yq,rT);var iT=class extends Uk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},oT=class extends Yk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},aT=Object.defineProperty,sT=Object.defineProperties,lT=Object.getOwnPropertyDescriptors,uT=Object.getOwnPropertySymbols,cT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,pT=(e,t,n)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fT=(e,t)=>{for(var n in t||(t={}))cT.call(t,n)&&pT(e,n,t[n]);if(uT)for(var n of uT(t))dT.call(t,n)&&pT(e,n,t[n]);return e};function hT(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:i,data:o,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=fT(fT({},tT),e.transition),y=vO(t=>new rT(((e,t)=>sT(e,lT(t)))(fT({},e),{transition:v,register:!1,handle:Kk(s),element:Kk(a),target:Kk(m),feedback:d}),t)),b=Qk(y,mT);return nO(i,()=>y.id=i),Xk(()=>{vE(()=>{y.group=u,y.index=l})},[y,u,l]),nO(g,()=>y.type=g),nO(t,()=>y.accept=t,void 0,LI),nO(o,()=>o&&(y.data=o)),nO(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},eO),rO(s,e=>y.handle=e),rO(a,e=>y.element=e),rO(m,e=>y.target=e),nO(c,()=>y.disabled=!0===c),nO(h,()=>y.sensors=h),nO(n,()=>y.collisionDetector=n),nO(r,()=>y.collisionPriority=r),nO(d,()=>y.feedback=null!=d?d:"default"),nO(v,()=>y.transition=v,void 0,LI),nO(p,()=>y.modifiers=p,void 0,LI),nO(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:f(e=>{y.handle=null!=e?e:void 0},[y]),ref:f(e=>{var t,n;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:f(e=>{var t,n;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:f(e=>{var t,n;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function mT(e,t,n){return!("isDragSource"!==e||n||!t)}const gT=({id:e,itemIndex:t,sectionIndex:n})=>fo.jsx("div",{children:`${n}:${t} - ${e}`}),vT=({id:e,itemIndex:t,sectionIndex:n})=>{const r=qw(sE),i=qw(iE),o=qw(QC).at(n)??0,a=qw(eE)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=hT({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[oq],plugins:[Mq],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=i??gT;return fo.jsx(Vd,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:fo.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[fo.jsx(VO,{isDragging:l,itemIndex:t,sectionIndex:n}),fo.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===o-1&&fo.jsx(VO,{isDragging:l,itemIndex:t+1,sectionIndex:n})]})})},yT=n.memo(vT),bT=n.memo(({sectionIndex:e})=>{const t=qw(eE),n=qw(QC).at(e)??0,r=t({sectionIndex:e});return fo.jsxs(sc,{className:"exploration-list",style:{overflow:"auto"},children:[fo.jsx(td,{}),fo.jsx(UO,{id:r,sectionIndex:e}),fo.jsx(td,{}),fo.jsx(GO,{sectionIndex:e}),fo.jsx(kd,{sx:{padding:"2px 8px"},children:WO(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return fo.jsx(yT,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),xT=[wk.configure({activationConstraints:[new yk.Distance({value:5})]}),hk],ST=n.memo(()=>{const e=qw(ZC),t=qw(eE),n=Tw(dE("start")),r=Tw(dE("over")),i=Tw(dE("end"));return fo.jsxs(mO,{sensors:xT,onDragEnd:i,onDragOver:r,onDragStart:n,children:[fo.jsx(sc,{style:{display:"flex",flexDirection:"column"},children:WO(e).map(e=>fo.jsx(bT,{sectionIndex:e},t({sectionIndex:e})))}),fo.jsx(HO,{})]})}),wT=n.memo(e=>fo.jsx(NC,{atoms:pE,atomFamilies:fE,children:fo.jsx(hE,{props:e,children:fo.jsx(ST,{})})})),CT="12px",ET="nebula-table-utils-head-menu-button",IT="sn-copy-cell";let DT=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 RT="nebula-table-utils-column-adjuster";let PT=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}({}),MT=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const LT={darker:.15,brighter:.3,opacity:.03},AT={darker:.3,brighter:.5,opacity:.05};let kT=function(e){return e.Cyclic="C",e}({});const OT=(e,t)=>{const n=new Map;for(const t of e)n.set(t.id,t);return t.reduce((e,t)=>{const r=n.get(t);return r&&e.push(r),e},[])},qT=KC(e=>ww(t=>{const n=t(lC),r=t(Xw),i=t(oC)?.[e],o=n?.qHyperCube.rankedList?.[e];return i||(r?.isRankedListCorrupt(e)||void 0===o?r?.createRankedList(e):o)})),TT=(e,t=new Set)=>ww(n=>{const r=n(e),i=n(wC);if(!r||0===r.length)return"disabled";const o=r.filter(e=>!t.has(e.id));if(0===o.length)return"disabled";const a=o.filter(e=>i.has(e.id)).length;return 0===a?"none":a===o.length?"all":"some"}),NT=(e,t=new Set)=>ww(null,(n,r,i)=>{const o=n(e);o&&0!==o.length&&(e=>{const{items:t,shouldCheckAll:n,get:r,set:i,excludedIds:o}=e,a=t.filter(e=>!o?.has(e.id));if(0===a.length)return;const s=r(wC),l=new Set,u=new Set;if(a.forEach(e=>{const t=s.has(e.id);t&&!n&&u.add(e.id),!t&&n&&l.add(e.id)}),0===l.size&&0===u.size)return;const c=new Set(r(yC)),d=new Set(r(bC));l.forEach(e=>c.add(e)),l.forEach(e=>d.delete(e)),u.forEach(e=>d.add(e)),u.forEach(e=>c.delete(e)),i(yC,c),i(bC,d),Yw({type:"apply",localChecked:l,localUnchecked:u,handler:r(Xw),model:r(Kw),fieldInfo:r(fC),handlerQueue:r(mC)})})({items:o,shouldCheckAll:i,get:n,set:r,excludedIds:t})}),jT=ww(e=>{const t=e(uC);return t?.qHyperCube.qDimensionInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),_T=ww(e=>{const t=e(lC),n=e(Zw),r=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:n("Common.Values")};const{cId:r,qFallbackTitle:i}=t.qHyperCube.qDimensionInfo[e];return{id:r,title:i??""}});return r}),FT=ww(e=>{const t=e(Zw),n=e(jT),r=e(eC),i=e(qT("columns")),o=e(qT("rows")),a=e(_T);if(void 0===n||void 0===i||void 0===o||void 0===a)return[];const s=[...a,...n].filter(r);return[{id:"rows",title:t("Common.Rows"),items:OT(s,o)},{id:"columns",title:t("Common.Columns"),items:OT(s,i)}]}),zT=KC(e=>ww(t=>t(FT).at(e))),WT=KC(({sectionIndex:e,itemIndex:t})=>ww(n=>n(zT(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),$T=KC(e=>ww(t=>t(zT(e))?.title)),HT=ww(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(zT(t));return void 0===r?0===t?"rows":"columns":void 0===n?r.id:r.items.at(n)?.id??`missing-item-${t}-${n}`}),VT=ww(e=>e(FT).map(e=>e.items.length)),BT=KC(e=>TT(ww(t=>t(zT(e))?.items),new Set([-1]))),GT=KC(e=>NT(ww(t=>t(zT(e))?.items),new Set([-1]))),UT=ww(null,async(e,t,{event:n,id:r,toIndex:i,toSection:o,startSection:a})=>{const s=e(Xw),l=e(Kw),u=e(mC),c=e(qT("rows")),d=e(qT("columns")),p=o;if(void 0===s||void 0===l||void 0===c||void 0===d||null===u)return;if(n.operation.canceled)return void t(oC,null);if("section"===n.operation.target?.type&&a===o)return void t(oC,null);const f=YC({rows:c,columns:d},n);t(oC,f),u.add(async()=>{"number"==typeof r?await s.movePseudoDimension({toIndex:i,toSection:p}):await s.moveDimension({cId:r,toIndex:i,toSection:p})})}),YT={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"}},KT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",XT="ChartExploration.PivotTable.MeasureSectionEmpty.Message",JT="#177fe6",ZT=(e,t,n,r)=>{if("measure"===t)return e(r?YT.noSearchFound.measure:YT.noItems.measure);const i=r?YT.noSearchFound:YT.noItems;return e(n?i.row:i.column)},QT=(e,t,n)=>n?"":e("measure"===t?XT:KT),eN=KC(e=>ww(t=>{const n=t(Zw),r=t(Qw).length>0;return t=>({title:ZT(n,e,0===t,r),message:QT(n,e,r)})})),tN=eN("measure"),nN=eN("dimensions"),rN=({children:e})=>fo.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),iN=e=>{const t=qw(WT(e));return fo.jsx(rN,{children:t})},oN=ww(e=>{const t=e(uC);return t?.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),aN=ww(e=>{const t=e(lC),n=e(oN),r=e(eC),i=e(qT("measures"));if(void 0===t||void 0===n||void 0===i)return[];const o=t.qHyperCube.qMeasureInfo.filter(tC).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));o.push(...n);const a=o.filter(r);return OT(a,i)}),sN=KC(e=>ww(t=>t(aN).at(e)?.title??"")),lN=ww(e=>({itemIndex:t})=>{const n=e(aN);return void 0===t?"measures":n.at(t)?.id??`missing-item-${t}`}),uN=ww(e=>[e(aN).length]),cN=TT(aN),dN=NT(aN),pN=ww(null,async(e,t,{id:n,toIndex:r,event:i})=>{const o=e(Xw),a=e(Kw),s=e(mC),l=e(qT("measures"));if(void 0===o||void 0===a||void 0===l||"string"!=typeof n||null===s)return;const u=YC({measures:l},i);t(oC,u),s.add(async()=>{await o.moveMeasure({cId:n,toIndex:r})})}),fN=zS().palette,hN={TEXT:fN.text.primary,DISABLED:fN.text.disabled,HOVER:fN.action.hover,WHITE:Of.GREYSCALE_100,BORDER_MEDIUM:Of.GREYSCALE_85,DARK_MODE_TEXT:Of.GREYSCALE_95,DARK_MODE_BORDER:Of.GREYSCALE_95,DARK_MODE_DISABLED:Of.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:fN.primary.main,LINK:fN.info.main,ERROR:fN.error.main};function mN(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 gN(e){if("object"==typeof e&&mN(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let i;(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(i[1],16),n=parseInt(i[2],16),r=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(i[1]+i[1],16),n=parseInt(i[2]+i[2],16),r=parseInt(i[3]+i[3],16))}return(t<<16)+(n<<8)+r}const vN={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}},yN="qcm-color";function bN(...e){const t={type:yN,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,i=0,o=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===yN)({r:n,g:r,b:i,a:o}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(mN(e[0]))({r:n,g:r,b:i}=e[0]),"a"in e[0]&&({a:o}=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=parseInt(s[3],10),o=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))o=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),i=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))n=parseInt(s[1],16),r=parseInt(s[2],16),i=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),i=parseInt(s[3]+s[3],16),o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=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]);o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i)}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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=1}else{const e=a.toLowerCase();if(function(e){return e in vN}(e)){const t=vN[e];({r:n,g:r,b:i}=t),o="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(o=(4278190080&e[0])>>>24,o/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],i=e[2],o=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+i+o)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(i),t.a=o,t}function xN(e){let t,n,r;if(mN(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const i="string"==typeof e?gN(e):e;return t=((16711680&i)>>16).toString(16),n=((65280&i)>>8).toString(16),r=(255&i).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function SN(e){let t,n,r=0;const i="string"==typeof e?bN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,{a:l}=i,u=Math.max(o,a,s),c=Math.min(o,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function wN(e){let t,n,r=0;const i="string"==typeof e?bN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function CN(e){if(mN(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?gN(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function EN(e,t){return mN(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:EN(bN(e))}function IN(e){return mN(e)?1===e.a?CN(e):EN(e):IN(bN(e))}const DN=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function RN(e){return.2126*DN(e.r)+.7152*DN(e.g)+.0722*DN(e.b)}function PN(...e){const t=bN(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=SN(n)),n.spaces.hslaObject),i=e=>{const t=r(),{h:n,s:i,l:o,a:a}=t;return`hsla(${n}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=bN(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=bN(...e);return t.invalid||RN(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=CN(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=EN(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=IN(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=xN(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const i="string"==typeof e?bN(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:i}=SN(e);return`hsla(${t}, ${n}, ${r}, ${i})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:i,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=wN(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=wN(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>PN(i(18*e)),getDarkenedColor:(e=1)=>PN(i(18*-e))}}function MN(e,t){if(!e||!t)return;const n=RN(e),r=RN(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const LN="#FFFFFF";function AN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kN,ON="top",qN="top-right",TN="right",NN="bottom-right",jN="bottom",_N="bottom-left",FN="left",zN="top-left";AN(AN(AN(AN(AN(AN(AN(AN(AN(AN(kN={},"equal-equal",[ON,jN]),"equal-higher",[jN,NN]),"equal-lower",[ON,qN]),"equal-void",[ON,jN]),"higher-equal",[FN,_N,ON,qN]),"higher-higher-acute",[jN,_N,FN,qN]),"higher-higher-obtuse",[jN,ON]),"higher-lower-negative",[ON,qN,TN]),"higher-lower-positive",[jN,_N,FN]),"higher-void",[ON]),AN(AN(AN(AN(AN(AN(AN(AN(AN(AN(kN,"lower-equal",[ON]),"lower-higher-negative",[ON,zN]),"lower-higher-positive",[NN]),"lower-lower-acute",[ON,zN,FN,qN,TN]),"lower-lower-obtuse",[ON,jN]),"lower-void",[ON]),"void-equal",[ON]),"void-higher",[ON,jN]),"void-lower",[ON,jN,FN]),"void-void",[ON]),AN(kN,"unclassified",[ON,jN,TN,FN,qN,NN,_N,zN]);var WN,$N,HN=["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"],VN=["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 BN(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?VN:HN}var GN=function(){if($N)return WN;$N=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return WN=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(u=i(l)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},WN}();function UN(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function YN(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function KN(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(GN);var XN=.7,JN=1/XN,ZN="\\s*([+-]?\\d+)\\s*",QN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ej="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tj=/^#([0-9a-f]{3,8})$/,nj=new RegExp(`^rgb\\(${ZN},${ZN},${ZN}\\)$`),rj=new RegExp(`^rgb\\(${ej},${ej},${ej}\\)$`),ij=new RegExp(`^rgba\\(${ZN},${ZN},${ZN},${QN}\\)$`),oj=new RegExp(`^rgba\\(${ej},${ej},${ej},${QN}\\)$`),aj=new RegExp(`^hsl\\(${QN},${ej},${ej}\\)$`),sj=new RegExp(`^hsla\\(${QN},${ej},${ej},${QN}\\)$`),lj={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 uj(){return this.rgb().formatHex()}function cj(){return this.rgb().formatRgb()}function dj(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tj.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?pj(t):3===n?new gj(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?fj(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?fj(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=nj.exec(e))?new gj(t[1],t[2],t[3],1):(t=rj.exec(e))?new gj(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ij.exec(e))?fj(t[1],t[2],t[3],t[4]):(t=oj.exec(e))?fj(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=aj.exec(e))?wj(t[1],t[2]/100,t[3]/100,1):(t=sj.exec(e))?wj(t[1],t[2]/100,t[3]/100,t[4]):lj.hasOwnProperty(e)?pj(lj[e]):"transparent"===e?new gj(NaN,NaN,NaN,0):null}function pj(e){return new gj(e>>16&255,e>>8&255,255&e,1)}function fj(e,t,n,r){return r<=0&&(e=t=n=NaN),new gj(e,t,n,r)}function hj(e){return e instanceof KN||(e=dj(e)),e?new gj((e=e.rgb()).r,e.g,e.b,e.opacity):new gj}function mj(e,t,n,r){return 1===arguments.length?hj(e):new gj(e,t,n,null==r?1:r)}function gj(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vj(){return`#${Sj(this.r)}${Sj(this.g)}${Sj(this.b)}`}function yj(){const e=bj(this.opacity);return`${1===e?"rgb(":"rgba("}${xj(this.r)}, ${xj(this.g)}, ${xj(this.b)}${1===e?")":`, ${e})`}`}function bj(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xj(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sj(e){return((e=xj(e))<16?"0":"")+e.toString(16)}function wj(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ej(e,t,n,r)}function Cj(e){if(e instanceof Ej)return new Ej(e.h,e.s,e.l,e.opacity);if(e instanceof KN||(e=dj(e)),!e)return new Ej;if(e instanceof Ej)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ej(a,s,l,e.opacity)}function Ej(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ij(e){return(e=(e||0)%360)<0?e+360:e}function Dj(e){return Math.max(0,Math.min(1,e||0))}function Rj(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}UN(KN,dj,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uj,formatHex:uj,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Cj(this).formatHsl()},formatRgb:cj,toString:cj}),UN(gj,mj,YN(KN,{brighter(e){return e=null==e?JN:Math.pow(JN,e),new gj(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?XN:Math.pow(XN,e),new gj(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gj(xj(this.r),xj(this.g),xj(this.b),bj(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:vj,formatHex:vj,formatHex8:function(){return`#${Sj(this.r)}${Sj(this.g)}${Sj(this.b)}${Sj(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yj,toString:yj})),UN(Ej,function(e,t,n,r){return 1===arguments.length?Cj(e):new Ej(e,t,n,null==r?1:r)},YN(KN,{brighter(e){return e=null==e?JN:Math.pow(JN,e),new Ej(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?XN:Math.pow(XN,e),new Ej(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new gj(Rj(e>=240?e-240:e+120,i,r),Rj(e,i,r),Rj(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ej(Ij(this.h),Dj(this.s),Dj(this.l),bj(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=bj(this.opacity);return`${1===e?"hsl(":"hsla("}${Ij(this.h)}, ${100*Dj(this.s)}%, ${100*Dj(this.l)}%${1===e?")":`, ${e})`}`}}));const Pj=Math.PI/180,Mj=180/Math.PI,Lj=.96422,Aj=.82521,kj=4/29,Oj=6/29,qj=3*Oj*Oj,Tj=Oj*Oj*Oj;function Nj(e){if(e instanceof jj)return new jj(e.l,e.a,e.b,e.opacity);if(e instanceof $j)return Hj(e);e instanceof gj||(e=hj(e));var t,n,r=Wj(e.r),i=Wj(e.g),o=Wj(e.b),a=_j((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=_j((.4360747*r+.3850649*i+.1430804*o)/Lj),n=_j((.0139322*r+.0971045*i+.7141733*o)/Aj)),new jj(116*a-16,500*(t-a),200*(a-n),e.opacity)}function jj(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _j(e){return e>Tj?Math.pow(e,1/3):e/qj+kj}function Fj(e){return e>Oj?e*e*e:qj*(e-kj)}function zj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Wj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $j(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Hj(e){if(isNaN(e.h))return new jj(e.l,0,0,e.opacity);var t=e.h*Pj;return new jj(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}UN(jj,function(e,t,n,r){return 1===arguments.length?Nj(e):new jj(e,t,n,null==r?1:r)},YN(KN,{brighter(e){return new jj(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new jj(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,n=isNaN(this.b)?e:e-this.b/200;return new gj(zj(3.1338561*(t=Lj*Fj(t))-1.6168667*(e=1*Fj(e))-.4906146*(n=Aj*Fj(n))),zj(-.9787684*t+1.9161415*e+.033454*n),zj(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),UN($j,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $j)return new $j(e.h,e.c,e.l,e.opacity);if(e instanceof jj||(e=Nj(e)),0===e.a&&0===e.b)return new $j(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Mj;return new $j(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $j(e,t,n,null==r?1:r)},YN(KN,{brighter(e){return new $j(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new $j(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Hj(this).rgb()}}));var Vj=e=>()=>e;function Bj(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Vj(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Bj:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Vj(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=mj(e)).r,(t=mj(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Bj(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Gj="center",Uj="bottom";[{key:"NoDataExist",alignment:Gj,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.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 n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Gj},{key:"DataRangeIncludingZero",alignment:Uj},{key:"LimitedData",alignment:Uj},{key:"NegativeOrZeroValues",alignment:Uj}].reduce(function(e,t){return e[t.key]=t,e},{});var Yj,Kj=["__proto__","constructor"];function Xj(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!Kj.some(function(e){return r.includes(e)})){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function Jj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function Zj(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,o)},n)}}function Qj(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function e_(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=n_)):void 0===t&&(t=t_);for(var n,r,i,o,a,s=new o_(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new o_(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(i_)}function t_(e){return e.children}function n_(e){return Array.isArray(e)?e[1]:null}function r_(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function i_(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function o_(e){this.data=e,this.depth=this.height=0,this.parent=null}o_.prototype=e_.prototype={constructor:o_,count:function(){return this.eachAfter(Qj)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return e_(this).eachBefore(r_)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.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 n,r,i,o,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(n=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),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(o),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+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},YN({exports:{}});const a_=(e,t=hj.TEXT,n=hj.WHITE)=>{const r=Pj(e??""),i=Pj(t),o=Pj(n);return r.isInvalid()?t:function(e,t,n){const r=Mj(e,t),i=Mj(e,n);if(void 0!==r&&void 0!==i)return r>i?t:n}(r,o,i).getRGB()},s_=e=>{const t=e.getStyle("","","dataColors.selected")||hj.SELECTED,n=function(e,t){const n=Pj(Lj),r=Pj(e),i=Pj(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;const o=Mj(n,r),a=Mj(i,r),s=o>a||o>4.5;return!s&&a>3?i.getHex():s?Lj:"#000000"}(t,hj.TEXT);return{background:t,color:n}},l_=(e,t)=>{const n=Pj(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},u_=e=>{const t=Pj(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},c_=e=>{e.stopPropagation(),e.preventDefault()},d_=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},p_=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const n=t.closest(".exploration-panel");if(!n)return!1;const r=n.getElementsByClassName("section-item-container");return Array.from(r).some(e=>"true"===e.getAttribute("data-dragging"))},f_=(e,t)=>{const{key:n,currentTarget:r}=e;if(r===t.current&&n===DT.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:n}=e;if(n!==t.current)return;const r=n.closest('[role="region"]')?.getElementsByTagName("button")[0];r&&d_(r)})(e,t);else{const e=r.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&d_(e)}},h_=(e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=t.sectionIndex??2;if(0===r)return void((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&d_(r)})(e,t);const i=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[r-1],o=i?.getElementsByClassName("exploration-item-focus").length??0;if(o>0){const e=i?.getElementsByClassName("exploration-draggable-icon")[o-1];e&&d_(e)}},m_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:c_(e),e.shiftKey?h_(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),i=r?.getElementsByClassName("exploration-item-focus")[0];if(!i){const e=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&d_(e))}d_(i)})(e,t);break;case DT.Down:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a+1<i?r?.getElementsByClassName("exploration-section-header")[a+1]:r?.getElementsByClassName("exploration-section-header")[0],o&&d_(o)})(e,t);break;case DT.Up:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a-1>=0?r?.getElementsByClassName("exploration-section-header")[a-1]:r?.getElementsByClassName("exploration-section-header")[i-1],o&&d_(o)})(e,t);break;case DT.Enter:case DT.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},g_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),v_=({children:e,sectionIndex:t})=>{const r=qw(void 0!==t?BT(t):cj),i=Tw(void 0!==t?GT(t):dj),o=n.useRef(null),a={ref:o,toggleAllCheckboxes:i,checkState:r,sectionIndex:t};return fo.jsxs(sc,{ref:o,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{m_(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"12px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{i(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),fo.jsx(g_,{children:e})]})},y_=({sectionIndex:e})=>{const t=qw($T(e));return fo.jsx(v_,{sectionIndex:e,children:t})},b_=x((e,t)=>fo.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:fo.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"})})),x_=x((e,t)=>fo.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:fo.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"})})),S_=Sl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),w_=Sl(x_)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}})),C_=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,E_=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===DT.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},I_=e=>{const{currentTarget:t}=e,n=C_(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),i=e?.querySelector(".exploration-section-header");if(i)return i;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const i=r.getElementsByClassName(t);return i.length>0?i[i.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},D_=(e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&d_(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void d_(e)}n===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},R_=e=>{const t=e.key===DT.Down?(e=>{const{currentTarget:t,key:n}=e,r=C_(t),i=t.closest("li");let o=i?.nextElementSibling?.getElementsByClassName(r)[0];return o||(o=E_(t,n),o)?o:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):I_(e);t&&d_(t)},P_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&d_(e))}const n=I_(e);n&&d_(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void d_(t);const r=I_(e);r&&d_(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return d_(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&d_(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&d_(n),!0}const i=E_(n,r);if(!i)return!1;d_(i)}return!0})(e,t);n?c_(e):e.stopPropagation()}break;case DT.Down:case DT.Up:if(p_(e))break;c_(e),R_(e);break;case DT.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}c_(e),D_(e,t);break;case DT.Space:c_(e),D_(e,t)}},M_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),L_=({icon:e,title:t,dragHandleRef:r,...i})=>{const[o,a]=jw(wC),s=qw(Zw),l=n.useRef(null),u=n.useRef(null),c=n.useRef(null),d={id:i.id,itemIndex:i.itemIndex,toggleCheckedById:a,items:{explorationItemRef:l,explorationItemFocusRef:u,draggableIconRef:c},dragHandleRef:r};return n.useEffect(()=>{r&&l.current&&r(l.current)},[r]),fo.jsxs(sc,{ref:l,className:"exploration-item",onClick:e=>{e.stopPropagation(),a(i.id)},onKeyDown:e=>{P_(e,d)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"12px"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsxs(sc,{ref:u,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{P_(e,d)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{checked:o.has(i.id),"aria-label":s("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===i.id?"hidden":"visible"}}),fo.jsx(e,{height:"12px",style:{flexShrink:0}}),fo.jsx(M_,{children:t})]}),fo.jsx(w_,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{P_(e,d)}})]})},A_=e=>{const t=qw(WT(e))??"";return fo.jsx(L_,{title:t,icon:b_,...e})},k_=()=>{const e=qw(HT),t=qw(VT),n=qw(nj),r=Tw(UT);return fo.jsx(wT,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:ij,headerRenderer:y_,itemRenderer:A_})},O_=({itemIndex:e})=>{const t=qw(sj(e));return fo.jsx(rj,{children:t})},q_=()=>{const e=qw(Zw);return fo.jsx(v_,{children:e("Common.Values")})},T_=x((e,t)=>fo.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:[fo.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"}),fo.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"})]})),j_=e=>{const{itemIndex:t}=e,n=qw(sj(t));return fo.jsx(L_,{title:n,icon:T_,...e})},N_=()=>{const e=qw(lj),t=qw(uj),n=qw(tj),r=Tw(pj);return fo.jsx(sc,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:fo.jsx(wT,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:O_,headerRenderer:q_,itemRenderer:j_})})},__=x((e,t)=>fo.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:fo.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"})})),F_=()=>{const[e,t]=jw(Qw),r=qw(Zw),i=n.useRef(null),[o]=qw(uj),[a=0,s=0]=qw(VT),l=f(e=>{t(e.target.value)},[t]),u=0===e.length||0===a&&0===s&&0===o?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),o.toString());return fo.jsxs(sc,{ref:i,onKeyDown:e=>{f_(e,i)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 16px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[fo.jsx(S_,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),fo.jsx(Vp,{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:l,startAdornment:fo.jsx(xd,{position:"start",children:fo.jsx(__,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},z_=e=>{const t=_s(kf());return fo.jsx(Cl,{theme:t,children:fo.jsx(Pw,{children:fo.jsx(CC,{props:e,children:fo.jsxs(sc,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[fo.jsx(F_,{}),fo.jsx(k_,{}),fo.jsx(N_,{})]})})})})},W_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:z_,classification:{tags:["exploration"],exclusive:!0}}};var $_=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}($_||{}),H_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(H_||{}),V_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(V_||{}),B_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(B_||{});const G_=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,U_=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,r="}",i="";switch(e.type){case V_.SEARCH:i=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case $_.BEGINNING_OF_WORD:t="*^",n="*";break;case $_.ENDS_WITH:t="*";break;case $_.STARTS_WITH:n="*";break;case $_.MATCHES_EXACTLY:break;case $_.CONTAINS:default:t="*",n="*"}const i=e.options.values?.[0]??"";return""!==i?`"${t}${i}${n}"`:""})(e);break;case V_.CONDITION:i=(e=>{const{options:t}=e,n=t?.mode===H_.GENERAL,r=t?.modifier?.type===B_.FIXED_VALUE,i=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===i.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let o,a,s="=";n&&r?(o=`${t.conditionField?.aggregator}(${G_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(o="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(o=`${t.conditionField?.aggregator}(${G_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${G_(t.firstValue?.field)})`):(o=`${G_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${G_(t.firstValue?.field)})`);const l=`${s}${o}${i[0]}${a}`;let u="";if(i.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${o}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${G_(t.secondValue?.field)})`,a=` and ${o}`):(e=`${t.secondValue?.aggregator}(total ${G_(t.secondValue?.field)})`,a=` and ${o}`),u=`${a}${i[1]}${e}`}return`"${l}${u}"`})(e);break;case V_.CLEAR_SELECTION:i=`[${e.field}]=`,t="",r="";break;case V_.VALUES:default:i=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==i&&n.push(`${t}${i}${r}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},Y_=[];for(let e=0;e<256;++e)Y_.push((e+256).toString(16).slice(1));let K_;const X_=new Uint8Array(16);var J_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Z_(e,t,n){const r=(e=e||{}).random??e.rng?.()??function(){if(!K_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");K_=crypto.getRandomValues.bind(crypto)}return K_(X_)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Y_[e[t+0]]+Y_[e[t+1]]+Y_[e[t+2]]+Y_[e[t+3]]+"-"+Y_[e[t+4]]+Y_[e[t+5]]+"-"+Y_[e[t+6]]+Y_[e[t+7]]+"-"+Y_[e[t+8]]+Y_[e[t+9]]+"-"+Y_[e[t+10]]+Y_[e[t+11]]+Y_[e[t+12]]+Y_[e[t+13]]+Y_[e[t+14]]+Y_[e[t+15]]).toLowerCase()}(r)}const Q_=()=>crypto?.randomUUID?.()??function(e){return J_.randomUUID&&!e?J_.randomUUID():Z_(e)}(),eF=1e3,tF=1e3,nF=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,n=((e,t)=>{const n=new Set;for(const t of e){if(n.has(t))return!0;n.add(t)}const r=e.includes(-1),i=e.filter(e=>-1!==e);if(t){const n=r?t.length+1:t.length;if(e.length!==n)return!0}const o=[...i].sort((e,t)=>e-t);for(let e=0;e<o.length;e++)if(o[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);n&&(e.qInterColumnSortOrder=((e,t)=>{const n=[];if(t)for(let e=0;e<t.length;e++)n.push(e);return e.qMeasures.length>=2&&n.push(-1),n})(e,t))},rF=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},iF=e=>{if(!e)return;nF(e);const t=e.qDimensions,{qInterColumnSortOrder:n}=e;((e,t=[])=>{const n=t.filter(e=>-1!==e);for(let r=0;r<n.length;r++)if(-1!==n[r]&&n[r]!==r){const i=n[r],o=n.indexOf(r),a=n[o];rF(n,r,o),rF(e,r,o),rF(t,t.indexOf(i),t.indexOf(a))}})(t,n)},oF=R;class aF extends oF{#u;constructor(e,t){super(e),this.path=e.path,this.#u=t}async addDimension(e,t,n,r){if(!e||this.#c(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=Q_()),r)return this.addAlternativeDimension(e,i,n);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,n,r)=>{const i=e.getDimensions(),o=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),iF(e.hcProperties),(-1===o||Number.isNaN(+o))&&(e.hcProperties.qNoOfLeftDims=i.length),n?((e,t,n,r)=>{if(!e)return;const{qInterColumnSortOrder:i,qNoOfLeftDims:o}=e,a=t.length,s=i.indexOf(-1),l=-1!==s,u=void 0!==r?r+(o||0):void 0;if(l&&void 0!==u&&s>=u?((e,t,n)=>{t.splice(n,1),t.push(e),t.splice(n+1,0,-1)})(a,i,s):i.push(a),void 0===r)t.push(n);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,n)}})(e.hcProperties,i,t,r):((e,t,n,r)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const i=e.qNoOfLeftDims,{qInterColumnSortOrder:o}=e,a=t.length,s=o.indexOf(-1),l=-1!==s&&i>0&&s<i;if(o.push(a),l)void 0===r?t.splice(i-1,0,n):s<r?t.splice(r-1,0,n):(t.splice(r,0,n),o.splice(s,1),o.splice(s+1,0,-1));else{const e=r??i;t.splice(e,0,n),-1!==s&&(o.splice(s,1),o.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,r),t})(this,e,i,n);return this.#d({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===n}),t}}async addDimensions(e,t,n){const r=[];for await(const i of e){const e=await this.addDimension(i,n,void 0,t);e&&r.push(e)}return r}addAlternativeDimension(e,t,n){if(!e||this.#c(e))return;const r=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=r.length);let i=n;return i=void 0===i?t?r.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+i:Math.min(i,this.hcProperties.excludedNoOfLeftDims),r.splice(i,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#d({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),e}async addFieldDimension(e,t,n,r={}){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,r.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const n=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const n=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}reinsertDimension(e,t,n){e.qDef.cId||(e.qDef.cId=Q_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,n);return this.reinsertAlternativeDimension(e,n,t)}reinsertAlternativeDimension(e,t,n){const r=this.getDimensions(),i=this.getAlternativeDimensions();if(r.length>=eF)return Promise.resolve();const o="number"==typeof t?t:i.length;return i.splice(o,0,e),this.#d({section:n?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,n){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,n)))}async removeDimension(e,t,n){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!n&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#p({cId:t.qDef.cId,section:n?"columns":"rows"}),t}const r=this.getDimensions(),i=this.properties.qHyperCubeDef.qNoOfLeftDims,o=this.hcProperties.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof o&&"number"==typeof i&&o+1<=i&&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=r.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;e.splice(n,1)})(this.hcProperties.qInterColumnSortOrder,e),iF(this.hcProperties),this.#p({cId:s.qDef.cId,section:n?"columns":"rows"}),s}#c(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const n=[];for await(const r of e){const e=await this.addMeasure(r,t,void 0,!0);e&&n.push(e)}return n}addAlternativeMeasures(e,t){if(this.#f(e))return;const n=this.getAlternativeMeasures(),r=void 0===t?n.length:t,i=n.splice(r,0,e);return this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),i}async addMeasure(e,t,n,r){if(this.#f(e))return;if(e.qDef.cId||(e.qDef.cId=Q_()),t)return this.addAlternativeMeasures(e,n);r||delete e.qDef.qNumFormat;const i=this.getMeasures();if(i.length<this.maxMeasures()){const t=1===i.length;return void 0!==n&&n>=0?i.splice(n,0,e):i.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#h({cId:e.qDef.cId,addLast:void 0===n}),e))}return i.length<tF?(this.getAlternativeMeasures().push(e),this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures(),i=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=Q_()),t=void 0!==t?t:n.length,n.length<this.maxMeasures()){if(n.splice(t,0,e),2===n.length){-1===i.indexOf(-1)&&i.push(-1)}this.#h({cId:e.qDef.cId})}else n.length<tF&&(t=r.length,r.splice(t,0,e),this.#h({cId:e.qDef.cId}));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#p({cId:t.qDef.cId,section:"measures"}),t}const n=this.getMeasures();let r,i,o;if("number"==typeof e&&e<n.length){r=2===n.length,i=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;r&&(o=t.indexOf(-1),t.splice(o,1),this.hcProperties.qNoOfLeftDims&&o+1<=this.hcProperties.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(i=this.getAlternativeMeasures().splice(e-n.length,1)[0]);if(i)return this.#p({cId:i.qDef.cId,section:"measures"}),i}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#f(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#m("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#m("columns"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#g(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#v(e){return[...this.#g(e)]}#y(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#b(e){const t=({qDef:t})=>t.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#x(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#m(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:n}=this.hcProperties;if(this.#S())return"columns"===e?t:[];switch(e){case"rows":return-1===n?t:t.slice(0,n);case"columns":return-1===n?[]:t.slice(n);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#S(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#w(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#S())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#C(e,t=!0){const n=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(n);const r=this.#m(e),i=this.getDimensions(),o=r.map(e=>-1===e?-1:i[e]);switch(e){case"rows":return o.concat(t?this.getAlternativeRowDimensions():[]).map(n);case"columns":return o.concat(t?this.getAlternativeColumnDimensions():[]).map(n);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],n=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const r=t.filter((e,n)=>t.indexOf(e)!==n);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:r,section:e,chartId:n}),!0}const r=this.#C(e);if(t.length!==r.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:n,fieldIds:r,rankedList:t,diff:new Set(r).symmetricDifference(new Set(t))}),!0;const i=r.filter(e=>!t.includes(e));if(i.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:i,section:e,chartId:n}),!0;const o=this.#C(e,!1),a=t.filter(e=>o.includes(e)),s=o.filter((e,t)=>e!==a[t]);return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:n,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#E({section:e});case"measures":return this.#I();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#E({section:e}){const t=this.getDimensions(),n=this.#m(e),r="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),i=n.map(e=>-1===e?-1:t[e].qDef.cId);return i.push(...r.map(e=>e.qDef.cId)),this.#y(e,i)}#I(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#y("measures",e)}#D({section:e,cId:t,fields:n,addLast:r}){const i=this.#g(e),o=n.findIndex(e=>e.qDef.cId===t),a=n[o+1]?.qDef.cId,s=n[o-1]?.qDef.cId;if(r)i.push(t);else if(o>=0)if(a){const e=i.indexOf(a);i.splice(e,0,t)}else if(s){const e=i.indexOf(s);i.splice(e+1,0,t)}else i.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#d({section:e,cId:t,alternative:n=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#E({section:e});let i=[];return i="columns"===e?n?this.getAlternativeColumnDimensions():this.getColumnDimensions():n?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#D({section:e,cId:t,fields:i,addLast:r})}#h({cId:e,alternative:t=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#I();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#R(),this.#D({section:"measures",cId:e,fields:r,addLast:n})}#R(){const e=this.#g("rows"),t=this.#g("columns");this.#w("rows")&&!e.includes(-1)?e.push(-1):this.#w("columns")&&!t.includes(-1)&&t.push(-1)}#P(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#g("rows"),t=this.#g("columns"),n=e.indexOf(-1),r=t.indexOf(-1);-1!==n&&e.splice(n,1),-1!==r&&t.splice(r,1)}#p({cId:e,section:t}){const n=this.#g(t),r=n.indexOf(e);-1!==r&&(n.splice(r,1),this.#P())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t);if(void 0===i)return;const o=n.slice(r+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===o);await this.addAlternativeMeasures(i,-1===a?void 0:a),this.#y("measures",n)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t,!0);if(void 0===i)return;const o=this.getMeasures().map(e=>e.qDef.cId),a=n.slice(r+1).find(e=>o.includes(e)),s=o.findIndex(e=>e===a);await this.addMeasure(i,!1,-1===s?void 0:s),this.#y("measures",n)}async moveDimensionToAlternative(e){const t=this.#b(e),n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!1,o);if(void 0===a)return;const s=r.slice(i+1).find(e=>this.getAlternativeDimensions().some(({qDef:t})=>t.cId===e));let l=this.getAlternativeDimensions().findIndex(({qDef:e})=>e.cId===s);l=-1===l?void 0:l;void 0!==this.addAlternativeDimension(a,o,l)&&this.#y(t,r)}async moveDimensionFromAlternative(e){const t=this.#b(e),n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!0,o);if(void 0===a)return;const s=this.#C(t,!1),l=r.slice(i+1).find(e=>s.includes(e));let u=s.findIndex(e=>e===l);u=-1===u?void 0:u;void 0!==await this.addDimension(a,o,u)&&this.#y(t,r)}movePseudoDimension({toIndex:e,toSection:t}){const n=this.#b(-1);if(null===n)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const r="columns"===t,i=n===t,o=this.#v(t);if(i){const e=o.indexOf(-1);o.splice(e,1)}else{const i=this.#g(n),o=i.indexOf(-1);if(-1===o)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:n});i.splice(o,1),this.hcProperties.qNoOfLeftDims=r?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-o.slice(0,e).filter(e=>this.#x(e)).length,s=r?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),o.splice(e,0,-1),this.#y(t,o)}async moveDimension({cId:e,toIndex:t,toSection:n}){const r=this.#b(e),i=this.#x(e);if(null===r)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const o=(i?this.getAlternativeDimensions():this.getDimensions()).findIndex(({qDef:t})=>t.cId===e);if(-1===o)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:n});const a=this.#v(n),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter(e=>this.#x(e)!==i).length,u="columns"===n,c="columns"===r,d=await this.removeDimension(o,i,c);if(void 0===d)return;void 0!==await this.addDimension(d,u,l,i)&&(a.splice(t,0,e),this.#y(n,a))}async moveMeasure({cId:e,toIndex:t}){const n=this.#x(e),r=(n?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===r)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const i=this.#v("measures"),o=i.indexOf(e);-1!==o&&i.splice(o,1);const a=t-i.slice(0,t).filter(e=>this.#x(e)!==n).length,s=await this.removeMeasure(r,n);if(void 0===s)return;void 0!==await this.addMeasure(s,n,a)&&(i.splice(t,0,e),this.#y("measures",i))}getLabels(){return this.getMeasures().filter(e=>!e.qLibraryId&&!!e.qDef.qLabel).map(e=>e.qDef.qLabel)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,i=Array.isArray(this.properties.filters)?this.properties.filters:[],o={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Q_(),qTags:Array.isArray(t)?t:[],isNumeric:n};return i.push(o),this.properties.filters=i,this.properties.qHyperCubeDef.qContextSetExpression=U_(i),o}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#M(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=U_(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const n=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,n)=>e.includes(n));for(const e of n)this.#M(e);return t}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var sF={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Ae});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=y(c(r[0],i),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),p=c(r[1],i),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,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.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});i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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={},R=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(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 n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?o:e[t],e=e[n||t]}}),e}function k(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){k(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!k(e[r],t[r]))return!1;return!0}return e===t}D.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(i){var o=function(e){return e?I({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);k(o,a)||L(t,i)||(M(a)?r.push({op:"add",path:s,value:o}):P(o)&&P(a)?r=r.concat(D.generate(a,o,s)):R(o)&&R(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(k(t,i))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(D.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))}),Object.keys(e).forEach(function(i){M(t[i])&&!L(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})}),r},D.apply=function(e,t){t.forEach(function(t){var n,r,i=A(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(R(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(R(a)&&R(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[e]}),I(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=A(e,t.from);R(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(R(i)?i.splice(+o,1):delete i[o])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},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,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(i,!0)):Promise.resolve()};var T="accumulation";function j(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)return n[r]}function N(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(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(N(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(N(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(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=j(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=j(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=j(t,e);return o&&!o.disabled}};return n}};var z="movingAverage";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function $(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=r.showExcludedValues?w.getExcludedComp({modifier:r,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]:{},n={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 n=W(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=W(t,e);return n&&!n.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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(z))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):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]:{},n={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,n){var r=G(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e}),e})}},show:function(t){var n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(B))return!1;var o=G(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,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]:{},n={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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach(function(t){void 0===e[t]&&(e[t]=oe[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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},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=o(e,fe);return void 0!==t?t:o(e,pe)},getExpressionRef:function(e){return void 0!==o(e,fe)?fe:pe},getLibraryIdRef:function(e){return o(e,me)?me:he},getLibraryId:function(e){return o(e,me)||o(e,he)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(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",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,ye,o(e,ve)),n(e,xe,o(e,be)),n(e,Ce,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,ve,o(e,ye)),n(e,be,o(e,xe)),n(e,Se,o(e,Ce)),n(e,we,o(e,Ee)),o(e,Ie)&&o(e,De)&&n(e,Ie,o(e,De)),delete e.qDef.base)},isValid:function(e){var t=o(e,ye),n=o(e,xe);return void 0!==t||void 0!==n}};const Pe=Re;function Me(e){return Me="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},Me(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:je,getActiveModifier:Ne,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Le[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))}),i&&!o},ifEnableTotalsFunction:_e};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;ke[n.id]=ke[n.id]||{isFirstTime:!0};var u=ke[n.id].isFirstTime;if(ke[n.id].isFirstTime=!1,r&&"object"===Me(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=o(c,"qHyperCube.qMeasureInfo"),f=ke[n.id].lastReloadTime;if(ke[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),je({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);$e(r);var i=Qe(r);return Ye({model:n}).then(function(t){return Ke({libraryIds:i,model:n}).then(function(i){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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then(function(){var e=t()(!0,{},r);return Fe(r).forEach(function(e){return Te(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function qe(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),$e(i);var p=Qe(i);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!je({measures:n,properties:r}))return n.forEach(function(e){return Te(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ye({model:i,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then(function(i){n.forEach(function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(n)||Pe.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):Te(n)})})})}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)})})}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!Le[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function je(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:n,layout:r})})}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function _e(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&We(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(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,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!Le[e.type])&&(void 0===i[e.type]&&(i[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),i[e.type])})}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then(function(e){i.dimensionList=e});r.push(o);var a=t.app.getFieldList().then(function(e){i.fieldList=e});return r.push(a),Promise.all(r).then(function(){return i})}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),o.forEach(function(e){var t=n.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,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return i}):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach(function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var o=Be(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}}),o(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=o(e,n)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach(function(e){i[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach(function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),ke[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>$e});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},y=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var D=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},L=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},A=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},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,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},j=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,i.dimensions.length,D),l=I(a.min,i.dimensions.length,0);return{maxDimensions:I(o.max,s,D),minDimensions:I(o.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]}),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(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 R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(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),r.dimensions.added(e,n)})}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){o.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,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=_({exportFormat:t,initialProperties:r,hypercubePath:u}),v=o.getValue(r,u||"").qHyperCubeDef,y=o.getValue(g,u||"").qHyperCubeDef,b=j({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,R=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:R}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({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),M(g,t,r),m.qProperty=g;var P=o.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:P}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,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 n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(U(a,t,r,i),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 o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),p=o.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,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},he=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.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),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=o.getValue(d,"visualization"),f=o.getValue(d,"qHyperCubeDef.qDimensions",[]),h=o.getValue(d,"color.mode",""),m=o.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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(r)&&t[i].type[r]++,t[i].type.total++}}),t}(a);l.length?(o&&(t=l.filter(function(e){return e.type[o]>0}).sort(function(e,t){return t.type[o]-e.type[o]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(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,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Ce(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Ce(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Re="conditionalColoring",Pe="measures",Me="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Re,arrayName:Pe,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Me,arrayName:Pe,quarantineName:Re})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",je="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="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:je,itemPath:Fe}),Ee({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:_e,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:je,itemPath:Fe}),Ie({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:_e,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),r.default})()}(sF);var lF=kr(sF.exports);const uF="qHyperCubeDef.qMeasures",cF="measures",dF="qHyperCubeDef.qDimensions",pF="dimensions",fF="qDef.representation",hF="tableRepresentation",mF="qDef.conditionalColoring",gF="conditionalColoring",vF="qMiniChartDef",yF="miniChartDef",bF=e=>{lF.unquarantineArrayProp({properties:e,arrayPath:dF,itemPath:fF,arrayName:pF,quarantineName:hF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:fF,arrayName:cF,quarantineName:hF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:mF,arrayName:cF,quarantineName:gF}),lF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:vF,arrayName:cF,quarantineName:yF})},xF=e=>{lF.quarantineArrayProp({properties:e,arrayPath:dF,itemPath:fF,arrayName:pF,quarantineName:hF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:fF,arrayName:cF,quarantineName:hF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:mF,arrayName:cF,quarantineName:gF}),lF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:vF,arrayName:cF,quarantineName:yF})};function SF(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(i)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}const wF="qHyperCubeDef.qDimensions",CF="dimensions",EF="qOtherTotalSpec.qTotalMode",IF="totalMode",DF={quarantine(e){lF.quarantineArrayProp({properties:e,arrayPath:wF,quarantineName:IF,arrayName:CF,itemPath:EF})},unquarantine(e){lF.unquarantineArrayProp({properties:e,arrayPath:wF,quarantineName:IF,arrayName:CF,itemPath:EF})}};function RF(e){const t=SF(e);return(e,n,r,i)=>{const o=lF.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:i}),a=o.qProperty.qHyperCubeDef.qDimensions.length,s=o.qProperty.qHyperCubeDef.qMeasures.length;let l,u=o.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&XN(o,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=o.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],XN(o,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),o.qProperty.qLayoutExclude.quarantine&&delete o.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=o.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&XN(o,"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&&(lF.unquarantineProperty(o.qProperty,"noOfLeftDims"),lF.unquarantineProperty(o.qProperty,"excludedNoOfLeftDims "))}return lF.unquarantineProperty(o.qProperty,"rankedList"),lF.conditionalShow.unquarantine(o.qProperty),DF.unquarantine(o.qProperty),bF(o.qProperty),lF.unquarantineProperty(o.qProperty,"pivotTableIndentMode"),o}}function PF(e,t){const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,r=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const o=lF.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=o.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;XN(o,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",r),lF.quarantineProperty(o.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete o.properties.qHyperCubeDef.qNoOfLeftDims,lF.quarantineProperty(o.properties,"qHyperCubeDef.rankedList","rankedList"),delete o.properties.qHyperCubeDef.rankedList;const c=o.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,XN(o,"properties.qHyperCubeDef.qInterColumnSortOrder",u),XN(o,"data.0.interColumnSortOrder",u),o.properties.qLayoutExclude.quarantine&&delete o.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return lF.quarantineProperty(o.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),lF.quarantineProperty(o.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),lF.conditionalShow.quarantine(o.properties),DF.quarantine(o.properties),xF(o.properties),o}const MF=e=>({dimensions:{min:1,max:1e3,description(t,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(i)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),LF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let AF=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}({}),kF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const OF=e=>{switch(e?.type){case"url":return AF.Link;case"image":return AF.Image;case"indicator":return AF.Indicator;case"miniChart":return AF.MiniChart;default:return AF.Text}},qF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:i}=r.properties.qHyperCubeDef,o=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i)&&o.push({value:"image",translation:"Object.Table.Representation.Image"}),o}}),TF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>OF(e.qDef.representation)===AF.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,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:i,qDimensions:o,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;r?.indexOf(-1);const l=o?.indexOf(e)??1/0;return(r?.slice(0,i)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},jF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:qF({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>OF(e.qDef.representation)===AF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>OF(e.qDef.representation)===AF.Link&&e.qDef.representation?.urlPosition===kF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>OF(e.qDef.representation)===AF.Link&&e.qDef.representation?.urlPosition===kF.Attribute},...TF(n)}},NF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,i=!r?.("tableImages")&&t[AF.Image],o=!r?.("qMiniChartDef")&&t[AF.MiniChart],a=!r?.("tableIndicators")&&t[AF.Indicator],s=i&&t[AF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&i||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),o&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>OF(e.qDef.representation)===AF.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:o?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let _F=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),FF=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),zF=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),WF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const $F="image",HF=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let i=n.properties.qHyperCubeDef.qNoOfLeftDims??-1;r>-1&&r<i&&(i-=1);const o=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===o||o>=i},VF=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:MT.Auto,translation:"Common.Auto"},{value:MT.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===MT.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===MT.Percentage}}),BF=({key:e,translation:t,env:n})=>{const r=!n.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=>!r||"labelTextAlign"===e||t.qDef.representation?.type!==$F},[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&&(!r||"labelTextAlign"===e||t.qDef.representation?.type!==$F)}}},GF="TOTAL_OFF",UF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:FF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:FF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},YF="TOTAL_OFF",KF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:FF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:FF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:FF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},XF=e=>{const{translator:t,anything:n,flags:r}=e,i=(e=>{const{translator:t,anything:n}=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:GF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:GF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&HF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==GF&&HF(e,0,r)},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:UF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jF(e),...VF()}}}},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:UF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...NF(e,{[AF.Image]:!0,[AF.Indicator]:!0}),...VF()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return r.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?i:{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:YF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:YF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&HF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==YF&&HF(e,0,r)},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:KF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...jF(e),...VF()}},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:KF,...BF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...BF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...NF(e,{[AF.Image]:!0,[AF.ImagesInIndentMode]:!0,[AF.Indicator]:!0}),...VF()}},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"}}}}}},JF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,i){const o=r?.(e,t,i)??!1,a=i.theme.current(),s=n(a,o);return{color:"transparent"===s?"none":s}}}),ZF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},QF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,i,o)=>{const a=o.theme.current();return((e,t,n,r)=>{const i=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],a=Array.from(new Set([e,i,...o])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>ZF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Bj(r).filter(e=>!a.includes(e)).map(e=>ZF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),ez=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],tz=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,i)=>{const o=i.theme.current();return((e,t,n)=>{const r=t.fontSize,i=t.fontSizes??[],o=Array.from(new Set([e,r,...i])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...o.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>ZF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...ez.filter(e=>!o.includes(e)).map(e=>ZF(e,!1))];return[...a,...s.length>1?s:[]]})(t(o),o,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),nz=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:i,translation:o,disableNoneCallback:a})=>({component:"panel-section",translation:o??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:QF({ref:`${e}.fontFamily`,themeAccessor:t=>i(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:tz({ref:`${e}.fontSize`,themeAccessor:t=>i(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:JF(`${e}.fontColor`,void 0,t=>i(t,e,"color")??t.color)}},background:JF(`${e}.background`,"properties.background",(t,n)=>{const r=n?hj.WHITE:hj.TRANSPARENT;return i(t,e,"backgroundColor")??r},a)}}}}),rz=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:JF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:JF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),iz=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),oz="12px",az="Source Sans Pro, sans-serif",sz="600",lz=15e3,uz=4/3;let cz=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),dz=function(e){return e.Solid="solid",e.None="none",e}({});const pz={display:"flex",justifyContent:"center",alignItems:"center"},fz={borderStyle:"solid"},hz={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},mz={lineHeight:uz,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},gz=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),vz=(e,t)=>e>0?`${e}px ${dz.Solid} ${t}`:dz.None,yz=(e,t,n,r,i)=>{const o=Number(!t||i?.right),a=Number(!e||i?.bottom);return{borderRight:"rtl"!==r?vz(o,n):dz.None,borderBottom:vz(a,n),borderLeft:"rtl"===r?vz(o,n):dz.None,borderTop:dz.None}},bz=(e,t,n,r,i,o,a)=>{const s=yz(t,r,i,o,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=vz(2,i)),n||(s.borderLeft="rtl"!==o?vz(1,i):"none",s.borderRight="rtl"===o?vz(1,i):"none")),s},xz=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=vz(1,n)),t&&(r.borderRight=vz(1,n)),r},Sz=(e,t,n)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[n];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[n];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[n];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[n];default:return}},wz=(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:nz({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:Sz}),dimensionValueSection:nz({section:"dimensionValues",translator:e,flags:t,getThemeValue:Sz}),measureValueSection:nz({section:"measureValues",translator:e,flags:t,getThemeValue:Sz}),measureLabelSection:rz({section:"measureLabels",getThemeValue:Sz}),totalValuesSection:rz({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:Sz}),nullValuesSection:rz({section:"nullValues",fallbackBackground:cz.NullValueBackground,getThemeValue:Sz}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:iz("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:iz("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:JF("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??cz.DividerLight),divider:JF("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??cz.DividerDark),background:JF("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??cz.Transparent)}}}}}}]}),Cz=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}}},Ez=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[wz(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:MT.Auto,translation:"Common.Auto"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...Cz(t)}}),Iz="auto",Dz={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:Iz,translation:"Object.Table.SortingInSearch",options:[{value:Iz,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Rz(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:XF(e),sorting:Dz,addons:LF,settings:Ez(t,n)}}}function Pz(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:Rz(e),importProperties:RF(e),exportProperties:PF,exploration:W_(e),data:MF(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new aF(t,e.translator):void 0}}const Mz=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Lz(e,t){return P(()=>e,t)}const Az={},kz=e=>{const t=P(()=>({current:Az}),[]);return t.current=t.current===Az?e:t.current,t},Oz=e=>!!e&&0===Pj(e).a,qz="#grid",Tz=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},jz=(e,t,n,r,i)=>{const o=Tz(".qv-object .qv-inner-object",n),a=Tz(".qv-panel-sheet",n),s=Tz(qz,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,i=t?.bgColor?.useColorExpression;if(i&&n)return u_(n);if("none"===r)return"transparent";if(void 0===r)return;const o=Pj(r);return o.setAlpha(t?.bgColor?.color?.alpha??o.a),o.getRGBA()})(e),u=r?.(t),c=i?.(t),d=l||u||o||c,p=Oz(d),f=!Oz(h=p?s:d)&&a_(h,hj.TEXT,hj.DARK_MODE_TEXT)===Cj(hj.DARK_MODE_TEXT);var h;const m=((e,t,n,r=hj.WHITE)=>e&&!Oz(e)?e:Oz(t)?n&&!Oz(n)?n:r:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},Nz=(e,t,n,r)=>{const i=O(),o=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=A([]);return k(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(qz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return P(()=>({...i,background:jz(e,i,t,n,r)}),[i.name(),t,n,r,e,o])};function _z(e,t){const n=P(()=>({isLoading:!0}),t),[r,i]=L(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[r,n.isLoading,i]}const Fz=3,zz=/\n/g;function Wz(e,t,n){let r=0,i=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=i;){const o=Math.floor((r+i)/2),a=e.slice(0,o),s=e.slice(0,o-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(o-1)||null;if(l===t)return e.slice(o)||null;l<t?r=o+1:i=o}return null}function $z({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i){const{maxNbrLinesOfText:o=Fz,allowLineBreaks:a=!0}=i??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=v(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i)=>{const{maxNbrLinesOfText:o=Fz,allowLineBreaks:a=!0}=i??{};return()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n} ${r} ${e} ${t}`;const s=i.measureText.bind(i),l=JN(e=>{if(void 0===e)return 0;if(a){const t=e.split(zz).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(zz," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=JN(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(zz):[e];let i=0;for(const e of r){let n=e;do{i+=1,n=Wz(n,t,u)}while(null!==n&&i<o);if(i>=o)break}return i},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}})({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:o,allowLineBreaks:a})(),[n,r,e,t,o,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Hz,Vz=E;Hz=Vz.createRoot,Vz.hydrateRoot;const Bz="Source Sans Pro, sans-serif";function Gz(e,t){const[n,r]=m(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Uz={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 Yz=({translator:e})=>(v(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Uz).forEach(t=>{e.add(Uz[t])})}}(e)},[e]),e),Kz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Xz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Jz=Sl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...Kz},"&::-moz-range-track":{...Kz},"&::-ms-track":{...Kz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Xz},"&::-moz-range-thumb":{...Xz},"&::-ms-thumb":{...Xz},"&: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"}})),Zz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:i,updateWidthCallback:o,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=Yz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=r&&!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}};Gz(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,PT.PixelsMin);h.current.columnWidth=t,o(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:MT.Pixels,pixels:h.current.columnWidth};a(e)}u?.(!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=>{c_(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=>{c_(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!r&&s?e=>{if(e.key===DT.Left||e.key===DT.Right){c_(e);const t=5,n=e.key===DT.Left?t:-t,r="rtl"===p?n:-n;u?.(!0),x(h.current.columnWidth+r)}else e.key===DT.Space||e.key===DT.Enter?(c_(e),s(e),u?.(!1),S()):e.key===DT.Esc&&(c_(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,R=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return fo.jsx(Jz,{style:y,hoverColor:i,isLastColumn:n,className:RT,"data-testid":RT,onMouseDown:e=>{c_(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:MT.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(c_(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":R,"aria-valuemin":PT.PixelsMin,"aria-valuemax":PT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Qz=x((e,t)=>fo.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:fo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),eW=Sl(sc,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),tW=Sl(Qz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),nW=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),rW=Sl(td)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),iW=Sl(Rp)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),oW=Sl(Rp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"})),aW=Sl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),sW=Sl("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),lW=Sl(Cu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),uW=Sl(Kd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),cW=x((e,t)=>fo.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:fo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),dW=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?dW(t):t:e.parentElement?.children?.[0]},pW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?pW(t):t},fW=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===DT.Down||t===DT.Up){const n=e=>t===DT.Down?dW(e):pW(e);e.preventDefault(),e.stopPropagation();let i=n(r);for(;i;){if("true"!==i.ariaDisabled){i.focus();break}i=n(i)}}},hW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let mW={};const gW=({autoFocus:e,id:t,onClick:r,itemTitle:i,icon:o,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=n.useRef(null),v=f(e=>{e.stopPropagation(),h(!1)},[h]);return fo.jsxs(fo.Fragment,{children:[fo.jsxs(oW,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),mW={}),s?.length&&(h(!0),mW[i]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:fW,children:[u?fo.jsx(aW,{direction:c,isPagination:d}):null,fo.jsxs(sW,{children:[fo.jsx(uW,{direction:c,isPagination:d,children:fo.jsx(o,{})}),fo.jsx(lW,{variant:"body2",children:i})]}),s?.length?fo.jsx(cW,{}):null]},t),s?.length?fo.jsx(xW,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:hW(s,mW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},vW=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&fo.jsx(iW,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>fo.jsx(gW,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),yW=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((i,o)=>[vW({menuGroup:i,isSubMenu:t,direction:n,isPagination:r}),o<e.length-1?fo.jsx(rW,{"data-testid":"group-divider",variant:"middle"}):void 0]),bW={appear:0,enter:0,exit:0},xW=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:i,anchorOrigin:o,isSubMenu:a,direction:s,isPagination:l})=>r.length?fo.jsx(nW,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:bW,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...o?{anchorOrigin:o}:{},...i?{transformOrigin:i}:{},dir:s,children:yW({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,SW=(e,t)=>e.some(e=>t[e]>0),wW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},CW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[i,o]=m(null),[a,s]=m(wW);return Gz(()=>{e||(s(wW),o(null))},[e]),d(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let i,a=!1;const l=()=>{i&&r.destroySessionObject(i)};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,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};i=c.qInfo?.qId,a?l():(o(u),d&&s((e=>({canSelectAll:SW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:SW(["qSelected"],e),canSelectPossible:SW(["qOption"],e),canSelectAlternative:SW(["qAlternative"],e),canSelectExcluded:SW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:i,selectionActionsEnabledStatus:a}},EW=x((e,t)=>fo.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:fo.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"})})),IW=x((e,t)=>fo.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:fo.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"})})),DW=x((e,t)=>fo.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:fo.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"})})),RW=x((e,t)=>fo.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:fo.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"})})),PW=x((e,t)=>fo.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:fo.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"})})),MW=x((e,t)=>fo.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:fo.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"})})),LW=x((e,t)=>fo.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:fo.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"})})),AW=x((e,t)=>fo.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:fo.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"})})),kW=x((e,t)=>fo.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:fo.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"})})),OW=x((e,t)=>fo.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:fo.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"})})),qW=x((e,t)=>fo.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:fo.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"})})),TW=x((e,t)=>fo.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:fo.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"})})),jW=x((e,t)=>fo.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:fo.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 NW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const _W="/qListObjectDef",FW=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:i,interactions:o,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[NW.Sorting]){const{isActivelySorted:n,sortDirection:o}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let i=!n&&!e||"D"===t,o=!n&&!e||"A"===t;return r&&(i=!1,o=!1),{ascendingEnabled:i,descendingEnabled:o}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),r(!1)},icon:EW,enabled:a,isActive:!!n&&"A"===o,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),r(!1)},icon:RW,enabled:s,isActive:!!n&&"D"===o,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:LW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:b_,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&o?.select){const i=[];n[NW.Searching]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:AW,enabled:!0}]}]),!e.isLocked&&n[NW.Selections]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:jW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(_W))},icon:kW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(_W))},icon:TW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(_W))},icon:OW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(_W))},icon:qW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(_W))},icon:IW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:MW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:PW,enabled:!0}]}]),i.length>0&&f.push(...i)}return n[NW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:DW,enabled:!0}]}]),f},zW=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:i,interactions:o,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=CT})=>{const x=l(null),S=Yz({translator:i}),{qLibraryId:w,fieldId:C,headTextAlign:E}=r,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:R}=CW({open:e,headerData:r,app:I,qStateName:d?.qStateName}),P=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:r}),M=(({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:i,onPopoverClose:o})=>f(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===i?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:i,onPopoverClose:o})}},[e,t,n,r?.qStateName,i,o]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f(e=>{e.stopPropagation(),t(!1)},[t]),A=f(e=>{e.stopPropagation(),t(e=>!e)},[t]);return o.active?fo.jsxs(eW,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?fo.jsx(tW,{height:b,className:ET,"data-testid":ET,isInteractionsActive:o.active??!1,children:fo.jsx(Qz,{})}):null,fo.jsx(xW,{open:e,anchorEl:!1===y?x.current:n.current,onClose:L,menuGroups:FW({headerData:r,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:M,interactions:o,fieldInstance:D,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},WW=e=>e.isDark?{background:e.color,borderColor:hj.DARK_MODE_BORDER,color:hj.DARK_MODE_TEXT,disabledColor:hj.DARK_MODE_DISABLED,iconColor:hj.DARK_MODE_TEXT}:{background:e.color,borderColor:hj.BORDER_MEDIUM,color:hj.TEXT,disabledColor:hj.DISABLED},$W=Sl(sc,{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}`})),HW=Sl(lf,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),VW=Sl(vc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),BW=Sl(Cu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),GW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:i=!0})=>{const o=v(()=>WW(r.background),[r]);if(!n.active)return null;const a=i?fo.jsx($W,{footerStyle:o,children:e}):null;return t?E.createPortal(e,t):a},UW=u({}),YW=()=>h(UW),KW=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v(()=>WW(p.background),[p]),x=i?i.getBoundingClientRect().width:h.width,S=Yz({translator:d}),w=v(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,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:g}),[t,n,r,i,o,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return fo.jsx(UW.Provider,{value:w,children:e})};let XW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),JW=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 ZW=x((e,t)=>fo.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:fo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),QW=x((e,t)=>fo.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:fo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),e$=x((e,t)=>fo.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:fo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),t$={FirstPage:QW,PreviousPage:ZW,NextPage:cW,LastPage:e$,FirstPageRTL:e$,PreviousPageRTL:cW,NextPageRTL:ZW,LastPageRTL:QW},n$=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:i,handleChangePage:o,translator:a,interactions:s,tabIndex:l}=YW(),u=n.concat("rtl"===r?"RTL":""),c=t$[u];return{styledProps:{footerStyle:i,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{o(t)}},IconComponent:c}},r$=()=>{const{pageInfo:e,width:t,interactions:n,visibilityThreshold:r}=YW(),i=0===e.page,{IconComponent:o,styledProps:a}=n$({type:XW.FirstPage,disabledCondition:i,pageNumber:0});return t<=(r?.firstPage||JW.FirstPage)?null:fo.jsx(VW,{...a,disabled:!n.active,children:fo.jsx(o,{height:CT})})},i$=(e,t,n=!1)=>{n&&e.key===DT.Tab&&!e.shiftKey&&(c_(e),((e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)})(e.target,t,!1))},o$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o,visibilityThreshold:a}=YW(),s=e.page>=n-1,{IconComponent:l,styledProps:u}=n$({type:XW.LastPage,disabledCondition:s,pageNumber:n-1}),c=t.enabled?e=>{i$(e,t,r)}:void 0;return i<=(a?.lastPage||JW.LastPage)?null:fo.jsx(VW,{...u,onKeyDown:c,disabled:!o.active,children:fo.jsx(l,{height:CT})})},a$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o}=YW(),a=e.page>=n-1,{IconComponent:s,styledProps:l}=n$({type:XW.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>JW.FirstPage&&i>JW.LastPage)&&t.enabled?e=>{i$(e,t,r)}:void 0;return fo.jsx(VW,{...l,onKeyDown:u,disabled:!o.active,children:fo.jsx(s,{height:CT})})},s$=()=>{const{pageInfo:e,interactions:t}=YW(),n=0===e.page,{IconComponent:r,styledProps:i}=n$({type:XW.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return fo.jsx(VW,{...i,disabled:!t.active,children:fo.jsx(r,{height:CT})})},l$=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:i}=YW(),{page:o,rowsPerPage:a}=n;if(t<=(i?.displayedRowsLabel||JW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return fo.jsx(BW,{variant:"caption",dir:"ltr",children:s})},u$=({name:e,value:t,options:n,handleChange:r})=>{const{layout:i,footerStyle:o,translator:a,tabIndex:s,interactions:l}=YW(),u=i.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 fo.jsxs(fo.Fragment,{children:[fo.jsxs(BW,{variant:"caption",id:p,children:[c,":"]}),fo.jsx(HW,{footerStyle:o,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},c$=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:i,visibilityThreshold:o}=YW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(o?.rowsPerPage||JW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=fo.jsx(fo.Fragment,{children:e.rowsPerPageOptions.map(e=>fo.jsx("option",{value:e,children:e},e))});return fo.jsx(u$,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{i?.(+e.target.value)}})},d$=1e3,p$="…",f$=({totalPages:e,page:t})=>{const n=Math.min(e,d$),r=n<e&&t>500,i=r?Math.min(500+t,e):n,o=r?Math.max(0,i-d$):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+o;return fo.jsx("option",{value:t,children:t+1},t)});return o>0&&a.unshift(fo.jsx("option",{value:p$,disabled:!0,children:p$},"startMoreOptions")),i<e-1&&a.push(fo.jsx("option",{value:p$,disabled:!0,children:p$},"endMoreOptions")),fo.jsx(fo.Fragment,{children:a})},h$=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:i}=YW(),{page:o}=e;if(t<=(i?.selectPage||JW.SelectPage))return null;const a=fo.jsx(f$,{totalPages:n,page:o});return fo.jsx(u$,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var m$=b(e=>fo.jsxs(KW,{...e,children:[fo.jsx(c$,{}),fo.jsx(h$,{}),fo.jsx(l$,{}),fo.jsx(r$,{}),fo.jsx(s$,{}),fo.jsx(a$,{}),fo.jsx(o$,{})]}));const g$=e=>fo.jsx(GW,{...e,children:fo.jsx(m$,{...e})}),v$=u({}),y$=()=>h(v$),b$=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i,children:o})=>{const a=v(()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i}),[e,t,n,r,i]);return fo.jsx(v$.Provider,{value:a,children:o})},x$=u({}),S$=()=>h(x$),w$=({app:e,model:t,theme:n,embed:r,keyboard:i,translator:o,interactions:a,env:s,children:l})=>{const u=v(()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:i,env:s,translator:o}),[e,a,t,r,n,i,s,o]);return fo.jsx(x$.Provider,{value:u,children:l})},C$=u({}),E$=()=>h(C$),I$=({children:e,...t})=>fo.jsx(C$.Provider,{value:t,children:e}),D$=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:i,height:o}=(()=>{const{theme:e,translator:t}=S$(),{layoutService:n}=E$(),r=e.getStyle("","","fontFamily")??az;return n.hasData?n.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:r,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:r,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:fo.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:i,width:"100%",height:o},children:fo.jsx("span",{style:{...mz,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},R$="/qHyperCubeDef",P$=-1,M$="PSEUDO-DIM",L$=e=>e===P$?M$:(({cId:e})=>e??Q_())(e),A$=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===P$?n.columnWidthLocation=_F.Measures:n.isLeftDimension?n.columnWidthLocation=_F.Dimension:t.at(-1)===P$?n.columnWidthLocation=_F.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=_F.Pivot))},k$=(e,t,n,r)=>{const i=L$(n),o=e.getDimensionInfoIndex(n),a=e.isLeftDimension(o);return n===P$?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_F.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:n.qFallbackTitle??"",qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:n.qLocked??!1,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===kT.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:_F.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},O$=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let i=r;var o;n.length>0&&(i=(o=r).at(-1)===P$?o.slice(0,-1):o);const a=i.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return n.forEach((n,r,i)=>{const o=r===i.length-1;l[a-1][r]=k$(e,t,n,o)}),i.forEach((n,r,i)=>{const o=r===i.length-1;l[r][s-1]=k$(e,t,n,o)}),l},q$=(e,t,n,r)=>{const i=((e,t,n,r)=>{let i;return i=0===n.length||n.includes(P$)?O$({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map((t,n)=>e.map(e=>e[n])))(O$({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,n)=>{Array.isArray(t)?t.forEach((t,n)=>{A$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}):A$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}),i})(e,t,n,r);return{data:i,size:{x:i[0]?.length??0,y:i.length}}};var T$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,i="",o=!1;-1===n?r=e:(r=e.slice(0,n),i=e.slice(n+1),o=!0),t.push(function(e,t,n){return{key:N$(e),value:N$(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,i,o))}),t}},j$=T$;function N$(e){try{return decodeURIComponent(e)}catch{return e}}function _$(e){if(!(this instanceof _$))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>j$.fromSearchString(t.search)}})}function F$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}_$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},_$.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=F$(t.key),t.value?n+=`=${F$(t.value)}`:n+=t.useEqualSign?"=":"";return n};var z$=_$;var W$,$$=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}},H$=class{decode(e){let t="";const n=new $$(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}},V$=e=>e>=0&&e<=1114111,B$=e=>e.match(/[\s]/),G$=class extends H${decodeCharacter(e){e.mark();const t=e.next();let n,r,i;if(null==t||"\\"!==t)return e.reset(),null;const o=e.next();if(null==o)return e.reset(),null;switch(o){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(o,16))return o;for(n=o,r=0;r<5&&(i=e.next(),null!=i&&!B$(i));r++){if("NaN"===parseInt(i,16)){e.pushback(i);break}n+=i}const a=parseInt(n,16);return V$(a)?String.fromCharCode(a):"�"}},U$=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},Y$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let i,o;if(t.length===n)return o=this._value,this.setValue(r),o;const a=t.charAt(n);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return U$.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return U$.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||U$.newInstanceIfNeeded(e,t,this._value)}},K$=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 Y$);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},X$=(()=>{const e=[],t=[],n=new K$;let r,i,o;for(r in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="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["&notin"]="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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(o=t[i].toLowerCase().substr(1),n.put(o,String.fromCharCode(i)));return n})(),J$=class extends H${decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,i="";for(t=Math.min(e.remainder().length,X$.getMaxKeyLength()),r=0;r<t;r++)i+=e.next().toLowerCase();const o=X$.getLongestMatch(i);if(null==o)return null;for(e.reset(),e.next(),t=o.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),o.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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&V$(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&V$(r)?String.fromCharCode(r):null}},Z$=class extends H${decodeCharacter(e){e.mark();const t=e.next();let n,r,i,o;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)i=e.nextHex(),null!=i&&(n+=i);return 2===n.length&&(o=parseInt(n,16),V$(o))?String.fromCharCode(o):(e.reset(),null)}},Q$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,eH=5e6,tH=5e5,nH=(e,t)=>{const{maxByteSizeSvg:n=tH,maxByteSizeImage:r=eH}=t??{},{mimeType:i,encoding:o,data:a}=(e=>{const[,t,n,r]=Q$.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(i,o,a);return"image/svg+xml"===i?s<=n:s<=r};"undefined"!=typeof document&&(W$=document.createElement("div"));var rH=Array.prototype.indexOf,iH=[",",".","_"," "],oH=[",",".","-","_"," "],aH={width:["%"],height:["%"]},sH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},lH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":sH.image,"background-color":sH.color,"border-color":sH.color,"border-image":sH.image,color:sH.color,icon:sH.image,"list-style-image":sH.image,"outline-color":sH.color},uH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function cH(e,t,n){let r;if(t){if(rH)return rH.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function dH(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return W$.appendChild(n),t=W$.innerHTML,W$.removeChild(n),t}function pH(e,t,n){let r,i,o,a,s,l,u,c,d;for(e=hH(e).toLowerCase(),t=hH(t),o=0;o<uH.attr_name.length;o++)if(e.match(uH.attr_name[o]))throw new Error(`Unsafe attribute name used: ${e}`);for(o=0;o<uH.attr_val.length;o++)if(t.toLowerCase().match(uH.attr_val[o]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=aH[e],r||(r=oH),i="",!n){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");i+=s}i+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&cH(u,r)<0?(d=c.toString(16),i+=`&#x${d};`):i+=u;return n||(i+='"'),i}function fH(e,t,n){let r,i,o,a,s,l,u,c,d,p;if(e=hH(e).toLowerCase(),t=hH(t),cH(e,uH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<uH.css_val.length;r++)if(t.toLowerCase().indexOf(uH.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(i=lH[e],i||(i=sH.default),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property 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]/)&&cH(u,i)<0?(d=c.toString(16),p="000000".substr(d.length),o+=`\\${p}${d}`):o+=u;return o}function hH(e,t){let n,r,i,o,a=!1;if(null===e)return null;n=e,r=e,i=0;const s=[new J$,new Z$,new G$];for(;!a;){r=n;for(let e=0;e<s.length;e++)o=s[e].decode(n),o!==n&&(i++,n=o);r!==n||(a=!0)}if(t&&i>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}var mH=[];for(let e=0;e<255;e++)mH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var gH={html:e=>dH(e.unsafe),css(e){let t,n=[];const r=[],i={};let o="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=fH(t,n[t],!0),o+=fH(t,n[t],!0),i[t]=r[t]);return e.map?i:o},attr(e){let t=[];const n=[],r={};let i="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=pH(e,t[e],!0),i+=pH(e,t[e],!0),r[e]=n[e]);return e.map?r:i}};function vH(e,t){throw new Error(t)}var yH={canonicalize:hH,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,n;const r=arguments[0]||{};let i=1;const o=arguments.length;for(;i<o;i++)if(null!=(e=arguments[i]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(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?gH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&vH(this,"Invalid parameter type"),gH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&vH(this,"Invalid parameter type"),gH.attr(e)):void vH(this,"Invalid parameter type")},encodeForAttr:pH,encodeForAttr2:function(e){return pH("nonsens",e,!0)},encodeForCSS:fH,encodeForHref:function(e){hH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new z$(e),n=z$.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+z$.encodeSearchParams(r)+t.hash;const i=decodeURI(e).toLowerCase();if(-1!==i.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==i.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,i,o,a,s;for(t||(t=iH),s="",n=0;n<e.length;n++)i=e.charAt(n),o=e.charCodeAt(n),cH(i,t)>=0||null==mH[o]?s+=i:(r=o.toString(16),o<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:dH,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=hH(t).toLowerCase():vH(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:nH,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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const bH=(e,t)=>t.qAttrExps?.qValues?.[e],xH=(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"}}},SH=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:i,imageBox:o,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!yH.isSafeDataURL(t))?{type:AF.Text,url:void 0,text:e,labelStructure:i}:{type:AF.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:xH(r,a),labelStructure:i,imageBox:o},wH=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:AF.Text,text:r};const{minY:i,maxY:o}=((e,t,n)=>{const r="global"===t.yAxis?.scale,i="zeroCenter"===t.yAxis?.position,o=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(i){const e=Math.max(Math.abs(o),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,o),maxY:Math.max(0,a)}:{minY:o,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:i,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:AF.MiniChart,text:r,miniChart:a}},CH=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=r?.qValues?.[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return n?.urlPosition===kF.Attribute?void 0:n?.urlLabel},EH=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:AF.Link,url:yH.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:AF.Text,url:void 0,text:t,labelStructure:e}}},IH=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:i,miniChartOnMeasure:o,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=OF(t),d=s(e);return c===AF.Image&&u[AF.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,i,o)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=bH(n.imageUrl??-1,e)?.qText;return o&&(o.maskedValue=t??""),SH({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}if("label"===l){const t=o?o.originalValue:r;if(-1===n.imageLabel)return SH({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i});const l=bH(n.imageLabel??-1,e)?.qText??r;return SH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}return{type:AF.Text,url:void 0,labelStructure:o,text:r}})(e,t,n,d,l,a):c===AF.Link?((e,t,n,r,i)=>{const{urlPosition:o}=t??{};if(o===kF.Attribute){const o=CH(n.url??-1,e,t);return EH({labelStructure:r,text:i||o||"",url:o})}if(o===kF.Dimension){const o=CH(n.urlLabel??-1,e,t)||i;return r&&(r.maskedValue=o),EH({text:o,labelStructure:r,url:r?.originalValue??i})}return{type:AF.Text,url:void 0,text:i,labelStructure:r}})(e,t,n,a,d):c===AF.Indicator&&u[AF.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:AF.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,i,d):c===AF.MiniChart&&u[AF.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?wH(e,t,o,d):{type:AF.Text,url:void 0,text:d,labelStructure:a}},DH=(e,t)=>{const n=t.qAttrExps,r=n?.qValues?.[e?.cellForegroundColor??-1]?.qText,i=n?.qValues?.[e?.cellBackgroundColor??-1]?.qText,o=i?u_(i):null,a=r?u_(r):null,s=((e,t)=>e||!t?null:a_(t))(a,o);return{color:s??a,background:o}},RH=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:RH(e,t),e),PH=(e,t,n,r,i,o)=>{const a=i?o.rowsPerPage-n:lz-r;let s=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%o.rowsPerPage;s=e.qDown+n}return Math.min(a,RH(s,e))},MH=({node:e,parent:t,root:n,x:r,y:i,pageY:o,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!==P$){if(t){const t=OF(e.representation);return t===AF.Link||t===AF.Image?e.representation:{type:AF.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:i,parentOrRootOriginalValue:o})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=i===AF.Link?"P"===e.qType?o:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:OF(v),parentOrRootOriginalValue:(t||n)?.representation?.labelStructure?.originalValue??""}),b=IH({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[AF.Image]:!0,[AF.Indicator]:!0}}),x={id:Q_(),ref:e,x:r,y:i,pageX:r,pageY:o,mainAxisPageCoord:u?o:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:PH(e,i,o,r,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:DH(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},LH=(e,t,n,r,i,o,a,s,l)=>{const{isIndentModeEnabled:u}=i;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=i.leftDimensionInfoIndexes.indexOf(P$);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=n.qTop-r.page*r.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=n.qTop+c-f.qUp;if(u){if(i.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=i.getNullValueText()),m<g&&(y.suffix=i.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=i.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?MH({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:i,dimensionInfo:o[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:r,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},AH=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,n,r)=>{const i=r.at(n+1);e.distanceToNextCell=i?i.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},kH=(e,t)=>{const n=e[0],r=n?Object.values(n):[],i=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,o=n?.[i],a=r.at(-1);return o?.isTotal?o.isLeafNode?o.mainAxisPageCoord:o.mainAxisPageCoord+o.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},OH=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:i,attrExprInfoIndexes:o,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=LH(e.grid,l,u,n,r,i,o,a,s);AH(c,n.rowsOnCurrentPage);const d=kH(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},qH=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const i=[...t];return n.forEach((t,n)=>{t.forEach((t,o)=>{const a=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+o;Array.isArray(i[a])||(i[a]=[]);const l="U"===t.qType;i[a][s]=i[a][s]??{id:Q_(),ref:t,isNull:l}})}),i},TH=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:i}=t;return r?.length?qH({qArea:i,prevData:e,pivotValuePoints:r,pageInfo:n}):e},jH=(e,t,n,r,i,o,a,s,l,u)=>{const{isIndentModeEnabled:c}=r;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=n.qLeft+d-f.qUp,v=e[h][g]??MH({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:r,dimensionInfo:i[h],attrExprInfoIndex:o[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},NH=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:i,headerRows:o,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=jH(e.grid,u,c,n,r,i,o,a,s,l);AH(d,n.size.x);const p=kH(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},_H=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),FH=(e,t)=>{const{env:n}=S$(),{direction:r}=y$(),{layoutService:i,effectivePropertiesService:o}=E$(),{qPivotDataPages:a,pageInfo:s}=y$(),[l,u]=m(null),c=((e,t,n)=>v(()=>({left:e.map(_H),top:t.map(_H),measures:n.map(_H)}),[n,e,t]))(e,t,i.visibleMeasureInfo),d=v(()=>q$(i,o,t,e),[i,o,t,e]),p=f(()=>a.slice(1).reduce((e,t)=>TH({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:n,qArea:r}=e;return qH({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(a[0],s)),[a,s]),h=f(()=>a.slice(1).reduce((e,o)=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r}),((e,t,n,r,i,o,a,s)=>{const{qArea:l,qTop:u}=e,c=jH([],u,l,t,n,r,i,o,a,s);AH(c,t.size.x);const d=kH(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],i,t,c.top,d.size.y,n,s,r)),[a,i,t,c.top,d.size.y,n,s,r]),g=f(()=>a.slice(1).reduce((t,o)=>OH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}),((e,t,n,r,i,o,a)=>{const{qArea:s,qLeft:l}=e,u=LH([],l,s,n,t,r,i,o,a);AH(u,n.rowsOnCurrentPage);const c=kH(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],i,s,e,c.left,n,r)),[a,i,s,e,c,n,r]),[y,b]=m(()=>p()),[x,S]=m(()=>h()),[w,C]=m(()=>g());Gz(()=>{b(p())},[p]),Gz(()=>{S(h())},[h]),Gz(()=>{C(g())},[g]),Gz(()=>{l&&l.forEach(o=>{b(e=>TH({prevData:e,dataPage:o,pageInfo:s})),S(e=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r})),C(t=>OH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}))})},[l]);const E=f(e=>{u(e)},[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},zH=Math.sqrt(1e4),WH=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/PT.PixelsMin)}),$H=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/zH),r=Math.ceil(e.qHeight/zH);for(let i=0;i<n;i++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+i*zH,qTop:e.qTop+n*zH,qWidth:Math.min(zH,e.qWidth-i*zH),qHeight:Math.min(zH,e.qHeight-n*zH)});return t};function HH({nextPageHandler:e}){const{model:t}=S$(),{pageInfo:n}=y$(),{layoutService:r}=E$(),i=(e=>{const t=l(e);return t.current=e,t})(n.page),o=t,a=f(async(e,t)=>{await(o?.collapseLeft(R$,e,t,!1))},[o]),s=f(async(e,t)=>{await(o?.collapseTop(R$,e,t,!1))},[o]),u=f(async(e,t)=>{await(o?.expandLeft(R$,e,t,!1))},[o]),c=f(async(e,t)=>{await(o?.expandTop(R$,e,t,!1))},[o]),d=f(async t=>{if(o?.getHyperCubePivotData&&0!==t.length)try{const r=await o.getHyperCubePivotData(R$,t.reduce((e,t)=>[...e,...$H(t)],[]));i.current===n.page&&e(r)}catch(e){console.error(e)}},[o,e,n,i]),p=f((e,{dimensionInfoIndex:n,isLeftColumn:i,x:o=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case _F.Dimension:c=[{qPath:`${R$}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case _F.Measures:if(i)c=s.map((e,t)=>({qPath:`${R$}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=r.getMeasureInfoIndexFromCellIndex(o);c=[{qPath:`${R$}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case _F.Pivot:c=[{qPath:`${R$}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}});t?.applyPatches(d,!0)},[t,r]),h=f(async e=>{await(o?.applyPatches([{qPath:`${R$}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))},[o,r]);return v(()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d}),[a,s,u,c,p,h,d])}const VH=(e,t,n)=>(r,i)=>{if("P"===r)return P$;const o=t[n+i];return e[o]},BH=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach(e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)})};return n(e),t},GH=u({}),UH=()=>h(GH),YH=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=E$(),{qPivotDataPages:r}=y$();return v(()=>{const i=BH(r[0]?.qLeft??[]),o=BH(r[0]?.qTop??[]);return{visibleLeftDimensionInfo:i.map(VH(n,t,0)),visibleTopDimensionInfo:o.map(VH(n,t,e))}},[n,t,e,r])})(),{headersData:r,measureData:i,topDimensionData:o,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=FH(t,n),u=HH({nextPageHandler:l}),c=v(()=>({gridSectionsData:{headersData:r,topDimensionData:o,leftDimensionData:a,measureData:i},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:u}),[t,n,r,i,o,a,s,u]);return fo.jsx(GH.Provider,{value:c,children:e})},KH=20,XH=18,JH=.75,ZH=e=>-1!==e&&e?.representation?.type===AF.Image,QH=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&n.type===AF.Image,eV=e=>void 0===e?sz:e,tV=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const n=+e;return n>=0?n:t}return t},nV=e=>tV(e,PT.PixelsDefault),rV=(e,t)=>tV(e,PT.PercentageDefault)*t/100,iV=(e,t,n)=>{switch(t?.type){case MT.Pixels:return nV(t.pixels);case MT.Percentage:return rV(t.percentage,e);case MT.FitToContent:case MT.Auto:default:return n}},oV=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:i,measureTextForHeader:o,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===M$)return e+0;const v=QH({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:AF.Text}})?g.width+8+4:r(f),y=!n.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(i&&o&&a){b=o("- ")+a}return Math.max(e,24*l+XH+y+v+b)},0),aV=(e,t,n)=>e.reduce((e,r)=>{const i=(n?0:1)*XH;return Math.max(e,i+t(r.qFallbackTitle??""))},0),sV=(e,t,n,r)=>{const i=100*e/t,o=r*JH*(i/100),a=i/100*+n;return Math.min(a,o)},lV=(e,t,n,r)=>r*(+n/100)*(100*e/t/100),uV=(e,t)=>e.some(e=>e>=t*JH),cV=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:i,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=i*JH,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,oV({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,aV(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex(e=>e.id===M$),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:i}=e.indentModeColumnWidth;return i===MT.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+XH+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,aV(e.visibleMeasureInfo,l,!0));g=Math.min(d,oV({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-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;o&&o<=d&&(x.type=MT.Pixels,x.pixels=o);return[MT.Pixels,MT.Percentage].includes(x.type)||uV(c,i)?((e,t,n,r)=>{let i=e[0],o=e[1],a=[];const s=e.reduce((e,t)=>e+t,0),{type:l,pixels:u,percentage:c}=t,d=tV(u,PT.PixelsDefault),p=tV(c,PT.PercentageDefault),f=uV(e,n);l===MT.Auto&&f&&(i>o?i-=o:o-=i),l===MT.Pixels&&d&&(i=sV(e[0],s,d,n),o=sV(e[1],s,d,n)),l===MT.Percentage&&p&&(i=lV(e[0],s,p,n),o=lV(e[1],s,p,n));let h=0;o<=r&&(h=i-5,h>0&&(i-=h,o+=h)),h=o-r,h>0&&(i+=h,o-=h),a=[i,o];const m=a.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:a,leftGridWidth:m,leftGridFullWidth:m}})(c,x,i,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function dV({tableWidth:e}){const t=e*JH,{styleService:n,layoutService:r,effectivePropertiesService:i}=E$(),{translator:o}=S$(),{gridSectionsData:{headersData:a}}=UH(),{measureText:s}=$z(n.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:u}=$z({...n.dimensionValues,fontWeight:eV(n.dimensionValues.fontWeight)}),{measureText:c}=$z({...n.dimensionValues,...n.measureLabels}),d=f((n,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=r,v=(t=0)=>h.reduce((n,{qFallbackTitle:r,columnWidth:i})=>{const o=c(r)+XH,a=Math.max(o,t);return Math.max(n,m?a:iV(e,i,a))},0),y=e=>a.data.reduce((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===M$)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?KH:0;return XH+s(t)+KH+r})(r);return Math.max(i,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((o,s)=>{let u=XH;if(m&&1!==a.size.x||!n||void 0===d||d!==o.colIdx){let t;o.columnWidthLocation===_F.Pivot?t=m?void 0:f:o.columnWidthLocation===_F.Dimension&&({columnWidth:t}=o);let n=0;if(o.isLeftDimension)if(o.id===M$)n=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=e,s=r.getDimensionInfo(a);if(ZH(s))return PT.PixelsDefault;const u=!i.qAlwaysFullyExpanded&&o&&t<p-1?21:0;return XH+l(n)+u})(o,s);n=Math.max(e,t),m&&!g&&s+1===p&&o.columnWidthLocation===_F.Dimension&&a.size.x>1&&(n=e)}else n=y(s),o.columnWidthLocation===_F.Measures&&(n=v(n));m&&1===a.size.x&&(t=r.indentModeColumnWidth),u=m&&!g&&a.size.x>1?n:iV(e,t,n)}else u=m?Math.min(t,n):n;return b+=u,u});return m&&a.size.x>1?cV({layoutService:r,effectivePropertiesService:i,headersData:a,columnWidths:S,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:o}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,r,t,s,c,l,u,o,i]),[p,h]=m(d);Gz(()=>{h(d())},[d]);const g=f((e,t)=>{h(d(e,t))},[d]);return{...p,overrideLeftGridWidth:g}}function pV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:i}=E$(),{visibleDimensionsInfo:{visibleTopDimensionInfo:o}}=UH(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=$z(r.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=$z({...r.dimensionValues,fontWeight:eV(r.dimensionValues.fontWeight)},{allowLineBreaks:!1}),h=e-n-1,m=o.at(-1),g=m===P$,y=s.length-a>o.length?21:0,b=v(()=>{const e=g?u:[m],t=l.x/e.length,n=[],r=[];let i=h;const o=(e,r)=>{n[e]=Math.min(PT.PixelsMax,Math.max(PT.PixelsMin,r)),i-=n[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:n,pixels:i,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case MT.Pixels:o(t,nV(i));break;case MT.Percentage:o(t,rV(a,h));break;case MT.FitToContent:o(t,((e,t,n)=>n?PT.PixelsDefault:XH+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+y)))(s,l??"",ZH(e)));break;case MT.Auto:default:r.push(t)}}else r.push(t)}),r.length){const e=r.length*t,o=i/e;r.forEach(e=>{n[e]=Math.max(PT.AutoMinPivot,o)})}return n},[g,u,m,l.x,h,c,d,p,y]),x=v(()=>{if(g){return u.reduce((e,t,n)=>e+b[n],0)/u.length}return b[0]},[g,b,u]),S=parseFloat((t/i.size.x).toFixed(12)),w=f(e=>(g&&void 0!==e?b[i.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,b,i,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const fV=`scrollable-container--${zF.TopGrid}`,hV=`scrollable-container--${zF.LeftGrid}`,mV=`scrollable-container--${zF.DataGrid}`,gV=e=>{if(!(e&&e instanceof HTMLDivElement))return{width:0,height:0};const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return{width:t>=2?t:0,height:n>=2?n:0}},vV=(e,t)=>e>t?WF.Forward:e<t?WF.Backward:WF.None,yV=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{const{direction:s}=y$();d(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=r(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,o(e),i?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,o(e),i?.(e)},h=r=>{const a=r.target,l=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:i}=e,o=n-r;if("rtl"===t){if(i>o)return o;if(i<0)return Math.abs(i)}return i})(a,s);n.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)}),o(r),i?.(r)};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)}},[o,i,a,e,t,n,r,s])},bV=ww(!1),xV=(e,t)=>Math.abs(e.width-t.width)>2||Math.abs(e.height-t.height)>2,SV=({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const{top:r,left:i,data:o,resetHorizontalScrollbarHeight:a}=((e,t,n)=>{const[r,i]=m({width:0,height:0}),[o,a]=m({width:0,height:0}),[s,u]=m({width:0,height:0}),[c,p]=m(!1),h=qw(bV),g=l(h),v=l(h);g.current=h;const y=f(()=>{p(e=>!e&&e);const r=gV(e.current),o=gV(t.current),s=gV(n.current);i(e=>xV(e,r)?r:e),a(e=>xV(e,o)?o:e),u(e=>xV(e,s)?s:e)},[e,t,n]);d(()=>{const r=new ResizeObserver(()=>{g.current||y()}),i=[e.current,t.current,n.current].filter(e=>Boolean(e));return i.forEach(e=>{r.observe(e)}),()=>{r.disconnect()}},[y,e,t,n]),d(()=>{const e=v.current;if(v.current=h,e&&!h){const e=setTimeout(y,0);return()=>{clearTimeout(e)}}},[h,y]);const b=f(()=>{p(!0)},[]);return{top:r,left:c?{...o,height:0}:o,data:c?{...s,height:0}:s,resetHorizontalScrollbarHeight:b}})(e,t,n);return{scrollbarsDimensions:{verticalScrollbarWidth:Math.max(r.width,o.width),horizontalScrollbarHeight:Math.max(i.height,o.height)},resetHorizontalScrollbarHeight:a}},wV=()=>{const{interactions:e}=S$(),t=l(null),n=l(null),r=l(null),i=l(null),o=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=SV({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:i,leftGridRef:o,dataGridRef:a}})=>{const{pageInfo:s}=y$(),{downloadService:l,viewService:u,layoutService:c}=E$(),d=f(()=>{const i={left:0,top:0};e.current?.scrollTo(i),t.current?.scrollTo(i),n.current?.scrollTo(i),r.current?.scrollTo(i)},[e,t,n,r]);g(()=>{d()},[s.page,d]),g(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),g(()=>{if(c.triggerdByExpandOrCollapse){const e=r.current?.scrollLeft??0,t=r.current?.scrollTop??0;o.current?.forEach(e=>{e?.scrollTo(t)}),i.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,r,a,o,i]),g(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v}}=(()=>{const e=l(WF.None),t=l(WF.None),n=l({prevScrollTop:0,prevScrollLeft:0}),r=f(r=>{if(r instanceof WheelEvent&&(e.current=vV(r.deltaY,0),t.current=vV(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const i=r.target;e.current=vV(i.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=i.scrollTop,t.current=vV(i.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=i.scrollLeft}},[e,t,n]);return{trackScrollDirection:r,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=E$();return f(t=>{const n=t.target,r=t.currentTarget,i=n.dataset.key;i===hV&&(e.leftGridScrollLeft=r.scrollLeft),i===mV&&(e.scrollLeft=r.scrollLeft),i===fV&&(e.topGridScrollTop=r.scrollTop),i!==hV&&i!==mV||(e.scrollTop=r.scrollTop)},[e])})(),b={gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},getWrapperElements:f(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:i.current}),[t,n,r,i]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{d(()=>{const{headerGridWrapperElement:i,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=r(),c=e=>{e.ctrlKey||(e.preventDefault(),i.scrollLeft+=e.deltaX,i.scrollTop+=e.deltaY,l.scrollLeft=i.scrollLeft,s.scrollTop=i.scrollTop,o(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),i.scrollLeft+=e.deltaX,l.scrollLeft=i.scrollLeft,u.scrollTop=l.scrollTop,n.current?.scrollTo({scrollTop:l.scrollTop}),o(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),i.scrollTop+=t.deltaY,s.scrollTop=i.scrollTop,u.scrollLeft=s.scrollLeft,n.current?.scrollTo({scrollLeft:s.scrollLeft}),o(t))},f=r=>{r.ctrlKey||(r.preventDefault(),u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,n.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)}),o(r))};return i.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[o,i,a,e,t,n,r])})(b),yV(b),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},CV=()=>{const{layoutService:e}=E$(),{rect:t,pageInfo:n}=y$();return v(()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}},[t,e,n.shouldShowPagination])},EV=({children:e,style:t})=>fo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),IV=({children:e,style:t})=>{const{direction:n}=y$();return fo.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},DV=e=>e&&`scrollable-container--${e}`,RV=({children:e,style:t,origin:n},r)=>{const{interactions:i}=S$(),o=i.scroll?t:{overflow:"hidden"};return fo.jsx("div",{"data-testid":"scrollable","data-key":DV(n),style:o,ref:r,children:e})};var PV=n.forwardRef(RV);const MV=({children:e,style:t})=>{const{direction:n}=y$();return fo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var LV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function AV(e,t){return e===t||!(!LV(e)||!LV(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!AV(e[n],t[n]))return!1;return!0}function OV(e,t){var n;void 0===t&&(t=kV);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var qV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function TV(e){cancelAnimationFrame(e.id)}function jV(e,t){var n=qV();var r={id:requestAnimationFrame(function i(){qV()-n>=t?e.call(null):r.id=requestAnimationFrame(i)})};return r}var NV=-1;function _V(e){if(void 0===e&&(e=!1),-1===NV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),NV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return NV}var FV=null;function zV(e){if(void 0===e&&(e=!1),null===FV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?FV="positive-descending":(t.scrollLeft=1,FV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),FV}return FV}var WV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function $V(e){var t,n=e.getColumnOffset,i=e.getColumnStartIndexForOffset,o=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$l(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$l(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OV(function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=OV(function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,o=r.props,s=o.columnWidth,l=o.direction,u=o.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;c[f]=i={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=OV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(zV()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return HV(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=_V();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,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!==r?u(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==i?c(this.props,i,n,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(zV()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TV(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?WV: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],R=I[1],P=[];if(i>0&&v)for(var M=D;M<=R;M++)for(var L=C;L<=E;L++)P.push(r(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},r(c||d||"div",{children:P,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[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 r){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,n=e.overscanColumnCount,r=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||r||a||1;if(0===t||0===s)return[0,0,0,0];var f=i(this.props,d,this._instanceProps),h=o(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,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)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(o-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var HV=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},VV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},BV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},GV=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},UV=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?YV(e,t,n,o,0,r):KV(e,t,n,Math.max(0,o),r)},YV=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=GV(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},KV=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&GV(e,t,r,n).offset<i;)r+=a,a*=2;return YV(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},XV=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=GV(e,t,n,o),u="column"===e?BV(t,o):VV(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},JV=$V({getColumnOffset:function(e,t,n){return GV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return UV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=GV("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=GV("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:VV,getEstimatedTotalWidth:BV,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return XV("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return XV("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return GV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return UV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=GV("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=GV("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),ZV=function(e,t){return e};function QV(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=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 r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,$l(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$l(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OV(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=OV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=OV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(zV()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=jV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return eB(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 n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?_V():0:l.scrollHeight>l.clientHeight?_V():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(zV()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TV(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=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?ZV: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"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var R=E;R<=I;R++)D.push(r(t,{data:d,key:f(R,d),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var P=i(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},r(l||u||"div",{children:D,ref:s,style:{height:S?"100%":P,pointerEvents:x?"none":void 0,width:S?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.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=i&&"backward"!==o?1:Math.max(1,n),p=i&&"forward"!==o?1:Math.max(1,n);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 eB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},tB=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},nB=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=tB(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},rB=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&tB(e,n,t).offset<r;)n+=o,o*=2;return nB(e,t,Math.min(n,i-1),Math.floor(n/2),r)},iB=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},oB=QV({getItemOffset:function(e,t,n){return tB(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:iB,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=tB(e,t,i),p=iB(e,i),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?nB(e,t,i,0,n):rB(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=tB(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=tB(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function aB(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var sB=["style"],lB=["style"];function uB(e,t){var n=e.style,r=Oe(e,sB),i=t.style,o=Oe(t,lB);return!aB(n,i)&&!aB(r,o)}const cB=10,dB=(e,t)=>e.current===WF.Backward?t:0,pB=(e,t,n,r)=>{for(let i=n;i<n+r;i++){const n=e.at(i);if(void 0===n||void 0===n.at(t))return!0}return!1},fB=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,hB=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:i,endLeft:o})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=i;e<o;e++)if(pB(t,e,n,r)){const t=a[a.length-1],i={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&fB(t,i)?t.qWidth+=i.qWidth:a.push(i)}return a},mB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:i,minBufferEndLeft:o,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===WF.Backward?Math.max(0,i-25):o,c=Math.min(u+25,a);return hB({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},gB=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:i})=>{const{startLeft:o,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=e.size.x,l=dB(n,cB),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(o+cB,s-u),pageTop:i,qHeight:a}})(r,i,n),u=hB({pageInfo:e,measureData:t,startLeft:o,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...mB({pageInfo:e,measureData:t,scrollDirection:n,viewService:i,minBufferStartLeft:o,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},vB=(e,t,n,r)=>{const i=e[n];if(void 0===i)return!0;for(let e=t;e<t+r;e++){if(void 0===i[e])return!0}return!1},yB=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,bB=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:i,pageInfo:o})=>{const a=[],s=o.page*o.rowsPerPage;for(let o=e;o<t;o++)if(vB(i,n,o,r)){const e=a.at(-1),t={qLeft:n,qTop:o+s,qWidth:r,qHeight:1};void 0!==e&&yB(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},xB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:i,endTop:o,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=dB(n,cB),l=Math.max(i-s,0);return{startTop:l,endTop:l+Math.min(a+cB,e.rowsOnCurrentPage-l),qLeft:r,qWidth:o}})(e,r,n),l=bB({startTop:i,endTop:o,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===WF.Backward?Math.max(0,i-25):o,u=Math.min(r+25,e.rowsOnCurrentPage),c=bB({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},SB=async(e,t,n,r,i,o,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=i;let p=[],f=[];o.current!==WF.None&&(p=xB({pageInfo:r,measureData:n,scrollDirection:o,viewService:i})),a.current!==WF.None&&(f=gB({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:i})),o.current===WF.None&&a.current===WF.None&&(p=bB({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},wB=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-o,c=function(){o=Date.now(),r=0,e.apply(t,n)};r||(u>=i?c():r=setTimeout(c,i-u))}}(SB,100),CB=ZN(SB,75),EB=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),IB=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:i,isLeftColumn:o,showTotalCellDivider:a})=>{const{direction:s}=y$(),{styleService:{grid:{border:l,divider:u}}}=E$();return fo.jsx("div",{style:{...e,...hz,...yz(n,r,l,s,i),...xz({bottomDivider:a&&o,rightDivider:a&&!o,borderColor:u})},"data-testid":"empty-cell","data-index":t})},DB=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:i})=>{const{layoutService:{isIndentModeEnabled:o}}=E$(),a=i&&o;return fo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},RB=e=>{const{type:t,imageSize:n}=e;return t!==AF.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},PB=e=>"number"==typeof e&&!Number.isNaN(+e),MB=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,LB=x((e,t)=>fo.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:fo.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),AB=x((e,t)=>fo.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:fo.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"})})),kB=x((e,t)=>fo.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:[fo.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"}),fo.jsx("use",{fillRule:"evenodd"})]})),OB=x((e,t)=>fo.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:fo.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"})})),qB=x((e,t)=>fo.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:fo.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"})})),TB=x((e,t)=>fo.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:fo.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"})})),jB=x((e,t)=>fo.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:fo.jsx("path",{d:"M2 7.5h12v1H2z"})})),NB=x((e,t)=>fo.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:fo.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"})})),_B=x((e,t)=>fo.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:fo.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"})})),FB=x((e,t)=>fo.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:fo.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"})})),zB=x((e,t)=>fo.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:fo.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"})})),WB=x((e,t)=>fo.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:fo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),$B=x((e,t)=>fo.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:fo.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"})})),HB=x((e,t)=>fo.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:fo.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"})})),VB=x((e,t)=>fo.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:fo.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"})})),BB={m:WB,"ï":FB,R:x((e,t)=>fo.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:fo.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:$B,T:HB,U:VB,P:_B,Q:TB,"è":x((e,t)=>fo.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:fo.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"})})),"¢":OB,"©":kB,"23F4":qB,2013:zB,"&":NB,add:LB,"minus-2":jB,dot:AB},GB=({size:e,iconKey:t,color:n,pvStyle:r})=>{const i=t&&BB[t];return i&&fo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:fo.jsx(i,{style:{height:e}})})},UB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),YB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},KB=(e,t,n)=>{const r={previousColor:(i=e.localPaletteColors)[(o=t)-(o>0?1:0)],nextColor:i[o+(o<i.length-1?1:0)]};var i,o;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,i)=>{const{upperLimit:o,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===o.value?1:(r-a.value)/(o.value-a.value);return a.gradient&&o.gradient?r-a.value<o.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:o.gradient?{color:l.color,t:u/2}:{color:i.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return Pj(e.localPaletteColors[t].color??"").blend(Pj(s.color??""),s.t)},XB=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:UB(t,e.value)}))),e})({...e},t),i=r.paletteColors||r.localPaletteColors;return i&&(r.localPaletteColors=i.concat().map((e,t)=>({color:YB(r,t,n)}))),r},JB=(e,t,n,r)=>{const i=XB(e,n,r),{localPaletteColors:o}=i;if(t<=0)return o[0].color;if(t>=1)return o[o.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:i,localPaletteColors:o}=e;for(let a=0;a<o.length;a++){const o=i&&i[a]?i[a].value:1;if(t>=r&&t<o){n=KB(e,a,t);break}r=o}return n})(i,t);return a},ZB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!PB(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!PB(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},QB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=ZB(e,t),i=Math.abs(t);return{min:n??t-i,max:r??t+i}})(n,t),i=((e,t,n)=>{const{limits:r,paletteColors:i,localPaletteColors:o}=e.segments;if(!r||!PB(t))return 0;let a=n&&PB(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=i||o;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,r.min);return{limitRange:r,limitPaletteColorIndex:i}},eG=e=>"flex-start"===e?"flex-end":"flex-start",tG=(e,t,n,r)=>{const i=e.indicatorConditionalColoring;if(!i)return;const o=QB(i,t),a=((e,t,n,r)=>{const{segments:i}=e;if(!i||!n)return;const{limits:o}=i;if(!o?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(o,n.limitPaletteColorIndex))return YB(i,n.limitPaletteColorIndex,r);const a=UB(n.limitRange,t);return JB(i,a,n.limitRange,r)})(i,t,o,r),s=i.segments.paletteColors[o?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},nG=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=E$(),{theme:i}=S$(),{direction:o}=y$(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=tG(e,t,o,i),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||oz,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?fo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:n?.overflow,color:u?b:n?.color},children:["left"===x&&GB({size:v,iconKey:y,color:b,pvStyle:S}),fo.jsx("span",{style:{paddingTop:4,overflow:n?.overflow,textOverflow:n?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&GB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,GB({size:v,iconKey:y,color:b,pvStyle:S}))},rG=(e,t,n)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},iG=(e,t)=>{let{textAlign:n}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:n}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),n?.auto||void 0===n?"left":n.align},oG=(e,t,n,r,i)=>{if(i)return;const o=e.representation,a=QH({isLeftColumn:n,layoutService:t,representation:o}),s=n?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===AF.Image)return a&&l&&"center"!==l&&"rtl"===r?eG(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:n}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return rG(n,s,r)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return rG(u,s,r)},aG=e=>!!e.target?.getAttribute("class")?.includes(RT),sG=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),i=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&i===e.activeSelection.endIndex)return e;const o={...e.activeSelection,startIndex:r,endIndex:i};return o.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:i}=e,o=new Map(i);for(let e=n;e<=r;e++){const n=t(e);"N"===n?.ref.qType&&o.set(n.ref.qElemNo,n)}return o})(o),{...e,activeSelection:o}}default:return e}},lG=e=>null!==e.target?.closest("[data-prevent-selection]"),uG=e=>"A"===e.target?.tagName,cG=({startIndex:e,getCellFromIndex:t,cell:n})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}});const dG=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),pG=()=>h(dG),fG=({children:e,selections:t})=>{const n=function(e){const{updatePageInfo:t}=y$(),n=e.isActive(),[r,i]=c(sG,{engineSelectedCells:null,selectedField:null,activeSelection:null});d(()=>{const n=()=>{i({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}},[e,t]);const o=f(async()=>{if(!r.activeSelection)return;var t,n;1===r.activeSelection.clientSelectedCells.size&&(t=r.engineSelectedCells,(n=r.activeSelection).clientSelectedCells.forEach((e,r)=>{t?.has(r)&&(n.clientSelectedCells.delete(r),t.delete(r))}));const o=new Map([...r.engineSelectedCells??new Map,...r.activeSelection.clientSelectedCells]);try{i({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[R$,Array.from(o,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),i({type:"mouseup",payload:{engineSelectedCells:r.engineSelectedCells}})}},[r,e]);d(()=>{if(r.activeSelection)return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},[o,r.activeSelection]);const a=f((e,t)=>n=>{const r=t(e);aG(n)||lG(n)||uG(n)||!(e=>1===e.buttons)(n)||!r||i(cG({startIndex:e,getCellFromIndex:t,cell:r}))},[]),s=f(t=>async()=>{r.activeSelection&&(e.isActive()||await e.begin([R$]),i({type:"mouseover",payload:{index:t}}))},[r.activeSelection,e]),l=f((e,t)=>n=>{if("touch"!==n.pointerType)return;const r=t(e);aG(n)||lG(n)||uG(n)||!r||(i(cG({startIndex:e,getCellFromIndex:t,cell:r})),o())},[o]),u=f(e=>!(!r.engineSelectedCells?.size&&!r.activeSelection?.clientSelectedCells.size||!r.selectedField||e.selectionCellType===r.selectedField.selectionCellType&&("L"===e.selectionCellType?r.selectedField.index===e.x:r.selectedField.index===e.y)),[r.activeSelection?.clientSelectedCells.size,r.engineSelectedCells?.size,r.selectedField]),p=f(e=>!u(e)&&(r.engineSelectedCells?.has(e.ref.qElemNo)||!!r.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,r.activeSelection?.clientSelectedCells,r.engineSelectedCells]);return v(()=>({isSelected:p,isActive:n,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[p,n,u,a,s,l])}(t);return fo.jsx(dG.Provider,{value:n,children:e})},hG=e=>"fill"===e.representation.imageSize,mG=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&hG(e)&&t&&(n="center"),e.representation.type!==AF.Image||hG(e)?n:e.representation.resolvedImagePosition?.vertical};var gG=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(gG||{});const vG={brighter:.5,darker:.3,opacity:.03},yG=(e,{cell:t,styleService:n})=>{if(e===gG.Background||e===gG.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},bG=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const i=yG(gG.Background,{cell:n,styleService:e});return!r||!i||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?yG(gG.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${l_(o=i,vG)} 0px 2px,\n ${o} 0px 4px\n ) border-box`;var o},xG=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:yG(gG.Color,{cell:e,styleService:t}),SG=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,i=yG(gG.FontWeight,{cell:e,styleService:t});return void 0===i&&(r||n)?sz:i},wG=({cell:e,styleService:t})=>yG(gG.FontStyle,{cell:e,styleService:t}),CG=({cell:e,styleService:t})=>yG(gG.TextDecoration,{cell:e,styleService:t}),EG=e=>e?"pointer":"default",IG=({expandOrCollapse:e,cell:t})=>n=>{e?.(t.y,t.x),n.stopPropagation()},DG=(e,t)=>{if(!e.isLeftColumn||e.representation.type===AF.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},RG=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:i}=E$(),{interactions:o}=S$(),{isActive:a}=pG(),{dataModel:s}=UH();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||a||!s,u=xG({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?MW:PW;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=QH({isLeftColumn:t,layoutService:i,representation:e.representation});return fo.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,...DG(e,r),...f&&{alignSelf:mG(e)}},onClick:l?void 0:IG({cell:e,expandOrCollapse:p})})},PG=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},MG=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},LG=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},AG=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:i,layoutService:o,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=o,l=QH({isLeftColumn:r,layoutService:o,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=i.headerCellHeight;r&&l&&(d=c),(a||r)&&(p=i.contentCellHeight);let f=p;switch(r&&void 0!==n&&!s&&(f=p*Math.max(n,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}}},kG=e=>{if("alwaysFit"===e)return"contain"},OG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),qG=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:MG(e,n,r),height:PG(e),objectFit:kG(e),objectPosition:LG(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),TG=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:r,onLoad:i}=(()=>{const{downloadService:e}=E$(),t=l(null),{promise:n,resolve:r}=v(()=>Mz(),[]);return d(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(n),t.current?.complete&&r()),()=>{r()}),[t,e,n,r]),{onLoad:f(()=>{r()},[r]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o}}=E$(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return fo.jsx("img",{src:a,alt:s,style:{...qG({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:o,isMeasureCell:n}),...h},onLoad:i,ref:r})},jG=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:i=!1,imageContainerHorizontalAlignment:o,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=E$(),{resolvedImagePosition:u}=e;return fo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:o,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...AG({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:i,isMeasureCell:a})},children:fo.jsx(TG,{representation:e,textStyle:t,isMeasureCell:!0})})},NG={display:"flex",flexDirection:"row",alignItems:"center"},_G={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},FG=(e,t,n,r)=>t?{..._G,...e.nullValues}:n?{...NG,color:e.totalValues.color,background:r??e.totalValues.background}:{...NG,color:e.measureValues.color,background:r??e.measureValues.background},zG=(e,t,n,r,i)=>{const{fontFamily:o,fontSize:a}=e.measureValues,s={...mz,...!n&&gz(e.grid.lineClamp),...t&&{color:t},fontFamily:o,fontSize:a};if(i){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?sz:l,fontStyle:u,textDecoration:c}},WG=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:i})=>{const{layoutService:o,styleService:a}=E$(),{isIndentModeEnabled:s}=o,l=e.isNull?o.getNullValueText():t.text,u=t.type===AF.Image,c=t.type===AF.Indicator,d=PB(MB(l)),p=zG(a,n,d,r,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return fo.jsx(jG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:i});const f=MB(e.isNull?t.text:e.ref.qNum);return c&&PB(f)?fo.jsx(nG,{representation:t,cellValue:f,textStyle:p}):fo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},$G=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,HG="flex-start",VG=(e,t)=>e.isNull?HG:t.type===AF.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:HG,BG=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{env:i}=S$(),{pageInfo:o,direction:a}=y$(),{styleService:s,layoutService:l}=E$(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=UH(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=E$(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:i}}=UH(),o=r.length,a=i.length;return f((r,i)=>!(!n.grid.at(a-1)?.[r]?.isTotal&&!t.grid.at(e?0:o-1)?.[i]?.isTotal),[n,t,o,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=UH(),n=t.length;return f(t=>{const r=e.grid.at(n-1)?.[t];return EB(r,e.totalDividerIndex)},[e,n])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=E$(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=UH(),r=n.length;return f(n=>{const i=e?0:r-1,o=t.grid.at(i)?.[n];return EB(o,t.totalDividerIndex,e)},[t,e,r])})(),{showLastBorder:b}=r,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===o.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return fo.jsx(IB,{style:{...n,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?$G(S,t):$G(x,e),R=l.visibleMeasureInfo[D],P=IH({cell:C.ref,representationProperties:R.representation,attrExprInfoIndex:u.measures[D],env:i,direction:a,conditionalColoring:R.conditionalColoring,enabledFeatures:{[AF.Image]:!0,[AF.Indicator]:!0}}),M=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():P.text,A=!C.isNull||!Number.isNaN(+L),k=DH(u.measures[D],C.ref),O=((e,t,n,r,i)=>{const{textAlign:o}=t,a=r?"flex-end":"center";return e.isNull||n.type!==AF.Image?rG(o,a,i):n.resolvedImagePosition?.horizontal??"center"})(C,R,P,A,a),q={...FG(s,C.isNull,M,k.background),...yz(E,I,s.grid.border,a,b),...xz({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...hz,padding:"0px 4px",display:"flex",justifyContent:O};return fo.jsx("div",{className:IT,title:L,style:{...q,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fo.jsx(DB,{width:RB(P),verticalAlign:VG(C,P),children:fo.jsx(WG,{cell:C,representation:P,isTotalValueCell:M,color:k.color,cellHorizontalAlignment:O})})})};var GG=n.memo(BG,uB);const UG=(e,t)=>t.list[e]?.id??e.toString(),YG=({columnIndex:e,rowIndex:t,data:n})=>n.grid[t]?.[e]?.id??`${t}-${e}`,KG=e=>({...fz,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),XG=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:i,getRightGridColumnWidth:o,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=y$(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=E$(),{dataModel:h,gridSectionsData:{measureData:m}}=UH(),v={...KG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=y$(),{downloadService:r,viewService:i,layoutService:o}=E$(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=UH(),c=s.columnCount,d=l.rowCount;return f(async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{i.gridColumnStartIndex=s,i.gridRowStartIndex=p,i.gridWidth=l-s+1,i.gridHeight=f-p+1;const h=i.gridWidth+c+(t.current===WF.None?0:cB),m=i.gridHeight+d+(e.current===WF.None?0:cB);let g=wB;m*h>1500&&(g=CB),g(a,o,u,n,i,e,t,r)},[i,o,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return Gz(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,h,m]),g(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[r,t,e,p,u]),0===c.size.x?null:fo.jsx(JV,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:o,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:i,grid:m},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:o(),itemKey:YG,direction:u,children:GG})};var JG=b(XG);const ZG=x((e,t)=>fo.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:[fo.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"}),fo.jsx("use",{fillRule:"evenodd"})]})),QG=e=>{const[t,n]=jw(bV);return Gz(()=>{n(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},eU=()=>{const[e,t]=m(!1),{dataModel:n}=UH(),{interactions:r}=S$(),{isAdjustingWidth:i,setIsAdjustingWidth:o}=QG([n]);return{open:e,setOpen:t,handleOpenMenu:e=>{!r.active||aG(e)||i||t(!0)},isAdjustingWidth:i,setIsAdjustingWidth:o}};function tU(e,t){const n=t.expressionColor?.background??e.dimensionValues.background,r=t.isLeftColumn?e.header.background:n,i=r===cz.Transparent?hj.WHITE:r,o=Pj(e.grid.border),a=Pj(i);return a.isInvalid()||o.isInvalid()||1===o.a?e.grid.border:function(e,t,n){return Pj(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(a,o,o.a).getRGB()}const nU=({cellInfo:e,columnWidth:t,isLastColumn:n,overrideLeftGridWidth:r,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:o,tableWidth:a})=>{const{direction:s}=y$(),{interactions:l,translator:u}=S$(),{isActive:c}=pG(),{dataModel:d}=UH(),{styleService:p}=E$(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=tU(p,e);return fo.jsx(Zz,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),r&&void 0!==e.colIdx&&r(t,e.colIdx)},confirmWidthCallback:t=>{o?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*JH,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},rU=Sl(sc,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:i})=>({pointerEvents:i?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&i?n:t}})),iU=Sl("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),oU=Sl("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({...pz,justifyContent:e??pz.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),aU=Sl("div")(()=>({...pz})),sU=Sl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:i,justifyContent:o})=>({display:"flex",justifyContent:o,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:i})),lU=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Sl(Rp,{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}}})),cU=Sl("span")({textOverflow:"ellipsis",overflow:"hidden"}),dU=Sl("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:KH,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),pU=Sl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let fU=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const hU=(e,t)=>({qExcludeList:t===fU.Expand,qPos:{qDimName:e,qElemNo:[]}}),mU=`${R$}/qExpansionState`,gU=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const i=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:hU(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:i}=t;try{let t,n=mU,o="Add";void 0===r?t=JSON.stringify([i]):-1===r?(n=`${mU}/-`,t=JSON.stringify(i)):(n=`${mU}/${r}`,o="Replace",t=JSON.stringify(i)),await e.applyPatches([{qPath:n,qOp:o,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:i,errorMsg:`Failed to ${r} dimension`})},vU=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:gU({...r,action:fU.Expand}),collapseCallback:gU({...r,action:fU.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},yU={[NW.Sorting]:!0,[NW.Selections]:!0,[NW.Searching]:!0},bU=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:i,changeSortOrder:o,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=E$(),{app:g,interactions:v,embed:y,translator:b,model:x,env:S}=S$(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:R,background:P,hoverBackground:M,activeBackground:L}=f.header,A=l(null),{shouldShowLockIcon:k,shouldShowMenuIcon:O}=a,{open:q,setOpen:T,handleOpenMenu:j,setIsAdjustingWidth:N}=eU(),{direction:_}=y$(),F={sortFromMenu:async(t,n)=>{t.stopPropagation(),await o(e,n)}},z={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=rG($,"flex-start",_);return fo.jsxs(rU,{className:IT,title:e.label,interactions:v,background:q?L:P,hoverBackground:M,shouldShowMenuIcon:O,isDimension:e.isDim,style:{...t,...hz,...bz(e,i,n,r,f.grid.border,_),color:R},"data-testid":"title-cell",onClick:j,children:[fo.jsxs(oU,{children:[k?fo.jsx(aU,{children:fo.jsx(ZG,{height:12})}):null,fo.jsx(sU,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:fo.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...mz,...gz(f.grid.columnLineClamp)}:mz,children:e.label})})]}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(zW,{headerData:e,translator:b,anchorRef:A,open:q,setOpen:T,interactions:v,menuAvailabilityFlags:yU,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:vU({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:O,model:x&&"setActiveField"in x?x:void 0,direction:_,isAccessibleHeader:!0}),fo.jsx(iU,{ref:p,direction:_}),fo.jsx(iU,{ref:A,direction:_})]}):null,fo.jsx(nU,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:u,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},xU=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=E$(),{direction:r}=y$();return e>0&&t>0?fo.jsx("div",{style:{...fz,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},SU=x((e,t)=>fo.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:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),wU=x((e,t)=>fo.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:[fo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),fo.jsx("use",{fillRule:"evenodd"})]})),CU=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=y$(),{styleService:i}=E$(),{interactions:o,translator:a}=S$(),{isActive:s}=pG(),{dataModel:l}=UH(),{setIsAdjustingWidth:u}=QG([l]);if(!(!!o.active&&!s))return null;const c=tU(i,{isLeftColumn:!0});return fo.jsx(Zz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*JH))},confirmWidthCallback:r=>{if(r.type===MT.FitToContent)return void l.applyIndentModeColumnWidth({type:MT.Auto});const i=Math.min(r.pixels??t,e*JH);n(i),l.applyIndentModeColumnWidth({type:MT.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},EU=x((e,t)=>fo.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:fo.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"})})),IU=({cell:e,changeSortOrder:t})=>{const n=l(null),r=l(null),{app:i,interactions:o,embed:a,translator:s,model:u}=S$(),{layoutService:c,effectivePropertiesService:d}=E$(),{open:p,setOpen:f,handleOpenMenu:h}=eU();return fo.jsxs(uU,{onClick:h,isActive:p,children:[fo.jsx(cU,{children:e.label}),fo.jsxs(dU,{className:"indent-mode-dropdown-more",visible:p,children:[fo.jsx(EU,{}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(zW,{headerData:e,translator:s,anchorRef:n,open:p,setOpen:f,interactions:o,menuAvailabilityFlags:yU,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:i,qStateName:c.layout.qStateName},expandOrCollapseArgs:vU({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),fo.jsx(iU,{ref:r}),fo.jsx(iU,{ref:n})]}):null]})]})},DU=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{const i=n.at(-1)?.id===M$,o=e+1<n.length&&n[e+1]?.id===M$;return!(r&&i&&o)&&(t?.id!==M$&&e<n.length-1)},RU=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:i})=>{const{styleService:o}=E$(),{interactions:a,translator:s}=S$(),{dataModel:u,gridSectionsData:{headersData:c}}=UH(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=o,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=o.header,{isAdjustingWidth:I}=QG([u]),D=e=>{e.stopPropagation()},R={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return fo.jsxs(rU,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...R,...hz,color:g},onClick:e=>{!a.active||aG(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[fo.jsxs(oU,{justifyContent:"flex-start",children:[fo.jsx(sU,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:fo.jsx("span",{style:mz,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?fo.jsx(wU,{}):fo.jsx(SU,{}),fo.jsx(iU,{ref:f})]}),fo.jsx(lU,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((n,r)=>[n&&n.id!==M$&&fo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:fo.jsx(IU,{cell:n,changeSortOrder:t})}),DU({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===c.size.y})&&fo.jsx(rW,{"data-testid":"group-divider",variant:"middle"})])}),fo.jsx(CU,{tableWidth:i,leftGridWidth:r,overrideLeftGridWidth:n})]})},PU=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,MU={display:"grid",width:"fit-content"},LU=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:i,getHeaderCellsIconsVisibilityStatus:o,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=E$(),{gridSectionsData:{headersData:u}}=UH();return fo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...MU,gridTemplateColumns:n.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${r}px`).join(" "),height:a},children:[u.size.y>1&&fo.jsx(xU,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(PU({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);return Array.isArray(n)&&d.push(fo.jsx(RU,{menuItems:n,changeSortOrder:i,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},n.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=o(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(fo.jsx(bU,{style:{width:n[d],height:r,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:i,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var AU=b(LU);const kU=(e,t,n,r)=>{const{layoutService:i}=E$();g(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,n,r,i])},OU=(e,t)=>{Gz(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},qU=(e,t)=>{const{isLast:n,list:r,listValues:i}=t;return n?r[e]:i[e]},TU=()=>{},jU=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:i,isLastRow:o,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=E$(),{interactions:f}=S$(),{direction:h}=y$(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=pG(),{showLastBorder:b}=r,x=m(n)||n.isLockedByDimension,S=!(x||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=S?g(c,e=>qU(e,r)):void 0,C=S?v(c):void 0,E=S?y(c,e=>qU(e,r)):void 0,I=QH({isLeftColumn:s,layoutService:p,representation:n.representation});return fo.jsx("div",{className:IT,title:f.passive?n.representation.text:void 0,style:{...t,...yz(o,a,d.grid.border,h,b),...xz({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...hz,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:EG(S),background:bG({styleService:d,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:p.size.x-n.x,justifyContent:oG(n,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(n.indentLevel??0))},textAlign:iG(n,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:TU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},NU=e=>{e.stopPropagation()},_U=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:NU,color:hj.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),FU=({href:e,text:t,interactions:n,color:r})=>fo.jsx(Rd,{..._U({href:e,text:t,interactions:n,color:r}),children:t}),zU=Y();zU.use(U),zU.renderer.prio(["canvas"]);const WU=(e,t)=>e&&"center"!==e&&"rtl"===t?eG(e):e,$U=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{const{imageBox:i}=t,{styleService:{grid:{lineClamp:o}}}=E$(),{direction:a}=y$();return fo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${i?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[fo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:mG(e),alignItems:WU(r,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:i?.width??24,height:"100%"},children:fo.jsx(TG,{representation:t,textStyle:n})}),fo.jsx(pU,{padding:4/(o<=2?2:1),alignSelf:mG(e,!0),children:!!t.labelStructure&&OG(t.labelStructure)})]})},HU=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,VU=({href:e,text:t,labelStructure:n,interactions:r,color:i})=>fo.jsxs("span",{children:[fo.jsx(Rd,{..._U({href:e,text:t,interactions:r,color:i}),children:n?.maskedValue?n.maskedValue:n?.originalValue}),!!n&&HU(n)]}),BU=({children:e,textStyle:t,shouldEnableStickyText:n})=>fo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),GU=({isLeftColumn:e,styleService:t,cell:n,isIndentModeEnabled:r})=>e?r?t.grid.lineClamp:Math.max(t.grid.lineClamp,n.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,UU=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=y$(),{isActive:i}=pG(),{layoutService:o,styleService:a}=E$(),{interactions:s}=S$(),l=n&&o.isIndentModeEnabled;let u=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:i,suffix:o,delimeter:a}=n;return`${0!==i.length?i:r} ${o?a:""} ${o}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r,isIndentModeEnabled:i})=>({...mz,...gz(GU({cell:e,isLeftColumn:r,styleService:t,isIndentModeEnabled:i})),color:xG({cell:e,styleService:t,isCellSelected:n}),fontWeight:SG({cell:e,styleService:t}),fontStyle:wG({cell:e,styleService:t}),textDecoration:CG({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n,isIndentModeEnabled:o.isIndentModeEnabled});if(e.representation.type===AF.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,i=n&&t&&t.suffix?$U:jG;return fo.jsx(i,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:oG(e,o,n,r)})}if(e.representation.type===AF.Link&&!i&&!e.isTotal){const t=n&&e.representation.labelStructure?VU:FU;u=fo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return fo.jsx(BU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===AF.Image&&e.isNull?{alignSelf:mG(e)}:{}},children:u})},YU=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:i}=E$(),{isSelected:o}=pG(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=QG([n]),f=qU(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=EB(f,c,i.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return fo.jsx(IB,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=o(f);return fo.jsxs(jU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[fo.jsxs(DB,{verticalAlign:mG(f),width:RB(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[fo.jsx(RG,{isLeftColumn:a,isCellSelected:v,cell:f}),fo.jsx(UU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),fo.jsx(nU,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?_F.Measures:_F.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var KU=n.memo(YU,uB);const XU=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>i=>{const o=n?e[i]:t.at(i);return o&&0===i&&o.x>0?(o.leafCount+o.x+o.distanceToNextCell)*r():!n&&o?(o.leafCount+o.distanceToNextCell)*r():r(o?.x??i)},JU=(e,t,n,r)=>{const i=Object.values(e);let o,a=i.length;return r&&(a=n,o=t/a),{itemCount:a,estimatedItemSize:o,listValues:i}},ZU=(e,t)=>n=>{e.current&&(e.current[t]=n)},QU={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...fz},eY={overflow:"hidden",willChange:"auto",flexShrink:0},tY=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:i})=>{const{pageInfo:o,direction:a}=y$(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=E$(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=UH();OU(e,d),kU(e,t,n,l);const f=o.rowsOnCurrentPage*l,h={...QU,borderColor:u,width:r.reduce((e,t)=>e+t,0)};return fo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=L$(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=JU(t,f,o.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,n,r,i)=>o=>{const a=r?e[o]:t.at(o);if(a&&0===o&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===i-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return fo.jsx(oB,{ref:ZU(e,u),style:{...eY,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:i,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:UG,estimatedItemSize:v,children:KU},m)})})};var nY=b(tY);const rY={overflow:"hidden",willChange:"auto"},iY=e=>({...fz,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),oY=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:i,getRightGridColumnWidth:o})=>{const{direction:a}=y$(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=E$(),{gridSectionsData:{headersData:c,topDimensionData:d}}=UH(),p={...iY(a),borderColor:l,height:r};OU(e,d),kU(e,n,r,u);const f=s.size.x*o();return 0===d.rowCount?fo.jsx("div",{style:{width:n,height:r,...iY(a)}}):fo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=JU(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const i=t.size.x-1,o=PU({layoutService:e,headersData:t,topRowIndex:n})?0:i,a=r.at(o),s=Array.isArray(a)?a.at(i):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?L$(g):`empty ${l}`;return fo.jsx(oB,{ref:ZU(e,l),style:rY,height:t(),width:n,itemCount:p,itemSize:XU({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:o}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:i,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:UG,estimatedItemSize:h,direction:a,children:KU},v)})})};var aY=b(oY);const sY=()=>fo.jsx(lY,{}),lY=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=E$(),n=CV(),r=(()=>{const{model:e}=S$(),t=f(async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:i,sortDirection:o}=t,a=[];if(n===o)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${i}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).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:i,topGridWrapperRef:o,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=wV(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:i}=E$(),{gridSectionsData:{headersData:o}}=UH(),{measureText:a}=$z(i.header,{allowLineBreaks:!1}),s=dV({tableWidth:e}),l=pV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f((e,t,n="")=>{let i=e;r.isIndentModeEnabled&&(i=1,1===o.size.x&&(i=0));const l=s.leftGridColumnWidths[i];let u=!1,c=!1,d=a(n)+XH;return t&&d+KH<=l&&(c=!0,d+=KH),d+KH<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,r.isIndentModeEnabled,o.size.x]);return d(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()},[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:R,topGridDims:P,leftGridDims:M,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:i},scrollBarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a}})=>{const s=CV(),{pageInfo:l}=y$(),{gridSectionsData:{headersData:u,topDimensionData:c}}=UH(),d=Math.min(s.height*JH,Math.max(s.height*JH-25,s.height-t-a)),p=s.width*JH,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,n),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,n)=>{const r=t+1+n+o<=s.width,i=e+1+f+a,l=i-s.height<a||i<=s.height;return{availableHeight:l?i:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),R=Math.min(I,f),P=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:i}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:o,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=o>t,d=a>n,p=l>i;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:r,rightSectionFullWidth:i},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:P-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:g},stickyWrapper:{width:b-1-o,height:-1},self:{width:Math.min(i,b)-(C?1:0)-o,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:P-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:P-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-o,height:I-1-a},self:{width:Math.min(i,b)-(C?1:0)-o,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f(()=>e,[e]),q=f(()=>t,[t]);return(()=>{const{downloadService:e}=E$();d(()=>{e.notifyIsDoneRendering()})})(),fo.jsxs(IV,{style:D,children:[fo.jsx("div",{style:{overflow:"hidden"},ref:i,children:fo.jsx(AU,{tableWidth:n.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:R.height,changeSortOrder:r,overrideLeftGridWidth:I})}),fo.jsx(PV,{style:k.topGrid,origin:zF.TopGrid,ref:o,children:fo.jsx(EV,{style:P.fullSizeWrapper,children:fo.jsx(MV,{style:P.stickyWrapper,children:fo.jsx(aY,{topGridRef:l,rowHightCallback:O,...P.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),fo.jsx(PV,{style:k.leftGrid,origin:zF.LeftGrid,ref:a,children:fo.jsx(EV,{style:M.fullSizeWrapper,children:fo.jsx(MV,{style:M.stickyWrapper,children:fo.jsx(nY,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),fo.jsx(PV,{style:k.dataGrid,origin:zF.DataGrid,ref:s,children:fo.jsx(EV,{style:L.fullSizeWrapper,children:fo.jsx(MV,{style:L.stickyWrapper,children:fo.jsx(JG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},uY=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=S$(),{pageInfo:i,updatePageInfo:o,rect:a}=y$(),{layoutService:s}=E$(),{layout:l,hasData:u}=s;return fo.jsxs(fo.Fragment,{children:[u?fo.jsx(sY,{}):null,fo.jsx(D$,{}),fo.jsx(g$,{paginationNeeded:i.shouldShowPagination,handleChangePage:e=>{o({page:e})},pageInfo:i,totalRowCount:i.totalRowCount,totalColumnCount:0,totalPages:i.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})};const cY=(e,{selections:t,baseObjects:r,coreServices:i,nebulaObjects:o},a)=>{const s=function(e){const t=zS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),_s({...t,direction:e})}(r.direction);e.render(fo.jsx(n.StrictMode,{children:fo.jsx(Pw,{store:a,children:fo.jsx(Cl,{theme:s,children:fo.jsx(w$,{...o,children:fo.jsx(b$,{...r,children:fo.jsx(fG,{selections:t,children:fo.jsx(I$,{...i,children:fo.jsx(YH,{children:fo.jsx(uY,{})})})})})})})})}))};var dY=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}(dY||{}),pY=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}(pY||{}),fY=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(fY||{}),hY=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}(hY||{});const mY=e=>e?`${parseInt(e,10)}px`:void 0,gY=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?cz.Transparent:n}},vY=(e,t)=>+(parseInt(e,10)*uz*t+8).toFixed(2),yY=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?sz:"normal",bY=e=>e?.some(e=>"italic"===e)?"italic":"normal",xY=e=>e?.some(e=>"underline"===e)?"underline":"none",SY=document.createElement("textarea");function wY(e){SY.value=e,document.body.appendChild(SY),SY.select(),SY.setSelectionRange(0,SY.value.length),document.execCommand("copy"),document.body.removeChild(SY)}SY.style.position="absolute",SY.style.left="-9999px",SY.setAttribute("readonly","");function CY(e){T?.((t,n)=>{const r=n.target,i=r?.closest(`.${IT}`);i?.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(()=>{wY(t)}):wY(t))})(i)}}),e?.forEach(e=>{e(t,n,i)})})}const EY=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>Lz((i,o,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=e?.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.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(R$,0,0,!0),await e.expandLeft(R$,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--plus",translation:i.get("SNPivotTable.ContextMenu.ExpandDimension",[r??""]),tid:"expand-dimension",id:"expand-dimension",select:gU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:fU.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(R$,0,0,!0),await e.collapseLeft(R$,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--minus",translation:i.get("SNPivotTable.ContextMenu.CollapseDimension",[r??""]),tid:"collapse-dimension",id:"collapse-dimension",select:gU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:fU.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))},[e,t,n]),IY=(e,t)=>P(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:n,snapshotData:r}=e,{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:o,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!r,u=r?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,lz),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=o.slice(0,i),p=e=>d.some(t=>t===e),f=p(P$),h=new Map(o.map(e=>[s[e]??P$,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>n?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const n=e%m.length;return t?n:a.findIndex(e=>e===m[n])},getDimensionInfo:e=>e===P$?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:MT.Auto,pixels:PT.PixelsDefault,percentage:PT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),DY=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:i})=>{const{layout:o,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=kz(e);return t.current=e,t})(WH(i));return _z(async()=>{const{qHyperCube:t}=o,{maxNumberOfVisibleRows:i,maxNumberOfVisibleColumns:u}=l.current;if(a)return o.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,i,u)||((e,t,n,r)=>{const{qHyperCube:{qPivotDataPages:i,qSize:o}}=e,{qTop:a,qWidth:s,qHeight:l}=i[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(r,o.qcx)||l<Math.min(n,o.qcy)})(o,r,i,u))){const t=((e,t,n,r,i,o)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(lz,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-i)),n>l&&(u=Math.max(0,l-o))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,o),qHeight:Math.min(s-c,i)}})(s,n,o.qHyperCube.qSize,r,i,u);return t?e.getHyperCubePivotData(R$,$H(t)):[]}return t.qPivotDataPages},[o,a,e,n,r.page,r.rowsPerPage,l,s])},RY=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),PY=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:RY({rowsPerPage:n,totalRowCount:e,page:t})}),MY=15,LY=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:i})=>{const{freeResize:o}=M();return j(async e=>{const o=e;if(!o.snapshotData||!r||o.snapshotData.content)return o;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-MY,0),u=Math.max(s+i-MY,s,0),c=lz-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=WH(n);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,o+30),qHeight:Math.min(d,a+30)}})(t,i,n),c=$H(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};o.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(R$,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},o.snapshotData.object.size.w=n.width,o.snapshotData.object.size.h=n.height}return o}),N(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,i)}),[t]),e.layout.snapshotData?.content&&!o?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var AY={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 kY=()=>{const e=_(),t=e.language();return P(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(AY).forEach(t=>{e.add(AY[t])})}(e)},[e]),{translator:e,language:t}},OY=e=>{const t=P(()=>Iw(),[]),{flags:n}=e,r=F(),i=(e=>{const t=P(()=>Hz(e),[e]);return k(()=>()=>{t.unmount()},[t]),t})(r),o=z(),a=W(),s=$(),l=H(),u=V(),c=(()=>{const{viewState:e}=M(),t=kz(new Set),n=void 0!==window.qlikprinting,{promise:r,resolve:i}=P(()=>Mz(),[]),o=Lz(e=>{t.current.add(e)},[t]),a=Lz(ZN(async()=>{await Promise.all(t.current),t.current.clear(),i()},1e3),[i,t]);return L(async()=>{await r},[r]),P(()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:o}),[a,n,e,o])})(),d=((e,t)=>{const[n]=_z(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return P(()=>{const e=void 0!==n?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),t=n?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:n?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:n?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[n])})(a,o),p=IY(o,n),f=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=Nz(o,r),{translator:g,language:v}=kY(),{pageInfo:y,updatePageInfo:b}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,i=t.isDownloadedAsPDForImage||e.isSnapshot,o=(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:r.qcy>n.y&&!i,...PY(r.qcy,a,o)}}),l=e.layout.qHyperCube.qSize.qcy;return k(()=>{s(t=>({...t,...PY(l,t.page,o),shouldShowPagination:l>e.size.y&&!i}))},[l,e.size.y,s,i,o]),k(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=RY({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:RY({...a,...e})})}}})(p,c),x=((e,t,n)=>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}})(n,t.snapshotData),[n,e.page,t.snapshotData]))(y,o,c),S=LY({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,C]=DY({model:a,layoutService:p,viewService:x,pageInfo:y,rect:S}),E=P(()=>((e,t)=>{const n=t.layout.components?.find(e=>"theme"===e.key),r=n?.header,i=n?.dimensionValues,o=n?.measureValues,a=n?.measureLabels,s=n?.totalValues,l=n?.nullValues,u=n?.grid,c=(t,n,r)=>e.getStyle(t,n,r),d=+(u?.[dY.LineClamp]??c(pY.Grid,fY.Grid,hY.LineClamp)??1),p=+(u?.[dY.ColumnLineClamp]??c(pY.Grid,fY.Grid,hY.ColumnLineClamp)??1),f=gY(e,r?.[dY.Background])??c(pY.Dimension,fY.LabelName,hY.BackgroundColor)??cz.Transparent,h={header:{fontSize:mY(r?.[dY.FontSize])??c(pY.Dimension,fY.LabelName,hY.FontSize)??oz,fontFamily:r?.[dY.FontFamily]??c(pY.Dimension,fY.LabelName,hY.FontFamily)??az,fontWeight:yY(r?.[dY.FontStyle],sz),fontStyle:bY(r?.[dY.FontStyle]),textDecoration:xY(r?.[dY.FontStyle]),color:gY(e,r?.[dY.FontColor])??c(pY.Dimension,fY.LabelName,hY.FontColor)??hj.TEXT,background:f,hoverBackground:l_(f,LT),activeBackground:l_(f,AT)},dimensionValues:{fontSize:mY(i?.[dY.FontSize])??c(pY.Dimension,fY.LabelValue,hY.FontSize)??oz,fontFamily:i?.[dY.FontFamily]??c(pY.Dimension,fY.LabelValue,hY.FontFamily)??az,fontWeight:yY(i?.[dY.FontStyle],void 0),fontStyle:bY(i?.[dY.FontStyle]),textDecoration:xY(i?.[dY.FontStyle]),color:gY(e,i?.[dY.FontColor])??c(pY.Dimension,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,i?.[dY.Background])??c(pY.Dimension,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},measureValues:{fontSize:mY(o?.[dY.FontSize])??c(pY.Measure,fY.LabelValue,hY.FontSize)??oz,fontFamily:o?.[dY.FontFamily]??c(pY.Measure,fY.LabelValue,hY.FontFamily)??az,fontWeight:yY(o?.[dY.FontStyle],"normal"),fontStyle:bY(o?.[dY.FontStyle]),textDecoration:xY(o?.[dY.FontStyle]),color:gY(e,o?.[dY.FontColor])??c(pY.Measure,fY.LabelValue,hY.FontColor)??cz.FontSecondary,background:gY(e,o?.[dY.Background])??c(pY.Measure,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},measureLabels:{fontWeight:yY(a?.[dY.FontStyle],"normal"),fontStyle:bY(a?.[dY.FontStyle]),textDecoration:xY(a?.[dY.FontStyle]),color:gY(e,a?.[dY.FontColor])??c(pY.Measure,fY.LabelName,hY.FontColor)??cz.FontSecondary,background:gY(e,a?.[dY.Background])??c(pY.Measure,fY.LabelName,hY.BackgroundColor)??cz.Transparent},totalValues:{fontWeight:yY(s?.[dY.FontStyle],sz),fontStyle:bY(s?.[dY.FontStyle]),textDecoration:xY(s?.[dY.FontStyle]),color:gY(e,s?.[dY.FontColor])??c(pY.Total,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,s?.[dY.Background])??c(pY.Total,fY.LabelValue,hY.BackgroundColor)??cz.Transparent},nullValues:{fontWeight:yY(l?.[dY.FontStyle],"normal"),fontStyle:bY(l?.[dY.FontStyle]),textDecoration:xY(l?.[dY.FontStyle]),color:gY(e,l?.[dY.FontColor])??c(pY.Null,fY.LabelValue,hY.FontColor)??hj.TEXT,background:gY(e,l?.[dY.Background])??c(pY.Null,fY.LabelValue,hY.BackgroundColor)??cz.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:gY(e,u?.[dY.Border])??c(pY.Grid,fY.Grid,hY.BorderColor)??cz.DividerLight,divider:gY(e,u?.[dY.Divider])??c(pY.Grid,fY.Divider,hY.BorderColor)??cz.DividerDark,background:gY(e,u?.[dY.Background])??c(pY.Grid,fY.Grid,hY.BackgroundColor)??cz.Transparent},selectedColors:s_(e)};return h.headerCellHeight=Math.max(vY(h.header.fontSize,p),vY(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(vY(h.measureValues.fontSize,d),vY(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=vY(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,n)=>{const[,r,i]=_z(async()=>{const t=Bj(n.flags),r=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,i,o,Bz].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return i?(console.warn("Failed to load fonts:",i),!0):!r})(m,o,e),{direction:D}=M();CY([EY({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k(()=>{!C&&a&&!!w&&I&&cY(i,{selections:h,baseObjects:{rect:S,pageInfo:y,qPivotDataPages:w,updatePageInfo:b,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,c,C,w,E,i,I,g,v,y,b,d,l,u,m,e,D,t])},qY={version:"7.21.0",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:[]},TY=()=>({...qY,qHyperCubeDef:{...qY.qHyperCubeDef,qIndentMode:!1}})}}});
102
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,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(n=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),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(o),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+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Yj({exports:{}});const a_=(e,t=hN.TEXT,n=hN.WHITE)=>{const r=PN(e??""),i=PN(t),o=PN(n);return r.isInvalid()?t:function(e,t,n){const r=MN(e,t),i=MN(e,n);if(void 0!==r&&void 0!==i)return r>i?t:n}(r,o,i).getRGB()},s_=e=>{const t=e.getStyle("","","dataColors.selected")||hN.SELECTED,n=function(e,t){const n=PN(LN),r=PN(e),i=PN(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;const o=MN(n,r),a=MN(i,r),s=o>a||o>4.5;return!s&&a>3?i.getHex():s?LN:"#000000"}(t,hN.TEXT);return{background:t,color:n}},l_=(e,t)=>{const n=PN(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},u_=e=>{const t=PN(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},c_=e=>{e.stopPropagation(),e.preventDefault()},d_=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},p_=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const n=t.closest(".exploration-panel");if(!n)return!1;const r=n.getElementsByClassName("section-item-container");return Array.from(r).some(e=>"true"===e.getAttribute("data-dragging"))},f_=(e,t)=>{const{key:n,currentTarget:r}=e;if(r===t.current&&n===DT.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:n}=e;if(n!==t.current)return;const r=n.closest('[role="region"]')?.getElementsByTagName("button")[0];r&&d_(r)})(e,t);else{const e=r.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&d_(e)}},h_=(e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=t.sectionIndex??2;if(0===r)return void((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&d_(r)})(e,t);const i=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[r-1],o=i?.getElementsByClassName("exploration-item-focus").length??0;if(o>0){const e=i?.getElementsByClassName("exploration-draggable-icon")[o-1];e&&d_(e)}},m_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:c_(e),e.shiftKey?h_(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),i=r?.getElementsByClassName("exploration-item-focus")[0];if(!i){const e=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&d_(e))}d_(i)})(e,t);break;case DT.Down:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a+1<i?r?.getElementsByClassName("exploration-section-header")[a+1]:r?.getElementsByClassName("exploration-section-header")[0],o&&d_(o)})(e,t);break;case DT.Up:if(p_(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o=null;if(0===i)return;const a=t.sectionIndex??2;o=a-1>=0?r?.getElementsByClassName("exploration-section-header")[a-1]:r?.getElementsByClassName("exploration-section-header")[i-1],o&&d_(o)})(e,t);break;case DT.Enter:case DT.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},g_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),v_=({children:e,sectionIndex:t})=>{const r=qw(void 0!==t?BT(t):cN),i=Tw(void 0!==t?GT(t):dN),o=n.useRef(null),a={ref:o,toggleAllCheckboxes:i,checkState:r,sectionIndex:t};return fo.jsxs(sc,{ref:o,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{m_(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{i(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),fo.jsx(g_,{children:e})]})},y_=({sectionIndex:e})=>{const t=qw($T(e));return fo.jsx(v_,{sectionIndex:e,children:t})},b_=x((e,t)=>fo.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:fo.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"})})),x_=Sl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),S_=Sl(b_)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}})),w_=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,C_=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===DT.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},E_=e=>{const{currentTarget:t}=e,n=w_(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),i=e?.querySelector(".exploration-section-header");if(i)return i;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const i=r.getElementsByClassName(t);return i.length>0?i[i.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},I_=(e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&d_(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void d_(e)}n===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},D_=e=>{const t=e.key===DT.Down?(e=>{const{currentTarget:t,key:n}=e,r=w_(t),i=t.closest("li");let o=i?.nextElementSibling?.getElementsByClassName(r)[0];return o||(o=C_(t,n),o)?o:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):E_(e);t&&d_(t)},R_=(e,t)=>{const{key:n}=e;switch(n){case DT.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&d_(e))}const n=E_(e);n&&d_(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void d_(t);const r=E_(e);r&&d_(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return d_(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&d_(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&d_(n),!0}const i=C_(n,r);if(!i)return!1;d_(i)}return!0})(e,t);n?c_(e):e.stopPropagation()}break;case DT.Down:case DT.Up:if(p_(e))break;c_(e),D_(e);break;case DT.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}c_(e),I_(e,t);break;case DT.Space:c_(e),I_(e,t)}},P_=({children:e})=>fo.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),M_=({title:e,dragHandleRef:t,...r})=>{const[i,o]=Nw(wC),a=qw(Zw),s=n.useRef(null),l=n.useRef(null),u=n.useRef(null),c={id:r.id,itemIndex:r.itemIndex,toggleCheckedById:o,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:u},dragHandleRef:t};return n.useEffect(()=>{t&&s.current&&t(s.current)},[t]),fo.jsxs(sc,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),o(r.id)},onKeyDown:e=>{R_(e,c)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:e,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsxs(sc,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{R_(e,c)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${JT} inset`}},children:[fo.jsx(Oc,{checked:i.has(r.id),"aria-label":a("ChartExploration.ListItem.Label",e),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===r.id?"hidden":"visible"}}),fo.jsx(P_,{children:e})]}),fo.jsx(S_,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{R_(e,c)}})]})},L_=e=>{const t=qw(WT(e))??"";return fo.jsx(M_,{title:t,...e})},A_=()=>{const e=qw(HT),t=qw(VT),n=qw(nN),r=Tw(UT);return fo.jsx(wT,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:iN,headerRenderer:y_,itemRenderer:L_})},k_=({itemIndex:e})=>{const t=qw(sN(e));return fo.jsx(rN,{children:t})},O_=()=>{const e=qw(Zw);return fo.jsx(v_,{children:e("Common.Values")})},q_=e=>{const{itemIndex:t}=e,n=qw(sN(t));return fo.jsx(M_,{title:n,...e})},T_=()=>{const e=qw(lN),t=qw(uN),n=qw(tN),r=Tw(pN);return fo.jsx(sc,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:fo.jsx(wT,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:k_,headerRenderer:O_,itemRenderer:q_})})},N_=x((e,t)=>fo.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:fo.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"})})),j_=()=>{const[e,t]=Nw(Qw),r=qw(Zw),i=n.useRef(null),[o]=qw(uN),[a=0,s=0]=qw(VT),l=f(e=>{t(e.target.value)},[t]),u=0===e.length||0===a&&0===s&&0===o?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),o.toString());return fo.jsxs(sc,{ref:i,onKeyDown:e=>{f_(e,i)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[fo.jsx(x_,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),fo.jsx(Vp,{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:l,startAdornment:fo.jsx(xd,{position:"start",children:fo.jsx(N_,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},__=e=>{const t=_s(kf());return fo.jsx(Cl,{theme:t,children:fo.jsx(Pw,{children:fo.jsx(CC,{props:e,children:fo.jsxs(sc,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[fo.jsx(j_,{}),fo.jsx(A_,{}),fo.jsx(T_,{})]})})})})},F_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:__,classification:{tags:["exploration"],exclusive:!0}}};var z_=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(z_||{}),W_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(W_||{}),$_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}($_||{}),H_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(H_||{});const V_=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,B_=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,r="}",i="";switch(e.type){case $_.SEARCH:i=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case z_.BEGINNING_OF_WORD:t="*^",n="*";break;case z_.ENDS_WITH:t="*";break;case z_.STARTS_WITH:n="*";break;case z_.MATCHES_EXACTLY:break;case z_.CONTAINS:default:t="*",n="*"}const i=e.options.values?.[0]??"";return""!==i?`"${t}${i}${n}"`:""})(e);break;case $_.CONDITION:i=(e=>{const{options:t}=e,n=t?.mode===W_.GENERAL,r=t?.modifier?.type===H_.FIXED_VALUE,i=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===i.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let o,a,s="=";n&&r?(o=`${t.conditionField?.aggregator}(${V_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(o="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(o=`${t.conditionField?.aggregator}(${V_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${V_(t.firstValue?.field)})`):(o=`${V_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${V_(t.firstValue?.field)})`);const l=`${s}${o}${i[0]}${a}`;let u="";if(i.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${o}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${V_(t.secondValue?.field)})`,a=` and ${o}`):(e=`${t.secondValue?.aggregator}(total ${V_(t.secondValue?.field)})`,a=` and ${o}`),u=`${a}${i[1]}${e}`}return`"${l}${u}"`})(e);break;case $_.CLEAR_SELECTION:i=`[${e.field}]=`,t="",r="";break;case $_.VALUES:default:i=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==i&&n.push(`${t}${i}${r}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},G_=[];for(let e=0;e<256;++e)G_.push((e+256).toString(16).slice(1));let U_;const Y_=new Uint8Array(16);var K_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function X_(e,t,n){const r=(e=e||{}).random??e.rng?.()??function(){if(!U_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");U_=crypto.getRandomValues.bind(crypto)}return U_(Y_)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(G_[e[t+0]]+G_[e[t+1]]+G_[e[t+2]]+G_[e[t+3]]+"-"+G_[e[t+4]]+G_[e[t+5]]+"-"+G_[e[t+6]]+G_[e[t+7]]+"-"+G_[e[t+8]]+G_[e[t+9]]+"-"+G_[e[t+10]]+G_[e[t+11]]+G_[e[t+12]]+G_[e[t+13]]+G_[e[t+14]]+G_[e[t+15]]).toLowerCase()}(r)}const J_=()=>crypto?.randomUUID?.()??function(e){return K_.randomUUID&&!e?K_.randomUUID():X_(e)}(),Z_=1e3,Q_=1e3,eF=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,n=((e,t)=>{const n=new Set;for(const t of e){if(n.has(t))return!0;n.add(t)}const r=e.includes(-1),i=e.filter(e=>-1!==e);if(t){const n=r?t.length+1:t.length;if(e.length!==n)return!0}const o=[...i].sort((e,t)=>e-t);for(let e=0;e<o.length;e++)if(o[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);n&&(e.qInterColumnSortOrder=((e,t)=>{const n=[];if(t)for(let e=0;e<t.length;e++)n.push(e);return e.qMeasures.length>=2&&n.push(-1),n})(e,t))},tF=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},nF=e=>{if(!e)return;eF(e);const t=e.qDimensions,{qInterColumnSortOrder:n}=e;((e,t=[])=>{const n=t.filter(e=>-1!==e);for(let r=0;r<n.length;r++)if(-1!==n[r]&&n[r]!==r){const i=n[r],o=n.indexOf(r),a=n[o];tF(n,r,o),tF(e,r,o),tF(t,t.indexOf(i),t.indexOf(a))}})(t,n)},rF=R;class iF extends rF{#u;constructor(e,t){super(e),this.path=e.path,this.#u=t}async addDimension(e,t,n,r){if(!e||this.#c(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=J_()),r)return this.addAlternativeDimension(e,i,n);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,n,r)=>{const i=e.getDimensions(),o=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),nF(e.hcProperties),(-1===o||Number.isNaN(+o))&&(e.hcProperties.qNoOfLeftDims=i.length),n?((e,t,n,r)=>{if(!e)return;const{qInterColumnSortOrder:i,qNoOfLeftDims:o}=e,a=t.length,s=i.indexOf(-1),l=-1!==s,u=void 0!==r?r+(o||0):void 0;if(l&&void 0!==u&&s>=u?((e,t,n)=>{t.splice(n,1),t.push(e),t.splice(n+1,0,-1)})(a,i,s):i.push(a),void 0===r)t.push(n);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,n)}})(e.hcProperties,i,t,r):((e,t,n,r)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const i=e.qNoOfLeftDims,{qInterColumnSortOrder:o}=e,a=t.length,s=o.indexOf(-1),l=-1!==s&&i>0&&s<i;if(o.push(a),l)void 0===r?t.splice(i-1,0,n):s<r?t.splice(r-1,0,n):(t.splice(r,0,n),o.splice(s,1),o.splice(s+1,0,-1));else{const e=r??i;t.splice(e,0,n),-1!==s&&(o.splice(s,1),o.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,r),t})(this,e,i,n);return this.#d({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===n}),t}}async addDimensions(e,t,n){const r=[];for await(const i of e){const e=await this.addDimension(i,n,void 0,t);e&&r.push(e)}return r}addAlternativeDimension(e,t,n){if(!e||this.#c(e))return;const r=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=r.length);let i=n;return i=void 0===i?t?r.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+i:Math.min(i,this.hcProperties.excludedNoOfLeftDims),r.splice(i,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#d({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),e}async addFieldDimension(e,t,n,r={}){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,r.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const n=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const n=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}reinsertDimension(e,t,n){e.qDef.cId||(e.qDef.cId=J_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,n);return this.reinsertAlternativeDimension(e,n,t)}reinsertAlternativeDimension(e,t,n){const r=this.getDimensions(),i=this.getAlternativeDimensions();if(r.length>=Z_)return Promise.resolve();const o="number"==typeof t?t:i.length;return i.splice(o,0,e),this.#d({section:n?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,n){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,n)))}async removeDimension(e,t,n){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!n&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#p({cId:t.qDef.cId,section:n?"columns":"rows"}),t}const r=this.getDimensions(),i=this.properties.qHyperCubeDef.qNoOfLeftDims,o=this.hcProperties.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof o&&"number"==typeof i&&o+1<=i&&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=r.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;e.splice(n,1)})(this.hcProperties.qInterColumnSortOrder,e),nF(this.hcProperties),this.#p({cId:s.qDef.cId,section:n?"columns":"rows"}),s}#c(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const n=[];for await(const r of e){const e=await this.addMeasure(r,t,void 0,!0);e&&n.push(e)}return n}addAlternativeMeasures(e,t){if(this.#f(e))return;const n=this.getAlternativeMeasures(),r=void 0===t?n.length:t,i=n.splice(r,0,e);return this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),i}async addMeasure(e,t,n,r){if(this.#f(e))return;if(e.qDef.cId||(e.qDef.cId=J_()),t)return this.addAlternativeMeasures(e,n);r||delete e.qDef.qNumFormat;const i=this.getMeasures();if(i.length<this.maxMeasures()){const t=1===i.length;return void 0!==n&&n>=0?i.splice(n,0,e):i.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#h({cId:e.qDef.cId,addLast:void 0===n}),e))}return i.length<Q_?(this.getAlternativeMeasures().push(e),this.#h({cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures(),i=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=J_()),t=void 0!==t?t:n.length,n.length<this.maxMeasures()){if(n.splice(t,0,e),2===n.length){-1===i.indexOf(-1)&&i.push(-1)}this.#h({cId:e.qDef.cId})}else n.length<Q_&&(t=r.length,r.splice(t,0,e),this.#h({cId:e.qDef.cId}));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#p({cId:t.qDef.cId,section:"measures"}),t}const n=this.getMeasures();let r,i,o;if("number"==typeof e&&e<n.length){r=2===n.length,i=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;r&&(o=t.indexOf(-1),t.splice(o,1),this.hcProperties.qNoOfLeftDims&&o+1<=this.hcProperties.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(i=this.getAlternativeMeasures().splice(e-n.length,1)[0]);if(i)return this.#p({cId:i.qDef.cId,section:"measures"}),i}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#f(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#m("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#m("columns"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#g(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#v(e){return[...this.#g(e)]}#y(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#b(e){const t=({qDef:t})=>t.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#x(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#m(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:n}=this.hcProperties;if(this.#S())return"columns"===e?t:[];switch(e){case"rows":return-1===n?t:t.slice(0,n);case"columns":return-1===n?[]:t.slice(n);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#S(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#w(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#S())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#C(e,t=!0){const n=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(n);const r=this.#m(e),i=this.getDimensions(),o=r.map(e=>-1===e?-1:i[e]);switch(e){case"rows":return o.concat(t?this.getAlternativeRowDimensions():[]).map(n);case"columns":return o.concat(t?this.getAlternativeColumnDimensions():[]).map(n);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],n=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const r=t.filter((e,n)=>t.indexOf(e)!==n);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:r,section:e,chartId:n}),!0}const r=this.#C(e);if(t.length!==r.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:n,fieldIds:r,rankedList:t,diff:new Set(r).symmetricDifference(new Set(t))}),!0;const i=r.filter(e=>!t.includes(e));if(i.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:i,section:e,chartId:n}),!0;const o=this.#C(e,!1),a=t.filter(e=>o.includes(e)),s=o.filter((e,t)=>e!==a[t]);return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:n,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#E({section:e});case"measures":return this.#I();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#E({section:e}){const t=this.getDimensions(),n=this.#m(e),r="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),i=n.map(e=>-1===e?-1:t[e].qDef.cId);return i.push(...r.map(e=>e.qDef.cId)),this.#y(e,i)}#I(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#y("measures",e)}#D({section:e,cId:t,fields:n,addLast:r}){const i=this.#g(e),o=n.findIndex(e=>e.qDef.cId===t),a=n[o+1]?.qDef.cId,s=n[o-1]?.qDef.cId;if(r)i.push(t);else if(o>=0)if(a){const e=i.indexOf(a);i.splice(e,0,t)}else if(s){const e=i.indexOf(s);i.splice(e+1,0,t)}else i.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#d({section:e,cId:t,alternative:n=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#E({section:e});let i=[];return i="columns"===e?n?this.getAlternativeColumnDimensions():this.getColumnDimensions():n?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#D({section:e,cId:t,fields:i,addLast:r})}#h({cId:e,alternative:t=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#I();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#R(),this.#D({section:"measures",cId:e,fields:r,addLast:n})}#R(){const e=this.#g("rows"),t=this.#g("columns");this.#w("rows")&&!e.includes(-1)?e.push(-1):this.#w("columns")&&!t.includes(-1)&&t.push(-1)}#P(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#g("rows"),t=this.#g("columns"),n=e.indexOf(-1),r=t.indexOf(-1);-1!==n&&e.splice(n,1),-1!==r&&t.splice(r,1)}#p({cId:e,section:t}){const n=this.#g(t),r=n.indexOf(e);-1!==r&&(n.splice(r,1),this.#P())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t);if(void 0===i)return;const o=n.slice(r+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===o);await this.addAlternativeMeasures(i,-1===a?void 0:a),this.#y("measures",n)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),n=this.#v("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t,!0);if(void 0===i)return;const o=this.getMeasures().map(e=>e.qDef.cId),a=n.slice(r+1).find(e=>o.includes(e)),s=o.findIndex(e=>e===a);await this.addMeasure(i,!1,-1===s?void 0:s),this.#y("measures",n)}async moveDimensionToAlternative(e){const t=this.#b(e),n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!1,o);if(void 0===a)return;const s=r.slice(i+1).find(e=>this.getAlternativeDimensions().some(({qDef:t})=>t.cId===e));let l=this.getAlternativeDimensions().findIndex(({qDef:e})=>e.cId===s);l=-1===l?void 0:l;void 0!==this.addAlternativeDimension(a,o,l)&&this.#y(t,r)}async moveDimensionFromAlternative(e){const t=this.#b(e),n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#v(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!0,o);if(void 0===a)return;const s=this.#C(t,!1),l=r.slice(i+1).find(e=>s.includes(e));let u=s.findIndex(e=>e===l);u=-1===u?void 0:u;void 0!==await this.addDimension(a,o,u)&&this.#y(t,r)}movePseudoDimension({toIndex:e,toSection:t}){const n=this.#b(-1);if(null===n)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const r="columns"===t,i=n===t,o=this.#v(t);if(i){const e=o.indexOf(-1);o.splice(e,1)}else{const i=this.#g(n),o=i.indexOf(-1);if(-1===o)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:n});i.splice(o,1),this.hcProperties.qNoOfLeftDims=r?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-o.slice(0,e).filter(e=>this.#x(e)).length,s=r?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),o.splice(e,0,-1),this.#y(t,o)}async moveDimension({cId:e,toIndex:t,toSection:n}){const r=this.#b(e),i=this.#x(e);if(null===r)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const o=(i?this.getAlternativeDimensions():this.getDimensions()).findIndex(({qDef:t})=>t.cId===e);if(-1===o)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:n});const a=this.#v(n),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter(e=>this.#x(e)!==i).length,u="columns"===n,c="columns"===r,d=await this.removeDimension(o,i,c);if(void 0===d)return;void 0!==await this.addDimension(d,u,l,i)&&(a.splice(t,0,e),this.#y(n,a))}async moveMeasure({cId:e,toIndex:t}){const n=this.#x(e),r=(n?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===r)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const i=this.#v("measures"),o=i.indexOf(e);-1!==o&&i.splice(o,1);const a=t-i.slice(0,t).filter(e=>this.#x(e)!==n).length,s=await this.removeMeasure(r,n);if(void 0===s)return;void 0!==await this.addMeasure(s,n,a)&&(i.splice(t,0,e),this.#y("measures",i))}getLabels(){return this.getMeasures().filter(e=>!e.qLibraryId&&!!e.qDef.qLabel).map(e=>e.qDef.qLabel)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,i=Array.isArray(this.properties.filters)?this.properties.filters:[],o={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:J_(),qTags:Array.isArray(t)?t:[],isNumeric:n};return i.push(o),this.properties.filters=i,this.properties.qHyperCubeDef.qContextSetExpression=B_(i),o}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#M(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=B_(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const n=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,n)=>e.includes(n));for(const e of n)this.#M(e);return t}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var oF={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Ae});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=y(c(r[0],i),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),p=c(r[1],i),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,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.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});i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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={},R=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(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 n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?o:e[t],e=e[n||t]}}),e}function k(e,t){var n=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){k(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!k(e[r],t[r]))return!1;return!0}return e===t}D.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(i){var o=function(e){return e?I({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);k(o,a)||L(t,i)||(M(a)?r.push({op:"add",path:s,value:o}):P(o)&&P(a)?r=r.concat(D.generate(a,o,s)):R(o)&&R(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(k(t,i))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(D.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))}),Object.keys(e).forEach(function(i){M(t[i])&&!L(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})}),r},D.apply=function(e,t){t.forEach(function(t){var n,r,i=A(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(R(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(R(a)&&R(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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[e]}),I(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=A(e,t.from);R(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(R(i)?i.splice(+o,1):delete i[o])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},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,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(i,!0)):Promise.resolve()};var T="accumulation";function N(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)return n[r]}function j(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===T)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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 n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=N(t,e);return o&&!o.disabled}};return n}};var z="movingAverage";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function $(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=r.showExcludedValues?w.getExcludedComp({modifier:r,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]:{},n={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 n=W(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=W(t,e);return n&&!n.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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(z))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):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]:{},n={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,n){var r=G(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e}),e})}},show:function(t){var n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(B))return!1;var o=G(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,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]:{},n={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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach(function(t){void 0===e[t]&&(e[t]=oe[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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},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=o(e,fe);return void 0!==t?t:o(e,pe)},getExpressionRef:function(e){return void 0!==o(e,fe)?fe:pe},getLibraryIdRef:function(e){return o(e,me)?me:he},getLibraryId:function(e){return o(e,me)||o(e,he)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(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",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,ye,o(e,ve)),n(e,xe,o(e,be)),n(e,Ce,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,ve,o(e,ye)),n(e,be,o(e,xe)),n(e,Se,o(e,Ce)),n(e,we,o(e,Ee)),o(e,Ie)&&o(e,De)&&n(e,Ie,o(e,De)),delete e.qDef.base)},isValid:function(e){var t=o(e,ye),n=o(e,xe);return void 0!==t||void 0!==n}};const Pe=Re;function Me(e){return Me="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},Me(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:Ne,getActiveModifier:je,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Le[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))}),i&&!o},ifEnableTotalsFunction:_e};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;ke[n.id]=ke[n.id]||{isFirstTime:!0};var u=ke[n.id].isFirstTime;if(ke[n.id].isFirstTime=!1,r&&"object"===Me(r))return qe({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=o(c,"qHyperCube.qMeasureInfo"),f=ke[n.id].lastReloadTime;if(ke[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);$e(r);var i=Qe(r);return Ye({model:n}).then(function(t){return Ke({libraryIds:i,model:n}).then(function(i){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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),qe({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then(function(){var e=t()(!0,{},r);return Fe(r).forEach(function(e){return Te(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function qe(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),$e(i);var p=Qe(i);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Te(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ye({model:i,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then(function(i){n.forEach(function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(n)||Pe.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):Te(n)})})})}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)})})}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!Le[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:n,layout:r})})}function je(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var n=je(e);n&&(void 0!==n.outputExpression&&We(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(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,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!Le[e.type])&&(void 0===i[e.type]&&(i[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),i[e.type])})}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then(function(e){i.dimensionList=e});r.push(o);var a=t.app.getFieldList().then(function(e){i.fieldList=e});return r.push(a),Promise.all(r).then(function(){return i})}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),o.forEach(function(e){var t=n.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,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):q(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return i}):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach(function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var o=Be(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}}),o(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=o(e,n)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach(function(e){i[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach(function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),ke[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>$e});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},y=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var D=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},L=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},A=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},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,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,i.dimensions.length,D),l=I(a.min,i.dimensions.length,0);return{maxDimensions:I(o.max,s,D),minDimensions:I(o.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]}),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(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 R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(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),r.dimensions.added(e,n)})}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){o.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,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=_({exportFormat:t,initialProperties:r,hypercubePath:u}),v=o.getValue(r,u||"").qHyperCubeDef,y=o.getValue(g,u||"").qHyperCubeDef,b=N({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,R=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:R}),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),M(g,t,r),m.qProperty=g;var P=o.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:P}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,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 n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(U(a,t,r,i),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 o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),p=o.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,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},he=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.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),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=o.getValue(d,"visualization"),f=o.getValue(d,"qHyperCubeDef.qDimensions",[]),h=o.getValue(d,"color.mode",""),m=o.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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(r)&&t[i].type[r]++,t[i].type.total++}}),t}(a);l.length?(o&&(t=l.filter(function(e){return e.type[o]>0}).sort(function(e,t){return t.type[o]-e.type[o]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(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,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Ce(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Ce(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Re="conditionalColoring",Pe="measures",Me="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Re,arrayName:Pe,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Me,arrayName:Pe,quarantineName:Re})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="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:Ne,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:_e,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Ne,itemPath:Fe}),Ie({properties:e,arrayPath:je,quarantineName:ze,arrayName:_e,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),r.default})()}(oF);var aF=kr(oF.exports);const sF="qHyperCubeDef.qMeasures",lF="measures",uF="qHyperCubeDef.qDimensions",cF="dimensions",dF="qDef.representation",pF="tableRepresentation",fF="qDef.conditionalColoring",hF="conditionalColoring",mF="qMiniChartDef",gF="miniChartDef",vF=e=>{aF.unquarantineArrayProp({properties:e,arrayPath:uF,itemPath:dF,arrayName:cF,quarantineName:pF}),aF.unquarantineArrayProp({properties:e,arrayPath:sF,itemPath:dF,arrayName:lF,quarantineName:pF}),aF.unquarantineArrayProp({properties:e,arrayPath:sF,itemPath:fF,arrayName:lF,quarantineName:hF}),aF.unquarantineArrayProp({properties:e,arrayPath:sF,itemPath:mF,arrayName:lF,quarantineName:gF})},yF=e=>{aF.quarantineArrayProp({properties:e,arrayPath:uF,itemPath:dF,arrayName:cF,quarantineName:pF}),aF.quarantineArrayProp({properties:e,arrayPath:sF,itemPath:dF,arrayName:lF,quarantineName:pF}),aF.quarantineArrayProp({properties:e,arrayPath:sF,itemPath:fF,arrayName:lF,quarantineName:hF}),aF.quarantineArrayProp({properties:e,arrayPath:sF,itemPath:mF,arrayName:lF,quarantineName:gF})};function bF(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(i)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}const xF="qHyperCubeDef.qDimensions",SF="dimensions",wF="qOtherTotalSpec.qTotalMode",CF="totalMode",EF={quarantine(e){aF.quarantineArrayProp({properties:e,arrayPath:xF,quarantineName:CF,arrayName:SF,itemPath:wF})},unquarantine(e){aF.unquarantineArrayProp({properties:e,arrayPath:xF,quarantineName:CF,arrayName:SF,itemPath:wF})}};function IF(e){const t=bF(e);return(e,n,r,i)=>{const o=aF.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:i}),a=o.qProperty.qHyperCubeDef.qDimensions.length,s=o.qProperty.qHyperCubeDef.qMeasures.length;let l,u=o.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&Xj(o,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=o.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],Xj(o,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),o.qProperty.qLayoutExclude.quarantine&&delete o.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=o.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&Xj(o,"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&&(aF.unquarantineProperty(o.qProperty,"noOfLeftDims"),aF.unquarantineProperty(o.qProperty,"excludedNoOfLeftDims "))}return aF.unquarantineProperty(o.qProperty,"rankedList"),aF.conditionalShow.unquarantine(o.qProperty),EF.unquarantine(o.qProperty),vF(o.qProperty),aF.unquarantineProperty(o.qProperty,"pivotTableIndentMode"),o}}function DF(e,t){const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,r=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const o=aF.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=o.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;Xj(o,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",r),aF.quarantineProperty(o.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete o.properties.qHyperCubeDef.qNoOfLeftDims,aF.quarantineProperty(o.properties,"qHyperCubeDef.rankedList","rankedList"),delete o.properties.qHyperCubeDef.rankedList;const c=o.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,Xj(o,"properties.qHyperCubeDef.qInterColumnSortOrder",u),Xj(o,"data.0.interColumnSortOrder",u),o.properties.qLayoutExclude.quarantine&&delete o.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return aF.quarantineProperty(o.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),aF.quarantineProperty(o.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),aF.conditionalShow.quarantine(o.properties),EF.quarantine(o.properties),yF(o.properties),o}const RF=e=>({dimensions:{min:1,max:1e3,description(t,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(i)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),PF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let MF=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}({}),LF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const AF=e=>{switch(e?.type){case"url":return MF.Link;case"image":return MF.Image;case"indicator":return MF.Indicator;case"miniChart":return MF.MiniChart;default:return MF.Text}},kF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:i}=r.properties.qHyperCubeDef,o=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i)&&o.push({value:"image",translation:"Object.Table.Representation.Image"}),o}}),OF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>AF(e.qDef.representation)===MF.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,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:i,qDimensions:o,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;r?.indexOf(-1);const l=o?.indexOf(e)??1/0;return(r?.slice(0,i)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},qF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:kF({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>AF(e.qDef.representation)===MF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>AF(e.qDef.representation)===MF.Link&&e.qDef.representation?.urlPosition===LF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>AF(e.qDef.representation)===MF.Link&&e.qDef.representation?.urlPosition===LF.Attribute},...OF(n)}},TF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,i=!r?.("tableImages")&&t[MF.Image],o=!r?.("qMiniChartDef")&&t[MF.MiniChart],a=!r?.("tableIndicators")&&t[MF.Indicator],s=i&&t[MF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&i||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),o&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>AF(e.qDef.representation)===MF.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:o?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let NF=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),jF=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),_F=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),FF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const zF="image",WF=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let i=n.properties.qHyperCubeDef.qNoOfLeftDims??-1;r>-1&&r<i&&(i-=1);const o=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===o||o>=i},$F=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:MT.Auto,translation:"Common.Auto"},{value:MT.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===MT.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===MT.Percentage}}),HF=({key:e,translation:t,env:n})=>{const r=!n.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=>!r||"labelTextAlign"===e||t.qDef.representation?.type!==zF},[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&&(!r||"labelTextAlign"===e||t.qDef.representation?.type!==zF)}}},VF="TOTAL_OFF",BF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:jF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:jF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},GF="TOTAL_OFF",UF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:jF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:jF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:jF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},YF=e=>{const{translator:t,anything:n,flags:r}=e,i=(e=>{const{translator:t,anything:n}=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:VF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:VF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&WF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==VF&&WF(e,0,r)},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:BF,...HF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...HF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...qF(e),...$F()}}}},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:BF,...HF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...HF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...TF(e,{[MF.Image]:!0,[MF.Indicator]:!0}),...$F()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return r.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?i:{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:GF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:GF,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&WF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==GF&&WF(e,0,r)},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:UF,...HF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...HF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...qF(e),...$F()}},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:UF,...HF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...HF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...TF(e,{[MF.Image]:!0,[MF.ImagesInIndentMode]:!0,[MF.Indicator]:!0}),...$F()}},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"}}}}}},KF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,i){const o=r?.(e,t,i)??!1,a=i.theme.current(),s=n(a,o);return{color:"transparent"===s?"none":s}}}),XF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},JF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,i,o)=>{const a=o.theme.current();return((e,t,n,r)=>{const i=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],a=Array.from(new Set([e,i,...o])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>XF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...BN(r).filter(e=>!a.includes(e)).map(e=>XF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),ZF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],QF=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,i)=>{const o=i.theme.current();return((e,t,n)=>{const r=t.fontSize,i=t.fontSizes??[],o=Array.from(new Set([e,r,...i])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...o.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>XF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...ZF.filter(e=>!o.includes(e)).map(e=>XF(e,!1))];return[...a,...s.length>1?s:[]]})(t(o),o,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),ez=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:i,translation:o,disableNoneCallback:a})=>({component:"panel-section",translation:o??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:JF({ref:`${e}.fontFamily`,themeAccessor:t=>i(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:QF({ref:`${e}.fontSize`,themeAccessor:t=>i(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:KF(`${e}.fontColor`,void 0,t=>i(t,e,"color")??t.color)}},background:KF(`${e}.background`,"properties.background",(t,n)=>{const r=n?hN.WHITE:hN.TRANSPARENT;return i(t,e,"backgroundColor")??r},a)}}}}),tz=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:KF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:KF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),nz=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),rz="12px",iz="Source Sans Pro, sans-serif",oz="600",az=15e3,sz=4/3;let lz=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),uz=function(e){return e.Solid="solid",e.None="none",e}({});const cz={display:"flex",justifyContent:"center",alignItems:"center"},dz={borderStyle:"solid"},pz={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},fz={lineHeight:sz,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},hz=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),mz=(e,t)=>e>0?`${e}px ${uz.Solid} ${t}`:uz.None,gz=(e,t,n,r,i)=>{const o=Number(!t||i?.right),a=Number(!e||i?.bottom);return{borderRight:"rtl"!==r?mz(o,n):uz.None,borderBottom:mz(a,n),borderLeft:"rtl"===r?mz(o,n):uz.None,borderTop:uz.None}},vz=(e,t,n,r,i,o,a)=>{const s=gz(t,r,i,o,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=mz(2,i)),n||(s.borderLeft="rtl"!==o?mz(1,i):"none",s.borderRight="rtl"===o?mz(1,i):"none")),s},yz=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=mz(1,n)),t&&(r.borderRight=mz(1,n)),r},bz=(e,t,n)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[n];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[n];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[n];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[n];default:return}},xz=(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:ez({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:bz}),dimensionValueSection:ez({section:"dimensionValues",translator:e,flags:t,getThemeValue:bz}),measureValueSection:ez({section:"measureValues",translator:e,flags:t,getThemeValue:bz}),measureLabelSection:tz({section:"measureLabels",getThemeValue:bz}),totalValuesSection:tz({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:bz}),nullValuesSection:tz({section:"nullValues",fallbackBackground:lz.NullValueBackground,getThemeValue:bz}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:nz("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:nz("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:KF("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??lz.DividerLight),divider:KF("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??lz.DividerDark),background:KF("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??lz.Transparent)}}}}}}]}),Sz=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}}},wz=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[xz(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:MT.Auto,translation:"Common.Auto"},{value:MT.Pixels,translation:"Object.Table.Column.Pixels"},{value:MT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:MT.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:PT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===MT.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...Sz(t)}}),Cz="auto",Ez={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:Cz,translation:"Object.Table.SortingInSearch",options:[{value:Cz,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function Iz(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:YF(e),sorting:Ez,addons:PF,settings:wz(t,n)}}}function Dz(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:Iz(e),importProperties:IF(e),exportProperties:DF,exploration:F_(e),data:RF(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new iF(t,e.translator):void 0}}const Rz=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Pz(e,t){return P(()=>e,t)}const Mz={},Lz=e=>{const t=P(()=>({current:Mz}),[]);return t.current=t.current===Mz?e:t.current,t},Az=e=>!!e&&0===PN(e).a,kz="#grid",Oz=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},qz=(e,t,n,r,i)=>{const o=Oz(".qv-object .qv-inner-object",n),a=Oz(".qv-panel-sheet",n),s=Oz(kz,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,i=t?.bgColor?.useColorExpression;if(i&&n)return u_(n);if("none"===r)return"transparent";if(void 0===r)return;const o=PN(r);return o.setAlpha(t?.bgColor?.color?.alpha??o.a),o.getRGBA()})(e),u=r?.(t),c=i?.(t),d=l||u||o||c,p=Az(d),f=!Az(h=p?s:d)&&a_(h,hN.TEXT,hN.DARK_MODE_TEXT)===CN(hN.DARK_MODE_TEXT);var h;const m=((e,t,n,r=hN.WHITE)=>e&&!Az(e)?e:Az(t)?n&&!Az(n)?n:r:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},Tz=(e,t,n,r)=>{const i=O(),o=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=A([]);return k(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(kz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return P(()=>({...i,background:qz(e,i,t,n,r)}),[i.name(),t,n,r,e,o])};function Nz(e,t){const n=P(()=>({isLoading:!0}),t),[r,i]=L(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[r,n.isLoading,i]}const jz=3,_z=/\n/g;function Fz(e,t,n){let r=0,i=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=i;){const o=Math.floor((r+i)/2),a=e.slice(0,o),s=e.slice(0,o-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(o-1)||null;if(l===t)return e.slice(o)||null;l<t?r=o+1:i=o}return null}function zz({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i){const{maxNbrLinesOfText:o=jz,allowLineBreaks:a=!0}=i??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=v(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i)=>{const{maxNbrLinesOfText:o=jz,allowLineBreaks:a=!0}=i??{};return()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n} ${r} ${e} ${t}`;const s=i.measureText.bind(i),l=Jj(e=>{if(void 0===e)return 0;if(a){const t=e.split(_z).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(_z," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=Jj(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(_z):[e];let i=0;for(const e of r){let n=e;do{i+=1,n=Fz(n,t,u)}while(null!==n&&i<o);if(i>=o)break}return i},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}})({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:o,allowLineBreaks:a})(),[n,r,e,t,o,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var Wz,$z=E;Wz=$z.createRoot,$z.hydrateRoot;const Hz="Source Sans Pro, sans-serif";function Vz(e,t){const[n,r]=m(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Bz={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 Gz=({translator:e})=>(v(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Bz).forEach(t=>{e.add(Bz[t])})}}(e)},[e]),e),Uz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Yz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Kz=Sl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...Uz},"&::-moz-range-track":{...Uz},"&::-ms-track":{...Uz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Yz},"&::-moz-range-thumb":{...Yz},"&::-ms-thumb":{...Yz},"&: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"}})),Xz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:i,updateWidthCallback:o,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=Gz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=r&&!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}};Vz(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,PT.PixelsMin);h.current.columnWidth=t,o(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:MT.Pixels,pixels:h.current.columnWidth};a(e)}u?.(!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=>{c_(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=>{c_(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!r&&s?e=>{if(e.key===DT.Left||e.key===DT.Right){c_(e);const t=5,n=e.key===DT.Left?t:-t,r="rtl"===p?n:-n;u?.(!0),x(h.current.columnWidth+r)}else e.key===DT.Space||e.key===DT.Enter?(c_(e),s(e),u?.(!1),S()):e.key===DT.Esc&&(c_(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,R=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return fo.jsx(Kz,{style:y,hoverColor:i,isLastColumn:n,className:RT,"data-testid":RT,onMouseDown:e=>{c_(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:MT.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(c_(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":R,"aria-valuemin":PT.PixelsMin,"aria-valuemax":PT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Jz=x((e,t)=>fo.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:fo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Zz=Sl(sc,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),Qz=Sl(Jz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),eW=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),tW=Sl(td)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),nW=Sl(Rp)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),rW=Sl(Rp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"})),iW=Sl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),oW=Sl("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),aW=Sl(Cu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),sW=Sl(Kd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),lW=x((e,t)=>fo.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:fo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),uW=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?uW(t):t:e.parentElement?.children?.[0]},cW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?cW(t):t},dW=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===DT.Down||t===DT.Up){const n=e=>t===DT.Down?uW(e):cW(e);e.preventDefault(),e.stopPropagation();let i=n(r);for(;i;){if("true"!==i.ariaDisabled){i.focus();break}i=n(i)}}},pW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let fW={};const hW=({autoFocus:e,id:t,onClick:r,itemTitle:i,icon:o,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=n.useRef(null),v=f(e=>{e.stopPropagation(),h(!1)},[h]);return fo.jsxs(fo.Fragment,{children:[fo.jsxs(rW,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),fW={}),s?.length&&(h(!0),fW[i]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:dW,children:[u?fo.jsx(iW,{direction:c,isPagination:d}):null,fo.jsxs(oW,{children:[fo.jsx(sW,{direction:c,isPagination:d,children:fo.jsx(o,{})}),fo.jsx(aW,{variant:"body2",children:i})]}),s?.length?fo.jsx(lW,{}):null]},t),s?.length?fo.jsx(yW,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:pW(s,fW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},mW=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&fo.jsx(nW,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>fo.jsx(hW,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),gW=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((i,o)=>[mW({menuGroup:i,isSubMenu:t,direction:n,isPagination:r}),o<e.length-1?fo.jsx(tW,{"data-testid":"group-divider",variant:"middle"}):void 0]),vW={appear:0,enter:0,exit:0},yW=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:i,anchorOrigin:o,isSubMenu:a,direction:s,isPagination:l})=>r.length?fo.jsx(eW,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:vW,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...o?{anchorOrigin:o}:{},...i?{transformOrigin:i}:{},dir:s,children:gW({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,bW=(e,t)=>e.some(e=>t[e]>0),xW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},SW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[i,o]=m(null),[a,s]=m(xW);return Vz(()=>{e||(s(xW),o(null))},[e]),d(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let i,a=!1;const l=()=>{i&&r.destroySessionObject(i)};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,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};i=c.qInfo?.qId,a?l():(o(u),d&&s((e=>({canSelectAll:bW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:bW(["qSelected"],e),canSelectPossible:bW(["qOption"],e),canSelectAlternative:bW(["qAlternative"],e),canSelectExcluded:bW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:i,selectionActionsEnabledStatus:a}},wW=x((e,t)=>fo.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:fo.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"})})),CW=x((e,t)=>fo.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:fo.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"})})),EW=x((e,t)=>fo.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:fo.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"})})),IW=x((e,t)=>fo.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:fo.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"})})),DW=x((e,t)=>fo.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:fo.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"})})),RW=x((e,t)=>fo.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:fo.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"})})),PW=x((e,t)=>fo.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:fo.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"})})),MW=x((e,t)=>fo.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:fo.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"})})),LW=x((e,t)=>fo.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:fo.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"})})),AW=x((e,t)=>fo.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:fo.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"})})),kW=x((e,t)=>fo.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:fo.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"})})),OW=x((e,t)=>fo.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:fo.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"})})),qW=x((e,t)=>fo.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:fo.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"})})),TW=x((e,t)=>fo.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:fo.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 NW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jW="/qListObjectDef",_W=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:i,interactions:o,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[NW.Sorting]){const{isActivelySorted:n,sortDirection:o}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let i=!n&&!e||"D"===t,o=!n&&!e||"A"===t;return r&&(i=!1,o=!1),{ascendingEnabled:i,descendingEnabled:o}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),r(!1)},icon:wW,enabled:a,isActive:!!n&&"A"===o,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),r(!1)},icon:IW,enabled:s,isActive:!!n&&"D"===o,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:MW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:DW,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&o?.select){const i=[];n[NW.Searching]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:LW,enabled:!0}]}]),!e.isLocked&&n[NW.Selections]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:TW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(jW))},icon:AW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(jW))},icon:qW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(jW))},icon:kW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(jW))},icon:OW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(jW))},icon:CW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:PW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:RW,enabled:!0}]}]),i.length>0&&f.push(...i)}return n[NW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:EW,enabled:!0}]}]),f},FW=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:i,interactions:o,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=CT})=>{const x=l(null),S=Gz({translator:i}),{qLibraryId:w,fieldId:C,headTextAlign:E}=r,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:R}=SW({open:e,headerData:r,app:I,qStateName:d?.qStateName}),P=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:r}),M=(({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:i,onPopoverClose:o})=>f(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===i?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:i,onPopoverClose:o})}},[e,t,n,r?.qStateName,i,o]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f(e=>{e.stopPropagation(),t(!1)},[t]),A=f(e=>{e.stopPropagation(),t(e=>!e)},[t]);return o.active?fo.jsxs(Zz,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?fo.jsx(Qz,{height:b,className:ET,"data-testid":ET,isInteractionsActive:o.active??!1,children:fo.jsx(Jz,{})}):null,fo.jsx(yW,{open:e,anchorEl:!1===y?x.current:n.current,onClose:L,menuGroups:_W({headerData:r,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:M,interactions:o,fieldInstance:D,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},zW=e=>e.isDark?{background:e.color,borderColor:hN.DARK_MODE_BORDER,color:hN.DARK_MODE_TEXT,disabledColor:hN.DARK_MODE_DISABLED,iconColor:hN.DARK_MODE_TEXT}:{background:e.color,borderColor:hN.BORDER_MEDIUM,color:hN.TEXT,disabledColor:hN.DISABLED},WW=Sl(sc,{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}`})),$W=Sl(lf,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),HW=Sl(vc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),VW=Sl(Cu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),BW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:i=!0})=>{const o=v(()=>zW(r.background),[r]);if(!n.active)return null;const a=i?fo.jsx(WW,{footerStyle:o,children:e}):null;return t?E.createPortal(e,t):a},GW=u({}),UW=()=>h(GW),YW=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v(()=>zW(p.background),[p]),x=i?i.getBoundingClientRect().width:h.width,S=Gz({translator:d}),w=v(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,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:g}),[t,n,r,i,o,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return fo.jsx(GW.Provider,{value:w,children:e})};let KW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XW=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 JW=x((e,t)=>fo.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:fo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),ZW=x((e,t)=>fo.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:fo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),QW=x((e,t)=>fo.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:fo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),e$={FirstPage:ZW,PreviousPage:JW,NextPage:lW,LastPage:QW,FirstPageRTL:QW,PreviousPageRTL:lW,NextPageRTL:JW,LastPageRTL:ZW},t$=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:i,handleChangePage:o,translator:a,interactions:s,tabIndex:l}=UW(),u=n.concat("rtl"===r?"RTL":""),c=e$[u];return{styledProps:{footerStyle:i,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{o(t)}},IconComponent:c}},n$=()=>{const{pageInfo:e,width:t,interactions:n,visibilityThreshold:r}=UW(),i=0===e.page,{IconComponent:o,styledProps:a}=t$({type:KW.FirstPage,disabledCondition:i,pageNumber:0});return t<=(r?.firstPage||XW.FirstPage)?null:fo.jsx(HW,{...a,disabled:!n.active,children:fo.jsx(o,{height:CT})})},r$=(e,t,n=!1)=>{n&&e.key===DT.Tab&&!e.shiftKey&&(c_(e),((e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)})(e.target,t,!1))},i$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o,visibilityThreshold:a}=UW(),s=e.page>=n-1,{IconComponent:l,styledProps:u}=t$({type:KW.LastPage,disabledCondition:s,pageNumber:n-1}),c=t.enabled?e=>{r$(e,t,r)}:void 0;return i<=(a?.lastPage||XW.LastPage)?null:fo.jsx(HW,{...u,onKeyDown:c,disabled:!o.active,children:fo.jsx(l,{height:CT})})},o$=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o}=UW(),a=e.page>=n-1,{IconComponent:s,styledProps:l}=t$({type:KW.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>XW.FirstPage&&i>XW.LastPage)&&t.enabled?e=>{r$(e,t,r)}:void 0;return fo.jsx(HW,{...l,onKeyDown:u,disabled:!o.active,children:fo.jsx(s,{height:CT})})},a$=()=>{const{pageInfo:e,interactions:t}=UW(),n=0===e.page,{IconComponent:r,styledProps:i}=t$({type:KW.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return fo.jsx(HW,{...i,disabled:!t.active,children:fo.jsx(r,{height:CT})})},s$=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:i}=UW(),{page:o,rowsPerPage:a}=n;if(t<=(i?.displayedRowsLabel||XW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return fo.jsx(VW,{variant:"caption",dir:"ltr",children:s})},l$=({name:e,value:t,options:n,handleChange:r})=>{const{layout:i,footerStyle:o,translator:a,tabIndex:s,interactions:l}=UW(),u=i.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 fo.jsxs(fo.Fragment,{children:[fo.jsxs(VW,{variant:"caption",id:p,children:[c,":"]}),fo.jsx($W,{footerStyle:o,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},u$=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:i,visibilityThreshold:o}=UW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(o?.rowsPerPage||XW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=fo.jsx(fo.Fragment,{children:e.rowsPerPageOptions.map(e=>fo.jsx("option",{value:e,children:e},e))});return fo.jsx(l$,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{i?.(+e.target.value)}})},c$=1e3,d$="…",p$=({totalPages:e,page:t})=>{const n=Math.min(e,c$),r=n<e&&t>500,i=r?Math.min(500+t,e):n,o=r?Math.max(0,i-c$):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+o;return fo.jsx("option",{value:t,children:t+1},t)});return o>0&&a.unshift(fo.jsx("option",{value:d$,disabled:!0,children:d$},"startMoreOptions")),i<e-1&&a.push(fo.jsx("option",{value:d$,disabled:!0,children:d$},"endMoreOptions")),fo.jsx(fo.Fragment,{children:a})},f$=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:i}=UW(),{page:o}=e;if(t<=(i?.selectPage||XW.SelectPage))return null;const a=fo.jsx(p$,{totalPages:n,page:o});return fo.jsx(l$,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var h$=b(e=>fo.jsxs(YW,{...e,children:[fo.jsx(u$,{}),fo.jsx(f$,{}),fo.jsx(s$,{}),fo.jsx(n$,{}),fo.jsx(a$,{}),fo.jsx(o$,{}),fo.jsx(i$,{})]}));const m$=e=>fo.jsx(BW,{...e,children:fo.jsx(h$,{...e})}),g$=u({}),v$=()=>h(g$),y$=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i,children:o})=>{const a=v(()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i}),[e,t,n,r,i]);return fo.jsx(g$.Provider,{value:a,children:o})},b$=u({}),x$=()=>h(b$),S$=({app:e,model:t,theme:n,embed:r,keyboard:i,translator:o,interactions:a,env:s,children:l})=>{const u=v(()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:i,env:s,translator:o}),[e,a,t,r,n,i,s,o]);return fo.jsx(b$.Provider,{value:u,children:l})},w$=u({}),C$=()=>h(w$),E$=({children:e,...t})=>fo.jsx(w$.Provider,{value:t,children:e}),I$=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:i,height:o}=(()=>{const{theme:e,translator:t}=x$(),{layoutService:n}=C$(),r=e.getStyle("","","fontFamily")??iz;return n.hasData?n.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:r,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:r,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:fo.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:i,width:"100%",height:o},children:fo.jsx("span",{style:{...fz,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},D$="/qHyperCubeDef",R$=-1,P$="PSEUDO-DIM",M$=e=>e===R$?P$:(({cId:e})=>e??J_())(e),L$=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===R$?n.columnWidthLocation=NF.Measures:n.isLeftDimension?n.columnWidthLocation=NF.Dimension:t.at(-1)===R$?n.columnWidthLocation=NF.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=NF.Pivot))},A$=(e,t,n,r)=>{const i=M$(n),o=e.getDimensionInfoIndex(n),a=e.isLeftDimension(o);return n===R$?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:NF.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:n.qFallbackTitle??"",qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:n.qLocked??!1,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===kT.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:NF.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},k$=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let i=r;var o;n.length>0&&(i=(o=r).at(-1)===R$?o.slice(0,-1):o);const a=i.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return n.forEach((n,r,i)=>{const o=r===i.length-1;l[a-1][r]=A$(e,t,n,o)}),i.forEach((n,r,i)=>{const o=r===i.length-1;l[r][s-1]=A$(e,t,n,o)}),l},O$=(e,t,n,r)=>{const i=((e,t,n,r)=>{let i;return i=0===n.length||n.includes(R$)?k$({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map((t,n)=>e.map(e=>e[n])))(k$({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,n)=>{Array.isArray(t)?t.forEach((t,n)=>{L$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}):L$({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}),i})(e,t,n,r);return{data:i,size:{x:i[0]?.length??0,y:i.length}}};var q$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,i="",o=!1;-1===n?r=e:(r=e.slice(0,n),i=e.slice(n+1),o=!0),t.push(function(e,t,n){return{key:N$(e),value:N$(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,i,o))}),t}},T$=q$;function N$(e){try{return decodeURIComponent(e)}catch{return e}}function j$(e){if(!(this instanceof j$))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>T$.fromSearchString(t.search)}})}function _$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}j$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},j$.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=_$(t.key),t.value?n+=`=${_$(t.value)}`:n+=t.useEqualSign?"=":"";return n};var F$=j$;var z$,W$=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}},$$=class{decode(e){let t="";const n=new W$(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}},H$=e=>e>=0&&e<=1114111,V$=e=>e.match(/[\s]/),B$=class extends $${decodeCharacter(e){e.mark();const t=e.next();let n,r,i;if(null==t||"\\"!==t)return e.reset(),null;const o=e.next();if(null==o)return e.reset(),null;switch(o){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(o,16))return o;for(n=o,r=0;r<5&&(i=e.next(),null!=i&&!V$(i));r++){if("NaN"===parseInt(i,16)){e.pushback(i);break}n+=i}const a=parseInt(n,16);return H$(a)?String.fromCharCode(a):"�"}},G$=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},U$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let i,o;if(t.length===n)return o=this._value,this.setValue(r),o;const a=t.charAt(n);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return G$.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return G$.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||G$.newInstanceIfNeeded(e,t,this._value)}},Y$=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 U$);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},K$=(()=>{const e=[],t=[],n=new Y$;let r,i,o;for(r in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="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["&notin"]="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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(o=t[i].toLowerCase().substr(1),n.put(o,String.fromCharCode(i)));return n})(),X$=class extends $${decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,i="";for(t=Math.min(e.remainder().length,K$.getMaxKeyLength()),r=0;r<t;r++)i+=e.next().toLowerCase();const o=K$.getLongestMatch(i);if(null==o)return null;for(e.reset(),e.next(),t=o.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),o.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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&H$(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&H$(r)?String.fromCharCode(r):null}},J$=class extends $${decodeCharacter(e){e.mark();const t=e.next();let n,r,i,o;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)i=e.nextHex(),null!=i&&(n+=i);return 2===n.length&&(o=parseInt(n,16),H$(o))?String.fromCharCode(o):(e.reset(),null)}},Z$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,Q$=5e6,eH=5e5,tH=(e,t)=>{const{maxByteSizeSvg:n=eH,maxByteSizeImage:r=Q$}=t??{},{mimeType:i,encoding:o,data:a}=(e=>{const[,t,n,r]=Z$.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(i,o,a);return"image/svg+xml"===i?s<=n:s<=r};"undefined"!=typeof document&&(z$=document.createElement("div"));var nH=Array.prototype.indexOf,rH=[",",".","_"," "],iH=[",",".","-","_"," "],oH={width:["%"],height:["%"]},aH={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sH={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aH.image,"background-color":aH.color,"border-color":aH.color,"border-image":aH.image,color:aH.color,icon:aH.image,"list-style-image":aH.image,"outline-color":aH.color},lH={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function uH(e,t,n){let r;if(t){if(nH)return nH.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function cH(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return z$.appendChild(n),t=z$.innerHTML,z$.removeChild(n),t}function dH(e,t,n){let r,i,o,a,s,l,u,c,d;for(e=fH(e).toLowerCase(),t=fH(t),o=0;o<lH.attr_name.length;o++)if(e.match(lH.attr_name[o]))throw new Error(`Unsafe attribute name used: ${e}`);for(o=0;o<lH.attr_val.length;o++)if(t.toLowerCase().match(lH.attr_val[o]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=oH[e],r||(r=iH),i="",!n){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");i+=s}i+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uH(u,r)<0?(d=c.toString(16),i+=`&#x${d};`):i+=u;return n||(i+='"'),i}function pH(e,t,n){let r,i,o,a,s,l,u,c,d,p;if(e=fH(e).toLowerCase(),t=fH(t),uH(e,lH.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<lH.css_val.length;r++)if(t.toLowerCase().indexOf(lH.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(i=sH[e],i||(i=aH.default),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property 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]/)&&uH(u,i)<0?(d=c.toString(16),p="000000".substr(d.length),o+=`\\${p}${d}`):o+=u;return o}function fH(e,t){let n,r,i,o,a=!1;if(null===e)return null;n=e,r=e,i=0;const s=[new X$,new J$,new B$];for(;!a;){r=n;for(let e=0;e<s.length;e++)o=s[e].decode(n),o!==n&&(i++,n=o);r!==n||(a=!0)}if(t&&i>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}var hH=[];for(let e=0;e<255;e++)hH[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var mH={html:e=>cH(e.unsafe),css(e){let t,n=[];const r=[],i={};let o="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=pH(t,n[t],!0),o+=pH(t,n[t],!0),i[t]=r[t]);return e.map?i:o},attr(e){let t=[];const n=[],r={};let i="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=dH(e,t[e],!0),i+=dH(e,t[e],!0),r[e]=n[e]);return e.map?r:i}};function gH(e,t){throw new Error(t)}var vH={canonicalize:fH,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,n;const r=arguments[0]||{};let i=1;const o=arguments.length;for(;i<o;i++)if(null!=(e=arguments[i]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(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?mH.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gH(this,"Invalid parameter type"),mH.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gH(this,"Invalid parameter type"),mH.attr(e)):void gH(this,"Invalid parameter type")},encodeForAttr:dH,encodeForAttr2:function(e){return dH("nonsens",e,!0)},encodeForCSS:pH,encodeForHref:function(e){fH(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new F$(e),n=F$.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+F$.encodeSearchParams(r)+t.hash;const i=decodeURI(e).toLowerCase();if(-1!==i.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==i.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,i,o,a,s;for(t||(t=rH),s="",n=0;n<e.length;n++)i=e.charAt(n),o=e.charCodeAt(n),uH(i,t)>=0||null==hH[o]?s+=i:(r=o.toString(16),o<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:cH,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=fH(t).toLowerCase():gH(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:tH,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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const yH=(e,t)=>t.qAttrExps?.qValues?.[e],bH=(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"}}},xH=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:i,imageBox:o,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!vH.isSafeDataURL(t))?{type:MF.Text,url:void 0,text:e,labelStructure:i}:{type:MF.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:bH(r,a),labelStructure:i,imageBox:o},SH=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:MF.Text,text:r};const{minY:i,maxY:o}=((e,t,n)=>{const r="global"===t.yAxis?.scale,i="zeroCenter"===t.yAxis?.position,o=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(i){const e=Math.max(Math.abs(o),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,o),maxY:Math.max(0,a)}:{minY:o,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:i,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:MF.MiniChart,text:r,miniChart:a}},wH=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=r?.qValues?.[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return n?.urlPosition===LF.Attribute?void 0:n?.urlLabel},CH=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:MF.Link,url:vH.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:MF.Text,url:void 0,text:t,labelStructure:e}}},EH=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:i,miniChartOnMeasure:o,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=AF(t),d=s(e);return c===MF.Image&&u[MF.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,i,o)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=yH(n.imageUrl??-1,e)?.qText;return o&&(o.maskedValue=t??""),xH({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}if("label"===l){const t=o?o.originalValue:r;if(-1===n.imageLabel)return xH({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i});const l=yH(n.imageLabel??-1,e)?.qText??r;return xH({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}return{type:MF.Text,url:void 0,labelStructure:o,text:r}})(e,t,n,d,l,a):c===MF.Link?((e,t,n,r,i)=>{const{urlPosition:o}=t??{};if(o===LF.Attribute){const o=wH(n.url??-1,e,t);return CH({labelStructure:r,text:i||o||"",url:o})}if(o===LF.Dimension){const o=wH(n.urlLabel??-1,e,t)||i;return r&&(r.maskedValue=o),CH({text:o,labelStructure:r,url:r?.originalValue??i})}return{type:MF.Text,url:void 0,text:i,labelStructure:r}})(e,t,n,a,d):c===MF.Indicator&&u[MF.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:MF.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,i,d):c===MF.MiniChart&&u[MF.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SH(e,t,o,d):{type:MF.Text,url:void 0,text:d,labelStructure:a}},IH=(e,t)=>{const n=t.qAttrExps,r=n?.qValues?.[e?.cellForegroundColor??-1]?.qText,i=n?.qValues?.[e?.cellBackgroundColor??-1]?.qText,o=i?u_(i):null,a=r?u_(r):null,s=((e,t)=>e||!t?null:a_(t))(a,o);return{color:s??a,background:o}},DH=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:DH(e,t),e),RH=(e,t,n,r,i,o)=>{const a=i?o.rowsPerPage-n:az-r;let s=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%o.rowsPerPage;s=e.qDown+n}return Math.min(a,DH(s,e))},PH=({node:e,parent:t,root:n,x:r,y:i,pageY:o,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!==R$){if(t){const t=AF(e.representation);return t===MF.Link||t===MF.Image?e.representation:{type:MF.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:i,parentOrRootOriginalValue:o})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=i===MF.Link?"P"===e.qType?o:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:AF(v),parentOrRootOriginalValue:(t||n)?.representation?.labelStructure?.originalValue??""}),b=EH({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[MF.Image]:!0,[MF.Indicator]:!0}}),x={id:J_(),ref:e,x:r,y:i,pageX:r,pageY:o,mainAxisPageCoord:u?o:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:RH(e,i,o,r,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:IH(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},MH=(e,t,n,r,i,o,a,s,l)=>{const{isIndentModeEnabled:u}=i;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=i.leftDimensionInfoIndexes.indexOf(R$);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=n.qTop-r.page*r.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=n.qTop+c-f.qUp;if(u){if(i.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=i.getNullValueText()),m<g&&(y.suffix=i.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=i.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?PH({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:i,dimensionInfo:o[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:r,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},LH=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,n,r)=>{const i=r.at(n+1);e.distanceToNextCell=i?i.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},AH=(e,t)=>{const n=e[0],r=n?Object.values(n):[],i=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,o=n?.[i],a=r.at(-1);return o?.isTotal?o.isLeafNode?o.mainAxisPageCoord:o.mainAxisPageCoord+o.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},kH=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:i,attrExprInfoIndexes:o,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=MH(e.grid,l,u,n,r,i,o,a,s);LH(c,n.rowsOnCurrentPage);const d=AH(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},OH=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const i=[...t];return n.forEach((t,n)=>{t.forEach((t,o)=>{const a=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+o;Array.isArray(i[a])||(i[a]=[]);const l="U"===t.qType;i[a][s]=i[a][s]??{id:J_(),ref:t,isNull:l}})}),i},qH=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:i}=t;return r?.length?OH({qArea:i,prevData:e,pivotValuePoints:r,pageInfo:n}):e},TH=(e,t,n,r,i,o,a,s,l,u)=>{const{isIndentModeEnabled:c}=r;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=n.qLeft+d-f.qUp,v=e[h][g]??PH({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:r,dimensionInfo:i[h],attrExprInfoIndex:o[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},NH=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:i,headerRows:o,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=TH(e.grid,u,c,n,r,i,o,a,s,l);LH(d,n.size.x);const p=AH(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},jH=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),_H=(e,t)=>{const{env:n}=x$(),{direction:r}=v$(),{layoutService:i,effectivePropertiesService:o}=C$(),{qPivotDataPages:a,pageInfo:s}=v$(),[l,u]=m(null),c=((e,t,n)=>v(()=>({left:e.map(jH),top:t.map(jH),measures:n.map(jH)}),[n,e,t]))(e,t,i.visibleMeasureInfo),d=v(()=>O$(i,o,t,e),[i,o,t,e]),p=f(()=>a.slice(1).reduce((e,t)=>qH({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:n,qArea:r}=e;return OH({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(a[0],s)),[a,s]),h=f(()=>a.slice(1).reduce((e,o)=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r}),((e,t,n,r,i,o,a,s)=>{const{qArea:l,qTop:u}=e,c=TH([],u,l,t,n,r,i,o,a,s);LH(c,t.size.x);const d=AH(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],i,t,c.top,d.size.y,n,s,r)),[a,i,t,c.top,d.size.y,n,s,r]),g=f(()=>a.slice(1).reduce((t,o)=>kH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}),((e,t,n,r,i,o,a)=>{const{qArea:s,qLeft:l}=e,u=MH([],l,s,n,t,r,i,o,a);LH(u,n.rowsOnCurrentPage);const c=AH(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],i,s,e,c.left,n,r)),[a,i,s,e,c,n,r]),[y,b]=m(()=>p()),[x,S]=m(()=>h()),[w,C]=m(()=>g());Vz(()=>{b(p())},[p]),Vz(()=>{S(h())},[h]),Vz(()=>{C(g())},[g]),Vz(()=>{l&&l.forEach(o=>{b(e=>qH({prevData:e,dataPage:o,pageInfo:s})),S(e=>NH({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r})),C(t=>kH({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}))})},[l]);const E=f(e=>{u(e)},[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},FH=Math.sqrt(1e4),zH=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/PT.PixelsMin)}),WH=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/FH),r=Math.ceil(e.qHeight/FH);for(let i=0;i<n;i++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+i*FH,qTop:e.qTop+n*FH,qWidth:Math.min(FH,e.qWidth-i*FH),qHeight:Math.min(FH,e.qHeight-n*FH)});return t};function $H({nextPageHandler:e}){const{model:t}=x$(),{pageInfo:n}=v$(),{layoutService:r}=C$(),i=(e=>{const t=l(e);return t.current=e,t})(n.page),o=t,a=f(async(e,t)=>{await(o?.collapseLeft(D$,e,t,!1))},[o]),s=f(async(e,t)=>{await(o?.collapseTop(D$,e,t,!1))},[o]),u=f(async(e,t)=>{await(o?.expandLeft(D$,e,t,!1))},[o]),c=f(async(e,t)=>{await(o?.expandTop(D$,e,t,!1))},[o]),d=f(async t=>{if(o?.getHyperCubePivotData&&0!==t.length)try{const r=await o.getHyperCubePivotData(D$,t.reduce((e,t)=>[...e,...WH(t)],[]));i.current===n.page&&e(r)}catch(e){console.error(e)}},[o,e,n,i]),p=f((e,{dimensionInfoIndex:n,isLeftColumn:i,x:o=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case NF.Dimension:c=[{qPath:`${D$}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case NF.Measures:if(i)c=s.map((e,t)=>({qPath:`${D$}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=r.getMeasureInfoIndexFromCellIndex(o);c=[{qPath:`${D$}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case NF.Pivot:c=[{qPath:`${D$}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}});t?.applyPatches(d,!0)},[t,r]),h=f(async e=>{await(o?.applyPatches([{qPath:`${D$}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))},[o,r]);return v(()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d}),[a,s,u,c,p,h,d])}const HH=(e,t,n)=>(r,i)=>{if("P"===r)return R$;const o=t[n+i];return e[o]},VH=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach(e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)})};return n(e),t},BH=u({}),GH=()=>h(BH),UH=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=C$(),{qPivotDataPages:r}=v$();return v(()=>{const i=VH(r[0]?.qLeft??[]),o=VH(r[0]?.qTop??[]);return{visibleLeftDimensionInfo:i.map(HH(n,t,0)),visibleTopDimensionInfo:o.map(HH(n,t,e))}},[n,t,e,r])})(),{headersData:r,measureData:i,topDimensionData:o,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=_H(t,n),u=$H({nextPageHandler:l}),c=v(()=>({gridSectionsData:{headersData:r,topDimensionData:o,leftDimensionData:a,measureData:i},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:u}),[t,n,r,i,o,a,s,u]);return fo.jsx(BH.Provider,{value:c,children:e})},YH=20,KH=18,XH=.75,JH=e=>-1!==e&&e?.representation?.type===MF.Image,ZH=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&n.type===MF.Image,QH=e=>void 0===e?oz:e,eV=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const n=+e;return n>=0?n:t}return t},tV=e=>eV(e,PT.PixelsDefault),nV=(e,t)=>eV(e,PT.PercentageDefault)*t/100,rV=(e,t,n)=>{switch(t?.type){case MT.Pixels:return tV(t.pixels);case MT.Percentage:return nV(t.percentage,e);case MT.FitToContent:case MT.Auto:default:return n}},iV=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:i,measureTextForHeader:o,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===P$)return e+0;const v=ZH({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:MF.Text}})?g.width+8+4:r(f),y=!n.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(i&&o&&a){b=o("- ")+a}return Math.max(e,24*l+KH+y+v+b)},0),oV=(e,t,n)=>e.reduce((e,r)=>{const i=(n?0:1)*KH;return Math.max(e,i+t(r.qFallbackTitle??""))},0),aV=(e,t,n,r)=>{const i=100*e/t,o=r*XH*(i/100),a=i/100*+n;return Math.min(a,o)},sV=(e,t,n,r)=>r*(+n/100)*(100*e/t/100),lV=(e,t)=>e.some(e=>e>=t*XH),uV=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:i,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=i*XH,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,iV({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,oV(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex(e=>e.id===P$),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:i}=e.indentModeColumnWidth;return i===MT.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+KH+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,oV(e.visibleMeasureInfo,l,!0));g=Math.min(d,iV({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-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;o&&o<=d&&(x.type=MT.Pixels,x.pixels=o);return[MT.Pixels,MT.Percentage].includes(x.type)||lV(c,i)?((e,t,n,r)=>{let i=e[0],o=e[1],a=[];const s=e.reduce((e,t)=>e+t,0),{type:l,pixels:u,percentage:c}=t,d=eV(u,PT.PixelsDefault),p=eV(c,PT.PercentageDefault),f=lV(e,n);l===MT.Auto&&f&&(i>o?i-=o:o-=i),l===MT.Pixels&&d&&(i=aV(e[0],s,d,n),o=aV(e[1],s,d,n)),l===MT.Percentage&&p&&(i=sV(e[0],s,p,n),o=sV(e[1],s,p,n));let h=0;o<=r&&(h=i-5,h>0&&(i-=h,o+=h)),h=o-r,h>0&&(i+=h,o-=h),a=[i,o];const m=a.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:a,leftGridWidth:m,leftGridFullWidth:m}})(c,x,i,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function cV({tableWidth:e}){const t=e*XH,{styleService:n,layoutService:r,effectivePropertiesService:i}=C$(),{translator:o}=x$(),{gridSectionsData:{headersData:a}}=GH(),{measureText:s}=zz(n.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:u}=zz({...n.dimensionValues,fontWeight:QH(n.dimensionValues.fontWeight)}),{measureText:c}=zz({...n.dimensionValues,...n.measureLabels}),d=f((n,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=r,v=(t=0)=>h.reduce((n,{qFallbackTitle:r,columnWidth:i})=>{const o=c(r)+KH,a=Math.max(o,t);return Math.max(n,m?a:rV(e,i,a))},0),y=e=>a.data.reduce((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===P$)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?YH:0;return KH+s(t)+YH+r})(r);return Math.max(i,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((o,s)=>{let u=KH;if(m&&1!==a.size.x||!n||void 0===d||d!==o.colIdx){let t;o.columnWidthLocation===NF.Pivot?t=m?void 0:f:o.columnWidthLocation===NF.Dimension&&({columnWidth:t}=o);let n=0;if(o.isLeftDimension)if(o.id===P$)n=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=e,s=r.getDimensionInfo(a);if(JH(s))return PT.PixelsDefault;const u=!i.qAlwaysFullyExpanded&&o&&t<p-1?21:0;return KH+l(n)+u})(o,s);n=Math.max(e,t),m&&!g&&s+1===p&&o.columnWidthLocation===NF.Dimension&&a.size.x>1&&(n=e)}else n=y(s),o.columnWidthLocation===NF.Measures&&(n=v(n));m&&1===a.size.x&&(t=r.indentModeColumnWidth),u=m&&!g&&a.size.x>1?n:rV(e,t,n)}else u=m?Math.min(t,n):n;return b+=u,u});return m&&a.size.x>1?uV({layoutService:r,effectivePropertiesService:i,headersData:a,columnWidths:S,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:o}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,r,t,s,c,l,u,o,i]),[p,h]=m(d);Vz(()=>{h(d())},[d]);const g=f((e,t)=>{h(d(e,t))},[d]);return{...p,overrideLeftGridWidth:g}}function dV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:i}=C$(),{visibleDimensionsInfo:{visibleTopDimensionInfo:o}}=GH(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=zz(r.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=zz({...r.dimensionValues,fontWeight:QH(r.dimensionValues.fontWeight)},{allowLineBreaks:!1}),h=e-n-1,m=o.at(-1),g=m===R$,y=s.length-a>o.length?21:0,b=v(()=>{const e=g?u:[m],t=l.x/e.length,n=[],r=[];let i=h;const o=(e,r)=>{n[e]=Math.min(PT.PixelsMax,Math.max(PT.PixelsMin,r)),i-=n[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:n,pixels:i,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case MT.Pixels:o(t,tV(i));break;case MT.Percentage:o(t,nV(a,h));break;case MT.FitToContent:o(t,((e,t,n)=>n?PT.PixelsDefault:KH+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+y)))(s,l??"",JH(e)));break;case MT.Auto:default:r.push(t)}}else r.push(t)}),r.length){const e=r.length*t,o=i/e;r.forEach(e=>{n[e]=Math.max(PT.AutoMinPivot,o)})}return n},[g,u,m,l.x,h,c,d,p,y]),x=v(()=>{if(g){return u.reduce((e,t,n)=>e+b[n],0)/u.length}return b[0]},[g,b,u]),S=parseFloat((t/i.size.x).toFixed(12)),w=f(e=>(g&&void 0!==e?b[i.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,b,i,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const pV=`scrollable-container--${_F.TopGrid}`,fV=`scrollable-container--${_F.LeftGrid}`,hV=`scrollable-container--${_F.DataGrid}`,mV=e=>{if(!(e&&e instanceof HTMLDivElement))return{width:0,height:0};const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return{width:t>=2?t:0,height:n>=2?n:0}},gV=(e,t)=>e>t?FF.Forward:e<t?FF.Backward:FF.None,vV=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{const{direction:s}=v$();d(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=r(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,o(e),i?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,o(e),i?.(e)},h=r=>{const a=r.target,l=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:i}=e,o=n-r;if("rtl"===t){if(i>o)return o;if(i<0)return Math.abs(i)}return i})(a,s);n.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)}),o(r),i?.(r)};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)}},[o,i,a,e,t,n,r,s])},yV=ww(!1),bV=(e,t)=>Math.abs(e.width-t.width)>2||Math.abs(e.height-t.height)>2,xV=({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const{top:r,left:i,data:o,resetHorizontalScrollbarHeight:a}=((e,t,n)=>{const[r,i]=m({width:0,height:0}),[o,a]=m({width:0,height:0}),[s,u]=m({width:0,height:0}),[c,p]=m(!1),h=qw(yV),g=l(h),v=l(h);g.current=h;const y=f(()=>{p(e=>!e&&e);const r=mV(e.current),o=mV(t.current),s=mV(n.current);i(e=>bV(e,r)?r:e),a(e=>bV(e,o)?o:e),u(e=>bV(e,s)?s:e)},[e,t,n]);d(()=>{const r=new ResizeObserver(()=>{g.current||y()}),i=[e.current,t.current,n.current].filter(e=>Boolean(e));return i.forEach(e=>{r.observe(e)}),()=>{r.disconnect()}},[y,e,t,n]),d(()=>{const e=v.current;if(v.current=h,e&&!h){const e=setTimeout(y,0);return()=>{clearTimeout(e)}}},[h,y]);const b=f(()=>{p(!0)},[]);return{top:r,left:c?{...o,height:0}:o,data:c?{...s,height:0}:s,resetHorizontalScrollbarHeight:b}})(e,t,n);return{scrollbarsDimensions:{verticalScrollbarWidth:Math.max(r.width,o.width),horizontalScrollbarHeight:Math.max(i.height,o.height)},resetHorizontalScrollbarHeight:a}},SV=()=>{const{interactions:e}=x$(),t=l(null),n=l(null),r=l(null),i=l(null),o=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=xV({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:i,leftGridRef:o,dataGridRef:a}})=>{const{pageInfo:s}=v$(),{downloadService:l,viewService:u,layoutService:c}=C$(),d=f(()=>{const i={left:0,top:0};e.current?.scrollTo(i),t.current?.scrollTo(i),n.current?.scrollTo(i),r.current?.scrollTo(i)},[e,t,n,r]);g(()=>{d()},[s.page,d]),g(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),g(()=>{if(c.triggerdByExpandOrCollapse){const e=r.current?.scrollLeft??0,t=r.current?.scrollTop??0;o.current?.forEach(e=>{e?.scrollTo(t)}),i.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,r,a,o,i]),g(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v}}=(()=>{const e=l(FF.None),t=l(FF.None),n=l({prevScrollTop:0,prevScrollLeft:0}),r=f(r=>{if(r instanceof WheelEvent&&(e.current=gV(r.deltaY,0),t.current=gV(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const i=r.target;e.current=gV(i.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=i.scrollTop,t.current=gV(i.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=i.scrollLeft}},[e,t,n]);return{trackScrollDirection:r,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=C$();return f(t=>{const n=t.target,r=t.currentTarget,i=n.dataset.key;i===fV&&(e.leftGridScrollLeft=r.scrollLeft),i===hV&&(e.scrollLeft=r.scrollLeft),i===pV&&(e.topGridScrollTop=r.scrollTop),i!==fV&&i!==hV||(e.scrollTop=r.scrollTop)},[e])})(),b={gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},getWrapperElements:f(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:i.current}),[t,n,r,i]),updateViewService:y,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{d(()=>{const{headerGridWrapperElement:i,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=r(),c=e=>{e.ctrlKey||(e.preventDefault(),i.scrollLeft+=e.deltaX,i.scrollTop+=e.deltaY,l.scrollLeft=i.scrollLeft,s.scrollTop=i.scrollTop,o(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),i.scrollLeft+=e.deltaX,l.scrollLeft=i.scrollLeft,u.scrollTop=l.scrollTop,n.current?.scrollTo({scrollTop:l.scrollTop}),o(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),i.scrollTop+=t.deltaY,s.scrollTop=i.scrollTop,u.scrollLeft=s.scrollLeft,n.current?.scrollTo({scrollLeft:s.scrollLeft}),o(t))},f=r=>{r.ctrlKey||(r.preventDefault(),u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,n.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)}),o(r))};return i.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[o,i,a,e,t,n,r])})(b),vV(b),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},wV=()=>{const{layoutService:e}=C$(),{rect:t,pageInfo:n}=v$();return v(()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}},[t,e,n.shouldShowPagination])},CV=({children:e,style:t})=>fo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),EV=({children:e,style:t})=>{const{direction:n}=v$();return fo.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},IV=e=>e&&`scrollable-container--${e}`,DV=({children:e,style:t,origin:n},r)=>{const{interactions:i}=x$(),o=i.scroll?t:{overflow:"hidden"};return fo.jsx("div",{"data-testid":"scrollable","data-key":IV(n),style:o,ref:r,children:e})};var RV=n.forwardRef(DV);const PV=({children:e,style:t})=>{const{direction:n}=v$();return fo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var MV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function LV(e,t){return e===t||!(!MV(e)||!MV(t))}function AV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!LV(e[n],t[n]))return!1;return!0}function kV(e,t){var n;void 0===t&&(t=AV);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var OV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function qV(e){cancelAnimationFrame(e.id)}function TV(e,t){var n=OV();var r={id:requestAnimationFrame(function i(){OV()-n>=t?e.call(null):r.id=requestAnimationFrame(i)})};return r}var NV=-1;function jV(e){if(void 0===e&&(e=!1),-1===NV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),NV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return NV}var _V=null;function FV(e){if(void 0===e&&(e=!1),null===_V||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?_V="positive-descending":(t.scrollLeft=1,_V=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),_V}return _V}var zV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function WV(e){var t,n=e.getColumnOffset,i=e.getColumnStartIndexForOffset,o=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$l(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$l(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=kV(function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=kV(function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,o=r.props,s=o.columnWidth,l=o.direction,u=o.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;c[f]=i={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=kV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(FV()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&qV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return $V(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,a=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=jV();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==i&&(i=Math.max(0,Math.min(i,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!==r?u(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==i?c(this.props,i,n,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(FV()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&qV(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,i=e.columnCount,o=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?zV: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],R=I[1],P=[];if(i>0&&v)for(var M=D;M<=R;M++)for(var L=C;L<=E;L++)P.push(r(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},r(c||d||"div",{children:P,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[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 r){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,n=e.overscanColumnCount,r=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||r||a||1;if(0===t||0===s)return[0,0,0,0];var f=i(this.props,d,this._instanceProps),h=o(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,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)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(o-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $V=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},HV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},VV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},BV=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},GV=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?UV(e,t,n,o,0,r):YV(e,t,n,Math.max(0,o),r)},UV=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=BV(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},YV=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&BV(e,t,r,n).offset<i;)r+=a,a*=2;return UV(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},KV=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=BV(e,t,n,o),u="column"===e?VV(t,o):HV(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},XV=WV({getColumnOffset:function(e,t,n){return BV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return GV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=BV("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=BV("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:HV,getEstimatedTotalWidth:VV,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return KV("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return KV("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return BV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return GV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=BV("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=BV("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),JV=function(e,t){return e};function ZV(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=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 r;return(r=e.call(this,t)||this)._instanceProps=u(r.props,$l(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$l(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=kV(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=kV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=kV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(FV()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&qV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}kl(t,e),t.getDerivedStateFromProps=function(e,t){return QV(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 n=this.props,r=n.itemCount,i=n.layout,o=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?jV():0:l.scrollHeight>l.clientHeight?jV():0}this.scrollTo(a(this.props,e,t,o,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(FV()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&qV(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=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?JV: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"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var R=E;R<=I;R++)D.push(r(t,{data:d,key:f(R,d),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var P=i(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:ke({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},r(l||u||"div",{children:D,ref:s,style:{height:S?"100%":P,pointerEvents:x?"none":void 0,width:S?P:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,a=r.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=i&&"backward"!==o?1:Math.max(1,n),p=i&&"forward"!==o?1:Math.max(1,n);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 QV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},eB=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},tB=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=eB(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},nB=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&eB(e,n,t).offset<r;)n+=o,o*=2;return tB(e,t,Math.min(n,i-1),Math.floor(n/2),r)},rB=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},iB=ZV({getItemOffset:function(e,t,n){return eB(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:rB,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=eB(e,t,i),p=rB(e,i),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?tB(e,t,i,0,n):nB(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=eB(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=eB(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oB(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var aB=["style"],sB=["style"];function lB(e,t){var n=e.style,r=Oe(e,aB),i=t.style,o=Oe(t,sB);return!oB(n,i)&&!oB(r,o)}const uB=10,cB=(e,t)=>e.current===FF.Backward?t:0,dB=(e,t,n,r)=>{for(let i=n;i<n+r;i++){const n=e.at(i);if(void 0===n||void 0===n.at(t))return!0}return!1},pB=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,fB=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:i,endLeft:o})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=i;e<o;e++)if(dB(t,e,n,r)){const t=a[a.length-1],i={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&pB(t,i)?t.qWidth+=i.qWidth:a.push(i)}return a},hB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:i,minBufferEndLeft:o,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===FF.Backward?Math.max(0,i-25):o,c=Math.min(u+25,a);return fB({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},mB=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:i})=>{const{startLeft:o,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=e.size.x,l=cB(n,uB),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(o+uB,s-u),pageTop:i,qHeight:a}})(r,i,n),u=fB({pageInfo:e,measureData:t,startLeft:o,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...hB({pageInfo:e,measureData:t,scrollDirection:n,viewService:i,minBufferStartLeft:o,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},gB=(e,t,n,r)=>{const i=e[n];if(void 0===i)return!0;for(let e=t;e<t+r;e++){if(void 0===i[e])return!0}return!1},vB=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,yB=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:i,pageInfo:o})=>{const a=[],s=o.page*o.rowsPerPage;for(let o=e;o<t;o++)if(gB(i,n,o,r)){const e=a.at(-1),t={qLeft:n,qTop:o+s,qWidth:r,qHeight:1};void 0!==e&&vB(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},bB=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:i,endTop:o,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=cB(n,uB),l=Math.max(i-s,0);return{startTop:l,endTop:l+Math.min(a+uB,e.rowsOnCurrentPage-l),qLeft:r,qWidth:o}})(e,r,n),l=yB({startTop:i,endTop:o,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===FF.Backward?Math.max(0,i-25):o,u=Math.min(r+25,e.rowsOnCurrentPage),c=yB({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},xB=async(e,t,n,r,i,o,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=i;let p=[],f=[];o.current!==FF.None&&(p=bB({pageInfo:r,measureData:n,scrollDirection:o,viewService:i})),a.current!==FF.None&&(f=mB({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:i})),o.current===FF.None&&a.current===FF.None&&(p=yB({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},SB=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-o,c=function(){o=Date.now(),r=0,e.apply(t,n)};r||(u>=i?c():r=setTimeout(c,i-u))}}(xB,100),wB=Zj(xB,75),CB=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),EB=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:i,isLeftColumn:o,showTotalCellDivider:a})=>{const{direction:s}=v$(),{styleService:{grid:{border:l,divider:u}}}=C$();return fo.jsx("div",{style:{...e,...pz,...gz(n,r,l,s,i),...yz({bottomDivider:a&&o,rightDivider:a&&!o,borderColor:u})},"data-testid":"empty-cell","data-index":t})},IB=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:i})=>{const{layoutService:{isIndentModeEnabled:o}}=C$(),a=i&&o;return fo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},DB=e=>{const{type:t,imageSize:n}=e;return t!==MF.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},RB=e=>"number"==typeof e&&!Number.isNaN(+e),PB=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,MB=x((e,t)=>fo.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:fo.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),LB=x((e,t)=>fo.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:fo.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"})})),AB=x((e,t)=>fo.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:[fo.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"}),fo.jsx("use",{fillRule:"evenodd"})]})),kB=x((e,t)=>fo.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:fo.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"})})),OB=x((e,t)=>fo.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:fo.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"})})),qB=x((e,t)=>fo.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:fo.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"})})),TB=x((e,t)=>fo.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:fo.jsx("path",{d:"M2 7.5h12v1H2z"})})),NB=x((e,t)=>fo.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:fo.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"})})),jB=x((e,t)=>fo.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:fo.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"})})),_B=x((e,t)=>fo.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:fo.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"})})),FB=x((e,t)=>fo.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:fo.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"})})),zB=x((e,t)=>fo.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:fo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),WB=x((e,t)=>fo.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:fo.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"})})),$B=x((e,t)=>fo.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:fo.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"})})),HB=x((e,t)=>fo.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:fo.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"})})),VB={m:zB,"ï":_B,R:x((e,t)=>fo.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:fo.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:WB,T:$B,U:HB,P:jB,Q:qB,"è":x((e,t)=>fo.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:fo.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"})})),"¢":kB,"©":AB,"23F4":OB,2013:FB,"&":NB,add:MB,"minus-2":TB,dot:LB},BB=({size:e,iconKey:t,color:n,pvStyle:r})=>{const i=t&&VB[t];return i&&fo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:fo.jsx(i,{style:{height:e}})})},GB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),UB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},YB=(e,t,n)=>{const r={previousColor:(i=e.localPaletteColors)[(o=t)-(o>0?1:0)],nextColor:i[o+(o<i.length-1?1:0)]};var i,o;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,i)=>{const{upperLimit:o,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===o.value?1:(r-a.value)/(o.value-a.value);return a.gradient&&o.gradient?r-a.value<o.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:o.gradient?{color:l.color,t:u/2}:{color:i.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return PN(e.localPaletteColors[t].color??"").blend(PN(s.color??""),s.t)},KB=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:GB(t,e.value)}))),e})({...e},t),i=r.paletteColors||r.localPaletteColors;return i&&(r.localPaletteColors=i.concat().map((e,t)=>({color:UB(r,t,n)}))),r},XB=(e,t,n,r)=>{const i=KB(e,n,r),{localPaletteColors:o}=i;if(t<=0)return o[0].color;if(t>=1)return o[o.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:i,localPaletteColors:o}=e;for(let a=0;a<o.length;a++){const o=i&&i[a]?i[a].value:1;if(t>=r&&t<o){n=YB(e,a,t);break}r=o}return n})(i,t);return a},JB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!RB(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!RB(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},ZB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=JB(e,t),i=Math.abs(t);return{min:n??t-i,max:r??t+i}})(n,t),i=((e,t,n)=>{const{limits:r,paletteColors:i,localPaletteColors:o}=e.segments;if(!r||!RB(t))return 0;let a=n&&RB(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=i||o;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,r.min);return{limitRange:r,limitPaletteColorIndex:i}},QB=e=>"flex-start"===e?"flex-end":"flex-start",eG=(e,t,n,r)=>{const i=e.indicatorConditionalColoring;if(!i)return;const o=ZB(i,t),a=((e,t,n,r)=>{const{segments:i}=e;if(!i||!n)return;const{limits:o}=i;if(!o?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(o,n.limitPaletteColorIndex))return UB(i,n.limitPaletteColorIndex,r);const a=GB(n.limitRange,t);return XB(i,a,n.limitRange,r)})(i,t,o,r),s=i.segments.paletteColors[o?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},tG=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=C$(),{theme:i}=x$(),{direction:o}=v$(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=eG(e,t,o,i),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||rz,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?fo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:n?.overflow,color:u?b:n?.color},children:["left"===x&&BB({size:v,iconKey:y,color:b,pvStyle:S}),fo.jsx("span",{style:{paddingTop:4,overflow:n?.overflow,textOverflow:n?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&BB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,BB({size:v,iconKey:y,color:b,pvStyle:S}))},nG=(e,t,n)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},rG=(e,t)=>{let{textAlign:n}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:n}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),n?.auto||void 0===n?"left":n.align},iG=(e,t,n,r,i)=>{if(i)return;const o=e.representation,a=ZH({isLeftColumn:n,layoutService:t,representation:o}),s=n?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===MF.Image)return a&&l&&"center"!==l&&"rtl"===r?QB(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:n}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return nG(n,s,r)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return nG(u,s,r)},oG=e=>!!e.target?.getAttribute("class")?.includes(RT),aG=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),i=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&i===e.activeSelection.endIndex)return e;const o={...e.activeSelection,startIndex:r,endIndex:i};return o.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:i}=e,o=new Map(i);for(let e=n;e<=r;e++){const n=t(e);"N"===n?.ref.qType&&o.set(n.ref.qElemNo,n)}return o})(o),{...e,activeSelection:o}}default:return e}},sG=e=>null!==e.target?.closest("[data-prevent-selection]"),lG=e=>"A"===e.target?.tagName,uG=({startIndex:e,getCellFromIndex:t,cell:n})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}});const cG=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),dG=()=>h(cG),pG=({children:e,selections:t})=>{const n=function(e){const{updatePageInfo:t}=v$(),n=e.isActive(),[r,i]=c(aG,{engineSelectedCells:null,selectedField:null,activeSelection:null});d(()=>{const n=()=>{i({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}},[e,t]);const o=f(async()=>{if(!r.activeSelection)return;var t,n;1===r.activeSelection.clientSelectedCells.size&&(t=r.engineSelectedCells,(n=r.activeSelection).clientSelectedCells.forEach((e,r)=>{t?.has(r)&&(n.clientSelectedCells.delete(r),t.delete(r))}));const o=new Map([...r.engineSelectedCells??new Map,...r.activeSelection.clientSelectedCells]);try{i({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[D$,Array.from(o,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),i({type:"mouseup",payload:{engineSelectedCells:r.engineSelectedCells}})}},[r,e]);d(()=>{if(r.activeSelection)return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},[o,r.activeSelection]);const a=f((e,t)=>n=>{const r=t(e);oG(n)||sG(n)||lG(n)||!(e=>1===e.buttons)(n)||!r||i(uG({startIndex:e,getCellFromIndex:t,cell:r}))},[]),s=f(t=>async()=>{r.activeSelection&&(e.isActive()||await e.begin([D$]),i({type:"mouseover",payload:{index:t}}))},[r.activeSelection,e]),l=f((e,t)=>n=>{if("touch"!==n.pointerType)return;const r=t(e);oG(n)||sG(n)||lG(n)||!r||(i(uG({startIndex:e,getCellFromIndex:t,cell:r})),o())},[o]),u=f(e=>!(!r.engineSelectedCells?.size&&!r.activeSelection?.clientSelectedCells.size||!r.selectedField||e.selectionCellType===r.selectedField.selectionCellType&&("L"===e.selectionCellType?r.selectedField.index===e.x:r.selectedField.index===e.y)),[r.activeSelection?.clientSelectedCells.size,r.engineSelectedCells?.size,r.selectedField]),p=f(e=>!u(e)&&(r.engineSelectedCells?.has(e.ref.qElemNo)||!!r.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,r.activeSelection?.clientSelectedCells,r.engineSelectedCells]);return v(()=>({isSelected:p,isActive:n,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[p,n,u,a,s,l])}(t);return fo.jsx(cG.Provider,{value:n,children:e})},fG=e=>"fill"===e.representation.imageSize,hG=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&fG(e)&&t&&(n="center"),e.representation.type!==MF.Image||fG(e)?n:e.representation.resolvedImagePosition?.vertical};var mG=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(mG||{});const gG={brighter:.5,darker:.3,opacity:.03},vG=(e,{cell:t,styleService:n})=>{if(e===mG.Background||e===mG.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},yG=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const i=vG(mG.Background,{cell:n,styleService:e});return!r||!i||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?vG(mG.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${l_(o=i,gG)} 0px 2px,\n ${o} 0px 4px\n ) border-box`;var o},bG=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:vG(mG.Color,{cell:e,styleService:t}),xG=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,i=vG(mG.FontWeight,{cell:e,styleService:t});return void 0===i&&(r||n)?oz:i},SG=({cell:e,styleService:t})=>vG(mG.FontStyle,{cell:e,styleService:t}),wG=({cell:e,styleService:t})=>vG(mG.TextDecoration,{cell:e,styleService:t}),CG=e=>e?"pointer":"default",EG=({expandOrCollapse:e,cell:t})=>n=>{e?.(t.y,t.x),n.stopPropagation()},IG=(e,t)=>{if(!e.isLeftColumn||e.representation.type===MF.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},DG=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:i}=C$(),{interactions:o}=x$(),{isActive:a}=dG(),{dataModel:s}=GH();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||a||!s,u=bG({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?PW:RW;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=ZH({isLeftColumn:t,layoutService:i,representation:e.representation});return fo.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,...IG(e,r),...f&&{alignSelf:hG(e)}},onClick:l?void 0:EG({cell:e,expandOrCollapse:p})})},RG=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},PG=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},MG=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},LG=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:i,layoutService:o,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=o,l=ZH({isLeftColumn:r,layoutService:o,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=i.headerCellHeight;r&&l&&(d=c),(a||r)&&(p=i.contentCellHeight);let f=p;switch(r&&void 0!==n&&!s&&(f=p*Math.max(n,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}}},AG=e=>{if("alwaysFit"===e)return"contain"},kG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),OG=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:PG(e,n,r),height:RG(e),objectFit:AG(e),objectPosition:MG(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),qG=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:r,onLoad:i}=(()=>{const{downloadService:e}=C$(),t=l(null),{promise:n,resolve:r}=v(()=>Rz(),[]);return d(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(n),t.current?.complete&&r()),()=>{r()}),[t,e,n,r]),{onLoad:f(()=>{r()},[r]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o}}=C$(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return fo.jsx("img",{src:a,alt:s,style:{...OG({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:o,isMeasureCell:n}),...h},onLoad:i,ref:r})},TG=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:i=!1,imageContainerHorizontalAlignment:o,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=C$(),{resolvedImagePosition:u}=e;return fo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:o,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...LG({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:i,isMeasureCell:a})},children:fo.jsx(qG,{representation:e,textStyle:t,isMeasureCell:!0})})},NG={display:"flex",flexDirection:"row",alignItems:"center"},jG={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},_G=(e,t,n,r)=>t?{...jG,...e.nullValues}:n?{...NG,color:e.totalValues.color,background:r??e.totalValues.background}:{...NG,color:e.measureValues.color,background:r??e.measureValues.background},FG=(e,t,n,r,i)=>{const{fontFamily:o,fontSize:a}=e.measureValues,s={...fz,...!n&&hz(e.grid.lineClamp),...t&&{color:t},fontFamily:o,fontSize:a};if(i){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?oz:l,fontStyle:u,textDecoration:c}},zG=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:i})=>{const{layoutService:o,styleService:a}=C$(),{isIndentModeEnabled:s}=o,l=e.isNull?o.getNullValueText():t.text,u=t.type===MF.Image,c=t.type===MF.Indicator,d=RB(PB(l)),p=FG(a,n,d,r,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return fo.jsx(TG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:i});const f=PB(e.isNull?t.text:e.ref.qNum);return c&&RB(f)?fo.jsx(tG,{representation:t,cellValue:f,textStyle:p}):fo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},WG=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,$G="flex-start",HG=(e,t)=>e.isNull?$G:t.type===MF.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:$G,VG=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{env:i}=x$(),{pageInfo:o,direction:a}=v$(),{styleService:s,layoutService:l}=C$(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=GH(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=C$(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:i}}=GH(),o=r.length,a=i.length;return f((r,i)=>!(!n.grid.at(a-1)?.[r]?.isTotal&&!t.grid.at(e?0:o-1)?.[i]?.isTotal),[n,t,o,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=GH(),n=t.length;return f(t=>{const r=e.grid.at(n-1)?.[t];return CB(r,e.totalDividerIndex)},[e,n])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=C$(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=GH(),r=n.length;return f(n=>{const i=e?0:r-1,o=t.grid.at(i)?.[n];return CB(o,t.totalDividerIndex,e)},[t,e,r])})(),{showLastBorder:b}=r,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===o.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return fo.jsx(EB,{style:{...n,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?WG(S,t):WG(x,e),R=l.visibleMeasureInfo[D],P=EH({cell:C.ref,representationProperties:R.representation,attrExprInfoIndex:u.measures[D],env:i,direction:a,conditionalColoring:R.conditionalColoring,enabledFeatures:{[MF.Image]:!0,[MF.Indicator]:!0}}),M=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():P.text,A=!C.isNull||!Number.isNaN(+L),k=IH(u.measures[D],C.ref),O=((e,t,n,r,i)=>{const{textAlign:o}=t,a=r?"flex-end":"center";return e.isNull||n.type!==MF.Image?nG(o,a,i):n.resolvedImagePosition?.horizontal??"center"})(C,R,P,A,a),q={..._G(s,C.isNull,M,k.background),...gz(E,I,s.grid.border,a,b),...yz({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...pz,padding:"0px 4px",display:"flex",justifyContent:O};return fo.jsx("div",{className:IT,title:L,style:{...q,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fo.jsx(IB,{width:DB(P),verticalAlign:HG(C,P),children:fo.jsx(zG,{cell:C,representation:P,isTotalValueCell:M,color:k.color,cellHorizontalAlignment:O})})})};var BG=n.memo(VG,lB);const GG=(e,t)=>t.list[e]?.id??e.toString(),UG=({columnIndex:e,rowIndex:t,data:n})=>n.grid[t]?.[e]?.id??`${t}-${e}`,YG=e=>({...dz,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),KG=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:i,getRightGridColumnWidth:o,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=v$(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=C$(),{dataModel:h,gridSectionsData:{measureData:m}}=GH(),v={...YG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=v$(),{downloadService:r,viewService:i,layoutService:o}=C$(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=GH(),c=s.columnCount,d=l.rowCount;return f(async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{i.gridColumnStartIndex=s,i.gridRowStartIndex=p,i.gridWidth=l-s+1,i.gridHeight=f-p+1;const h=i.gridWidth+c+(t.current===FF.None?0:uB),m=i.gridHeight+d+(e.current===FF.None?0:uB);let g=SB;m*h>1500&&(g=wB),g(a,o,u,n,i,e,t,r)},[i,o,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return Vz(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,h,m]),g(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[r,t,e,p,u]),0===c.size.x?null:fo.jsx(XV,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:o,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:i,grid:m},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:o(),itemKey:UG,direction:u,children:BG})};var XG=b(KG);const JG=x((e,t)=>fo.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:[fo.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"}),fo.jsx("use",{fillRule:"evenodd"})]})),ZG=e=>{const[t,n]=Nw(yV);return Vz(()=>{n(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},QG=()=>{const[e,t]=m(!1),{dataModel:n}=GH(),{interactions:r}=x$(),{isAdjustingWidth:i,setIsAdjustingWidth:o}=ZG([n]);return{open:e,setOpen:t,handleOpenMenu:e=>{!r.active||oG(e)||i||t(!0)},isAdjustingWidth:i,setIsAdjustingWidth:o}};function eU(e,t){const n=t.expressionColor?.background??e.dimensionValues.background,r=t.isLeftColumn?e.header.background:n,i=r===lz.Transparent?hN.WHITE:r,o=PN(e.grid.border),a=PN(i);return a.isInvalid()||o.isInvalid()||1===o.a?e.grid.border:function(e,t,n){return PN(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(a,o,o.a).getRGB()}const tU=({cellInfo:e,columnWidth:t,isLastColumn:n,overrideLeftGridWidth:r,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:o,tableWidth:a})=>{const{direction:s}=v$(),{interactions:l,translator:u}=x$(),{isActive:c}=dG(),{dataModel:d}=GH(),{styleService:p}=C$(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=eU(p,e);return fo.jsx(Xz,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),r&&void 0!==e.colIdx&&r(t,e.colIdx)},confirmWidthCallback:t=>{o?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*XH,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},nU=Sl(sc,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:i})=>({pointerEvents:i?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&i?n:t}})),rU=Sl("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),iU=Sl("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({...cz,justifyContent:e??cz.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),oU=Sl("div")(()=>({...cz})),aU=Sl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:i,justifyContent:o})=>({display:"flex",justifyContent:o,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:i})),sU=Sl(wp)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),lU=Sl(Rp,{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}}})),uU=Sl("span")({textOverflow:"ellipsis",overflow:"hidden"}),cU=Sl("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:YH,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),dU=Sl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let pU=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const fU=(e,t)=>({qExcludeList:t===pU.Expand,qPos:{qDimName:e,qElemNo:[]}}),hU=`${D$}/qExpansionState`,mU=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const i=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:fU(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:i}=t;try{let t,n=hU,o="Add";void 0===r?t=JSON.stringify([i]):-1===r?(n=`${hU}/-`,t=JSON.stringify(i)):(n=`${hU}/${r}`,o="Replace",t=JSON.stringify(i)),await e.applyPatches([{qPath:n,qOp:o,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:i,errorMsg:`Failed to ${r} dimension`})},gU=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:mU({...r,action:pU.Expand}),collapseCallback:mU({...r,action:pU.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},vU={[NW.Sorting]:!0,[NW.Selections]:!0,[NW.Searching]:!0},yU=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:i,changeSortOrder:o,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=C$(),{app:g,interactions:v,embed:y,translator:b,model:x,env:S}=x$(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:R,background:P,hoverBackground:M,activeBackground:L}=f.header,A=l(null),{shouldShowLockIcon:k,shouldShowMenuIcon:O}=a,{open:q,setOpen:T,handleOpenMenu:N,setIsAdjustingWidth:j}=QG(),{direction:_}=v$(),F={sortFromMenu:async(t,n)=>{t.stopPropagation(),await o(e,n)}},z={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=nG($,"flex-start",_);return fo.jsxs(nU,{className:IT,title:e.label,interactions:v,background:q?L:P,hoverBackground:M,shouldShowMenuIcon:O,isDimension:e.isDim,style:{...t,...pz,...vz(e,i,n,r,f.grid.border,_),color:R},"data-testid":"title-cell",onClick:N,children:[fo.jsxs(iU,{children:[k?fo.jsx(oU,{children:fo.jsx(JG,{height:12})}):null,fo.jsx(aU,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:fo.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...fz,...hz(f.grid.columnLineClamp)}:fz,children:e.label})})]}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(FW,{headerData:e,translator:b,anchorRef:A,open:q,setOpen:T,interactions:v,menuAvailabilityFlags:vU,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:gU({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:O,model:x&&"setActiveField"in x?x:void 0,direction:_,isAccessibleHeader:!0}),fo.jsx(rU,{ref:p,direction:_}),fo.jsx(rU,{ref:A,direction:_})]}):null,fo.jsx(tU,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:u,setIsAdjustingWidth:j,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},bU=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=C$(),{direction:r}=v$();return e>0&&t>0?fo.jsx("div",{style:{...dz,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},xU=x((e,t)=>fo.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:fo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),SU=x((e,t)=>fo.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:[fo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),fo.jsx("use",{fillRule:"evenodd"})]})),wU=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=v$(),{styleService:i}=C$(),{interactions:o,translator:a}=x$(),{isActive:s}=dG(),{dataModel:l}=GH(),{setIsAdjustingWidth:u}=ZG([l]);if(!(!!o.active&&!s))return null;const c=eU(i,{isLeftColumn:!0});return fo.jsx(Xz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*XH))},confirmWidthCallback:r=>{if(r.type===MT.FitToContent)return void l.applyIndentModeColumnWidth({type:MT.Auto});const i=Math.min(r.pixels??t,e*XH);n(i),l.applyIndentModeColumnWidth({type:MT.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},CU=x((e,t)=>fo.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:fo.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"})})),EU=({cell:e,changeSortOrder:t})=>{const n=l(null),r=l(null),{app:i,interactions:o,embed:a,translator:s,model:u}=x$(),{layoutService:c,effectivePropertiesService:d}=C$(),{open:p,setOpen:f,handleOpenMenu:h}=QG();return fo.jsxs(lU,{onClick:h,isActive:p,children:[fo.jsx(uU,{children:e.label}),fo.jsxs(cU,{className:"indent-mode-dropdown-more",visible:p,children:[fo.jsx(CU,{}),e.isDim?fo.jsxs(fo.Fragment,{children:[fo.jsx(FW,{headerData:e,translator:s,anchorRef:n,open:p,setOpen:f,interactions:o,menuAvailabilityFlags:vU,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:i,qStateName:c.layout.qStateName},expandOrCollapseArgs:gU({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),fo.jsx(rU,{ref:r}),fo.jsx(rU,{ref:n})]}):null]})]})},IU=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{const i=n.at(-1)?.id===P$,o=e+1<n.length&&n[e+1]?.id===P$;return!(r&&i&&o)&&(t?.id!==P$&&e<n.length-1)},DU=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:i})=>{const{styleService:o}=C$(),{interactions:a,translator:s}=x$(),{dataModel:u,gridSectionsData:{headersData:c}}=GH(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=o,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=o.header,{isAdjustingWidth:I}=ZG([u]),D=e=>{e.stopPropagation()},R={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return fo.jsxs(nU,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...R,...pz,color:g},onClick:e=>{!a.active||oG(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[fo.jsxs(iU,{justifyContent:"flex-start",children:[fo.jsx(aU,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:fo.jsx("span",{style:fz,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?fo.jsx(SU,{}):fo.jsx(xU,{}),fo.jsx(rU,{ref:f})]}),fo.jsx(sU,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((n,r)=>[n&&n.id!==P$&&fo.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:fo.jsx(EU,{cell:n,changeSortOrder:t})}),IU({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===c.size.y})&&fo.jsx(tW,{"data-testid":"group-divider",variant:"middle"})])}),fo.jsx(wU,{tableWidth:i,leftGridWidth:r,overrideLeftGridWidth:n})]})},RU=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,PU={display:"grid",width:"fit-content"},MU=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:i,getHeaderCellsIconsVisibilityStatus:o,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=C$(),{gridSectionsData:{headersData:u}}=GH();return fo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...PU,gridTemplateColumns:n.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${r}px`).join(" "),height:a},children:[u.size.y>1&&fo.jsx(bU,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(RU({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);return Array.isArray(n)&&d.push(fo.jsx(DU,{menuItems:n,changeSortOrder:i,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},n.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=o(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(fo.jsx(yU,{style:{width:n[d],height:r,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:i,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var LU=b(MU);const AU=(e,t,n,r)=>{const{layoutService:i}=C$();g(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,n,r,i])},kU=(e,t)=>{Vz(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},OU=(e,t)=>{const{isLast:n,list:r,listValues:i}=t;return n?r[e]:i[e]},qU=()=>{},TU=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:i,isLastRow:o,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=C$(),{interactions:f}=x$(),{direction:h}=v$(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=dG(),{showLastBorder:b}=r,x=m(n)||n.isLockedByDimension,S=!(x||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=S?g(c,e=>OU(e,r)):void 0,C=S?v(c):void 0,E=S?y(c,e=>OU(e,r)):void 0,I=ZH({isLeftColumn:s,layoutService:p,representation:n.representation});return fo.jsx("div",{className:IT,title:f.passive?n.representation.text:void 0,style:{...t,...gz(o,a,d.grid.border,h,b),...yz({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...pz,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:CG(S),background:yG({styleService:d,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:p.size.x-n.x,justifyContent:iG(n,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(n.indentLevel??0))},textAlign:rG(n,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:qU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},NU=e=>{e.stopPropagation()},jU=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:NU,color:hN.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),_U=({href:e,text:t,interactions:n,color:r})=>fo.jsx(Rd,{...jU({href:e,text:t,interactions:n,color:r}),children:t}),FU=Y();FU.use(U),FU.renderer.prio(["canvas"]);const zU=(e,t)=>e&&"center"!==e&&"rtl"===t?QB(e):e,WU=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{const{imageBox:i}=t,{styleService:{grid:{lineClamp:o}}}=C$(),{direction:a}=v$();return fo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${i?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[fo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:hG(e),alignItems:zU(r,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:i?.width??24,height:"100%"},children:fo.jsx(qG,{representation:t,textStyle:n})}),fo.jsx(dU,{padding:4/(o<=2?2:1),alignSelf:hG(e,!0),children:!!t.labelStructure&&kG(t.labelStructure)})]})},$U=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,HU=({href:e,text:t,labelStructure:n,interactions:r,color:i})=>fo.jsxs("span",{children:[fo.jsx(Rd,{...jU({href:e,text:t,interactions:r,color:i}),children:n?.maskedValue?n.maskedValue:n?.originalValue}),!!n&&$U(n)]}),VU=({children:e,textStyle:t,shouldEnableStickyText:n})=>fo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),BU=({isLeftColumn:e,styleService:t,cell:n,isIndentModeEnabled:r})=>e?r?t.grid.lineClamp:Math.max(t.grid.lineClamp,n.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,GU=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=v$(),{isActive:i}=dG(),{layoutService:o,styleService:a}=C$(),{interactions:s}=x$(),l=n&&o.isIndentModeEnabled;let u=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:i,suffix:o,delimeter:a}=n;return`${0!==i.length?i:r} ${o?a:""} ${o}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r,isIndentModeEnabled:i})=>({...fz,...hz(BU({cell:e,isLeftColumn:r,styleService:t,isIndentModeEnabled:i})),color:bG({cell:e,styleService:t,isCellSelected:n}),fontWeight:xG({cell:e,styleService:t}),fontStyle:SG({cell:e,styleService:t}),textDecoration:wG({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n,isIndentModeEnabled:o.isIndentModeEnabled});if(e.representation.type===MF.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,i=n&&t&&t.suffix?WU:TG;return fo.jsx(i,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:iG(e,o,n,r)})}if(e.representation.type===MF.Link&&!i&&!e.isTotal){const t=n&&e.representation.labelStructure?HU:_U;u=fo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return fo.jsx(VU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===MF.Image&&e.isNull?{alignSelf:hG(e)}:{}},children:u})},UU=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:i}=C$(),{isSelected:o}=dG(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=ZG([n]),f=OU(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=CB(f,c,i.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return fo.jsx(EB,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=o(f);return fo.jsxs(TU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[fo.jsxs(IB,{verticalAlign:hG(f),width:DB(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[fo.jsx(DG,{isLeftColumn:a,isCellSelected:v,cell:f}),fo.jsx(GU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),fo.jsx(tU,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?NF.Measures:NF.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var YU=n.memo(UU,lB);const KU=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>i=>{const o=n?e[i]:t.at(i);return o&&0===i&&o.x>0?(o.leafCount+o.x+o.distanceToNextCell)*r():!n&&o?(o.leafCount+o.distanceToNextCell)*r():r(o?.x??i)},XU=(e,t,n,r)=>{const i=Object.values(e);let o,a=i.length;return r&&(a=n,o=t/a),{itemCount:a,estimatedItemSize:o,listValues:i}},JU=(e,t)=>n=>{e.current&&(e.current[t]=n)},ZU={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dz},QU={overflow:"hidden",willChange:"auto",flexShrink:0},eY=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:i})=>{const{pageInfo:o,direction:a}=v$(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=C$(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=GH();kU(e,d),AU(e,t,n,l);const f=o.rowsOnCurrentPage*l,h={...ZU,borderColor:u,width:r.reduce((e,t)=>e+t,0)};return fo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=M$(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=XU(t,f,o.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,n,r,i)=>o=>{const a=r?e[o]:t.at(o);if(a&&0===o&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===i-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return fo.jsx(iB,{ref:JU(e,u),style:{...QU,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:i,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:GG,estimatedItemSize:v,children:YU},m)})})};var tY=b(eY);const nY={overflow:"hidden",willChange:"auto"},rY=e=>({...dz,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),iY=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:i,getRightGridColumnWidth:o})=>{const{direction:a}=v$(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=C$(),{gridSectionsData:{headersData:c,topDimensionData:d}}=GH(),p={...rY(a),borderColor:l,height:r};kU(e,d),AU(e,n,r,u);const f=s.size.x*o();return 0===d.rowCount?fo.jsx("div",{style:{width:n,height:r,...rY(a)}}):fo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=XU(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const i=t.size.x-1,o=RU({layoutService:e,headersData:t,topRowIndex:n})?0:i,a=r.at(o),s=Array.isArray(a)?a.at(i):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?M$(g):`empty ${l}`;return fo.jsx(iB,{ref:JU(e,l),style:nY,height:t(),width:n,itemCount:p,itemSize:KU({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:o}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:i,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:GG,estimatedItemSize:h,direction:a,children:YU},v)})})};var oY=b(iY);const aY=()=>fo.jsx(sY,{}),sY=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=C$(),n=wV(),r=(()=>{const{model:e}=x$(),t=f(async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:i,sortDirection:o}=t,a=[];if(n===o)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${i}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).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:i,topGridWrapperRef:o,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=SV(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:i}=C$(),{gridSectionsData:{headersData:o}}=GH(),{measureText:a}=zz(i.header,{allowLineBreaks:!1}),s=cV({tableWidth:e}),l=dV({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f((e,t,n="")=>{let i=e;r.isIndentModeEnabled&&(i=1,1===o.size.x&&(i=0));const l=s.leftGridColumnWidths[i];let u=!1,c=!1,d=a(n)+KH;return t&&d+YH<=l&&(c=!0,d+=YH),d+YH<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,r.isIndentModeEnabled,o.size.x]);return d(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()},[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:R,topGridDims:P,leftGridDims:M,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:i},scrollBarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a}})=>{const s=wV(),{pageInfo:l}=v$(),{gridSectionsData:{headersData:u,topDimensionData:c}}=GH(),d=Math.min(s.height*XH,Math.max(s.height*XH-25,s.height-t-a)),p=s.width*XH,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,n),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,n)=>{const r=t+1+n+o<=s.width,i=e+1+f+a,l=i-s.height<a||i<=s.height;return{availableHeight:l?i:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),R=Math.min(I,f),P=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:i}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:o,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=o>t,d=a>n,p=l>i;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:r,rightSectionFullWidth:i},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:P-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:g},stickyWrapper:{width:b-1-o,height:-1},self:{width:Math.min(i,b)-(C?1:0)-o,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:P-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:i-o+(A?o:0),height:P-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-o,height:I-1-a},self:{width:Math.min(i,b)-(C?1:0)-o,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f(()=>e,[e]),q=f(()=>t,[t]);return(()=>{const{downloadService:e}=C$();d(()=>{e.notifyIsDoneRendering()})})(),fo.jsxs(EV,{style:D,children:[fo.jsx("div",{style:{overflow:"hidden"},ref:i,children:fo.jsx(LU,{tableWidth:n.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:R.height,changeSortOrder:r,overrideLeftGridWidth:I})}),fo.jsx(RV,{style:k.topGrid,origin:_F.TopGrid,ref:o,children:fo.jsx(CV,{style:P.fullSizeWrapper,children:fo.jsx(PV,{style:P.stickyWrapper,children:fo.jsx(oY,{topGridRef:l,rowHightCallback:O,...P.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),fo.jsx(RV,{style:k.leftGrid,origin:_F.LeftGrid,ref:a,children:fo.jsx(CV,{style:M.fullSizeWrapper,children:fo.jsx(PV,{style:M.stickyWrapper,children:fo.jsx(tY,{leftGridRef:u,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),fo.jsx(RV,{style:k.dataGrid,origin:_F.DataGrid,ref:s,children:fo.jsx(CV,{style:L.fullSizeWrapper,children:fo.jsx(PV,{style:L.stickyWrapper,children:fo.jsx(XG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},lY=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=x$(),{pageInfo:i,updatePageInfo:o,rect:a}=v$(),{layoutService:s}=C$(),{layout:l,hasData:u}=s;return fo.jsxs(fo.Fragment,{children:[u?fo.jsx(aY,{}):null,fo.jsx(I$,{}),fo.jsx(m$,{paginationNeeded:i.shouldShowPagination,handleChangePage:e=>{o({page:e})},pageInfo:i,totalRowCount:i.totalRowCount,totalColumnCount:0,totalPages:i.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})};const uY=(e,{selections:t,baseObjects:r,coreServices:i,nebulaObjects:o},a)=>{const s=function(e){const t=zS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),_s({...t,direction:e})}(r.direction);e.render(fo.jsx(n.StrictMode,{children:fo.jsx(Pw,{store:a,children:fo.jsx(Cl,{theme:s,children:fo.jsx(S$,{...o,children:fo.jsx(y$,{...r,children:fo.jsx(pG,{selections:t,children:fo.jsx(E$,{...i,children:fo.jsx(UH,{children:fo.jsx(lY,{})})})})})})})})}))};var cY=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}(cY||{}),dY=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}(dY||{}),pY=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(pY||{}),fY=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}(fY||{});const hY=e=>e?`${parseInt(e,10)}px`:void 0,mY=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?lz.Transparent:n}},gY=(e,t)=>+(parseInt(e,10)*sz*t+8).toFixed(2),vY=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?oz:"normal",yY=e=>e?.some(e=>"italic"===e)?"italic":"normal",bY=e=>e?.some(e=>"underline"===e)?"underline":"none",xY=document.createElement("textarea");function SY(e){xY.value=e,document.body.appendChild(xY),xY.select(),xY.setSelectionRange(0,xY.value.length),document.execCommand("copy"),document.body.removeChild(xY)}xY.style.position="absolute",xY.style.left="-9999px",xY.setAttribute("readonly","");function wY(e){T?.((t,n)=>{const r=n.target,i=r?.closest(`.${IT}`);i?.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(()=>{SY(t)}):SY(t))})(i)}}),e?.forEach(e=>{e(t,n,i)})})}const CY=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>Pz((i,o,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=e?.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.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(D$,0,0,!0),await e.expandLeft(D$,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--plus",translation:i.get("SNPivotTable.ContextMenu.ExpandDimension",[r??""]),tid:"expand-dimension",id:"expand-dimension",select:mU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:pU.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(D$,0,0,!0),await e.collapseLeft(D$,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--minus",translation:i.get("SNPivotTable.ContextMenu.CollapseDimension",[r??""]),tid:"collapse-dimension",id:"collapse-dimension",select:mU({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:pU.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))},[e,t,n]),EY=(e,t)=>P(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:n,snapshotData:r}=e,{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:o,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!r,u=r?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,az),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=o.slice(0,i),p=e=>d.some(t=>t===e),f=p(R$),h=new Map(o.map(e=>[s[e]??R$,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>n?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const n=e%m.length;return t?n:a.findIndex(e=>e===m[n])},getDimensionInfo:e=>e===R$?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:MT.Auto,pixels:PT.PixelsDefault,percentage:PT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),IY=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:i})=>{const{layout:o,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=Lz(e);return t.current=e,t})(zH(i));return Nz(async()=>{const{qHyperCube:t}=o,{maxNumberOfVisibleRows:i,maxNumberOfVisibleColumns:u}=l.current;if(a)return o.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,i,u)||((e,t,n,r)=>{const{qHyperCube:{qPivotDataPages:i,qSize:o}}=e,{qTop:a,qWidth:s,qHeight:l}=i[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(r,o.qcx)||l<Math.min(n,o.qcy)})(o,r,i,u))){const t=((e,t,n,r,i,o)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(az,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-i)),n>l&&(u=Math.max(0,l-o))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,o),qHeight:Math.min(s-c,i)}})(s,n,o.qHyperCube.qSize,r,i,u);return t?e.getHyperCubePivotData(D$,WH(t)):[]}return t.qPivotDataPages},[o,a,e,n,r.page,r.rowsPerPage,l,s])},DY=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),RY=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:DY({rowsPerPage:n,totalRowCount:e,page:t})}),PY=15,MY=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:i})=>{const{freeResize:o}=M();return N(async e=>{const o=e;if(!o.snapshotData||!r||o.snapshotData.content)return o;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-PY,0),u=Math.max(s+i-PY,s,0),c=az-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=zH(n);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,o+30),qHeight:Math.min(d,a+30)}})(t,i,n),c=WH(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};o.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(D$,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},o.snapshotData.object.size.w=n.width,o.snapshotData.object.size.h=n.height}return o}),j(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,i)}),[t]),e.layout.snapshotData?.content&&!o?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var LY={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 AY=()=>{const e=_(),t=e.language();return P(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(LY).forEach(t=>{e.add(LY[t])})}(e)},[e]),{translator:e,language:t}},kY=e=>{const t=P(()=>Iw(),[]),{flags:n}=e,r=F(),i=(e=>{const t=P(()=>Wz(e),[e]);return k(()=>()=>{t.unmount()},[t]),t})(r),o=z(),a=W(),s=$(),l=H(),u=V(),c=(()=>{const{viewState:e}=M(),t=Lz(new Set),n=void 0!==window.qlikprinting,{promise:r,resolve:i}=P(()=>Rz(),[]),o=Pz(e=>{t.current.add(e)},[t]),a=Pz(Zj(async()=>{await Promise.all(t.current),t.current.clear(),i()},1e3),[i,t]);return L(async()=>{await r},[r]),P(()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:o}),[a,n,e,o])})(),d=((e,t)=>{const[n]=Nz(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return P(()=>{const e=void 0!==n?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),t=n?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:n?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:n?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[n])})(a,o),p=EY(o,n),f=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=Tz(o,r),{translator:g,language:v}=AY(),{pageInfo:y,updatePageInfo:b}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,i=t.isDownloadedAsPDForImage||e.isSnapshot,o=(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:r.qcy>n.y&&!i,...RY(r.qcy,a,o)}}),l=e.layout.qHyperCube.qSize.qcy;return k(()=>{s(t=>({...t,...RY(l,t.page,o),shouldShowPagination:l>e.size.y&&!i}))},[l,e.size.y,s,i,o]),k(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=DY({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:DY({...a,...e})})}}})(p,c),x=((e,t,n)=>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}})(n,t.snapshotData),[n,e.page,t.snapshotData]))(y,o,c),S=MY({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,C]=IY({model:a,layoutService:p,viewService:x,pageInfo:y,rect:S}),E=P(()=>((e,t)=>{const n=t.layout.components?.find(e=>"theme"===e.key),r=n?.header,i=n?.dimensionValues,o=n?.measureValues,a=n?.measureLabels,s=n?.totalValues,l=n?.nullValues,u=n?.grid,c=(t,n,r)=>e.getStyle(t,n,r),d=+(u?.[cY.LineClamp]??c(dY.Grid,pY.Grid,fY.LineClamp)??1),p=+(u?.[cY.ColumnLineClamp]??c(dY.Grid,pY.Grid,fY.ColumnLineClamp)??1),f=mY(e,r?.[cY.Background])??c(dY.Dimension,pY.LabelName,fY.BackgroundColor)??lz.Transparent,h={header:{fontSize:hY(r?.[cY.FontSize])??c(dY.Dimension,pY.LabelName,fY.FontSize)??rz,fontFamily:r?.[cY.FontFamily]??c(dY.Dimension,pY.LabelName,fY.FontFamily)??iz,fontWeight:vY(r?.[cY.FontStyle],oz),fontStyle:yY(r?.[cY.FontStyle]),textDecoration:bY(r?.[cY.FontStyle]),color:mY(e,r?.[cY.FontColor])??c(dY.Dimension,pY.LabelName,fY.FontColor)??hN.TEXT,background:f,hoverBackground:l_(f,LT),activeBackground:l_(f,AT)},dimensionValues:{fontSize:hY(i?.[cY.FontSize])??c(dY.Dimension,pY.LabelValue,fY.FontSize)??rz,fontFamily:i?.[cY.FontFamily]??c(dY.Dimension,pY.LabelValue,fY.FontFamily)??iz,fontWeight:vY(i?.[cY.FontStyle],void 0),fontStyle:yY(i?.[cY.FontStyle]),textDecoration:bY(i?.[cY.FontStyle]),color:mY(e,i?.[cY.FontColor])??c(dY.Dimension,pY.LabelValue,fY.FontColor)??hN.TEXT,background:mY(e,i?.[cY.Background])??c(dY.Dimension,pY.LabelValue,fY.BackgroundColor)??lz.Transparent},measureValues:{fontSize:hY(o?.[cY.FontSize])??c(dY.Measure,pY.LabelValue,fY.FontSize)??rz,fontFamily:o?.[cY.FontFamily]??c(dY.Measure,pY.LabelValue,fY.FontFamily)??iz,fontWeight:vY(o?.[cY.FontStyle],"normal"),fontStyle:yY(o?.[cY.FontStyle]),textDecoration:bY(o?.[cY.FontStyle]),color:mY(e,o?.[cY.FontColor])??c(dY.Measure,pY.LabelValue,fY.FontColor)??lz.FontSecondary,background:mY(e,o?.[cY.Background])??c(dY.Measure,pY.LabelValue,fY.BackgroundColor)??lz.Transparent},measureLabels:{fontWeight:vY(a?.[cY.FontStyle],"normal"),fontStyle:yY(a?.[cY.FontStyle]),textDecoration:bY(a?.[cY.FontStyle]),color:mY(e,a?.[cY.FontColor])??c(dY.Measure,pY.LabelName,fY.FontColor)??lz.FontSecondary,background:mY(e,a?.[cY.Background])??c(dY.Measure,pY.LabelName,fY.BackgroundColor)??lz.Transparent},totalValues:{fontWeight:vY(s?.[cY.FontStyle],oz),fontStyle:yY(s?.[cY.FontStyle]),textDecoration:bY(s?.[cY.FontStyle]),color:mY(e,s?.[cY.FontColor])??c(dY.Total,pY.LabelValue,fY.FontColor)??hN.TEXT,background:mY(e,s?.[cY.Background])??c(dY.Total,pY.LabelValue,fY.BackgroundColor)??lz.Transparent},nullValues:{fontWeight:vY(l?.[cY.FontStyle],"normal"),fontStyle:yY(l?.[cY.FontStyle]),textDecoration:bY(l?.[cY.FontStyle]),color:mY(e,l?.[cY.FontColor])??c(dY.Null,pY.LabelValue,fY.FontColor)??hN.TEXT,background:mY(e,l?.[cY.Background])??c(dY.Null,pY.LabelValue,fY.BackgroundColor)??lz.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:mY(e,u?.[cY.Border])??c(dY.Grid,pY.Grid,fY.BorderColor)??lz.DividerLight,divider:mY(e,u?.[cY.Divider])??c(dY.Grid,pY.Divider,fY.BorderColor)??lz.DividerDark,background:mY(e,u?.[cY.Background])??c(dY.Grid,pY.Grid,fY.BackgroundColor)??lz.Transparent},selectedColors:s_(e)};return h.headerCellHeight=Math.max(gY(h.header.fontSize,p),gY(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(gY(h.measureValues.fontSize,d),gY(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=gY(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,n)=>{const[,r,i]=Nz(async()=>{const t=BN(n.flags),r=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,i,o,Hz].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return i?(console.warn("Failed to load fonts:",i),!0):!r})(m,o,e),{direction:D}=M();wY([CY({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),k(()=>{!C&&a&&!!w&&I&&uY(i,{selections:h,baseObjects:{rect:S,pageInfo:y,qPivotDataPages:w,updatePageInfo:b,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,c,C,w,E,i,I,g,v,y,b,d,l,u,m,e,D,t])},OY={version:"7.22.0",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:[]},qY=()=>({...OY,qHyperCubeDef:{...OY.qHyperCubeDef,qIndentMode:!1}})}}});